<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_0f36f955-7220-4461-8f34-5890869321bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_c4ffa4e7-fe6f-492f-ac38-28fae212af57">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_2b155dc7-c895-4089-bd22-d45a693c745d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_3370e864-957b-4dc6-b532-f460251c0a2f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_f3bcebaf-76fc-4af5-bb6a-c7e02f9d0a83">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_206c4f52-3611-4064-a4c7-20f734ad2a2e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_35ffe2c5-aea3-4b4d-aa8b-4ff3c6eb593a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_edb625a2-4223-4b26-be91-14e3096519ec">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_421d2496-6635-4c1d-8063-3c1ea4b84a0f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_cba9bfd8-9f59-4e49-a752-8ccae228b9c2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0f36f955-7220-4461-8f34-5890869321bc"
      id="F_8e944668-8815-4fd8-a9d1-fab6368d3451">&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;268,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_0f36f955-7220-4461-8f34-5890869321bc"
      decimals="-3"
      id="F_668492ef-efc4-455e-9361-caf242efd55b"
      unitRef="U_USD">268000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
