<?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_92da0300-bab9-4a71-91b2-df96ae095916">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_3d292b18-d3b3-4414-80a1-59d69ecca891">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_9b5b2ff9-1b85-42b5-8813-8409b0ed7995">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_aad9d4cc-3e6b-45c6-ae6f-b80b4962874f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_cfed307b-33e2-4180-bd86-5f627bc56e4b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_0b26f708-985e-4ede-a778-03c1b0118b1e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_b80370d5-80d3-4276-9c78-81406798ba72">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_017f3089-69f8-4a88-8755-ca1b41994d33">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_f6a905f2-19d8-40a4-abf5-d08de8abb56b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_7c678788-ecb8-4b6e-986a-47d90d6aa544">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_92da0300-bab9-4a71-91b2-df96ae095916"
      id="F_015cf18e-19d4-418d-97c7-d3ff9c47a1cf">&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;1,260,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_92da0300-bab9-4a71-91b2-df96ae095916"
      decimals="-3"
      id="F_f7eaac62-fe36-4d92-9601-163cc8375ec5"
      unitRef="U_USD">1260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
