<?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_2dc339e2-6b1d-40dd-ab30-24c788001e05">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-16</startDate>
            <endDate>2026-11-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_8db1c748-ecb0-4f78-93eb-31a3e89b485e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_bb7ad49c-e57d-4935-a929-3833555a7acc">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_bb4b82cb-94c0-4d8a-86c3-d5eb1c37af7e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_9817cc5f-c53a-47bd-9800-abc949100857">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_964cd1c7-14a5-4017-8ace-acacb8201983">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_f88c5ba9-e368-454b-b27d-caf2ea66f7dc">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_67b38cbb-bd9e-48e9-b906-190f63202955">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_2b2a70c0-d693-4c4a-ad6e-d9c3f0c0bf15">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_a244cc2a-77b9-49f6-b954-089113025563">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      id="F_1bb6c7cb-27e8-44a4-a053-b014ca9994b1">&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;528,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_2dc339e2-6b1d-40dd-ab30-24c788001e05"
      decimals="-3"
      id="F_a4ea6e1a-8a7d-49da-8161-d32c0f7f08eb"
      unitRef="U_USD">528000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
