<?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_005d1fe8-c414-425c-94f4-caadce2b8fc0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_4561ba4e-5efd-4324-8970-551900494c6c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_eb8679fa-d97d-4938-81aa-592f1194b690">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_058f5579-1fff-4e96-a586-206432b86b23">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_a3f1c6b4-da47-4b06-8841-1b1435260758">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_801c7e47-da54-42a4-9f7d-9a2dc14b83c5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_7d244abd-db8f-410c-bd7f-b8384447552f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_41fede42-c2bf-4c0a-83b6-d57482fe86c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_1e62f0e6-5c40-4ca6-804d-530c747f60fa">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_c225155a-7562-49f0-bdea-cd58b2e7286c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      id="F_11980a13-f824-4673-b1c0-068ba0cc83c8">&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;1,205,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_005d1fe8-c414-425c-94f4-caadce2b8fc0"
      decimals="-3"
      id="F_89e8a49c-c8fa-4f63-aaf6-a13c24bf1f58"
      unitRef="U_USD">1205000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
