<?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_9333cce3-a33f-4b62-b6dc-35dabe1a15a3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_16119385-4871-4313-a57f-405055e97596">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_3c6a36eb-15d5-46c4-b11b-49aab31112de">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_48da0219-3bef-4930-a27a-faa5f4dab12b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_201d52e9-4fcb-4d6f-a607-99c0eb31279e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_d12312a1-f0b6-4434-b7fd-df99c459b1b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_afda70a6-49cc-46b7-8d45-dba6e93bd04d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_ad8362ef-4d3f-4397-ae9e-92aebb16df1e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_d2d05575-09b9-4c8c-b987-f90fdca9974c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_404c1c02-07d6-4db6-8ed3-930faa40c218">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      id="F_361d7fbf-978c-4923-81fd-a81deaa36320">&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;694,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_9333cce3-a33f-4b62-b6dc-35dabe1a15a3"
      decimals="-3"
      id="F_4e84509e-957e-418c-a2af-cf94a4643716"
      unitRef="U_USD">694000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
