<?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_aa063fbb-66c8-48e0-84b9-f28386e5fb2b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_b78bf7a1-479e-4743-9dac-273078c9543b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_d3efa081-1bc1-4064-a2c0-069508eb1ef4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_c02ebac3-1eb0-4040-835b-b10e74c409b3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_97bf151c-63ef-4a62-9fad-37115890db9f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_8abf4196-e6c0-4adb-bd0d-e26e90e9266c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_fd62f18f-2a6d-43c7-8d48-14b2c61495ba">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_5085f40f-5970-4e8c-b41c-7bbcce9a8fa8">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_8149125d-279e-400a-a92d-93d8a761046d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_d3256b8f-4a54-4a80-a706-ede96956b776">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      id="F_37bb1851-0900-4140-9b7c-4fcce76af8ee">&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_aa063fbb-66c8-48e0-84b9-f28386e5fb2b"
      decimals="-6"
      id="F_6fdc14b8-8e1e-4699-9aa5-6c6b82de7c61"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
