<?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_db915781-6fc9-4227-8c98-13c1ea7216ae">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_678dc420-35fc-4d2a-9bb7-b1651f13fc2a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_d731a70b-889b-411e-a682-bbe4ccf2127c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_5c3107d4-3936-4edc-a2b4-30206b11ddd1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_e083bbb3-971e-4671-a60f-d72d0a67fe39">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_91bc2a0e-93fe-49d2-9291-4c65e803b88e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_72345a9e-db43-4e0f-8a0e-3890788f9dd8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_384b7cbc-fdbb-423b-ac0c-cf2b5a1764cf">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_759af6a2-3352-40d7-855d-ca5e0ff3e371">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_2d759cb0-1eb2-4aef-9cd6-ceec06dd2c7f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_db915781-6fc9-4227-8c98-13c1ea7216ae"
      id="F_ea4a879d-60f8-46a9-af90-2c5e2024ca08">&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;361,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_db915781-6fc9-4227-8c98-13c1ea7216ae"
      decimals="-3"
      id="F_da6d08da-435a-4158-80d5-648923eb7bbd"
      unitRef="U_USD">361000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
