<?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_84a7cc13-4ce3-431e-9389-3339f32ef3b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_d8aabb38-8b04-43f4-8b23-0de57fc8cf7d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_2309c658-80c0-4967-824e-1e52611d4903">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_9118573c-6bdd-4926-b8bd-884df4330af1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_1f5913e7-4d93-4d93-b1e7-c6de3ddadc68">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_cbc2b0d5-a36f-415a-81cf-7be4da90ee51">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_1dcb2198-9fbf-4c1f-9f03-cf45feaabcca">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_54a4e8ed-ac87-47aa-95b9-bc99ea534f7a">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_abac5fd9-6d34-416e-8606-c39f21ccfc48">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_094788bf-5a7a-4e51-8143-f2c4e86224f4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      id="F_606d3e8a-49d8-461e-8634-7bee0ca7dfa4">&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,514,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_84a7cc13-4ce3-431e-9389-3339f32ef3b4"
      decimals="0"
      id="F_20259780-9a2e-4220-a7f6-f94eb5e79948"
      unitRef="U_USD">3514000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
