<?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_7974aaf3-577b-447a-90d5-404fb8ae0f59">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_c62b0d70-c891-43ce-bbc3-da64e8994358">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_0c9a4837-d634-4ed1-979f-092a048d39f4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_2814e7ff-9ea2-48f1-bcbd-91ea2143bea1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_d614906e-1fa4-43da-844c-22f32c4da7bd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_f4a20e42-0b35-40c8-8f63-4ded18da90c9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_34ab8d39-2348-4291-aa0b-cbba1b5afffb">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_935bfd5e-5589-41e0-9cf8-e7191ce63e32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_662104b2-0097-479d-be08-1f49c0a72300">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_344bfc37-7081-4f25-afd3-70f7a4d453e7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      id="F_53e95b43-a3f9-46c8-9695-05c31934452c">&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;788,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_7974aaf3-577b-447a-90d5-404fb8ae0f59"
      decimals="-3"
      id="F_469927f4-2026-455d-a0b4-83cc89dacd0d"
      unitRef="U_USD">788000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
