/* ==========================================================================
   Pharmainnovator — base: design tokens, reset, typography
   ========================================================================== */
:root {
  /* Colour — brief palette plus the logo blue */
  --c-primary: #0B3A5B;      /* deep pharmaceutical blue */
  --c-primary-700: #082C46;
  --c-brand: #0152B3;        /* logo blue */
  --c-secondary: #1479A8;
  --c-teal: #0EA5A4;
  --c-teal-600: #0B8584;
  --c-green: #2E8B57;
  --c-bg: #F5F9FC;
  --c-bg-2: #EAF2F8;
  --c-surface: #FFFFFF;
  --c-ink: #173042;
  --c-ink-2: #3A5566;
  --c-muted: #5C7887;        /* brief #607D8B, darkened slightly for 4.5:1 on #F5F9FC */
  --c-border: #D9E5EC;
  --c-border-strong: #B9CCD8;
  --c-warning: #B45309;      /* text-safe amber; #F59E0B used for fills */
  --c-warning-fill: #FEF3C7;
  --c-error: #C62839;
  --c-error-fill: #FDECEE;
  --c-success: #198754;
  --c-success-fill: #E6F4EC;
  --c-focus: #0EA5A4;

  /* Type */
  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .78rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-h4: 1.2rem; --fs-h3: 1.4rem; --fs-h2: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  --lh: 1.6;

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 80px;

  /* Radius / shadow */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(11,58,91,.06), 0 2px 10px rgba(11,58,91,.05);
  --sh-2: 0 4px 22px rgba(11,58,91,.10);
  --sh-3: 0 18px 50px rgba(11,58,91,.18);

  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: 180ms;
}

[data-theme="dark"] {
  --c-bg: #0A1B28; --c-bg-2: #0F2535; --c-surface: #102A3C; --c-ink: #E6F0F6; --c-ink-2: #C3D5E0;
  --c-muted: #9DB5C4; --c-border: #1F3E54; --c-border-strong: #2E5572; --c-primary: #0F4A73;
  --c-brand: #5FA8FF; --c-secondary: #4DB3E0;
  --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 4px 22px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--f-sans); font-size: var(--fs-md); line-height: var(--lh);
  color: var(--c-ink); background: var(--c-bg); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--c-bg-2); }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--c-secondary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
[data-theme="dark"] a:hover { color: #fff; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s6) 0; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 { margin: 0 0 var(--s4); line-height: 1.15; color: var(--c-ink); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: var(--fs-h1); letter-spacing: -.028em; line-height: 1.05; }
h2 { font-size: var(--fs-h2); letter-spacing: -.022em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
.lead { font-size: var(--fs-lg); color: var(--c-ink-2); max-width: 64ch; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; }
.data-name { font-weight: 600; color: var(--c-ink); }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-primary); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Default size for inline icons without a component-specific size (zero specificity) */
:where(svg[class=""], svg.ic) { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }

/* Category tones (v1.1): used for identification — always paired with an icon and a text label */
:root {
  --tone-blue: #0152B3; --tone-blue-bg: #E8F1FC;
  --tone-teal: #0B8584; --tone-teal-bg: #E3F5F4;
  --tone-green: #2E8B57; --tone-green-bg: #E6F4EC;
  --tone-purple: #6D3FC0; --tone-purple-bg: #F1EBFB;
  --tone-orange: #C2570C; --tone-orange-bg: #FDEFE3;
  --tone-cyan: #0E7490; --tone-cyan-bg: #E0F4F8;
  --tone-amber: #A15C00; --tone-amber-bg: #FEF3DC;
}
[data-theme="dark"] {
  --tone-blue: #7DB6FF; --tone-blue-bg: #13304D; --tone-teal: #5FD3D1; --tone-teal-bg: #0F3436;
  --tone-green: #7BD3A0; --tone-green-bg: #12322A; --tone-purple: #C3A6F5; --tone-purple-bg: #2A2142;
  --tone-orange: #F7A66A; --tone-orange-bg: #3A2718; --tone-cyan: #6ED3EA; --tone-cyan-bg: #10323B; --tone-amber: #F2C26B; --tone-amber-bg: #372B14;
}
.tone-blue { --tc: var(--tone-blue); --tbg: var(--tone-blue-bg); } .tone-teal { --tc: var(--tone-teal); --tbg: var(--tone-teal-bg); }
.tone-green { --tc: var(--tone-green); --tbg: var(--tone-green-bg); } .tone-purple { --tc: var(--tone-purple); --tbg: var(--tone-purple-bg); }
.tone-orange { --tc: var(--tone-orange); --tbg: var(--tone-orange-bg); } .tone-cyan { --tc: var(--tone-cyan); --tbg: var(--tone-cyan-bg); }
.tone-amber { --tc: var(--tone-amber); --tbg: var(--tone-amber-bg); }
