<?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_1f55eebc-c169-4b3d-a851-91ef7c01613c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_e869c06d-9201-4a74-aa74-2f901da896f4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_ba3e9ed9-f48a-4dd8-9689-fe2706ff945d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_dd996783-ff4a-4cf6-b5ad-8c9f146bc466">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_dedcf57b-676e-4a7f-95a7-1f939853046b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_95cfb4c1-9dbc-49ba-b0d3-d04941408e20">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_86484efd-33b6-41af-b766-6d2805d8aa71">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_00030a1b-1367-4eb0-a6b1-6a6549ac9ac7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_c938ea2d-9a33-4dac-931e-35ca232c2e6e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_5f75070e-1ea2-4de3-ab39-d47161582c7a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      id="F_418d0d2f-7ba6-4b3c-8a75-56e0bf79937f">&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;734,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_1f55eebc-c169-4b3d-a851-91ef7c01613c"
      decimals="-3"
      id="F_f796f3f1-3afc-44e9-b3a1-d7accc7bf3a2"
      unitRef="U_USD">734000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
