<?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_513bf678-8dd5-4612-ba4d-715eb4b3c00a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_1512bf88-6191-42e5-9e67-61784b7e482e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_2ccfb19c-dcb0-4f2a-b9d0-fe0f3320b36d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_f9510ae4-4214-4d46-b40c-85a0a2c10582">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_a93e5c95-532a-46cd-8ffa-a537c8dd6c4c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_fb1266a1-e883-45c9-a0df-460f0f97b5fc">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_148449ca-f53d-41e6-96ab-f84a3f939dd8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_fc6f8748-49f4-4b41-88e1-bf910bb9f8ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_91cf8a1b-30dc-46bd-9894-87c49f57c8e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_fd88ee61-2550-431e-b4d4-92978f8dc8c5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      id="F_429e5c73-cec4-4edc-aa8c-fd16c02d40dd">&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;280,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_513bf678-8dd5-4612-ba4d-715eb4b3c00a"
      decimals="-3"
      id="F_8ba77600-0b9c-46ef-8644-c3a0f10f9d0d"
      unitRef="U_USD">280000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
