<?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_b52eef9a-4680-4c71-aa8f-d154843dfe8c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_eb4db987-4675-436a-8c74-f9567fead692">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_c79415f2-3337-4a29-bbdd-b1f8cbdd5fce">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_9d7ba459-8f5a-4442-a137-ebf5d56c8bfb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_12000a12-6c4e-4c60-beda-09438a726838">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_3b51547c-b1ae-4529-beec-a6e9e129759e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_d19a074b-691f-43a5-9941-c7a5e4d7cd2a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_331ece30-167c-46f1-85ef-233fe5587296">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_efeb85e5-bc99-42f0-8d89-956d1bf08654">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_2da5b100-4b13-4a31-86e7-40e13f5e7d9b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      id="F_826d8d3b-4691-423d-bee7-2401e6530c3a">&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;4,448,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_b52eef9a-4680-4c71-aa8f-d154843dfe8c"
      decimals="-3"
      id="F_31f5fea6-6c62-4bea-8d5f-b28c5fffad63"
      unitRef="U_USD">4448000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
