<?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_ab7c7024-6dd5-493c-be06-ebf4be6b1a96">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-26</startDate>
            <endDate>2026-03-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_4a053d44-a610-4bd9-93fc-a7de9a68a81d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_9e25a9f2-406e-45c7-a968-712ab7522b06">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_08ab241b-45a0-4617-9e4b-4db4310a388c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_6b6b93ed-4c48-4e91-80ed-895582c514eb">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_4050691a-ba68-46cd-af0e-993208319671">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_10c44d19-1ebb-4ff5-9572-846acc7c7170">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_003f0f3d-cfa4-4fb2-9533-e33755e0d4a3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_957e5cf6-1fc2-43ff-ac30-9a598c1388d4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_20c772a0-e8df-4d7b-977c-2a1a3c3a66fb">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      id="F_7ba607a2-ac24-41da-92f1-52142528ff1d">&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,000,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_ab7c7024-6dd5-493c-be06-ebf4be6b1a96"
      decimals="0"
      id="F_ab724d8f-74b7-4a3a-aec3-9674af646219"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
