<?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_d567f280-e922-4e30-8442-72a8735e73f0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_c810ff15-c5d1-435f-8086-48f98322ff2e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_51908126-b588-41ed-b1c4-4087c03bb6fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_0e6d99a2-c914-47ad-aa93-53f1fb2cedc9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_a323b424-4c20-4faa-8f02-a2306c39279e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_d8663e94-55ea-44e5-bbea-3ae61393c74d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_ff3828ab-9af6-463a-94b2-706436a90ea9">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_da1c20af-1da7-4480-a783-7be107f01410">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_723986bc-1018-4434-a181-4e950cdc4f6b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_71494bdb-d65d-4756-985d-1fb13cc7381f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d567f280-e922-4e30-8442-72a8735e73f0"
      id="F_9faa9508-251d-4590-978e-f70f56f48120">&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;8,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_d567f280-e922-4e30-8442-72a8735e73f0"
      decimals="-3"
      id="F_08c447fc-4952-4718-88e3-b70921de6f9a"
      unitRef="U_USD">8400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
