<?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_0a7e8f93-d952-4823-a6db-283c11abdcba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_de306550-9d1d-4535-adbf-053a804ad14a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_7226c005-ea53-4965-9f6a-d78a0a9a9e12">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_21eb4270-05bd-4e70-bbcd-f17b093a98a9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_246d8bc6-c72a-4175-aeed-aa0b3d0ae92e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_3974f764-41f3-4e8d-9a73-321d8b2b6358">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_aba66db4-77ea-4b6a-ba55-28b0f948c08d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_1fec0397-e957-4824-ab32-bf6287fa4e83">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_6a273b9f-a68e-41ad-82ab-9a8f849711ab">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_14dbd292-4dd8-4272-bec8-3c67fb09f614">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0a7e8f93-d952-4823-a6db-283c11abdcba"
      id="F_0608915f-4620-4114-b17a-a684c52e899a">&lt;p style="font-size:10pt;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;320,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_0a7e8f93-d952-4823-a6db-283c11abdcba"
      decimals="-3"
      id="F_3028b341-2576-4b69-94ca-2ad25af2bbbf"
      unitRef="U_USD">320000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
