<?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_a76ae0d9-f40d-4a91-91d3-2554a76d8c72">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_f3bb6315-4650-46a0-9c14-5eee6a5577b7">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_d8e22acb-8cbd-4131-9c3b-7ae6455c6ca0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_adbbf638-9405-433a-81e6-dddbb63665b1">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_3baaabd5-4f80-4b47-9c87-4ca2030c0ff3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_98579bb1-c553-4a69-b0ac-066975d92698">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_7e1ee9a1-55cf-46bb-9e81-4df64b9cdc38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_aadc2b06-ffd3-4593-9184-38a597afb302">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_f8d4c607-9686-44a5-956d-273a28a554a0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_e7941f50-a50e-4406-8654-459b7b27f50d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      id="F_a080e973-0ff0-413d-a6d4-7612fc69cf2a">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;5,955,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_a76ae0d9-f40d-4a91-91d3-2554a76d8c72"
      decimals="-3"
      id="F_a1d3fc64-8ed2-4a8e-9dbc-428bc09b4f6d"
      unitRef="U_USD">5955000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
