<?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_919bd3a4-34d8-44fa-aff8-162324f16950">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_9aabd53e-c1e6-4aa3-a3e2-2f3449ac36de">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_f5cdf9c6-11c4-452d-8bfe-5859c6094485">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_200a04c9-12df-4531-8afe-1379781642bb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_67e43110-f8ab-437c-85cd-5526092e20e0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_5c482f2d-9155-4512-acf2-e81071d8576e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_fe271212-db7c-442d-8414-adfca92f74b1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_ae260688-b742-42b5-bbdb-0b3f437ca359">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_e98e7fac-78ce-4443-b96f-43e01ec4d397">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_307dea61-61a4-4ba1-9c21-e0e715870940">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_919bd3a4-34d8-44fa-aff8-162324f16950"
      id="F_91d3b1d6-1f66-4708-a86c-e86b683e7328">&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,268,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_919bd3a4-34d8-44fa-aff8-162324f16950"
      decimals="0"
      id="F_c0057d18-ca4a-4089-ac4a-5984fbe86a77"
      unitRef="U_USD">1268000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
