<?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_682ea2eb-7557-4b7f-9506-8266ff42eb87">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_d682deb6-2460-47bd-a4ed-5d60fb80659c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_54bb7f81-cb0e-4841-9052-4052dfe02863">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_af02842c-2009-471c-b242-d35fab46a475">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_42d95cca-2db0-4f83-8a2f-5251165310b3">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_a91fe8ce-0097-49bd-a7c6-5658782a4cbd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_00934ad0-74e2-4e70-8b89-70a4348cb11e">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_1daffd9b-dda5-4697-a4df-839f47965f0b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_0a5ff153-d0b6-4f47-aa28-bb4ed02f959c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_ca80197e-9343-409c-97f3-3746cde90a00">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      id="F_6cbf188b-0531-4701-a099-d190678a2dcc">&lt;p style="font-size:10pt;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,090,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_682ea2eb-7557-4b7f-9506-8266ff42eb87"
      decimals="-3"
      id="F_a71eb9ac-3aa9-44b5-ae39-b8244af0b28d"
      unitRef="U_USD">4090000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
