<?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_92b70662-25e1-4351-9e91-9ec84d4171ee">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_05740346-78e6-4211-8789-4343055285a2">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_74129a66-e07b-43ea-b5ee-f2adf16e7fa2">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_fdcd5189-fc34-4e5c-8af1-acb94ce5993d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_bdd3e8c2-1ac1-4564-993f-6691248f2ea8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_7941c4fd-cb93-4f3d-8bf7-6c7338f4df27">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_c9bc1df2-4260-4d2c-9044-263b6eb44b0a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_ab83a7b8-650b-4c14-89fa-9c7eaae055ed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_cfd36b1f-bee0-4d6e-b641-bf80c30fc09a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_8e81e3ed-52c5-4321-a69e-e6dfe4af801a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_92b70662-25e1-4351-9e91-9ec84d4171ee"
      id="F_27f7c9b4-4d9b-4a54-a75a-754e5d62efcb">&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;6,821,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_92b70662-25e1-4351-9e91-9ec84d4171ee"
      decimals="-3"
      id="F_3a38e8eb-4b79-46f4-aa97-9a150d38ae20"
      unitRef="U_USD">6821000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
