<?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_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-12</startDate>
            <endDate>2026-10-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_63ff28b1-f1e4-4c50-a251-0a09c61c0356">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_988605df-0f96-468a-859f-adbd72f35c76">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_4b1b029a-ed93-4c07-b445-f6c5a58ddaae">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_cd76bf4f-6c2a-4de5-96a9-c5c1d15b9ec6">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_01ec3615-b36a-4028-a22a-9b49af2beabf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_c576e600-6663-4ffa-b4ad-e0244d7430aa">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_f12e871f-509d-4c83-8dae-1100e3d855f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_e5bf344d-c0aa-4708-a1be-a703918cc9a9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_82ed4ef4-dc96-4a8a-8225-d1e150f52b98">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      id="F_36ae1402-df94-4f2f-8497-8b74da59f3d4">&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;1,975,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_68444c9c-13a4-46a1-ac4e-ba3d955cdf5e"
      decimals="-3"
      id="F_28ba4ab8-80e5-4e7f-a454-f6ea741a484d"
      unitRef="U_USD">1975000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
