<?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_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_28cd7f05-8fd0-4385-80bb-6d1f93295706">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_75151806-7fd3-4ffd-8137-7a14519299c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_980d7415-137d-4a4d-b5bc-d8f49747f8ab">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_25367e81-a911-44e3-86d9-437ba0f8ae46">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_316f5abb-97af-4823-bde1-ce4a1be0e55e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_09f51f9c-7e65-4229-9cf2-47547efd1ca1">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_2cf3092d-d949-445d-817f-3a7480d35252">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_56c21161-0be8-4be8-bbfd-191930efd0ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_eb4c99d9-cc60-4cfd-8709-d77d472e917e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      id="F_8e1ebccd-901b-4b34-b1c3-6710c262a210">&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;874,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_16b4550f-4fb8-4dd1-b8cc-1f19e6239aed"
      decimals="-3"
      id="F_1b019dc1-33b1-4f90-88b8-0a11e812b83b"
      unitRef="U_USD">874000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
