/* ==========================================================================
   Aviro360 Design System — Tokens
   ========================================================================== */

/* Geist Sans — self-hosted */
@font-face { font-family: "Geist Sans"; font-weight: 100; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-Thin.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 200; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-UltraLight.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-Light.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-Bold.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-weight: 900; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/geist/Geist-Black.woff2") format("woff2"); }

/* Barlow Condensed — self-hosted */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/barlow/BarlowCondensed-Medium-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; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/barlow/BarlowCondensed-Medium-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: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/vendor/fonts/barlow/BarlowCondensed-Medium-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  /* ---- Brand ---- */
  --av-brand-primary: #0074B8;
  --av-brand-primary-hover: #0065A2;
  --av-brand-primary-pressed: #004F7C;
  --av-brand-primary-mid: #4097CA;
  --av-brand-primary-soft: #E4EDF8;
  --av-brand-primary-softer: #F1FAFE;
  --av-brand-primary-softest: #F2F8FB;

  --av-blue-500: #1370F1;
  --av-blue-100: #E2EAF8;
  --av-cyan-400: #24CEFF;

  /* ---- Neutrals ---- */
  --av-ink-900: #232E38;
  --av-ink-800: #242836;
  --av-ink-700: #333E48;
  --av-ink-500: #AFB5BF;
  --av-ink-400: #B3B8CC;
  --av-line-300: #C3C7CF;
  --av-line-200: #D1D4E0;
  --av-line-100: #E4EDF8;
  --av-surface: #FFFFFF;
  --av-surface-subtle: #F2F8FB;
  --av-surface-page: #F1FAFE;

  /* ---- Semantic (status) ---- */
  --av-ok-500: #00B7A3;
  --av-warn-500: #FFD54C;
  --av-crit-500: #F12121;
  --av-info-500: #1370F1;
  --av-notice-500: #E11797;
  --av-alert-500: #E81144;

  /* ---- Shadows ---- */
  --av-shadow-card: 0 10px 20px 0 #E4EDF8;
  --av-shadow-card-sm: 0 5px 20px 0 rgba(0,0,0,0.05);
  --av-shadow-focus: 0 0 0 3px rgba(19,112,241,0.18);
  --av-shadow-modal: 0 0 60px 0 #E4EDF8;
  --av-shadow-elevated: 0 10px 30px 0 rgba(50,105,205,0.25);
  --av-shadow-inset-top: inset 0 1px 0 rgba(255,255,255,0.07);

  /* ---- Radii ---- */
  --av-radius-xs: 4px;
  --av-radius-sm: 6px;
  --av-radius-md: 8px;
  --av-radius-lg: 10px;
  --av-radius-xl: 14px;
  --av-radius-pill: 999px;

  /* ---- Spacing (4-pt) ---- */
  --av-space-1: 4px;
  --av-space-2: 8px;
  --av-space-3: 12px;
  --av-space-4: 16px;
  --av-space-5: 20px;
  --av-space-6: 24px;
  --av-space-8: 32px;
  --av-space-10: 40px;
  --av-space-12: 48px;

  /* ---- Type ---- */
  /* CDN package uses "Geist Sans"; fallback to system fonts */
  --av-font-sans: "Geist Sans", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --av-font-display: "Barlow Condensed", "Geist Sans", "Geist", sans-serif;

  --av-text-xs: 12px;
  --av-text-sm: 14px;
  --av-text-base: 16px;
  --av-text-lg: 18px;
  --av-text-xl: 24px;
  --av-text-2xl: 26px;
  --av-text-3xl: 32px;

  --av-leading-tight: 1.15;
  --av-leading-snug: 1.35;
  --av-leading-normal: 1.5;

  /* ---- Motion ---- */
  --av-ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --av-ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --av-dur-fast: 120ms;
  --av-dur-base: 200ms;
  --av-dur-slow: 320ms;

  /* ---- Layout ---- */
  --av-sidebar-w: 240px;
  --av-sidebar-w-collapsed: 64px;
  --av-header-h: 56px;
  --av-toolbar-h: 54px;
}

/* Type utilities */
.av-t-display   { font-family: var(--av-font-display); font-weight: 500; font-size: var(--av-text-2xl); line-height: var(--av-leading-tight); color: var(--av-ink-900); letter-spacing: 0.01em; }
.av-t-h1        { font-family: var(--av-font-sans); font-weight: 500; font-size: var(--av-text-3xl); line-height: var(--av-leading-tight); color: var(--av-ink-900); }
.av-t-h2        { font-family: var(--av-font-sans); font-weight: 600; font-size: var(--av-text-xl); line-height: var(--av-leading-snug); color: var(--av-ink-900); }
.av-t-title     { font-family: var(--av-font-sans); font-weight: 700; font-size: var(--av-text-base); line-height: 24px; color: var(--av-ink-900); }
.av-t-title-lg  { font-family: var(--av-font-sans); font-weight: 700; font-size: var(--av-text-lg); line-height: 26px; color: var(--av-ink-900); }
.av-t-body      { font-family: var(--av-font-sans); font-weight: 400; font-size: var(--av-text-base); line-height: 24px; color: var(--av-ink-900); }
.av-t-body-sm   { font-family: var(--av-font-sans); font-weight: 400; font-size: var(--av-text-sm); line-height: 20px; color: var(--av-ink-900); }
.av-t-caption   { font-family: var(--av-font-sans); font-weight: 400; font-size: var(--av-text-xs); line-height: 16px; color: var(--av-ink-500); letter-spacing: 0.02em; }
.av-t-label     { font-family: var(--av-font-sans); font-weight: 600; font-size: var(--av-text-sm); line-height: 20px; color: var(--av-ink-900); }
.av-t-mono-num  { font-family: var(--av-font-display); font-weight: 500; font-variant-numeric: tabular-nums; }
