<?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_36707e3e-95d4-4cab-be86-221ab40106e9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_e6d10ed1-bc5f-4be6-b76e-344afb262ed4">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_cd02439a-554a-4e1e-9e8e-60413a665d3e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_5996f4a1-4cae-43e7-9b48-99e1b980660a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_8cd4a3c5-bf52-4128-bc85-f0b59a7060d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_f9c4a258-b90d-4f59-ae9e-d7a3539d41c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_3396f80b-43cd-4dd7-be52-4767497f003b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_880ad5f6-2830-4989-9aef-79c29e061afa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_1be7cab6-06d5-4b0a-946a-068d814e07cf">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_f545de62-273d-4f5d-9c0e-c63a719721b5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_36707e3e-95d4-4cab-be86-221ab40106e9"
      id="F_530e64fc-c153-464f-a077-ed38aa866b4e">&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,604,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_36707e3e-95d4-4cab-be86-221ab40106e9"
      decimals="-3"
      id="F_dd3a5ea8-83b2-43c4-a51d-812f8e7d5329"
      unitRef="U_USD">1604000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
