<?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_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_290a69d9-c692-48f1-977c-2b67c38dd525">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_dfc6536f-8667-4c50-8ae4-1e8d06d949fe">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_d27ab20c-56e8-4b23-8e1d-179c8265f979">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_2b243479-88f8-4960-baf3-fc027d2b37e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_b9513e86-1423-4b7b-8904-d3203c6ae771">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_319fefa5-0841-4019-b030-9cc9d7e3fc2e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_207af386-5d92-4aff-8936-2726122d6d8f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_b0e41aa1-c64b-421d-9d84-ff68586c4d8a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_c9e1752c-a895-4891-acd4-cfec056c1885">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      id="F_b29e8715-3b21-4764-9a81-4b5ebef9ebbe">&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,450,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_a80197b7-1c31-4ddb-a1bf-3c6faeffa9e0"
      decimals="0"
      id="F_877852a7-920b-42d1-ac04-e9360c53cb34"
      unitRef="U_USD">2450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
