<?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_0204f531-8ca1-40bb-86c3-d4d48dc53dc6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_4845a952-44f0-4e64-9cf7-38aac477fbcb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_0a48bca9-b947-450b-ad27-f53492822ab6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_f7ebd8c3-3a1f-431a-a54f-11b01ed16ba6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_73479ba1-a5cb-4122-99e5-d5e5611c28b7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_ab57e8bd-6e6a-4076-a7e0-9c2118d8c10f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_3c0f10c0-26ee-4238-bd0c-6241e1d1069e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_307c81e9-d3ff-478a-8db0-82fb41b5cf02">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_dd678dd2-6b37-475b-ba1c-489096298a79">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_bcf8e232-d298-45c0-bf3e-c237193be620">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      id="F_7df8811f-a39a-47ad-90de-0317ced5379e">&lt;p style="font-size:10pt;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,355,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_0204f531-8ca1-40bb-86c3-d4d48dc53dc6"
      decimals="-3"
      id="F_4c9ae125-da84-4950-9c85-884c94a0debd"
      unitRef="U_USD">1355000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
