<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_f36b6835-9d38-421a-aae2-1590270c421d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_7b8296c2-2207-416a-a860-9d1205fe4473">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_f80c8d85-3e05-4785-b445-2247cd8e2cc8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_13198e99-cbb5-4e30-a38d-2b86bdfad53a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_9c6aeaac-668c-45ac-8b22-2d3db718fb8f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_c2cd1f49-8fec-49fd-8829-9e89ad74d02a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_68783691-2b3a-4340-a4e2-991d8e203d39">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_e97ec348-6504-4d9f-a809-99b9e6dacbea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_66c3f797-0625-4707-bff3-bd1d2b572ec2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_4aa6dce2-7077-4df0-8aaa-d2944d5be327">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f36b6835-9d38-421a-aae2-1590270c421d"
      id="F_fc00d88e-ce84-4254-b7c8-13bcb697f4b8">&lt;p style="tab-size:26.66px;font-size:12pt;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;8,358,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_f36b6835-9d38-421a-aae2-1590270c421d"
      decimals="-3"
      id="F_aa114cba-d8fb-4152-a05b-385de07ed156"
      unitRef="U_USD">8358000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
