<?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_52adde54-e70d-41f2-93de-f2a777a4078f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_b7f21754-4a15-4978-ab40-e99d6552a289">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_4c44f982-09e0-4246-81e5-ae9f7e9778bd">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_71cae239-a964-4e14-85a3-a06fd7cd19e4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_15761a38-7242-4934-bd37-85b5b11929cf">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_1a5c0149-8f35-46c9-a6e4-8d9a9f2b9807">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_db74a644-d119-4951-ae2f-c98f2f73c19d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_2aafc8da-ebdb-4e93-a175-a6d4716cc6dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_abbdf64c-5a6d-4961-9286-dab28bed0ac5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_643bd91f-244d-43da-a9f0-fe0431b3e09f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_52adde54-e70d-41f2-93de-f2a777a4078f"
      id="F_f9ed6027-bd73-49af-8061-1c987ead8196">&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;4,146,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_52adde54-e70d-41f2-93de-f2a777a4078f"
      decimals="0"
      id="F_b34b32e4-a121-4be5-85f3-952cd447127c"
      unitRef="U_USD">4146000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
