<?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_394104f2-af0e-40a8-8cee-24152f5585b0">
        <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:RegnFileNb
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_e48edacf-db29-4071-9943-60913b6f251e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_4aee57d6-c6d8-4b1e-8f40-a73acc77dd28">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_0986ef4f-ce92-443b-9015-90633eec0e79">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_25753d20-11c4-42e0-926e-f9495cd1e44d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_a29f5f43-9f29-41eb-b673-124d131642fe">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_47f4a83d-66fa-4977-9d8d-dd195be6bce7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_dafd3950-c9c4-42da-b232-c9612271dc71">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_0c5eb065-e56a-4906-838e-3cd83595bfaa">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_c4e8f149-c2c8-4e68-9705-d273ea209ca6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_394104f2-af0e-40a8-8cee-24152f5585b0"
      id="F_2dbb2e37-aa79-4149-b334-628b73d9f584">&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;2,130,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_394104f2-af0e-40a8-8cee-24152f5585b0"
      decimals="-3"
      id="F_4aa6b531-ee59-4832-94b1-1926165a3f38"
      unitRef="U_USD">2130000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
