<?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_e1faa422-3c58-490c-b231-5be7d0d9125c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_9cb4981d-12c4-4792-a924-4fe5f132c307">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_07d1c4f2-12e0-4647-8ab0-796c4ec7766f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_d99caf43-f976-4985-8f32-72114e4fe925">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_9801e4c6-8d37-4021-a960-b7fc8553d419">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_c2fb9a44-a0fc-4a5a-9691-393de10d1ded">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_85ab16e7-d61b-41ec-ba10-1041c3468f38">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_26cd9072-83cc-4fcd-8890-e2b8398b8fe5">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_f2eac251-24b4-4547-88ae-8e80c9984ef2">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_241a54eb-9c37-4f4d-b73d-71dbade1ae77">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e1faa422-3c58-490c-b231-5be7d0d9125c"
      id="F_7d19c89b-95c1-4815-b771-949038d40ca6">&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;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_e1faa422-3c58-490c-b231-5be7d0d9125c"
      decimals="-3"
      id="F_a794719d-70f9-4b5c-9fae-9b21912afd0c"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
