<?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_d9705e3d-616d-4198-93a3-53e66ae3ac18">
        <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:FeeExhibitTp
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_864f0849-3d33-4f1e-ae95-b00f76f8948e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_bad16d45-3575-422c-b195-f7fca768e067">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_260c4eb9-2438-419b-bb92-e9459cee66f6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_7a22cc33-e33d-44a5-9b26-316afa2f7c70">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_a1b3aed6-1a31-484b-87fb-aed7488eb496">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_5ceacc5f-0e7c-425a-afc7-ecc700269f67">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_9b3b7b44-e989-44ba-9af4-b5f688e015f4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_43bb1c66-2f93-4a4b-bfc3-258fbd8c08df">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_ab025cb9-0982-47e8-baa1-b58ae01676b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      id="F_b77725d8-5249-417e-b3ff-4ff53d040d39">&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;1,335,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_d9705e3d-616d-4198-93a3-53e66ae3ac18"
      decimals="0"
      id="F_a1e4db4c-77b6-4455-93c9-1dd7ad6fa571"
      unitRef="U_USD">1335000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
