<?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_48c8c6e0-8de6-4348-9528-3df56cc3ca26">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_16201c1e-1682-430a-8ce4-927758af7546">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_faf7ec14-81f7-4286-8f1c-354f5c7d8d22">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_464f7235-b842-4a0c-84cf-7f42d6b0461a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_0e32d4c0-a709-4a34-a09b-f445d778e97d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_f2119f5b-0ab2-40a9-a79d-0b0425b3af20">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_b1204dcb-f6ad-40d6-ba0b-af43133aea08">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_c1619edb-6b86-436b-88b9-46c5a86a5425">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_12a9b3e9-372a-4009-93ba-2d350b18f6b0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_ddee63b0-2aa5-4415-ba2d-f355066da533">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      id="F_60b6105e-2d89-49bd-a53d-e96dfa537fc2">&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;250,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_48c8c6e0-8de6-4348-9528-3df56cc3ca26"
      decimals="-3"
      id="F_4f237fc9-0ee8-4aa9-9137-757cc2405a72"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
