<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_5939d513-9963-496b-b36f-deef76cba2fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_c4af8ca7-071b-4c1b-8db5-72884c5dbfbe">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_df4622c4-f04c-4332-8472-2b48d6fb259d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_584061b1-d948-42d1-9c41-73d2c754039a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_79f31a89-d7d7-4a4b-b0aa-ec23196886aa">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_7761fe9f-d62a-48ae-b228-9ee4109364e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_a8594b37-2377-4658-83a2-d5f399fe96e2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_26d47fb1-9f3e-404b-b8a1-8e116d61846c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_3f202f5c-ee9e-4ee5-b717-6d97fa9bf47e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_88374a45-d5e7-46c5-ba45-9a18f81370e3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5939d513-9963-496b-b36f-deef76cba2fc"
      id="F_94489812-19dc-4a32-bddf-9914b27520ec">&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;5,479,050&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_5939d513-9963-496b-b36f-deef76cba2fc"
      decimals="0"
      id="F_303a63f3-c4a3-4b07-ac59-aa6ec5cf146f"
      unitRef="U_USD">5479050</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
