<?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_5ccae944-7410-4c19-9f72-978974f6e148">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_aa39f2a4-190e-4acd-8f44-9183001719b7">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_b34ef276-875f-492c-8722-3d6e7f46d491">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_d24c9b99-1e90-46db-8435-8b57a15c9b2f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_2e3327de-9c24-4bca-89b4-eaf38b41cc42">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_8fbf5071-ab6d-4f22-a02e-2c905002825d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_2d0867e7-4a8c-473c-a15c-25a574dd5220">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_80fa1e93-863e-43b5-b106-ea5f5f1e1a8d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_53095813-a5aa-4f02-9952-099531cbaf0e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_13717adb-45ba-44c6-b5a4-ecb943eb810f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5ccae944-7410-4c19-9f72-978974f6e148"
      id="F_68ac7a3d-1f5d-4a21-9c8b-3fb273ecbfe1">&lt;p style="tab-size:26.66px;font-size:12pt;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;6,919,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_5ccae944-7410-4c19-9f72-978974f6e148"
      decimals="-3"
      id="F_25267e81-cb15-456f-8be8-3a4425cc4b32"
      unitRef="U_USD">6919000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
