<?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_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-18</startDate>
            <endDate>2025-12-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_2f437924-060a-421c-8cf0-c63683cd8276">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_7b2d6eea-c757-4499-9c77-e69e741b3449">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_a28e2d12-7efe-48d1-b347-e8931b589362">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_05baef8b-8e34-487c-87b3-b9a5f2b5dd15">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_7b4e6cbb-7a51-4c15-bd2d-84aa58f05dc0">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_d5abb8b3-d5a4-4b69-8d04-bf296bc76091">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_e9524880-5681-4a73-ac26-189ee9a76452">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_b6e38cb6-596c-49f6-8bb9-9368cafaf1e1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_e72ccf08-46ec-4aea-853e-7c718d6f0da0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      id="F_1f800e3c-9137-4889-aa07-0cf057f385b9">&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_0bdbfd03-ec7c-4a8e-b8b6-61cdc9a7fa8d"
      decimals="0"
      id="F_a75e89fc-f5ba-47fa-8756-fca189484bed"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
