<?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_53e92515-41ed-48a5-a34b-99d1cf8f6a5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_e97b6ba4-8f48-4ff7-a5ac-bb63aac1db3a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_9abf0380-ab9a-47f8-8c16-55a0ca560827">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_24e0991b-9702-4001-8e06-5ade9673bf5d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_804ab577-c6ef-4eba-8093-4d55b17c529c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_23fce61d-f100-4d6b-a7f4-1c0b8954acaa">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_074234d7-c768-4afe-b8dc-ca549f7d4805">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_6bfb1ed6-d1f5-452d-9917-0542f88c94bf">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_8de32a7f-54b7-426f-be81-5605737075e7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_814a16d3-4c5a-40f6-8240-722ff8fe1269">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      id="F_d3c27bc6-12eb-4ab3-bba5-112ec2ecaf34">&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;350,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_53e92515-41ed-48a5-a34b-99d1cf8f6a5d"
      decimals="-3"
      id="F_2ef0fab3-8bc7-4916-bd76-e8e4e0358308"
      unitRef="U_USD">350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
