<?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_56ea2366-ac14-46ca-99f0-6d1c605d74fe">
        <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:FormTp
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_a2708d9d-8878-4fa1-88ba-853de2893ff8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_88ca4412-19d1-4a9f-ae39-69925d952b49">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_e584287b-06fc-42ff-9175-68dfb975f141">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_011bf4fa-90cd-40ba-a482-d607406884dd">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_5bb617d7-346f-4694-ba86-ebb18f8d6d8d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_1bc6a882-f05c-41fa-a2d1-ce5d1a9799cf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_3d2c723d-db4d-4188-bd7c-ad53b7459a95">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_3ed99898-7cbc-45d0-8076-d2bf8d96ce18">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_16cfbcaf-2399-465c-9139-63afe3fa9a5f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      id="F_826ad5e5-032f-40ea-8257-2ce4769fba64">&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,424,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_56ea2366-ac14-46ca-99f0-6d1c605d74fe"
      decimals="-3"
      id="F_4b0e98bc-84c1-4fe8-84d7-7b256bc5848d"
      unitRef="U_USD">6424000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
