<?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_3bb66fd7-1a7a-4743-abe0-fb3221494358">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_d9324a55-0eea-4096-8e71-e5380c8a6516">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_8c2183d0-3380-4b9f-97a5-28a8bc1e7ea4">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_55e691ef-95e5-4e31-a651-a32c036bdeed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_22305048-7dba-4cfe-bc88-9d8062af66a0">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_376f7f09-0de5-4e2b-aceb-4fdd54950043">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_3ca6ec22-842b-484d-b30f-42f17d45e4be">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_b91732a1-d04e-45f9-a89d-332ea6b01d56">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_f9ee7b64-e473-45f2-9e90-21710455e65e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_6554e750-32ab-41a2-8e0f-609d6d9865be">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      id="F_1cde85c5-c39f-49df-a36f-03fabf46345f">&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;15,244,940&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_3bb66fd7-1a7a-4743-abe0-fb3221494358"
      decimals="0"
      id="F_0a0b623f-6470-4de1-bbe6-43d87be67f98"
      unitRef="U_USD">15244940</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
