<?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_0715d0bb-e73e-419b-a7dc-be98d5927044">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-23</startDate>
            <endDate>2026-10-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_3e807c2a-081a-47d1-8374-e11ace60629e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_6cbadc2b-7e57-4eba-ba10-a627bcf6ab58">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_1a2ab499-c2eb-4cbf-9fa6-cb3d1fa16185">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_3a20107c-947e-44b9-8ebe-2529d20307e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_f3a98370-2718-406e-9d51-3df11b62a424">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_dc8d9f0c-8296-41a0-b4ea-240a1f4507e6">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_78b72dbe-ac4c-499f-b248-568247940182">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_545064bb-c64d-4eb9-bf95-d2d0f64573b3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_08a3b85e-5356-4b9e-ac70-ae7f9a2c90ac">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0715d0bb-e73e-419b-a7dc-be98d5927044"
      id="F_77e79436-1581-48f3-99ae-676855bfe3a1">&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;445,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_0715d0bb-e73e-419b-a7dc-be98d5927044"
      decimals="-3"
      id="F_4b208f51-f90f-491c-837c-d0412d8040d8"
      unitRef="U_USD">445000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
