<?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_25136891-c596-4eb3-85c8-93cbf08afc67">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_ddf5219b-448a-47d2-ae1b-f8b88d7294d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_4abce8d7-a163-4445-b065-0a9f88c98d5c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_f0c9852a-b052-4bfb-8732-62c2fed2597d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_50cec60b-8165-48cc-af3a-c186df4fe2b3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_48cabd0d-9085-4725-b4f9-b52397de1232">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_625c86b4-e325-4751-a397-a86a778eed00">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_e408caef-17c6-404b-b115-7815345e88eb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_6832dbed-4619-446d-a5e8-04ed35b5dbd0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_228367a2-37d6-47fa-af2d-e025cd4b6fb1">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_25136891-c596-4eb3-85c8-93cbf08afc67"
      id="F_73eb5b2d-36ed-4b60-ac7a-a7a80c329c1c">&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;5,000,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_25136891-c596-4eb3-85c8-93cbf08afc67"
      decimals="-6"
      id="F_7eef6ee4-fc0c-40a2-aa32-f8c2ac24a891"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
