<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_175e055c-831e-4fa6-9d5e-4a288d54919b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_d3204b09-cb02-42e7-a4da-35b094bcde04">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_ce2c2fc3-6aba-43ca-9216-168aada02d5c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_1752ebf2-335b-48c6-a8b5-b29c6cdeb3cb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_e829a3ff-3375-42a8-bac4-53ad049da43c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_581ee2f0-6ed4-4385-8fc0-b706f92abe1d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_3dd9e8ea-c544-48d7-bbf3-3123f0ea70dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_bb464fab-1018-4750-8be5-8992ad97ab37">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_f853ecc0-74f9-47a8-bd97-2adc31dc1284">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_9bcca480-1ff3-4ae3-9eb4-be141ac2c104">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_175e055c-831e-4fa6-9d5e-4a288d54919b"
      id="F_e15802b1-5fc9-4b0d-9cb2-bec8c35d3c69">&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,071,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_175e055c-831e-4fa6-9d5e-4a288d54919b"
      decimals="0"
      id="F_39ae495c-7916-42d7-a069-25ef51f645dc"
      unitRef="U_USD">1071000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
