<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_04105438-9b23-47b6-aff0-e3c30274176c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_550f3bf0-a6a3-47a4-91a9-3a46a2b569d3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_dabae702-79b1-4397-8e54-d3dbac8b5d91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_4bdf0af8-2f34-44a5-935e-ee8949b65037">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_f78a7d05-0089-492f-b6e2-ed4bf5458ee0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_4184dd05-34a8-4755-841e-f822f147c7b7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_251466bb-ae34-4452-b18c-9822fac2f637">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_dc7d688f-a218-4872-b84a-43dfe665415f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_5e0500f4-1b23-4b61-a21e-60b9f645e88a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      id="F_952f5533-e6b2-4019-9abd-19d4c50bde5e">&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;399,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_06dd0c82-eb9c-4b7a-9af3-f84054428efa"
      decimals="0"
      id="F_68daf93a-7ce8-499a-808a-4ec02e12e1de"
      unitRef="U_USD">399000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
