<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_bf3892ac-0437-4def-80d2-372f1ebd827f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_bac89a7b-ad61-4c7d-80f6-0e45e1d004f4">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_2a397e03-6c6a-4915-848e-1adb59f319c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_f86c6b30-3591-4f7e-8d25-92893da9ac3a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_65208d3b-c2f7-424c-b118-58d28c050fb4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_a6f49142-ac52-464b-a5d8-e6a949d37dc6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_dd58854c-d3c5-4ad8-a62b-368de2dba812">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_ebecd99a-212a-41b8-930b-2a298828d56d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_509597d8-3695-4169-af1d-4c208740dde6">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_bd0aeed7-c791-49ed-bd6f-ac291d926c0d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bf3892ac-0437-4def-80d2-372f1ebd827f"
      id="F_352956b6-7534-4397-aef4-2eef2ac0f71e">&lt;p style="tab-size:26.66px;font-size:12pt;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,700,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_bf3892ac-0437-4def-80d2-372f1ebd827f"
      decimals="-3"
      id="F_ebc1f354-cdac-4cf8-aed4-8347e8f49b89"
      unitRef="U_USD">2700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
