<?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_d243fc02-82f0-404e-ae48-c1da2e5c8c16">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_62171cb6-22dc-485f-9fb1-7d9da6a7fafe">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_d5e89695-bbde-46f8-845b-f112a014c983">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_0555a29b-7ef4-4f46-8d6e-e3405acb5f4f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_bcd6e34c-81a8-4557-9703-ba1e30dd4258">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_fadec981-7c97-49ac-9e99-09d645260701">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_a5e9f72b-4d7d-4206-afd5-4dee3f025acf">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_a7c0e08b-c7a9-4e16-abd4-bdf1b2d63ac3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_158d95d0-6958-4feb-b38d-a50374015171">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_5f87d113-fdfb-46da-80ae-c29c69e4239a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      id="F_6cbf54a7-ae32-4c0d-8d0d-c76f11b19a52">&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;7,584,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_d243fc02-82f0-404e-ae48-c1da2e5c8c16"
      decimals="-3"
      id="F_ef7ed169-fa10-4fbd-b33b-c24d1ca627aa"
      unitRef="U_USD">7584000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
