<?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_8234d5a2-70e9-4ee6-bf32-54081c748d9c">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_064dd531-0949-4d7e-ac6e-a5a68066f533">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_d09a75a7-31ee-410d-98b0-3789532ead95">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_27091010-ee35-429a-b82a-0c49187944ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_81610338-e89d-4f9c-9f31-8dbf5ec3805e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_f447ee37-155b-45b9-aa30-4bdb17d53ddc">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_79850991-c195-4f05-966d-5d84f0b36b0a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_8755ad85-cdd3-41d8-9e41-47bdd2aa7263">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_c882de0a-0407-4a88-929a-79a5a36c9115">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_dd481dc1-2499-4cf4-a25f-05832cfa8050">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      id="F_c6169c05-ef3e-4f1e-8491-ab4e8b6b700d">&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;7,528,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_8234d5a2-70e9-4ee6-bf32-54081c748d9c"
      decimals="0"
      id="F_e127ae92-a5d6-47ca-9c52-11830fa78c53"
      unitRef="U_USD">7528000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
