<?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_17e6253c-b9bc-40d3-b4d6-b344d7380723">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_a6c2f590-c1ef-4869-9a5f-9955c4873dc4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_c2d7b8f1-b958-4392-84ed-42f034b92009">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_1e9d0408-a9ec-4868-b376-5aea62b51f65">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_a7ee3ff0-803a-4b68-9a9d-7273a7173e05">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_d189257c-4b6f-4533-903b-05b7ed489c98">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_6dde4c1a-a32d-4d85-90a3-5beeae1f7b91">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_fcf44e03-219c-42e1-9ecc-73c2972e791e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_4cd1fb55-0ded-41f2-9401-a8e6fabff9c8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_024c7900-8e86-4a9e-bb85-3017c9e909f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      id="F_3cff1a09-8b84-45e6-8efd-a098f9e81d6f">&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;439,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_17e6253c-b9bc-40d3-b4d6-b344d7380723"
      decimals="-3"
      id="F_a80985b8-842b-4953-b21c-7745c3b165e4"
      unitRef="U_USD">439000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
