<?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_30364b22-2804-4e31-82c0-3ce2e9e79189">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_d042ee64-39ed-4d2f-86d6-f4f1285ca0fa">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_dff002d4-2236-44fa-ab43-fd4bfaf33af8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_b644a373-53f4-44b6-844e-f7aa1db1b8fc">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_86be98ee-454d-42c7-94f4-b8f3cf612f23">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_01f4543a-8c8c-4cbd-bf77-882039f8ba1f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_b4242ec5-24ff-4a99-8da9-5a955d6e8945">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_60cafdd0-f617-4349-892d-4bc7116cfbd5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_a061ae21-b0dc-4393-a1f9-22591f38cc5c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_3ac07676-3f2e-490b-b8f6-e88ff2db7c59">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_30364b22-2804-4e31-82c0-3ce2e9e79189"
      id="F_7a435524-552e-42ec-99d8-5b548d400880">&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;737,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_30364b22-2804-4e31-82c0-3ce2e9e79189"
      decimals="-3"
      id="F_911ca63b-d2d0-4f71-8d65-aafbb4e790ec"
      unitRef="U_USD">737000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
