<?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_862a0c14-0e1c-415b-99d9-8169f547ff31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_d74004df-9fcd-4c4d-8c41-097395f06f79">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_a6223d01-0cac-4341-b94c-1d52d5af71b7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_bf7b321d-c82a-4cc6-8e61-9db8b0f13070">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_1705131f-85c3-4092-b8af-881b66a893f5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_c6de0917-9ccb-47b7-bc91-92ba213de524">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_e711c0b3-a2c7-4c5b-9924-c42e6859efc7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_299823e9-9f4c-40bc-921d-639ce39a9cfc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_1fc182ca-f50c-4381-a230-201022025f2b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_9933e4c4-567a-4566-9f82-953efb8470de">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_862a0c14-0e1c-415b-99d9-8169f547ff31"
      id="F_82af98c6-8e90-4bb8-a643-fb012c252e0a">&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,609,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_862a0c14-0e1c-415b-99d9-8169f547ff31"
      decimals="0"
      id="F_fbcb3826-217c-446c-8ccf-2c5daff39e36"
      unitRef="U_USD">3609000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
