<?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_301e2694-32bd-414e-85c4-c1d2037f45ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_3c91dd99-72ef-4110-8bb4-5e95ccf1c3ee">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_ab87dd27-9592-4079-853e-4f9cb5ee2091">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_ac9b92b7-903e-487c-8e31-89f72642b841">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_e4121b57-a51a-41f1-b0ce-0997bfdfcce9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_5473b12f-5d0b-42d3-af9e-21179dbb3bf0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_e3d34993-c311-44c7-a145-7091bd0eda25">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_5b051fd9-dc77-4f2c-b771-a00ff68a49e1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_9c3d0009-a5ec-4709-ac26-7144bf4dbb26">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_87ae141c-6bc1-4d37-90f2-32655ba38cb8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_301e2694-32bd-414e-85c4-c1d2037f45ad"
      id="F_f68068eb-5a81-43cd-89fb-cbf8ae2f3d8a">&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;2,975,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_301e2694-32bd-414e-85c4-c1d2037f45ad"
      decimals="-3"
      id="F_06a6de4a-c80e-4dd2-a10d-2bd0ba088441"
      unitRef="U_USD">2975000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
