<?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_fb137b6d-f0be-48fa-8167-5c2bd960886f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_ff2a6ea1-6e66-42a4-8ddc-017ff4ff19c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_3cd39187-cd1e-4b9e-a25c-d261e8265c7f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_fd132ac8-07eb-450e-adaa-c5d87216d551">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_d44039df-88a8-47ca-8f05-a75114b50bf5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_14f073c5-85eb-4723-8336-acda094ee5af">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_fedcc306-46d8-4797-bfcd-737b27aa853f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_1e24f638-23a3-4c03-b427-35520b5c03c8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_9341b4d8-e47c-4733-aa6f-6ec7ceb5d2d4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_8582de85-7985-4346-b558-6e5ea8278215">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      id="F_0553ed6a-c88d-483b-b95d-961e0e739814">&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;1,297,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_fb137b6d-f0be-48fa-8167-5c2bd960886f"
      decimals="-3"
      id="F_4d93f809-fa79-4f66-a1a0-1dc30b0508da"
      unitRef="U_USD">1297000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
