<?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_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4">
        <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_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_488c183e-a7fa-4cf6-80c7-3ff5e1263cd9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_eab8991c-defb-4e34-b953-6c9da46e0a85">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_a9a0c6c9-6108-42e5-b34b-6706eb949a45">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_ce5ab578-9687-4e88-a8df-7310214866da">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_e0007991-91ee-484a-aa34-4e484d1c19e6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_0de1f09c-241c-49f9-87fe-5867de6935d6">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_1d00ca63-3085-49a0-af94-0ae085a45edb">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_c9acae81-0c01-4c70-a05b-537e07a97c0c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_1786af60-8a4e-4e00-b5c2-e5ca5f794362">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      id="F_362b2fb7-740e-405a-9a14-5b36564a9751">&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;595,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_b5638af8-a2e6-49cb-a55c-da1ef9d0dcf4"
      decimals="-3"
      id="F_11c1b82f-5179-45a8-8a2b-c471db38c9ff"
      unitRef="U_USD">595000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
