<?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_6ff4d82d-3ad5-4641-9feb-ead46016fd94">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_1f5018e8-9331-4397-ae65-8b7422cc9850">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_f18d3554-0613-4dd5-9874-47cba0749e8e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_8d771aed-050c-49b0-a40b-8c3b7038cf8d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_c85952a8-f9d8-49e2-af72-a360154f6401">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_e6f84a56-d269-478e-9d69-387b6651dd1e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_3222f9f3-85d6-43f4-8660-c96bdb5afda6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_ffc9572e-16e9-4262-9a61-5d2e03f64c21">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_d6306430-d076-4e7d-8e97-2226aa832521">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_e3ac0dfc-46c6-47eb-81c8-77e5038f1a36">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      id="F_0d3d8966-00ff-42d6-a566-f04a27b2bbd8">&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;1,512,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_6ff4d82d-3ad5-4641-9feb-ead46016fd94"
      decimals="-3"
      id="F_26827412-ae54-4bba-bd79-02c25097f4c3"
      unitRef="U_USD">1512000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
