<?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_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-12</startDate>
            <endDate>2026-01-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_4ef0f532-44af-423e-aa13-4be6530d00ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_af579890-7ccb-4f6b-a4f6-e2877d34fc93">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_81e59062-220c-4852-81b1-70d219d9e7ce">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_3fabf791-cc0a-4110-b7c9-e4a68bd1d08e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_eb4ef308-15a7-410a-9bac-9bb0cbb4ad84">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_b28ef092-65fc-45ed-8b5f-e6ad160f984a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_0c38a767-8869-4f16-a399-b92b891a7696">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_17f7f02d-250e-4fbc-b75f-b606a8b3c221">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_be0948d9-ec13-4126-b768-26e02ebcc3c9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      id="F_d8e12185-e548-4702-afae-f60419ba785f">&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;1,907,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_98f1f772-d3a3-4971-bb75-4cfdd9b2d5ee"
      decimals="0"
      id="F_5e6dde20-4063-46bb-8ea0-c02918619c35"
      unitRef="U_USD">1907000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
