<?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_86dd7186-80c9-4d36-a89f-6d00b165ddf4">
        <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:RegnFileNb
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_6ec5bb5a-a6c3-4e8f-8add-e6cb6ca5c3ba">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_d8682689-86ec-42bd-b5e0-0999464b4bee">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_8bc0fb23-cbaa-4589-b69d-6d5636ae861a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_70bf4b82-6197-46cd-ad1c-9484cf80eb81">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_0cfbb098-0df0-414e-a70f-dbfafc5cf217">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_78cc5331-012c-496b-a1d4-e46bd8903a03">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_7f5096d3-47af-42ef-b3c6-cbbde375c4a7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_cd8096cc-ccfa-41c5-bf1f-ee827dbff1c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_4a15d7fc-756b-4bd1-8853-5541af927d41">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      id="F_f26b2ef3-1fc1-40d6-9db4-de514c68e24e">&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;4,275,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_86dd7186-80c9-4d36-a89f-6d00b165ddf4"
      decimals="-3"
      id="F_0cda7ef6-f2fa-4cb2-ad80-5d08400bbc95"
      unitRef="U_USD">4275000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
