<?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_60194045-4e76-4c17-a59d-d382b7beefc1">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_c8036451-0c30-46dc-8bc2-86d8fcb89b57">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_cf02cf64-f341-4482-b0f9-b961a779e983">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_a649cab0-a9a5-42f9-8dab-058d9ee43849">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_7b4a5de4-3edd-48d3-a71b-1a2bad86f148">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_94e99d1e-ada0-483d-ae40-956f4d7595bf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_17574482-6d9e-45d1-bb49-9f0a88e61c92">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_87072bc4-1591-4ba9-9928-6de590f42148">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_b333a00a-d7d5-4e33-ab85-555567d5bfa5">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_8514c95c-5932-48b8-a54e-b2ae936f53f3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_60194045-4e76-4c17-a59d-d382b7beefc1"
      id="F_bf545b0a-250a-4793-a7e2-fa693d8ad8ea">&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;1,917,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_60194045-4e76-4c17-a59d-d382b7beefc1"
      decimals="0"
      id="F_3cf6aca3-b19d-4360-bc2a-81c1014f1d14"
      unitRef="U_USD">1917000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
