<?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_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_34a64e0c-a508-4eb7-82b7-ad6bc20b9739">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_edd01ee4-df90-4b7f-b5b0-9aeeba72ad15">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_2ba914cc-355b-4934-ab5f-5647ad296b43">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_36c0bbbd-a564-4657-a30f-3440697ca4dd">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_8c42ce4e-8f26-4ac7-8063-6dd09401bef5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_2a37c592-95b6-47d9-b911-1a0f2c99c172">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_2f7cf67b-a425-4948-83d0-ae81a2cee385">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_ea3b9218-6465-49a4-8e0c-d378bca0e10a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_d3792f62-ec92-4db9-b63c-e0863378482f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      id="F_e775265d-dbe3-483e-868b-0f265224aa53">&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;6,075,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_e7dd3c2c-2d4f-42a1-9528-fada4b70e6e0"
      decimals="-3"
      id="F_5f76dd91-4786-463e-8dd4-96a67536a2a5"
      unitRef="U_USD">6075000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
