<?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_8cbe9326-19e6-4684-94f7-4c0163d381d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-05</startDate>
            <endDate>2026-11-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_7c5f7950-7760-41ec-8acf-7a998e5bfa2e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_e127c342-3d5f-4e5f-9bfd-253e9a0c8cd3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_707b35eb-3818-484f-99fa-1075bad78434">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_85a97af1-f807-463e-a5b5-60b07cf5e430">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_3012bf54-0986-4931-bcf3-c8186051569f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_a0d42faa-eb03-4e80-bbfb-a2b82c81e152">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_0f58db56-3316-43fb-abbe-e6c3f5314caa">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_6802ff47-911f-463e-99ad-1b8e540a593e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_d16a76fa-e7fd-43d1-9639-d483ad04deac">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      id="F_4b98151e-8626-49a1-b81a-17ae86578e63">&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 $&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;400,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_8cbe9326-19e6-4684-94f7-4c0163d381d5"
      decimals="-3"
      id="F_4b4de4b0-77e4-4fe3-9eef-6adc8881bd67"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
