<?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_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_af2f2415-5cd1-495c-8f2e-3188580f02d6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_15a7a849-9ad9-490f-8e50-23281238a0b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_569e479c-3fc4-43a5-92b8-b9c71a5b663e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_ba1ef78b-dcec-450e-b4ee-806eb5486a8a">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_40adce26-9c07-4256-b554-c0050436f13d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_748b5165-fc6c-4562-9084-6cde8195f12f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_58889f37-10bb-4b14-95e3-473dd4b1d665">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_78c17358-17ef-4734-b8ce-4faa06bfedf7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_064c549d-b050-49e7-8e03-8e0f4ecdb221">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      id="F_91d8c365-2280-4e5b-8a01-c29783078000">&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;250,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_b78fb6b9-5aa4-483d-bb9b-0b9be62b2669"
      decimals="-3"
      id="F_5d086680-feeb-4cba-bc3d-7a967f24107e"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
