<?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_a184b42c-ce79-46a5-b923-300b5920d285">
        <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:FormTp
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_09537fc7-9350-4d30-9bb5-f0474b55cb71">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_8893294a-e502-4121-8d5b-32c91633ea98">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_23952c22-d7f6-4e9e-8d1e-3302c511d7ab">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_74763580-792f-41f2-848c-a71d1795aaaa">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_a0ede1cf-6291-4ada-9a7d-710e3890dec0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_6c6f6482-26b1-4b81-828e-86c7d1bc5afd">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_160b9220-1bb2-4985-93ed-db13d0f5c689">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_d89fe4c9-c576-4045-ae9b-03985d352d4f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_7b3cdd6b-cb53-4968-b3bb-cf12876ea694">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a184b42c-ce79-46a5-b923-300b5920d285"
      id="F_07746b84-490c-4ac6-b454-cd0f898963f1">&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;3,592,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_a184b42c-ce79-46a5-b923-300b5920d285"
      decimals="-3"
      id="F_3183fb07-099b-406b-b391-6247c72fbe79"
      unitRef="U_USD">3592000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
