<?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_22ab5a1c-3093-4a48-96e8-66da4966470d">
        <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>
    <ffd:FormTp
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_86bc333e-0c62-471b-be11-175c9ce2c88d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_7ae3052b-a91f-4f61-b89d-9629d8b7646c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_d6b8dffe-cd21-4222-906b-9d9100f0656b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_b0ced2be-4e99-4b3a-bcd4-a2dc33fbf54b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_666e8413-de76-43b2-8836-563fd9791d0c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_96ccb6ae-228f-4808-bb3a-26c856ff0bf9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_af52523a-a160-4adb-8db9-63a1f6ca671f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_a800d05e-b95e-4dfa-bdeb-0069d0d77825">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_ba8f9cf4-46fb-4610-a534-5591fa56f24a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_22ab5a1c-3093-4a48-96e8-66da4966470d"
      id="F_72d491ad-9444-413b-bcfe-0bcf3ce252e5">&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,874,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_22ab5a1c-3093-4a48-96e8-66da4966470d"
      decimals="-3"
      id="F_74074b3b-dd38-4da8-b6e0-f4c2dbc91af2"
      unitRef="U_USD">7874000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
