<?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_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_87d28250-aa11-4158-a83f-97397c30e520">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_fa306ccb-df86-4321-8e1b-c51a1268b203">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_8b8a07ca-55c4-40be-8fdf-eb8eb3a9b4d2">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_435ab700-a171-4b98-ad03-0a3acc8693d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_012908c6-90fa-46c0-8083-58f1d0ea36fe">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_1ef37531-799f-4274-b9d3-804d25ef1be8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_d7f378c3-45a9-4a27-8a37-bd6bdf6207cb">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_10d63d94-2fff-4c84-83a4-bff8d61fc14a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_43f249f5-6a8f-410f-a9df-f60746c6451c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      id="F_f42487b5-17d8-4230-b1a9-8232713e1040">&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,065,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_de5351bd-a998-4026-8b3a-f7e5a6dfe3a4"
      decimals="-3"
      id="F_aabe2416-b8a6-4587-aa4d-34a51a1c05ac"
      unitRef="U_USD">1065000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
