<?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_4674f369-b054-4146-b53c-303ac6b5031e">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_2ea67cce-0c67-435f-882d-fdac21d2490c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_72818050-eaef-4a47-a65c-80fc5d7c6e5c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_6180dd65-de70-4438-abf2-611f5ef47ef4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_92ec0822-10d5-4b57-ac27-38f7901659fc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_52f7d5d8-8267-401c-8c34-e8bc28d481e4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_0b89d294-28fc-4617-92b2-f5e17a0f5db3">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_465fb76e-a522-460c-bb8f-0561f6b7b917">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_4d10f1b8-a107-44ef-ab76-8ce72450c6e7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_818759ab-873d-40a1-991b-3d8eaf3afa8f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4674f369-b054-4146-b53c-303ac6b5031e"
      id="F_a566f3e3-2974-43b0-a9c6-89dcb525ad8f">&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;2,486,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_4674f369-b054-4146-b53c-303ac6b5031e"
      decimals="-3"
      id="F_3d0db136-1f91-4ee2-ae34-50c5a60079b1"
      unitRef="U_USD">2486000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
