<?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_117f42cc-55ff-4b6f-aedd-1f65db2028be">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_57115c29-24f4-4112-bf63-8981ea7ef1c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_4e92ff8d-8d6c-4289-8e35-3d0630919cca">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_d84dc1fb-9594-46ad-a573-027a9ac0bf12">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_b1d0b6f3-15a4-491e-b946-56a551999439">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_8a404aab-a342-41f2-9405-81e8c27ec427">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_0aad4961-cda9-4fa1-99fb-5ebb36efe356">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_29052bfd-050d-4dc0-9df3-fef04bfa387c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_e8595c77-a0d4-4d8b-890f-091c1d0cd5e1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_a4ac222f-019f-47c2-b94a-81d1e6074c82">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      id="F_0b7b35a8-8eee-463e-9e12-ffeffa1c5a2b">&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;5,197,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_117f42cc-55ff-4b6f-aedd-1f65db2028be"
      decimals="-3"
      id="F_c9bddd7f-e05c-43ed-8029-6bd94319ce7a"
      unitRef="U_USD">5197000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
