<?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_25122693-aaf8-46f3-9f93-6c515991649f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-05</startDate>
            <endDate>2026-11-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_463a4cec-eaad-4fb6-b139-6b129bb07f59">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_7160bc17-86e1-4ece-ae2a-c12f57794f26">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_6aae3967-4567-479f-a384-ee941534f2f6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_23b9653c-9f92-4788-83dd-6d87cad73c7c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_450f34bd-7798-4061-954c-563ecb79edad">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_761fa212-a679-4bdf-9920-941948aca20d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_e9922601-f02b-41e1-84dc-442d438f6012">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_13c1976d-4294-42c4-b3c7-612f1ed1a7ca">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_5989f1b0-c22e-426d-993c-d4f2f69a778e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_25122693-aaf8-46f3-9f93-6c515991649f"
      id="F_600837d8-eed0-4390-a21a-cfe0257d57cd">&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;400,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_25122693-aaf8-46f3-9f93-6c515991649f"
      decimals="-3"
      id="F_22d0e61c-9630-4a2b-abd3-a9c5ae024d9b"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
