<?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_0a67ca7c-12df-4222-9cb7-65392f953864">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_9dae08a3-bbd7-4afa-ae1e-0a2b369bc6b9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_75b8acda-35e5-4bbe-8c54-040480b06278">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_22626025-9efe-4340-a734-d471447f8ff9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_bf7269a9-ab87-4103-a319-0b751e2c651c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_9c8c1be5-34e3-437b-8244-239e4d6f056e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_c9f13676-3e7b-403f-8b0b-2ab4f0817fbd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_e7aad978-a059-4f5b-b80e-8dc00a947cbc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_2d89c8dc-3f89-4ab5-b016-b944f0916bc2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_f0cabba8-b762-400c-8446-1b128c7f1d48">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0a67ca7c-12df-4222-9cb7-65392f953864"
      id="F_07a60915-b4a8-4947-854b-cf7095a65d19">&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;3,000,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_0a67ca7c-12df-4222-9cb7-65392f953864"
      decimals="-6"
      id="F_36199fdd-3d82-4bc0-9862-b131fa8245d6"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
