<?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_c96bacab-379d-40d7-b473-6950d59d1b36">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_b7e10174-b448-492d-8a21-dd2846248c5f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_bf58941f-a50f-4999-9897-9225419d71a7">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_57db6416-1ed5-4e29-8d8a-bd8bd83d0d4c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_22d3463e-2bf7-4d26-b1ab-1c338ca7ece9">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_8dcb42a2-3115-4764-8105-38a78a6c67e8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_669d8df1-4eb7-415c-802b-cbaef7f6f22a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_edcf8f92-9f17-47e5-ba4e-3a3f1911a0d8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_126619ee-5e83-480b-8e23-e7dedbab3402">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_096632b6-1b32-4c3a-9663-cd63666d798d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c96bacab-379d-40d7-b473-6950d59d1b36"
      id="F_ff2bbe54-2fde-4529-9191-483257f5d5b6">&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;4,507,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_c96bacab-379d-40d7-b473-6950d59d1b36"
      decimals="0"
      id="F_862025ef-ca25-4888-b422-581f325a72c5"
      unitRef="U_USD">4507000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
