<?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_94f75b3b-ecf4-4aad-963f-dbc508a823bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-23</startDate>
            <endDate>2026-10-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_78e1316a-e9f3-423a-848a-94ca400471c8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_bbd04868-7fb3-4ac6-ad6e-d2e51ab26c79">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_37dcc91a-1e00-4fc1-bbf8-712a4e95784b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_36fe47ca-d07e-4762-8cb3-f019f37b8bb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_d52c1079-ccb4-46c9-9a3d-ff1bb71c8501">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_b1816066-64c2-434d-9c2a-e0aa9e9010c8">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_c0672429-c947-4da9-a930-077393d3f9ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_798ebb52-9213-45b6-88f0-f945be7b0830">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_4bc05006-6a22-49df-af6d-a99631b56531">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      id="F_411c3f8e-352b-497e-8bb9-81d29529e46b">&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;3,400,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_94f75b3b-ecf4-4aad-963f-dbc508a823bc"
      decimals="-3"
      id="F_570fa542-daad-4f39-ae15-0f86a99a11cc"
      unitRef="U_USD">3400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
