diff --git a/docs/src/components/CustomHeader.astro b/docs/src/components/CustomHeader.astro
index 8e23bfb1343..10b1a644eaf 100644
--- a/docs/src/components/CustomHeader.astro
+++ b/docs/src/components/CustomHeader.astro
@@ -15,6 +15,23 @@ const base = import.meta.env.BASE_URL;
+
+
+
+
+
+
diff --git a/docs/src/styles/custom.css b/docs/src/styles/custom.css
index 721a1eb6890..d60c44d846d 100644
--- a/docs/src/styles/custom.css
+++ b/docs/src/styles/custom.css
@@ -1594,20 +1594,31 @@ main,
word-break: break-word;
overflow-wrap: break-word;
}
+
+ /* Also wrap inline code on mobile to avoid horizontal overflow */
+ .sl-markdown-content code {
+ word-break: break-word;
+ }
+
+ /* Disable heavy background animation on mobile to reduce CPU/battery usage */
+ :root[data-theme='light'] body::before {
+ animation: none;
+ }
}
-/* Additional tablet-specific fixes (iPad Pro 11 at 834px) */
-@media (min-width: 768px) and (max-width: 900px) {
- /* Ensure header doesn't overflow on tablets */
+/* Tablet-specific fixes (iPad Pro 11 at 834px) — header hamburger */
+@media (min-width: 769px) and (max-width: 900px) {
+ /* Hide full nav to prevent overflow; hamburger replaces it */
.custom-header-links {
- gap: 0.5rem !important;
+ display: none !important;
}
-
- .header-link {
- font-size: 0.8125rem !important;
- padding: 0.25rem 0.5rem !important;
+
+ /* Show tablet hamburger wrapper */
+ .tablet-nav-wrapper {
+ display: flex !important;
+ align-items: center;
}
-
+
/* Ensure content has proper padding on tablets */
.sl-markdown-content {
padding-left: 1rem;