<?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_5f8c7e12-3027-4d5f-87f1-40ddef37e039">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-21</startDate>
            <endDate>2026-09-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_9d760843-b5e2-44cc-ab2c-9123457e5350">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_79fdf97d-3e31-4dc5-bfb6-48b2698d58ec">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_ccd30b84-e15e-44aa-afaf-46ede55d5e8b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_dddb813b-61c4-4092-859e-e13e75205729">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_bc3d8944-cacd-4d9f-92f0-af490a37b801">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_acadcc29-70d7-44bc-aa84-2221b74ca04d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_627878e9-9a53-4783-8553-2228f63a284a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_99bb6281-0c32-4f22-bcff-6b29eda73850">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_5bf4d338-b6b7-48b6-8472-98714e265645">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      id="F_d52a2354-f878-498a-81e4-96d7b50e08b7">&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;7,525,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_5f8c7e12-3027-4d5f-87f1-40ddef37e039"
      decimals="-3"
      id="F_6a186e46-2389-433e-b5eb-e51a80f59fc2"
      unitRef="U_USD">7525000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
