<?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_af83e6b0-1687-406a-9884-37cb7d565293">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_bb5f323e-5049-4b16-9e7d-7bff07f88188">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_c19839cb-9cf5-40a9-9b07-01da059d2c3c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_e0599eb8-4547-406b-b6c4-1b307933d70e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_5a0e1b56-c14e-4f50-a595-c4883ff51fe7">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_acca066e-a5bd-447e-9cec-fa3658821cf1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_c8084f98-d053-4bc2-b63e-6955a66ee4fe">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_11685f6d-293b-4f0d-a4c7-1cd370982c01">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_4e3f9de5-079d-4375-adfa-6cba95bc9bfe">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_79172a7a-7815-449b-9a37-fd5d178c3e8b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_af83e6b0-1687-406a-9884-37cb7d565293"
      id="F_005c3bfd-6d88-4358-abc8-fa809b460371">&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;19,769,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_af83e6b0-1687-406a-9884-37cb7d565293"
      decimals="-3"
      id="F_c20fb434-0b08-4c3a-9704-004066482c60"
      unitRef="U_USD">19769000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
