<?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_3957660d-c308-454d-8bc6-06f2dc10f30d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_a28fa48d-d64c-489b-94b7-25c28255ac89">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_8bf36304-6ad4-4051-a0fd-d62039686abb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_7bd0027b-4a3f-4036-8505-2ec5605c8395">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_332e5d36-096d-42a4-93a1-cc18aa0a9d4f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_d5349680-96e9-4eaa-92a1-63a8c7629204">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_c91fbb82-df6e-4d18-a950-6aee6aaea42b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_98d6ddc5-2f28-4cde-893b-00f4f765ccff">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_22476e35-ce54-4c55-b7eb-3920001ac35f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_77419ea1-ae76-44e2-8fe3-a894e608cfec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_3957660d-c308-454d-8bc6-06f2dc10f30d"
      id="F_3e8831e4-5742-4608-aace-b4be5658f765">&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,789,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_3957660d-c308-454d-8bc6-06f2dc10f30d"
      decimals="-3"
      id="F_5ece63b1-6011-4c84-976d-179f3124a587"
      unitRef="U_USD">4789000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
