<?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_33c7fc42-59b7-4f1e-8de8-21daba694fcf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_c1720c66-f26a-48d8-b911-a11c9f012144">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_897839b8-1393-4225-9e8f-ba29c22ee620">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_05084470-e192-4708-adc4-d2080f76f4dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_4a437bfd-a5c9-4100-83b3-b146e9b8d355">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_fd1c4a69-4047-4954-90c6-ee20ee5eedcf">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_72942fd4-af31-46af-9b4f-5e35920de2aa">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_e2a83789-2876-432e-8726-3a7dd6e5b901">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_ab07d1f8-66c6-4408-b9a3-3826b1b1b61d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_2f2133af-0c59-40fa-a21b-a05b7b2b2c17">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      id="F_21464578-9087-4888-a738-81aa79986fcb">&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;600,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_33c7fc42-59b7-4f1e-8de8-21daba694fcf"
      decimals="-3"
      id="F_30bd8ba5-1c85-42a6-8cf1-ba68df4196a8"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
