<?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_17706c37-a74b-455d-85fb-160ab2c08528">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_5fd7906f-2b15-4175-81d6-1671b7d4ca1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_536d39cd-c3e5-4e20-a9c1-eb919ab7a0ce">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_722d1e1b-5e61-4981-9962-5c2a9aa71fb0">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_b38c1c08-cc13-4d48-859c-2723a03fee6e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_8b3c6ea0-8b63-445e-9b05-a77bd98ea711">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_94cef380-db49-4aac-83fc-b3313ce6fd67">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_3a292b05-8c79-4bae-bb1d-3f54a81228f2">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_e99b34da-f9e4-4953-b8ad-ec2d51b1ec7f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_d1b60d07-12e5-4401-8a27-05919396b177">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_17706c37-a74b-455d-85fb-160ab2c08528"
      id="F_0cf239ae-19ae-4757-96bc-9cb1a8c5fec1">&lt;p style="font-size:10pt;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;750,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_17706c37-a74b-455d-85fb-160ab2c08528"
      decimals="-3"
      id="F_07fdc4d2-aacd-4846-887c-c828d9ffc1f0"
      unitRef="U_USD">750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
