<?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_acc1d128-f35d-4d66-985b-622922e220ec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_2d9ccf62-6f32-42b3-8497-86b7cba4cbf4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_907f982f-3bc8-4a60-8d39-f1ceb0af79d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_11d8b965-4673-491e-938f-36749307d88e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_dc4f50fa-1e83-4f36-a1fc-9cad3336f915">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_e9574271-af1a-49ce-a2e8-f2dc8b45ef11">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_ea905530-4bcf-42af-9505-78259ca29503">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_e7a58ab8-419c-4819-b7c3-108f57248358">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_a24fe1b2-0a20-413c-955e-5c45cd4360c2">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_cd2a938d-0f3b-406d-91b5-3cc2653e7c47">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_acc1d128-f35d-4d66-985b-622922e220ec"
      id="F_42baec95-c64f-40e4-b38a-da09752d4045">&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;479,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_acc1d128-f35d-4d66-985b-622922e220ec"
      decimals="-3"
      id="F_4cfa12bf-f527-4003-b443-17fd511059dd"
      unitRef="U_USD">479000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
