<?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_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_65f4fdc2-5c8c-42d9-9220-66d336c128b8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_07af3847-1495-43b9-9500-eeca7be21e5f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_7f5418e2-ba4d-4c4e-844b-e17402bf0124">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_1fdf34b1-d2dc-4179-9611-0e5bac2bbf30">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_d3035a35-62f2-4d0c-8d70-f4cf8f0c647d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_1937e966-999d-4259-a0ef-0636fbc41048">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_205504dc-5f51-436a-be40-075db6f34703">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_41804855-c4a2-449c-aeb1-45ac9883f4d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_3f6c8187-4664-4176-9480-3d30d318d721">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      id="F_1639da50-82a8-4488-8132-820b494adf29">&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;350,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_0a56e5f7-beab-4d6e-9d05-f5c123b60ed4"
      decimals="-3"
      id="F_7c7f077e-dbf1-4a34-bcc0-dc7ec0b2ae93"
      unitRef="U_USD">350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
