<?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_52b625df-9864-4ab7-b1cf-153e45840eef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_72162101-eafe-4841-915c-9b3c95967bf8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_ef3b7482-0db4-4172-81c5-921d8d98646d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_77a8da84-c705-4cf0-a0b5-c3b1813ec6e2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_ddc4ef31-83a8-4152-a1c7-9eb01144f38d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_0e1b2df9-9743-4d7e-a31a-040b54fb32fe">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_4ab1ed10-d34b-462e-9688-cbaec97d0564">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_52421f3d-d38c-4b31-a41c-6eb81a74efe4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_d8075af6-3f41-47ae-a86a-4eb7e67d4597">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_7838e153-b2b1-4788-8368-8e457f14c667">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_52b625df-9864-4ab7-b1cf-153e45840eef"
      id="F_4ccf2995-7808-4a5a-aca7-535efdd061b1">&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;1,900,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_52b625df-9864-4ab7-b1cf-153e45840eef"
      decimals="-3"
      id="F_886390cb-dc6a-41f9-97a0-61b3b7bd5333"
      unitRef="U_USD">1900000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
