<?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_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_6e49fc86-44a7-4571-875d-aea590552b74">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_e791d7f8-dcd2-4ec4-b26e-e1980cf63f28">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_5bc4ee9c-b4a1-472c-82c5-c905e53d98da">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_5300f178-8fd3-400a-8f1a-2319f1087560">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_c64e5d43-c8d3-4997-9717-8f4cfafc32ae">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_edff8af7-70ee-4c52-8c70-8be08d755706">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_29be2b00-fc04-4e6f-966a-bc52a4611d22">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_13aaa3d8-4735-4085-8779-5cf871773442">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_5775902d-6675-4be4-a508-a650b9c63d39">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      id="F_0de75f72-fc38-4d21-9826-4cc4225d94d2">&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;3,669,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_be04c7c3-3cc1-43fd-afbb-9a6505bd7e04"
      decimals="-3"
      id="F_ddc1adaa-bb44-44b5-9631-99a2ac6deb66"
      unitRef="U_USD">3669000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
