<?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_a3dfd369-f719-45e1-b3a6-31aa3870a72c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_6b5e0916-af24-4f2a-9f70-004d15bbc443">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_fc34ceeb-587d-41a3-91dd-9e512b885dca">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_eac1c12a-ce65-4d18-bdef-ea055555dc19">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_2892f2e3-7a81-45f7-95e4-fc9296d6ff30">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_9f9cfc35-7fd4-4988-8c19-70678f5d0daa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_9fe03821-4f2a-434a-b18a-2793ec8fb97b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_30143ecf-bbb5-471b-9e3c-3c1150f527fa">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_01bee152-5388-4b03-a949-3f849a5faf3b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_27370701-1a4e-4189-ba9e-96dac6117a2a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      id="F_628df839-b262-4afd-9190-b22918d77dfc">&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,350,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_a3dfd369-f719-45e1-b3a6-31aa3870a72c"
      decimals="0"
      id="F_48176591-33ff-47c5-91ca-3b2b84b941d8"
      unitRef="U_USD">3350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
