<?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_a13260fa-b8f3-4721-b2e9-7a0741d11883">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_6bef61b2-9908-4605-bf2e-40663a81f1b4">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_ad34d514-710e-4ada-a6ac-b05286dd6eeb">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_ba57fe1c-4b41-4256-9d08-0e0365f26f95">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_adf37279-6719-48e0-b416-becd6c32aff6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_b102ffb4-81c1-4e80-9242-b147e9c7b3be">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_87f339e6-00fe-4aaa-a625-99082794fac6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_c0776da7-cf69-40a8-b042-16ebc6860647">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_ced7de93-05ca-4480-baa6-c8adb45932fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_5204603d-7beb-4834-bf34-970a8497d73f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      id="F_df1fc11f-1ccd-460b-9a73-7d381296caea">&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,551,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_a13260fa-b8f3-4721-b2e9-7a0741d11883"
      decimals="-3"
      id="F_7cb36aaf-53dd-4eae-a49b-224e92f395b9"
      unitRef="U_USD">2551000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
