<?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_a089ac42-323b-404a-85b1-8e2b6741a133">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-19</startDate>
            <endDate>2026-03-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_3fe63c7b-97c2-44d7-a8ee-e94b9d07702d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_6f607de3-5a70-4140-97c9-187ac3419a4f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_d911d3d1-5adb-4919-ad3b-135e6c243edf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_41a5fcc0-4526-4ffa-9310-5ee90ad762c9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_812b3c8d-0722-45f8-a6eb-02a9028cf562">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_cbb16b93-6003-4010-b45f-e8ecfbe93c21">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_de16d6d9-9af9-48ee-b45a-453358794815">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_414884c8-275f-412f-91c6-e7dcc3f9fbca">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_8458f545-4418-4a36-89ae-39587a901736">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a089ac42-323b-404a-85b1-8e2b6741a133"
      id="F_be1802d0-b67c-4604-956b-4f8163e75fef">&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;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_a089ac42-323b-404a-85b1-8e2b6741a133"
      decimals="0"
      id="F_b375e2fb-20b8-40a6-b774-2903c19ae0cb"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
