<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_ca39d60b-0394-42f3-a279-1a114df6be2a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_4a39e680-9c41-470b-8e2c-23ed6dc8a7a1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_51810137-44ca-4c3f-b4e5-f2e4a1db1879">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_7d9dabbf-ac81-42be-84f7-a40f210b7f4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_e83ee328-c7f2-4601-94c5-f4f8e61eea63">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_e384c3aa-c4f9-4c6e-b232-ccd431199990">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_0ec69150-dcb0-48d9-85bd-2a5c827e3fd5">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_e3036c49-581e-4a1d-81a5-043d281c3fae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_1e79e306-07e0-46ca-ac9f-7fe29499abee">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_43906825-00de-4c9f-bbf0-100cced9107d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ca39d60b-0394-42f3-a279-1a114df6be2a"
      id="F_96020c7f-accf-45c9-bd1b-78a411580eb1">&lt;p style="font-size:10pt;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,531,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_ca39d60b-0394-42f3-a279-1a114df6be2a"
      decimals="0"
      id="F_97a2cbab-9e48-4fcb-9d20-d9e31dec8ae5"
      unitRef="U_USD">2531000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
