<?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_16123968-9de8-4a32-bd36-64eedefcd4d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_667b7c05-6423-4d98-871b-49a0ef98a66b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_f75acd1e-2738-45ef-9106-ab6a75556c4f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_7b8059e2-de92-49f2-bc5a-40cefe9f643a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_9339454d-2804-4606-8dca-f87b460c53b6">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_38c64d52-bd26-480e-9549-688b8e5b5c69">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_990ed94c-876c-48b9-9634-d3d6b6334a7f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_10874a7e-caaf-498a-a829-ce9981451b28">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_72313939-16b3-4f43-be84-db0f17ae0ef2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_1e3a197d-b0d9-4f4a-b073-5a9f7b4278f5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_16123968-9de8-4a32-bd36-64eedefcd4d5"
      id="F_c0b56f15-178a-4c02-8ed5-b12b147ae964">&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;637,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_16123968-9de8-4a32-bd36-64eedefcd4d5"
      decimals="-3"
      id="F_6ed9c180-0438-43db-a549-a648a89a9307"
      unitRef="U_USD">637000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
