<?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_bf87cbd4-927c-419f-b56f-bcfd55c45cb9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-08</startDate>
            <endDate>2026-10-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_34f320f0-de16-4df0-99b6-2001b41a395b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_1cfefeb4-15a8-4521-bdbf-6a6f99f35bb5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_94c3c50a-318d-4187-898e-aa09f3600df6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_ac78a46b-48fc-4a31-b530-030057e982b9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_edadfcf2-fa25-46a5-bcb1-5f84dcc0ff65">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_1cd15284-b03d-467c-bb76-bdf1e4acc304">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_9b45f035-7453-494c-ace4-70ff7b55d635">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_75286208-c202-48dd-90c0-a3ea703a6838">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_12c182ae-e2ef-4e41-8d19-f9adc06fd811">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      id="F_3266270f-3ec7-4973-a2cb-3e518fed6233">&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;317,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_bf87cbd4-927c-419f-b56f-bcfd55c45cb9"
      decimals="-3"
      id="F_025a46f8-9b29-46c0-9b2c-8a67b1b1886f"
      unitRef="U_USD">317000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
