<?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_6b155999-a7ec-452c-b95c-deb5707f60c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_16ddec7a-3c7c-4c70-a781-7115cb4f878a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_a7ee579e-437e-4818-b488-2c9914d2bb95">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_f2ace633-7225-4073-8e59-65d27152d639">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_ee1dab7b-1bfe-4be1-a426-496da2f9779c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_612200cf-c84a-450c-a1a1-3dca24f1f044">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_ca02ac39-a99d-418c-bce6-8d84249c3715">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_ad7929da-aefd-4378-bff5-ea497393cdf5">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_6e0e9d51-2f8a-49a6-82eb-ac463e0e2447">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_32c5fd71-ae5b-4cc1-afd7-a2067fe82b01">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6b155999-a7ec-452c-b95c-deb5707f60c6"
      id="F_064bc7cb-210f-41d2-8829-81abb223b9ed">&lt;p style="font-size:10pt;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;8,964,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_6b155999-a7ec-452c-b95c-deb5707f60c6"
      decimals="-3"
      id="F_f0acc810-59e4-4230-8166-3ce4da0924fe"
      unitRef="U_USD">8964000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
