<?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_b53481fd-0870-4d22-b66e-cb66b779b4b1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_0f5b86c7-fda5-4cb1-aa91-6c73969f1883">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_24ecdbb7-b195-40a0-9827-5c4184414ea7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_5f99731b-3e99-4020-ac70-0a70a0bf08d5">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_d2cfc2a0-2630-4d92-a1c3-4856fd71ecf7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_57303ce7-a801-4dfd-83f8-772273d6f23b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_82d7a22c-1f3c-4156-964d-f9e91cdc722f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_4d04dc93-a976-456e-8049-1475436a7273">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_77fce0b2-a72f-4a5c-9f62-9d188fcd42b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_2feba6fd-0a1b-4128-b2ea-87c00f61898a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      id="F_ebd81904-a88c-4a39-b1f4-3b125c3bbd58">&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;12,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_b53481fd-0870-4d22-b66e-cb66b779b4b1"
      decimals="-6"
      id="F_0a8ab5f2-a426-4e4d-a195-47f62add2025"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
