<?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_dccbc414-b485-4ee8-8ae2-e9ef170b59c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_5db643f4-85d3-404e-a144-ac31a9462ad9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_ade739fa-9486-4248-add4-6ebd0666beac">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_05d2b898-c3fe-457b-b4a6-07bf3c9dc705">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_bee7cc5b-41be-4193-abd0-91bd6a3fa53c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_9c632ddb-5b54-4403-b09a-aa2f30a8a3c6">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_521c4b8a-765b-443d-acec-5c729bd9a62f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_b15a30a1-1e78-41ce-b0eb-0b4f6fd4552d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_b2dd337b-71b7-40f0-9cec-0e8c93063f58">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_19cf277f-4683-4d63-b06b-4bad29cf256f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      id="F_c31a94e0-55e4-45a0-8580-48422883b5d3">&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;3,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_dccbc414-b485-4ee8-8ae2-e9ef170b59c0"
      decimals="-6"
      id="F_2db8e688-eb11-4a63-b1cc-bcc14ab41e16"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
