<?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_57a5a007-d25a-4fd8-bcf8-325a0b995b47">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_1546cc96-062d-4e9e-8933-d9e1f56f15d7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_4138a5b1-fadb-440c-a198-ba988203c269">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_904767a9-9a3f-4d76-8cb9-3883c33c3d74">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_6fb85187-a5bc-48d6-8ccf-a91d45e76207">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_64530fee-7fea-4bcf-a221-a914c70069ed">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_eb86023d-2700-459d-8efd-75c250899192">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_d97c27d9-6996-4f56-8def-69f1078813b8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_938ba1b3-65cd-4a97-90a0-c54fc59f1e70">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_29392d23-cc73-4d62-ae12-a6cec6d22979">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      id="F_a2f66f24-c4b6-4ebf-80d5-f434538060ba">&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;6,972,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_57a5a007-d25a-4fd8-bcf8-325a0b995b47"
      decimals="-3"
      id="F_033d692b-b3a1-453e-ba27-0b1e78148ec7"
      unitRef="U_USD">6972000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
