<?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_8c591bb6-1838-43a3-8637-f6ed0360eedb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-21</startDate>
            <endDate>2026-01-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_5117b1ef-5a02-487e-890d-0f049edae21a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_ffb35623-621a-42df-9603-bcaf4b9e822e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_811034be-136f-45d0-92c3-fddafea70f21">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_3563c8e8-af1e-4c9b-afe0-9172383ded73">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_704e483c-bb62-43cc-a509-2ccda0f3fd4d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_f86412c5-f6f5-40bb-90de-26e4c0d191c1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_abf38d06-37d0-4b6e-b82d-9315591703e5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_1ecbfbc0-f647-4a60-832b-b895383b5c9e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_31a9e11b-8424-473c-90d9-aee37d8701de">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      id="F_b73b3412-e4ce-410c-a365-da70fd65b021">&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;952,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_8c591bb6-1838-43a3-8637-f6ed0360eedb"
      decimals="0"
      id="F_67cc549a-22a7-4555-9ab8-5df4220e02e5"
      unitRef="U_USD">952000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
