<?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_62686d6f-c5f9-4ce8-ac71-f230cd9772e8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_68ff6d68-4408-4485-a596-1fa6d6e17b48">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_3486ee85-35a3-44a6-95e1-6a1bcdb6e07a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_1ff874b0-111d-4ce4-9843-4f82416f91b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_927e98a1-ef3a-46cf-9c35-c3de311bbb24">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_19753b8b-dac8-4883-b3fb-920e76bd9c11">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_4ac71250-616b-45e1-8b8a-4eb65510589d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_cc5fc2fa-43ea-42a1-9b8c-06de156cd5c5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_d9fb1ed0-433d-432f-847a-6db2495a6cd0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_7db6dadf-0108-4416-92e9-b7b1cf3049e1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      id="F_651cb294-7fb6-48bf-9c80-03ef2057c5c6">&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;2,347,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_62686d6f-c5f9-4ce8-ac71-f230cd9772e8"
      decimals="-3"
      id="F_8f7edde4-e879-4bca-bb43-589ef0a799dd"
      unitRef="U_USD">2347000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
