<?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_a7c7b8d1-b70e-4600-9399-0a485b49058a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_afebd26d-8b82-403a-ad5f-1378187ebceb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_f0949660-a4b0-404c-8a54-5874512983e8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_2cb161de-8094-482a-8b7c-5f0e7bef26f1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_c8fa079e-4b9a-4674-8f4a-8e9128187062">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_8bd7727e-d98d-4ab2-9347-f744bb28dbd5">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_a0cb120a-cb89-44b0-b183-30b7eea94ee1">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_5fcbdafd-5680-4a55-a7a8-d905fb0f8b7a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_e3266b6d-460c-4f05-b0cc-700aa43eb98b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_1c426e22-103a-4544-b871-abc74c83e4af">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      id="F_269fe4a5-05bf-4ffd-a3f2-67b60f359526">&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;1,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_a7c7b8d1-b70e-4600-9399-0a485b49058a"
      decimals="0"
      id="F_47e4b013-5bfc-4abd-9ac2-be8dc4390fa3"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
