<?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_618bfffd-9d31-4f07-993f-60e94f74d42b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-23</startDate>
            <endDate>2026-09-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_b8debb59-83e3-45eb-87ca-8de256b7330d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_58779166-f085-4ea4-83c2-22a11bb21ad5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_6eaf1bb1-1b57-40ea-b645-f0371335a27a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_7377e117-4483-44d3-9c72-0c6f30e68d86">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_4cb2e6de-f52d-4a67-bfad-02e7554a2ec7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_18cf8bdc-4879-4eaf-b83d-176a59708215">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_03bf20c4-908a-4104-8f90-606bae3ef864">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_f8061c75-1a02-4d2e-b9b9-8d32aaa71c32">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_6d20e945-cdac-4a06-9dc1-bfadfb6bb545">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_618bfffd-9d31-4f07-993f-60e94f74d42b"
      id="F_4ac0958a-0243-4558-9861-2d3e3956237f">&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;250,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_618bfffd-9d31-4f07-993f-60e94f74d42b"
      decimals="-3"
      id="F_47dfc76e-3034-4109-827e-bd82d66d929f"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
