<?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_cb3d2761-9927-491d-b80e-740e7b3277bf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_7fb233e6-5318-4df1-86d4-cc5ad50d43b3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_40056470-0512-443f-b668-e1f9a56d7744">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_87c4aabd-4399-4d81-bcf4-de077819a884">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_4e698d20-6469-42c8-ad12-f488b9bd905b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_3be082cb-f63f-403f-9120-f31533ec7e15">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_299e12d6-8c10-479f-8558-a2b2a39b2502">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_a45d977d-f463-4c43-920e-e4ddc7815007">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_724ea463-c3a6-4409-9eb3-3abc7e5791cb">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_d62df1a2-bbcb-471c-8bc0-c352772eed08">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cb3d2761-9927-491d-b80e-740e7b3277bf"
      id="F_9325128b-c08a-4bd2-aa5f-010e5cff477a">&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;2,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_cb3d2761-9927-491d-b80e-740e7b3277bf"
      decimals="-6"
      id="F_64d61a15-a03e-4db7-8a5d-8203e4eb9568"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
