<?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_978fef97-c34c-4298-a7bd-e9c64e595c9b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-03</startDate>
            <endDate>2026-09-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_8f0e0935-e396-4f9f-8929-76ecd43e1cdd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_8069a395-a37f-4266-b63b-8418a5a059c4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_3b423ffb-c588-40bb-9c68-f4b95ff50eb1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_79e3c3ab-f3a6-4b71-a2e4-5fbcd31b7fdf">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_ee9f6d21-18a5-487d-b19d-1a6fa4cb3e1b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_bc0ea83a-c7d0-4b3d-9a1c-d77c89bea26f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_10df4a46-1cbd-4a3f-984d-23acade94291">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_b81cbd7e-0e5a-4c3d-b529-5857b1bf8bc1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_5641bbcc-72bd-41c2-8688-0b3a1b2a6335">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      id="F_d3c4e722-816f-45b0-afdc-2ca500697475">&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;7,460,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_978fef97-c34c-4298-a7bd-e9c64e595c9b"
      decimals="-3"
      id="F_debb4f1e-8efd-4502-b4a0-b82dd3b75460"
      unitRef="U_USD">7460000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
