<?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_3942ebbb-2b9e-497e-bd46-5de9a3c707ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_ab3592ab-5084-475b-89dd-a6c745064894">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_e1e837fa-a659-433e-be7a-89358873c6b3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_9d10c694-9ab5-401c-9ada-d1d6746589ec">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_c032789d-c970-44b5-a770-0a719d2d7c79">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_98464d34-bfaf-498d-bb2c-cfac8e16a701">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_4e6858c2-9c2b-4434-913d-7c26a579baaa">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_06ae7aff-1df0-4821-817a-5061db350f85">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_4636d0fb-808f-43a9-915d-9f93e5550473">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_d04af63d-bcfb-4aca-91cd-1a7c933c5ab1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      id="F_702ea1e4-7542-4844-8805-6951fbe8eda3">&lt;p style="tab-size:26.66px;font-size:12pt;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;4,642,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_3942ebbb-2b9e-497e-bd46-5de9a3c707ad"
      decimals="-3"
      id="F_00838f30-f356-46ed-9486-02302f63540c"
      unitRef="U_USD">4642000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
