<?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_c369ec9f-bb21-409c-b4ef-394981911c05">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-19</startDate>
            <endDate>2025-11-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_a8943f1e-8e74-4905-a8bb-eada8b111cb4">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_625cc07e-de08-4dcd-97c9-86d8d9331223">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_d9a090ab-8e0d-425e-a239-1a5e836522d6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_b639279a-3481-4fb1-a99e-26c131c789fe">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_2e0545ba-8bff-45d2-aae5-47e74d61fe7e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_eca88b06-d269-4869-bff7-127eb9fdb1d0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_36677e18-122f-4f0c-ba5c-861ec77aab27">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_43956e18-fcb7-450f-acb5-9588fd3248e0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_aa551160-f431-4797-b4f2-a2e2d2f63a3e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c369ec9f-bb21-409c-b4ef-394981911c05"
      id="F_f9637e1f-2d39-4d2e-9c64-f76eb3d42c66">&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;500,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_c369ec9f-bb21-409c-b4ef-394981911c05"
      decimals="0"
      id="F_db99146c-916d-41a7-8e42-27733e3c91d5"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
