<?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_a7bfaa81-0b59-40fc-9948-f61567b8308f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_ed32ec30-bcae-4b8d-b7b9-9d97669d95e3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_916dfdd6-fb20-4e63-a82d-0b002a011c7e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_304a296d-09ac-476a-a8a0-59d6d93c13e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_7e4d1b45-7aca-4614-9fc4-51201db7ef31">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_56d7ad7f-2f51-4e70-a391-bd90038f5f87">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_175b3088-0c6c-43d2-8b66-fc87f821f84e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_fc076137-8453-4dff-944c-79427c23852b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_fb9869e8-d55e-4c25-8754-0dc40b0bd46d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_09e2d488-bede-4f4f-bb49-561f593aa6d4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      id="F_7c14d65a-de01-4d3a-a442-e6e29b74a275">&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,529,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_a7bfaa81-0b59-40fc-9948-f61567b8308f"
      decimals="-3"
      id="F_f901e7a1-1553-4a8b-9ef5-59b81b2fa819"
      unitRef="U_USD">2529000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
