<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_e59717bb-ac1a-452c-b04e-ea3eb8f6f69b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_e9ba6397-24c0-46c4-b933-85620f98f886">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_a93ac8a0-1b56-4ae3-b598-b8928426f75b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_4d7c4023-28c4-4dad-9bfb-90dbd1fb3276">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_6ad1d982-ec98-49bc-92de-195ed85287a8">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_ccc49dab-2968-4d62-8c73-54ab6abae787">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_d8e45627-81a3-4ca0-bb44-6a275891fd39">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_9554acde-ab4b-4c82-91fd-28bf10020cb3">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_a114b280-2c49-4031-849e-a8e888abb34f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      id="F_22bf1901-a004-4f7c-afc4-7360bcdf968a">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;724,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_aab1a392-7bc9-45ae-9d4e-e2c3a2932497"
      decimals="-3"
      id="F_881d15a1-ca8b-4988-9473-41f4b501c73c"
      unitRef="U_USD">724000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
