<?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_6c8788f4-8be3-4417-b955-494f5b36712b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_1e0cc7f9-6490-4088-aece-3b28d7cd3eac">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_1f8d0d83-6d6b-4068-97c3-b819f8219c97">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_aba1758d-df33-44cf-af7c-0cb7c38591fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_6101b8cc-d0c3-4836-9308-2e14145c8272">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_d3076baf-a2f5-4a46-b457-bc82183bee66">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_5cf45ebc-310e-4468-9fb4-70b43d5b4620">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_63f8a6a6-c3b9-4d03-bab4-1b9ecaa77910">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_87ae5ad7-23f6-4bce-905a-2b03e382b5a2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_a0e178ef-b378-4bf1-8146-25f5d8dae70d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6c8788f4-8be3-4417-b955-494f5b36712b"
      id="F_37f29e5e-f70c-49f6-9e09-47bef9b91bd7">&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,196,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_6c8788f4-8be3-4417-b955-494f5b36712b"
      decimals="-3"
      id="F_569a8b0d-008d-4e27-9e8b-9e8eb289752c"
      unitRef="U_USD">2196000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
