<?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_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3">
        <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:FeeExhibitTp
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_b60c2fff-c07c-44eb-9cf7-832df0eef22f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_3df70151-abbf-452a-963a-605075e9f375">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_edb573ff-5932-4300-aea6-10dbe2870264">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_9f16c247-f047-4dd5-8690-d27e610d3cc4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_5f89ff29-9eaa-4d29-83b2-23eb7919efc6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_df69a4b6-b616-45c4-969f-eac781f19a0c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_3b63ec34-7746-4670-959e-0dfbf410d332">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_e64902db-44a6-4ae5-8638-13ad1e1c8f48">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_fc71a716-9690-490c-b954-a8b55385d4dc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      id="F_7f328c99-5bc9-42fe-9811-8c5bcf77db4d">&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,079,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_dbc8ea6a-2986-4845-b64b-a14fc28b9cd3"
      decimals="0"
      id="F_9f0c0424-d0d0-4928-9ee8-d5f69d7a30e3"
      unitRef="U_USD">3079000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
