<?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_e1aab7ce-1497-4b26-b061-58cb9216e2bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_af4b0f21-79a0-4ece-9a4a-b8d7412d9af2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_b643053b-a810-40f4-b784-c7b0dee7e1b3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_01652030-7cf4-4858-b921-be88256dbc8e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_9b92634b-99f2-4f43-b15e-7fec1b01537e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_1eb2f3ae-04ba-4029-86df-5a5a4c7fa705">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_61690b28-ebca-4597-9469-8ca149ce3b46">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_90e02881-6b2d-4ba0-a4ef-cf8bc899ca89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_fa00d40d-7dc3-4d75-a75f-9c85015fd3fc">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_e5a434ae-2a75-4ee4-91a6-d36ab41ba148">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      id="F_2b143f84-fcc7-412b-913d-d2bb8b7ef9ac">&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;7,025,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_e1aab7ce-1497-4b26-b061-58cb9216e2bc"
      decimals="-3"
      id="F_26c576d7-bc46-4095-b379-8e55339fed33"
      unitRef="U_USD">7025000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
