<?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_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_5f126a3a-ee9c-417b-ad91-0d94b9b1d948">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_70b6eb2e-b686-4ceb-b513-4fc6f3780aff">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_87741ba3-6a6c-439f-96c0-8318d0051120">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_5a9c579d-2482-4323-8019-b374c3a6bcfc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_fa74ed75-320e-46e9-bfe2-bd18fddb1990">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_ffcd159a-039e-4b78-b243-d9fcf6f4082b">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_5682eac6-a2df-4c89-baa1-0aa695913672">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_9b12ede7-d3fc-42bd-ab11-7fda9d07b2bb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_e6529e4d-94b5-4141-938c-2dea5eb67939">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      id="F_ba9bfe83-5006-4a2c-9468-cab31d6602eb">&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,298,400&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_bbc9f506-3973-40e1-b4de-bdb3b1b1b0b5"
      decimals="0"
      id="F_33f5b3ea-af34-4549-a44d-94e20d9ee725"
      unitRef="U_USD">5298400</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
