<?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_73a1c066-fdee-4d82-924b-7eedc06cb5dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_b713afcf-032f-4e13-bcb5-a6fc0db8ad15">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_5c12f841-b33c-43a7-bfe7-c29b80a55d4f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_a26c6169-7dab-4f36-9eb9-8d08f20dec23">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_3f222a74-2b65-4639-8aa1-aeeff40c95dc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_c6bbdd74-27c2-495a-b051-39963a28a43d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_91e304d8-82f5-4653-bdfd-d8278f553671">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_a912c657-7c44-4c9b-aaeb-be1732c9c06f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_64cff11e-0912-4217-9f8a-4ab91a1f899f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_37a268df-bbf8-44c9-a84d-050a36f20eda">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      id="F_731307eb-c9b6-4a0d-9a5b-ba4a8a4421a8">&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;300,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_73a1c066-fdee-4d82-924b-7eedc06cb5dc"
      decimals="-3"
      id="F_02cf3fb2-4f72-47b0-8442-0d78a9570a5b"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
