<?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_44380205-d3e3-4463-b92a-89f6d48a18da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_c7fa324e-f3e9-4e16-a148-84557c8eae45">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_cc212c9d-5832-4a5c-80d8-5dd7c554b2cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_795005e1-0a4d-488c-afc4-9e87bd3c589e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_94c2fc9d-8ae9-4598-bf6b-5dcff7325de8">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_240a09a4-f8e9-42d2-b43d-6d3c277f1d5d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_15fdd007-08d4-409b-8b3b-5ae1cab85b19">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_d890b25d-50c4-4f04-94a4-0438de6db937">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_cd186434-cc69-4d3c-8d5b-ae0acf3bb29f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_f9191621-9887-400f-84be-a8b58cd3fb04">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_44380205-d3e3-4463-b92a-89f6d48a18da"
      id="F_10d3fed2-0c33-48d5-81ee-877e1904bd08">&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;540,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_44380205-d3e3-4463-b92a-89f6d48a18da"
      decimals="-3"
      id="F_36617c31-e306-4b93-a771-efa8c869fb08"
      unitRef="U_USD">540000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
