<?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_2393c646-4950-4e0a-97e4-fb82b062d0d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_8898fd9a-9273-4299-833f-f80d20e79ba5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_a7a78496-9af6-44c3-9391-2a2c5abd6256">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_8bb7b165-4950-467f-87ea-2e94b5f18985">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_8ee3d9ab-932f-4042-9aed-9b81571d33f0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_b8cb2d02-6c41-4b43-90b6-7912bad3e340">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_5df0e7e6-2d1a-4dc0-80bd-4ffd69cb823f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_7eedcd27-7271-401c-818b-f60bc2f1722a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_7d411e3f-065a-48a8-926c-4e1435ce904f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_5d071e6b-88b5-47cb-9f2a-af7f847cf193">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      id="F_9ec7046b-193b-444d-9c61-74fc0f11bf78">&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,064,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_2393c646-4950-4e0a-97e4-fb82b062d0d7"
      decimals="-3"
      id="F_8ed43314-75c0-4e25-8807-b15cc83e87ab"
      unitRef="U_USD">3064000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
