<?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_99fc1149-4761-4544-b09a-f18254a1c7e3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_2e93e256-a4d7-439f-81c4-a55f28508a18">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_5ef409a4-0697-488c-88cb-3f4b9480a40c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_76d86671-9153-4748-9a2f-6e4953a3c3aa">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_c9a4fb8c-dff9-4bd4-be36-6d246337d23f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_98dc07e1-8b68-4898-8c2b-d311d7ef2260">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_e773e97a-2880-432b-b8e4-6af4b80d3ccc">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_36271666-c5be-49be-a5f1-c77af7cab03a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_5f29db6b-f83b-4f0d-8577-fc1b4afea562">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_a58875a6-6cff-4a40-8639-650c506220b0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_99fc1149-4761-4544-b09a-f18254a1c7e3"
      id="F_7790b54e-f7de-43ea-a06b-ff7b4104dc17">&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;9,613,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_99fc1149-4761-4544-b09a-f18254a1c7e3"
      decimals="-3"
      id="F_c23d85c2-e87c-4004-abe4-af857479a39b"
      unitRef="U_USD">9613000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
