<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_fdf07c64-219f-4997-8e0a-aec858dedad7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_cca6ed70-110e-4fda-ad06-e75ca85df01d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_2678bd71-4a7d-47b5-87af-329c82f88059">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_db4ea7ab-0a09-413c-b3c6-0fb6fb7b0230">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_48cd401a-dd88-4e42-908e-64edaca2c61c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_5f0f06fd-4222-4a37-9116-7966d7adb904">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_66aed0b9-a14d-4569-9ddf-07c53bf6ba6c">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_5a6d27ad-a800-4f01-8af4-da9fae1a7c6e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_b13a7bdb-e438-4a7d-9c5e-9f3da819c177">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_2f7e4dfc-9b8b-48b3-bd61-329ad30eb495">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_fdf07c64-219f-4997-8e0a-aec858dedad7"
      id="F_322e6636-3054-43dc-845b-5360cf8d6f78">&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;5,419,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_fdf07c64-219f-4997-8e0a-aec858dedad7"
      decimals="-3"
      id="F_34247dca-215d-4962-af96-34ea3764e5ef"
      unitRef="U_USD">5419000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
