<?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_b7199514-b976-4759-a3bf-ac8d38711f4a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_4e28ee3d-2a39-4e05-8845-18c37087d034">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_18a877e6-9ae4-4381-9660-44a5fd8dd7cd">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_700f428d-9be1-48a0-b02e-a8428fc90dac">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_e0d952b6-9318-4ca6-8224-47bd0f7c3ac4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_e010d43e-c691-4164-b1f1-98f89db1a261">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_d69328f9-90a7-4e5d-9824-66701e5909fb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_8bc5f800-9497-43a6-9d25-275a00885a33">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_73994457-eb5f-464a-8ed7-1723873c9b3c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_97665535-0cbf-4e2c-a18f-d4c53b088380">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b7199514-b976-4759-a3bf-ac8d38711f4a"
      id="F_370d6590-00f8-4c06-8463-8ed520b3c227">&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,500,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_b7199514-b976-4759-a3bf-ac8d38711f4a"
      decimals="-3"
      id="F_40025c2f-38ce-4270-9a73-35f1d18196ba"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
