<?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_596851f4-0390-480e-81dc-ce50e8e08f96">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_2ed54354-a260-446d-b182-33651c6dc6d9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_8b88f176-2577-4269-ad42-c067ac9832a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_e2f6ccf0-371c-4ad3-be04-fcd8a63e0bc5">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_45e701f4-75a3-42db-955c-c0a220191fbf">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_5b2f2dc8-4d29-4906-bd86-f4038da195e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_d4b49007-ff31-4897-9354-7025d29f6d78">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_f23cadb4-58c7-4795-b1bc-9b6529af36b1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_5b9243e6-db19-43c7-852c-0c321618d1ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_4e3eca44-38fc-4843-9e93-90599a4ec9a6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_596851f4-0390-480e-81dc-ce50e8e08f96"
      id="F_31062578-5302-4720-859b-55637fe6cecd">&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,250,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_596851f4-0390-480e-81dc-ce50e8e08f96"
      decimals="-3"
      id="F_61586e7f-e9a0-4334-bd4e-9ace822c8c26"
      unitRef="U_USD">1250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
