<?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_f42d25a0-3150-46cc-ac08-f8a1f78bad55">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_c99584e0-b318-4f84-a2ed-1b7a27cfe387">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_6520963d-36a1-4c9c-aa46-e524fc518894">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_83eec42c-d195-4576-b670-056be017a4b1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_c3c15c9d-e6ae-4d2a-ab27-87b404cec862">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_af35f2f1-98d5-44ec-a77b-9d7b141c1e3d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_e947c1ab-77c7-4d1d-8853-048d5597d237">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_689feeb1-0c12-40ef-8359-38f8027b515e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_658051e9-35fa-4c07-88ec-f68ba5284298">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_2b65806f-01b9-4a18-ad15-f0254ff9b87c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      id="F_fc35e146-7671-483b-9ffe-34d955be9721">&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,724,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_f42d25a0-3150-46cc-ac08-f8a1f78bad55"
      decimals="-3"
      id="F_d58b2847-f4fd-4062-98ac-57649a13d302"
      unitRef="U_USD">1724000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
