<?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_345c0d59-53a1-42c9-8ad0-93d2089302cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_978f7af2-9df6-432f-8a5d-4927cedde18c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_e91d0138-11d9-4622-a6f2-eb45fd104d81">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_905809f2-5049-437d-ace5-d3484f94fbae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_958d0979-148b-4096-aea7-3022b4c0e82b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_bf1d7c70-5fa1-4ae4-80b4-c2ccf90744e5">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_a6628454-3aff-4575-a0ec-58d9000896c0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_9c9fa2fb-8db1-4638-899f-3acb10be917f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_42c5b4dd-3966-4ec6-b362-67d915d46042">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_a69cd885-6403-407e-8ae4-fbdb55bafcd9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      id="F_5702bc1a-5c21-4fa4-93b3-01438988f9a3">&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;5,963,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_345c0d59-53a1-42c9-8ad0-93d2089302cf"
      decimals="0"
      id="F_011dbbed-18fc-4658-bb4a-93836701a1b4"
      unitRef="U_USD">5963000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
