<?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_3b5af250-44bd-45dc-bb7b-87fa08f3c478">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_084cd9a8-fd3a-4dbd-a653-b098882d734c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_d1419972-e5ec-48c4-94ae-091f226937f9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_791efe3d-e64e-4f4f-9f7e-bf37bcd94f7a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_7aa9c294-08d2-4f2e-acc7-5f709566daaf">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_04044e7a-006c-4aba-927c-a42ae95385f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_a6e84b2a-f08a-40db-9774-80081c6f8840">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_aa901341-437d-4fbb-ad23-15601ef8860f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_2cd6d0e6-5d86-4d4e-88be-6630c2e5c398">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_c1e9530a-c558-4903-89c0-09b07f559673">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      id="F_11e98ca2-e3ee-4bc1-b26a-0a613ade8535">&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;3,567,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_3b5af250-44bd-45dc-bb7b-87fa08f3c478"
      decimals="-3"
      id="F_0eff3d13-c1ec-4f89-8307-fb8ab539a215"
      unitRef="U_USD">3567000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
