<?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_c904bbef-ccff-417b-a9f0-160e9f25d184">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_50dea036-8c0b-43c0-b18e-185a8558b026">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_101987af-3f4e-4a42-93b0-9d48c14909af">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_7c886252-d9d5-4d3a-ba7b-19a222c78ff4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_5690fb33-b4cd-4206-b513-19ff4da43eca">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_0c5874d6-40be-474e-b9d8-6e2a27aaeaf9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_448798ae-fb38-4da6-ab4e-c2b011b86b09">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_11d7f94e-f2a1-4a3e-810a-b86dfd0f110a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_e21e4467-fbcb-48d9-a2f6-be774990fdab">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_665191d1-4b43-48dc-ac3a-2171db5ff796">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c904bbef-ccff-417b-a9f0-160e9f25d184"
      id="F_37ca4b2f-25bf-419c-a094-f2f0e6b7c0a2">&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;22,090,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_c904bbef-ccff-417b-a9f0-160e9f25d184"
      decimals="-3"
      id="F_db1204c1-b71a-4eff-bdbf-b15b3644bb8c"
      unitRef="U_USD">22090000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
