<?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_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_0bc499c1-16c5-488c-a35d-75e6660ca5bb">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_ddfde8ba-5c22-4394-92bf-7e534dd7a94a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_67a76949-78e5-4201-b508-9812a730a948">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_fa1dc2a1-b170-4d39-88a9-90dd149df50d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_c70b2130-6818-420e-b785-d376c4b9e36f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_7954fc49-f56b-4526-a11b-ec6467072a42">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_0e47c7aa-e3c7-4c87-937b-9bcea9087215">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_f3c8836e-b61e-4093-8479-ddf234862e7f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_83b7db3c-feb2-43c4-9bea-05d5a2157517">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      id="F_8dc4f9af-6356-4257-b975-56eab3a92445">&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;1,000,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_bb5571da-d3e3-40a1-bb5c-f3f86f0d0517"
      decimals="0"
      id="F_f08dde04-073d-4baf-94ba-6dfef71907a5"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
