<?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_18a3f3a3-5f1b-414a-85d9-aa2cddc208da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_7a39e338-2db9-4979-bb65-4410c268c330">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_4c3300b6-012b-4e8c-add5-e70012687f35">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_8aec89b0-9c7f-4fbc-a18a-fb113d2e0d84">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_6f215ba9-876d-40c1-990d-33df19da445c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_4c168a37-c02f-40ad-80e4-04fd00405432">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_d4d082b6-73af-44ce-a8ed-7bfd3bec438c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_60ec2ff8-cb43-452b-a6ae-445d01df2fd9">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_71f4fea9-b8ff-4fad-8b4e-c4b82f94ec54">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_d372882c-1083-4ad6-b607-985ad5de72f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      id="F_d159da8d-014f-4667-9e57-9496a650b1ec">&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,660,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_18a3f3a3-5f1b-414a-85d9-aa2cddc208da"
      decimals="-3"
      id="F_97704ddd-2851-4478-b3bc-3eec6d9c7523"
      unitRef="U_USD">7660000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
