<?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_5e6559b9-a135-438d-ba93-87e2bea50b13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_bd91851f-dd88-4c1d-b9c7-cbcad97a19a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_edd57e44-6282-4d86-9c12-3dc019f636fa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_92ec762d-c205-4dd1-9938-299ecfbf2750">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_4d228813-7230-4628-88ee-ac5d9b4f7c95">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_48c6e15a-fd17-40ed-b3ee-a17844f18642">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_d3d79974-b2ba-4017-812f-2154ad1faea8">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_f35b95f8-01f2-4178-be33-89c87b6e024d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_aa7d9661-e378-4d2e-b392-181564e4dc01">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_396ea6a2-3d90-42a6-ae8e-c7b099e2a0e6">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e6559b9-a135-438d-ba93-87e2bea50b13"
      id="F_3686dbb6-4749-46e5-bc00-a22d13eab7d2">&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;214,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_5e6559b9-a135-438d-ba93-87e2bea50b13"
      decimals="-3"
      id="F_3e8aaddf-5fc9-4106-9287-8a439412e63f"
      unitRef="U_USD">214000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
