<?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_8556ae5a-61cb-40f6-a36f-3f058a8e89ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_8c5095cf-8703-4faa-b756-e42898bda9da">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_34c86401-dfbb-437e-9a84-a7d773dd5bfd">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_21a7291a-872f-476e-ade0-1f3f7eb40594">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_ceda6ac4-b94e-4581-9148-d5283044c05c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_9e766af1-7b19-4bb9-9dde-d003ce6a15aa">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_c59c0ce8-46c0-40aa-8901-07497b851371">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_02098504-2c93-41f4-875e-ae28f80d319f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_bace3741-0ba6-45f0-8963-5cf6bb0cab25">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_ac944c66-86c3-4b25-b6f0-b238dc91f39e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      id="F_15fd2a5b-2d76-4b3c-8aed-8bf9fc937f0b">&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,612,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_8556ae5a-61cb-40f6-a36f-3f058a8e89ba"
      decimals="-3"
      id="F_94e3daf4-cdb3-4709-8cd7-89d71c2987ce"
      unitRef="U_USD">1612000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
