<?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_d4065e98-49c9-4385-90a6-1fc3732b7ca9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-09</startDate>
            <endDate>2026-03-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_243d17cf-d581-4703-9597-99bfb608af83">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_fd301682-2302-4039-9613-ae9ff0ade33d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_5ec5e929-7a9d-4144-8141-6c495f5bcfce">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_e23de8fd-2736-46f7-b75e-191b22c94b6a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_9fdfab8d-98a3-478c-806c-d4b1d4f4c6d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_93f6900f-0bfd-4fd4-b19a-7748a531ad94">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_ff89e6ec-7770-42d6-a939-5e1f9b8b4b9b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_b6d501f4-403c-4825-8de8-15d7e2d53a6a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_92e039ab-0f98-4c94-b650-d8acee8b7ef3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      id="F_3344462b-941e-47ab-83ef-368b5f0c26ff">&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;162,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_d4065e98-49c9-4385-90a6-1fc3732b7ca9"
      decimals="0"
      id="F_0f304937-7aee-44d6-a3da-313a89da59eb"
      unitRef="U_USD">162000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
