<?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_d2e352b4-3b8b-4b47-a473-722b91ba6496">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_c539bd2a-dade-4d7a-9fdf-e2c9b4e2469c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_4ac5455a-a893-450d-a474-0174136591b0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_e096f0a8-a47f-43c9-82f6-b41b1b769558">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_ed45c674-fd89-4f42-9457-97bcad024f62">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_05097221-1637-4b46-813a-269b99d261d1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_c0ae10f9-7b72-4b18-94fc-264cf23e8d56">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_3bc4dc37-21f7-4e02-ac29-29e6c96fb9c9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_2ae1596d-f86a-4bc4-8740-6bd85dee766f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_7cf2d5e1-cef8-40fe-88aa-215bd884563c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      id="F_a8ea781c-87fd-4919-bd68-6e4a6c0da4fb">&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,212,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_d2e352b4-3b8b-4b47-a473-722b91ba6496"
      decimals="0"
      id="F_029a8460-964b-4df3-a910-1adb83c34772"
      unitRef="U_USD">2212000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
