<?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_2592e8fd-453a-474d-a47f-8fc974f134a1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_4ba5a4ff-03ba-4b6c-9b16-c6d5dd1ff840">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_7bd5db76-b391-46bc-a521-257c7adefc0e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_5fa07d2e-05c9-485f-9681-34ff67641a8e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_3d240691-c024-4c12-a6ac-a723529626ba">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_d4b4ba2e-9064-4e79-8db7-f375df1d2fef">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_76c132cf-fa99-4f9f-97a8-69dc25253a2f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_909a7855-707f-4d59-a141-cda1520b4927">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_f77eb1d3-b9d2-4aef-b1de-03f36a7e4385">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_f2b26200-ea26-4e1c-b5ce-83b467cf1d82">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_2592e8fd-453a-474d-a47f-8fc974f134a1"
      id="F_ba549c4a-2f0d-4d53-9cc8-428e8ff65b8e">&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;727,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_2592e8fd-453a-474d-a47f-8fc974f134a1"
      decimals="-3"
      id="F_d86feccc-abee-4ba5-90a1-02eebc75f8ac"
      unitRef="U_USD">727000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
