<?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_4447bd15-68a8-494b-af4e-9bd5b1ebc91b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_6f1ff404-b97a-4678-a20e-9b48d768aabf">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_37376f70-7df4-412b-8792-8373dce28476">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_36199e67-40cd-40a3-ac81-6db37949a1c4">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_270f1afb-9a07-4dca-820d-749b1de87f5b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_54a4a3f2-b1a4-41ae-814e-fb176c64ab5b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_be0b66a5-5ea9-4d93-850b-db6417e7f167">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_b5b70c66-9276-4fcc-a162-2fe2a19a0cc3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_288fad02-9327-4e42-8367-74d90ef95ad0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_691e1bdc-999e-4c7a-adef-36bc514ef09d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      id="F_dd10056b-ad5e-4823-8712-be94caf9f7de">&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;700,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_4447bd15-68a8-494b-af4e-9bd5b1ebc91b"
      decimals="-3"
      id="F_538f4028-86be-44a8-98b5-dba714890574"
      unitRef="U_USD">700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
