<?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_04f713b6-7ada-4c7e-9a4f-6101adf431da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-23</startDate>
            <endDate>2026-07-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_5b19cfe3-454a-4ff4-bd20-54f4e49e692e">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_667cc95f-70de-4542-9c86-1784379709d6">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_b55761b7-3c13-492c-a306-b6bb7546c898">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_5c3a6111-4430-4b20-8633-2c1018e2a3ec">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_a95aa8db-9a45-4963-8b5e-f80fedc3f017">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_acf813f6-eaa8-42f6-bc3b-97286971be5e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_2808a78c-e09c-4553-8caf-afb5fbb7a7de">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_615ae48f-7c0d-45b3-bb70-3b76c58a246c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_e491855d-6f87-4f4d-8cbd-1b6fc21a75ec">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      id="F_e0deee42-b2a4-4212-a112-bb8fdd3335c5">&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;2,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_04f713b6-7ada-4c7e-9a4f-6101adf431da"
      decimals="-6"
      id="F_49225119-d43a-4293-92cb-affaf633a006"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
