<?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_47932ec3-2ac3-4c0b-af88-0a2e371b0b57">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_6182944b-b27b-4f9a-9fd3-300be75b100a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_f7dbfbd1-838e-4382-b6cb-77112724d5ed">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_f4c2105b-b686-476f-b56a-2f17ed8b361c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_d7343962-66d8-4633-9856-230421aecd46">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_8f5f6442-3076-4a75-b414-f10ed40dd332">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_e37b6d47-0aaf-4ced-936a-b4407f1cb2de">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_e89d8324-e1c6-4567-ad26-9dbdf1691b28">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_0dcde7a5-9135-43b5-a333-ca7e87506237">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_c0264b37-7d8b-4e4e-96a3-b7bc1d934e70">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      id="F_6cb0026a-9a80-48db-9a5f-e9871c1f1b7d">&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;510,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_47932ec3-2ac3-4c0b-af88-0a2e371b0b57"
      decimals="0"
      id="F_30db88c7-6d50-419b-b850-71cb114d46b9"
      unitRef="U_USD">510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
