<?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_e6ebc852-a031-4dcb-9c26-28cc42a04078">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_aa6f066d-1eec-4a9d-b5ed-b0c415158b58">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_0f2c4eb5-f063-4265-b395-f09a7c7f38e7">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_edd3c283-5f27-4b59-85cc-347d71c4f9f9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_ec90c3c1-9d8a-445c-a4c0-a93c433345d1">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_148d3b83-cd16-4fca-9952-d6a1a1fea69c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_37cf7b10-0144-46f8-8c23-9d2176f934be">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_e2d251ae-fc61-4a66-8548-0a94b867d368">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_a3d5fcbf-24ae-4d85-98e6-c30e83fee03d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_6429a31c-bd25-4ed5-a8c3-f64a8282ee46">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      id="F_0b968c98-d544-4aff-91eb-117a7be1982a">&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;3,000,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_e6ebc852-a031-4dcb-9c26-28cc42a04078"
      decimals="0"
      id="F_4286fad2-4fc7-4bda-93f5-97643840fb44"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
