<?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_6ad5bb30-b29c-437b-bf65-b22ad279851f">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_205520a7-f250-4234-a423-9bb3046d1cf4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_0158371c-7fa1-4868-b515-3e3102e6b843">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_fc5d5f00-7a76-4153-b661-01edd563cd15">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_62cbb57e-72b8-4b6d-94d9-039a05912192">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_c8ac6057-2e0e-4ce2-8d0a-685aafab64a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_8cc7d1f4-6382-4d8a-b6bc-b92c0ec1f1af">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_a23ddda8-db46-48c1-b780-14fe228b9e80">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_e8c0eb59-4b38-4a8c-ab69-90fd722ccd3e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_acbd10ca-83a7-42ab-ae82-6a47703e7d64">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      id="F_a4976f1a-44cf-42f7-84b2-e7afd5e9dc0a">&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,322,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_6ad5bb30-b29c-437b-bf65-b22ad279851f"
      decimals="0"
      id="F_494e35be-f0fc-4a28-ada3-113aa19beb42"
      unitRef="U_USD">2322000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
