<?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_9e337964-37d8-4f08-bdbb-5e2ab57165c4">
        <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:FormTp
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_259dbcc6-c680-494d-a32b-9f36223fdc7a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_a87c6620-f737-4ed6-9b6c-546b25064ab1">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_20821b47-31fd-4bea-86bd-85aafba2e5ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_6a17abb0-13a2-4f00-9db2-52e7f26960f5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_f02482be-4d88-4606-9077-1b408d112c10">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_a936d221-22b4-4a95-ae2e-a8eaeef14dbf">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_6e9ccde2-e5ef-4f8d-b2ba-59a287111df4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_a27679ee-de20-4f8f-b6e1-06fb065d8df4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_054db609-a654-4264-b1a0-241298ed2612">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      id="F_6963631e-2442-4236-8a01-86bf86a5ddea">&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,381,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_9e337964-37d8-4f08-bdbb-5e2ab57165c4"
      decimals="0"
      id="F_3f4a72e8-8e6c-41b6-a3ed-a06002fa87ff"
      unitRef="U_USD">3381000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
