<?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_b29d5a71-d3d0-4d84-9779-330a4c14335b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_37f389f7-1fa1-4150-a329-4fae54740ac9">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_d42225c6-6652-4d67-a2c7-88f213469809">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_ce878074-a05b-4a8a-b995-37793183c622">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_efb5ce3f-34ae-4466-9e63-9c1e3c2e244f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_0f3b61fb-45c5-4ad6-b5e2-1a6188588a41">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_af0f42ec-81fa-4f00-b3c4-481d3bf85b59">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_fb2fa869-ae5c-4b85-a0b0-427eac72178a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_86de0551-940a-4cca-9500-4a6c89ab4c5d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_2f690823-8624-4fa2-8e78-837b70ea4aba">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      id="F_8131638c-9408-455e-9292-d407cb9d5696">&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;1,218,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_b29d5a71-d3d0-4d84-9779-330a4c14335b"
      decimals="0"
      id="F_2ce91444-5744-4679-a557-902618db54c4"
      unitRef="U_USD">1218000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
