<?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_f6728c70-4d65-445e-bb67-736e4e1606aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_c55a1e6e-33d2-4eca-a944-1e5c54dfa58f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_a74fdbda-9a23-4a4a-9c1b-d4c0119733b3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_e337dbdf-1082-437e-9663-8aa7f52f2c07">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_51303a9c-2e72-4a49-a822-c7e1c7c1e56b">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_982076ff-e746-48ff-943f-b1c1cf0986fc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_3a4a9800-fdbf-47bd-a720-8bbad26985c1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_16330c1c-e21e-4004-adaa-2eed4d18dcf4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_713b710b-e36d-416f-9dff-430caa634ca7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_af31d8aa-06c7-4588-85ac-eaef3d793071">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f6728c70-4d65-445e-bb67-736e4e1606aa"
      id="F_9f9f6ce0-e981-4b7d-9e4b-6ff951024217">&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;9,167,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_f6728c70-4d65-445e-bb67-736e4e1606aa"
      decimals="-3"
      id="F_efaa97bb-d27a-4b04-b94e-b983e8e7309e"
      unitRef="U_USD">9167000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
