<?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_8007e2ad-77d5-46d4-934c-45c59c9f21c8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_1c31a66b-11ec-4c7e-958a-4ce24dcaf997">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_3f4fb2e4-0181-4b44-bab0-674b6d75b361">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_cee19fe6-b44f-46af-b1c5-d2b9451a2e59">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_dd87fea4-8fb2-4b95-a8ba-b3fee53079cc">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_134d096a-6927-4c4d-bfc6-ec9f38408249">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_f105b11e-a69d-4eea-97a2-f7d6e838ec68">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_fa3a4798-4740-4fb6-9d4b-89e2eaaa615d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_5c41db52-dec5-4e4a-ab8c-c42eddd972f9">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_5b4d20db-f631-4b86-a29f-61e4178e9a7e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      id="F_889fb3f6-d2d1-42b9-b9e5-458cdacabc71">&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,644,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_8007e2ad-77d5-46d4-934c-45c59c9f21c8"
      decimals="-3"
      id="F_7ea1c973-79b6-4e76-8d23-d6a8f9620aae"
      unitRef="U_USD">1644000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
