<?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_3bea01f3-87c2-4960-8cba-91a89083d5b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_fee25b0b-758d-44ce-9c26-42c67ea8e916">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_30a4832c-827a-48a5-ae14-dc7008437763">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_9b7aab41-efdd-43c4-9e90-42b5cd8b9cbc">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_3548066d-5cab-4c48-8033-e59a53785a9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_89daea20-bd3e-4ea3-9f2f-7bc479ebb0f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_edc00d76-608b-4d41-9529-ab9184814977">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_e434912d-82a3-4da6-9392-e07ff19a8d2c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_93633911-d77d-4ce8-9e77-31c4bcae3928">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_e357d86f-cf85-4756-8a8f-2961d64445bb">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      id="F_2ce1e048-3fbe-4dd3-9723-637fe7b200f0">&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,550,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_3bea01f3-87c2-4960-8cba-91a89083d5b5"
      decimals="-3"
      id="F_318291d6-c1a3-43be-8505-3fc324c8243c"
      unitRef="U_USD">1550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
