/* Archivo variable (wght 100-900, wdth 62-125%), self-hosted, SIL OFL — see /fonts/ARCHIVO-OFL.txt */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.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; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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; }

/* EVOR design tokens — shared by website, app, portal and control plane.
   See docs/01_DESIGN_SYSTEM.md. */
:root {
  --ink: #0E2433;
  --ink-2: #4A5D6A;
  --ink-3: #6E808C;
  --creek: #0A6FA8;
  --creek-deep: #075785;
  --creek-tint: #E6F1F8;
  --lagoon: #1EC0D8;
  --lagoon-tint: #E3F8FB;
  --mist: #F3F6F7;
  --mist-2: #E9EEF1;
  --line: #DCE3E7;
  --line-strong: #C5D0D6;
  --white: #FFFFFF;

  --ok: #138A5E;
  --ok-tint: #E4F4EC;
  --warn: #B7791F;
  --warn-tint: #FBF1DF;
  --danger: #C8372D;
  --danger-tint: #FBE8E6;
  --violet: #6B4FD8;
  --violet-tint: #EEEAFC;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-stretch: 118%;

  --fs-12: .75rem; --fs-13: .8125rem; --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem;
  --fs-20: 1.25rem; --fs-25: 1.5625rem; --fs-31: 1.9375rem; --fs-39: 2.4375rem;
  --fs-49: 3.0625rem; --fs-61: 3.8125rem;

  --r-frame: 14px;
  --r-ctl: 8px;
  --r-chip: 6px;

  --shadow-float: 0 1px 2px rgba(14, 36, 51, .06), 0 24px 48px -24px rgba(14, 36, 51, .28);
  --shadow-pop: 0 1px 2px rgba(14, 36, 51, .08), 0 12px 32px -12px rgba(14, 36, 51, .30);
  --focus: 0 0 0 3px rgba(30, 192, 216, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.55; font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--creek); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-ctl); text-decoration: none; }
.skip-link:focus { top: 12px; }
[x-cloak] { display: none !important; }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 0; font-weight: 800; font-stretch: 125%; letter-spacing: .06em; font-size: 1.375rem; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark .o { width: .82em; height: .82em; margin: 0 .04em; flex: none; }
.wordmark.on-dark { color: #fff; }

/* Buttons (shared) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl); border: 1px solid transparent; font-weight: 600; font-size: var(--fs-14); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--creek); color: #fff; }
.btn-primary:hover { background: var(--creek-deep); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--mist); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--mist); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lagoon-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #A92C24; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-13); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: var(--fs-16); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* Status chips (shared vocabulary for web, portal, Flutter) */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--r-chip); font-size: var(--fs-12); font-weight: 600; white-space: nowrap; background: var(--mist-2); color: var(--ink-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.plain::before { display: none; }
.chip-ok { background: var(--ok-tint); color: var(--ok); }
.chip-warn { background: var(--warn-tint); color: var(--warn); }
.chip-danger { background: var(--danger-tint); color: var(--danger); }
.chip-info { background: var(--creek-tint); color: var(--creek); }
.chip-live { background: var(--lagoon-tint); color: #0B7F91; }
.chip-violet { background: var(--violet-tint); color: var(--violet); }

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