<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_44d6d9b2-6f22-4394-908a-488bea710891">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-08</startDate>
            <endDate>2026-05-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_b16dc93f-8ba5-4b9f-908b-8b9f2fac1404">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_bb95ce22-3a00-4d18-816f-f6e72eb9b337">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_c35fee1b-15dd-482e-a9fa-2d42ed0d52bb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_dac1894a-6782-4203-b1e7-42c484459675">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_7ce4c513-1cc9-4f68-afa2-9c1e9c3c24c6">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_5e36e669-d873-4203-bb8d-745dae958790">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_0de11e2f-0c4c-4e3e-960b-68bc650400e5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_59420fb0-218a-41f6-b8cd-c145d90e38c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_fbab746d-46db-450b-a410-5673596bfa22">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_44d6d9b2-6f22-4394-908a-488bea710891"
      id="F_83c4897f-2c8f-4e48-bfee-c9a37831800b">&lt;p style="font-size:10pt;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;12,000,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_44d6d9b2-6f22-4394-908a-488bea710891"
      decimals="0"
      id="F_3fad14a9-19f8-4ee4-8860-a3f3ce27a788"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
