<?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_2c8a10fc-cced-4558-9a2a-25c110bf1824">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_27b34536-af91-4fbe-8e9b-0804eb10d33d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_5929a589-4c9c-4e87-99ac-34df1c89c9f3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_da907bb6-8ba3-4528-b342-44c42dff7eba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_b8de285e-8f80-43a9-9137-4ea3779f6465">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_7e8eaf1d-667c-4d06-a514-93973a12157e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_ffd6c43b-6104-4e2b-b65f-9156aecc8603">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_055c9dde-d467-477f-9116-7917d92d80e0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_580d84ea-563c-42ac-bc29-b40d3e70ad98">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_548c361f-5165-4284-b603-9ddf9a20e2e6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      id="F_91368b74-418b-461d-a333-6c820b65ec12">&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;1,881,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_2c8a10fc-cced-4558-9a2a-25c110bf1824"
      decimals="-3"
      id="F_aec0ad97-cac5-4d06-8bfa-7aa28dc3b4c8"
      unitRef="U_USD">1881000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
