<?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_18bd29d8-14c3-48ed-b495-79d0e22bcd08">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_39cd2f4a-6c59-4b84-8f61-4c8a666d3533">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_88a6ffcb-5594-4425-9627-010b957f4f2a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_3fac9478-5ea7-43ff-a0ac-b6a85763a15b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_c6a19982-5c5b-4595-a95c-c53665f0b936">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_1148036e-4e56-431c-8ca2-8abcbdd39eb4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_23fc78bf-e708-4791-9e37-86c52d1a0dcc">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_03884dc3-8ecf-46ca-8432-d1340160c746">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_71e2b9a3-17f3-4766-a7db-faedbdffd339">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_689f5b08-f50d-45e7-9372-a2c279cddb09">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      id="F_76c603a6-d103-4ea9-9988-44087eab8b97">&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,000,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_18bd29d8-14c3-48ed-b495-79d0e22bcd08"
      decimals="-6"
      id="F_98466159-393b-46cd-806f-1fe57a6e6a81"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
