<?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_997b91a3-8127-4e55-9a29-67548b99fd2d">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_88f2f785-49c3-4753-b5a1-ba81579db847">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_ba8b687c-f55b-4eb2-9a25-cd875c8d606b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_15012b85-e151-45a2-91bf-2fddcf3221f4">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_0e2ceb47-f5cc-47a9-ac9d-f35a6c4379c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_d92e5d39-6c8c-4e23-8ecf-f06dec3408ca">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_d1d5a283-6e93-472c-831b-3898cefc532b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_5bf66668-3f73-45ce-a6b9-d85777baa548">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_fc7efe8b-a708-46c9-b623-73c331d76e42">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_1fffd0d1-98d8-4bda-aa31-1172fcfc2435">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_997b91a3-8127-4e55-9a29-67548b99fd2d"
      id="F_ce7fd26e-2349-46f9-92b3-c259ec4a6899">&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;7,549,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_997b91a3-8127-4e55-9a29-67548b99fd2d"
      decimals="-3"
      id="F_1eab477e-7a74-47d2-8da2-9597d2184459"
      unitRef="U_USD">7549000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
