<?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_1674c437-6cce-46de-8cca-0f466c06b4f8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_306a7296-ce1d-4eda-be40-7a82c4b239c2">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_025a604e-e03e-4ade-9b83-7bdd92de46f3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_22a58b5b-b53a-4ac3-baf3-eb7ec8ff5db5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_7f867118-9947-4e2a-81bd-ddc14cd12180">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_eccc52a9-fe29-449b-a9c6-1089b8fab9da">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_719e7b95-7251-45d7-91ae-ba7ffc22511c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_60c4f83b-2a93-4137-87c2-cc54ea472464">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_472b6d4e-c731-4557-bdfc-0240ee053bac">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_e5d0312d-7a25-4979-bed9-8a4f9b6c0e53">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1674c437-6cce-46de-8cca-0f466c06b4f8"
      id="F_4cdcd9f8-0c54-4faa-9993-4a28ebe98b09">&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;2,839,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_1674c437-6cce-46de-8cca-0f466c06b4f8"
      decimals="0"
      id="F_4be93d57-55cc-4554-bc0c-30329229c79a"
      unitRef="U_USD">2839000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
