<?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_3abd0c15-ab3a-421c-ba09-1280d1861dff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_c0ad415f-0c92-4666-85d3-9c0d6d613855">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_6a967f18-cd58-47ac-ab3e-f9b4661643b3">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_86e4e957-9aea-4c7f-a694-da131920ae25">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_eef5eef0-4c61-4b60-b888-d6545e7b0870">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_b9cb7e6f-ee8e-4d23-bbe9-cab9082151ff">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_fa7355a0-9616-433e-abaa-bdc912d6ae0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_fb3ff2b2-7d30-4056-8e1f-785311792008">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_a130989f-0eaa-417f-8805-f2e2e1864975">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_40bec430-a24b-4379-8d22-eb8a18e45570">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      id="F_ecb43a61-d416-45d5-84b3-d19275227375">&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;1,031,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_3abd0c15-ab3a-421c-ba09-1280d1861dff"
      decimals="-3"
      id="F_e3e232bd-ba72-48ee-ace5-46c9f32e4083"
      unitRef="U_USD">1031000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
