<?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_e36e80a1-8472-43c2-aecb-309560915247">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_5dc5ad17-a1f6-4e2a-bc73-8997ab0fbd43">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_43a8aeb3-c2c8-49b3-b784-49f61bbaf5c6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_c2d1a7d3-869e-49bb-9589-d023ae8d0ec3">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_53d6fbaa-e28b-4665-8af4-7c43f42deb9d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_954a13fc-3ad9-4361-882b-5cd165bb292e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_9b2a92b6-18d5-47c5-a468-6c7397be975c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_14741c89-94fc-4252-9506-b65a74bb8e0b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_fc8c086b-321d-4a21-a79d-4a326ec69650">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_f42dc90f-dd8e-49e0-85ef-141d0d27f1ef">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e36e80a1-8472-43c2-aecb-309560915247"
      id="F_8136d56d-ae33-44bb-8375-416a0434314c">&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;560,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_e36e80a1-8472-43c2-aecb-309560915247"
      decimals="-3"
      id="F_fcbac36c-a734-4223-a405-99853ce25be3"
      unitRef="U_USD">560000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
