<?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_7b16995c-e61d-4edb-bb4f-9abc98dd52ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-09</startDate>
            <endDate>2026-10-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_64d26b43-4f61-43b5-908c-efdf27a24018">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_11359662-ee9b-4052-8b86-4ecde3e5e254">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_28750ce0-ed25-4936-bd5a-6adaae3493cd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_012d4f71-41cb-4d0a-8ced-71e798e8a269">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_dcedd689-dafa-470b-a0ac-7827b4cc5b0a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_32b1d06a-dd2e-4218-83f4-f45e51a196b1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_1ae08681-2620-4bc6-bf98-921217e4c1d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_cab9dcb4-a88d-49a0-9cfe-88601e13c83c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_75c99786-f3b2-4da9-a7b4-74552972e8ea">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      id="F_02b2ea93-da74-4616-a4f5-415a2070f2f4">&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;635,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_7b16995c-e61d-4edb-bb4f-9abc98dd52ca"
      decimals="-3"
      id="F_ef1b4a7b-a252-4bf4-834a-09cf0feaf4ed"
      unitRef="U_USD">635000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
