<?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_d3b125b7-b8a6-428d-b46c-4ea36a942ef6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_f3b31403-90bf-4f40-b545-149e586a5cd6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_e14b691a-9ba7-4e8c-bcc7-a9898385dbc0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_4d2ebd28-64e5-457f-a64d-0ccf2c31de96">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_6f10d41b-9ae0-4e47-9176-e2cf7df8de6c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_d7dfdba0-1249-4c76-aa06-125d81d596b4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_f3bceb62-1703-413b-a84e-49e8164d51f8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_221bae7d-5c36-4149-8abf-3b21bedbaebd">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_325cdc4b-689e-4fa5-93a7-4ca02a41fadc">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_0084d5bb-8d32-41a2-a056-ba8832d704a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      id="F_ea4e3c03-448d-44ac-9fde-3ec1471299b8">&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,150,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_d3b125b7-b8a6-428d-b46c-4ea36a942ef6"
      decimals="-3"
      id="F_0180bbce-06a2-42da-959c-ab75099a30e4"
      unitRef="U_USD">1150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
