<?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_786b8ca2-a48b-4ffd-9226-6281b74880b9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_8927485f-6c20-459a-bc76-82cda7e2d64a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_1d2c97de-5e81-4a22-b0d2-99de6e85589a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_c2a7dfc1-aa42-44e9-a732-46308c19d776">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_8e817461-7c88-4411-983c-97337591f320">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_3a4d8225-719c-486d-8004-c3f244ec92b8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_c95405b9-24c4-4147-9dff-7d378b09422a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_c6ed57b9-fa7d-484a-a93c-71218aa4c0ed">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_8830f3a3-1597-4d2d-a8a1-ad4a92bf18fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_13033cd2-fc8f-4883-be0f-0cab96791d51">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      id="F_9b9b1dfe-5c89-4b57-aed6-273035696bc6">&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;62,272,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_786b8ca2-a48b-4ffd-9226-6281b74880b9"
      decimals="-3"
      id="F_be3f7701-9051-4ae9-9fc0-3b2ffc496fea"
      unitRef="U_USD">62272000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
