<?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_16dea38e-f3cc-4dee-9336-a778918e995a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_f38f7334-88b3-44ef-9081-14b784bc9992">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_6d58232a-bbec-4aa7-b926-715a2d035b34">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_4ad07a2a-ed68-454e-85e3-161937a56b57">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_dea51ec5-9715-45b6-b328-d4768d91792a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_fdede9c9-54eb-4b32-82ff-fa492ab4fa4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_3b2487cf-a743-4532-bca1-e7a243b2f9ae">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_c011986a-f4fa-4a72-8c5a-80b2428b407a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_a3783c15-479e-4acf-a95b-9e67142b8ad3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_437cc07c-15c1-4d82-a4fd-fd398df9013e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_16dea38e-f3cc-4dee-9336-a778918e995a"
      id="F_2800d08b-a920-4dc7-bd98-fb44482b3f4a">&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;4,423,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_16dea38e-f3cc-4dee-9336-a778918e995a"
      decimals="-3"
      id="F_735ef4be-2acc-42ee-a79d-e82e6f6a102d"
      unitRef="U_USD">4423000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
