<?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_9049f54a-87ff-4b08-91b3-20e0f141e5a4">
        <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_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_fe8a4531-bdee-4b42-bbf9-219f13b0dee0">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_31fd3983-5e96-448b-a39f-b4f5cdcdac50">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_df9f0b66-3eba-4042-b1f6-df63b73d5721">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_142f01bc-d9cc-4e7e-b584-2529d64b4e18">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_7f6ab522-7896-4264-9be4-4471592ac40c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_028d53ab-b62a-4791-9513-a2de0b075968">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_4a71bca0-2b00-402f-a872-e0c6b0faeaef">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_11d6d584-f00d-4240-9fe6-25fd540bacfd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_73df2eee-665a-481d-8596-8c5a62026f56">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      id="F_61ca9d0a-8cbd-4430-b9b1-866ddd6a00df">&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,193,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_9049f54a-87ff-4b08-91b3-20e0f141e5a4"
      decimals="0"
      id="F_3ec4c0f4-31f4-461c-a8fe-55fa7dafb9c8"
      unitRef="U_USD">1193000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
