<?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_ad8e7536-c5a5-49c1-9394-47fd3b004bd7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_bab8bd46-b3d2-44c1-ab64-42a50fb2dd81">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_25c71c3f-c1e0-4251-aece-7e05c3f20f39">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_32d12162-b741-48be-b7d0-151d53a52548">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_afa51bd5-03e0-405a-b725-c2e2506b5e99">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_5e9053ec-2a69-4a97-8adf-04bd1eab41cb">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_cefd05bb-51a4-4e67-bfec-019ba01d46b1">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_f0c329df-72c6-4b69-b1b9-04337ae6decd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_69ee017d-a190-49f6-9213-7b02f96734a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_aaaa0212-1902-417b-ae4a-be7fe82ea4c8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      id="F_b8340bb8-0f0b-4a33-a3de-ed094ab3914f">&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,816,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_ad8e7536-c5a5-49c1-9394-47fd3b004bd7"
      decimals="0"
      id="F_fb0de9aa-7a6f-4792-a1fe-552883c57f18"
      unitRef="U_USD">1816000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
