<?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_8cf1ee21-f098-4712-997f-f17f956e038c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_911be5fb-2244-4eac-91af-89e6fc55a61f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_d783ec1f-8e97-425c-9b07-752048652c28">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_e10871ce-6eb6-494e-b95e-e4945274fd85">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_d3217130-f4dd-40eb-a3fc-04a267417654">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_34e55aa3-532d-41d1-94d2-8d8a1c7f2a27">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_ee206ef0-7138-4af0-970f-4c95c2fd24a3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_32ced43e-3824-4c14-bb0b-bac54016a9aa">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_6998f296-b466-435b-b7a4-0b39a3522e8c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_0105035f-5a08-4cef-8d2e-1d7bba791758">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_8cf1ee21-f098-4712-997f-f17f956e038c"
      id="F_4b5c8199-8d05-454f-b290-b9756bdab6d4">&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,276,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_8cf1ee21-f098-4712-997f-f17f956e038c"
      decimals="-3"
      id="F_af5d6a4d-f195-4bd5-a9f8-8def63fb610b"
      unitRef="U_USD">7276000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
