<?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_9298863d-c24e-42e0-8627-76910c495610">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_796e4f5a-96b1-446c-a059-ce0dd92fe453">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_ed1cf8fa-b2da-49c6-b918-af83d935deb4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_3525b4f4-11f5-4fb7-a257-c8659a87a12e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_0b463f6e-f3d9-4cbf-bafb-234468659246">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_23fb5385-7b4d-4ce6-8181-c38435a57f78">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_e2542a58-9d1d-4a79-a850-20d2e128d2b1">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_9b08814a-64dd-4e92-9e57-810c91816c7f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_46cd177a-de18-4372-badb-2525c43f4f7c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_0f533494-4951-4d76-9eed-aa97872f14c0">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9298863d-c24e-42e0-8627-76910c495610"
      id="F_2a3910e0-6f01-48c0-b0c1-7e2ee29194ae">&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;4,052,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_9298863d-c24e-42e0-8627-76910c495610"
      decimals="-3"
      id="F_04cf9806-0cf3-4d23-8516-e51e63005dfb"
      unitRef="U_USD">4052000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
