<?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_bdece5a3-8bf0-45e0-9bdd-125988ce2f47">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_82ec306d-38e8-4b92-8116-db73b32b3c40">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_1732c487-8fca-440b-8a86-4867d3f20ab8">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_b47a2d83-2dca-4da2-b9c6-349a1ec886f3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_b6c9b8b7-149f-48ec-863f-131176f28fd1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_b7fd29ac-3e51-4762-b882-3a872a7f0b67">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_4f6f7467-98fd-48e4-b486-710d6d60e9b9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_11b33620-2ab0-48b3-bfcd-ddff9dd0a83c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_1eeac5cb-1631-40e5-8020-d7219f8b934f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_649bfb5c-d51f-4d47-9c8b-7fc6226a0521">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      id="F_dcf43f85-61f3-4849-94ae-f5b511d9669b">&lt;p style="font-size:10pt;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,439,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_bdece5a3-8bf0-45e0-9bdd-125988ce2f47"
      decimals="-3"
      id="F_73b9c1f9-b3dc-4608-8dd3-fe961b0b2627"
      unitRef="U_USD">4439000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
