<?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_129c260d-bc0e-45dd-83ad-dee51e6ae745">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_1bf287d4-1844-4a30-b4da-ac90f2383aab">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_c7ebb72c-21cc-4d5e-ad1a-92bf35c1d99a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_71b55048-5347-4cf4-b23c-650f8a3defb9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_8208fc11-9cce-4237-a6a5-dcc9e1087aba">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_d5945581-4205-4ff2-a375-e82fe97324bd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_05c3037b-8495-4bb1-8d22-14e52755c7ed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_fadd5a11-fe12-48d0-9818-59b7d60274b0">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_280ebfdb-6d98-4e56-9c9f-990951ab4d90">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_c539f786-740a-41f3-ae82-aa7fcc5952cd">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      id="F_2532be10-56cf-4bca-8739-07fe8a1e9c16">&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;9,992,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_129c260d-bc0e-45dd-83ad-dee51e6ae745"
      decimals="0"
      id="F_d9f55334-7b8a-4f56-858c-f803cddec23e"
      unitRef="U_USD">9992000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>