<?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_45da4b8b-fbfb-4dae-8276-8ce88c4b864d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_7c217a54-fef5-4eeb-9867-faf853689cde">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_3f68d251-6bc9-403c-b3bb-8f9c5db91944">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_c31cc2cd-e16e-43e4-bedb-bfec9501e882">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_be988f6e-71fd-40d6-a582-1e4926b45849">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_dd1de6e6-bd74-4d26-810d-71a4f1168550">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_85be3ad7-0d6e-4513-b8ee-298f389e0050">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_99a7f93d-5fcc-4853-87e0-c0fea0d37d2e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_3629df28-7bbe-46b7-8a01-5591c5463430">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_994d188b-68eb-4538-b0ad-87b0d7f74b97">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      id="F_512d7b53-43b7-4086-b865-99d3561d02b1">&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;7,654,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_45da4b8b-fbfb-4dae-8276-8ce88c4b864d"
      decimals="-3"
      id="F_c5596e57-5a4e-4dfb-b300-ea6c1e39aea9"
      unitRef="U_USD">7654000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
