<?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_e2af4cd4-6429-4a57-91d4-d8515c269779">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_f1ec54ce-01bc-4eea-9aef-a01029a8830a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_eec747d8-8691-486f-8ef4-dd1286333876">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_2ca67799-790d-4b0b-833b-39e41f638b95">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_467f85aa-0c96-47fd-ac1b-c8fac6cdfdfd">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_a324c000-d76d-4fb5-a21d-9f4da86d8820">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_025f0b27-dfb0-43de-98fc-77275125aa31">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_e1947526-af7f-40bf-9707-46bc4e2e6fcd">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_c4ab31a4-809d-4650-b7ed-dda24a4d8c7e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_432c2673-a57b-4857-993e-5e1acd3b1575">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e2af4cd4-6429-4a57-91d4-d8515c269779"
      id="F_4f1d3e4c-68f1-4100-b452-f09a43a3c4d3">&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;59,262,740&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_e2af4cd4-6429-4a57-91d4-d8515c269779"
      decimals="0"
      id="F_ac10be40-086c-452c-9a2e-a8d6d0d98d04"
      unitRef="U_USD">59262740</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
