<?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_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_9ce4a408-0f7f-4444-b22d-dcf4171b6607">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_1ee97af9-25dd-4857-851b-b19f826edfdb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_fb389a6e-0870-4985-9e59-ed92c2378809">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_9a0b5481-3002-44fd-ae94-501922758e85">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_6b4bf9ff-36da-40cd-a5bd-169c4a20763e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_f61493d6-04d4-457c-a14e-4e803fbcf986">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_3cba68b0-4935-41ad-9ecc-86ef7faaac37">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_8671eca7-bd3d-4c10-a64f-40f3cb032801">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_5e8f87a9-edd0-45bc-82fc-93b3c58b776f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      id="F_5320b924-97ae-452b-b1ff-a7c865c7b7d6">&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;11,000,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_645083e4-d3e0-4ee1-b7c1-c43ca93f11dc"
      decimals="-6"
      id="F_9afaa2af-c4ef-422a-b7d3-ca8055983aca"
      unitRef="U_USD">11000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
