<?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_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_48bc2ad0-e3ea-4260-b7f0-7f3524946ae4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_00ae0fba-1f2d-4628-ba8b-9d3e85ac53ec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_30570362-d010-4c65-bb4d-84f322783b54">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_fffd1fc6-5987-4f47-9f70-ec613c8edf65">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_46bb0dd6-a648-4398-a6dd-9e2418a3ec4b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_8b4076ee-8a3a-419b-93df-333ffec5cbe9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_0fad675d-4415-44c3-9669-36b9204faedb">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_530dfb8a-1028-4704-8273-e39ce937d6ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_59d184ca-b138-40d7-8924-008c930a1cc6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      id="F_a6ed1cf9-718f-411a-9f40-561ce5c18d30">&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;520,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_47e5efc9-5d39-486c-8d9d-c2b6e4ca3b89"
      decimals="-3"
      id="F_d82ae5e9-9430-4913-b92f-907ef1efde49"
      unitRef="U_USD">520000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
