<?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_d4d5e137-3fde-447c-a2ba-ac733ad40dd4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_22aa9efe-b9a0-4131-a926-ea37ea564511">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_43017b40-6111-4d3b-bb9b-651e93304603">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_9a40db3e-f3a4-4319-bf1d-9c3429703fb0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_6bee2b2c-e99b-4116-bf26-7b90e51d8a53">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_56318478-9764-4e2e-a2b7-f76357b59ed2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_0af52fdf-eca3-4b97-952c-55a6ab223091">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_4f50e957-22a7-4848-a1f6-0ebfaf049e14">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_bffa0fb0-d506-49f9-83d4-adaf203e3639">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_5423cdd9-d013-469b-b90e-023092b5d68b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      id="F_144bdc4c-2868-443c-9269-a237f8679251">&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;1,200,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_d4d5e137-3fde-447c-a2ba-ac733ad40dd4"
      decimals="-3"
      id="F_f9e1f4e5-6e2c-43c6-a003-589dbc83ccb5"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
