<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_c0a89287-33ef-4160-abb5-ddd6ace9b961">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_574cb0fa-6076-4c0f-86de-16a40b02fc17">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_391f6e18-9d52-46de-bf7b-dba7727b2b14">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_75ab3cb9-6cd6-4917-bdee-c2f32575ae84">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_6abeecbe-e862-4acc-bae1-8ef987fa9777">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_6b61e5fd-a775-4f35-b480-9e359c64ce85">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_87c82da1-ce07-493f-afbf-9dab51b87507">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_6a29d56c-99d0-45c1-9628-0d0c742f8f74">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_97663cbc-64fe-4ab6-a041-d70f1870ee33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_727b3734-3138-4976-9918-e0334da9cd8c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      id="F_d2279955-b4cb-412b-a269-161d94540bc6">&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;6,939,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_c0a89287-33ef-4160-abb5-ddd6ace9b961"
      decimals="0"
      id="F_86a0b54a-22d5-44c6-a2c6-0224a232f203"
      unitRef="U_USD">6939000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
