<?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_e616840a-b8ae-48e8-812c-44b646a94d98">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_45a1258e-f921-4173-bd59-c992362fde38">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_f69dd1d9-59d2-4d2f-8f3e-00a53b156037">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_dc61e343-0be8-455e-912d-66724d73df4f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_42f39fa9-179e-4804-b2ea-017fa8516f79">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_b9bc792e-3110-4e82-b185-898e61a0a260">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_8f64a449-d88d-4d72-ae5b-e91987b79c5e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_05d45faf-c096-4e04-8c4a-d0781326ef9d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_f5e0ea5d-0a86-4c49-986e-03c69a7546ff">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_677a6330-8789-4acb-ac13-b800eb4c91a1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e616840a-b8ae-48e8-812c-44b646a94d98"
      id="F_13dd41df-0e25-4d57-8d21-956da1ecefe5">&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;372,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_e616840a-b8ae-48e8-812c-44b646a94d98"
      decimals="-3"
      id="F_ab456ebc-8792-406a-a7ca-4f7664d18024"
      unitRef="U_USD">372000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
