<?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_56826579-60f7-4c52-ba00-f08dcd5b8d70">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-11</startDate>
            <endDate>2026-09-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_ed4030df-3691-44d0-922f-6bd03c7c86e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_3313e0cf-60ec-405d-b906-a3647831c450">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_0eb06412-db2e-4cc2-ba0a-450837a56d3f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_7f76a5c6-f82b-4504-99f2-aedcd348d19f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_d4e766ea-b182-4720-86d3-bba72e5861b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_a99f070c-95e8-4320-a14b-7377846c8dbd">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_f65527d5-0d0a-4164-827f-c26329579e8d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_f39625af-283c-4c3b-821b-b16f898d555a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_359aee22-46d2-4ea1-8823-9990fd51fae3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      id="F_b03886d6-1d21-4afd-bfff-2dc86350dc0a">&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;220,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_56826579-60f7-4c52-ba00-f08dcd5b8d70"
      decimals="-3"
      id="F_563d993b-5afa-4b7e-a574-c031533bfeaf"
      unitRef="U_USD">220000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
