/* ==========================================================
   MMV Support — Design System
   Derived from MMV brand: blue/teal yacht mark + navy wordmark
   ========================================================== */

/* Fonts loaded from Google Fonts via <link> in HTML */

:root, [data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* MMV Brand Palette (derived from logo) */
  /* Surfaces — clean, maritime */
  --color-bg: #F6F9FB;              /* pale sea-mist */
  --color-surface: #FFFFFF;
  --color-surface-2: #FBFDFE;
  --color-surface-offset: #EEF3F7;
  --color-surface-dynamic: #E4ECF2;
  --color-divider: #DDE6ED;
  --color-border: #C9D6DF;

  /* Text — deep navy from wordmark */
  --color-text: #0F2A3F;
  --color-text-muted: #556B7A;
  --color-text-faint: #8AA0B0;
  --color-text-inverse: #FFFFFF;

  /* Primary — MMV Teal (from yacht mark) */
  --color-primary: #1E7A9E;
  --color-primary-hover: #175F7D;
  --color-primary-active: #124964;
  --color-primary-highlight: #D8EBF4;

  /* Deep Navy (headers, hero) */
  --color-navy: #163852;
  --color-navy-hover: #0F2A3F;

  /* Accents used sparingly */
  --color-success: #2E7D32;
  --color-success-highlight: #D9ECDA;
  --color-warning: #B26A00;
  --color-warning-highlight: #F5E4C7;
  --color-danger: #B23B3B;
  --color-danger-highlight: #F5D6D6;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — cool-tinted */
  --shadow-sm: 0 1px 2px rgba(15, 42, 63, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 42, 63, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 42, 63, 0.14);

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1280px;

  /* Fonts */
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme='dark'] {
  --color-bg: #0B1B27;
  --color-surface: #11283A;
  --color-surface-2: #163044;
  --color-surface-offset: #1A3850;
  --color-surface-dynamic: #21445E;
  --color-divider: #22415A;
  --color-border: #2C526E;

  --color-text: #E7EEF3;
  --color-text-muted: #94ACBE;
  --color-text-faint: #64809A;
  --color-text-inverse: #0F2A3F;

  --color-primary: #4FB0D0;
  --color-primary-hover: #6BC1DD;
  --color-primary-active: #86D0E7;
  --color-primary-highlight: #1B4258;

  --color-navy: #4FB0D0;

  --color-success: #6DBF71;
  --color-success-highlight: #1E3A2C;
  --color-warning: #E3A758;
  --color-warning-highlight: #3D2E12;
  --color-danger: #E37A7A;
  --color-danger-highlight: #3D1E1E;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0B1B27; --color-surface: #11283A; --color-surface-2: #163044;
    --color-surface-offset: #1A3850; --color-surface-dynamic: #21445E;
    --color-divider: #22415A; --color-border: #2C526E;
    --color-text: #E7EEF3; --color-text-muted: #94ACBE; --color-text-faint: #64809A;
    --color-text-inverse: #0F2A3F;
    --color-primary: #4FB0D0; --color-primary-hover: #6BC1DD;
    --color-primary-active: #86D0E7; --color-primary-highlight: #1B4258;
    --color-navy: #4FB0D0;
    --color-success: #6DBF71; --color-warning: #E3A758; --color-danger: #E37A7A;
  }
}

/* ==========================================================
   Layout
   ========================================================== */
.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-5); }
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-surface) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  padding-block: var(--space-3);
  min-height: 64px;
  /* Header uses a wider container than page content so the nav has room to
     breathe on large screens. Caps at 1600px so it doesn't stretch on
     ultra-wide monitors. */
  max-width: 1600px;
}
.site-header__brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--color-text); flex-shrink: 0; }
/* Shrunk 2026-08-14: reduced brand footprint so the nav has more room to
   breathe at 1440px. The "Payroll Support" (etc.) subtitle is hidden on
   desktop widths where the nav needs room — it reappears when the hamburger
   menu is active so users still see which support portal they're in. */
.site-header__logo { height: 32px; width: auto; }
.site-header__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 0.02em;
  color: var(--color-navy);
  display: flex; flex-direction: column; line-height: 1.1;
}
[data-theme='dark'] .site-header__title { color: var(--color-primary); }
.site-header__title small {
  font-family: var(--font-body); font-weight: 400;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  /* Hide the guide-specific subtitle on wide desktops so the nav fits. */
  display: none;
}
@media (max-width: 1380px) {
  /* When we're in hamburger territory, restore the subtitle for context. */
  .site-header__title small { display: block; }
}
.site-nav {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
  /* Explicit left margin so the first nav item never touches the logo. */
  padding-left: var(--space-3);
}
.site-nav a {
  color: var(--color-text-muted); text-decoration: none;
  font-size: var(--text-sm); font-weight: 500;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  /* Prevent long labels like "Sub-Account Guide" from wrapping mid-word. */
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-primary); background: var(--color-primary-highlight); }
.site-nav a.is-active { color: var(--color-primary); }
.theme-toggle {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); color: var(--color-text-muted);
  border: 1px solid transparent;
}
.theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-primary); border-color: var(--color-border); }

/* Mobile menu button */
.menu-toggle { display: none; }
/* Trigger the hamburger menu at 1100px instead of 720px — the desktop nav has
   10 items with long labels, so it needs a real laptop width to display
   cleanly. Anything narrower collapses to the mobile menu. */
@media (max-width: 1380px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-surface); flex-direction: column; align-items: stretch;
    padding: var(--space-3); border-bottom: 1px solid var(--color-divider); gap: var(--space-1);
    /* Reset the desktop-only padding-left since the mobile menu is vertical. */
    padding-left: var(--space-3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--space-3); white-space: normal; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: var(--color-text); }
}

/* ==========================================================
   Hero (homepage)
   ========================================================== */
.hero {
  position: relative;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in oklab, var(--color-primary) 12%, transparent), transparent 55%),
    radial-gradient(ellipse at 90% 100%, color-mix(in oklab, var(--color-navy) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--color-surface), var(--color-bg));
  border-bottom: 1px solid var(--color-divider);
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-highlight); color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-2xl); color: var(--color-navy);
  max-width: 22ch;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
[data-theme='dark'] .hero__title { color: var(--color-text); }
.hero__lead {
  font-size: var(--text-lg); color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-8);
}
/* -------- Hero "Ask the Agent" input + chips ------------------------- */
.hero__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 880px;
  margin-top: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  padding: 6px 8px 6px 3.25rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.hero__search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-highlight);
}
.hero__search .search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--color-text-muted);
  pointer-events: none;
}
.hero__search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 0.75rem;
  background: transparent;
  border: 0;
  outline: none;
  font-size: var(--text-base);
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.3;
}
.hero__search input::placeholder { color: var(--color-text-muted); opacity: 1; }
.hero__search [data-hero-ask-submit],
.hero__search [data-search-submit] {
  position: static;
  transform: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.hero__search [data-hero-ask-submit]:hover,
.hero__search [data-search-submit]:hover {
  background: var(--color-primary-strong, var(--color-primary));
  transform: translateY(-1px);
  box-shadow: 0 2px 6px color-mix(in oklab, var(--color-primary) 30%, transparent);
}

.hero__search-hint {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
/* The home-page "Try one of these:" is a section label, so it gets the
   uppercase treatment. Any hint that is a real sentence stays sentence case. */
.hero__search-hint--label {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0;
}
.hero__quick a,
.hero__quick button {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.hero__quick a:hover,
.hero__quick button:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  transform: translateY(-1px);
}

/* Narrow screens: stack the Ask button below the input to keep the pill readable. */
@media (max-width: 620px) {
  .hero__search {
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
    padding-left: 2.75rem;
    border-radius: 1.25rem;
  }
  .hero__search .search-icon { left: 0.85rem; }
  .hero__search input { width: 100%; padding: 0.6rem 0.25rem; }
  .hero__search [data-hero-ask-submit],
  .hero__search [data-search-submit] { width: 100%; justify-content: center; padding: 0.75rem 1rem; }
}

/* ==========================================================
   Hero inline "Ask the Agent" answer + recent-question chips
   ========================================================== */
.hero-recent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: var(--space-5);
  max-width: 880px;
}
.hero-recent[hidden] { display: none; }
.hero-recent__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero-recent__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-recent__chip {
  font-size: var(--text-xs);
  font-family: inherit;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
}
.hero-recent__chip:hover { color: var(--color-primary); border-color: var(--color-primary); }

.hero-answer {
  margin-top: var(--space-6);
  max-width: 880px;
  padding: var(--space-6);
  padding-right: calc(var(--space-6) + 1.75rem);
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.hero-answer[hidden] { display: none; }

/* Permissions-based access callout used inside articles */
.permissions-callout {
  display: block;
  margin: 0 0 var(--space-5);
  padding: 0.75rem 1rem;
  background: color-mix(in oklab, var(--color-primary) 6%, var(--color-surface));
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.permissions-callout strong { color: var(--color-text); }

/* ==========================================================
   Release Notes page
   ========================================================== */
.release-notes-page {
  max-width: 780px;
  margin: var(--space-6) auto var(--space-10);
  padding: 0 var(--space-2);
}
.release-notes-page__header {
  margin-bottom: var(--space-8);
  text-align: left;
}
.release-notes-page__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.release-notes-page__header h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin: var(--space-3) 0 var(--space-3);
}
.release-notes-page__lede {
  color: var(--color-text-muted);
  max-width: 62ch;
  font-size: var(--text-base);
  line-height: 1.6;
}
.release-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-6);
  position: relative;
}
.release-note {
  position: relative;
  padding: var(--space-5) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.release-note::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-6) - 6px);
  top: var(--space-5);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-surface);
}
.release-note--placeholder::before {
  background: var(--color-border);
}
.release-note__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.release-note__meta time { font-weight: 600; }
.release-note__tag {
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  letter-spacing: 0.04em;
}
.release-note--placeholder .release-note__tag {
  background: color-mix(in oklab, var(--color-text-muted) 15%, transparent);
  color: var(--color-text-muted);
}
.release-note__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin: 0 0 var(--space-2);
}
.release-note__body p {
  color: var(--color-text);
  line-height: 1.65;
  margin: 0 0 var(--space-3);
}
.release-note__list {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-5);
  color: var(--color-text);
  line-height: 1.6;
}
.release-note__list li { margin-bottom: var(--space-2); }
.hero-answer__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.hero-answer__close:hover {
  color: var(--color-text);
  background: color-mix(in oklab, var(--color-text) 8%, transparent);
}
.hero-answer__question {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.hero-answer__question-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}
.hero-answer__question-text {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}
.hero-answer__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.hero-answer__text { color: var(--color-text); line-height: 1.65; font-size: var(--text-base); }
.hero-answer__text p { margin: 0 0 var(--space-3); }
.hero-answer__text p:last-child { margin-bottom: 0; }
.hero-answer__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-answer__text code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  background: color-mix(in oklab, var(--color-primary) 6%, var(--color-surface));
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.92em;
}

.hero-answer__primary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-3) var(--space-4);
  background: color-mix(in oklab, var(--color-primary) 6%, var(--color-surface));
  border: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent);
  border-radius: var(--radius-md);
}
.hero-answer__icon { color: var(--color-primary); flex-shrink: 0; margin-top: 0.15rem; }
.hero-answer__primary-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}
.hero-answer__primary-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.hero-answer__primary-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero-answer__related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero-answer__related-label { font-weight: 600; }
.hero-answer__related-link { color: var(--color-primary); text-decoration: none; }
.hero-answer__related-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-answer__related-sep { color: var(--color-border); }

.hero-answer__escalate {
  font-size: var(--text-base);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  background: color-mix(in oklab, #f59e0b 8%, var(--color-surface));
  border: 1px solid color-mix(in oklab, #f59e0b 30%, transparent);
  border-radius: var(--radius-md);
  margin: 0;
}
.hero-answer__escalate-hint { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

.hero-answer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.hero-answer__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.hero-answer__btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  transform: translateY(-1px);
}
.hero-answer__btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.hero-answer__btn--primary:hover {
  background: var(--color-primary-strong, var(--color-primary));
  color: #fff;
  border-color: var(--color-primary-strong, var(--color-primary));
}

.hero-answer__spinner {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.25rem 0;
}
.hero-answer__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.35;
  animation: hero-dot 1.1s ease-in-out infinite;
}
.hero-answer__dot:nth-child(2) { animation-delay: 0.15s; }
.hero-answer__dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes hero-dot {
  0%, 80%, 100% { opacity: 0.35; transform: scale(0.85); }
  40%           { opacity: 1;    transform: scale(1.1); }
}
.hero-answer__loading-text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: 0.35rem;
}
.hero-answer__error {
  color: color-mix(in oklab, #b91c1c 90%, var(--color-text));
  font-size: var(--text-base);
  margin: 0;
}

/* Narrow screens */
@media (max-width: 620px) {
  .hero-answer { padding: var(--space-4); border-radius: var(--radius-md); }
  .hero-answer__actions { flex-direction: column; }
  .hero-answer__btn { width: 100%; justify-content: center; }
}

/* ==========================================================
   Section headings
   ========================================================== */
.section { padding-block: clamp(var(--space-10), 6vw, var(--space-16)); }
.section__eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  color: var(--color-primary); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.section__title {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600;
  color: var(--color-navy); letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
[data-theme='dark'] .section__title { color: var(--color-text); }
.section__lead { font-size: var(--text-base); color: var(--color-text-muted); max-width: 60ch; margin-bottom: var(--space-8); }

/* ==========================================================
   Category cards (homepage)
   ========================================================== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.category {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: var(--color-text);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.category:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.category__icon {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight); color: var(--color-primary);
}
.category__title {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
[data-theme='dark'] .category__title { color: var(--color-text); }
.category__desc { font-size: var(--text-sm); color: var(--color-text-muted); }
.category__count {
  margin-top: auto; padding-top: var(--space-3);
  font-size: var(--text-xs); color: var(--color-text-faint); font-weight: 500;
}

/* ==========================================================
   Article listing (category page)
   ========================================================== */
.articles-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.articles-list a {
  display: grid; grid-template-columns: 32px 1fr auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4) var(--space-5);
  text-decoration: none; color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}
.articles-list a:last-child { border-bottom: 0; }
.articles-list a:hover { background: var(--color-surface-offset); color: var(--color-primary); }
.articles-list a .num {
  font-size: var(--text-xs); color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}
.articles-list a .title { font-weight: 500; font-size: var(--text-base); }
.articles-list a .chevron { color: var(--color-text-faint); }
.articles-list a:hover .chevron { color: var(--color-primary); transform: translateX(4px); }

.section-group {
  margin-bottom: var(--space-10);
}
.section-group__header {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.section-group__title {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  color: var(--color-navy); letter-spacing: -0.01em;
}
[data-theme='dark'] .section-group__title { color: var(--color-text); }
.section-group__count { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ==========================================================
   Article page
   ========================================================== */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  padding-block: var(--space-5);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-text-faint); }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-12); }
}

.article {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
}
.article__header { margin-bottom: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-divider); }
.article__eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.article__title {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600;
  color: var(--color-navy); letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
[data-theme='dark'] .article__title { color: var(--color-text); }
.article__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.article__body { max-width: 68ch; }
.article__body h2 {
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-navy);
  margin-top: var(--space-8); margin-bottom: var(--space-3); font-weight: 600; letter-spacing: -0.01em;
}
[data-theme='dark'] .article__body h2 { color: var(--color-text); }
.article__body h3 {
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 600;
  color: var(--color-text); margin-top: var(--space-6); margin-bottom: var(--space-2);
}
.article__body p { margin-bottom: var(--space-4); color: var(--color-text); }
.article__body ol, .article__body ul { margin: 0 0 var(--space-4) var(--space-6); }
.article__body li { margin-bottom: var(--space-2); }
.article__body ol { list-style: decimal; }
.article__body ul { list-style: disc; }
.article__body code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--color-surface-offset); padding: 2px 6px; border-radius: var(--radius-sm);
}
.article__body strong { color: var(--color-navy); font-weight: 600; }
[data-theme='dark'] .article__body strong { color: var(--color-text); }
.article__body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { color: var(--color-primary-hover); }

/* Callouts */
.callout {
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-block: var(--space-5);
  color: var(--color-text);
}
.callout--warn { border-left-color: var(--color-warning); background: var(--color-warning-highlight); }
.callout--danger { border-left-color: var(--color-danger); background: var(--color-danger-highlight); }
.callout--success { border-left-color: var(--color-success); background: var(--color-success-highlight); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: var(--space-1); }

/* Step lists */
.steps {
  list-style: none !important;
  margin-left: 0 !important;
  counter-reset: step;
  display: flex; flex-direction: column; gap: var(--space-5);
  padding: 0;
}
.steps > li {
  counter-increment: step;
  padding-left: 56px;
  position: relative;
  min-height: 40px;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary); color: white;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}
.steps > li > strong { display: block; margin-bottom: var(--space-1); color: var(--color-navy); font-family: var(--font-display); font-size: var(--text-base); }
[data-theme='dark'] .steps > li > strong { color: var(--color-text); }
.steps > li p { margin: 0 0 var(--space-2) 0; color: var(--color-text-muted); }
.steps > li ul, .steps > li ol { margin-top: var(--space-2); margin-left: var(--space-5); color: var(--color-text-muted); }
/* Screenshot placed beside its step */
.steps > li > figure {
  margin: var(--space-3) 0 0;
  margin-inline: 0;
}

/* Video button (legacy) */
.video-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-highlight); color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  margin-bottom: var(--space-4);
}
.video-link:hover { background: var(--color-primary); color: white; }

/* Video card — shown at the top of an article when a walkthrough video exists */
.video-card {
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(135deg, var(--color-primary-highlight), color-mix(in oklab, var(--color-primary-highlight) 50%, transparent));
  border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.video-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }

.video-card__main {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: 0;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-interactive);
}
.video-card__main:hover { background: color-mix(in oklab, var(--color-primary) 8%, transparent); }

.video-card__play {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary); color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--color-primary) 40%, transparent);
}
.video-card__body { min-width: 0; }
.video-card__eyebrow {
  display: block;
  font-size: var(--text-xs); font-weight: 600;
  color: var(--color-primary); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 2px;
}
.video-card__title {
  display: block;
  font-weight: 600; color: var(--color-navy); font-family: var(--font-display); font-size: var(--text-base);
  letter-spacing: -0.01em;
}
[data-theme='dark'] .video-card__title { color: var(--color-text); }
.video-card__meta {
  display: block;
  font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px;
}

.video-card__yt {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-left: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-sm); font-weight: 500;
  background: transparent;
  transition: background var(--transition-interactive);
  white-space: nowrap;
}
.video-card__yt:hover { background: color-mix(in oklab, var(--color-primary) 12%, transparent); color: var(--color-primary-hover); }

@media (max-width: 640px) {
  .video-card { flex-direction: column; }
  .video-card__yt {
    border-left: 0;
    border-top: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
    justify-content: center;
    padding: var(--space-3);
  }
}

/* Inline video embed (shown after clicking the video card) */
.video-embed {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: black;
  box-shadow: var(--shadow-md);
}
.video-embed[hidden] { display: none; }
.video-embed__frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed__frame iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}
.video-embed__foot {
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.video-embed__foot a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.video-embed__foot a:hover { text-decoration: underline; }
.video-embed__foot button { color: var(--color-text-muted); font-size: var(--text-xs); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); }
.video-embed__foot button:hover { color: var(--color-text); background: var(--color-surface-offset); }

/* TOC sidebar */
.toc {
  position: sticky; top: 88px;
  align-self: start;
  padding: var(--space-5);
  border-left: 2px solid var(--color-divider);
}
.toc__title {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.toc a {
  display: block; padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm); color: var(--color-text-muted);
  text-decoration: none; border-radius: var(--radius-sm);
}
.toc a:hover, .toc a.is-active { color: var(--color-primary); background: var(--color-primary-highlight); }
@media (max-width: 959px) { .toc { display: none; } }

/* Feedback + nav */
.feedback {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.feedback__q { font-weight: 500; }
.feedback__buttons { display: flex; gap: var(--space-2); }
.feedback button {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text-muted);
  font-size: var(--text-sm); font-weight: 500;
  display: inline-flex; align-items: center; gap: var(--space-1);
}
.feedback button:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-highlight); }
.feedback button.is-selected { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.article-nav {
  margin-top: var(--space-8);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
}
.article-nav a {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); text-decoration: none;
  color: var(--color-text);
}
.article-nav a:hover { border-color: var(--color-primary); background: var(--color-surface-offset); }
.article-nav .label { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.article-nav .title { font-weight: 500; color: var(--color-navy); }
[data-theme='dark'] .article-nav .title { color: var(--color-text); }
.article-nav .next { text-align: right; align-items: flex-end; }

/* Related */
.related { margin-top: var(--space-10); }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.related a {
  display: block; padding: var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  text-decoration: none; color: var(--color-text);
  font-weight: 500; font-size: var(--text-sm);
}
.related a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  margin-top: var(--space-20);
  padding-block: var(--space-12);
  background: var(--color-navy);
  color: color-mix(in oklab, white 80%, transparent);
}
[data-theme='dark'] .site-footer { background: var(--color-surface-2); border-top: 1px solid var(--color-divider); }
.site-footer__inner { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { font-size: var(--text-sm); color: white; margin-bottom: var(--space-3); font-family: var(--font-display); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer a { color: color-mix(in oklab, white 80%, transparent); text-decoration: none; font-size: var(--text-sm); }
.site-footer a:hover { color: white; }
.site-footer__contact li { display: flex; flex-direction: column; gap: 0.15rem; }
.site-footer__phone-label { font-size: var(--text-xs); color: color-mix(in oklab, white 55%, transparent); text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer__bottom {
  border-top: 1px solid color-mix(in oklab, white 15%, transparent);
  padding-top: var(--space-5); margin-top: var(--space-8);
  font-size: var(--text-xs); color: color-mix(in oklab, white 60%, transparent);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
}
.site-footer__logo { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); color: white; }
.site-footer__logo svg { height: 32px; width: auto; }
.site-footer__logo-img { height: 40px; width: 40px; border-radius: 6px; background: white; padding: 3px; object-fit: contain; }
.site-footer__logo-text { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: white; letter-spacing: -0.01em; }
[data-theme='dark'] .site-footer__logo, [data-theme='dark'] .site-footer__logo-text { color: var(--color-text); }

/* ==========================================================
   Search results
   ========================================================== */
.search-results { display: flex; flex-direction: column; gap: var(--space-3); }
.search-results a {
  display: block; padding: var(--space-4) var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  text-decoration: none; color: var(--color-text);
}
.search-results a:hover { border-color: var(--color-primary); background: var(--color-surface-offset); }
.search-results .cat { font-size: var(--text-xs); color: var(--color-primary); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.search-results .title { font-weight: 600; margin-block: 4px; color: var(--color-navy); }
[data-theme='dark'] .search-results .title { color: var(--color-text); }
.search-results .desc { font-size: var(--text-sm); color: var(--color-text-muted); }
mark { background: color-mix(in oklab, var(--color-primary) 25%, transparent); color: var(--color-text); padding: 0 2px; border-radius: 2px; }
.search-empty { text-align: center; padding: var(--space-16) var(--space-4); color: var(--color-text-muted); }

/* Utility */
.stack-tight > * + * { margin-top: var(--space-2); }
.stack > * + * { margin-top: var(--space-4); }

/* ==========================================================
   Article figures (embedded screenshots)
   ========================================================== */
.figure {
  margin-block: var(--space-6);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  padding: var(--space-4);
  overflow: hidden;
}
.figure img {
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-inline: auto;
  cursor: zoom-in;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.figure img:hover {
  box-shadow: 0 4px 20px rgba(15, 42, 63, 0.15);
}
.figure figcaption {
  margin-top: var(--space-3);
  padding: 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
}
.figure figcaption::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: currentColor;
  opacity: 0.5;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3M8 11h6M11 8v6'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3M8 11h6M11 8v6'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}
[data-theme='dark'] .figure {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}

/* Mobile-app screenshots (portrait phone caps) — narrower, centered */
.figure--mobile img {
  max-width: 380px;
  width: 100%;
}

/* ==========================================================
   Lightbox
   ========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  background: rgba(11, 27, 39, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__inner {
  position: relative;
  max-width: min(1600px, 96vw);
  max-height: 92vh;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3);
}
.lightbox__stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto; height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
  background: white;
  transform-origin: center center;
  will-change: transform;
  touch-action: none;
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 60ch;
  font-style: italic;
}
.lightbox__toolbar {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
}
.lightbox__zoom-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: transparent; color: inherit; border: 0; cursor: pointer;
  transition: background 120ms ease;
}
.lightbox__zoom-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__zoom-level {
  font-size: var(--text-xs); font-variant-numeric: tabular-nums;
  min-width: 3.2em; text-align: center; color: rgba(255, 255, 255, 0.8);
}
.lightbox__counter { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); margin-left: var(--space-1); }
.lightbox__close {
  position: absolute; top: -14px; right: -14px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: white; color: var(--color-navy);
  border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 3;
}
.lightbox__close:hover { transform: scale(1.05); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55); color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.lightbox__nav:hover { background: rgba(0, 0, 0, 0.8); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (min-width: 1400px) {
  .lightbox__nav--prev { left: -60px; }
  .lightbox__nav--next { right: -60px; }
}
@media (max-width: 720px) {
  .lightbox { padding: var(--space-3); }
  .lightbox__close { top: 8px; right: 8px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__img { max-height: 72vh; }
  .lightbox__counter { display: none; }
}
body.lightbox-open { overflow: hidden; }

/* ==========================================================
   Article end-of-article "Create Ticket" CTA
   ========================================================== */
.article-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-primary) 4%, var(--color-surface));
}
.article-cta__text h3 { font-family: var(--font-display); font-size: var(--text-base); color: var(--color-navy); margin: 0 0 2px; }
.article-cta__text p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.article-cta .article-cta__btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: inherit; font-weight: 700; font-size: var(--text-base);
  padding: 12px 22px; border-radius: 10px; cursor: pointer;
  border: none; background: var(--color-primary); color: #ffffff; text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 42, 63, 0.18);
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.article-cta .article-cta__btn:hover { background: var(--color-primary-dark, var(--color-navy)); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15, 42, 63, 0.25); }
.article-cta .article-cta__btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* ==========================================================
   FAQ section (Common questions on articles)
   ========================================================== */
.faqs {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.faqs h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
[data-theme='dark'] .faqs h2 { color: var(--color-text); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }
.faq {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  font-weight: 500;
  color: var(--color-text);
  display: flex; align-items: center; gap: var(--space-3);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '';
  width: 12px; height: 12px;
  border: 2px solid var(--color-primary); border-top: 0; border-left: 0;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-right: var(--space-1);
}
.faq[open] summary::before {
  transform: rotate(-135deg) translateY(-3px) translateX(-3px);
}
.faq summary:hover { background: var(--color-surface-offset); color: var(--color-primary); }
.faq[open] summary { color: var(--color-primary); background: var(--color-surface-offset); }
.faq__body {
  padding: var(--space-2) var(--space-4) var(--space-4) var(--space-10);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ==========================================================
   Ask this guide widget (search-page NL box)
   ========================================================== */
.ask-guide {
  background: linear-gradient(135deg, var(--color-primary-highlight), color-mix(in oklab, var(--color-primary-highlight) 40%, var(--color-surface)));
  border: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-block: var(--space-8);
}
.ask-guide__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.ask-guide h3 {
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-navy);
  margin-bottom: var(--space-2); letter-spacing: -0.01em;
}
[data-theme='dark'] .ask-guide h3 { color: var(--color-text); }
.ask-guide p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.ask-guide__row { display: flex; gap: var(--space-2); }
.ask-guide__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
}
.ask-guide__input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-highlight); outline: none; }
.ask-guide__btn {
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary); color: white;
  border-radius: var(--radius-md);
  font-weight: 500;
  border: 0;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.ask-guide__btn:hover { background: var(--color-primary-hover); }

.ask-guide__answers { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.ask-guide__answer {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.ask-guide__answer:hover { border-color: var(--color-primary); background: var(--color-surface-offset); }
.ask-guide__answer .cat { font-size: var(--text-xs); color: var(--color-primary); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ask-guide__answer .q { font-weight: 600; margin-block: 4px; color: var(--color-navy); font-family: var(--font-display); font-size: var(--text-base); }
[data-theme='dark'] .ask-guide__answer .q { color: var(--color-text); }
.ask-guide__answer .a { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.ask-guide__answer .a mark { background: color-mix(in oklab, var(--color-primary) 20%, transparent); padding: 0 3px; border-radius: 2px; }
.ask-guide__meta {
  font-size: var(--text-xs); color: var(--color-text-muted);
  margin-top: var(--space-2); font-style: italic;
}
.ask-guide__empty {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.ask-guide__examples { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ask-guide__examples button {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-xs); font-weight: 500;
}
.ask-guide__examples button:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-primary-highlight); }

/* Direct-answer FAQ result (surfaces at top of search results) */
.search-results .faq-result {
  padding: var(--space-5) var(--space-5);
  background: linear-gradient(135deg, var(--color-primary-highlight), color-mix(in oklab, var(--color-primary-highlight) 40%, var(--color-surface)));
  border: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.search-results .faq-result:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.faq-result__eyebrow {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 600; color: var(--color-primary);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.faq-result__q {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
  color: var(--color-navy); margin-bottom: var(--space-2); letter-spacing: -0.01em;
}
[data-theme='dark'] .faq-result__q { color: var(--color-text); }
.faq-result__a { color: var(--color-text); font-size: var(--text-base); line-height: 1.55; margin-bottom: var(--space-3); }
.faq-result__source { font-size: var(--text-xs); color: var(--color-primary); font-weight: 500; }

/* ==========================================================
   Search → Ask banner (link to conversational Ask page)
   ========================================================== */
.search-ask-banner {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary) 8%, var(--color-surface)), var(--color-surface));
  color: inherit; text-decoration: none;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.search-ask-banner:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(15, 42, 63, 0.10);
}
.search-ask-banner__icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff;
}
.search-ask-banner__text { display: flex; flex-direction: column; gap: 2px; }
.search-ask-banner__text strong { font-family: var(--font-display); color: var(--color-navy); }
.search-ask-banner__text span { font-size: var(--text-sm); color: var(--color-text-muted); }
.search-ask-banner__chev { margin-left: auto; color: var(--color-primary); flex-shrink: 0; }
[data-theme='dark'] .search-ask-banner__text strong { color: var(--color-text); }

/* ==========================================================
   Ask this Guide — chat
   ========================================================== */
.ask-chat {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  max-width: 780px;
}
.ask-chat__log {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  max-height: 60vh; min-height: 220px;
  overflow-y: auto;
}
.ask-chat__msg { display: flex; gap: var(--space-3); align-items: flex-start; }
.ask-chat__msg--user { flex-direction: row-reverse; }
.ask-chat__avatar {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--color-navy); color: #fff;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.ask-chat__bubble {
  max-width: 82%;
  padding: var(--space-3) var(--space-4);
  border-radius: 14px;
  font-size: var(--text-sm); line-height: 1.6;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
}
.ask-chat__msg--user .ask-chat__bubble {
  background: var(--color-primary); color: #fff; border-color: transparent;
}
.ask-chat__msg--user .ask-chat__bubble a { color: #fff; text-decoration: underline; }
.ask-chat__bubble p { margin: 0 0 var(--space-2); }
.ask-chat__bubble p:last-child { margin-bottom: 0; }
.ask-chat__bubble a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.ask-chat__bubble ol { margin: var(--space-2) 0; padding-left: 1.3em; display: grid; gap: 4px; }
.ask-chat__bubble code {
  font-family: var(--font-mono, monospace); font-size: 0.9em;
  background: color-mix(in oklab, var(--color-navy) 8%, transparent);
  padding: 1px 5px; border-radius: 5px;
}
.ask-chat__typing { display: inline-flex; gap: 4px; align-items: center; }
.ask-chat__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-text-muted); opacity: 0.5;
  animation: ask-bounce 1.2s infinite ease-in-out;
}
.ask-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.ask-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ask-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 0.9; } }
.ask-chat__examples {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  padding: 0 var(--space-5) var(--space-3);
}
.ask-chat__examples button {
  font: inherit; font-size: var(--text-sm);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--color-divider); background: var(--color-surface-2);
  color: var(--color-text); transition: border-color var(--transition-interactive), color var(--transition-interactive);
}
.ask-chat__examples button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ask-chat__form {
  display: flex; gap: var(--space-2); align-items: flex-end;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.ask-chat__input {
  flex: 1; resize: none; font: inherit; font-size: var(--text-sm);
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--color-divider); background: var(--color-surface);
  color: var(--color-text); line-height: 1.5; max-height: 160px;
}
.ask-chat__input:focus { outline: none; border-color: var(--color-primary); }
.ask-chat__send {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  border: none; background: var(--color-primary); color: #fff;
  display: grid; place-items: center;
  transition: background var(--transition-interactive), opacity var(--transition-interactive);
}
.ask-chat__send:hover { background: var(--color-primary-dark, var(--color-navy)); }
.ask-chat__send:disabled { opacity: 0.5; cursor: default; }
.ask-chat__foot {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs, 0.78rem); color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
}
.ask-chat__foot a { color: var(--color-primary); text-decoration: underline; }
.ask-chat__setkey-link, .ask-chat__setkey-link:focus {
  font: inherit; font-size: inherit; color: var(--color-primary);
  background: none; border: none; padding: 0; margin-left: 6px;
  text-decoration: underline; cursor: pointer;
}
.ask-chat__keybar {
  border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-primary) 5%, var(--color-surface));
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5);
}
.ask-chat__keybar-msg { display: flex; align-items: center; gap: var(--space-2); color: var(--color-navy); font-weight: 500; }
[data-theme='dark'] .ask-chat__keybar-msg { color: var(--color-text); }
.ask-chat__keybar-row { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.ask-chat__key-input {
  flex: 1; min-width: 200px; font: inherit; font-size: var(--text-sm);
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--color-divider); background: var(--color-surface); color: var(--color-text);
}
.ask-chat__key-input:focus { outline: none; border-color: var(--color-primary); }
.ask-chat__key-save {
  font: inherit; font-weight: 500; padding: 9px 18px; border-radius: 10px; cursor: pointer;
  border: none; background: var(--color-primary); color: #fff;
}
.ask-chat__key-note { font-size: var(--text-xs, 0.78rem); color: var(--color-text-muted); margin-top: var(--space-2); }

/* ==========================================================
   Support ticket form
   ========================================================== */
.support-form {
  border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
  background: var(--color-surface); padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 780px;
}
.support-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.support-form__field { display: flex; flex-direction: column; gap: 6px; }
.support-form__field--full { grid-column: 1 / -1; }
.support-form__field > span {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-navy);
}
[data-theme='dark'] .support-form__field > span { color: var(--color-text); }
.support-form__field input,
.support-form__field select,
.support-form__field textarea {
  font: inherit; font-size: var(--text-sm);
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--color-divider); background: var(--color-surface-2);
  color: var(--color-text); width: 100%;
}
.support-form__field input:focus,
.support-form__field select:focus,
.support-form__field textarea:focus { outline: none; border-color: var(--color-primary); background: var(--color-surface); }
.support-form__field textarea { resize: vertical; line-height: 1.5; }
.support-form__field input:disabled { opacity: 0.55; cursor: not-allowed; }
.support-form__hint { font-style: normal; font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 400; }
.support-form__note { display: block; font-size: var(--text-xs, 0.78rem); color: var(--color-text-muted); margin-top: 4px; }
.support-form__actions {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-5);
}
.support-form__submit {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: inherit; font-weight: 500; padding: 11px 20px; border-radius: 10px; cursor: pointer;
  border: none; background: var(--color-primary); color: #fff;
  transition: background var(--transition-interactive);
}
.support-form__submit:hover { background: var(--color-primary-dark, var(--color-navy)); }
.support-form__fallback {
  margin-top: var(--space-5); max-width: 780px;
  padding: var(--space-4); border: 1px dashed var(--color-primary); border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-primary) 5%, var(--color-surface));
}
.support-form__fallback p { font-size: var(--text-sm); margin-bottom: var(--space-3); }
.support-form__fallback-text {
  width: 100%; font-family: var(--font-mono, monospace); font-size: var(--text-sm);
  padding: var(--space-3); border-radius: 10px; resize: vertical;
  border: 1px solid var(--color-divider); background: var(--color-surface); color: var(--color-text);
}
@media (max-width: 620px) {
  .support-form__grid { grid-template-columns: 1fr; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.support-form__status { margin-top: var(--space-4); font-size: var(--text-sm); max-width: 780px; }
.support-form__submit:disabled { cursor: wait; }
.support-form__submit svg { transition: none; }

/* ==========================================================
   Glossary
   ========================================================== */
.glossary { max-width: 820px; }
.glossary__index {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-6);
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-divider);
}
.glossary__index a {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 9px; text-decoration: none; font-weight: 600; font-family: var(--font-display);
  border: 1px solid var(--color-divider); color: var(--color-primary);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.glossary__index a:hover { background: var(--color-primary); color: #fff; }
.glossary__group { margin-bottom: var(--space-7, 2.5rem); scroll-margin-top: 90px; }
.glossary__letter {
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-primary);
  margin-bottom: var(--space-3); padding-bottom: 6px; border-bottom: 2px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
}
.glossary__item {
  padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider);
}
.glossary__item dt { margin-bottom: 4px; }
.glossary__item dt a {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-base);
  color: var(--color-navy); text-decoration: none;
}
.glossary__item dt a:hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme='dark'] .glossary__item dt a { color: var(--color-text); }
[data-theme='dark'] .glossary__item dt a:hover { color: var(--color-primary); }
.glossary__item dd { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ==========================================================
   Search term highlight (in-article, from ?hl=)
   ========================================================== */
mark.search-hit { background: color-mix(in oklab, #f59e0b 35%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }
[data-theme='dark'] mark.search-hit { background: color-mix(in oklab, #f59e0b 45%, transparent); color: #fff; }

/* ==========================================================
   Floating AI Assistant button + slide-in panel
   ========================================================== */
.ai-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px 12px 14px;
  border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), color-mix(in oklab, var(--color-primary) 70%, var(--color-navy)));
  color: #fff;
  font: inherit; font-weight: 600; font-size: var(--text-sm);
  box-shadow: 0 6px 20px rgba(15, 42, 63, 0.28), 0 2px 6px rgba(15, 42, 63, 0.15);
  transition: transform 180ms cubic-bezier(0.16,1,0.3,1), box-shadow 180ms ease;
}
.ai-fab:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 28px rgba(15, 42, 63, 0.34); }
.ai-fab:active { transform: translateY(0) scale(0.98); }
.ai-fab:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.ai-fab__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
.ai-fab__icon svg { width: 26px; height: 26px; }
.ai-fab__label { line-height: 1; }
.ai-fab.is-active { display: none; }

.ai-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
  width: min(420px, 100vw); height: 100dvh;
  background: var(--color-surface);
  box-shadow: -12px 0 40px rgba(15, 42, 63, 0.22);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(0.16,1,0.3,1);
  visibility: hidden;
}
.ai-panel.is-open { transform: translateX(0); visibility: visible; }
.ai-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  padding: 12px 14px;
  background: var(--color-navy); color: #fff;
  flex-shrink: 0;
}
.ai-panel__title { display: flex; align-items: center; gap: 10px; }
.ai-panel__title strong { display: block; font-family: var(--font-display); font-size: var(--text-sm); line-height: 1.2; }
.ai-panel__title small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.2; }
.ai-panel__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.ai-panel__close {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer;
  transition: background 150ms ease;
}
.ai-panel__close:hover { background: rgba(255,255,255,0.24); }
.ai-panel__min {
  margin-right: 6px;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer;
  transition: background 150ms ease;
}
.ai-panel__min:hover { background: rgba(255,255,255,0.24); }
.ai-panel__iframe { flex: 1; border: 0; width: 100%; background: var(--color-surface); }
.ai-panel__overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 42, 63, 0.45); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease;
}
.ai-panel__overlay.is-open { opacity: 1; visibility: visible; }
body.ai-panel-open { overflow: hidden; }

@media (max-width: 480px) {
  .ai-fab { right: 14px; bottom: 14px; padding: 12px; }
  .ai-fab__label { display: none; }
  .ai-fab.is-active { display: none; }
  .ai-panel { width: 100vw; }
}

/* ==========================================================
   Ask page embed mode (chromeless, for the floating widget)
   ========================================================== */
html.ask-embed body { background: var(--color-surface); }
html.ask-embed .site-header,
html.ask-embed .site-footer,
html.ask-embed .breadcrumb { display: none !important; }
html.ask-embed main { padding-block: 0; }
html.ask-embed main > .container { max-width: none; padding: 0; }
html.ask-embed section[style*="padding-block"] { padding-block: 12px !important; }
html.ask-embed .hero__eyebrow,
html.ask-embed h1,
html.ask-embed p[style*="max-width: 62ch"] { display: none !important; }
html.ask-embed .ask-chat { height: calc(100dvh - 12px); display: flex; flex-direction: column; }
html.ask-embed .ask-chat__log { flex: 1; min-height: 0; }
html.ask-embed .ask-chat__foot { font-size: 11px; }

/* ==========================================================
   Mobile preview toggle + preview mode
   ========================================================== */
.mobile-preview-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; margin-left: auto;
  border: 1px solid var(--color-divider); border-radius: 999px;
  background: var(--color-surface); color: var(--color-text-muted);
  font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.mobile-preview-toggle:hover { color: var(--color-navy); border-color: var(--color-primary); }
.mobile-preview-toggle.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.mobile-preview-toggle svg { width: 16px; height: 16px; }

html.mobile-preview body {
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 0 40px rgba(15, 42, 63, 0.15);
  min-height: 100vh;
  position: relative;
}
html.mobile-preview .site-header__inner { flex-wrap: wrap; }
html.mobile-preview .site-nav { display: none !important; }
html.mobile-preview .menu-toggle { display: inline-flex !important; }

/* ==========================================================
   Ticket form — attachment upload
   ========================================================== */
.support-form__attach { margin-top: var(--space-4); }
.support-form__attach-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  border: 1.5px dashed var(--color-divider); background: var(--color-surface-2, var(--color-surface));
  color: var(--color-navy); font: inherit; font-size: var(--text-sm); font-weight: 600;
  transition: border-color 150ms ease, background 150ms ease;
}
.support-form__attach-label:hover { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 6%, var(--color-surface)); }
.support-form__attach-label svg { width: 16px; height: 16px; color: var(--color-primary); }
.support-form__attach-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.support-form__attach-hint { display: block; margin-top: 6px; font-size: var(--text-xs); color: var(--color-text-muted); }
.support-form__files { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.support-form__file {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--color-surface-2, var(--color-surface)); border: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.support-form__file-icon { flex-shrink: 0; color: var(--color-primary); display: inline-flex; }
.support-form__file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-form__file-size { color: var(--color-text-muted); font-size: var(--text-xs); flex-shrink: 0; }
.support-form__file-remove {
  flex-shrink: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.support-form__file-remove:hover { background: rgba(220,38,38,0.12); color: #b91c1c; }
.support-form__file-error { color: #b91c1c; font-size: var(--text-xs); margin-top: 6px; }

/* ==========================================================
   Conversational assistant: cards, suggestions, actions
   ========================================================== */
.ask-bullets { margin: 8px 0 0; padding-left: 20px; }
.ask-bullets li { margin: 3px 0; font-size: var(--text-sm); line-height: 1.45; }

.ask-cards { margin-top: var(--space-3); }
.ask-cards__heading { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: 6px; }
.ask-cards__list { display: flex; flex-direction: column; gap: 8px; }
.ask-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--color-divider); background: var(--color-surface);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.ask-card:hover { border-color: var(--color-primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,42,63,0.10); }
.ask-card__title { font-weight: 600; color: var(--color-navy); flex: 1 1 60%; min-width: 0; }
[data-theme='dark'] .ask-card__title { color: var(--color-text); }
.ask-card__tag { font-size: 11px; font-weight: 600; color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 12%, transparent); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ask-card__summary { flex-basis: 100%; font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.4; }
.ask-card__open { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); white-space: nowrap; }

.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.ask-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: var(--text-sm);
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--color-primary); background: transparent; color: var(--color-primary);
  transition: background var(--transition-interactive), color var(--transition-interactive), transform var(--transition-interactive);
}
.ask-action-btn:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.ask-action-btn.is-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.ask-action-btn.is-primary:hover { background: var(--color-primary-dark, var(--color-navy)); }

.ask-chat__suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px var(--space-5) var(--space-2); }
.ask-chat__suggestions button {
  font: inherit; font-size: var(--text-xs); padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--color-divider); background: var(--color-surface-2); color: var(--color-text-muted);
  transition: border-color var(--transition-interactive), color var(--transition-interactive), background var(--transition-interactive);
}
.ask-chat__suggestions button:hover { border-color: var(--color-primary); color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 6%, var(--color-surface)); }

/* suggestion chips rendered inside a bot bubble (new layout) */
.ask-chat__bubble .ask-chat__suggestions { padding: 8px 0 0; }

/* compact article-link rows (conversational layout) */
.ask-links { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ask-links__heading { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.ask-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: var(--text-sm); font-weight: 600; color: var(--color-primary);
  padding: 8px 10px; border: 1px solid var(--color-divider); border-radius: 10px; background: var(--color-surface-2);
  transition: border-color var(--transition-interactive), background var(--transition-interactive), transform var(--transition-interactive);
}
.ask-link:hover { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 8%, var(--color-surface)); transform: translateY(-1px); }
.ask-link svg { flex: 0 0 auto; }
.ask-link__title { flex: 1 1 auto; min-width: 0; }
.ask-link__tag { font-size: 11px; font-weight: 600; color: var(--color-text-muted); background: color-mix(in oklab, var(--color-primary) 10%, transparent); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
[data-theme='dark'] .ask-link { background: rgba(255,255,255,0.04); }

/* Embed (floating widget) tweaks for assistant cards */
html.ask-embed .ask-chat__suggestions { padding: 4px 12px 6px; }
html.ask-embed .ask-chat__bubble .ask-chat__suggestions { padding: 8px 0 0; }
html.ask-embed .ask-links { margin-top: 8px; }
html.ask-embed .ask-link { padding: 7px 9px; font-size: var(--text-xs); }

/* ===== Focused ticket view (?focus=1) — reached from the AI chat's
   Create Ticket button. Strips site navigation so the user stays focused
   on submitting the request. The floating AI button remains available. ===== */
html[data-focus="1"] .site-header,
html[data-focus="1"] .breadcrumb,
html[data-focus="1"] .site-footer { display: none !important; }
html[data-focus="1"] body { background: var(--color-bg, #f7f8fb); }
html[data-focus="1"] main { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding-top: 6vh; }
html[data-focus="1"] main > .container { width: 100%; max-width: 720px; }
html[data-focus="1"] .support-intro-links { display: none; }
html[data-focus="1"] .support-form { box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 8px 28px rgba(16,24,40,.08); border: 1px solid var(--color-border, #e6e8ee); border-radius: 14px; padding: 28px; background: #fff; }
@media (max-width: 640px) {
  html[data-focus="1"] main { padding-top: 3vh; }
  html[data-focus="1"] .support-form { padding: 18px; }
}

/* ---------- Create a Ticket CTA (Payroll Guide / Search pages) ---------- */
.support-cta {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-divider, #e6e8ee);
  border-radius: var(--radius-lg, 16px);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 1rem;
  align-items: center;
}
.support-cta .support-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-primary, #0f6f6c);
  color: #fff;
  padding: .7rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.support-cta .support-cta__btn:hover { filter: brightness(1.05); }
.support-cta .support-cta__hint { margin-top: .5rem; color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Full-page AI Support workspace (search.html) ---------- */
body.is-ai-page { --ai-workspace-max: 920px; }
.ai-workspace {
  max-width: var(--ai-workspace-max);
  margin: 0 auto;
}
.ask-chat--workspace {
  max-width: var(--ai-workspace-max);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 42, 63, 0.08);
}
.ask-chat__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.ask-chat__toolbar-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
}
.ask-chat__toolbar-title .ask-chat__avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.ask-chat__toolbar-sub { font-family: var(--font-body, inherit); font-weight: 400; font-size: var(--text-xs, 0.78rem); color: var(--color-text-muted); }
.ask-chat__clear {
  font: inherit;
  font-size: var(--text-xs, 0.78rem);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-interactive), border-color var(--transition-interactive);
  white-space: nowrap;
}
.ask-chat__clear:hover { color: var(--color-primary); border-color: var(--color-primary); }
.ask-chat--workspace .ask-chat__log {
  max-height: none;
  min-height: 46vh;
  height: 56vh;
  padding: var(--space-6);
}
.ask-chat--workspace .ask-chat__bubble { max-width: 78%; font-size: var(--text-sm); }
.ask-chat--workspace .ask-chat__examples { padding: var(--space-3) var(--space-6) var(--space-4); }
.ask-chat--workspace .ask-chat__form {
  position: sticky;
  bottom: 0;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
}
.ask-chat--workspace .ask-chat__input { font-size: var(--text-sm); }
@media (max-width: 720px) {
  .ask-chat--workspace .ask-chat__log { height: 52vh; padding: var(--space-4); min-height: 40vh; }
  .ask-chat--workspace .ask-chat__examples { padding: var(--space-3) var(--space-4) var(--space-3); }
  .ask-chat--workspace .ask-chat__form { padding: var(--space-3) var(--space-4); }
  .ask-chat__toolbar { padding: var(--space-3) var(--space-4); }
  .ask-chat__toolbar-sub { display: none; }
}
/* Expand-to-full-page button inside the floating widget header */
.ai-panel__expand {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: none; background: transparent; cursor: pointer;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.ai-panel__expand:hover { color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 10%, transparent); }



/* -------------------------------------------------------------------------
   Release Center styles (Phase 1)
   ------------------------------------------------------------------------- */

/* Feed page — reuses existing .release-notes / .release-note timeline styles.
   Additions below extend them with a "Read more" link, internal-build line,
   and archive section. */

.release-note__internal {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: 'JetBrains Mono', monospace;
  margin-top: calc(-1 * var(--space-1));
  margin-bottom: var(--space-2);
}

.release-note__title a {
  color: inherit;
  text-decoration: none;
}
.release-note__title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-note__read-more {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.release-note__read-more a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.release-note__read-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-notes__archive {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px dashed var(--color-border);
}
.release-notes__archive h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.release-notes__archive p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}


/* Individual release page ------------------------------------------------ */

.release-detail {
  margin: var(--space-6) 0 var(--space-10);
}

.release-detail__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.release-detail__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
.release-detail__eyebrow time { font-weight: 600; color: var(--color-text); }
.release-detail__internal {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding: 2px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.release-detail__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.release-detail__guide-callout {
  background: var(--color-primary-highlight);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
}
.release-detail__guide-callout p { margin: 0; color: var(--color-text); }
.release-detail__guide-callout a { color: var(--color-primary); font-weight: 600; }

.release-detail__section-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.release-detail__overview p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  max-width: 68ch;
}

.release-detail__feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.release-detail__customer {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-8);
}
.release-detail__customer .release-detail__section-title {
  margin-top: 0;
}
.release-detail__customer-body p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
}
.release-detail__customer-bullets {
  margin-top: var(--space-3);
  padding-left: var(--space-5);
}
.release-detail__customer-bullets li {
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.release-detail__back {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
}
.release-detail__back a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.release-detail__back a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* Feature card ---------------------------------------------------------- */

.release-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-5) var(--space-6);
  box-shadow: 0 1px 3px rgba(15, 42, 63, 0.05);
}

.release-feature__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.release-feature__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.release-feature__badge--new {
  background: #DAF4E4;
  color: #14603A;
}
.release-feature__badge--updated {
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
}

.release-feature__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.release-feature__pill {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.release-feature__name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

.release-feature__body p { margin: 0 0 var(--space-3); line-height: 1.6; color: var(--color-text); }
.release-feature__desc { font-size: var(--text-base); }
.release-feature__why { font-size: var(--text-sm); color: var(--color-text-muted); }
.release-feature__why strong { color: var(--color-text); }

.release-feature__nav {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
}
.release-feature__nav-sep { color: var(--color-text-faint); }

.release-feature__screenshots {
  margin: var(--space-4) 0;
}
.release-feature__screenshots--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 640px) {
  .release-feature__screenshots--pair { grid-template-columns: 1fr; }
}

.release-feature__screenshot {
  margin: 0;
  padding: var(--space-2);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.release-feature__screenshot img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.release-feature__screenshot--placeholder {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.release-feature__screenshot-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 2px 8px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  align-self: flex-start;
  margin-bottom: var(--space-2);
}
.release-feature__screenshot--placeholder .release-feature__screenshot-label {
  align-self: center;
  margin-bottom: 0;
}

.release-feature__video {
  margin: var(--space-4) 0;
}
.release-feature__video-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.release-feature__related {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.release-feature__related h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
.release-feature__related ul {
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.release-feature__related li { margin-bottom: var(--space-1); }


/* Placeholders (screenshot pending / video coming soon) ----------------- */

.release-placeholder {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.release-placeholder--video {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

/* END OF RELEASE CENTER STYLES */

/* ==========================================================
   "New" release pill on Release Notes nav link
   ========================================================== */

.release-new-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--color-accent, #01696F);
  color: white;
  vertical-align: middle;
  margin-left: 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: mmv-release-pop 400ms ease-out;
}

@keyframes mmv-release-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .release-new-pill { animation: none; }
}

/* ==========================================================
   Article H1 "UPDATED" pill (persists inside the article)
   ========================================================== */

.article-h1-updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  vertical-align: middle;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.36rem 0.6rem;
  margin-left: 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent, #01696F) 12%, transparent);
  color: var(--color-accent, #01696F);
  border: 1px solid color-mix(in srgb, var(--color-accent, #01696F) 30%, transparent);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  position: relative;
  top: -0.25em;
  white-space: nowrap;
}

.article-h1-updated-pill:hover {
  background: color-mix(in srgb, var(--color-accent, #01696F) 20%, transparent);
  transform: translateY(-1px);
}

.article-h1-updated-pill:focus-visible {
  outline: 2px solid var(--color-accent, #01696F);
  outline-offset: 2px;
}

.article-h1-updated-pill svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .article-h1-updated-pill {
    display: inline-flex;
    margin-top: 0.5rem;
    margin-left: 0;
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-h1-updated-pill {
    transition: none;
  }
  .article-h1-updated-pill:hover {
    transform: none;
  }
}
