<?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_03458572-57b9-4e98-b5de-2b095b30073d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_3d5181ae-9ed8-40d4-b2d0-a33d5430cc52">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_7f4ea4c8-3526-4649-bd4b-e964628e92d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_d489bf27-1295-4e07-864b-9edd4b41876f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_ee35d3a0-a6d5-45df-80c9-250d6564dc3a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_6ac104d7-2f94-436a-a77b-a39c9d0cd357">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_5b39376b-9f0d-4630-a919-3d7cc5c37375">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_c201cb1d-e39a-4820-9397-13b38cee63dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_804da442-cd88-4574-90a7-5f22659458a5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_3b1168ae-1c72-47bd-97dd-097913d0969b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_03458572-57b9-4e98-b5de-2b095b30073d"
      id="F_0bf57459-a1f0-40fe-a7ee-3631b358a1bf">&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;14,267,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_03458572-57b9-4e98-b5de-2b095b30073d"
      decimals="-3"
      id="F_b7ee393f-3b40-4694-b08f-a12e4a9a1fdc"
      unitRef="U_USD">14267000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
