diff --git a/doc/numpy/_static/boost.css b/doc/numpy/_static/boost.css
index 28f89359..36c1efd0 100644
--- a/doc/numpy/_static/boost.css
+++ b/doc/numpy/_static/boost.css
@@ -714,3 +714,23 @@ span.purple { color: purple; }
span.gold { color: gold; }
span.silver { color: silver; } /* lighter gray */
span.gray { color: #808080; } /* light gray */
+
+/* 2022 fix */
+
+ol.simple ol p,
+ol.simple ul p,
+ul.simple ol p,
+ul.simple ul p {
+ margin-top: 0;
+}
+
+ol.simple > li:not(:first-child) > p,
+ul.simple > li:not(:first-child) > p {
+ margin-top: 0;
+}
+
+ol.simple p,
+ul.simple p {
+ margin-bottom: 0;
+}
+
diff --git a/doc/numpy/_templates/layout.html b/doc/numpy/_templates/layout.html
index 1aa68f0e..d85f0751 100644
--- a/doc/numpy/_templates/layout.html
+++ b/doc/numpy/_templates/layout.html
@@ -49,6 +49,9 @@
{%- for scriptfile in script_files %}
{%- endfor %}
+
+
+
{%- if use_opensearch %}