<?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_d61328f0-3550-4ff8-9871-df34d45f4cc6">
        <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_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_9de054f5-4990-4668-afe0-cd1a6138a1eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_f340b868-b6bb-467d-b442-8b2bc18dd79e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_8ac2306e-0328-4bb0-8532-07244c757b9b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_551aab61-2b92-4e2c-90bc-9f2c3a51310f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_916e5b80-ec81-40d6-aae0-406d667a342a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_ea969325-19de-48bd-8558-a850c8180dda">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_ee708636-3590-409c-9066-ae12869a375e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_10da2f75-ea60-40b6-912d-469d7c5e64b1">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_8bf67242-754e-4116-b46e-08e8ac41c4dd">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      id="F_a4af4209-0267-4f36-8c07-c418e134a7fc">&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,366,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_d61328f0-3550-4ff8-9871-df34d45f4cc6"
      decimals="-3"
      id="F_b6b8195b-a232-48be-9d96-6c1de86ef8e1"
      unitRef="U_USD">1366000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
