<?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_fa9df8ac-c0df-4c02-83ec-b9923119cb34">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_3e3668e9-b063-43e8-88db-dec03c52f8db">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_4b3e999e-7660-48bb-91ec-8976f4e386b0">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_afc09268-7d22-4e91-bb23-bfb321db1a90">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_0fd842b1-3195-488e-b913-d82608412944">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_5dcd0f1b-9971-46a0-b4df-a53ead7610be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_5e556f79-d573-4535-9a73-e1b79352a2da">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_5e5fa4bc-eded-42c7-b772-e34e3c964f63">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_4d525b9f-895e-4b7c-a16f-1586109ef264">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_ac4d626c-2967-43cc-a3bb-0929ab7995ec">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      id="F_98d5ac52-003e-420e-b694-ebe5d8d4fff7">&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;13,000,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_fa9df8ac-c0df-4c02-83ec-b9923119cb34"
      decimals="-6"
      id="F_5b2c6cab-b61b-4417-b825-c016f7112383"
      unitRef="U_USD">13000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
