<?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_06e6ffb8-2083-4d51-a60b-030b9746760c">
        <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:SubmissnTp
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_b8eac08f-9ff4-44a4-9029-4aa0a60b60ab">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_4cfa8da6-fa1d-46e4-9830-3c745138442d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_ec1dbf1f-42e2-463b-8ad0-f4bd7943b03a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_bfd136db-339a-4187-888c-adb8bcd1c6c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_3429d7e0-fdc9-46a1-ac00-1ea851288e98">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_7c17c5ab-9c4d-4ef7-a641-011d969dda02">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_1ca44cb0-5792-492b-a041-abf6dac8ca94">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_cc35e7aa-52b7-4e09-84e4-3f8781dd792e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_36b9f43b-afb3-4bfd-acb9-3e932d421ee1">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_06e6ffb8-2083-4d51-a60b-030b9746760c"
      id="F_54070d09-0f4b-445f-b03d-c7f9bb248aea">&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,297,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_06e6ffb8-2083-4d51-a60b-030b9746760c"
      decimals="-3"
      id="F_70b75716-0a23-4332-aa5c-cd20995814b9"
      unitRef="U_USD">2297000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
