<?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_6af01296-9bf3-49d1-a559-d56ea70436e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_6b3ce5dd-a9a7-4f02-ba6a-dd9fe5c4e4f4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_0e0568a8-77eb-4558-9d20-46ea194182ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_b2c66038-94f0-4fed-afbf-f4727c933d3a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_b4957261-6a15-4e81-a042-6e87c737b42d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_29b86ca4-8024-41af-bdd5-930ce0e2eeb7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_43f163d5-2ce6-445a-9d8a-bff8d9823071">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_f57df5bc-2224-43dc-9ae4-2de26824c875">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_be2c5a5c-b93a-469d-87a1-fd425df1fe3d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_e7bee868-4e01-48a3-b1a4-876d63f60208">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6af01296-9bf3-49d1-a559-d56ea70436e4"
      id="F_93175a3b-5216-4098-b876-e5ceb1a0df27">&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;1,093,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_6af01296-9bf3-49d1-a559-d56ea70436e4"
      decimals="-3"
      id="F_fdb119ce-0dbe-426b-9e0e-32ad10f40572"
      unitRef="U_USD">1093000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
