<?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_221283ad-d82a-4b4f-8629-74db06f127f8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_9b0915fa-b202-4d9b-af9a-d68831976647">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_3b57e6b3-c989-4d33-b0ce-09c5e10ece48">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_6dbab51c-ebf4-4457-9d07-73a5386bcfa1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_35e4e0f0-2eb6-4ba9-8342-2b4c1273bd12">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_bc8c7f70-3d35-4ff2-87c4-dcb3205d3bc4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_11e40568-bd91-4bb1-ae91-73c85935ea11">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_16d009ca-2d3d-47aa-92f5-a1b6fc9890b1">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_b268f877-254f-4c79-907f-d2957b665c0d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_d33dee50-9ada-4cef-80de-79fd79346713">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_221283ad-d82a-4b4f-8629-74db06f127f8"
      id="F_bd6af93f-2b01-44f5-b2aa-a50429b89a99">&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,000,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_221283ad-d82a-4b4f-8629-74db06f127f8"
      decimals="-6"
      id="F_0e1cbf06-13d3-4829-bbf9-c3322de1401a"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
