<?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_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_abf94165-0b8d-47a5-9649-fce33ee01c93">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_b7403079-7534-458f-8696-489859955dee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_89769b4f-67e6-456d-9a31-d5ac5e9b2f8f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_b6c9c71f-b010-4986-86b2-633abbc08af3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_2c877e4e-2a85-4abc-a1bb-f518153aa228">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_ce01f8d1-70cd-4fcc-975a-fb245928dfd3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_66d3a674-0b17-4412-a398-24ab315a08aa">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_cec3eb1c-3d02-4dc5-9829-1bb0ce00f374">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_bb22da08-7d35-4be0-abc4-7bc825bc2b6f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      id="F_14d5826e-1b0a-479a-bb01-091b1eaaf737">&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;1,111,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_2e9d6c88-1777-4cbe-b9a0-f7d87f5213ae"
      decimals="-3"
      id="F_94441d8f-f5f7-4d27-9767-1877aacb7781"
      unitRef="U_USD">1111000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
