<?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_f2ebc389-ba59-451e-9c37-071a1f9608e5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_7c03070d-2658-41c3-88b9-3a6dfcb34a11">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_98873fdd-3762-4f5e-82da-f9a754e8bd7a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_c870be90-ca81-470c-a62a-66c2bd349b44">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_034c6332-2f33-47c4-af9e-26d70c3be1e2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_7137648c-4fd4-4ff6-b181-a1606eca268a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_a4439f37-687f-4681-a7b6-bb8e7ac9a264">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_52cea457-f07b-4566-a4b6-d1158fcecf24">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_b2c8e0d0-a14f-4d63-98b8-ac8ae5c44c73">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_00712e13-1d4f-41f3-93b2-931946403d26">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      id="F_5addc9af-951a-49e1-a122-5e8ca107082d">&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,118,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_f2ebc389-ba59-451e-9c37-071a1f9608e5"
      decimals="-3"
      id="F_7c6ae794-c5e8-4314-ae31-25acaa2d7642"
      unitRef="U_USD">1118000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
