<?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_8b7e7fb5-1f77-4502-983a-e58198d09ce6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_41b9d6f1-4ad4-48d2-892e-af9234be2477">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_e9feaa80-de57-42f5-8a6f-835e815ae130">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_d2be22c8-1df4-4dd5-9539-e5c4b9754c62">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_c5c727d7-7a38-4535-af6c-89acc92f3260">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_d5e0ee3c-8c23-400b-8a99-5b26a4089926">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_46dea643-e9fa-4e20-8d2d-a14684e1c412">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_9afa0129-dad3-4e6b-a5a7-bd806b54e6cf">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_4ce5c312-b3b7-4c32-89e6-13d9b980fa72">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_bc238951-f477-422b-8eca-a2a3cb9691ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      id="F_c680056e-8400-4f70-a48c-b6377a6dfc27">&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;1,900,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_8b7e7fb5-1f77-4502-983a-e58198d09ce6"
      decimals="-3"
      id="F_3cd25584-1a75-48d7-8289-53e97a543105"
      unitRef="U_USD">1900000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
