<?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_b3566268-f19f-46bd-9799-f2f9a09ffadd">
        <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>
    <ffd:OffsetTableNa
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_0144eed5-6746-408a-acbb-54077ae873c1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_8f549a0e-64c7-4fbd-9ef8-cf36f1645f40">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_7a49ba2d-487e-4a30-9639-3d4f25730965">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_09b96ddf-a8b0-4937-8499-d8e1a97d9cbb">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_5165913d-e34f-467a-877a-61aa8ad446bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_db6e13c7-9ea8-4a8a-a546-ef6cd951ab7a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_5f75fd45-8671-430e-add1-1270cf519a69">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_ca06d230-90a8-4666-994c-8290b8241d43">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_32ccff86-5786-4e0c-8764-7be1ca64783b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      id="F_99d00eec-4c06-4614-ae7e-92bfe088337e">&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;310,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_b3566268-f19f-46bd-9799-f2f9a09ffadd"
      decimals="-3"
      id="F_554c2a4d-6033-4eef-9a93-44f81f831854"
      unitRef="U_USD">310000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
