<?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_3cd7346f-52f6-4508-9983-62a07fb521cd">
        <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:RegnFileNb
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_082aca5d-a5ee-4710-b383-e591734e206e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_cb76ed5b-a06a-439a-bd88-2155dc9b5f70">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_ba14fe9d-cd39-45b2-ba2b-ec1904d60b9c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_8fb01f2e-6f4f-41ad-9d2e-279dcfd89478">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_f5b0932a-ff8f-40ff-9621-bd8b4a7a5f89">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_990ac364-11da-4348-bff0-dc842dad5243">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_e657e5c7-3ee2-4d71-991c-e76ef609a2c6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_15d63015-e5ff-41ad-b122-d0a42ae15d8e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_95a7e2a5-1fb3-4908-a565-c6088dac9873">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3cd7346f-52f6-4508-9983-62a07fb521cd"
      id="F_38ec8803-0d54-48af-8b35-e465466b8a26">&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;2,924,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_3cd7346f-52f6-4508-9983-62a07fb521cd"
      decimals="0"
      id="F_6bd9c97e-48be-43d7-9695-6826ce419883"
      unitRef="U_USD">2924000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
