<?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_326bc3c4-550a-4df9-a93c-81b0f0844079">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_69223238-575f-4ea3-828b-410032992380">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_8a8c5034-1099-4c96-be18-c410be358701">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_beac3810-bffc-42e7-aeb4-a4f3805315da">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_155672ee-a6c0-4e66-9f3a-e8139d8b0e86">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_25ca7ba0-7b97-4d34-a0ea-08200f191f70">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_b0fb9f58-e0cc-4ab7-9aa7-071e984a3652">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_2e71f9de-89da-4ab4-aa8d-be41fb65e78c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_23b1e74c-ecc7-4f78-998f-5701c6d33101">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_a482e06b-2a84-4e39-8075-7c3f124f6a4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_326bc3c4-550a-4df9-a93c-81b0f0844079"
      id="F_1895fb2e-baa4-4a74-8724-f9eb16d7e811">&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;4,828,800&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_326bc3c4-550a-4df9-a93c-81b0f0844079"
      decimals="0"
      id="F_57b12b0c-3d59-4868-b0ab-e2b78d1e416d"
      unitRef="U_USD">4828800</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
