<?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_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_cf8de899-6c56-4e24-ba44-96f505088f30">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_a66794aa-8519-4375-8c44-c998a16caaf9">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_7611b145-dc26-4653-9c07-45440a6e3019">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_6db7d2bf-2894-44e2-a14a-4f806c1d79e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_36bd66fd-3856-45f2-ae2d-0aff2ffb5306">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_a087db50-3841-4d79-a243-56c02382dd3d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_3132fa83-ee40-47ae-94da-a2cb6d8c9651">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_d3b3fb94-31a3-44e7-99c9-4836179b4292">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_d3413bef-7887-48f4-b6d8-4606c0f95b71">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      id="F_1a19707d-8f12-4fd3-b4ed-71455fbc839a">&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;800,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_d8d59ac5-2348-49ef-82b0-a2d73c3d2dd3"
      decimals="-3"
      id="F_8e56f9ab-aec3-48e2-9cce-240bbd3bd099"
      unitRef="U_USD">800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
