<?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_fa2b28bf-b2c6-4233-812c-263ebf03eb3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_143948ab-348a-4620-ab21-0210cda5763e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_64168ccd-d7c1-498a-8962-c0299f7382d3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_72a49fb8-0541-4fe2-a11c-a2f8a9ef086d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_9af8c3eb-1fd3-44c4-830d-67dae7bd57ac">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_c5066616-5008-42b2-8e67-7a314f30f094">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_c0e5cce3-3747-4b50-8067-d054d17c97fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_c23b8ae9-07e2-484a-b530-9913e6477971">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_91737a77-9025-44be-b00d-3d436319a776">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_154cfafc-0ce9-4cac-92bc-02aadbb86dd9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      id="F_158d80a1-67bf-4981-a57f-27806d0bc733">&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;300,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_fa2b28bf-b2c6-4233-812c-263ebf03eb3f"
      decimals="-3"
      id="F_4710b876-0af4-4d33-ade0-9a5e4a79d9a5"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
