<?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_c10eff87-a79e-4a25-8f36-76596d1c925f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_a06ff4ff-dc9a-43ed-a8f7-0ea9d7d32ba0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_ff5525c6-f459-4a3a-b32f-ab359385aac0">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_7ee71a34-1d7e-492d-9a4c-715d7e1506e7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_4af17911-677a-4e5f-9b36-450e978f6654">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_36178901-48df-44ec-925b-f0a0705f163b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_ac23324f-8e3f-484a-910f-14e6277a2941">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_5fa22beb-0c24-4d52-89ed-59669755e2f2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_8fba0ee0-b9af-4722-b23b-6754c38febfe">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_ac024985-dc35-464c-bf31-5da02887a130">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c10eff87-a79e-4a25-8f36-76596d1c925f"
      id="F_42a2d1f2-2b8d-43d6-87e0-cf9745427a0c">&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,111,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_c10eff87-a79e-4a25-8f36-76596d1c925f"
      decimals="0"
      id="F_7381f1c4-b003-4452-a391-19f10a5dcf0c"
      unitRef="U_USD">2111000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
