<?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_21d59df9-17e6-4450-b82e-9f7edd6e81c7">
        <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_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_54c22d51-1d61-4661-9925-201db39aba6b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_4d87dd7d-44d4-4a8c-aef6-403a62903971">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_f464095b-88e4-4eb8-bbab-d5252e77847f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_bad1e8fa-8b28-4785-a6db-8a3280964974">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_8f466730-a213-4f29-9cd2-c555954a482b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_c94e8b41-8b1f-4767-9f7f-aaae337704b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_68d298c4-e85d-45dd-8c6d-e872575ececf">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_b0136269-5a23-42c9-ae04-df4b3d012785">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_c83c0d50-c746-42dc-b6b5-dc2c19cda4b3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      id="F_f7e3fae4-fcbd-4095-ba09-125a0dc79d58">&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,925,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_21d59df9-17e6-4450-b82e-9f7edd6e81c7"
      decimals="0"
      id="F_15084a49-3c99-4f3c-96cc-1a3d2ef47ae1"
      unitRef="U_USD">1925000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
