<?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_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_328cd124-e2b3-42ba-8830-51f8918d7fe3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_e262dfdd-3652-4751-bd9c-5802146f05bf">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_d4ea49d6-61a8-4ba3-a7e3-2d1a0d066ded">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_efe73eaa-a09d-4577-aa4f-99ebe6d0806d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_139fff0d-aaee-4389-88bd-555242c3e4ea">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_df510f90-cf8f-4a83-8cd1-c502db80b28c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_b5634dad-43d8-480b-aea3-bb2f5aee064d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_bb0c2f64-376c-42b1-8ba2-2f22578bebaf">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_bd3766cf-1b1d-46f5-b658-36b2f22e5153">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      id="F_71020b7a-d32b-4863-b7f6-b4ee7b73aec8">&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;28,091,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_870a2ce4-ab45-40fc-a94a-5a49ac58b0f4"
      decimals="-3"
      id="F_8f6304fe-3467-4475-a79d-59206fc09315"
      unitRef="U_USD">28091000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
