<?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_8b303054-b557-4f1d-aee8-f48923824cab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_1e653dbd-fb7e-4166-96c1-2deb9b1e3e33">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_e60cee6c-f91a-4439-be54-f59b61b26630">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_b5b1c7df-8ca4-45b8-b565-2022f5c1737c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_c3c6f63f-6804-4a0e-b532-82ec63f00d79">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_28bc1eb2-a645-41b3-a683-eb421a573790">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_cae0cc34-25bb-4257-97d7-ea1e90a006c7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_e34cad59-a81f-4742-a241-afec92b8d119">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_947a8ad0-02f2-4429-948e-95879637551f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_255a53ef-6869-4582-9826-501d887a1782">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8b303054-b557-4f1d-aee8-f48923824cab"
      id="F_907d9685-da12-4238-be99-a6aca94e7657">&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,384,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_8b303054-b557-4f1d-aee8-f48923824cab"
      decimals="-3"
      id="F_0b8bde31-45b0-4392-b172-7f6be2960ecc"
      unitRef="U_USD">1384000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
