<?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_5b796f22-e3c9-4035-83d8-8c2e2cd38605">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_6e78d5ac-351f-473e-8eae-327b077f52d5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_b24c241c-8d7e-4103-ae56-2987ac230237">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_bf3b6059-ce5e-4b1a-8937-f5236d7a6da3">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_59562542-4c77-4141-af01-db60d3246247">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_f2a28aec-1380-4924-8914-b41e01f1c917">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_5ac9f147-c851-45a4-846e-1f5a14927692">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_1dbe70aa-0bd4-479c-92ff-b060b2a7ec50">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_1d666778-76ce-4c58-8073-275d8e52ef50">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_ee4a68b4-59c6-4431-ac27-0dea9c1baa27">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      id="F_6e57e5aa-298b-48c0-8441-4e5a9f03df09">&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;13,373,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_5b796f22-e3c9-4035-83d8-8c2e2cd38605"
      decimals="-3"
      id="F_7122072c-4615-4b24-b326-7ad1b1b09448"
      unitRef="U_USD">13373000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
