<?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_b34858c6-c56f-4643-a56e-c9b7c899bafe">
        <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>
    <ffd:OffsetTableNa
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_5c96de94-2c7d-496b-a48b-d0e8c7eab219">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_fac7f6d9-1c99-4fd7-bf80-7ec9d4fde883">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_4d59ac95-0514-4f7a-8be0-2526a433621f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_8759d84b-f149-4610-90a9-945d75a03ed7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_9f777a65-f981-4d52-aff2-7d70efe95bdd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_b7d1af28-7714-4617-b7b4-a75c3ec2ac2f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_52354e7a-4792-4efe-aff0-84348788ae24">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_88b6a0dc-8b25-4234-91e0-a663f02fd18b">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_e7d4010b-574d-4b0a-a243-2a80b371aabc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      id="F_b854ca3a-f9f9-4226-a291-781f619c4001">&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;1,416,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_b34858c6-c56f-4643-a56e-c9b7c899bafe"
      decimals="-3"
      id="F_028c64c9-443f-4ed4-86dc-3e7d6cc048e7"
      unitRef="U_USD">1416000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
