<?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_df7c563e-798a-48c6-ab30-edd2bc7a124b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_27ce15f1-a3d9-45af-9588-d3196f627415">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_ebc94c46-c0c3-488e-a060-71672507f82f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_c3060e17-c01b-43c0-8119-92cbd21ff4ab">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_15d2b718-bbf1-440e-839f-75612e694c56">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_3017fa4d-e169-49cf-8cf4-462abc78f8cf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_c991e3ba-870f-4e7b-b34f-08cf58e16677">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_5c22cd99-eb77-40c9-a389-530bca00ce1f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_d2b24aad-13e5-46e4-b271-3eb60c55f51a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_c2010860-cf86-4797-9f57-fc4351958a0f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      id="F_21e84e8f-eb15-4c59-acbe-526bc9ffcd88">&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;1,325,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_df7c563e-798a-48c6-ab30-edd2bc7a124b"
      decimals="-3"
      id="F_ee467514-220b-4a0b-87fa-73a1fa2586ae"
      unitRef="U_USD">1325000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
