<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_bb5e0910-af3f-4235-a19d-2c121c83b347">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-13</startDate>
            <endDate>2026-03-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_b9061e08-f146-4764-a741-ac54139a8230">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_2a40fe5e-c64c-40a9-b115-87a0cec1f29d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_0e8b9478-b03e-4b4b-ad11-6b8e5692b218">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_4ff47a0c-500f-4f26-ab06-064ebb89f432">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_58072a23-8f60-4c12-ac98-73aa9cf58277">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_592c7170-58c2-4086-a7df-2390e988e7b3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_0148954d-ad58-427c-8f9c-d5ebf6b3cacc">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_2c9a3a3d-b31c-4060-963a-a5979e9b12ba">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_f0e85eb3-efe6-4da9-b03a-2809510eab42">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bb5e0910-af3f-4235-a19d-2c121c83b347"
      id="F_7a347ded-e459-4c55-9dc1-4576efbaabd2">&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;3,800,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_bb5e0910-af3f-4235-a19d-2c121c83b347"
      decimals="0"
      id="F_e8803bb0-e64a-466b-9eb4-a242dd198a9f"
      unitRef="U_USD">3800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
