<?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_5973d0d0-877f-444c-b3ec-ac2c72f928bb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_cd2627f7-89a3-4ef0-a47b-aa9ccac083be">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_e5a1f458-8e60-412f-ba62-c9c58bcbb558">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_25561b38-ebae-4e8a-b6ec-b9c8b7bf7008">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_720b8ad7-c386-431c-8b92-37c438824833">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_2e75c73a-86b1-41de-a58a-ae88b5e97eb9">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_5ea6c02a-5cf2-4601-921d-5a7d507ebb80">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_d65b0eb8-6688-4d9c-8927-7618862bdd75">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_e5be268f-5652-4333-b715-062d2181c8bc">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_addb28e2-a092-4182-bad9-aeef715c57a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      id="F_060ae428-e4a9-4279-ad3a-0d86e40c99bb">&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;1,278,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_5973d0d0-877f-444c-b3ec-ac2c72f928bb"
      decimals="-3"
      id="F_decad4ab-6448-4056-b3d8-bb933ec48c5c"
      unitRef="U_USD">1278000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
