<?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_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-04</startDate>
            <endDate>2026-11-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_27290914-c069-487f-aca0-533999ca7b1a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_eb5117ff-d4c8-4431-8d0d-5e94f5d4bfe3">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_71531d4f-9467-40e8-8eb4-7041fdbd07ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_4bca98f6-5c58-455e-8ce4-5d4861e2a345">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_e7e94d15-1ca8-4d90-9ae1-1300513632c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_0c390427-51e3-41f2-82be-4c254f8f1a24">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_e050af86-af9c-4034-959a-a9bfa1f1771b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_c24c223c-821b-484a-bb81-e81ea7ab96c1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_0a3f417d-cdac-426e-8aaf-51816c65544d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      id="F_f04f054e-214b-4cf1-a794-866de178d09e">&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;5,000,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_506b2aa2-bd3f-49ef-8a76-63eb2e2bd501"
      decimals="-6"
      id="F_deb32e52-63bb-43b5-aedf-8899c9e76e3f"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
