<?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_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_aa8a1904-91ab-4f99-a815-31943a700070">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_d894e7e6-7952-42e6-a4ed-df4ae43adff9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_11c62f76-a683-4e43-bb6e-787bb228954f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_ee10302b-c6ce-4cf7-a9f1-7b5703fb5ee1">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_d6ee1f0b-faa7-4351-a2d8-84b941de980c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_94dcd291-3e90-4d26-a637-0cd86e40c3a5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_9e31eae7-e237-456e-bac2-2c872f078d6c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_35998512-4b90-472c-9d25-53efc4730a1f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_5be56bc5-3ba0-42e1-9d17-d24e08a6cc94">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      id="F_f14055dc-36ec-4930-afce-a8702860084f">&lt;p style="tab-size:26.66px;font-size:12pt;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;5,350,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_e5235c2a-31b7-4c5a-a68d-e8183c3b1c65"
      decimals="-3"
      id="F_a1f838ee-e79b-4904-9f43-671df2476837"
      unitRef="U_USD">5350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
