<?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_53068249-d6f9-43f8-bedc-14b67e802cba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_d8b07fab-0ed3-44b2-9781-2ed6c23b22c3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_ded67653-099c-4f69-859c-729848acb76d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_adbd20f1-1122-4df0-94bd-cd335e42ede0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_c0dc1f7a-64cc-43f8-b13b-021f35feaac6">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_87da1a47-a99b-4700-aafc-3d2759b4167d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_8dd58f41-2f02-4928-ae25-04889fdcdf56">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_f70d4f01-da08-4d7c-a279-a5b26331b030">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_fcc159e6-8cfd-46e2-8bdd-a867d636144d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_eaa88ec9-64b4-41f0-8513-3bbc2975a509">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_53068249-d6f9-43f8-bedc-14b67e802cba"
      id="F_2657ce24-6d7f-4144-a655-9afdee63ddbe">&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,295,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_53068249-d6f9-43f8-bedc-14b67e802cba"
      decimals="-3"
      id="F_439c44f1-fb0a-420a-9b3b-c34e436b710c"
      unitRef="U_USD">3295000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
