<?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_b236d586-594f-4f45-b32f-e3970644dec8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_fd76959a-8248-4e3b-8f67-9805c9fa4b1b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_f696600b-bd99-463c-8661-467bdbae9123">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_145fe78e-704d-4671-9f70-899f96a186ff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_d70c51bf-437c-4621-b8f0-f4f635fcfdd6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_676fdbd3-9eaa-46d8-b952-a0f001ae7bea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_21809f29-16a3-46c8-887a-75cf5ecd0aec">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_143cb3c3-e23a-4592-ae9a-cce16a608221">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_8d1258ca-45fd-4cc9-9f91-90888ce4e42e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_6f93b2c0-ba9f-4a18-a30f-f307b66982e0">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b236d586-594f-4f45-b32f-e3970644dec8"
      id="F_fe671dcd-f65c-4e9f-9764-261cc964b9d1">&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;36,401,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_b236d586-594f-4f45-b32f-e3970644dec8"
      decimals="-3"
      id="F_43609212-baca-4503-a8ca-c2e79593fd43"
      unitRef="U_USD">36401000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
