<?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_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_d8219dae-2332-41a3-b79e-94aa0e712c56">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_e93c1578-1833-41cc-b18e-9b370d82b54d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_80038119-e342-4bbf-bffd-abcd4fbe15dd">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_88eaf933-f4ae-4d37-aa77-809d6d955a2b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_3cec6052-eb0e-425a-a236-099be41166d8">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_c13c863e-bc17-4697-a3f0-af2359ac0759">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_069e7d3c-4c2b-42fb-83d7-3d7427a95875">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_5c3da684-4e88-4496-ae6b-7384fb729944">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_90f62566-222d-4c5b-8f2e-99bc4464c404">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      id="F_b0976401-a2c1-41e6-857c-fd08b98a16ab">&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;52,164,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_f98a2557-5fb9-43a6-ad8c-ec79027a1cf2"
      decimals="-3"
      id="F_b1c46fc9-c7a7-4442-bd3f-4a11a3f27d4a"
      unitRef="U_USD">52164000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
