<?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_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-08</startDate>
            <endDate>2026-09-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_3ec4d0c5-deaa-4c98-aa60-6008b8972fc6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_ce77bbb6-6f26-49da-8e8f-1e7e037015a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_d3d83ba1-9ccf-4912-8317-ccb5e4dc3c81">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_f644023c-ad72-4596-bcba-73ce6bb1b182">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_4a7a708d-351a-4ead-8725-211cb9a8cc39">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_945728a2-9dd8-4c62-b4fa-47a410d50b2d">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_5c374b3e-ad14-4ade-a5bc-021f2911a272">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_48ba3248-e931-4cc7-9e2f-43dfbb660820">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_3b0bc694-6374-49b1-84c2-9a0ff4bd5d52">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      id="F_0e50a557-87e5-4e7a-b3a8-ae838e223220">&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;524,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_35ec6e62-1f62-4e41-ba7c-e13d211c9fa0"
      decimals="-3"
      id="F_3a1e80f6-ccc8-48ce-8366-183e3471ad08"
      unitRef="U_USD">524000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
