<?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_462b6e99-d176-48a7-a8c1-a4ab601b60dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-12</startDate>
            <endDate>2026-03-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_2b572490-c68e-48a8-8ae4-168d0fd7388d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_497e99f6-84df-47d7-a566-7dcc91efa390">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_3a59f8c6-590e-4580-81b4-0bde3de43906">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_5f02476c-d792-43af-acdb-962c5c00690e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_d732aa48-2e97-48f0-be98-e348fca7cc3c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_2b9e3329-fc13-4a15-a434-bd6deecebed1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_50451e72-c6f2-4d65-8af3-9c3f76081625">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_05035fc3-9efd-49c5-8bb7-63c137a7f365">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_7ff3031a-ecf5-4bad-b275-cc96cfd316ce">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      id="F_15956ec3-d5e7-45ff-b56d-ba49b27eafcc">&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_462b6e99-d176-48a7-a8c1-a4ab601b60dd"
      decimals="0"
      id="F_06e8ed4e-7451-4c23-9e74-d16b6e3c4512"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
