<?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_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_c11f0e10-631c-46c4-a621-6bf24ad989bf">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_d60e7893-56ea-4a92-a702-2f7b1057b180">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_ff3e97f4-5d97-4421-92df-166d1ae8522c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_3ae0f79e-78cc-4175-9978-7b19ab9f5ec1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_1a10b42a-607c-4d4d-8f2d-a7e1caa531c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_2847b0fb-4ff6-48f7-a14d-5bb0fc58ce94">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_5dcb02e0-5e83-44a6-af44-170815f683f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_0b47cf88-9f40-44f0-a6d6-10a00ddceddc">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_a9f54a24-dd51-45ff-8e65-6dddbfcd7e1b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      id="F_a65cef20-6d79-4889-baef-cd10d503faac">&lt;p style="tab-size:26.66px;font-size:12pt;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;1,476,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_44c72fd1-bef4-4b4e-a4ea-9139a0468b8d"
      decimals="-3"
      id="F_3231cb35-acf0-477d-884e-1a37651384a2"
      unitRef="U_USD">1476000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
