<?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_eafcf13a-db5e-4afd-8acb-20f996ace0ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_429cd1db-eb42-4220-9c71-75d032acf127">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_08c34ac5-3800-45cb-8121-ef569cf4057e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_43889874-8356-4796-b533-bc5aaf94448d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_20946e8b-6fa8-41b6-84a0-fd78b1c8672c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_e2cd7794-1410-4f51-8c0c-f834bc94d466">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_84016f5a-cc16-4aa5-9081-a30fb2ef763a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_3a1198a6-f727-4469-9cf6-b31a5a4769d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_d83d0409-0111-4cd5-bbfe-8dc87113af15">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_5cdcdfcd-33c8-4087-807f-b42bf0190e03">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      id="F_a3c24d38-2c2e-4741-b8ab-6c3b25312afd">&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,138,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_eafcf13a-db5e-4afd-8acb-20f996ace0ba"
      decimals="-3"
      id="F_4be074fe-9a96-48d3-ae6a-ccdc2b96428e"
      unitRef="U_USD">1138000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
