<?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_9615429d-621e-4b2f-9bdb-79ffc2026859">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_75f70633-deb2-45a5-81b0-e83300947e61">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_8e36a4e0-0512-410c-8875-ce45b7f19438">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_f86e0453-0956-47bb-b182-8c035174a9d3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_55e5f0f8-875e-4cd3-947e-864b57633987">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_ce2d6cc1-00b8-43d9-9dc0-a41be691ddf4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_7a03d03e-3c1e-4c46-bd20-b46162c16f9d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_5e6dce92-7cd6-4197-8ee5-b2d8c44fbb54">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_e6598202-e653-4353-a282-1b0c9237f56e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_08189732-44b0-4744-b3df-10e0d2429110">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9615429d-621e-4b2f-9bdb-79ffc2026859"
      id="F_3be946bf-456f-4e1a-a5c4-cfe32f041a0b">&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;3,000,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_9615429d-621e-4b2f-9bdb-79ffc2026859"
      decimals="-6"
      id="F_edd31422-938c-4b0f-a519-99a2b1c502fa"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
