<?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_516d42c6-3a46-496b-8887-08a4adecd8f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_b9c1868d-15d5-4705-9a20-abed9fcc6fe9">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_3b3248c3-fe86-4f58-b24f-e314805b1bcf">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_91f3785b-20a6-4e70-8057-240cd716d36e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_d0518fac-ff5c-4cae-9fbc-eb77ae8b7d8c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_c4b5ef89-a948-44d5-8125-4d58367261cf">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_645e8243-1024-4b41-9e63-6dac59a260ca">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_22922278-4a3f-41e2-9502-18e6a2b86db5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_40c0e8b9-e9f2-45ed-b249-7f66345cec6c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_ee9be7b2-0d14-45eb-b52d-b4cd65847540">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_516d42c6-3a46-496b-8887-08a4adecd8f3"
      id="F_ae14148a-e8d5-4c9d-a5a7-4f98dad220a0">&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;552,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_516d42c6-3a46-496b-8887-08a4adecd8f3"
      decimals="-3"
      id="F_139c106f-0a08-4181-a762-8f48fd562a71"
      unitRef="U_USD">552000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
