<?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_7b043f50-33ed-41d8-987a-4d5aa038fb61">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_65b61328-1f24-42a9-9a17-ebe21226d6b3">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_6e38f728-f421-48ba-afb3-240d4405319b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_d154bba0-4aa7-4e0b-94ea-092f07e214dc">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_f2121783-c332-4cbd-99f6-87af30f61bf8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_471fc8a5-c5d5-499f-8e78-3a9ea9de14b3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_5ffcf5ed-a29e-4555-b479-5a3a0071796a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_3fae2c3b-6d0b-4110-bef7-2ad63e114fe6">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_c7d66b14-cf55-4ccb-83cc-9a40813e2529">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_ad00d387-db2c-4924-ac66-9b0a8f8fb3c0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      id="F_00eaa781-372a-4154-997d-e97bd31d746f">&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;12,454,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_7b043f50-33ed-41d8-987a-4d5aa038fb61"
      decimals="-3"
      id="F_754bdca6-ec99-42fc-b066-ca4610a6b2f1"
      unitRef="U_USD">12454000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
