<?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_ff664c99-a753-4161-9283-83ebf86da540">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_c69e8f57-791b-4f16-8d11-cb7055825ae7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_730dd533-2055-4d6c-abda-4c540bb685d4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_00d9ec78-f980-45de-94dc-77d14c8ea51a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_67bb50f6-5dd5-4f45-8f66-18ab9cafe28f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_e5e401cd-0264-4465-addf-b68dc9455427">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_ba5afbbe-780c-4397-9204-5030abc7cee2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_109aa1d8-4127-4a76-a434-aff5359f6b37">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_95f80e05-5b52-42ac-ba41-8e78cac7a979">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_ab3ceb8e-15aa-4b19-9eaa-ec27eb0ef8b0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ff664c99-a753-4161-9283-83ebf86da540"
      id="F_49f39b4e-f427-4918-aeac-49ffda724a24">&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,616,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_ff664c99-a753-4161-9283-83ebf86da540"
      decimals="-3"
      id="F_253a009e-89c0-42d4-8196-b74ca5164697"
      unitRef="U_USD">3616000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
