<?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_d2c77619-76ee-4ef9-a0b4-f55fda9b7362">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_81bb6728-a507-4be3-ae6b-6015f6ec3f5d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_95fb8e15-191c-483c-939b-7a2721c2536f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_1a111cac-1df3-407c-bb9a-9758f38930e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_850883e3-a488-4f0b-b9b1-c45933ff9178">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_2dd166a4-5bde-4ce9-ad86-86cee7571a1e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_a425b7d0-4eda-423b-9d5f-4e0a99ac5bd8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_24467e04-87ef-48e8-ac64-5fc9eead1055">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_2e3c8d6b-d2b0-44e7-9cdc-a0860866b172">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_c8cd39c6-6896-41dd-926a-76dcdc0307a2">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      id="F_f2558d1b-9b25-44e5-bbff-defb88824619">&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;2,198,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_d2c77619-76ee-4ef9-a0b4-f55fda9b7362"
      decimals="0"
      id="F_dd327237-991f-4d08-adfe-0e32012544b9"
      unitRef="U_USD">2198000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
