<?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_68d52819-a4cc-49ab-b329-070555980803">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-23</startDate>
            <endDate>2026-10-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_57cdc400-9df2-4b03-b932-b267f1c1f94f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_b976bdd0-b941-4670-8b17-93fbc1c8916c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_ed059661-6f8a-49e0-bcf0-c43d17c91901">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_f63893e7-0304-43bb-a863-ae947b853e14">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_e9217388-9ccd-4522-8f6e-2f5263fbe725">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_f7c6a626-0ed9-46ac-980c-b3986e1c3009">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_aaf28e06-ebe4-4ed3-8a87-a34fe31a690e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_3c74ab98-598f-4168-bc6a-ccd906a1168b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_4c4a6a22-2a0a-4942-9624-e52a7283d644">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_68d52819-a4cc-49ab-b329-070555980803"
      id="F_34435ddd-4582-4618-95a8-514caf83bd52">&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,843,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_68d52819-a4cc-49ab-b329-070555980803"
      decimals="-3"
      id="F_72d799cf-c1f2-4df6-a64b-ccd65c0f6766"
      unitRef="U_USD">1843000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
