<?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_c99dc010-1f67-46e8-9405-45031ffc8a8c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-23</startDate>
            <endDate>2026-10-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_10f6cad0-5ea0-4082-bc9c-0a5decc53362">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_72bac2dc-dd16-4ce2-a84f-00d4a90c4ff8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_208c1ee5-c3b8-4745-912b-6fd3e907d5c9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_80704207-f339-4802-b047-ea6b8b2efe25">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_537b348a-fc77-4fcf-b256-9aaf791673c4">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_3b4a2bf8-f9f0-4b6f-893d-f53844e0e774">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_e2473c07-98f8-4341-a7e2-82a3c89a92c7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_443f6642-98e1-4d3f-bfb4-038a7dd3585b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_50a40007-612c-4203-9144-a6ffa4c27de8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      id="F_c4a52dd9-8d59-4fdd-bfa4-bbc2da2bb918">&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,478,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_c99dc010-1f67-46e8-9405-45031ffc8a8c"
      decimals="-3"
      id="F_06ac42ab-6ba7-4b3f-b48c-a25a07a4f7be"
      unitRef="U_USD">1478000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
