<?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_731b019c-139d-408d-be10-7a6b2866f4d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_45fa545c-0dc9-4f49-88d9-b1a542f560d3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_9a7b1d68-e60e-44d3-841c-63c86d4717bf">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_c44d2294-f36d-4798-99dc-c2c333e2288a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_b7f2525d-28e3-4b83-881a-8b739f12d7a0">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_fa3286de-653a-47bc-b5d7-af927cba8cb6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_b8007d83-953d-4d29-a25b-8cad23f7aee6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_a263e7f3-c426-4820-a692-a3ba27a0b7d4">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_56808818-be8b-483b-a2ae-4fedaf3692dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_43d67324-58d6-49f5-8d51-2ebe8ce9ea5c">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_731b019c-139d-408d-be10-7a6b2866f4d3"
      id="F_ce106d92-c911-4e2d-8e1a-28814d9677b6">&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;21,500,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_731b019c-139d-408d-be10-7a6b2866f4d3"
      decimals="-3"
      id="F_31f22eb4-b5f0-4de7-b0c2-948a4a0395cc"
      unitRef="U_USD">21500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
