<?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_7bb71c6d-2ccd-47d0-a201-67215c6badc3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_46e5ecf0-d2f8-48fb-b4f0-562a6322b605">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_e92cce7a-f690-4492-b388-d99e3cb9ff53">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_4cf88f79-749e-44b9-9836-52d4572e97f3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_1c7d91fb-c4d6-4c26-88e3-3c2a99b39d9a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_ac7e1a8c-a1ab-46ce-9224-512b7e66f621">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_20ac8280-3b82-4643-9313-1f50b9e5c871">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_c6ba6681-144a-42d5-b0a8-07f45fdb4823">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_797e4238-29ca-49ce-a8b4-a11a694fb9af">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_38aa10ef-bd02-4ad6-a56c-3976673b678a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      id="F_afeff907-81d8-4880-851b-5753cd5fd5d1">&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;5,655,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_7bb71c6d-2ccd-47d0-a201-67215c6badc3"
      decimals="-3"
      id="F_4a4dc731-59d6-4027-a9ae-1c3787c7d7fd"
      unitRef="U_USD">5655000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
