<?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_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf">
        <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:OffsetTableNa
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_009009ae-a52e-4410-9e81-3cf182bf2526">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_a2156ae1-c7fc-40e0-b284-53bcd759bdcd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_4b0ce554-24ff-40d9-91ce-3fff954f9496">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_26b37f7f-b2b4-4dc0-b08d-91857c46e3c5">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_90fd11c5-38e9-4529-9d5f-241d2754b239">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_e2e6f73c-4519-44f3-b847-0e0c1e79c90b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_b5a4d869-30a5-4db3-90b6-a84c8f985e33">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_7875aba9-3661-4bf7-8033-710f4b013ce9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_e54a2cc8-d566-4f0d-ae17-24aa6ad19730">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      id="F_ccc84300-1439-472e-80df-817193681dd1">&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,311,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_9d0cdf5b-8039-4832-8341-ce3f4a46a7cf"
      decimals="0"
      id="F_77da9987-579f-4852-b5a6-bf44789f0045"
      unitRef="U_USD">1311000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
