<?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_5a1ce428-1718-4852-9873-c46ca8606c1f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_9d029ab0-1591-4af8-a7e0-e472aafbca6e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_a704a2bd-1105-46cf-b926-363584ed345a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_20e1d6a4-bb5f-4768-b571-f4517dfbb9b7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_d9ed646a-3218-4354-bafb-3c90f3b2c5b6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_9f381bc5-b643-4b30-8daf-463b165582c0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_b375f5bf-e208-4cdd-9649-dbd3cd8d30e5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_344d8e43-4273-4f1d-8bd2-ea79d20a4a96">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_46aea5df-5256-4f5f-85e5-db8b8d4d712b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_6afa282c-2b60-4871-8dfc-2c706be0c27b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5a1ce428-1718-4852-9873-c46ca8606c1f"
      id="F_eab1672d-cc9c-47c9-8831-7906c1a195f4">&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;2,622,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_5a1ce428-1718-4852-9873-c46ca8606c1f"
      decimals="-3"
      id="F_eb6a4b87-1a1e-4ac4-9814-1dea0cf6c158"
      unitRef="U_USD">2622000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
