<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_e2acec18-db10-4f8b-9a38-3a75edbff81c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_20960087-925b-4881-8ea8-651b4f88c817">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_4f3f4a56-09ff-4090-8f58-416089030abe">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_a7cb6bdf-8ddb-4b46-a902-17a11cf54d37">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_046c82dd-1c36-4ca3-9ca3-0a5c1c90edf9">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_f8c69524-f1b5-4273-b94b-77af15e49455">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_211ce72d-c67f-4845-b0d6-12b6bb3be9d3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_db62d77a-58bf-4db6-98ef-0c87d3254874">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_6ff8ee92-597e-4264-9479-8a313dfba9f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_bd1b445d-52b8-485d-a707-f48dfffb84f1">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      id="F_5f0ca5aa-2815-4805-ae64-ecf769f8e340">&lt;p style="font-size:10pt;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;22,003,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_e2acec18-db10-4f8b-9a38-3a75edbff81c"
      decimals="0"
      id="F_7c428d7b-6a1d-44bd-9097-868db73e8f44"
      unitRef="U_USD">22003000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
