<?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_b960b997-eef1-4fd3-a0f2-4c8568c02a05">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-11</startDate>
            <endDate>2026-03-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_312477b2-1e08-4684-96a8-3d681b868cf4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_2c7763af-f98d-4d77-8670-575d51103e65">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_583d2459-1d7e-48ef-b7af-dffcf6cffd6d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_4aefcafb-e6f3-446d-a70c-a7d10ba37f11">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_7023ca0d-1e64-45c1-8362-ca1b2e56522c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_00b2aedd-bc9b-4df3-9557-152b53412baf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_a895e4cc-35a3-4e38-9cb0-924350f7ec5f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_7707d371-d868-4cab-87e3-c169b0db89c0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_1ba59983-23bb-4c72-ba27-1d4bdd64904a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      id="F_f22b120a-4571-4722-9447-e7cb399203ee">&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;1,513,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_b960b997-eef1-4fd3-a0f2-4c8568c02a05"
      decimals="0"
      id="F_d4ec54d8-b8bd-498f-a3e3-095532e3a204"
      unitRef="U_USD">1513000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
