<?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_f34e136c-271b-4d27-b9b4-7b6ade31018a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_0c7eaaff-2d00-4d6b-b442-2ed59ac891b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_64d1fc55-109c-41b4-aa0e-1873990fb065">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_c9c3dc54-9cbe-40d7-9d2c-28d50eec2477">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_b9a7a85b-a803-4b33-902e-a777eca9ea70">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_5ab66fd5-58e8-46ae-83ab-c1709f5cd548">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_4fe32074-8bdc-4bfc-a90d-fad9cea7a09d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_bb4d97a5-0a69-4807-9983-00a07eb3bc1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_7101a7fe-adc7-485e-835b-84dd3b1e4627">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_5941a5e2-7ba4-4691-8331-582784820dc7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      id="F_ad68446e-f7fa-403c-b11d-624a73c24888">&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,723,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_f34e136c-271b-4d27-b9b4-7b6ade31018a"
      decimals="0"
      id="F_5e116807-e241-43a5-9747-a2cbd37b684a"
      unitRef="U_USD">1723000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
