<?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_5e8e8fd8-5b65-4eea-b036-03d74d37535d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_a6e41c5c-7a70-4147-9b9d-0315773b2b68">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_962517aa-2cc3-4293-80a9-4cc1bda0db4f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_c25fba7a-776c-4f6e-bf06-1781caf18807">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_7a5a4263-59d5-4eb3-b2da-54ec34c6f60c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_7eaaa8b1-08d7-4747-b0f0-1ffe28e0ee2d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_5276fa81-0562-4326-ad06-a8282bd63e4a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_075950c4-a06e-47b7-9625-03ad1e81860e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_69793c4d-4569-4d9d-9434-71898c244bd1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_f67e0f5f-d359-4c93-acc2-f19d658cce74">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      id="F_7774366f-b63c-4813-a96e-a0dd7934b76c">&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,240,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_5e8e8fd8-5b65-4eea-b036-03d74d37535d"
      decimals="-3"
      id="F_6a76cbb9-1f44-44fa-a4ec-05a9e7af6453"
      unitRef="U_USD">1240000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
