<?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_8e28cb27-d454-4ff9-801c-832e81042ce5">
        <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:SubmissnTp
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_ec80e786-32ee-4cfc-bab5-e078db18f3ae">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_cd98b90c-56e2-46e6-b4c0-0fad9f05f68c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_12f87f40-6eee-4691-a14e-4ba24a82c71f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_ce8cb23d-7164-46cf-8959-42590e4e32c8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_c889100d-2318-4782-bb02-0d131df69030">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_3fb8c91c-e7ca-4bcf-bc6e-d096c1c17edd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_5150b657-2388-4f42-9712-19c29cab8c3c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_1b7fd748-63a3-4867-aabf-45c3057f6335">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_84df627d-ba3d-4743-a766-b38228c83cfb">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8e28cb27-d454-4ff9-801c-832e81042ce5"
      id="F_22d81a3a-0ad3-44bb-981c-58226a4bea43">&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;1,813,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_8e28cb27-d454-4ff9-801c-832e81042ce5"
      decimals="-3"
      id="F_ee635c24-5acb-4862-9859-35b64fa115d9"
      unitRef="U_USD">1813000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
