<?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_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_2278cf1f-ce27-451e-9a3f-af1109851f91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_38565404-33ee-44aa-88d4-b754ed871cee">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_3d969d9e-add3-45f5-bb01-0c37cafeeb24">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_24cf5450-3a00-49a3-824e-a0d4a445a947">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_3e2542ae-35bf-4f0b-a400-a7a913983222">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_6f1beba5-0093-45fd-a48a-52480a92971b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_1f8b17bd-d326-4b26-a775-668d9cf1d0e6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_8f8c0787-95ea-440c-bd7c-99c5676f4b2a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_dc809fa2-fca9-4901-b470-3c8f80c826f8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      id="F_bc870238-f9b6-45cf-b25a-df3b8c0260bc">&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;2,201,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_46d23c94-7e75-4c72-ae7b-77ed6f7ded8a"
      decimals="-3"
      id="F_0988be6e-2b44-4741-bfc2-de5d717d5d1a"
      unitRef="U_USD">2201000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
