<?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_5dd232fd-ed97-46ed-8da1-8375c2782350">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_7e894812-c3f6-498c-a0d4-3aa5cec9329c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_13d2ed69-8a6d-49f1-b959-12c91dc7683a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_f9127ace-6b7c-4a37-94c0-1ec20b8fae6a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_29a1e5a3-df3d-4236-a6e2-32ec927fbfc0">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_b0b0ea84-6e16-4e56-bf4c-e047197bc436">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_d944ee7e-feaf-4c0d-b116-a0acf6d6f053">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_eda4a6b4-6301-404f-afea-dfd84978ed2b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_b43d7f22-aba9-4ab0-812b-ac587c345a4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_0f04ed55-cd4a-4d02-ad39-5edf5dfed286">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5dd232fd-ed97-46ed-8da1-8375c2782350"
      id="F_f6ea012e-40b3-43bd-9e3c-35e58776dd04">&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,124,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_5dd232fd-ed97-46ed-8da1-8375c2782350"
      decimals="-3"
      id="F_ed3075f8-c49b-4fb4-9652-189fceb68fa3"
      unitRef="U_USD">2124000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
