<?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_0ee9ca25-6ea1-4483-85d0-6567d82d054b">
        <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:EntityCentralIndexKey
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_57800e85-9856-4189-b420-4f95b3f6a7eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_95d70e58-7e3a-4c89-95cb-d3dd41ce2fc5">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_bbbd05fc-9519-4b32-bb8b-c6775c4b971f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_95af47c1-6cff-44a7-9628-1d601d41d4ec">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_a1027319-13c5-46b3-b67b-c4107be77164">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_cd4d78b4-adc7-4452-9e84-71aeeacffd14">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_e163805a-f749-40c4-999e-5e165c2b2b75">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_6427af5b-d7c0-4f28-9b03-665c7ac59064">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_00bcc050-ec13-469a-84b9-714b10fb6aeb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      id="F_6ec110a3-03b6-4945-9ef1-f8d7ae25d6db">&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;5,855,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_0ee9ca25-6ea1-4483-85d0-6567d82d054b"
      decimals="-3"
      id="F_27cc886b-7029-4cbb-86e6-2c791b2f721a"
      unitRef="U_USD">5855000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
