<?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_6d464ac9-e414-4a62-93b2-840aacf67846">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_a35c1942-3ec5-40fe-b119-2bdd8ebc7c79">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_87e63418-b4a3-41b3-a27e-b3b8411df9a6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_55ff79f4-cf7b-4e7a-8b1d-06a188ffc66d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_a4f19601-6fac-41ef-8f12-380fb9bea95a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_9fe6d8a9-13da-4a68-988b-210a55e533f6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_4348cc96-60fd-43c2-aef3-bedff45b8d15">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_52fab806-9a48-47d0-89ea-d6127d096040">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_aa524fd2-bf80-488c-9532-b93eb49fb8d3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_97cfe1f6-38b9-40f6-8480-86d2b4599f41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6d464ac9-e414-4a62-93b2-840aacf67846"
      id="F_829a33a6-99fc-4abb-8fd2-7afa97883b82">&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,042,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_6d464ac9-e414-4a62-93b2-840aacf67846"
      decimals="-3"
      id="F_47917d0c-76b5-4117-a2ee-737ba15c2b3d"
      unitRef="U_USD">6042000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
