<?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_f8de6c12-9388-4b32-b873-d633cdf3b097">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_678bd647-b1df-4e76-b8f4-0f33a072d970">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_f051164b-1df8-413c-9d02-5e7deddc76ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_677eebe2-4720-41b0-b9f7-d1af6e6af9ae">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_327f6609-7cf1-4cf4-b899-4635f60ff0dc">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_77698eed-7466-43be-8d5a-a4c4485476b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_8d5be992-5487-4b75-ae9a-498e9eb2b00c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_02fdb027-da09-4d35-ab0c-cce5f56d4eac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_46e44ba8-5864-45d3-abea-a0d64421c4ee">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_542d807e-225f-448e-8923-570237a3e9f9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f8de6c12-9388-4b32-b873-d633cdf3b097"
      id="F_27817cec-3b2c-48d4-870e-ac5ab3a612ca">&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;362,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_f8de6c12-9388-4b32-b873-d633cdf3b097"
      decimals="-3"
      id="F_a2f772d5-a9eb-4d4a-9e26-00852aaa2649"
      unitRef="U_USD">362000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
