<?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_584f333a-6cc0-4106-a44d-fadbbb57f5c3">
        <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_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_05ef4e5b-a773-4e9b-9f20-bd55f4e9174b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_27b72a50-c4b6-4e45-b533-0a079ae4616a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_3e12afe4-e9d8-4e37-9981-dc25968c3ec6">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_19f79d58-9693-4c3c-b9cf-5dafbdfc49ce">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_6a31ae1e-bce5-4768-885a-3be038987fef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_518bc999-a207-4351-b852-e03ce839f38e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_b19ea1c1-a908-4a64-a682-7f17873173f0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_9bd8c65f-fff3-4ea6-bd0f-638be70e1e27">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_11a6fa69-2b1d-4f3a-8a98-d04f48460fc5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      id="F_66b72474-9d7d-4761-8014-4dfac7bf5868">&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,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_584f333a-6cc0-4106-a44d-fadbbb57f5c3"
      decimals="0"
      id="F_aba68b85-0a10-4a84-94bf-5a295675f4b4"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
