<?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_4addb507-bdb8-4f28-8c1f-d9cd6dce709f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_1bdc1ae2-cb8b-4074-8fb9-55a7923f2398">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_c3db1506-39ae-436b-b634-10d45e012736">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_aa6db098-be49-45cd-8f13-679dcae6916d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_57c48fab-ccba-4dec-a017-6a13bc28eb90">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_9bf8471e-8d4a-491b-9d87-b03bec165d52">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_f96b78bf-d3f7-4baf-88de-029bb47d74ef">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_1b5a5379-e63b-4e72-813f-b95e359c7c0c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_f47fe2d2-b1ac-4a33-b6dc-0bbdfb1af403">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_d8f1f78e-d757-45f7-b41b-f0bfe126f3e1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      id="F_2b5d306d-4cf3-4f61-b091-4255270d9bdf">&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;250,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_4addb507-bdb8-4f28-8c1f-d9cd6dce709f"
      decimals="-3"
      id="F_eb7435df-4436-4e28-911e-a65f804ca501"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
