<?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_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-16</startDate>
            <endDate>2026-04-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_5e41c4e5-b657-41bb-adda-93de1b4194f4">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_ff904a33-5321-4afe-8c01-f42a0e1b4e88">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_36f1704b-4db4-45b4-a5bb-e90c15d17dd9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_91cd916c-2832-496a-a0ad-bd7f80d15b0c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_8da0cfb4-b6de-4a70-a793-39c1f81acd44">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_2858e7e1-bb13-40ef-bdeb-7bdfe07177ea">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_a49d37ae-f773-4611-8bed-a60a5bd13d32">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_50209f53-b808-441e-a2dd-f4841c4475cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_60ef9681-a05d-4c35-9dee-0e6986fae9cb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      id="F_873a7b4c-6542-407c-9994-4c51a48f483e">&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;4,576,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_e97a0bda-f1f1-4571-a2f0-76f4c9f0c2fc"
      decimals="0"
      id="F_8d7c3be4-9b57-4eba-abdf-68592129b211"
      unitRef="U_USD">4576000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
