<?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_cfb2b522-0b66-472a-bff0-6eae8c18eb1c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_402e6606-3a47-44c0-ac67-cc1d465440a6">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_ad5d7c2c-fdd0-4428-a22b-eb3fc78be473">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_ebe9e393-12b6-46fa-85c4-207106305531">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_f25527e7-a862-415f-862e-e463cbc0f701">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_86e8932b-4d21-4201-a0b7-f02c8dbc3abe">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_f364e7b7-5cac-4ce2-80c4-60b5b5395e6c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_b3bf0a79-d375-4a69-98e4-5e1f31fd73d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_f449476f-8048-4fd4-aeb9-029102c2e786">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_27ebff31-a962-4a41-a887-95f8afb1c69a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      id="F_60775afe-e678-4c54-ae1f-5654e417b482">&lt;p style="tab-size:26.66px;font-size:12pt;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,341,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_cfb2b522-0b66-472a-bff0-6eae8c18eb1c"
      decimals="-3"
      id="F_e07e26a1-1351-4c48-acdf-120ef897bec4"
      unitRef="U_USD">1341000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
