<?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_cfac14b0-4ad0-484f-979c-ca891fa4b577">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_efd42d39-f748-46c0-b0dd-187bc4c18dfd">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_7834e1fd-e2a1-46f7-b710-3431ee810f51">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_cd332ee3-7a5c-4e9c-a47c-7e0723f92de6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_40310578-5ce4-43d8-98c6-8cf6a740b602">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_02342700-c950-431c-b4ed-67b8448ca6de">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_b15d3b27-bf64-4163-b759-327602857bf9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_95ecb486-0dc1-4ea8-a8a1-1701f38fe607">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_3e6993e3-5bc5-4438-8730-6606ba9c3a72">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_4209189b-47f9-4f5e-9f8a-058224888c17">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      id="F_88580170-cfe2-43d0-925b-b69832203420">&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;2,585,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_cfac14b0-4ad0-484f-979c-ca891fa4b577"
      decimals="-3"
      id="F_f7644b89-7101-4442-8a7d-2f1e8f546b0a"
      unitRef="U_USD">2585000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
