<?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_ec8edeb5-1a05-4f2a-9699-f29999ce39c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_b6f118bf-dbb7-414c-ad0d-3aa7313f03aa">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_3e4c6dad-ddb6-457f-a3bc-06d02b06e34b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_33f31c7c-7879-4b35-b8f0-5e10d5d97b36">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_cab1dc16-6c59-4122-acbb-7f16f325aeda">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_8be2fd6e-692a-4e43-b15f-3dfc69028ba0">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_2da3b1d3-9355-419b-8915-8dce71f68de2">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_16f46c0f-3618-4539-968c-88935c1118c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_7623a6b4-a5d0-4908-9fed-41e88f90dd67">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_41f3034c-f9f8-47ed-8a11-9ac1ef4bc55d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      id="F_7eb99435-bc98-4638-80c8-fc893104a2b1">&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,769,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_ec8edeb5-1a05-4f2a-9699-f29999ce39c1"
      decimals="-3"
      id="F_2d1b0fac-42e5-40cd-bd53-8b232ea3442d"
      unitRef="U_USD">2769000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
