<?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_90320334-e680-4e0c-ac94-9d0600169619">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-13</startDate>
            <endDate>2026-07-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_23f09dfd-fbdf-4d45-9e6c-aade8fbe4951">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_d2cdfafe-6509-4b27-8f0f-dca806fbf5f7">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_9665605e-953b-4eaa-8598-a6126fcfaf2f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_f251d338-ac65-4fa3-9e6e-0b152bb10b1b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_c24658a7-3df9-4658-a32d-5b19c365eeb2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_f46d55d8-776f-4689-83c9-a31a289ed228">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_d0541d91-a3e0-4574-b396-a31e2f637698">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_d694e9ce-dd3d-4014-97ea-775140c13d41">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_b0fdddde-4d05-4f16-bbd5-46dbe336e421">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_90320334-e680-4e0c-ac94-9d0600169619"
      id="F_31dcb539-6a38-4e89-b49b-f31d832102e1">&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;15,356,220&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_90320334-e680-4e0c-ac94-9d0600169619"
      decimals="0"
      id="F_bfcdb06f-57d4-4268-9dbb-1a0bf0fbf1a2"
      unitRef="U_USD">15356220</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
