<?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_b54dadfe-eb92-4260-92f7-ed2ad6d747f2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_806fd835-2ef8-4637-8de9-c063a5e66bde">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_862b9e1c-66cf-4ffb-b946-635385c14d4c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_28307e3b-d3c9-4fbe-aa10-2b8acf960631">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_72414269-2731-492c-ba59-21e0e856ad6d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_bcd848e5-ddeb-4c6b-b655-830985b35a41">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_db05bed4-9347-437b-b6e4-0206d43d67d0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_ef06b29a-5040-436e-825d-aab4c77d44a5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_cc992dd2-9195-429e-a1bb-b3a4d97e280f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_f460e3b3-a376-42f7-bf20-92e886f4bd98">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      id="F_bf724ba4-69fc-4d31-9175-0089bdf0778b">&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;6,000,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_b54dadfe-eb92-4260-92f7-ed2ad6d747f2"
      decimals="0"
      id="F_bed0f318-6911-4335-a225-e811ed3d9f09"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
