<?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_fc7658ac-1344-4e34-bace-7d63fd3fe9f0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_f5249e89-f4f3-4fce-89e5-3e9bb76a41a6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_c3eafdd1-fd53-4e5b-b921-ea6a4735b67c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_87b6e1dd-7d22-462b-a347-57a12181ee49">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_d575b61e-ac4a-4eab-abc9-007fbf213826">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_b6f73ef2-20da-4443-9db1-f8bec584634c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_317a1973-508d-4b1a-91c1-5ae64aa2527d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_014edce7-1df2-4d9a-add3-fe061ad41620">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_7e425152-98e6-4c85-a6f4-dd2eebc14688">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_2bd567c1-23af-48b5-8c72-4765d4454a2e">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      id="F_06c279fe-57a9-4192-852c-1bf3d8169418">&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;300,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_fc7658ac-1344-4e34-bace-7d63fd3fe9f0"
      decimals="0"
      id="F_44ba1175-2062-4a43-aeff-114c89964730"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
