<?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_1173950a-4d3f-4ff8-b669-413af9a4b083">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-13</startDate>
            <endDate>2026-03-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_2899e107-e06d-4a62-b64b-5db1e79bc4ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_7730e456-c8c3-4cc8-9726-651797284476">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_a604b5bd-7f3e-49d6-8392-d9672d8b6376">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_4b4ede11-b45a-48be-91e9-732c4041d518">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_ee3f60c7-c899-4999-ad33-74b958754a38">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_7e39fa26-0fb8-4a34-9abb-6fd80c80bde1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_da86e67f-0e30-4bda-ad6b-53f4a2ddb016">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_0e23e683-9aa5-4c2f-ac26-61aa1a164281">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_012b71ec-5319-467c-86b1-5b3e0d484dc8">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1173950a-4d3f-4ff8-b669-413af9a4b083"
      id="F_a2b9a841-a88f-47e2-86b0-73c131bdaa66">&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,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_1173950a-4d3f-4ff8-b669-413af9a4b083"
      decimals="0"
      id="F_50ecd771-1c8a-423f-be7d-b06264aa84ce"
      unitRef="U_USD">2500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
