<?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_aaa974e1-202e-4b86-a225-79c5ff3a541d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-12-02</startDate>
            <endDate>2026-12-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_8ae9166d-1c25-4732-9c7b-24ada40e1f0e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_eb8f8ee7-9a32-4daf-9cd2-e9bd02092514">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_c21dbf0a-a7b2-41dd-b0dc-e7b3678a2824">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_66e35ae6-e001-44e9-8fa8-f931b2149867">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_2be4a3ed-4b24-406e-986e-72e424519d0f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_fb8ce30e-0784-4407-855b-207d92064d18">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_e70b60ea-f223-4535-bac0-ad40642274e4">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_abba5f12-2094-437e-b770-c93978ad3cc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_0c7386de-92cd-45f4-8b55-e5ea37d2e337">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      id="F_bd5d9e0a-d89c-4821-bdd0-5963d1026df8">&lt;p style="tab-size:26.66px;font-size:12pt;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;239,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_aaa974e1-202e-4b86-a225-79c5ff3a541d"
      decimals="-3"
      id="F_70c86aac-9ace-490f-99a2-548acebc6893"
      unitRef="U_USD">239000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
