<?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_f6fea01c-d587-4ef6-b133-1dcc7840de7e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_020ad1b1-078f-4703-b9df-08dc611ba56b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_6ce20e92-646e-4a2c-ba16-57fde124778d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_48fea95e-716c-464a-82f1-fa5b8c9d55f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_1e08de29-5a4e-4324-ac4c-a382221e97fc">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_1fc8bb44-cae4-4b23-b891-7004b6013594">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_94efc5a2-0491-4462-b610-7e90910e84a1">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_bcc74ae1-7ccb-481b-b1fd-403eadbd40f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_6e005f02-bbca-4fcd-b985-aaabb09ed39e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_c5bfcf29-97ba-44d8-97b5-698b4bd38687">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      id="F_d3f2428b-bb86-4740-8082-9eeea8c8cef2">&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;5,444,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_f6fea01c-d587-4ef6-b133-1dcc7840de7e"
      decimals="-3"
      id="F_b7b4e02b-3b35-471b-ba1e-d2bb7e7a5081"
      unitRef="U_USD">5444000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
