<?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_0e0a6d66-fd03-4fe6-a514-7b26c4db724b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-14</startDate>
            <endDate>2026-01-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_b1ae8576-8461-4878-8ace-04b2bf9b67b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_857a00c2-08a7-49ef-a4f1-021238cd42f1">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_d5d284bb-cad6-4d6e-ab08-00c877ab713e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_d670a82c-beaa-4078-9770-bfffbba31f38">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_1f5eb989-eb15-4a6b-9dad-a6fae663ba2b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_18b6912f-0999-47e9-a6c0-8ba39e446a8d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_cca340de-b8f8-422d-ae26-06ea850c1bda">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_dfae1091-660a-4697-b6c2-c5c97bada1ac">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_a6e89dc8-e28a-40e7-8a98-dd8cb86b3224">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      id="F_d6701dce-fe46-462c-ac34-936828c9cc5d">&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_0e0a6d66-fd03-4fe6-a514-7b26c4db724b"
      decimals="0"
      id="F_7476ac7e-09dd-42ae-9b18-0fa160bea7ff"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
