<?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_0c28f785-1a6c-4a3c-82e1-a01e59ca3995">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_30219fd3-c500-4e15-b455-4f8ab99ed236">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_8b3985ac-ebfb-470a-82ea-83fd40120707">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_39ec701e-6798-4597-8724-78f8cd5a8303">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_41a75a4a-5949-407f-aff4-a2452a1b2cec">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_2a5662ab-2026-4e41-b9f1-b7b647f1ae5f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_94f8d439-f1e1-4682-9795-9ab46d4ea9b2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_88071f6e-83ee-4bd3-9c92-9b303f2deaeb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_aae17345-55fc-4b3a-9b44-7f80e3e8f955">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_52408111-28d6-413a-8e68-ca0bcaa30808">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      id="F_3391558a-a371-439f-ad3d-e1c64683ac00">&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;5,422,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_0c28f785-1a6c-4a3c-82e1-a01e59ca3995"
      decimals="-3"
      id="F_ba1c8ca8-797e-4775-acb4-5bc2f8fc7829"
      unitRef="U_USD">5422000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
