<?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_9427ad54-c5e3-4af9-8451-e362a1333bf8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_37e86dee-593b-42ba-b1f2-96ad26ca2d0e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_6c1384df-84dd-42ce-8a55-a72b5a59ed7d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_e241ce47-0d42-4722-bd17-d5f0f62a8ee4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_4d09993f-ef53-48bb-bf8c-7f18d65c49f3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_c43a2792-11f5-4704-8d83-76f038602bff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_77d34f34-04d7-4386-90ba-dc2d9a7e7ac9">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_a36fc85c-f3e5-422d-915d-35de786d8ee9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_8c4d6332-d585-4000-b322-b61a972e64ac">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_d14c831e-5b59-4926-b58a-2733fd3d6b41">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      id="F_01228a0b-6552-4179-882c-6e11be0a5b8c">&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;2,000,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_9427ad54-c5e3-4af9-8451-e362a1333bf8"
      decimals="-6"
      id="F_32cb73e8-cc8f-4979-b3fb-0310a9d78996"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
