<?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_cf07626a-e5b7-4d1c-8484-49abdc3a0e74">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_bbed2f8c-728d-4447-83bc-d027fe0ab9a8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_e1a6ffe5-631d-41ef-ac1b-57aac364e928">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_538fff19-c4fd-4f48-b17d-1b5fe5bd85fd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_6b9549d0-f9aa-4ff0-bf5c-28e5d2641977">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_2c130c3e-d2fd-42aa-ba70-64408d46422d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_3fdbbe08-e031-4f8a-bd34-86fdbcc78c2f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_3ff7560e-14a5-4cb7-96be-7ec9f3d63db7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_91cf72bf-5c89-455a-83cb-ee8e0f003ec0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_17c37887-1a01-4137-b6ca-e746def0b6d3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      id="F_a490afdc-bd5c-457e-a5ed-8d9eb17ceeb5">&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;11,961,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_cf07626a-e5b7-4d1c-8484-49abdc3a0e74"
      decimals="-3"
      id="F_f8b9facf-cd3c-4919-a501-f76a5c574929"
      unitRef="U_USD">11961000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
