<?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_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-18</startDate>
            <endDate>2026-03-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_43857114-1366-47af-adb9-0e1e0c4009e4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_a3f3296f-579d-40b0-8196-49064f7cfb1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_e623f825-0e1c-44bb-b83e-7bf0aff0dc4d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_646fc56f-80a8-4206-926e-76e18b3d82f1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_9297772d-1593-48a7-abd6-31ba97248166">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_d63d2925-9d62-49db-a30b-f1fa6d643759">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_e86890dc-c069-4f13-b34a-5bf399a00a6a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_546dcab4-9832-4df2-80d7-cfae00a44858">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_fc7621af-1d79-488f-8a4c-4a3c74eb1bea">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      id="F_891abf41-4d58-4e86-9a72-d62550eb39e3">&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_6aa4eb5a-d2cf-44c5-b689-c92d3f4fc3d3"
      decimals="0"
      id="F_3846d5bf-66ad-4fc4-92a1-74ae62f0a0db"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
