<?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_618f053d-8c4e-4d1e-95c7-140561dca41c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_760336ee-44dd-42d7-a1b8-69d9622b1be0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_052e1e23-3b06-49ef-bb82-0bbef4653d60">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_84491994-461f-428a-8d42-e009ff32182a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_553c409d-6414-48bf-8c4c-8e91f3849950">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_6aa40679-241a-436d-a125-00546b0060b2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_56ab75e8-7d9b-4332-877b-32bfa33ccce5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_f8900003-fcdd-4a99-bb95-72c3c98399a8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_751cbe48-000b-4b9d-9f40-71a4886a0af6">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_29b8794d-5964-46e8-a9af-eb8fa138cf9d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_618f053d-8c4e-4d1e-95c7-140561dca41c"
      id="F_dfb8af46-acdb-4860-8e68-bed72c6292d4">&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;688,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_618f053d-8c4e-4d1e-95c7-140561dca41c"
      decimals="0"
      id="F_a8c8cb4a-c671-4e2f-b410-6652a92ed0fc"
      unitRef="U_USD">688000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
