<?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_6cf84d93-0a3a-4834-8458-147e41809a8f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_08706484-a534-48c0-8a80-4057c94f102b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_298a5bf1-ea02-454c-b981-0c8e4d953ddd">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_360fa1db-e39f-4ae5-89d6-49cb30602ddb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_d1ddccf9-e0ed-421f-9e0a-2b0f7967ea46">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_e8f1f013-6f76-4611-b4dc-56b48c6d1e2a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_4c9b4f2d-f811-4adb-b96f-fa459ef62ce3">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_da518b0a-b057-45bd-a766-a7972784382d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_e7b89512-ab18-42d3-b517-3d44332b722f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_871dfcc7-de6c-4485-8382-0faae86a8b03">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6cf84d93-0a3a-4834-8458-147e41809a8f"
      id="F_896a518a-3e8c-4eb7-b78f-0645eb823f49">&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;1,024,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_6cf84d93-0a3a-4834-8458-147e41809a8f"
      decimals="-3"
      id="F_ae0f1e90-08c6-4772-978f-5fb72fdcf04e"
      unitRef="U_USD">1024000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
