<?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_8055759b-a89a-4b6b-a273-a183c3a421f2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-15</startDate>
            <endDate>2026-10-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_8dc82de0-ca2d-45c2-81c5-45cdc61b4620">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_3dfd7a81-6bc2-43bf-8668-d66835ef1d9d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_b124c2be-9a4e-4fe9-8ddb-b439e45832ba">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_cbb39144-f43a-48a9-a456-1ce0b5c6fae5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_3004eeaf-2876-4cf2-a472-3891b57b968c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_a41a785f-0080-4f43-bda3-31538ec0951c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_4918774d-76fa-4e6f-ad00-62c087d583d3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_54f6f546-af06-4235-9516-3eb4abe4c0ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_31ef5025-7f7f-4370-a5de-c1328b244db4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8055759b-a89a-4b6b-a273-a183c3a421f2"
      id="F_55a7113a-8ee5-42f8-8c50-745be1c18b02">&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;500,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_8055759b-a89a-4b6b-a273-a183c3a421f2"
      decimals="-3"
      id="F_0d8b4e47-7ae2-4208-835c-830290623bf6"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
