<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_f8aec263-45ed-49a2-9aea-260435f78f14">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_c95c62db-c7bf-43a4-bc95-8948cbf32a1a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_57500557-3889-4d63-84bc-0be6d7e342de">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_5600adff-4cdb-46c1-a766-255f47e7e16e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_411d81a3-a2b6-4294-ac13-72914579647f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_86796e56-8561-4870-8383-15ec3884ca8d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_79cbb2b0-c80f-4c6e-aec1-b4700588b137">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_f482fc47-b862-429a-b3f9-21b8537f8ba0">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_7b186d13-7895-49c3-b4ba-f1aff9d3cb98">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      id="F_72a75990-6866-4d61-ab7b-189658f811b4">&lt;p style="tab-size:26.66px;font-size:12pt;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_7d6fd8c0-d69d-4a87-a9ae-9366f9c3e4a5"
      decimals="-6"
      id="F_b1e3c14f-0e42-4764-b691-a2e9cea5ea7c"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
