<?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_c7f6b763-6300-42d9-a999-443163aafe8b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_fd444dad-af15-4a6d-8262-c00e9c0d2829">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_fa6a7b9f-9a58-43b8-96d9-4188bdb46168">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_bb70231d-e17a-44d2-b672-62d3ae70a5d6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_d6089edf-7c5e-4ad7-92d3-12449dd93306">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_34a8d327-e980-4828-929a-fdf2990d60bd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_4c21b9d8-c4c0-46be-8821-40050c1bdb76">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_3567c81e-d5e0-461c-b5bc-0eddf5fd0658">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_fd448db5-c012-4088-9841-e0080d3403b1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_6e60d5ec-170d-4e00-9f5c-a418a2db3a5a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c7f6b763-6300-42d9-a999-443163aafe8b"
      id="F_0b667c7d-6533-45f6-acfc-7a000f2acf35">&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,549,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_c7f6b763-6300-42d9-a999-443163aafe8b"
      decimals="0"
      id="F_64daa2f5-96f3-42f1-ac83-baa698fd0324"
      unitRef="U_USD">5549000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
