<?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_d759bab7-3ca6-4160-ba80-ec802508d89d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_0d2f85ce-4dbb-4ce6-8b20-67f90047b3bc">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_05c10eb8-960e-41fe-a75f-af032ecb2fba">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_37b9ed90-15d5-416b-8a4e-ea4bbe94b6cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_fa20b1db-3cc9-44b1-bff6-0785528815e0">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_3139b09e-efd5-4d8b-853c-0d6d8364a49a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_90e27163-2be4-4f18-bc31-40ac3a7fd6c0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_d41f410c-b492-4c01-9671-6544b1fc50be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_160ec601-cf6d-4075-906c-247871d2daa5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_75ec7b8e-3c55-4bbb-9b2c-dcbd5ba6a1ae">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d759bab7-3ca6-4160-ba80-ec802508d89d"
      id="F_0453cb98-2bc1-4aed-8f34-af5ef06244f9">&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,475,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_d759bab7-3ca6-4160-ba80-ec802508d89d"
      decimals="-3"
      id="F_2a26933c-c283-443a-b247-1106dd6d8168"
      unitRef="U_USD">1475000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
