/* ==========================================================================
   Mathla Editorial theme — owner chose "Direction A · Editorial" (2026-10-06)
   White + near-black + gold accent, Alexandria type, square boxy buttons,
   flat cards, thin rules. Loaded LAST on every public layout, so it restyles
   the older mathla-*, academy-*, services-* components site-wide.
   ========================================================================== */

:root {
  --ed-ink: #0b0b0c;
  --ed-ink-2: #262626;
  --ed-text: #1d1d1f;
  --ed-muted: #6b6b6b;
  --ed-line: #e6e6e6;
  --ed-line-2: #d4d4d4;
  --ed-gold: #b8901f;
  --ed-gold-dark: #8a6b12;
  --ed-gold-soft: #f7f1e1;
  --ed-bg: #ffffff;
  --ed-sand: #f6f5f2;
  --ed-font: 'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* re-tune the older tokens so every page follows */
  --mathla-bg: #ffffff;
  --mathla-card: #ffffff;
  --mathla-primary: #b8901f;
  --mathla-primary-dark: #8a6b12;
  --mathla-primary-light: #d6b75a;
  --mathla-text: #0b0b0c;
  --mathla-text-body: #2b2b2b;
  --mathla-muted: #6b6b6b;
  --font-sans: var(--ed-font);
  --font-display: var(--ed-font);
}

html body, body.antialiased, .services-body, .academy-body { font-family: var(--ed-font) !important; background: var(--ed-bg) !important; color: var(--ed-text); }
body button, body input, body select, body textarea { font-family: inherit; }
.font-display, h1, h2, .mathla-hero-title, .academy-heading { font-family: var(--ed-font) !important; letter-spacing: -.01em; }
h1, .font-display { font-weight: 800; }
::selection { background: var(--ed-gold-soft); color: var(--ed-ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ed-ink) !important; outline-offset: 3px; }

/* ---- Buttons: boxy, black primary, outlined secondary -------------------- */
.mathla-btn-primary, .academy-btn, .services-btn, .mathla-btn-gold {
  background: var(--ed-ink) !important; color: #fff !important; border: 1.5px solid var(--ed-ink) !important;
  border-radius: 0 !important; box-shadow: none !important; font-weight: 600 !important; letter-spacing: 0;
  transition: background .15s ease, color .15s ease;
}
.mathla-btn-primary:hover, .academy-btn:hover, .services-btn:hover { background: var(--ed-ink-2) !important; }
.mathla-btn-outline, .mathla-btn-secondary, .academy-btn-ghost {
  background: #fff !important; color: var(--ed-ink) !important; border: 1.5px solid var(--ed-ink) !important;
  border-radius: 0 !important; box-shadow: none !important; font-weight: 600 !important;
}
.mathla-btn-outline:hover, .mathla-btn-secondary:hover, .academy-btn-ghost:hover { background: var(--ed-ink) !important; color: #fff !important; }
.academy-btn-ghost.is-active, .academy-btn-ghost[aria-pressed="true"] { background: var(--ed-ink) !important; color: #fff !important; }
button[disabled], .academy-btn[disabled] { opacity: .45; }

/* ---- Cards, panels, badges ------------------------------------------------ */
.mathla-card, .academy-card, .services-card, .academy-soft-panel, .academy-vocab, .academy-card--soft, .academy-card--band {
  border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--ed-line) !important; background: #fff !important;
}
a.mathla-card:hover, a.academy-card:hover { border-color: var(--ed-ink) !important; transform: none !important; }
.academy-soft-panel { background: var(--ed-sand) !important; }
.academy-badge, .mathla-badge {
  border-radius: 0 !important; background: transparent !important; color: var(--ed-gold-dark) !important;
  border: 1px solid var(--ed-gold) !important; font-weight: 600; letter-spacing: .02em;
}
.academy-badge--muted { color: var(--ed-muted) !important; border-color: var(--ed-line-2) !important; }
.mathla-gold-gradient { background: var(--ed-ink) !important; }

/* square corners everywhere except true circles (avatars, dots) */
.rounded, .rounded-sm, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl { border-radius: 0 !important; }

/* ---- Forms ---------------------------------------------------------------- */
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), body select, body textarea, .mathla-locale-select {
  border-radius: 0 !important; border-color: var(--ed-line-2) !important;
}
body input:not([type=checkbox]):not([type=radio]):focus, body select:focus, body textarea:focus {
  border-color: var(--ed-ink) !important; box-shadow: 0 0 0 1px var(--ed-ink) !important; outline: none;
}
body input[type=checkbox], body input[type=radio] { accent-color: var(--ed-ink); }

/* ---- Headers (platform, academy, services, portal): white with a thin rule ---- */
.mathla-site-header, .academy-header, .services-header {
  background: #fff !important; color: var(--ed-ink) !important; border-bottom: 1px solid var(--ed-line) !important;
  box-shadow: none !important; backdrop-filter: none !important;
}
.services-header a:not(.services-btn):not(.mathla-btn-primary), .services-header .services-brand-title, .services-header .services-brand-sub { color: var(--ed-ink) !important; }
.mathla-header-links--desktop a, .academy-nav--desktop a, .services-nav a { color: var(--ed-ink) !important; font-weight: 400 !important; font-size: .95rem !important; border-radius: 0 !important; background: transparent !important; padding-inline: .2rem !important; }
.mathla-header-links--desktop a[aria-current="page"], .mathla-header-links--desktop a.is-active, .mathla-header-links--desktop .mathla-nav-active,
.academy-nav--desktop a[aria-current="page"], .services-nav a[aria-current="page"] { border-bottom: 2px solid var(--ed-ink) !important; }
.mathla-header-signin-link { color: var(--ed-ink) !important; font-weight: 600 !important; }
.mathla-site-nav-link { border-radius: 0 !important; color: var(--ed-ink) !important; }
.mathla-site-nav-link--active { background: var(--ed-ink) !important; color: #fff !important; }
.academy-brand-title, .services-brand-title { font-weight: 800 !important; color: var(--ed-ink) !important; }

/* ---- Footer: black editorial band ---------------------------------------- */
.ed-footer { background: var(--ed-ink); color: #c9c9c9; margin-top: auto; font-family: var(--ed-font); }
.ed-footer a { color: #e9e9e9; }
.ed-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ed-footer-grid { max-width: 1280px; margin: 0 auto; padding: 72px clamp(18px, 4vw, 40px) 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ed-footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.6rem; }
.ed-footer-brand img { height: 40px; width: auto; background: #fff; padding: 4px; }
.ed-footer p { margin: 0; }
.ed-footer-motto { margin-top: 14px !important; max-width: 26em; font-weight: 300; line-height: 1.7; }
.ed-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; font-weight: 600; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.ed-footer h4::before { content: ""; width: 22px; height: 1px; background: var(--ed-gold); }
.ed-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; font-weight: 300; }
.ed-footer-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ed-footer-apps a { border: 1px solid #555; padding: 9px 16px; font-size: .9rem; font-weight: 600; }
.ed-footer-apps a:hover { border-color: #fff; text-decoration: none; }
.ed-footer-base { border-top: 1px solid #262626; max-width: 1280px; margin: 0 auto; padding: 22px clamp(18px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8d8d8d; }
@media (max-width: 900px) {
  .ed-footer-grid { grid-template-columns: 1fr 1fr; padding-top: 52px; }
  .ed-footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---- Small tidy-ups ------------------------------------------------------- */
.academy-step-num { border-radius: 0 !important; background: var(--ed-ink) !important; color: #fff !important; }
.academy-kicker, .academy-link, .mathla-arrow { color: var(--ed-gold-dark) !important; }
hr, .border-stone-200, .border-stone-100 { border-color: var(--ed-line) !important; }

/* ---- Decorative accent colours -> ink + gold (red/green status colours are left alone) ---- */
.text-teal-600, .text-teal-700, .text-indigo-600, .text-indigo-700, .text-sky-600, .text-sky-700, .text-purple-600, .text-purple-700, .text-amber-600 { color: var(--ed-gold) !important; }
.text-teal-800, .text-indigo-800, .text-amber-800, .text-sky-800, .text-purple-800, .text-slate-900 { color: var(--ed-ink) !important; }
.bg-teal-500\/10, .bg-indigo-500\/10, .bg-amber-500\/10, .bg-sky-500\/10, .bg-purple-500\/10,
.bg-teal-50, .bg-indigo-50, .bg-amber-50, .bg-sky-50, .bg-purple-50, .bg-yellow-50 { background: #fff !important; box-shadow: inset 0 0 0 1px var(--ed-line-2); }
.shadow-sm, .shadow, .shadow-md, .shadow-lg, .hover\:shadow-md:hover { box-shadow: none !important; }
.bg-stone-50\/70, .bg-stone-50, .bg-white\/60, .bg-white\/80 { background: var(--ed-sand) !important; }

/* ---- Site switcher in headers: small labelled text links ---------------- */
.ed-sites { display: inline-flex !important; align-items: center; gap: 0 !important; border: 1px solid var(--ed-line-2); padding: 0 !important; background: #fff !important; }
.ed-sites .ed-site { display: inline-flex; align-items: center; height: 36px; padding: 0 12px !important; font-size: .82rem !important; font-weight: 600 !important; color: var(--ed-muted) !important; background: transparent !important; border: 0 !important; width: auto !important; min-width: 0 !important; }
.ed-sites .ed-site + .ed-site { border-inline-start: 1px solid var(--ed-line-2) !important; }
.ed-sites .ed-site:hover { color: var(--ed-ink) !important; }
.ed-sites .ed-site.is-current { background: var(--ed-ink) !important; color: #fff !important; }

/* ---- Fix-ups from the full-page review ------------------------------------ */
.services-form button[type="submit"], .academy-form button[type="submit"]:not(.mx-btn):not(.academy-btn-ghost) { background: var(--ed-ink) !important; color: #fff !important; border: 1.5px solid var(--ed-ink) !important; border-radius: 0 !important; font-weight: 600 !important; }
/* old yellow gradient banners (campaigns, organizations) -> calm sand panel with a gold rule */
.bg-gradient-to-br.from-amber-100, .bg-gradient-to-br.from-amber-200, .community-hero__gradient { background: var(--ed-sand) !important; border-bottom: 2px solid var(--ed-gold) !important; }
/* page titles on inner pages: editorial scale */
main h1.text-2xl, main h1.text-3xl, .services-hero h1, .academy-section-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important; line-height: 1.12 !important; font-weight: 800 !important; letter-spacing: -.01em; margin-bottom: .6rem !important; color: var(--ed-ink) !important; }
main h2.text-xl, main h2.text-2xl { font-weight: 800 !important; color: var(--ed-ink) !important; }
.services-header .ed-sites .ed-site.is-current, .academy-header .ed-sites .ed-site.is-current, .mathla-site-header .ed-sites .ed-site.is-current { color: #fff !important; }
@media (max-width: 760px) { .ed-sites { display: none !important; } }   /* phones: the menu and the footer list the sites */

/* ==== Editorial header (one row everywhere; drawer below 1180px) ===================== */
.ed-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--ed-line); font-family: var(--ed-font); }
.ed-header-row { max-width: none; margin: 0; height: 76px; padding: 0 clamp(18px, 4vw, 40px); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.ed-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ed-ink) !important; text-decoration: none !important; flex: none; }
.ed-brand img { height: 38px; width: auto; }
.ed-brand b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.ed-brand small { display: block; font-size: .66rem; letter-spacing: .22em; color: var(--ed-muted); margin-top: 4px; font-weight: 400; }
[dir="rtl"] .ed-brand small { letter-spacing: 0; font-size: .78rem; }
.ed-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); flex: 1 1 auto; min-width: 0; }
.ed-nav > a, .ed-dd > summary { color: var(--ed-ink) !important; font-size: .95rem; font-weight: 400; text-decoration: none !important; padding: 26px 0 24px; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; list-style: none; }
.ed-nav > a:hover, .ed-dd > summary:hover { border-bottom-color: var(--ed-line-2); }
.ed-nav > a.is-active { border-bottom-color: var(--ed-ink); font-weight: 600; }
.ed-dd { position: relative; }
.ed-dd > summary::-webkit-details-marker { display: none; }
.ed-dd > summary::after { content: "▾"; font-size: .7em; margin-inline-start: .35em; color: var(--ed-muted); }
.ed-menu { position: absolute; top: calc(100% + 1px); inset-inline-start: 0; min-width: 220px; background: #fff; border: 1px solid var(--ed-ink); padding: 8px 0; z-index: 60; }
.ed-menu a, .ed-menu button { display: block; width: 100%; text-align: start; padding: 10px 18px; color: var(--ed-ink) !important; font-size: .95rem; text-decoration: none !important; background: none !important; }
.ed-menu a:hover, .ed-menu button:hover { background: var(--ed-sand) !important; }
.ed-tools { display: flex; align-items: center; gap: 14px; flex: none; margin-inline-start: auto; }
.ed-lang { color: var(--ed-ink) !important; font-size: .9rem; font-weight: 600; text-decoration: none !important; padding: 8px 2px; }
.ed-lang:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.ed-signin { color: var(--ed-ink) !important; font-weight: 600; font-size: .92rem; text-decoration: none !important; white-space: nowrap; }
.ed-account > summary { display: inline-flex; align-items: center; gap: 8px; padding: 18px 0 !important; border: 0 !important; }
.ed-account .ed-menu { inset-inline-start: auto; inset-inline-end: 0; }
.ed-avatar { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ed-ink); color: #fff; font-weight: 600; font-size: .95rem; }
.ed-account-name { font-size: .92rem; font-weight: 600; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.ed-logout button, .ed-logout .sidebar-link { all: unset; box-sizing: border-box; display: flex !important; gap: 8px; width: 100%; padding: 10px 18px; cursor: pointer; color: #b42318 !important; font-size: .95rem; font-family: var(--ed-font); }
.ed-logout button:hover { background: var(--ed-sand); }
.ed-burger { display: none; background: none; border: 1px solid var(--ed-line-2); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ed-ink); }
.ed-header .ed-sites { margin-inline-end: 4px; }

/* drawer */
.ed-drawer { padding: 0; border: 0; margin: 0; inset-inline-start: auto; inset-inline-end: 0; height: 100vh; max-height: 100vh; width: min(420px, 100vw); max-width: 100vw; background: #fff; }
[dir="rtl"] .ed-drawer { margin-inline-start: auto; }
.ed-drawer::backdrop { background: rgb(0 0 0 / .5); }
.ed-drawer-panel { display: flex; flex-direction: column; min-height: 100%; padding: 18px 24px 28px; font-family: var(--ed-font); }
.ed-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--ed-line); }
.ed-close { background: none; border: 1px solid var(--ed-line-2); width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; }
.ed-drawer-links { display: flex; flex-direction: column; padding: 12px 0; }
.ed-drawer-links a { padding: 13px 0; border-bottom: 1px solid var(--ed-line); color: var(--ed-ink) !important; font-size: 1.1rem; text-decoration: none !important; }
.ed-drawer-links a[aria-current="page"] { font-weight: 700; }
.ed-drawer-label { margin: 14px 0 8px; font-size: .78rem; letter-spacing: .14em; color: var(--ed-gold); font-weight: 600; }
.ed-drawer-sites { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ed-line-2); }
.ed-drawer-sites a { padding: 12px 6px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--ed-muted) !important; text-decoration: none !important; }
.ed-drawer-sites a + a { border-inline-start: 1px solid var(--ed-line-2); }
.ed-drawer-sites a.is-current { background: var(--ed-ink); color: #fff !important; }
.ed-drawer-foot { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ed-drawer-foot .ed-logout { width: 100%; }

@media (max-width: 1360px) { .ed-header .ed-sites { display: none !important; } }
@media (max-width: 900px) {
  .ed-nav { display: none; }
  .ed-burger { display: inline-flex; }
  .ed-account-name { display: none; }
}
@media (max-width: 640px) {
  .ed-header-row { height: 64px; gap: 10px; }
  .ed-tools .ed-lang, .ed-tools .ed-signin, .ed-tools .ed-account { display: none; }
  .ed-brand img { height: 32px; }
}

/* ==== Members' area (app layout): white editorial sidebar ======================== */
:root { --mathla-sidebar: #ffffff; }
aside[style*="--mathla-sidebar"] { border-inline-end: 1px solid var(--ed-line); }
aside[style*="--mathla-sidebar"] .text-white, aside[style*="--mathla-sidebar"] .text-white\/60, aside[style*="--mathla-sidebar"] .text-white\/70 { color: var(--ed-ink) !important; }
aside[style*="--mathla-sidebar"] .border-white\/10 { border-color: var(--ed-line) !important; }
.sidebar-link { display: flex !important; align-items: center; gap: 12px; color: var(--ed-ink) !important; border-radius: 0 !important; background: transparent !important; font-weight: 400 !important; padding: 10px 14px !important; }
.sidebar-link:hover { background: var(--ed-sand) !important; }
.sidebar-link.active { background: var(--ed-ink) !important; color: #fff !important; font-weight: 600 !important; }
aside .sidebar-link.\!text-red-300, aside button.sidebar-link { color: #b42318 !important; }
aside .mathla-locale-select { background: #fff !important; color: var(--ed-ink) !important; border: 1px solid var(--ed-line-2) !important; }
.mathla-app-mobile-header { border-bottom: 1px solid var(--ed-line) !important; }
/* "selected" states that used a gold fill -> ink */
.bg-\[var\(--mathla-primary\)\] { background: var(--ed-ink) !important; color: #fff !important; }
.bg-\[var\(--mathla-primary\)\]\/5, .bg-\[var\(--mathla-primary\)\]\/10, .bg-\[var\(--mathla-primary\)\]\/20 { background: var(--ed-sand) !important; }
/* green / amber "verified" highlight chips -> outline badges */
.bg-emerald-100, .bg-green-100, .bg-amber-100, .bg-yellow-100 { background: #fff !important; box-shadow: inset 0 0 0 1px var(--ed-line-2); border-radius: 0 !important; }
.text-emerald-700, .text-emerald-800, .text-amber-700 { color: var(--ed-ink) !important; }
.mathla-btn-secondary { display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.2rem !important; text-decoration: none !important; }
.mathla-verify-badge { border-radius: 0 !important; background: #fff !important; border: 1px solid var(--ed-line-2) !important; color: var(--ed-ink) !important; font-weight: 600; padding: 2px 8px !important; }
.mathla-verify-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; background: var(--ed-gold); vertical-align: middle; }
.bg-stone-900 { background: #111 !important; }

/* ==== Vision / App "stack" pages: editorial cards ================================ */
.vision-stack__card { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--ed-line) !important; background: #fff !important; }
.vision-stack__img, .vision-stack__img img { border-radius: 0 !important; }
.vision-stack__num { color: var(--ed-gold) !important; font-weight: 300 !important; font-family: var(--ed-font) !important; }
.vision-stack__body h2, .vision-stack__body h3 { color: var(--ed-ink) !important; font-weight: 800 !important; }
.vision-hero { background: var(--ed-ink) !important; }
.vision-hero h1 { color: #fff !important; font-weight: 800 !important; }
.vision-hero p.text-sm { color: var(--ed-gold-2, #d6b75a) !important; letter-spacing: .12em; }

/* Refinement pass 2026-10-06 */
/* Page intro boxes: text keeps a readable width and the stats drop below on phones, never one word per line. */
.community-hero__gradient > .flex > .min-w-0.flex-1 { flex-basis: 16rem; }
/* Wide data tables scroll inside themselves on phones instead of being cut off. */
@media (max-width: 760px) {
  main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main table th, main table td { white-space: nowrap; }
}
/* Vision/app top band: plain ink band; the cropped background photo looked broken (phone edge, cut heads). The photos appear in full just below. */
.vision-hero > .absolute { display: none; }

/* Fonts = Sawaid UAE (owner 2026-10-06, measured from swaeduae.ae CSS):
   English body Readex Pro, English headings/labels/numbers/buttons Montserrat; Arabic everything Alexandria. */
:root { --ed-font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; --ed-head: 'Montserrat', 'Readex Pro', sans-serif; }
html[dir="rtl"] { --ed-font: 'Alexandria', system-ui, sans-serif; --ed-head: 'Alexandria', system-ui, sans-serif; }
h1, h2, h3, .font-display, .mathla-hero-title, .academy-heading, .mx-h1, .mx-h2, .mx-h3, .mx-kick, .mx-n, .mx-stat b, .mx-btn, .ed-brand b, .ed-footer h4, .ed-footer-brand { font-family: var(--ed-head) !important; }
html:not([dir="rtl"]) .mx-h1 .mx-light { font-weight: 500; }
html[dir="rtl"] .mx-kick, html[dir="rtl"] .mx-n { letter-spacing: 0; text-transform: none; font-size: 1rem; }
html[dir="rtl"] .mx-h1, html[dir="rtl"] .mx-h2 { letter-spacing: 0; line-height: 1.3; }
/* Grouped menu (Platform / Academy / Services / More) */
.ed-nav { gap: clamp(18px, 2.4vw, 40px); }
.ed-dd > summary { font-weight: 500; }
.ed-dd[data-current] > summary { border-bottom-color: var(--ed-ink); font-weight: 700; }
.ed-dd[open] > summary { border-bottom-color: var(--ed-gold); }
.ed-dd[open] > summary::after { content: "▴"; }
.ed-nav .ed-menu { min-width: 250px; padding: 10px 0; box-shadow: 0 18px 40px -24px rgb(0 0 0 / .35); }
.ed-menu a[aria-current="page"] { font-weight: 700; border-inline-start: 3px solid var(--ed-gold); }
.ed-drawer-group { border-bottom: 1px solid var(--ed-line); }
.ed-drawer-group > summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--ed-head); font-weight: 700; font-size: 1.15rem; display: flex; justify-content: space-between; }
.ed-drawer-group > summary::-webkit-details-marker { display: none; }
.ed-drawer-group > summary::after { content: "+"; color: var(--ed-gold); }
.ed-drawer-group[open] > summary::after { content: "−"; }
.ed-drawer-group .ed-drawer-links { padding: 0 0 10px; }
.ed-drawer-group .ed-drawer-links a { font-size: 1rem; padding: 10px 14px; border-bottom: 0; }
html[dir="rtl"] .mx-h1 { font-size: clamp(2rem, 3.6vw, 3.3rem); }

/* a11y 2026-10-06: gold-on-cream badge was 4.42:1, needs 4.5:1 */
.mathla-partner-badge { color: #6f5410; }
