<?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_17c31bb0-75dc-46f6-a697-1bdf8f75d50d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-19</startDate>
            <endDate>2026-03-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_29390293-186e-44b2-a11b-abf8999a09b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_67c970f1-ad99-4a47-86dc-dc601cfc939a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_c29ef330-6cb1-4d6c-bd3a-2414fa3f03e9">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_743d7cbc-bc30-48c9-a7d5-c0f3b61ab4bd">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_d52d582d-5fc5-4af9-aab3-171228e2632e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_293e5b7f-b061-4120-ace5-d26895032cb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_40943196-ca17-4edc-aaf4-65c0a72f07d4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_dcf41a57-d0fd-4616-be7d-cd22dabb2d9d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_989582db-7e5a-415b-998c-3016693b18e0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      id="F_cebe1c49-7fb4-4bd8-9a67-5322b36952f0">&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;13,577,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_17c31bb0-75dc-46f6-a697-1bdf8f75d50d"
      decimals="0"
      id="F_3792e511-deb0-4146-ad8a-9e4c2393a318"
      unitRef="U_USD">13577000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
