<?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_1c5bf73d-2292-428c-bfe4-1148e8013704">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_6106cd76-be0d-42a2-9353-3562d5ed39ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_0a599a88-597e-4044-b27f-9533032ff0a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_e2c44212-b2b8-4137-afd6-df7b6d8defcf">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_25e3d4af-2c03-4248-9027-f7767048f361">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_e2423186-ea29-4259-a191-65397fa5edf3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_a70cc8b8-11c6-4545-9ff1-97b577045315">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_3f46e330-861c-40cc-9ec6-0e738060a8c2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_2b37680c-c445-46e8-995b-92bd93749c55">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_83fa1af4-3b49-416e-9ced-ef53c05fd1fa">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1c5bf73d-2292-428c-bfe4-1148e8013704"
      id="F_3c7b5364-7ac1-47d3-a4f4-1b3c153e2680">&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;6,560,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_1c5bf73d-2292-428c-bfe4-1148e8013704"
      decimals="-3"
      id="F_cf8a775a-bdb0-4f09-ad99-81c2f8b0283b"
      unitRef="U_USD">6560000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
