<?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_8be02a56-227d-437c-9908-0ac1f9c709a7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_08d08656-15b9-4a03-9e1a-09527772e103">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_8c5e3d1e-ced8-4890-8fd2-ffc5997c8189">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_75777225-44ea-4cd4-a476-f31b8340885f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_826c2740-dba3-4ce8-9ba8-2554fa239e71">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_995ba6de-ea1d-403d-9e94-e9b7546bbf5d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_1faff0db-5ce6-450d-8ed8-cef4ad4345d9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_7defbbd7-02bc-4fbb-a92f-eccce20c17cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_18aad7be-a2f6-4127-8b21-00d72d1a22d6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_e9c27198-53d7-41d1-bc1e-be90c0efbdb1">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8be02a56-227d-437c-9908-0ac1f9c709a7"
      id="F_3cfc9912-2cc3-442c-b071-c5fc38758006">&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,800,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_8be02a56-227d-437c-9908-0ac1f9c709a7"
      decimals="-3"
      id="F_39b46986-81fc-4c76-9bc6-a4946538ca12"
      unitRef="U_USD">2800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
