<?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_b1ed2912-5205-49c8-ac3b-17991841e848">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_a394cb72-82cc-451e-a63f-91e1c8da472b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_ac5433f7-b9ec-47e7-8dd7-42b4428464bc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_991518cd-f7a4-45aa-9d92-854aaa9eeb18">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_d3c9c33e-dcd9-4ddd-a94d-b8441d8f5b2c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_ab0c97ae-4021-4444-99eb-e7dc08979ef2">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_2749950b-4a31-4557-851e-564de87a3987">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_15880b62-d920-4799-af07-ecc602878c4f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_13ca1827-5b9a-415b-9743-b171a6e2e49a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_47b28a5b-03c3-4552-83e7-afe107e63595">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b1ed2912-5205-49c8-ac3b-17991841e848"
      id="F_29d19022-68c1-40c5-a5d2-0c25bf20265a">&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;2,548,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_b1ed2912-5205-49c8-ac3b-17991841e848"
      decimals="-3"
      id="F_8c613c84-57fb-4a5c-81ac-947a3e14f0a2"
      unitRef="U_USD">2548000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
