<?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_d2c2d2fe-2e27-480d-9013-753e76d1a7ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_510d54df-5307-4773-9d22-ee5e4859375a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_728f60bf-3625-4ee1-99d6-c4a47c79e5af">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_6423c77c-7877-4f68-a76f-3d857a7f7207">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_e24c0404-4887-4d42-99f2-2e4c4aca19d0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_13824b8d-478b-4e90-b3c8-ef4ee1a44a78">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_d1c3b7ff-79e6-4d1b-9dd6-4d9f6f1631ad">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_3693780f-edcf-4aaf-9541-a9974f557d21">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_8e67e528-c291-4aa2-9583-d8df92cf6c88">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_8e7ffd37-d523-4d74-91bb-eb469637cdca">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      id="F_9a01d4cb-edcb-44f0-bee7-5bc35662155a">&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;360,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_d2c2d2fe-2e27-480d-9013-753e76d1a7ca"
      decimals="-3"
      id="F_3637da82-88f0-4c36-97b8-e7e8f39787bf"
      unitRef="U_USD">360000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
