/* ============================================================
   RHM Design System v2 — Modern Minimal
   Ported from the tweakcn / 21st.dev "modern-minimal" shadcn preset.
   Values marked (preset) are taken verbatim; (derived) ones have no
   source in the preset and are Tailwind steps chosen to pass WCAG AA
   at the 11–12px sizes the badge / pill components actually use.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:             #ffffff;       /* preset background */
  --bg-soft:        #f3f4f6;       /* preset secondary */
  --surface:        #ffffff;       /* preset card */
  --surface-2:      #f9fafb;       /* preset muted */
  --surface-3:      #f3f4f6;       /* preset secondary */
  --border:         #e5e7eb;       /* preset border */
  --border-subtle:  #e5e7eb;       /* preset border — it ships only one */

  /* Text */
  --text:           #333333;       /* preset foreground — 12.6:1 on white */
  --text-2:         #4b5563;       /* preset secondary-foreground */
  --text-3:         #6b7280;       /* preset muted-foreground — 4.83:1 */
  --text-4:         #9ca3af;       /* derived — preset has no 4th step */
  --text-on-dark:   #FFFFFF;
  --text-on-dark-2: rgba(255, 255, 255, 0.78);
  --text-on-dark-3: rgba(255, 255, 255, 0.62);

  /* Brand accent — blue.
     The preset's primary is #3b82f6, but white-on-#3b82f6 is only 3.68:1,
     which fails AA for the .btn-accent label (the primary CTA). Using the
     preset's own next step down (chart-2 #2563eb) gives 5.17:1 both as a
     fill behind white text and as link text on white. */
  --accent:         #2563eb;       /* preset chart-2 */
  --accent-soft:    #60a5fa;       /* preset dark chart-1 */
  --accent-dim:     #1d4ed8;       /* preset chart-3 — hover/active */
  --accent-bg:      #e0f2fe;       /* preset accent */
  --accent-on-bg:   #1e3a8a;       /* preset accent-foreground — 9.0:1 on --accent-bg */

  /* Status — the preset ships only `destructive`, so success/warning/info
     are derived. Each is the Tailwind step that clears 4.5:1 on white. */
  --success:        #15803d;       /* derived — 5.02:1 */
  --success-bg:     rgba(21, 128, 61, 0.10);
  --warning:        #b45309;       /* derived — 5.02:1 */
  --warning-bg:     rgba(180, 83, 9, 0.10);
  --danger:         #dc2626;       /* preset destructive #ef4444 is 3.76:1; this is 4.83:1 */
  --danger-bg:      rgba(220, 38, 38, 0.10);
  --info:           #0369a1;       /* derived — 5.93:1, kept off-hue from --accent */
  --info-bg:        rgba(3, 105, 161, 0.10);

  /* Radius — preset radius 0.375rem, sub-steps via the shadcn derivation */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  /* Shadows — preset ships none; existing ramp retinted neutral */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow:    0 1px 3px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 4px 12px rgba(17, 24, 39, 0.06), 0 24px 48px rgba(17, 24, 39, 0.10);

  /* Direction C */
  --ink:   #0b1220;
  --ink-2: #101a2e;
  /* ui-monospace = SF Mono on Mac; Cascadia Mono ships with Windows 11 and
     sits far better next to Inter than Consolas does. */
  --mono:  ui-monospace, 'Cascadia Mono', 'Cascadia Code', Consolas, monospace;
  --lift-1: 0 1px 2px rgba(15,23,42,.06), 0 4px 8px -2px rgba(15,23,42,.06);
  --lift-2: 0 1px 2px rgba(15,23,42,.06), 0 8px 16px -4px rgba(15,23,42,.08), 0 24px 40px -12px rgba(15,23,42,.10);
  --lift-3: 0 2px 6px rgba(6,20,60,.30), 0 30px 60px -12px rgba(6,20,60,.50);

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --max-w:    1200px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: #FFFFFF; }
html, body { min-height: 100%; }
/* Smooth-scroll only while the user is actively navigating in-page.
   A bare `html { scroll-behavior: smooth }` also animates the browser's
   scroll RESTORATION — reload at the footer and the page visibly dives
   from the top back down. :focus-within scopes it to anchor clicks
   (links take focus), leaving restoration instant. */
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

a { color: inherit; text-decoration: none; }

/* Reusable secondary-action link style — amber accent, hover underline.
   Used for Forgot? / Sign up / Back to sign in / similar. */
.link-accent {
  color: var(--accent);
  font-weight: 500;
  transition: text-decoration 0.15s;
}
.link-accent:hover { text-decoration: underline; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }

.num, .mono, .tnum,
input[type="number"], input[type="date"], input[type="time"] {
  font-variant-numeric: tabular-nums lining-nums;
}

h1, h2, h3, h4 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 400;
}
h1 em, h2 em, h3 em { color: var(--accent); font-style: italic; font-weight: 400; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: white;
  color: var(--text);
  transition: all 0.18s var(--ease-out);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--text); color: white; border-color: var(--text);
}
.btn-primary:hover { background: #1f1f1f; border-color: #1f1f1f; }
.btn-accent {
  background: var(--accent); color: white; border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.10);
}
.btn-accent:hover {
  background: var(--accent-dim); border-color: var(--accent-dim);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.20);
}
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.30); color: white;
}
.btn-on-dark:hover { border-color: white; background: rgba(255, 255, 255, 0.05); }
.btn-soft { background: var(--surface-2); border-color: var(--border-subtle); }
.btn-pill { border-radius: var(--radius-pill); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Direction C components ---- */
.btn-ink {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(11,18,32,.45);
}
.btn-ink:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.label-mono {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow-c {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; color: var(--text-3); text-transform: uppercase;
}
.eyebrow-c::before { content: ''; width: 40px; height: 2px; background: var(--accent); flex: none; }
/* Highlight bar as a background, not an absolute ::after — an inline em that
   wraps across lines renders one bar per fragment (box-decoration-break),
   where the old pseudo drew a single detached bar at the first line's left. */
.mark-underline em {
  font-style: normal; color: var(--accent-dim);
  background: linear-gradient(90deg, rgba(37,99,235,.24), rgba(96,165,250,.16))
    left calc(100% - 3px) / 100% 9px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.canvas-blue {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(96,165,250,.55), transparent 62%),
    radial-gradient(ellipse 70% 60% at 80% 85%, rgba(29,78,216,.55), transparent 60%),
    linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 45%, #0f2167 100%);
}
.canvas-blue::before {
  content: ''; position: absolute; inset: -30%;
  background: repeating-linear-gradient(108deg,
    rgba(255,255,255,.07) 0 2px, transparent 2px 62px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 30%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 60% at 40% 30%, #000, transparent 72%);
}
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  /* own compositor layer: rasterize the texture once instead of repainting
     it on every scrolled frame */
  transform: translateZ(0);
}
.spec { border-top: 1px solid var(--border); }
.spec-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.spec-row dt {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; color: var(--accent); text-transform: uppercase; margin: 0;
}
.spec-row dd { margin: 0; font-size: 13.5px; color: var(--text); }

/* ============================================================ FORMS */
.field { margin-bottom: 16px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; margin-bottom: 0; }
.label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-2); margin-bottom: 6px;
}
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white; color: var(--text);
  font: inherit; font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.help-text { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ============================================================ BADGES */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; font-family: var(--mono);
}
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-danger  { color: var(--danger);  background: var(--danger-bg);  }
.badge-info    { color: var(--info);    background: var(--info-bg);    }
.badge-muted   { color: var(--text-3);  background: var(--surface-3); }
.badge-accent  { color: var(--accent-on-bg); background: var(--accent-bg); }

/* ============================================================ CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-hover { transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h3 { font-size: 14px; font-weight: 500; margin: 0; letter-spacing: -0.005em; }

/* ============================================================ TABLES */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
  /* x stays scrollable at every width: now that the portal column can shrink
     (.content-col min-width:0), a wide table must scroll here — with plain
     overflow:hidden its right columns would be clipped unreachably. */
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 18px; text-align: left; font-size: 14px; }
.table thead th {
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-3); text-transform: uppercase;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-subtle);
}
.table tbody tr { border-top: 1px solid var(--border-subtle); transition: background 0.15s; }
.table tbody tr:first-child { border-top: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .right { text-align: right; }
.table .center { text-align: center; }
.table .num { font-variant-numeric: tabular-nums lining-nums; }
.table a { color: var(--text); font-weight: 500; }
.table a:hover { color: var(--accent); }

/* ============================================================ EMPTY */
.empty { text-align: center; padding: 60px 24px; color: var(--text-3); }
.empty .icon { font-size: 32px; margin-bottom: 12px; }
.empty h3 { color: var(--text); font-size: 17px; font-weight: 500; margin: 0 0 6px; }

/* ============================================================ BRAND MARK */
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  /* RHM mark: arrow upon arrow, growing in the right direction. */
  display: grid; place-items: center;
  color: #4063D7; position: relative;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-link .name { font-weight: 600; font-size: 15px; letter-spacing: -0.005em; color: var(--text); }

/* ============================================================ FLASH */
.flash {
  padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 18px; font-size: 14px;
  border: 1px solid transparent;
}
.flash-success { background: var(--success-bg); color: var(--success); border-color: rgba(21, 128, 61, 0.25); }
.flash-error,
.flash-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(220, 38, 38, 0.25); }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-color: rgba(3, 105, 161, 0.25); }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(180, 83, 9, 0.25); }

/* ============================================================ ANIMATIONS */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.5s var(--ease-out) both; }

/* ============================================================ SCROLL REVEAL */
/* Paired with assets/js/reveal.js, which adds .in as each element enters view.
   Single source: this lived as an inline copy in index.php and services.php,
   which is how one copy could gain a fix the others never got.

   Animates `translate`, NOT `transform`. The class sits on cards that already
   own a hover lift (.svc-card, .svc-detail-card, .svc-related-card all use
   transform: translateY(-Npx)); at equal specificity a transform-based reveal
   would silently kill that lift depending on source order. `translate` is an
   independent property and composes with transform instead of replacing it. */
.reveal    { opacity: 0; translate: 0 18px; transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); }
.reveal.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
  /* Belt and braces with reveal.js's own reduced-motion branch: content must be
     visible even if the script never runs. .reveal starts hidden, so a missed
     path costs the reader the page, not just the animation. */
  .reveal { opacity: 1; translate: none; }
}

/* ============================================================ MOTION PASS */
/* Paired with assets/js/motion.js. Every rule below is opt-in through a class
   or a custom property that only that script sets, so a page rendered without
   it is byte-for-byte the page we shipped before — same contract as the reveal
   pass above, arrived at the same way.

   THE ONE RULE FOR THIS SECTION: nothing here may hide content. The reveal
   pass starts at opacity 0 and that is exactly how it once blanked the whole
   homepage below the hero. So these rules only ever ADD ink — a tint, a rail,
   a progress line — on top of an element that is already fully rendered and
   readable. If the script never runs, the missing thing is decoration, never
   words. */

/* ---- magnetic buttons ---------------------------------------------------
   .btn already transitions `all`, so the pull eases in for free. The :hover
   line has to restate the translate because .btn:hover sets
   transform: translateY(-1px) at higher specificity, and would otherwise snap
   the button back to its slot at the exact moment it is being leaned toward. */
.mag            { transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0); }
.btn.mag:hover  { transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 1px), 0); }
.btn.mag:active { transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0); }

/* ---- cursor spotlight on cards ------------------------------------------
   A soft radial tint follows the pointer across a card. `border-radius:
   inherit` keeps it inside odd corner radii (the outer AMC tiers are rounded
   on one side only) without needing overflow:hidden, which several of these
   cards do not set. */
.spot { position: relative; }
.spot::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
              var(--spot-tint, rgba(37, 99, 235, 0.10)), transparent 68%);
  opacity: 0; transition: opacity 0.28s var(--ease-out);
}
.spot.lit::after { opacity: 1; }
/* An absolutely-positioned ::after paints above non-positioned in-flow
   children, so the card's own content has to be lifted out from under the
   tint. z-index:-1 is not an alternative — .spot does not create a stacking
   context, so a negative pseudo would sink behind the card's own background
   and never be seen at all. Kept at (0,1,0) so any card that positions a
   child itself — .tier.featured .flag — still out-specifies it. */
.spot > * { position: relative; z-index: 1; }

/* ---- process rail -------------------------------------------------------
   index.php owns the dashed base rail (.process-grid::before); this is the
   solid accent overlay that fills across it as the section is read. --rail
   defaults to 0, i.e. invisible, i.e. today's design. */
.process-grid::after {
  content: ''; position: absolute; top: 21px; left: 6%; right: 6%; height: 2px;
  background: var(--accent); pointer-events: none;
  transform-origin: left center;
  transform: scaleX(var(--rail, 0));
  transition: transform 0.15s linear;
}
.step .n     { transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out); }
.step.lit .n { background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  /* Matches the page's own rule for ::before — the rail is meaningless once
     the four steps stop sitting on one horizontal line. */
  .process-grid::after { display: none; }
}

/* ---- nav chrome ---------------------------------------------------------
   Both of these track the reader's own scrolling 1:1 rather than animating at
   them, which is why they stay on under prefers-reduced-motion while the rest
   of the pass switches off. The progress line is injected by motion.js, not
   written into markup, because the nav is copy-pasted into eleven files. */
.nav-marketing            { transition: box-shadow 0.25s var(--ease-out); }
.nav-marketing .nav-inner { transition: height 0.25s var(--ease-out); }
.nav-marketing.scrolled   { box-shadow: 0 6px 24px -14px rgba(6, 20, 60, 0.45); }
.nav-marketing.scrolled .nav-inner { height: 58px; }
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); pointer-events: none;
  transform-origin: left center;
  transform: scaleX(var(--read, 0));
}

/* ============================================================ MOBILE */
@media (max-width: 640px) {
  /* Form rows that pair two fields side-by-side stack vertically on phones
     so each input gets full width and is comfortable to tap. */
  .field-row { flex-direction: column; gap: 14px; }
}

@media (max-width: 900px) {
  /* 16px stops iOS Safari auto-zooming on input focus. Class selectors are
     required because .input/.select/.textarea (14px) out-specify bare element
     selectors; element selectors are included to also cover any unclassed inputs. */
  input, select, textarea,
  .input, .select, .textarea { font-size: 16px !important; }
}

/* ============================================================
   DARK THEME — Direction C ink ramp.
   Activated by data-theme="dark" on <html> (portal only; the
   marketing site keeps its light identity). Token swap does most
   of the work; the component block below covers the cases where
   a swap alone would break contrast.
   ============================================================ */
:root[data-theme="dark"] {
  --bg:             #0b1220;
  --bg-soft:        #101a2e;
  --surface:        #101a2e;
  --surface-2:      #0e1729;
  --surface-3:      #16233f;
  --border:         rgba(255, 255, 255, 0.14);
  --border-subtle:  rgba(255, 255, 255, 0.09);

  --text:           #e7ecf5;   /* 13.4:1 on --bg */
  --text-2:         #b6c2d6;   /* 8.4:1 */
  --text-3:         #8b99b0;   /* 5.1:1 */
  --text-4:         #64748b;

  --accent:         #60a5fa;   /* 6.9:1 on --bg as link text */
  --accent-soft:    #93c5fd;
  --accent-dim:     #3b82f6;
  --accent-bg:      rgba(96, 165, 250, 0.14);
  --accent-on-bg:   #bfdbfe;

  --success:        #4ade80;  --success-bg: rgba(74, 222, 128, 0.13);
  --warning:        #fbbf24;  --warning-bg: rgba(251, 191, 36, 0.13);
  --danger:         #f87171;  --danger-bg:  rgba(248, 113, 113, 0.13);
  --info:           #38bdf8;  --info-bg:    rgba(56, 189, 248, 0.13);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.45), 0 24px 48px rgba(0, 0, 0, 0.55);
  --lift-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 8px -2px rgba(0,0,0,.4);
  --lift-2: 0 1px 2px rgba(0,0,0,.4), 0 8px 16px -4px rgba(0,0,0,.45), 0 24px 40px -12px rgba(0,0,0,.5);
  --lift-3: 0 2px 6px rgba(0,0,0,.5), 0 30px 60px -12px rgba(0,0,0,.6);
}
/* Component adjustments a token swap can't express */
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
}
:root[data-theme="dark"] .btn { background: var(--surface-3); color: var(--text); }
:root[data-theme="dark"] .btn-accent {
  background: var(--accent); border-color: var(--accent);
  color: #0b1220; /* ink label on light-blue fill: 6.9:1 */
}
:root[data-theme="dark"] .btn-accent:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
:root[data-theme="dark"] .btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
:root[data-theme="dark"] .btn-ink { background: var(--surface-3); border-color: var(--border); color: var(--text); }
:root[data-theme="dark"] *::selection { background: var(--accent); color: #0b1220; }

/* ------------------------------------------------------------------ */
/* Tubelight marketing nav (Variant A, approved 2026-08-06).           */
/* Active item: frosted pill + ceiling-mounted accent bar with a soft  */
/* bloom beaming down. Pure CSS; the pseudo-elements are static while  */
/* scrolling (they only move when .active changes), so no repaint tax  */
/* on the sticky bar. Marketing pages only — portal markup has no      */
/* .nav-marketing.                                                     */
.nav-marketing .nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; }
.nav-marketing .nav-links { gap: 6px; }
.nav-marketing .nav-links a.active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(37, 99, 235, .12), rgba(37, 99, 235, .02) 75%);
}
.nav-marketing .nav-links a.active::before {  /* the tube */
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: -17px; width: 30px; height: 3px; border-radius: 3px;
  background: var(--accent);
}
.nav-marketing .nav-links a.active::after {   /* the bloom */
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: -16px; width: 56px; height: 22px; border-radius: 50%;
  background: rgba(37, 99, 235, .28);
  filter: blur(10px);
  pointer-events: none;
}
