<?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_6db02f73-fcad-4698-bdaf-963c5ac7c97e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_317672dc-0476-498d-b04a-2ccf66839f12">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_e416f27e-18d9-4a36-ae91-c56bb3839d38">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_65381cbc-8bf9-43ff-bff6-a377372cb53c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_80704a94-d13c-4b69-beff-a420573f42f6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_4020fd59-8be0-4c80-8fa3-6e3a12840fbb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_7079f3aa-98fb-4aa0-921b-b8a86d101633">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_360a30b2-3f52-45ad-8e42-43ef7b8dd589">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_9cd64a4d-5d23-4f71-b8bb-23746287a2c7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_220f2ef1-61bb-4bce-8e27-dab381d83695">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      id="F_c8cbc67c-1675-48ae-9479-e0262c4a4146">&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,465,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_6db02f73-fcad-4698-bdaf-963c5ac7c97e"
      decimals="-3"
      id="F_f94d8a89-1b26-4d33-9a36-0907303166dc"
      unitRef="U_USD">2465000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
