/* Agrolytica — design system */

/* Self-hosted Inter (see site-src/assets/fonts.css / scripts/fetch-inter-font.py
   -- was loaded from fonts.googleapis.com, which sends every visitor's IP
   to Google on every page view). Prepended here rather than as a separate
   stylesheet so it rides the existing style.css cache-busting hash. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Self-hosted Fraunces (see scripts/fetch-fraunces-font.py) -- a serif
   display accent used sparingly (currently only the /kpi/ landing intro)
   for an editorial, advisory-firm register. Inter stays the workhorse
   everywhere else; this is never body text. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0d14;
  --bg-alt: #10141f;
  --surface: #1b2338;
  --surface-2: #232d47;
  --border: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --text-dim: #d7dbe9;
  --text-faint: #99a0b8;
  --accent: #2f6fed;
  --accent-bright: #5b8ef5;
  --accent-2: #ff7a30;
  --accent-contrast: #1a1006;
  --radius: 14px;
  --max: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);

  /* Fixed dark values, never redefined by body.theme-light below -- for the
     handful of components (the /kpi/ landing hero's product-window mockup,
     its closing CTA band) that stay dark on purpose as accent moments on an
     otherwise light page, the same way the nav and footer stay dark. */
  --dark-panel-bg-alt: #10141f;
  --dark-panel-surface: #1b2338;
  --dark-panel-surface-2: #232d47;
  --dark-panel-border: rgba(255, 255, 255, 0.14);
  --dark-panel-text: #eef1f7;
  --dark-panel-text-dim: #d7dbe9;
  --dark-panel-text-faint: #99a0b8;
  --dark-panel-accent-bright: #5b8ef5;
  --dark-panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Light theme (long-form pages: /kpi/, /blog/) ----------
   The site's identity is dark (see body default above). Pages that are
   mostly reference/reading content — the KPI catalog and the blog — flip
   to light by redefining the same tokens on <body class="theme-light">,
   so every component that already reads var(--surface)/var(--text)/etc.
   adapts automatically. Nav and footer re-pin the dark tokens so they
   stay a constant dark thread across the whole site regardless of page
   theme, matching how thereportinghub.com bookends light content pages
   with a dark nav/footer. */
body.theme-light {
  --bg: #eef1f6;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --border: rgba(10, 14, 26, 0.1);
  --text: #10141f;
  --text-dim: #4a5163;
  --text-faint: #7a8194;
  --accent: #1d4ed8;
  --accent-bright: #1d4ed8;
  --shadow: 0 1px 2px rgba(10, 14, 26, 0.06), 0 8px 24px rgba(10, 14, 26, 0.08);
}
body.theme-light .nav,
body.theme-light .footer {
  --bg: #0a0d14;
  --bg-alt: #10141f;
  --surface: #1b2338;
  --surface-2: #232d47;
  --border: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --text-dim: #d7dbe9;
  --text-faint: #99a0b8;
  --accent: #2f6fed;
  --accent-bright: #5b8ef5;
}
body.theme-light .footer { background: var(--bg); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; color: var(--text-dim); }
.lead { font-size: 1.2rem; color: var(--text-dim); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout helpers ---------- */

.section { padding: 30px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.max-width-content { max-width: 680px; margin: 0 auto; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 24px 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent-2);
  color: var(--accent-contrast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 6px 16px rgba(255,122,48,0.18);
}
.btn-primary:hover { opacity: 0.96; box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 12px 28px rgba(255,122,48,0.28); }
/* FoodBevKPiIs green, same weight/size as .btn-primary -- used where the
   KPI packs offer needs to sit as a real co-equal option next to
   Agrolytica's own consulting services, not a de-emphasized link. */
.btn-foodbevkpis {
  background: #6aae2a;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 6px 16px rgba(106,174,42,0.25);
}
.btn-foodbevkpis:hover { opacity: 0.96; box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 12px 28px rgba(106,174,42,0.35); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text-dim); background: var(--bg-alt); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0d14;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.nav.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo svg, .logo img { flex-shrink: 0; }
.logo-icon { display: block; }
.logo-text span { color: #e07a35; }
/* FoodBevKPIs brand override -- real leaf green sampled from the shipped
   pack logo (each released pack's Kit folder PDFs), set on the body tag
   by site-src/build.js when SITE_TARGET=foodbevkpis. */
body.brand-foodbevkpis .logo-text span { color: #6aae2a; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  position: relative;
  display: flex;
  gap: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.lang-switch a:hover:not(.active) { color: var(--text); }
.lang-switch a.active {
  color: var(--text);
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 3px 8px rgba(47,111,237,0.35);
}
.lang-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  z-index: 60;
  animation: lang-tooltip-in 0.15s ease;
}
.lang-tooltip-fr, .lang-tooltip-en { display: block; }
.lang-tooltip-en {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 400;
  font-style: italic;
}
.lang-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
@keyframes lang-tooltip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-toggle { display: none; }

.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

/* ---------- Nav dropdown ("Offre") ---------- */

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-dropdown-trigger svg { transition: transform 0.15s ease; }
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--text); }
.nav-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 180px;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu a { padding: 9px 12px; border-radius: 8px; }
.nav-dropdown-menu a:hover { background: var(--bg-alt); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: flex; }

@media (max-width: 1040px) {
  .nav-dropdown-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    margin-top: 10px;
    background: transparent;
  }
  .nav-dropdown.is-open .nav-dropdown-trigger svg { transform: none; }
}

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    padding: 6px 10px;
    cursor: pointer;
  }
  .nav-right .btn-primary { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 60px 0 25px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(47, 111, 237, 0.18), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 122, 48, 0.14), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero p.lead { margin: 22px auto 34px; max-width: 620px; }
.hero-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--text-dim); }
.hero-bullets svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.hero .btn-row { justify-content: center; }

/* centered hero with a smaller illustration underneath the intro (services hub) */
.hero-flow { margin-top: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-flow svg { width: 100%; height: auto; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25), 0 16px 32px rgba(0,0,0,0.3); }
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(47,111,237,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card .use-case {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Tech band ---------- */

.tech-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.tech-pill {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
}

/* ---------- Stats ---------- */

.stat {
  text-align: center;
  padding: 8px;
}
.stat .n {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-bright);
}
.stat .l { font-size: 0.88rem; color: var(--text); margin-top: 6px; }

.kpi-family { margin-top: 40px; }
.kpi-family:first-of-type { margin-top: 40px; }
.kpi-family-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.kpi-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
@media (max-width: 640px) {
  .kpi-family-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--accent);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
}
.cta-band h2, .cta-band p { color: #ffffff; }
.cta-band p { opacity: 0.92; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.cta-band .btn-primary {
  background: #ffffff;
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h4 { color: var(--text); font-size: 0.85rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); margin-bottom: 8px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--text); }
.footer-col a.logo { display: inline-flex; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header { padding: 72px 0 48px; text-align: center; }
.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-header .lead { max-width: 640px; margin: 18px auto 0; }
/* The section right after a page header already gets its breathing room
   from the header's own bottom padding — without this, the section's
   top padding stacks on top of it (48px + 64/96px) for a bloated gap. */
.page-header + .section,
.page-header + .section-tight { padding-top: 0; }

/* ---------- Numbered service rows (services page) ---------- */

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-faint);
  opacity: 0.5;
}
@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Blog ---------- */

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25), 0 16px 32px rgba(0,0,0,0.3); }
.post-card .thumb { display: block; width: 100%; aspect-ratio: 600 / 260; }
.post-card .thumb svg { width: 100%; height: 100%; display: block; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .tag { color: var(--accent-bright); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 a:hover { color: var(--accent-bright); }
.post-card .byline { font-size: 0.82rem; color: var(--text-dim); }
.post-card .read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--accent-bright); margin-top: auto; }

/* featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.featured-post .thumb { aspect-ratio: auto; height: 100%; min-height: 260px; }
.featured-post .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.featured-post .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured-post .tag { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.featured-post h2 { font-size: 1.5rem; }
@media (max-width: 780px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .thumb { aspect-ratio: 600/260; min-height: 0; }
  .featured-post .body { padding: 28px; }
}

/* category filter pills */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 40px; }
.blog-filters .pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
}
.blog-filters .pill.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.guide-type-filters .pill { font-family: inherit; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.guide-type-filters .pill:hover:not(.active) { border-color: var(--text-dim); }
.guide-grid .guide-card.is-hidden { display: none; }

/* newsletter band */
.newsletter-band {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-band form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-band input[type="email"] {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font);
  min-width: 240px;
}

/* article table of contents (auto-extracted from h2 headings) */
.article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.article-toc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.article-toc[open] summary::before { transform: rotate(45deg); }
.article-toc ul {
  list-style: none;
  margin: 14px 0 0;
  padding-left: 0;
  columns: 1;
}
.article-toc li { margin-bottom: 8px; font-size: 0.92rem; }
.article-toc a { color: var(--text-dim); text-decoration: none; }
.article-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 640px) {
  .article-toc ul { columns: 2; column-gap: 24px; }
}

/* article header image + byline */
.article-thumb { aspect-ratio: 600/260; border-radius: 16px; overflow: hidden; margin: 0 auto 40px; max-width: 720px; }
.article-thumb svg { width: 100%; height: 100%; display: block; }
.article-byline { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--text-faint); font-size: 0.88rem; margin-top: 14px; }
.article-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.article {
  max-width: 720px;
  margin: 0 auto;
}
.article h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.5rem; }
.article h3 { margin-top: 28px; margin-bottom: 10px; }
.article p { margin-bottom: 18px; font-size: 1.02rem; }
.article ul, .article ol { color: var(--text-dim); padding-left: 22px; margin-bottom: 18px; }
.article li { margin-bottom: 8px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}
.article th, .article td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article th { color: var(--text); background: var(--surface); }
.article td { color: var(--text-dim); }
.article .meta { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 8px; }

/* ---------- Contact ---------- */

.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px;
}
.contact-card::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  right: -100px; top: -130px;
  background: rgba(47, 111, 237, 0.18);
  filter: blur(60px);
  pointer-events: none;
}
.contact-card::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  left: -90px; bottom: -110px;
  background: rgba(255, 122, 48, 0.1);
  filter: blur(60px);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-card { padding: 32px 24px; } }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text-faint); margin: 6px 0 18px; }
.form-consent input { margin-top: 3px; flex-shrink: 0; }
.form-consent a { color: var(--text-dim); text-decoration: underline; }
.form-turnstile { margin: 4px 0 18px; }
.form-feedback { font-size: 0.88rem; margin: 14px 0 0; min-height: 1.2em; }
.form-feedback:empty { margin: 0; }
.form-feedback[data-state="sending"] { color: var(--text-faint); }
.form-feedback[data-state="success"] { color: #14a869; }
.form-feedback[data-state="error"] { color: #e0554f; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}

/* ---------- Service detail pages ---------- */

.service-hero {
  padding: 88px 0 56px;
  text-align: center;
}
.service-hero .icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(47,111,237,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.service-hero .icon-badge svg { width: 30px; height: 30px; }
.service-hero .lead { max-width: 640px; margin: 16px auto 0; }
.service-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.service-hero .breadcrumb a { color: var(--text-dim); }
.service-hero .breadcrumb a:hover { color: var(--accent-bright); }

.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step-item:last-child { border-bottom: none; }
.step-item::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step-item p { font-size: 0.95rem; }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.checklist-item .tick {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist-item span { font-size: 0.94rem; color: var(--text-dim); }

.kpi-chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.kpi-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(47,111,237,0.1);
  color: var(--text);
  border: 1px solid var(--border);
}

.services-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) { .services-hub-grid { grid-template-columns: 1fr; } }
.service-hub-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-hub-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25), 0 16px 32px rgba(0,0,0,0.3); }
.service-hub-card .icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(47,111,237,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.service-hub-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-hub-card p { font-size: 0.92rem; }
.service-hub-card .read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.86rem; font-weight: 600; color: var(--accent-bright); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * {
  animation: reveal-fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.03s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 0.33s; }
@keyframes reveal-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Why-us cards (icon treatment, matches other card grids) ---------- */

.why-card {
  padding: 8px;
}
.why-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(47,111,237,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: transform 0.2s ease;
  font-size: 1rem;
}
.faq-item[open] summary .plus { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }
.faq-item p { margin-top: 14px; font-size: 0.95rem; }

/* ---------- Related services ---------- */

.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-services.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .related-services.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .related-services { grid-template-columns: 1fr; } }
.related-service-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related-service-card .icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(47,111,237,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.related-service-card span.label { font-weight: 600; font-size: 0.94rem; }

/* ---------- Implementation Packs landing intro (/kpi/, before #browse) ----------
   Product-marketing register, closer to the rest of the (dark, gradient-
   accented) design system than a plain text page -- a hero product mockup,
   icon cards, a comparison table and a dimensional-model diagram instead of
   flat prose, plus a serif display accent (Fraunces, self-hosted, see
   style.css's top) for numerals and stat call-outs. Scoped under .pack-* so
   it never touches the .card/.checklist/.cta-band components other pages
   rely on. The whole /kpi/ page runs the site's default dark theme (see
   buildKpiIndex in build.js) so this reads as one continuous page, not a
   light insert. */

.pack-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.pack-kicker::before { content: ''; width: 34px; height: 1px; background: var(--kicker-color, var(--accent-2)); flex-shrink: 0; }
.text-center .pack-kicker { justify-content: center; }

.pack-section-head { margin-bottom: 36px; max-width: 720px; }
.pack-section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.pack-section-head p { margin-top: 10px; font-size: 1.02rem; color: var(--text-dim); }
.text-center.pack-section-head { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.pack-hero { padding: 68px 0 56px; }
.pack-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pack-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.pack-hero .serif { font-family: var(--font-serif); font-weight: 500; font-style: normal; color: var(--accent-2); }
.pack-hero .lead { margin-top: 20px; max-width: 520px; font-size: 1.08rem; }
.pack-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pack-hero-note { display: flex; align-items: center; gap: 9px; color: var(--text-faint); font-size: 0.85rem; margin-top: 22px; }
.pack-hero-note .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-2); display: flex; }
.pack-hero-note .icon svg { width: 100%; height: 100%; }

/* Sister-brand pointer to Agrolytica in the FoodBevKPiIs hero -- replaces
   a plain nav text link that made the nav too crowded (6 items). Uses
   Agrolytica's own orange (#e07a35, see logo-text span override) so it
   reads as "the other brand", not a third FoodBevKPiIs action; kept
   small/secondary on purpose -- this is a one-off self-serve buyer
   discovering consulting exists, not two equal offers. */
.hero-sister-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(224, 122, 53, 0.35);
  background: rgba(224, 122, 53, 0.08);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-sister-pill:hover { border-color: #e07a35; background: rgba(224, 122, 53, 0.14); transform: translateY(-1px); }
.hero-sister-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #e07a35; flex-shrink: 0; }
.hero-sister-pill svg { color: #e07a35; flex-shrink: 0; width: 14px; height: 14px; }

/* Trust/E-E-A-T byline on KPI pages -- who reviewed this content and when,
   same pattern as a reputable glossary or reference page uses. */
.kpi-byline { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 0.82rem; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.kpi-byline .icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); display: flex; }
.kpi-byline .icon svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .pack-hero-grid { grid-template-columns: 1fr; }
  .pack-hero .lead { max-width: 600px; }
}

/* ---- Product-window mockup ----
   Deliberately locked to the fixed --dark-panel-* tokens (not the
   page's own var(--surface)/var(--text)/etc, which now flip light on
   this page) -- this stays a dark accent panel on purpose, same idea
   as the nav/footer staying dark regardless of page theme. */
.pack-window-wrap { position: relative; }
.pack-window-glow { position: absolute; inset: 12% 6%; background: radial-gradient(circle, rgba(47,111,237,0.32), transparent 70%); filter: blur(60px); z-index: -1; }
.pack-window { background: linear-gradient(180deg, var(--dark-panel-surface-2), var(--dark-panel-surface)); border: 1px solid var(--dark-panel-border); border-radius: 20px; box-shadow: var(--dark-panel-shadow); overflow: hidden; }
.pack-window-top { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--dark-panel-border); background: rgba(255,255,255,0.02); }
.pack-window-dots { display: flex; gap: 6px; }
.pack-window-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.pack-window-label { font-size: 0.72rem; color: var(--dark-panel-text-faint); }
.pack-window-body { padding: 22px; }
.pack-window-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pack-window-head h3 { font-size: 1rem; margin: 0; color: var(--dark-panel-text); }
.pack-window-status { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em; color: var(--accent-2); background: rgba(255,122,48,0.12); padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,122,48,0.25); white-space: nowrap; }
.pack-window-rows { display: grid; gap: 9px; }
.pack-window-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--dark-panel-border); border-radius: 12px; background: rgba(255,255,255,0.02); }
.pack-window-row .icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(47,111,237,0.16); color: var(--dark-panel-accent-bright); }
.pack-window-row .icon svg { width: 16px; height: 16px; }
.pack-window-row-title { display: block; font-weight: 650; font-size: 0.82rem; color: var(--dark-panel-text); }
.pack-window-row-sub { display: block; font-size: 0.72rem; color: var(--dark-panel-text-faint); margin-top: 1px; }
.pack-window-check { color: var(--accent-2); font-weight: 800; }
.pack-window-stats { margin-top: 14px; border: 1px solid var(--dark-panel-border); border-radius: 14px; padding: 14px; background: var(--dark-panel-bg-alt); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pack-window-stat { text-align: center; }
.pack-window-stat b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1rem; color: var(--dark-panel-text); }
.pack-window-stat span { display: block; font-size: 0.6rem; color: var(--dark-panel-text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }
@media (max-width: 900px) { .pack-window { max-width: 560px; margin: 0 auto; } }
@media (max-width: 480px) { .pack-window-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Section sub-nav (jump links + scroll-spy, see main.js) ----
   Sticks right under the main .nav (75px tall) once scrolled past the
   hero -- no autoplay, no hidden content, just orientation on a long
   page. Horizontal scroll here is a manual, compact tab strip (not the
   "carousel" pattern that was rejected for the sections themselves).
   scroll-margin-top on every anchor target below keeps the jump from
   tucking the section heading under this bar + the main nav.

   Rendered as real pill buttons on their own tinted band, not plain text
   -- a bare-text tab row was mistaken for more descriptive copy (it used
   to sit right under a near-identical row of non-interactive tag pills),
   so this needs to read as an obviously clickable menu at a glance. */
.pack-subnav {
  position: sticky;
  top: 75px;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.25);
}
/* Wraps to multiple centered lines instead of a horizontally-scrolling
   strip -- a hidden-scrollbar overflow row (the previous approach) isn't
   discoverable with a mouse, and this subnav is reused on pages with
   more/longer pills (10+ use-case names) than it was originally sized
   for (a handful of short section jumps). */
.pack-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.pack-subnav a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.83rem;
  font-weight: 650;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pack-subnav a:hover { border-color: var(--text-dim); color: var(--text); transform: translateY(-1px); }
.pack-subnav a.is-active { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-contrast); }

#problem, #inside, #compare, #who, #coverage, #faq, #browse { scroll-margin-top: 135px; }

/* ---- Problem / solution split ---- */
.pack-problem-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; margin-top: 44px; }
.pack-problem-list { display: grid; }
.pack-problem-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pack-problem-item .pack-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,122,48,0.1); color: var(--accent-2); font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pack-problem-item p { color: var(--text-dim); font-size: 0.98rem; }
.pack-problem-item strong { color: var(--text); }
.pack-solution-card { border: 1px solid rgba(47,111,237,0.24); background: linear-gradient(180deg, rgba(47,111,237,0.1), rgba(255,255,255,0.015)); padding: 30px; border-radius: 20px; }
.pack-solution-card h3 { font-size: 1.5rem; margin: 10px 0 12px; letter-spacing: -0.02em; }
.pack-solution-card > p { color: var(--text-dim); margin-bottom: 22px; }
.pack-solution-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pack-solution-highlight div { padding: 13px; border-radius: 12px; background: rgba(0,0,0,0.14); border: 1px solid var(--border); text-align: center; }
.pack-solution-highlight b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.05rem; }
.pack-solution-highlight span { display: block; font-size: 0.62rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
@media (max-width: 860px) { .pack-problem-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pack-solution-highlight { grid-template-columns: 1fr; } }

/* ---- "What's inside" feature cards ---- */
.pack-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.pack-feature-card { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 24px; }
.pack-feature-card .icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(47,111,237,0.16); color: var(--accent-bright); margin-bottom: 18px; }
.pack-feature-card .icon svg { width: 19px; height: 19px; }
.pack-feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pack-feature-card p { font-size: 0.9rem; }
@media (max-width: 900px) { .pack-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pack-feature-grid { grid-template-columns: 1fr; } }

/* ---- "How it works" steps ---- */
.pack-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.pack-step { padding: 26px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-alt); }
.pack-step .pack-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; color: rgba(255,122,48,0.3); line-height: 1; margin-bottom: 18px; display: block; }
.pack-step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.pack-step p { font-size: 0.9rem; }
@media (max-width: 760px) { .pack-steps { grid-template-columns: 1fr; } }

/* ---- Comparison table ---- */
.pack-compare { margin-top: 8px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--bg-alt); }
.pack-compare-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; min-height: 52px; border-bottom: 1px solid var(--border); }
.pack-compare-row:last-child { border-bottom: 0; }
.pack-compare-row > div { padding: 14px 18px; display: flex; align-items: center; border-right: 1px solid var(--border); font-size: 0.92rem; }
.pack-compare-row > div:last-child { border-right: 0; }
.pack-compare-head { background: var(--surface); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 800; }
.pack-compare-yes { color: var(--accent-2); font-weight: 800; }
.pack-compare-no { color: var(--text-faint); }
@media (max-width: 640px) { .pack-compare { overflow-x: auto; } .pack-compare-row { min-width: 520px; } }

/* ---- Dimensional-model architecture diagram ---- */
.pack-arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 8px; }
.pack-arch-diagram { padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--bg-alt)); }
.pack-arch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 9px; }
.pack-arch-row:last-child { margin-bottom: 0; }
.pack-arch-node { padding: 13px 8px; text-align: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 0.72rem; color: var(--text-dim); }
.pack-arch-node.fact { grid-column: span 4; background: rgba(255,122,48,0.09); border-color: rgba(255,122,48,0.22); color: var(--text); font-weight: 700; font-size: 0.82rem; padding: 15px; }
.pack-arch-copy h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.pack-arch-copy > p { color: var(--text-dim); }
.pack-arch-list { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 10px; }
.pack-arch-list li { display: flex; gap: 10px; color: var(--text-dim); font-size: 0.94rem; }
.pack-arch-list li::before { content: '✓'; color: var(--accent-2); font-weight: 800; flex-shrink: 0; }
@media (max-width: 860px) {
  .pack-arch-grid { grid-template-columns: 1fr; }
  .pack-arch-row { grid-template-columns: repeat(2, 1fr); }
  .pack-arch-node.fact { grid-column: span 2; }
}

/* Business users / consultants split. */
.pack-split { display: grid; grid-template-columns: 1fr 1fr; }
.pack-split-col { padding: 4px 40px; }
.pack-split-col:first-child { padding-left: 0; border-right: 1px solid var(--border); }
.pack-split-col:last-child { padding-right: 0; }
.pack-split-col .pack-num { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.1rem; color: var(--accent-2); margin-bottom: 14px; }
.pack-split-col h3 { margin-bottom: 12px; }
.pack-split-col p { font-size: 0.98rem; }
@media (max-width: 720px) {
  .pack-split { grid-template-columns: 1fr; gap: 32px; }
  .pack-split-col { padding: 0 !important; border-right: none !important; }
}

/* Domain capability list -- replaces a colourful card grid with a quiet,
   scannable list of who owns each KPI family, closer to a practice-area
   index than a marketing tile. */
.pack-persona-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--border); }
.pack-persona-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.pack-persona-row:hover { background: var(--bg-alt); padding-left: 10px; }
.pack-persona-row .icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent-2); display: flex; }
.pack-persona-row .icon svg { width: 100%; height: 100%; }
.pack-persona-text { flex: 1; min-width: 0; }
.pack-persona-domain { display: block; font-weight: 600; font-size: 0.94rem; }
.pack-persona-owner { display: block; font-size: 0.8rem; color: var(--text-faint); margin-top: 1px; }
.pack-persona-count { flex-shrink: 0; font-family: var(--font-serif); font-size: 0.9rem; color: var(--text-faint); }
@media (max-width: 720px) { .pack-persona-list { grid-template-columns: 1fr; } }

/* FAQ accordion -- native <details>/<summary>, no JS needed. */
.pack-faq { display: flex; flex-direction: column; gap: 10px; }
.pack-faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); padding: 4px 22px; }
.pack-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pack-faq-item summary::-webkit-details-marker { display: none; }
.pack-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--accent-2);
  transition: transform 0.15s ease;
}
.pack-faq-item[open] summary::after { transform: rotate(45deg); }
.pack-faq-item p { padding: 0 0 18px; margin: 0; font-size: 0.94rem; color: var(--text-dim); }
.pack-faq-item p a { color: var(--accent-2); text-decoration: underline; }

/* CTA band -- deliberately its own component rather than the shared
   .cta-band, so this page can read as a distinct "capability statement"
   moment. Locked to the fixed --dark-panel-* tokens (see the product
   window above) with an explicit solid base color behind the gradient
   wash -- without it, the translucent overlay alone would read as a
   pale, barely-there tint on this page's now-light background instead
   of the dark accent card it's meant to be. */
.pack-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(47,111,237,0.14), rgba(255,122,48,0.04)), var(--dark-panel-bg-alt); border: 1px solid rgba(47,111,237,0.28); border-radius: 22px; padding: 56px 40px; text-align: center; }
.pack-cta::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -90px; top: -130px; background: rgba(47,111,237,0.2); filter: blur(50px); }
.pack-cta .n { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--dark-panel-text); position: relative; z-index: 1; }
.pack-cta p { color: var(--dark-panel-text-dim); font-size: 1.02rem; max-width: 460px; margin: 14px auto 0; position: relative; z-index: 1; }
/* Needed because .kpi-section p (later in this file, same specificity)
   otherwise wins the cascade on KPI pages and repaints this paragraph
   in the light theme's --text-dim -- dark grey text on this card's
   fixed-dark navy background, unreadable. */
.pack-cta.kpi-inline-cta p { color: var(--dark-panel-text-dim); }
.pack-cta .btn-row { justify-content: center; margin-top: 30px; position: relative; z-index: 1; }
.pack-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: transparent;
  border: 1px solid var(--dark-panel-border);
  border-radius: 999px;
  color: var(--dark-panel-text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pack-cta-btn:hover { background: var(--accent-2); color: var(--accent-contrast); border-color: var(--accent-2); }

/* ---------- Technology rows ---------- */

.tech-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.tech-row:last-child { border-bottom: none; }
.tech-row .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(47,111,237,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.tech-row h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tech-row .desc { margin-bottom: 20px; }
.tech-row .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) {
  .tech-row { grid-template-columns: 1fr; }
  .tech-row .facts { grid-template-columns: 1fr; }
}
.tech-row .facts dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-bright); margin-bottom: 6px; }
.tech-row .facts dd { margin: 0; font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Sector cards ---------- */

.sector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.sector-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(47,111,237,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sector-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.sector-card .row { margin-bottom: 14px; }
.sector-card .row:last-child { margin-bottom: 0; }
.sector-card .row .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 6px; display: block; }
.sector-card .row p { font-size: 0.92rem; }

/* ---------- Illustrative dashboard mockup ---------- */

.dash-mock {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25), 0 24px 48px rgba(0,0,0,0.35);
}
.dash-mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dash-mock-topbar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-mock-title { margin-left: 10px; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.dash-mock-body { display: flex; min-height: 420px; }
.dash-mock-side {
  width: 56px;
  background: #12151f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  flex-shrink: 0;
}
.dash-mock-side .side-icon { color: rgba(255,255,255,0.4); display: flex; }
.dash-mock-side .side-icon.active { color: #fff; }
.dash-mock-main { flex: 1; padding: 24px 28px; min-width: 0; }
.dash-mock-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-mock-filters .filter-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.dash-mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 640px) { .dash-mock-kpis { grid-template-columns: repeat(2, 1fr); } .dash-mock-side { display: none; } }
.kpi-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-tile .kpi-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.kpi-tile .kpi-value { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.kpi-tile .kpi-delta { font-size: 0.75rem; font-weight: 600; }
.kpi-tile .kpi-delta.up { color: var(--accent-bright); }
.kpi-tile .kpi-delta.down { color: #ff6b5e; }
.dash-mock-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 640px) { .dash-mock-charts { grid-template-columns: 1fr; } }
.chart-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.chart-card .chart-title { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-bottom: 14px; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 90px; }
.bar-chart .bar { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: 0.85; }
.line-chart { width: 100%; height: 90px; }
.dash-mock-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.dash-mock-table th { text-align: left; padding: 8px 10px; color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.dash-mock-table td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.status { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.status.ok { background: rgba(47,111,237,0.12); color: var(--accent-bright); }
.status.warn { background: rgba(242,153,74,0.15); color: #f2994a; }
.dash-mock-caption { text-align: center; font-size: 0.8rem; color: var(--text-dim); font-style: italic; margin-top: 16px; }

/* ---------- Founder card ---------- */

.founder-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .founder-card { flex-direction: column; align-items: center; text-align: center; } }
.founder-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.founder-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.founder-card .role { display: block; font-size: 0.85rem; color: var(--accent-bright); font-weight: 600; margin-bottom: 12px; }
.founder-card p { font-size: 0.94rem; }

/* ---------- Page shell (main content + sidebar) ---------- */

.page-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0 56px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.page-main { min-width: 0; padding-bottom: 64px; }
/* the outer shell already provides centering/gutters, so inner section
   containers shouldn't re-apply their own — otherwise every band gets a
   double gutter and fights the shell's max-width instead of filling it */
.page-main .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.page-sidebar {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
  align-self: start;
}
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.sidebar-widget h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 16px; }
.sidebar-post-list { display: flex; flex-direction: column; gap: 16px; }
.sidebar-post { display: block; }
.sidebar-post .tag { display: block; font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.sidebar-post .title { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.sidebar-post:hover .title { color: var(--accent); }
.sidebar-cta p { font-size: 0.85rem; margin: 8px 0 16px; }
.sidebar-link-list { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
}
.sidebar-link .ic { color: var(--accent-bright); flex-shrink: 0; display: flex; }
.sidebar-link .ic svg { width: 16px; height: 16px; }
.sidebar-link:hover { background: var(--bg-alt); color: var(--text); }

@media (max-width: 1000px) {
  .page-shell { grid-template-columns: 1fr; }
  .page-sidebar { position: static; padding: 0 0 48px; flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1; min-width: 240px; }
}
@media (max-width: 640px) {
  .page-sidebar { flex-direction: column; }
}

/* ---------- Proof box (real client reference on service pages) ---------- */

.proof-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(47,111,237,0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.proof-box .icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.proof-box .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-bright); margin-bottom: 6px; display: block; }
.proof-box .client { font-weight: 700; margin-bottom: 6px; }
.proof-box p.detail { font-size: 0.92rem; margin: 0; }

/* ---------- KPI catalog (/kpi/) ---------- */

.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }

.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(47,111,237,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 30px; height: 30px; }

.kpi-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.kpi-indicator-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0;
}
.kpi-indicator-box-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-2); margin-bottom: 8px; }
.kpi-indicator-box p { margin: 0; color: var(--text-dim); font-style: italic; line-height: 1.6; }
.kpi-owner-line { font-size: 0.82rem; color: var(--text-faint); margin: 10px auto 0; }
.kpi-owner-line strong { color: var(--text-dim); font-weight: 600; }

.formula-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}
.formula-box .label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.formula-box .formula-text {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.92rem;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
.formula-components {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.formula-component { display: flex; flex-direction: column; gap: 2px; }
.formula-component dt { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.formula-component dd { margin: 0; font-size: 0.85rem; color: var(--text-dim); }

.kpi-variants-table-wrap { margin: 32px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.kpi-variants-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; table-layout: fixed; }
.kpi-variants-table th:nth-child(1), .kpi-variants-table td:nth-child(1) { width: 24%; }
.kpi-variants-table th:nth-child(2), .kpi-variants-table td:nth-child(2) { width: 36%; }
.kpi-variants-table th:nth-child(3), .kpi-variants-table td:nth-child(3) { width: 40%; }
.kpi-variants-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: var(--surface);
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
}
.kpi-variants-table td { padding: 14px 16px; vertical-align: top; border: none; border-bottom: 1px solid var(--border); color: var(--text-dim); line-height: 1.5; }
.kpi-variants-table tr:last-child td { border-bottom: none; }
.kpi-variants-table td:first-child { color: var(--text); }
.kpi-variants-table td[data-label="When to use it"] { color: var(--text-faint); }
@media (max-width: 700px) {
  .kpi-variants-table thead { display: none; }
  .kpi-variants-table, .kpi-variants-table tbody, .kpi-variants-table tr, .kpi-variants-table td { display: block; }
  .kpi-variants-table td:nth-child(1), .kpi-variants-table td:nth-child(2), .kpi-variants-table td:nth-child(3) { width: 100%; }
  .kpi-variants-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .kpi-variants-table tr:last-child { border-bottom: none; }
  .kpi-variants-table td { padding: 3px 0; border-bottom: none; }
  .kpi-variants-table td:first-child { white-space: normal; }
  .kpi-variants-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    margin-top: 8px;
  }
  .kpi-variants-table td:first-child::before { margin-top: 0; }
}

.kpi-grain-text { margin: 0; color: var(--text-dim); line-height: 1.75; }

.kpi-h { display: flex; align-items: center; gap: 10px; margin-top: 32px; margin-bottom: 16px; }

.kpi-blind-spots { margin: 32px 0; }
.kpi-blind-spots .kpi-h { margin-bottom: 14px; }

.kpi-h-icon { display: inline-flex; color: var(--accent); flex-shrink: 0; }
.kpi-h-icon svg { width: 20px; height: 20px; }

.kpi-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0 0; }
@media (max-width: 640px) { .kpi-related-grid { grid-template-columns: 1fr; } }
.kpi-related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.kpi-related-card:hover { border-color: var(--accent); }
.kpi-related-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.kpi-related-name { font-weight: 700; font-size: 0.92rem; color: var(--text); transition: color 0.15s ease; }
.kpi-related-link:hover .kpi-related-name { color: var(--accent); }
.kpi-related-code { font-weight: 600; font-size: 0.72rem; color: var(--text-faint); }
.kpi-related-insight { font-size: 0.82rem; color: var(--text-faint); line-height: 1.55; }
.kpi-related-pack-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.kpi-related-pack-cta:hover { text-decoration: underline; }
.kpi-related-pack-cta svg { width: 12px; height: 12px; }
.kpi-related-pack-cta-available { color: #2f9e44; }

.kpi-sources { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.kpi-sources li { padding-left: 16px; border-left: 3px solid var(--border); }
.kpi-source-title { display: block; font-weight: 700; font-size: 0.92rem; color: var(--text); }
.kpi-source-publisher { display: block; font-size: 0.78rem; color: var(--accent); font-weight: 600; margin: 2px 0 6px; }
.kpi-sources p { font-size: 0.85rem; }

.kpi-teaser-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
  line-height: 1.6;
  margin: 10px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.kpi-variants-teaser { margin: 16px 0 0; }
.kpi-variants-teaser-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kpi-variants-teaser-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.kpi-related-card-compact { padding: 12px 18px; }
.formula-note-teaser { font-style: italic; }

.kpi-rootcause { margin: 0 0 24px; }
.kpi-rootcause:last-child { margin-bottom: 0; }
.kpi-rootcause-title { font-size: 0.98rem; line-height: 1.6; color: var(--text-dim); margin: 0 0 10px; }
.kpi-rootcause-title strong { color: var(--text); }
.kpi-callout { border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 0 0 10px; }
.kpi-callout-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.kpi-callout p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-dim); }
.kpi-callout-lie { border-left-color: #f2994a; }
.kpi-callout-lie .kpi-callout-label { color: #f2994a; }

.kpi-quickwin { padding: 14px 0; border-top: 1px solid var(--border); }
.kpi-quickwin:first-child { border-top: none; padding-top: 0; }
.kpi-quickwin-title { font-size: 0.96rem; line-height: 1.6; color: var(--text-dim); margin: 0 0 6px; }
.kpi-quickwin-title strong { color: var(--text); }
.kpi-quickwin-meta { font-size: 0.78rem; color: var(--text-faint); font-weight: 600; margin: 0; }

.kpi-passport-grid { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 24px; flex-wrap: wrap; }
.kpi-passport-left { flex: 1 1 340px; min-width: 0; }
.kpi-passport-right { flex: 1 1 240px; min-width: 0; }
@media (max-width: 640px) { .kpi-passport-left, .kpi-passport-right { flex: 1 1 100%; } }

.kpi-ptable { width: 100%; border-collapse: collapse; border: 1px solid var(--border); font-size: 0.85rem; background: var(--surface); }
.kpi-ptable tr { border-bottom: 1px solid var(--border); }
.kpi-ptable tr:last-child { border-bottom: none; }
.kpi-ptable td { padding: 8px 12px; vertical-align: top; }
.kpi-ptable td:first-child {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-alt);
  width: 34%;
  border-left: 3px solid var(--accent);
}
.kpi-ptable td:last-child { color: var(--text); }
.kpi-ptable code { font-size: 0.82em; }

.kpi-formula-detail-panel { background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 16px 18px; height: 100%; }
.kpi-fdp-block { margin-bottom: 14px; }
.kpi-fdp-block:last-child { margin-bottom: 0; }
.kpi-fdp-block-fnb { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.kpi-fdp-lbl { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
.kpi-formula-detail-panel p { margin: 0; font-size: 0.83rem; color: var(--text-dim); line-height: 1.55; }

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--text);
}
.fact-table-note { font-size: 0.92rem; color: var(--text-dim); }

.kpi-freemium {
  margin: 28px 0;
  padding: 24px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.kpi-freemium-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.kpi-freemium-intro { color: var(--text-dim); font-size: 0.92rem; margin: -6px 0 20px; }
.kpi-freemium-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 24px; }
@media (max-width: 640px) { .kpi-freemium-stats { grid-template-columns: repeat(2, 1fr); } }
.kpi-freemium-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; text-align: center; }
.kpi-freemium-stat-n { display: block; font-size: 1.3rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi-freemium-stat-l { display: block; font-size: 0.72rem; color: var(--text-faint); margin-top: 4px; }
.kpi-freemium-dax { margin-bottom: 24px; }
.kpi-freemium-dax img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); margin-top: 6px; display: block; }
.kpi-freemium-caption { font-size: 0.82rem; color: var(--text-faint); margin-top: 8px; line-height: 1.5; }
.kpi-freemium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .kpi-freemium-grid { grid-template-columns: 1fr; } }
.kpi-freemium-checklist { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kpi-freemium-checklist li { font-size: 0.85rem; color: var(--text-dim); padding-left: 20px; position: relative; }
.kpi-freemium-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.kpi-freemium-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 8px; line-height: 1.5; }
.kpi-freemium-col .kpi-ptable { margin-top: 6px; background: var(--surface); }
.kpi-freemium-col .kpi-ptable td:first-child { width: 44%; background: var(--surface); }

.kpi-target-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
@media (max-width: 560px) { .kpi-target-tiles { grid-template-columns: 1fr; } }
.kpi-target-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.kpi-target-tile .n { display: block; font-size: 1.8rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi-target-tile .l { display: block; font-size: 0.8rem; color: var(--text-faint); margin-top: 6px; }
.kpi-target-tile-teaser { grid-column: 1 / -1; padding: 16px 20px; }
.kpi-target-tile-teaser .l { font-size: 0.85rem; font-style: italic; margin-top: 0; }
.kpi-target-tile.warn .n { color: #f2994a; }
.kpi-target-disclaimer {
  border-left: 3px solid #f2994a;
  background: rgba(242, 153, 74, 0.1);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  margin: 12px 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.kpi-target-disclaimer strong { color: #f2994a; }

.benchmark-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.benchmark-list li { position: relative; padding-left: 18px; font-size: 0.96rem; line-height: 1.55; color: var(--text-dim); }
.benchmark-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.kpi-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 640px) { .kpi-cta-row { grid-template-columns: 1fr; } }
.kpi-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.kpi-cta-primary {
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.kpi-cta-primary:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.kpi-cta-primary .kpi-cta-badge { background: rgba(255,122,48,0.12); color: var(--accent-2); border-color: transparent; }
.kpi-cta-available { border-color: rgba(20,168,105,0.4); }
.kpi-cta-available:hover { border-color: #0c8a52; }
.kpi-cta-available .kpi-cta-badge { background: rgba(20,168,105,0.14); color: #0c8a52; border-color: transparent; }
.kpi-cta-secondary {
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.kpi-cta-secondary:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.kpi-cta-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.kpi-cta-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.kpi-cta-sub { font-size: 0.85rem; color: var(--text-dim); }
.kpi-cta-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.kpi-cta-stat { display: flex; flex-direction: column; }
.kpi-cta-stat .n { font-size: 0.95rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi-cta-stat .l { font-size: 0.68rem; color: var(--text-faint); }
.kpi-cta-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}
.kpi-cta-action svg { width: 14px; height: 14px; }

.kpi-pack-teaser-btn { width: 100%; margin-top: 14px; }

.kpi-pack-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  background: var(--surface);
  box-shadow: var(--shadow);
}
.kpi-pack-modal::backdrop { background: rgba(10, 14, 26, 0.55); backdrop-filter: blur(2px); }
.kpi-pack-modal-form { position: relative; padding: 32px 32px 26px; overflow-y: auto; max-height: inherit; box-sizing: border-box; }
.kpi-pack-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-faint);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-pack-modal-close:hover { color: var(--text); border-color: var(--text-faint); }
.kpi-pack-modal h3 { font-size: 1.3rem; padding-right: 32px; }
.kpi-pack-modal-sub { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; margin: 8px 0 22px; }
.kpi-pack-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .kpi-pack-modal-grid { grid-template-columns: 1fr; } }
.kpi-pack-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}
.kpi-pack-modal-grid .req { color: var(--accent-2); font-weight: 700; }
.kpi-pack-modal-grid input,
.kpi-pack-modal-grid select,
.kpi-pack-modal-grid textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 400;
}
.kpi-pack-modal-grid textarea { resize: vertical; min-height: 44px; }
.kpi-pack-modal-span2 { grid-column: 1 / -1; }
.kpi-pack-modal-submit { width: 100%; margin-top: 22px; }
.kpi-pack-modal .form-feedback { margin-top: 10px; text-align: center; }

.kpi-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--bg-alt);
}
.blog-filters .pill:hover .kpi-count { background: rgba(255,255,255,0.15); }

.kpi-domain-section { margin: 48px 0; }
.kpi-domain-section.is-hidden { display: none; }
.kpi-domain-section h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.kpi-domain-section h2 svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.kpi-card.is-hidden { display: none; }
.kpi-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.kpi-card-code {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(47,111,237,0.1);
  border-radius: 6px;
  padding: 3px 8px;
}
.pack-status-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pack-status-available { color: #0c8a52; background: rgba(20,168,105,0.14); }
.pack-status-coming_soon { color: var(--text-faint); background: var(--bg-alt); }
.kpi-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.kpi-card p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }
.kpi-card-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kpi-card-fact {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.kpi-search { display: flex; justify-content: center; margin: 0 0 32px; }
.kpi-search input {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.kpi-search input:focus { outline: none; border-color: var(--accent); }
.kpi-search-empty { text-align: center; color: var(--text-faint); margin: -12px 0 32px; }

/* Guides (/guides/) — reuses .kpi-domain-section / .kpi-grid / .kpi-card
   as-is; only the intro blurb per section and the index card's icon
   need their own rules. */
.guide-section-blurb { color: var(--text-dim); font-size: 0.95rem; max-width: 680px; margin: 0 0 22px; }
.guide-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 0 14px;
}
.guide-card-icon svg { width: 20px; height: 20px; }

/* Reading panel: the body copy of a KPI fiche sits on a slightly elevated
   card (var(--surface)) a shade lighter than the page body (var(--bg)) —
   a subtle paper-on-desk depth cue, not a forced light-on-dark contrast.
   Fully token-driven so it adapts to whichever theme the page is on. */
.kpi-reading-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px 36px;
  margin: 0 0 32px;
  box-shadow: var(--shadow);
}
.kpi-reading-panel h2 { color: var(--text); font-size: 1.5rem; }
.kpi-reading-panel > .kpi-h:first-child { margin-top: 0; }
.kpi-reading-panel p { color: var(--text-dim); line-height: 1.75; }
.kpi-reading-panel .formula-box { background: var(--bg-alt); border-color: var(--border); }
.kpi-reading-panel .formula-box .label { color: var(--accent); }
.kpi-reading-panel .formula-box .formula-text { color: var(--text); }
.kpi-reading-panel .fact-table-note { color: var(--text-faint); }
.kpi-reading-panel code { background: var(--bg-alt); border-color: var(--border); color: var(--text); }
.kpi-reading-panel .kpi-target-tile { background: var(--bg-alt); border-color: var(--border); }
.kpi-reading-panel .kpi-target-tile .l { color: var(--text-faint); }
.kpi-reading-panel .kpi-variants-table-wrap { border-color: var(--border); }
.kpi-reading-panel .kpi-variants-table th { background: var(--bg-alt); }
.kpi-reading-panel .kpi-variants-table td { border-color: var(--border); }
.kpi-reading-panel .kpi-related-card { background: var(--bg-alt); border-color: var(--border); }

/* Pack-forward KPI layout (see kpiPackHero / buildKpiPage): drops the
   single reading-panel card in favor of plain sections on the page
   background, divided by hairlines and jumped to from .pack-subnav --
   matches the homepage's own rhythm instead of stacking everything in one
   more white rounded rectangle. */
.kpi-reading-flow { display: flex; flex-direction: column; }
.kpi-section { padding: 36px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 135px; }
.kpi-section:first-child { padding-top: 4px; }
.kpi-section:last-child { border-bottom: none; }
.kpi-section .kpi-h:first-child { margin-top: 0; }
.kpi-section p { color: var(--text-dim); line-height: 1.75; }

/* KPI names range from "OEE" to "Cost per Case / Cost per Tonne
   Delivered" -- the homepage's own marketing-headline clamp (up to
   3.4rem) is sized for a fixed 2-line hook, not a variable-length term,
   so this page gets a smaller ceiling. */
.kpi-pack-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.kpi-pack-hero .kpi-badges { justify-content: flex-start; margin: 18px 0 0; }

.kpi-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: stretch; margin-top: 28px; }
@media (max-width: 900px) { .kpi-layout { grid-template-columns: 1fr; } }

/* .kpi-aside is stretched (align-items above) to the full height of the
   taller reading-panel column, so the sticky CTA row below has real
   room to travel down the page instead of running out of container
   after a few dozen pixels. */
.kpi-aside { display: flex; flex-direction: column; gap: 16px; }
.kpi-aside .kpi-cta-row { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
/* The CTA card sticks on its own (not the whole aside) -- the glance
   card above it (target/warning/owner/process/unit) can be taller than
   the viewport, and stickying the full column left the CTA/"Request
   access" button pinned off-screen below the fold until you scrolled
   past all the reading-panel content underneath it. */
.kpi-aside .kpi-cta-row { position: sticky; top: 88px; }
@media (max-width: 900px) { .kpi-aside .kpi-cta-row { position: static; } }

.kpi-glance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.kpi-glance-card h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 14px; }
.kpi-glance-card .kpi-target-tiles { margin: 0; gap: 10px; }
.kpi-glance-card .kpi-target-tile { padding: 12px 8px; background: var(--bg-alt); border-color: var(--border); }
.kpi-glance-card .kpi-target-tile .n { font-size: 1.3rem; }
.kpi-glance-facts { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.kpi-glance-facts div { display: flex; flex-direction: column; gap: 1px; }
.kpi-glance-facts dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.kpi-glance-facts dd { margin: 0; font-size: 0.86rem; color: var(--text-dim); font-weight: 600; }

/* Reading panel for blog articles — same concept as .kpi-reading-panel, kept
   as its own rule set since article markup (links, lists, tables) differs
   from the KPI fiche template. */
.blog-reading-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px 36px;
  margin: 0 0 8px;
  box-shadow: var(--shadow);
}
.blog-reading-panel h2 { color: var(--text); }
.blog-reading-panel h2:first-child { margin-top: 0; }
.blog-reading-panel p { color: var(--text-dim); line-height: 1.75; }
.blog-reading-panel strong { color: var(--text); }
.blog-reading-panel a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.blog-reading-panel ul, .blog-reading-panel ol { color: var(--text-dim); }
.blog-reading-panel li { color: var(--text-dim); }
.blog-reading-panel .meta { color: var(--text-faint); }
.blog-reading-panel table { font-size: 0.92rem; }
.blog-reading-panel th, .blog-reading-panel td { border-color: var(--border); }
.blog-reading-panel th { color: var(--text); background: var(--bg-alt); }
.blog-reading-panel td { color: var(--text-dim); }
