<?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_182f0516-3b89-4e2c-8925-4ab6091ad88c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_7b248e92-dccf-4c82-a555-b20d8902162d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_c4be8f0b-2e73-427a-9417-1bcc788a277b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_b00e7116-67ed-42ca-ad24-b2753dc4d935">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_7c7d4abe-826d-43c0-9bcb-a3a4888e42be">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_3b4cfe8d-816d-46b2-8b3a-4793e24e2d24">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_d289e3e2-ce7c-44be-84fd-029d3bedbbdc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_b258cd48-7f1e-49e8-95bf-b130a6e63273">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_bd9f439b-889e-4f3d-9397-e2b03327c9bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_3b2824cf-d175-467d-8143-8c7f9c0d4942">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      id="F_85623095-44bd-407d-9b90-83095d2454f0">&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,450,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_182f0516-3b89-4e2c-8925-4ab6091ad88c"
      decimals="-3"
      id="F_69a40a5f-3f55-44d7-8ee3-2636a7e5f111"
      unitRef="U_USD">1450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
