<?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_a9af786f-b72a-4272-8b2d-8aa3ecea8534">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-24</startDate>
            <endDate>2026-09-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_89418605-533a-4014-adfa-6a0b9db246fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_29b7bc10-8068-4ed6-be67-ad3c8383cf95">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_7d8f3755-0c94-4d6b-be97-babb09590905">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_1bd4000f-9ec8-4c6e-ad00-799f38c7e806">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_48e26c84-cfe2-4205-abad-063e637ebaec">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_a191aebb-c9ff-4ed1-be97-f1d45caf25fb">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_b9ddb905-661c-41c1-8ad1-f6f458266e46">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_a456b010-0a57-4cba-8fb1-8b7286c25c98">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_1ae456f6-d14a-42cd-851c-4bc6ab8ca3e5">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      id="F_82ae3ac7-bc21-4352-b45d-9220a7704663">&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;1,118,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_a9af786f-b72a-4272-8b2d-8aa3ecea8534"
      decimals="-3"
      id="F_fda35bab-8c49-4ff5-a5cf-4a2d33acbaba"
      unitRef="U_USD">1118000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
