<?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_f7c79061-f4dd-4cb1-950e-200ef396d82b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_3d4e72a9-c697-41a4-8f24-93eae98e2a2f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_52d33b95-942a-44e8-890c-0f2faff64415">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_60c7c27e-e77e-484d-9781-80ea8d688419">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_573c0e3f-d941-4607-a52c-73a02eca404d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_c91603ab-26e1-4600-bf6a-8bd05d07d0a0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_b70a02b2-5c34-4181-9a43-50a191514eb6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_11d905db-e5b2-40d3-b63d-625aa0dd0b4f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_613101cf-20c6-42d8-a757-824a03c98a95">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_09b1acf2-4cf5-408e-ba0d-b1b5d445d063">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      id="F_04b4aac8-9ab8-49ac-a4b3-df898a0bfb3d">&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,601,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_f7c79061-f4dd-4cb1-950e-200ef396d82b"
      decimals="-3"
      id="F_d164998e-bcc3-4382-b526-53ca2dfc268b"
      unitRef="U_USD">2601000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
