/* Takvion — shared component styles
   "Modern Institutionalism": tonal layers, low-contrast outlines, soft 4px shapes. */

:root {
  --primary: #17174a;
  --secondary: #6d5cf5;
  --gold: #7c6cff;
  --outline: #767488;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Hanken Grotesk", sans-serif;
  background-color: #f7f7fc;
  color: #17162b;
}

h1, h2, h3, h4, h5, h6 { font-family: "Inter", sans-serif; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}
.msym-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* "Medical Glow" — very large, soft, low-opacity navy blur on hover */
.medical-glow { transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.medical-glow:hover {
  box-shadow: 0 0 24px rgba(109, 92, 245, 0.14);
  border-color: rgba(109, 92, 245, 0.45);
}

/* Card with technical "active" top border in Takvion violet.
   !important so it wins over Tailwind's border-color utilities on the same element. */
.card-active { border-top: 2px solid var(--secondary) !important; }

.text-premium { color: var(--gold); }
.border-premium { border-color: var(--gold); }
.link-premium {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity .2s ease;
}
.link-premium:hover { opacity: .75; }

/* Minimalist input: no fill, 1px bottom border, teal on focus */
.input-minimal {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(23, 23, 74, 0.2);
  border-radius: 0;
  padding: 8px 0;
  width: 100%;
  transition: border-color .2s ease;
}
.input-minimal::placeholder { color: rgba(25, 28, 29, 0.35); }
.input-minimal:focus {
  outline: none;
  box-shadow: none;
  border-bottom: 1px solid var(--secondary);
}

/* Header transition on scroll */
.site-header { transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(23, 23, 74, 0.06), 0 8px 24px rgba(23, 23, 74, 0.04); }

/* Nav underline */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--secondary);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--secondary); font-weight: 700; }
.nav-link.is-active::after { width: 100%; }

/* Mobile menu */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-menu.open { max-height: 420px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Data table — no vertical rules, faint hover */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; }
.data-table thead th {
  font: 700 12px/1 "Hanken Grotesk", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #454358;
  border-bottom: 1px solid rgba(23, 23, 74, 0.12);
}
.data-table tbody tr { border-bottom: 1px solid rgba(23, 23, 74, 0.05); }
.data-table tbody tr:hover { background: #f7f7fc; }

/* KPI trend chips */
.trend-up { color: var(--secondary); }
.trend-down { color: #ba1a1a; }

/* Focus visibility for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Long-form article body */
.article { max-width: 44rem; }
.article > * + * { margin-top: 1.4rem; }
.article p,
.article li { font-size: 18px; line-height: 1.75; color: #454358; }
.article h2 {
  font-family: "Inter", sans-serif;
  font-size: 24px; font-weight: 600; line-height: 1.3;
  color: #17174a;
  margin-top: 3rem;
}
.article h3 {
  font-family: "Inter", sans-serif;
  font-size: 19px; font-weight: 700; line-height: 1.4;
  color: #17174a;
  margin-top: 2rem;
}
.article ul, .article ol { padding-left: 1.35rem; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-top: .5rem; }
.article li::marker { color: var(--secondary); }
.article strong { color: #17174a; font-weight: 700; }
.article a { color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }
.article blockquote {
  border-left: 3px solid var(--secondary);
  padding-left: 1.35rem;
  margin: 2.5rem 0;
  font-family: "Inter", sans-serif;
  font-size: 22px; line-height: 1.5; font-weight: 600;
  color: #17174a;
}
.article hr { border: 0; border-top: 1px solid rgba(23, 23, 74, 0.12); margin: 3rem 0; }
.article figure figcaption {
  font-size: 13px; color: #767488; margin-top: .6rem; text-align: center;
}
