/* ══ Ombea Help Guide — Styles ══ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Primary */
  --blue: #0066FF;
  --blue-d: #0052cc;
  --blue-m: #b3d4ff;
  --blue-light: #e7f6ff;

  /* Dark blues */
  --navy: #001a4d;
  --navy2: #002266;
  --navy3: #0033aa;
  /* Sidebar & header */
  --sidebar-bg: #F3F6FB;
  --sidebar-text: #4b5563;
  --sidebar-heading: #1f2937;
  --sidebar-active-bg: rgba(0, 102, 255, 0.08);
  --sidebar-active-text: var(--blue);
  --header-bg: #000;

  /* Status */
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --green-text: #166534;
  --orange: #f59e0b;
  --orange-bg: #fffbeb;
  --orange-text: #92400e;
  --red: #ef4444;

  /* Intent badges */
  --intent-getting-started-bg: #dbeafe;
  --intent-getting-started-text: #1e40af;
  --intent-how-to-bg: #dcfce7;
  --intent-how-to-text: #166534;
  --intent-troubleshooting-bg: #fee2e2;
  --intent-troubleshooting-text: #991b1b;
  --intent-reference-bg: #f3e8ff;
  --intent-reference-text: #6b21a8;

  /* Badge colors */
  --badge-admin-bg: #fef3c7;
  --badge-admin-text: #92400e;
  --badge-premium-bg: #f3e8ff;
  --badge-premium-text: #6b21a8;

  /* Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font: 'Manrope', 'Rethink Sans', system-ui, sans-serif;

  /* ══ Type Scale (Minor Third 1.200) ══ */
  --text-xs:    0.75rem;     /* 12px — metadata, timestamps */
  --text-sm:    0.8125rem;   /* 13px — sidebar, captions */
  --text-base:  1rem;        /* 16px — body */
  --text-md:    1.1875rem;   /* 19px — h4, subtitle */
  --text-lg:    1.4375rem;   /* 23px — h3 */
  --text-xl:    1.75rem;     /* 28px — h2 */
  --text-2xl:   2.0625rem;   /* 33px — h1 */
  --text-3xl:   2.5rem;      /* 40px — hero */

  /* ══ Line Heights ══ */
  --leading-tight:   1.2;    /* hero, h1 */
  --leading-snug:    1.3;    /* h2 */
  --leading-normal:  1.4;    /* h3, h4 */
  --leading-loose:   1.6;    /* small text, UI */
  --leading-relaxed: 1.7;    /* body text */

  /* ══ Letter Spacing ══ */
  --tracking-tighter: -0.025em;  /* h1, hero */
  --tracking-tight:   -0.015em;  /* h2 */
  --tracking-normal:   0;        /* body, h3 */
  --tracking-wide:     0.04em;   /* uppercase labels */

  /* ══ Font Weights ══ */
  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* ══ Semantic Text Colors ══ */
  --text-heading:    var(--gray-800);  /* #1e293b — rubriker (14.5:1 AAA) */
  --text-primary:    var(--gray-700);  /* #334155 — brödtext (10.3:1 AAA) */
  --text-secondary:  var(--gray-600);  /* #475569 — beskrivningar (7.2:1 AAA) */
  --text-tertiary:   var(--gray-500);  /* #64748b — metadata (4.6:1 AA) */
  --text-link:       var(--blue);      /* #0066FF (4.7:1 AA) */
  --text-link-hover: var(--blue-d);    /* #0052cc */

  /* ══ Max Reading Width ══ */
  --measure: 680px;  /* ~65-75 tecken vid 16px Manrope */

  /* Radii */
  --r: 8px;
  --rx: 14px;
  --rl: 18px;
}

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--text-primary);
  font-size: 16px;
  line-height: var(--leading-relaxed);
}

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-link {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-img {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}
.site-header .site-title { font-size: 16px; font-weight: 600; white-space: nowrap; color: #fff; line-height: 1; }
.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,.55); flex: 1;
}
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.contact-support-btn {
  margin-left: auto;
  padding: 6px 16px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.contact-support-btn:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.breadcrumb + .contact-support-btn {
  margin-left: 0;
}
.mobile-menu-btn {
  display: none;
  background: none; border: none; font-size: 22px;
  cursor: pointer; padding: 4px 8px; color: rgba(255,255,255,.8);
}

/* ── Layout ── */
.page-layout {
  max-width: none;
  margin: 0;
  display: flex;
  gap: 0;
  min-height: calc(100vh - 56px);
}

/* ── Sidebar ── */
.sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--gray-200);
  padding: 20px 0;
  overflow-y: auto;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
}
.sidebar-category {
  margin-bottom: 4px;
}
.sidebar-category-title {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--sidebar-heading);
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  gap: 0;
}
.sidebar-category-title .sidebar-chevron {
  margin-left: auto;
}
.sidebar-category-title:hover {
  color: var(--blue);
}
.sidebar-cat-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.sidebar-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebar-chevron {
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sidebar-category.open .sidebar-chevron {
  transform: rotate(45deg);
}
.sidebar-links {
  display: none;
  padding-bottom: 6px;
}
.sidebar-category.open .sidebar-links {
  display: block;
}
.sidebar-support-box {
  margin: 24px 16px 16px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  border-radius: 12px;
  text-align: left;
}
.sidebar-support-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--gray-900);
}
.sidebar-support-text {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
  line-height: 1.4;
}
.sidebar-support-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sidebar-support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
  color: #fff !important;
}
.sidebar-group-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--gray-400);
  padding: 16px 20px 4px;
}
.sidebar-group-header:first-child {
  padding-top: 0;
}
.sidebar-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  padding: 10px 20px 2px 24px;
}
.sidebar-link {
  display: block;
  padding: 7px 16px 7px 28px;
  margin: 1px 12px 1px 12px;
  font-size: 13px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}
.sidebar-link:hover {
  background: #fff;
  color: var(--gray-900);
}
.sidebar-link.active {
  color: var(--sidebar-active-text);
  background: var(--sidebar-active-bg);
  font-weight: 600;
}

/* ── Article ── */
.article {
  flex: 1;
  min-width: 0;
  padding: 48px 48px 120px;
  max-width: 940px;
  margin: 0 auto;
}
.article.landing { max-width: 1040px; }
.article h1 {
  font-size: var(--text-2xl); font-weight: var(--weight-bold); margin-bottom: 8px;
  letter-spacing: var(--tracking-tighter); line-height: var(--leading-tight);
  color: var(--text-heading);
}
.article .subtitle {
  font-size: var(--text-md); color: var(--text-tertiary); margin-bottom: 40px;
  line-height: var(--leading-normal);
}
.article h2 {
  font-size: var(--text-xl); font-weight: var(--weight-semibold); margin: 48px 0 16px;
  letter-spacing: var(--tracking-tight); line-height: var(--leading-snug);
  color: var(--text-heading);
}
.article h3 {
  font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 28px 0 12px;
  letter-spacing: var(--tracking-normal); line-height: var(--leading-normal);
  color: var(--text-heading);
}
.article p {
  font-size: var(--text-base); color: var(--text-primary); margin-bottom: 16px;
  max-width: var(--measure); line-height: var(--leading-relaxed);
}
.article a { color: var(--text-link); text-decoration: none; }
.article a:hover { text-decoration: none; color: var(--text-link-hover); }
.article code {
  background: var(--gray-100); padding: 2px 6px; border-radius: 4px;
  font-size: 13px; font-family: 'SF Mono', 'Consolas', monospace;
}
.article pre {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 16px 0 24px;
}
.article pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
}
.article ul, .article ol { margin-bottom: 16px; padding-left: 20px; }
.article li { font-size: var(--text-base); color: var(--text-primary); margin-bottom: 8px; line-height: var(--leading-relaxed); }
.article li strong { color: var(--text-heading); }


/* ── Blue bullets for all ul in articles ── */
.article ul li { list-style: disc; }
.article ul li::marker { color: var(--blue); }
.prereq-box ul li { list-style: none; }
.prereq-box ul li::marker { color: transparent; }

/* ── Accordion ── */
.accordion {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  background: #fff;
}
.accordion + .accordion { margin-top: -8px; }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item:last-child { border-bottom: none; }
.accordion-toggle {
  width: 100%; background: none; border: none;
  padding: 16px 20px; font-size: 15px; font-weight: 600;
  color: var(--gray-900); text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: background 0.15s; font-family: inherit;
}
.accordion-toggle:hover { background: var(--gray-50); }
.accordion-toggle .icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-toggle .icon { transform: rotate(90deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body {
  max-height: 2000px; padding: 0 20px 16px;
}
.accordion-body p { font-size: 14px; color: var(--gray-700); margin-bottom: 10px; }
.accordion-body ul { padding-left: 20px; margin-bottom: 10px; }
.accordion-body li { font-size: 14px; color: var(--gray-700); margin-bottom: 8px; }

/* ── Tip & Warning ── */
.tip {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--green-text);
}
.warning {
  background: var(--orange-bg);
  border-left: 3px solid var(--orange);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--orange-text);
}

/* ── Prerequisite Box ── */
.prereq-box {
  background: #f8fafc;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 24px 0;
  font-size: 14px;
}
.prereq-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 8px;
}
.prereq-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prereq-box li {
  padding: 4px 0 4px 24px;
  position: relative;
  color: var(--gray-700);
  font-size: 14px;
}
.prereq-box li::before {
  content: '→';
  position: absolute;
  left: 4px;
  color: var(--gray-300);
}
.prereq-box li.prereq-admin::before {
  content: '🔒';
  left: 2px;
}
.prereq-box li.prereq-premium::before {
  content: '✦';
  left: 4px;
  color: var(--orange);
}
.prereq-box a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.prereq-box a:hover {
  text-decoration: underline;
}

/* ── Ordered lists ── */
.article ol {
  counter-reset: step;
  list-style: none;
  padding: 0 0 0 44px;
  margin-bottom: 16px;
}
.article ol li {
  counter-increment: step;
  position: relative;
  list-style: none;
}
.article ol li::before {
  content: counter(step);
  position: absolute; left: -38px; top: 2px;
  width: 26px; height: 26px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
}

/* ── Table ── */
.clean-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.clean-table th {
  text-align: left; padding: 10px 16px;
  background: var(--gray-50); font-weight: 600;
  color: var(--gray-900);
  border-bottom: 2px solid var(--gray-200);
}
.clean-table th:has(.smiley-icon),
.clean-table td:has(.smiley-icon) {
  text-align: center;
}
/* Smiley-only tables: center text cells below smiley headers */
.clean-table:has(th > .smiley-icon:only-child) td {
  text-align: center;
}
.clean-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.clean-table tr:hover td { background: var(--gray-50); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
@media (max-width: 768px) { .table-scroll .clean-table { min-width: 480px; } }

/* ── Smiley icons ── */
.smiley-icon {
  display: inline-block;
  width: 24px; height: 24px;
  vertical-align: middle;
  margin: 0 1px;
}
.clean-table th .smiley-icon,
.clean-table td .smiley-icon {
  width: 28px; height: 28px;
}

/* ── Glossary tooltip ── */
.glossary-term {
  position: relative;
  border-bottom: 1px dashed var(--blue);
  cursor: help;
  color: inherit;
}
.glossary-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  width: 280px;
  text-align: left;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  pointer-events: none;
}
.glossary-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gray-900);
}
.glossary-term:hover .glossary-tooltip,
.glossary-term:focus .glossary-tooltip,
.glossary-term.active .glossary-tooltip {
  display: block;
}

/* ── Track banner ── */
.track-banner {
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 14px;
}
.track-banner-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 4px;
}
.track-label {
  display: block;
  text-align: center;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 10px;
}
.track-label:hover { text-decoration: underline; }
.track-progress { color: var(--gray-600); font-size: 13px; }
.track-dismiss {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--gray-500); padding: 0; line-height: 1;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
.track-dismiss:hover { color: var(--gray-800); }
.track-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.track-nav-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  color: var(--blue) !important;
  background: #fff;
  border: 1px solid #bfdbfe;
  transition: background 0.15s;
}
.track-nav-btn:hover {
  background: #dbeafe;
}
.track-nav-next { margin-left: auto; }
.track-banner.completed {
  background: var(--green-bg);
  border-color: #bbf7d0;
}
.track-banner.completed .track-label {
  color: var(--green-text);
}
.track-sentinel { height: 1px; }

/* ── Hero section ── */
.hero {
  background: linear-gradient(140deg, var(--navy3), var(--blue-d), var(--blue));
  padding: 56px 48px 48px;
  margin: 0 0 40px;
  text-align: center;
  border-radius: var(--rl);
  box-shadow: 0 10px 30px rgba(0, 51, 170, 0.18);
}
.hero h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
}
.hero .hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  margin-bottom: 28px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero .search-box input {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  max-width: 520px;
  border-radius: var(--rx);
}
.hero .search-box input::placeholder {
  color: rgba(255,255,255,.45);
}
.hero .search-box input:focus {
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* ── Contact banner ── */
.contact-banner {
  background: linear-gradient(135deg, var(--navy), var(--blue-d), var(--blue));
  border-radius: var(--rl);
  padding: 40px 36px;
  margin-top: 56px;
  text-align: center;
  color: #fff;
}
.contact-banner h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.contact-banner p {
  color: rgba(255,255,255,.6);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: none;
}
.contact-banner-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.contact-banner-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.contact-banner-btn.primary {
  background: #fff;
  color: var(--navy);
}
.contact-banner-btn.primary:hover {
  background: rgba(255,255,255,.9);
}
.contact-banner-btn.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.contact-banner-btn.secondary:hover {
  background: rgba(255,255,255,.2);
}

/* ── Landing page ── */
.search-box {
  margin-bottom: 32px;
  position: relative;
}
#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 50;
  margin-top: 4px;
  overflow: hidden;
}
.search-result-item {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--blue-light); }
.search-result-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
}
.search-result-meta {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.search-result-subtitle {
  display: block;
  font-size: 13px;
  color: var(--gray-700);
  margin-top: 2px;
}
.search-no-results {
  padding: 16px 18px;
  color: var(--gray-500);
  font-size: 14px;
}
.search-box input {
  width: 100%;
  max-width: 480px;
  padding: 12px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.category-grid, .article-grid, .track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.category-card, .article-card, .track-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--rx);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.category-card:hover, .article-card:hover, .track-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}
.category-card h2 { font-size: 18px; margin-bottom: 4px; }
.category-card p { font-size: 14px; color: var(--gray-500); }
.article-card h3 { font-size: 16px; margin-bottom: 4px; }
.article-card p { font-size: 14px; color: var(--gray-500); margin: 0; }
.article-card-intent {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--tracking-wide); margin-bottom: 8px; display: inline-block;
  padding: 2px 8px; border-radius: 4px;
}
.article-card-intent.getting-started { background: var(--intent-getting-started-bg); color: var(--intent-getting-started-text); }
.article-card-intent.how-to { background: var(--intent-how-to-bg); color: var(--intent-how-to-text); }
.article-card-intent.troubleshooting { background: var(--intent-troubleshooting-bg); color: var(--intent-troubleshooting-text); }
.article-card-intent.reference { background: var(--intent-reference-bg); color: var(--intent-reference-text); }

.tracks-section { margin-top: 48px; }
.tracks-section h2 { font-size: 22px; margin-bottom: 4px; }
.tracks-section > p { color: var(--gray-500); margin-bottom: 16px; }
.track-card { text-align: center; }
.track-card-icon {
  display: block;
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  filter: brightness(0) saturate(100%) invert(30%) sepia(93%) saturate(1700%) hue-rotate(213deg) brightness(97%) contrast(93%);
}
.track-card h3 { font-size: 16px; margin-bottom: 4px; }
.track-card p { font-size: 13px; color: var(--gray-500); margin: 0 0 12px; }

/* Track page icon */
.track-page-icon {
  display: block;
  width: 64px; height: 64px;
  margin-bottom: 16px;
  filter: brightness(0) saturate(100%) invert(30%) sepia(93%) saturate(1700%) hue-rotate(213deg) brightness(97%) contrast(93%);
}

/* ── FAQ section ── */
.faq-section { margin-top: 48px; }
.faq-section h2 { font-size: 22px; margin-bottom: 16px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.faq-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--gray-800);
  font-size: 14px;
  transition: all 0.15s;
}
.faq-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateX(4px);
}
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue);
}
.faq-icon svg {
  width: 100%;
  height: 100%;
}

/* ── Entrance animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.landing h1, .landing .subtitle, .search-box {
  animation: fadeInUp 0.4s ease-out both;
}
.landing .subtitle { animation-delay: 0.05s; }
.search-box { animation-delay: 0.1s; }
.category-card, .track-card, .faq-card {
  animation: fadeInUp 0.4s ease-out both;
}
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.15s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.25s; }
.category-card:nth-child(5) { animation-delay: 0.3s; }
.category-card:nth-child(6) { animation-delay: 0.35s; }
.category-card:nth-child(7) { animation-delay: 0.4s; }
.track-card:nth-child(1) { animation-delay: 0.15s; }
.track-card:nth-child(2) { animation-delay: 0.2s; }
.track-card:nth-child(3) { animation-delay: 0.25s; }
.track-card:nth-child(4) { animation-delay: 0.3s; }

/* ── Article page animations ── */
.article h1 { animation: fadeInUp 0.3s ease-out both; }
.article .subtitle { animation: fadeInUp 0.3s ease-out 0.05s both; }
.accordion-item {
  animation: fadeInUp 0.3s ease-out both;
}
.accordion-body {
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
}
.track-progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}
.track-progress-bar .fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ── Track steps page ── */
.track-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
}
.track-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-900);
  transition: background 0.15s, border-color 0.15s;
}
.track-step:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}
.track-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.track-step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.track-step-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}
.track-step-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}
.track-step-chevron {
  font-size: 20px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.track-step-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  position: relative;
  display: none;
}
.track-step.completed .track-step-number {
  background: var(--green);
}
.track-step.completed .track-step-check {
  border-color: var(--green);
  background: var(--green);
}
.track-step.completed .track-step-check::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.progress-label {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
  text-align: center;
}
.track-intro {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 16px;
}
.track-start {
  text-align: center;
  margin: 24px 0 8px;
}
.track-start-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blue);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.track-start-btn:hover { background: #1d4ed8; }

/* ── Horizontal rules ── */
.article hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 32px 0;
}

/* ── Related articles ── */
.related-articles {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.related-grid {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.related-card:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .table-scroll {
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .mobile-menu-btn { display: block; margin-left: auto; }
  .breadcrumb { display: none; }
  .contact-support-btn { display: none; }
  .mobile-search-btn { display: flex; }
  .sidebar {
    position: fixed;
    top: 56px; left: 0; bottom: 0;
    width: 100vw;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 99;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  }
  .sidebar.open { transform: translateX(0); }
  .article {
    padding: 24px 16px 80px;
  }
  .article h1 { font-size: var(--text-xl); }
  .article h2 { font-size: var(--text-lg); margin-top: 36px; }
  .category-grid, .article-grid, .track-grid {
    grid-template-columns: 1fr;
  }
  .glossary-tooltip {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    top: auto;
    transform: none;
    width: auto;
  }
  .glossary-tooltip::after { display: none; }
}

@media (max-width: 480px) {
  .article { padding: 16px 12px 64px; }
  .article h1 { font-size: var(--text-lg); }
  .article h2 { font-size: var(--text-md); }
  .article .subtitle { font-size: var(--text-base); }
  .search-box input { font-size: 14px; padding: 10px 14px; }
  #search-results { max-width: 100%; }
  .faq-grid { grid-template-columns: 1fr; }
  .kb-highlight-grid { grid-template-columns: 1fr; }
  .track-card { padding: 16px; }
  .track-nav-btn { font-size: 13px; }
  .article ol { padding-left: 36px; }
  .clean-table { font-size: 13px; }
  .site-header .inner { padding: 0 12px; }
  .site-header .site-title { font-size: 16px; }
}

/* ── Inline Badges (Admin / Premium) ── */
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  letter-spacing: 0.02em;
}
.badge-admin {
  background: var(--badge-admin-bg);
  color: var(--badge-admin-text);
}
.badge-premium {
  background: var(--badge-premium-bg);
  color: var(--badge-premium-text);
}

/* ── Entry Cards ── */
.entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.entry-cards-secondary {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.entry-cards-secondary .entry-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
}
.entry-cards-secondary .entry-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.entry-cards-secondary .entry-card-label {
  display: none;
}
.entry-cards-secondary .entry-card h3 {
  margin: 0 0 2px 0;
  font-size: 17px;
}
.entry-cards-secondary .entry-card p {
  margin: 0;
  font-size: 14px;
}
.entry-card-icon-large {
  width: 52px !important;
  height: 52px !important;
}
.entry-card-icon-large svg, .entry-card-icon-large img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain;
}
.entry-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--rl);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.entry-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}
.entry-card-new {
  background: #fff;
  border-color: var(--gray-200);
}
.entry-card-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.entry-card-browse .entry-card-label {
  color: var(--gray-700);
  background: var(--gray-100);
}
.entry-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.entry-card-new .entry-card-icon {
  background: rgba(0, 102, 255, 0.12);
  color: var(--blue);
}
.entry-card-browse .entry-card-icon {
  background: var(--gray-100);
  color: var(--gray-500);
}
.entry-card-icon svg, .entry-card-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.entry-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.entry-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}
@media (max-width: 480px) {
  .entry-cards { grid-template-columns: 1fr; }
  .entry-cards-secondary .entry-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 10px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  margin-bottom: 16px;
  transition: all 0.15s;
}
.back-link:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}
.bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
}
.back-link-bottom {
  margin-top: 0;
  margin-bottom: 0;
}
.next-link {
  background: var(--blue);
  color: #fff !important;
  border-color: var(--blue);
}
.next-link:hover {
  background: var(--blue-d);
  border-color: var(--blue-d);
}

/* ── Role Cards (New to Ombea page) ── */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.role-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--rl);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
a.role-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.role-card-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.role-card-admin .role-card-label {
  color: var(--orange-text);
  background: var(--orange-bg);
}
.role-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.role-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}
.role-admin-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.role-product-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--rx);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  background: var(--gray-50);
}
.role-product-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.role-product-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 3px;
}
.role-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.role-user-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 18px;
}
.role-user-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-700);
}
.role-user-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.role-user-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.role-admin-section {
  margin-top: 16px;
}
.role-admin-learn-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--blue-m);
  border-radius: var(--rx);
  background: linear-gradient(130deg, var(--blue-light), #d4eaff);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.role-admin-learn-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.12);
}
.role-admin-learn-btn svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.role-admin-learn-btn strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.role-admin-learn-btn span {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
}
.role-admin-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.role-admin-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.role-admin-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 20px 0 4px;
}
.role-admin-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-task-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  background: #fff;
  transition: all 0.15s;
}
.role-task-btn svg {
  color: var(--blue);
  flex-shrink: 0;
}
.role-task-btn:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
@media (max-width: 480px) {
  .role-cards { grid-template-columns: 1fr; }
}

/* ── Role Selector ── */
.role-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.role-btn {
  padding: 10px 28px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
}
.role-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.role-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── Landing page: track sections ── */
.tracks-section .track-group {
  margin-bottom: 32px;
}
.tracks-section .track-group-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-800);
}
.tracks-section .track-group-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* ── Sidebar sections (top-level collapsible) ── */
.sidebar-section {
  margin-bottom: 4px;
}
.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}
.sidebar-section-title:hover {
  background: var(--gray-50);
}
.sidebar-section-body {
  display: none;
  padding-bottom: 8px;
}
.sidebar-section.open .sidebar-section-body {
  display: block;
}
.sidebar-section .sidebar-chevron {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sidebar-section.open .sidebar-chevron {
  transform: rotate(45deg);
}
.sidebar-qa-link {
  display: block;
  padding: 5px 20px 5px 28px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar-qa-link:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}
.sidebar-qa-link.active {
  color: var(--blue);
  border-left-color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}
.sidebar-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-step.active .sidebar-step-num {
  background: var(--blue);
  color: #fff;
}
.sidebar-back {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
}
.sidebar-back a {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
}
.sidebar-back a:hover {
  color: var(--blue);
}

/* ── KB icon cards (landing page) ── */
.kb-section {
  margin-top: 48px;
}
.kb-section h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.kb-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.kb-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kb-icon-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--rx);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.15s;
  animation: fadeInUp 0.4s ease-out both;
}
.kb-icon-card:nth-child(1) { animation-delay: 0.1s; }
.kb-icon-card:nth-child(2) { animation-delay: 0.13s; }
.kb-icon-card:nth-child(3) { animation-delay: 0.16s; }
.kb-icon-card:nth-child(4) { animation-delay: 0.19s; }
.kb-icon-card:nth-child(5) { animation-delay: 0.22s; }
.kb-icon-card:nth-child(6) { animation-delay: 0.25s; }
.kb-icon-card:nth-child(7) { animation-delay: 0.28s; }
.kb-icon-card:nth-child(8) { animation-delay: 0.31s; }
.kb-icon-card:nth-child(9) { animation-delay: 0.34s; }
.kb-icon-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}
.kb-icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
}
.kb-icon svg, .kb-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kb-icon-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}
@media (max-width: 768px) {
  .kb-icon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .kb-icon-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Article Breadcrumb (in-content) ── */
.article-breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.article-breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.article-breadcrumb .separator {
  margin: 0 6px;
  color: var(--gray-300);
}

/* ── Noscript fallback ── */
noscript .accordion-body {
  max-height: none !important;
  padding: 0 20px 16px !important;
}

/* ── Header Search (global) ── */
.header-search {
  position: relative;
  margin-left: auto;
  flex: 0 1 360px;
}
.header-search input {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(255,255,255,.15);
  color: #fff;
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.6); }
.header-search input:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.22); }
.header-search #search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 400px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 4px;
  z-index: 200;
}
@media (max-width: 768px) {
  .header-search { display: none; }
}

/* ── Mobile search button & overlay ── */
.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 4px;
}
.mobile-search-btn:hover { color: #fff; }
.mobile-search-overlay {
  background: var(--header-bg);
  padding: 8px 16px 12px;
  position: sticky;
  top: 53px;
  z-index: 99;
}
.mobile-search-overlay input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255,255,255,.12);
  color: #fff;
  outline: none;
}
.mobile-search-overlay input::placeholder { color: rgba(255,255,255,.5); }
.mobile-search-overlay input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.18); }
.mobile-search-overlay #mobile-search-results {
  margin-top: 4px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  max-height: 60vh;
  overflow-y: auto;
}

/* ── Skip Link + Focus Visible ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Article Feedback ── */
.article-feedback {
  margin-top: 48px;
  padding: 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--rx);
  text-align: center;
}
.article-feedback p {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 auto 12px;
}
.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.feedback-btn {
  padding: 8px 24px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  transition: all 0.15s;
}
.feedback-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.feedback-thanks {
  color: var(--green-text) !important;
  font-weight: 600 !important;
}