<?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_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_ee3ddbd4-6bb7-40e6-adcc-12e807581594">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_1989ae65-763e-4b50-ae9a-4b497973d9cd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_c3cd1841-067b-48c7-ada1-ba0109acf6f9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_6543e790-25ab-499d-9f8f-d8808914eced">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_dd7896b6-e9e7-4e30-a0e0-c141d4ada394">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_6298b634-d3a4-450a-bc6c-f53bd1158719">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_ca7539b0-6825-4cb5-b075-6aa82be0817a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_6e44c623-a18b-49cd-85a0-b4576152abba">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_bee04820-a1e6-45c6-ae76-46bf7ffe5cd2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      id="F_4319db8e-2994-40d6-86c9-1a0bdd14d16d">&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;960,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_df90fdba-5fb3-4c8b-91e6-1b2c69dd7260"
      decimals="-3"
      id="F_87cf1d0d-d865-4bb8-85fb-f8905a7523c6"
      unitRef="U_USD">960000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
