<?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_df76159a-e099-4486-9229-59c0384ccb09">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_c0c99b67-613b-418b-a5b2-f098d270837a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_304e6b3e-39b1-4377-b63e-20ff299468f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_b4d42f02-4096-4738-b857-536447582af9">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_f8926ae9-63f5-4812-b7b4-38b6eda2d2e8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_0dfbdde1-a588-4185-8c4b-355c49a4ede3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_05760938-36ea-4451-ae43-f6c26cfc83e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_ceac40a4-2e9b-4225-ac48-4fac9caedb0a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_d60ff440-4694-498a-a6dc-75989c27724d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_65e185c6-cc33-45cc-a7f2-67ecaa1dd793">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_df76159a-e099-4486-9229-59c0384ccb09"
      id="F_f57028c9-c250-4df4-aec3-ec90e77688e2">&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,507,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_df76159a-e099-4486-9229-59c0384ccb09"
      decimals="0"
      id="F_0926fe1e-bae0-4755-9e3e-7ac1c3c2fc9e"
      unitRef="U_USD">1507000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
