<?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_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_e54ca050-48c1-4753-b918-ae3a2c76fd32">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_1de941f0-fa0d-437b-ba8b-4ebbfab3f2ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_c6b8e9bc-8fc2-4375-addc-9e7911bfabc8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_f0294f53-b0b4-450f-8cd2-ab110819ca96">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_ed40a2d9-907f-4c71-9660-ab46a17344ed">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_f9502357-f955-483b-a8e8-60930c501ff8">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_a2b0618b-723f-4527-8792-d292676637fa">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_04ac5639-0c20-4a1b-8735-f3310a111d60">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_815f3e35-1221-4aef-bba0-0fe6f7b76e77">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      id="F_0ffacbf9-5ec7-4e4a-aff1-10317c215036">&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,000,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_b6d7ab1c-eb5d-40b9-a114-dd2268494c8c"
      decimals="-6"
      id="F_da146243-d390-416c-a048-50fb1d7e3f5d"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
