<?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_c82c814c-7499-490c-99c1-226b475c372a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_76ffec03-4c92-4564-b3c0-50be6275d2c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_98dc9c72-e700-4be5-b590-7e40b8d3939d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_61b2454f-35c8-451c-a18c-d0bdb4b88f16">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_7c45d14b-eb5f-48cc-9ef9-a63e80aba336">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_c42ab1ac-0c93-442d-a2d3-bbf0950d20eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_019f6148-260b-4996-9b87-b83e45ed00c7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_52b6aa5d-8162-49b6-a772-3219668ed762">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_a30ef57c-18d5-42f4-8734-58a2a0d73c31">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_5a2f9859-877d-4a18-8b6a-cfc523c8c42a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c82c814c-7499-490c-99c1-226b475c372a"
      id="F_9f15c1af-32e5-4356-aedf-387fa1ce4494">&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;28,133,270&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_c82c814c-7499-490c-99c1-226b475c372a"
      decimals="0"
      id="F_24c4306a-abda-4abc-9a22-e55bb41145ca"
      unitRef="U_USD">28133270</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
