<?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_21fc885d-14a3-434c-af69-4680cb34e7b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_30b28706-cadd-4eef-a02b-24f09a4b2e15">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_964f187d-ef9b-4da7-b702-61f775978f93">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_3b15798f-8ae5-4063-baff-2d4fe87f4725">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_39472639-6d9b-4a52-967f-2523a3372b56">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_56710dd7-a666-4f67-b6f9-4b0afd4c8ddd">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_b05f681a-4ed8-41fd-b931-e5697a74283c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_5e97cbc0-94aa-46e8-a378-0b4b13744565">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_44f9a302-c7d7-4154-ad93-2373ed414f96">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_3d40f318-9fd5-4246-8d14-2ac206e22e4d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_21fc885d-14a3-434c-af69-4680cb34e7b5"
      id="F_dcbbd7a2-cc87-4888-94ef-94ba0fbaf266">&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,065,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_21fc885d-14a3-434c-af69-4680cb34e7b5"
      decimals="-3"
      id="F_1b6ddc67-6d06-4952-82dd-f34e4de38bea"
      unitRef="U_USD">1065000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
