<?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_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_4829cee2-ffe1-46fe-a948-36fca82c1d35">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_18795a9e-b563-494d-8128-fa02242d0395">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_414223cc-b093-4c9c-948d-e249d6b41dea">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_20a6a66a-662c-4e14-98de-97221e8994ca">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_b4d43676-0c1c-43b6-892d-29c0d19eb7f9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_d590e804-bf19-46b4-9766-b8c564f66522">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_fea2f6a5-c0a8-4d52-ba85-8544ad1f0133">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_807b4e5c-f135-4e76-a8a5-35be514c064a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_df87886d-77f8-4005-b6ab-b45509320d04">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      id="F_d6f69351-725c-4a30-a18c-4f4c3fa4dc69">&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;736,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_82a71dbb-8e7e-4c4d-93aa-ce5459c30ff9"
      decimals="0"
      id="F_611c54fa-069f-45e3-ba15-659c018e99b7"
      unitRef="U_USD">736000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
