/*
 * AFB Theme — Structural CSS
 * Mode-neutral: all layout, typography, and component rules.
 * Colour values come exclusively from CSS custom properties
 * defined in theme-light.css or theme-dark.css.
 */

/* ── CookieConsent v3 — design system overrides ─────────────── */
#cc-main {
  --cc-font-family:                        var(--font);
  --cc-bg:                                 var(--surface-card);
  --cc-primary-color:                      var(--ink);
  --cc-secondary-color:                    var(--body);
  --cc-btn-primary-bg:                     var(--primary);
  --cc-btn-primary-text:                   var(--on-primary);
  --cc-btn-primary-hover-bg:               var(--primary-active);
  --cc-btn-secondary-bg:                   var(--canvas-soft);
  --cc-btn-secondary-text:                 var(--ink);
  --cc-btn-secondary-hover-bg:             var(--surface-strong);
  --cc-btn-border-radius:                  8px;
  --cc-modal-border-radius:                12px;
  --cc-pm-border-radius:                   12px;
  --cc-overlay-bg:                         rgba(0,0,0,0.55);
  --cc-toggle-on-bg:                       var(--primary);
  --cc-toggle-off-bg:                      var(--muted-soft);
  --cc-toggle-readonly-bg:                 var(--surface-strong);
  --cc-toggle-on-knob-bg:                  #fff;
  --cc-toggle-off-knob-bg:                 #fff;
  --cc-separator-border-color:             var(--hairline);
  --cc-section-category-border:            var(--hairline);
  --cc-cookie-category-block-bg:           var(--canvas-soft);
  --cc-cookie-category-block-border:       var(--hairline);
  --cc-cookie-category-block-hover-bg:     var(--canvas-soft);
  --cc-cookie-category-block-hover-border: var(--hairline-strong);
  --cc-cookie-category-expanded-block-bg:  var(--canvas);
  --cc-link-color:                         var(--primary);
  --cc-link-hover-color:                   var(--primary-active);
}

/* Compact preferences modal — sized for our two-category setup */
#cc-main .pm--box { height: auto !important; max-width: 29em; max-height: 90vh; }
#cc-main .pm__body { flex: 0 1 auto !important; }
#cc-main .pm__header { padding: .8em 1.2em; }
#cc-main .pm__section--toggle .pm__section-title { min-height: 46px; padding: .7em 4.8em .7em 1em; }
#cc-main .pm__footer { padding: .8em 1.2em; }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 32px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Typography ────────────────────────────────────────────── */
.label-upper {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.88px; text-transform: uppercase;
  color: var(--muted);
}
.display-mega {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -2px; color: var(--ink);
}
.display-lg {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.72px; color: var(--ink);
}
.display-md {
  font-size: 26px; font-weight: 400;
  line-height: 1.25; letter-spacing: -0.325px; color: var(--ink);
}
.title-md {
  font-size: 17px; font-weight: 600;
  line-height: 1.4; color: var(--ink);
}
.body-md { font-size: 16px; line-height: 1.6; color: var(--body); }
.body-sm { font-size: 14px; line-height: 1.5; color: var(--body); }
.muted   { color: var(--muted); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  line-height: 1; cursor: pointer; border: none;
  border-radius: 8px; padding: 10px 18px; height: 40px;
  white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-active); }

.btn-secondary {
  background: var(--surface-card); color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--ink); border: none; padding-inline: 4px; }
.btn-ghost:hover { color: var(--primary); }

.btn-lg { font-size: 15px; padding: 12px 24px; height: 48px; border-radius: 8px; }

.btn-on-dark { background: var(--cta-btn-prim-bg); color: var(--cta-btn-prim-color); }
.btn-on-dark:hover { background: var(--cta-btn-prim-hover); }

.btn-outline-on-dark {
  background: transparent;
  color: var(--cta-btn-outline-color);
  border: 1px solid var(--cta-btn-outline-border);
}
.btn-outline-on-dark:hover { border-color: var(--on-primary); }

/* ── Search toggle button ──────────────────────────────────── */
.btn-search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px; color: var(--ink);
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
}
.btn-search-toggle:hover,
.btn-search-toggle[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.btn-search-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Search panel (full-width dropdown below nav) ──────────── */
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
  background: var(--surface-card);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  /* closed */
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
}
.search-panel.open {
  max-height: 80px;
  border-bottom: 2px solid var(--primary);
}
.search-panel-inner {
  display: flex; align-items: center; gap: 12px;
  height: 72px;
}
.search-panel-inner form {
  display: flex; align-items: center;
  gap: 12px; width: 100%;
}
.search-panel-icon { color: var(--primary); flex-shrink: 0; }
.search-panel-inner input[type="search"] {
  flex: 1; max-width: 600px; height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--hairline-strong); border-radius: 8px;
  font-size: 15px; font-family: inherit;
  color: var(--ink); background: var(--canvas);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-panel-inner input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.search-panel-inner input[type="search"]::placeholder { color: var(--muted-soft); }
.search-panel-hint {
  font-size: 13px; color: var(--muted); white-space: nowrap; flex-shrink: 0;
}
.search-panel-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0; margin-left: auto;
  background: none; border: none; border-radius: 6px;
  color: var(--muted); cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.search-panel-close:hover { color: var(--ink); background: var(--canvas-soft); }
@media (max-width: 768px) { .search-panel-hint { display: none; } }
@media (max-width: 480px) {
  .search-panel-inner input[type="search"] { font-size: 14px; }
}

/* ── Search panel overlay (dims page behind) ───────────────── */
.search-panel-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.30); z-index: 98;
}
.search-panel-overlay.visible { display: block; }

/* ── Mobile search form (inside hamburger menu) ────────────── */
.mobile-search-form {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-search-form svg { color: var(--muted); flex-shrink: 0; }
.mobile-search-form input[type="search"] {
  flex: 1; height: 36px; padding: 0 12px;
  border: 1px solid var(--hairline-strong); border-radius: 8px;
  font-size: 14px; font-family: inherit;
  color: var(--ink); background: var(--canvas);
  outline: none;
}
.mobile-search-form input[type="search"]:focus { border-color: var(--primary); }
.mobile-search-form input[type="search"]::placeholder { color: var(--muted-soft); }

/* ── Search results page ────────────────────────────────────── */
.search-results-form {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.search-results-field {
  display: flex; align-items: center; gap: 10px;
  flex: 1; max-width: 560px;
  height: 44px; padding: 0 14px;
  border: 1.5px solid var(--hairline-strong); border-radius: 8px;
  background: var(--canvas);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-results-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.search-results-field svg { color: var(--muted); flex-shrink: 0; }
.search-results-field input[type="search"] {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; font-family: inherit; color: var(--ink);
}
.search-results-field input[type="search"]::placeholder { color: var(--muted-soft); }
.search-results-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.search-result-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-title {
  font-size: 17px; font-weight: 600; color: var(--primary);
  text-decoration: none;
}
.search-result-title:hover { text-decoration: underline; }
.search-result-url {
  font-size: 12px; color: var(--muted); margin-top: 3px;
}
.search-result-excerpt {
  font-size: 14px; line-height: 1.65; color: var(--body);
  margin-top: 6px;
}
.search-no-results {
  padding: 40px 0; color: var(--muted); font-size: 15px;
}

/* ── Mode Toggle Icon Button ───────────────────────────────── */
.btn-mode-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px; color: var(--ink);
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.btn-mode-toggle:hover { border-color: var(--primary); color: var(--primary); }
.btn-mode-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.mobile-mode-toggle {
  display: flex; align-items: center; gap: 8px;
}
.mobile-mode-toggle svg {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Badge Pill ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  background: var(--surface-strong); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.88px;
  text-transform: uppercase; border-radius: 9999px;
  padding: 4px 12px; line-height: 1.4;
}
.badge-blue {
  background: rgba(var(--primary-rgb), 0.1); color: var(--primary);
}

/* ── Top Navigation ────────────────────────────────────────── */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px; display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}
.nav-wordmark {
  font-size: 18px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.2px; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.5ch;
}
.nav-logo-img { height: 1.25em; width: auto; display: block; }
.nav-wordmark .brand-any { color: var(--brand-any); }

.nav-links { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-links > li { display: flex; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--body);
  padding: 6px 12px; border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--nav-hover-bg, var(--hairline-soft)); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Progressive nav collapse ────────────────────────────── */
/* Download CTA — icon + collapsible label */
.nav-dl-btn { display: inline-flex; align-items: center; height: 36px; }
.nav-dl-btn svg { flex-shrink: 0; }
.nav-dl-label { white-space: nowrap; margin-left: 7px; }
/* compact-1: reduce nav-link padding to save width; Download label stays visible */
.top-nav.nav-compact-1 .nav-links a,
.top-nav.nav-compact-1 .nav-dropdown-trigger { padding-inline: 6px; }

/* Lang trigger — collapsible text + chevron */
.top-nav.nav-compact-2 .nav-lang-trigger > span { display: none; }
.top-nav.nav-compact-2 .nav-lang-trigger { height: 36px; padding-inline: 10px; }

/* JS-driven mobile state (same effect as @media 768px nav rules) */
.top-nav.nav-mobile .nav-links,
.top-nav.nav-mobile .nav-actions         { display: none; }
.top-nav.nav-mobile .hamburger           { display: flex; }
.top-nav.nav-mobile .mobile-top-actions  { display: flex; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: 0.2s;
}

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
  padding: 16px 32px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--hairline-soft);
}
.mobile-menu .btn { margin-top: 16px; align-self: flex-start; }

/* ── Inner Page Hero ───────────────────────────────────────── */
.page-hero { padding: 56px 0 48px; }
.page-hero-headline { margin: 12px 0 16px; }
.page-hero-sub {
  font-size: 16px; line-height: 1.65; color: var(--body);
  max-width: 640px;
}
.page-section { padding: 48px 0; }
.section-heading { margin-bottom: 32px; }

/* ── Core Operations page ──────────────────────────────────── */
.co-feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 28px;
  align-items: start;
}
.co-feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--_bg, rgba(var(--primary-rgb), 0.07));
  border-radius: 14px;
  color: var(--_c, var(--primary));
}
.co-feature-icon svg {
  width: 28px; height: 28px;
}
.co-feature-heading { margin-bottom: 16px; }
.co-feature-body p { font-size: 15px; line-height: 1.7; color: var(--body); }
.co-feature-body p + p { margin-top: 12px; }
.page-section p a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.page-section p a:hover { color: var(--primary-active); text-decoration: underline; }
.co-feature-lead {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 8px !important;
}
.co-cta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 40px 0 8px;
}
@media (max-width: 640px) {
  .co-feature { grid-template-columns: 1fr; }
  .co-feature-icon { display: none; }
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; }
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--primary); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none; user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  background-color: var(--primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-question:hover { color: var(--primary); }
.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--hairline);
}
.faq-answer p {
  font-size: 14px; line-height: 1.75; color: var(--body);
  padding-top: 16px;
  margin: 0;
}

/* ── Contact page ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
/* Form plugin field wrappers */
.contact-form-wrap .form-field { margin-bottom: 20px; }
.contact-form-wrap label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px; letter-spacing: 0.2px;
}
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-size: 14px; color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
  resize: vertical;
}
.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder { color: var(--muted); }
.contact-form-wrap .form-errors {
  list-style: none; padding: 0; margin: 6px 0 0;
}
.contact-form-wrap .form-errors li {
  font-size: 12px; color: #dc2626;
}
.contact-form-wrap .form-messages {
  padding: 16px 20px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 10px;
  font-size: 14px; color: var(--ink);
  margin-bottom: 24px;
}
.contact-form-wrap .form-buttons { margin-top: 8px; }
.contact-form-wrap [type="submit"] { cursor: pointer; border: none; }
/* Privacy notice (display field) */
.contact-form-wrap .form-field p,
.contact-form-wrap .form-data {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  margin-top: -8px; margin-bottom: 4px;
}
/* Help text rendered by Form plugin */
.contact-form-wrap .form-help {
  display: block; font-size: 11px; color: var(--muted);
  margin-top: 4px; line-height: 1.5;
}
/* Hide native file input (replaced by JS drop zone) */
.contact-form-wrap input[type="file"] {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
/* Drop zone */
.file-drop-zone {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px dashed var(--hairline); border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.02);
  transition: border-color 0.15s, background 0.15s;
}
.file-drop-zone.drag-active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}
.file-drop-hint { font-size: 11px; color: var(--muted); }
.file-name-list { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.file-name-item {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  font-size: 12px; color: var(--body);
}
.file-remove-btn {
  flex-shrink: 0;
  background: none; border: none; padding: 0 4px;
  font-size: 16px; line-height: 1; color: var(--muted);
  cursor: pointer; transition: color 0.15s;
}
.file-remove-btn:hover { color: #dc2626; }
.file-drop-zone .btn { flex-shrink: 0; }
/* Sidebar */
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); margin-bottom: 6px;
}
.contact-info-link {
  font-size: 14px; font-weight: 500; color: var(--primary);
  text-decoration: none; word-break: break-all;
}
.contact-info-link:hover { text-decoration: underline; }
.contact-info-body { font-size: 14px; color: var(--body); line-height: 1.6; }
.contact-info-body a { color: var(--primary); }
.contact-info-body a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Download Table ────────────────────────────────────────── */
.download-table-wrap {
  border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden;
}
.download-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; color: var(--body);
}
.download-table th {
  background: var(--canvas-soft); color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 12px 20px; text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.download-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: middle;
}
.download-table tbody tr:last-child td { border-bottom: none; }
.btn-download { font-size: 13px; height: 36px; padding: 0 16px; }

/* ── Pricing Table ─────────────────────────────────────────── */
.pricing-jump-links { margin-top: 12px; font-size: 13px; }
.pricing-jump-link { color: var(--muted); text-decoration: underline; }
.pricing-jump-link:hover { color: var(--body); }
.pricing-jump-sep { margin: 0 8px; color: var(--muted); }
.pricing-price-cell { font-weight: 600; font-size: 15px; color: var(--ink); }
.pricing-term-cell { font-size: 13px; color: var(--muted); }
.fnmark { font-size: 10px; font-weight: 600; color: var(--muted); vertical-align: super; }
.pricing-footnotes {
  margin-top: 12px; display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; line-height: 1.6; color: var(--muted);
}

/* ── Invoice Notice ────────────────────────────────────────── */
.invoice-notice {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 28px; padding: 20px 24px;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.20);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
}
.invoice-notice-icon { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.invoice-notice-heading { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.invoice-notice-body { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.65; }
.invoice-notice-subheading { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 16px; margin-bottom: 4px; }
.invoice-notice-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.invoice-notice-link { color: var(--primary); text-decoration: underline; }
.invoice-notice-link:hover { opacity: 0.8; }

/* ── System Requirements ───────────────────────────────────── */
.sysreq-list { display: flex; flex-direction: column; gap: 0; }
.sysreq-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.sysreq-row:last-child { border-bottom: none; }
.sysreq-list dt {
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding-top: 2px;
}
.sysreq-list dd { font-size: 14px; line-height: 1.6; color: var(--body); }
.sysreq-os-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }

@media (max-width: 640px) {
  .sysreq-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero { background: var(--canvas); padding: 80px 0 72px; text-align: center; }
.hero-badge { margin-bottom: 24px; }
.hero-headline { max-width: 820px; margin-inline: auto; margin-bottom: 24px; }
.hero-sub {
  font-size: 18px; line-height: 1.65; color: var(--body);
  max-width: 620px; margin-inline: auto; margin-bottom: 40px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 12px; margin-bottom: 24px;
}
.hero-meta { font-size: 13px; color: var(--muted); letter-spacing: 0.2px; }
.hero-meta span { margin-inline: 6px; opacity: 0.5; }

/* ── Feature Sections ──────────────────────────────────────── */
.feature-section { padding: 80px 0; }
.feature-section.alt { background: var(--surface-card); }

.section-header { margin-bottom: 48px; }
.section-label  { margin-bottom: 12px; }
.section-intro  {
  font-size: 17px; line-height: 1.65; color: var(--body);
  max-width: 680px; margin-top: 16px;
}
.section-cta { margin-top: 48px; }
.feature-card h3 a {
  color: inherit; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--hairline);
}
.feature-card h3 a:hover { color: var(--primary); text-decoration-color: var(--primary); }

.section-learn-more {
  color: var(--primary); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.section-learn-more:hover { text-decoration: underline; text-underline-offset: 2px; }

.section-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start; margin-bottom: 48px;
}
.section-split .section-header { margin-bottom: 0; }

.section-image {
  border-radius: 12px; border: 1px solid var(--hairline);
  overflow: hidden; background: var(--canvas-soft);
}
.section-image img { width: 100%; display: block; }
.section-image-caption {
  font-size: 12px; color: var(--muted-soft);
  text-align: center; padding: 10px 16px;
  border-top: 1px solid var(--hairline-soft);
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox-trigger {
  display: block; width: 100%;
  background: none; border: none; padding: 0;
  cursor: zoom-in;
}
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  opacity: 0.7; transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }

/* ── Card Grid ─────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-section.alt .feature-card {
  background: var(--canvas); border-color: var(--hairline-soft);
}

.card-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--_bg, rgba(var(--primary-rgb), 0.08));
  border-radius: 8px; flex-shrink: 0;
  color: var(--_c, var(--primary));
}
.card-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
/* ── Icon colour utilities ─────────────────────────────────── */
/* Apply to .co-feature-icon or .card-icon to override default primary colour */
.ico-sky     { --_c: var(--icon-sky);     --_bg: var(--icon-sky-bg);     }
.ico-indigo  { --_c: var(--icon-indigo);  --_bg: var(--icon-indigo-bg);  }
.ico-violet  { --_c: var(--icon-violet);  --_bg: var(--icon-violet-bg);  }
.ico-teal    { --_c: var(--icon-teal);    --_bg: var(--icon-teal-bg);    }
.ico-emerald { --_c: var(--icon-emerald); --_bg: var(--icon-emerald-bg); }
.ico-amber   { --_c: var(--icon-amber);   --_bg: var(--icon-amber-bg);   }
.ico-orange  { --_c: var(--icon-orange);  --_bg: var(--icon-orange-bg);  }
.ico-rose    { --_c: var(--icon-rose);    --_bg: var(--icon-rose-bg);    }
.card-body { font-size: 14px; line-height: 1.55; color: var(--body); }

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band { background: var(--cta-band-bg); padding: 96px 0; text-align: center; }
.cta-band-headline {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400; line-height: 1.2; letter-spacing: -0.5px;
  color: var(--cta-headline-color);
  max-width: 640px; margin-inline: auto; margin-bottom: 32px;
}
.cta-band-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 12px; margin-bottom: 20px;
}
.cta-band-meta { font-size: 13px; color: var(--cta-meta-color); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.footer-brand-wordmark {
  display: inline-block;
  font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 12px;
  text-decoration: none;
}
.footer-brand-wordmark:hover { color: var(--primary); }
.footer-brand-wordmark .brand-any { color: var(--brand-any); }
.footer-brand-wordmark:hover .brand-any { color: var(--primary); }
.footer-tagline {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  margin-bottom: 16px; max-width: 240px;
}
.footer-contact { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-contact a:hover { color: var(--primary); }
.footer-col-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  letter-spacing: 0.2px; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-legal-links { display: flex; gap: 20px; align-items: center; }
.footer-legal-links a { font-size: 13px; color: var(--muted); }
.footer-legal-links a:hover { color: var(--ink); }
.footer-cookie-btn {
  font-size: 13px; color: var(--muted); font-family: var(--font);
  background: none; border: none; cursor: pointer; padding: 0; line-height: inherit;
}
.footer-cookie-btn:hover { color: var(--ink); }

/* ── Section Divider ───────────────────────────────────────── */
.section-divider {
  height: 1px; background: var(--hairline);
  max-width: 1200px; margin-inline: auto;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid               { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-2        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid             { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-split           { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container               { padding-inline: 20px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger               { display: flex; }
  .hero                    { padding: 56px 0 48px; }
  .feature-section         { padding: 56px 0; }
  .section-header          { margin-bottom: 32px; }
  .card-grid               { grid-template-columns: 1fr; }
  .cta-band                { padding: 64px 0; }
  .footer-grid             { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom           { flex-direction: column; align-items: flex-start; }
  .btn-download .btn-label { display: none; }
  .btn-download            { padding-inline: 10px; }
}

@media (max-width: 480px) {
  .hero-actions            { flex-direction: column; align-items: center; }
  .btn-lg                  { width: 100%; justify-content: center; }
  .cta-band-actions        { flex-direction: column; }
}

/* ── Nav Dropdown (desktop) ────────────────────────────────── */
.nav-dropdown { position: relative; }

/* Trigger inherits font/colour/padding/radius from .nav-links a;
   only additions needed are the inline-flex layout for the chevron. */
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  vertical-align: middle;
  cursor: pointer; user-select: none;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--ink); background: var(--nav-hover-bg, var(--hairline-soft)); }
.nav-dropdown-trigger svg {
  width: 12px; height: 12px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.15s;
}
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 152px; list-style: none;
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--ink); background: var(--nav-hover-bg, var(--hairline-soft)); }

/* ── Mobile Accordion (Help sub-menu) ──────────────────────── */
.mobile-accordion { border-bottom: 1px solid var(--hairline-soft); }
.mobile-accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: var(--font);
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 10px 0; text-align: left; white-space: nowrap;
}
.mobile-accordion-trigger svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; transition: transform 0.2s;
}
.mobile-accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-accordion-items { display: none; flex-direction: column; padding-bottom: 4px; }
.mobile-accordion-items.open { display: flex; }
.mobile-menu .mobile-accordion-items a {
  font-size: 14px; font-weight: 500; color: var(--body);
  padding: 8px 0 8px 14px; border-bottom: none;
}

/* ── Legal page ────────────────────────────────────────────── */
.legal-content {
  max-width: 800px;
}
.legal-content > p,
.legal-content div > p {
  font-size: 15px; line-height: 1.75; color: var(--body);
  margin-bottom: 1rem;
}
.legal-content h2 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink); margin-top: 2.5rem; margin-bottom: 0.75rem;
  padding-top: 2rem; border-top: 1px solid var(--hairline);
}
.legal-content h2:first-of-type {
  margin-top: 1.5rem; padding-top: 1.5rem;
}
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content a:hover { opacity: 0.8; }

/* ════════════════════════════════════════════════════════════════
   KNOWLEDGE BASE  —  shared styles for all KB pages
   Breadcrumb, TOC box, section headings, body text, figures,
   property tables (.kb-props), data tables (.kb-table),
   KB landing cards (.kb-sections), inline code (.kb-code).
════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ──────────────────────────────────────────────── */
.kb-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.kb-breadcrumb a { color: var(--primary); }
.kb-breadcrumb a:hover { text-decoration: underline; }
.kb-breadcrumb .sep { margin: 0 7px; color: var(--muted-soft); }
.kb-breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ── Page hero sub-line ──────────────────────────────────────── */
.kb-hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 660px;
  margin-top: 8px;
  margin-bottom: 24px;
}

/* ── On-page TOC ─────────────────────────────────────────────── */
.kb-toc {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 10px;
  padding: 14px 20px 16px;
}
.kb-toc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.kb-toc ol {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
}
.kb-toc li { margin: 4px 0; }
.kb-toc a { font-size: 14px; color: var(--primary); }
.kb-toc a:hover { text-decoration: underline; }

/* ── Section separator ───────────────────────────────────────── */
.page-section {
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 24px;
}
.page-section:first-of-type { border-top: none; }

/* ── KB section heading ──────────────────────────────────────── */
.kb-section-heading {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.25px;
  color: var(--ink);
  margin-bottom: 20px;
}
.kb-article-list + .kb-section-heading,
.kb-table-wrap + .kb-section-heading {
  margin-top: 32px;
}

/* ── Body text ───────────────────────────────────────────────── */
.kb-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}
.kb-body + .kb-body { margin-top: 12px; }
.kb-body em { font-style: italic; }
.kb-body a,
.kb-props dd a,
.kb-callout a,
.kb-table td a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.kb-body a:hover,
.kb-props dd a:hover,
.kb-callout a:hover,
.kb-table td a:hover { color: var(--primary-active); }

/* ── Diagram row ─────────────────────────────────────────────── */
.kb-figures {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.kb-fig {
  flex: 1;
  min-width: 160px;
  text-align: center;
  margin: 0;
}
.kb-fig img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  display: inline-block;
}
.kb-fig figcaption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* ── Sequence list ───────────────────────────────────────────── */
.kb-sequence {
  margin: 14px 0 0;
  padding-left: 24px;
}
.kb-sequence li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 3px;
}
.kb-sequence li code,
.kb-sequence li .kb-code {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--hairline-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Section intro text ──────────────────────────────────────── */
.kb-section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 20px;
  max-width: 700px;
}

/* ── Inline link ─────────────────────────────────────────────── */
.kb-link { color: var(--primary); }
.kb-link:hover { text-decoration: underline; }

/* ── Inline code ─────────────────────────────────────────────── */
.kb-code {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--hairline-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ════════════════════════════════════════════════════════════════
   PROPERTY TABLE  —  two-column grid on dl/dt/dd
   Left column: field name (tinted, fixed width)
   Right column: description (full width remaining)
   Collapses to single column below 600 px.
════════════════════════════════════════════════════════════════ */
.kb-props {
  display: grid;
  grid-template-columns: 172px 1fr;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}

.kb-props dt,
.kb-props dd {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 16px;
  margin: 0;
}

/* Remove bottom border on the last row */
.kb-props dt:last-of-type,
.kb-props dd:last-child {
  border-bottom: none;
}

.kb-props dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(var(--primary-rgb), 0.04);
  border-right: 1px solid var(--hairline);
  display: block;
  padding-top: 14px;
}
.kb-props dt small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}

.kb-props dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}

/* Sub-options list inside a dd */
.kb-props dd ul {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  overflow: hidden;
}
.kb-props dd ul li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  padding: 9px 14px 9px 30px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.kb-props dd ul li:last-child { border-bottom: none; }
.kb-props dd ul li::before {
  content: '›';
  position: absolute;
  left: 12px;
  top: 9px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}
.kb-props dd ul li em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* Reset browser default p margins inside dd */
.kb-props dd p { margin: 0; }

/* Note inside dd (non-italic contextual note) */
.kb-props dd .kb-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Mobile: stack columns ───────────────────────────────────── */
@media (max-width: 600px) {
  .kb-props {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .kb-props dt {
    border-right: none;
    border-bottom: 2px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    padding: 10px 14px;
    font-size: 13px;
  }

  .kb-props dd {
    border-bottom: 1px solid var(--hairline);
    padding: 10px 14px 14px;
  }

  .kb-props dd:last-child {
    border-bottom: none;
  }

  .kb-props dt:not(:first-child) {
    border-top: 1px solid var(--hairline-strong);
  }
}

/* ════════════════════════════════════════════════════════════════
   DATA TABLE  —  for tabular reference data (time/date formats,
   CRON examples, access matrices, etc.)
════════════════════════════════════════════════════════════════ */
.kb-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
}
.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kb-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(var(--primary-rgb), 0.04);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline-strong);
}
.kb-table td {
  padding: 10px 16px;
  color: var(--body);
  line-height: 1.6;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.kb-table tr:last-child td { border-bottom: none; }
.kb-table td code,
.kb-table td .kb-code {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--hairline-soft);
  padding: 1px 5px;
  border-radius: 3px;
}
.kb-table td em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}
/* Center-align checkmark/tick columns */
.kb-table .kb-col-center { text-align: center; }
/* Tick and cross symbols */
.kb-tick { color: var(--success); font-weight: 700; }
.kb-cross { color: var(--muted); }

/* ════════════════════════════════════════════════════════════════
   KB LANDING PAGE  —  section cards grid
════════════════════════════════════════════════════════════════ */
.kb-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.kb-section-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 20px 22px 22px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kb-section-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.10);
}
.kb-section-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.kb-section-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kb-section-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.kb-section-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.kb-section-card-count {
  font-size: 12px;
  color: var(--muted-soft);
  margin-top: 12px;
}

/* KB article listing within a section index */
.kb-article-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  overflow: hidden;
}
.kb-article-list li {
  border-bottom: 1px solid var(--hairline);
}
.kb-article-list li:last-child { border-bottom: none; }
.kb-article-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  transition: background 0.12s;
}
.kb-article-list a:hover {
  background: rgba(var(--primary-rgb), 0.04);
  color: var(--primary);
  text-decoration: none;
}
.kb-article-list a::after {
  content: '›';
  font-size: 18px;
  color: var(--muted-soft);
  margin-left: 8px;
  flex-shrink: 0;
}

/* ── Caution / note callout ──────────────────────────────────── */
.kb-callout {
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
  margin: 16px 0;
}
.kb-callout-warn {
  background: #fef3c7;
  border-color: #fcd34d;
  border-left-color: #f59e0b;
  color: #78350f;
}
.kb-callout strong { font-weight: 600; color: var(--ink); }


/* ── Sitemap ────────────────────────────────────────────────── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.sitemap-col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sitemap-links a {
  font-size: 15px;
  color: var(--body);
  text-decoration: none;
}
.sitemap-links a:hover { color: var(--primary); }
.sitemap-indent {
  padding-left: 20px;
  position: relative;
}
.sitemap-indent::before {
  content: '›';
  position: absolute;
  left: 5px;
  color: var(--muted-soft);
}
@media (max-width: 768px) {
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sitemap-grid { grid-template-columns: 1fr; }
}


/* ── Blog ───────────────────────────────────────────────────── */

/* Filter bar */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.blog-filter-btn {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  background: var(--surface-strong);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--primary);
  color: var(--on-primary);
}

/* Listing */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.blog-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.blog-card:last-child { border-bottom: none; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.blog-card-date { font-size: 0.875rem; color: var(--muted); }
.blog-card-tags,
.blog-article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.blog-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--canvas-soft);
  color: var(--muted);
  border-radius: 0.375rem;
  text-transform: lowercase;
}
.blog-card-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.blog-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--body); line-height: 1.6; margin: 0 0 1rem; }
.blog-card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.blog-card-link:hover { color: var(--primary-active); }
.blog-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: var(--canvas-soft);
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
}
.pagination-btn:hover { background: var(--hairline); }
.blog-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* Article */
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.blog-article-date { font-size: 0.9375rem; color: var(--muted); }
.blog-article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.0625rem;
}
.blog-article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}
.blog-article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}
.blog-article-content p { margin-bottom: 1.25rem; }
.blog-article-content ul,
.blog-article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-article-content li { margin-bottom: 0.5rem; }
.blog-article-content code {
  background: var(--canvas-soft);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
}
.blog-article-content pre {
  background: var(--canvas-soft);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.blog-article-content pre code { background: none; padding: 0; }
.blog-article-content a { color: var(--primary); text-decoration: underline; }
.blog-article-content a:hover { color: var(--primary-active); }
.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.blog-article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--body);
}
.blog-article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.blog-article-content th,
.blog-article-content td { padding: 0.75rem; border: 1px solid var(--hairline); text-align: left; }
.blog-article-content th { background: var(--canvas-soft); font-weight: 600; }
.blog-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 4rem auto 0;
  max-width: 800px;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline);
}
.blog-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--canvas-soft);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.blog-nav-item:hover { background: var(--hairline); }
.blog-nav-empty { background: transparent; }
.blog-nav-empty:hover { background: transparent; }
.blog-nav-label { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.blog-nav-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.blog-nav-next { text-align: right; }
.blog-back { text-align: center; margin-top: 3rem; }
.blog-back-link { color: var(--primary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.blog-back-link:hover { color: var(--primary-active); }
@media (max-width: 640px) {
  .blog-nav { grid-template-columns: 1fr; }
  .blog-nav-next { text-align: left; }
}
.kb-callout-warn strong { color: #78350f; }

/* ── Language Switcher (desktop) ──────────────────────────── */
.nav-lang-switcher { position: relative; }

.nav-lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  color: var(--ink); padding: 6px 12px; border-radius: 6px;
  line-height: 1.5; white-space: nowrap; transition: background 0.15s;
}
.nav-lang-trigger:hover { background: var(--nav-hover-bg); }
.nav-lang-trigger .flag-icon { border-radius: 2px; display: block; flex-shrink: 0; }
.lang-chevron {
  width: 12px; height: 12px; flex-shrink: 0;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.nav-lang-switcher:hover .lang-chevron,
.nav-lang-switcher:focus-within .lang-chevron { transform: rotate(180deg); }

.nav-lang-menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  min-width: 210px; width: max-content; list-style: none;
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 4px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 300;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.nav-lang-switcher:hover .nav-lang-menu,
.nav-lang-switcher:focus-within .nav-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-lang-item,
.nav-lang-menu li .lang-disabled {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s;
  cursor: pointer;
}
.nav-lang-item:hover { background: var(--canvas-soft); }
.nav-lang-item.current { color: var(--primary); background: var(--canvas-soft); }
.lang-disabled { color: var(--muted-soft); cursor: not-allowed; }

.lang-flag-placeholder {
  display: inline-block; width: 20px; height: 14px;
  background: var(--surface-strong); border-radius: 2px; flex-shrink: 0;
}
.lang-coming-soon {
  margin-left: auto; font-size: 11px; font-weight: 400;
  color: var(--muted-soft);
}

/* ── Mobile language row ───────────────────────────────────── */
.mobile-lang-row {
  display: flex; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-lang-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 500; color: var(--body);
  text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.mobile-lang-opt .flag-icon { border-radius: 2px; }
.mobile-lang-opt.active {
  border-color: var(--primary); color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}
.mobile-lang-opt:not(.active):hover { background: var(--canvas-soft); }

/* ── Mobile top action buttons ─────────────────────────────── */
.mobile-top-actions {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
@media (max-width: 768px) {
  .mobile-top-actions { display: flex; }
}
@media (max-width: 380px) {
  .mobile-top-actions { display: none; }
}

.mobile-top-lang { position: relative; }

.mobile-top-lang-btn,
.mobile-top-theme-btn,
.mobile-top-dl-btn,
.mobile-top-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--ink); text-decoration: none;
  transition: background 0.15s;
}
.mobile-top-lang-btn:hover,
.mobile-top-theme-btn:hover,
.mobile-top-dl-btn:hover,
.mobile-top-search-btn:hover { background: var(--canvas-soft); }
.mobile-top-lang-btn .flag-icon { border-radius: 2px; }
.mobile-top-theme-btn svg,
.mobile-top-dl-btn svg,
.mobile-top-search-btn svg {
  width: 18px; height: 18px;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Search toggle in mobile top bar — override the desktop bordered style */
.mobile-top-actions .btn-search-toggle { border: none; border-radius: 8px; }

.mobile-top-lang-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 10px; padding: 6px 0;
  width: max-content;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 200; list-style: none; margin: 0;
}
.mobile-top-lang-menu.open { display: block; }
.mobile-top-lang-menu li { list-style: none; }
.mobile-top-lang-menu .nav-lang-item,
.mobile-top-lang-menu .lang-disabled {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.mobile-top-lang-menu .nav-lang-item:hover { background: var(--canvas-soft); }
.mobile-top-lang-menu .nav-lang-item.current { color: var(--primary); }
.mobile-top-lang-menu .lang-disabled { color: var(--muted-soft); cursor: default; }

/* ── Mobile bottom row (lang + theme in hamburger menu) ─────── */
.mobile-bottom-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-menu .mobile-bottom-row .mobile-mode-toggle { border-bottom: none; padding: 0; }

.mobile-menu-lang-wrap { position: relative; }
.mobile-menu-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--hairline);
  border-radius: 20px; padding: 5px 10px;
  font-size: 13px; font-weight: 500; color: var(--body);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.mobile-menu-lang-btn:hover { background: var(--canvas-soft); }
.mobile-menu-lang-btn .flag-icon { border-radius: 2px; }
.mobile-menu-lang-btn svg {
  width: 12px; height: 12px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; transition: transform 0.2s;
}
.mobile-menu-lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobile-menu-lang-list {
  display: none;
  position: absolute; bottom: calc(100% + 6px); left: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 6px 0; width: max-content;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.10);
  z-index: 200; list-style: none; margin: 0;
}
.mobile-menu-lang-list.open { display: block; }
.mobile-menu-lang-list li { list-style: none; }
.mobile-menu .mobile-menu-lang-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: none; white-space: nowrap;
}
.mobile-menu .mobile-menu-lang-list a:hover { background: var(--canvas-soft); }
.mobile-menu .mobile-menu-lang-list a.current { color: var(--primary); }
