<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-06</startDate>
            <endDate>2026-01-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_91901308-7c65-4009-ab21-8b951ddc507b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_3e23bbec-1959-4559-a08e-be3ff1b800df">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_bc82fb81-3ea8-4bf8-a784-e29e7b499b35">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_282cb573-35bb-490f-b69e-bb4969578f29">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_8a63a1fe-7375-4db3-98b9-d6a65619bb80">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_ef147411-3b5c-4b31-8515-4e06602ed1a3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_1016a962-5ca6-45c2-82b7-3b834e1d12d9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_31668a83-7cfe-4a85-b49a-fcac8758fe8f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_126b4ad8-ae04-4bcb-837f-807dfc1ea810">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      id="F_9130e401-9fbf-4bc6-ab66-9af55fce1706">&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;2,000,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_8bdb519c-c86f-4f91-a7d0-eb9daed35159"
      decimals="0"
      id="F_30a6ee4a-8439-4fb4-aea0-b3db73785d8b"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
