<?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_3b2800ac-11b7-4432-866c-886ae8d95d78">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_ec0c89db-9d5a-4f5a-8c41-f71d80a6e177">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_85bf8c3b-647d-4bda-865a-82aee4f62b8a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_6855d182-deb1-469d-b72b-940eddd0d832">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_66600345-0e75-43a1-89cb-bd270040c352">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_02215dcf-8962-4158-be01-7405bb4ebada">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_14ddab15-16cf-4bbe-8320-ffed37524c77">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_90bbc468-572b-4f50-9eac-ae344289d500">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_03ee3f27-b710-4e3c-93d3-84698b2ffea6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_0cf14cdc-f636-42d6-aad2-ee4cf78cc82c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3b2800ac-11b7-4432-866c-886ae8d95d78"
      id="F_70cf6994-e232-4b08-a02f-dc4252fa4e56">&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;2,409,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_3b2800ac-11b7-4432-866c-886ae8d95d78"
      decimals="-3"
      id="F_ca4e64b3-435f-47d1-9e7e-7c426d490afc"
      unitRef="U_USD">2409000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
