<?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_4e219b3c-184d-4765-8b38-ef8a4575e4a5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_2cd4b42b-b3db-4985-b4a0-fd20d5d6052a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_90b4574e-b2ab-48c0-a2f4-0d8dcb93760f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_02250d3c-20ce-4402-a7ac-2f26a10463f6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_be437b1f-3afb-4ef5-b7cd-97ecfd13aa5c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_a83660cf-257e-4eba-a219-ed4674019c90">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_ba3d0ee4-3aaf-4423-8695-6515885934ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_9b3fe826-a97c-48fb-bb3b-7e84ed0fa84c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_3d00aeb7-d4d8-4da4-b873-1402ab86900b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_a53df7fb-e0b8-4dff-b35f-d552e7713be1">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      id="F_c2580c88-028c-4b19-8b44-400439a2f0f8">&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;843,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_4e219b3c-184d-4765-8b38-ef8a4575e4a5"
      decimals="-3"
      id="F_681e865e-1b53-4a43-b6bc-28ea7bb1524f"
      unitRef="U_USD">843000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
