<?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_969dbb98-b095-4969-bd5d-c3b8a6b32dbe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_5a693201-e1b0-4efc-8d77-724ae3ab69e1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_ac1a3f0a-9531-4d8c-a0c5-d53cc0eddee4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_104b8c23-dba4-49da-a108-b8deb78c9e6f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_1e09a8ae-36a5-45e1-87f0-c4ce3dc70a78">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_a88aa1ca-1139-4711-a440-ac4b8ea4438b">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_c9003281-1324-4465-891a-364014e669b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_72581b7a-0bc4-4286-a430-1e0034676b49">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_ad6b5524-74e6-4d60-9bab-63681a7ece7c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_e16e889a-b77c-47a0-89d0-d35c4979e151">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      id="F_1a0e6f7f-8b67-4e27-9b2d-85673925e8de">&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,655,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_969dbb98-b095-4969-bd5d-c3b8a6b32dbe"
      decimals="0"
      id="F_d5887237-32b5-4799-b736-c0c400c6de32"
      unitRef="U_USD">4655000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
