<?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_7345a661-e6a4-44dd-bd64-054db0f4ad28">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_f1500552-be1b-4391-a71c-4c6807387ec2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_b02824d8-ef23-458f-ae56-96753bb42bab">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_13af75b5-8bc9-4f99-b245-3e4a18446c80">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_d88f1ff6-7ad1-4ab7-9d8a-a8cbd71e43d5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_b83c4526-6947-41e6-9500-42d68ca74775">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_55d9ed98-d8cf-4808-948b-3520459f4827">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_d03694b8-1fc0-4bdd-93d9-7454e53981bd">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_d50975a2-edcf-4bfc-8f36-e01e205365e7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_a6d5a1f6-8deb-4fad-854e-876bc82019a9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      id="F_65101502-eda2-4402-bdf3-cfe908cccf24">&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;623,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_7345a661-e6a4-44dd-bd64-054db0f4ad28"
      decimals="-3"
      id="F_ff6b7c11-a36a-48ef-9754-c6f27a248f8b"
      unitRef="U_USD">623000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
