/* =============================================================================
 * Via Hive Command Center V2 — base + self-hosted type (J2)
 * -----------------------------------------------------------------------------
 * Self-hosted Inter (OFL), reused from the already-vetted mobile-app font asset
 * (static weights 400/500/600/700 — the spec's "Inter Variable" intent, static
 * form; no runtime Google Fonts dependency). Scoped reset beats legacy element
 * rules inside the V2 surface at higher specificity than the body-wide legacy rule.
 * ========================================================================== */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/app/admin/public/fonts/PlusJakartaSans-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/app/admin/public/fonts/PlusJakartaSans-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/app/admin/public/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/app/admin/public/fonts/PlusJakartaSans-Bold.ttf') format('truetype'); }

.v2-app, .v2-app * { box-sizing: border-box; font-family: var(--vh2-font) !important; letter-spacing: normal; }
/* Icon fonts must keep their own family. The universal rule above forces Inter onto every descendant, and Inter has no
   glyphs for the private-use codepoints that Font Awesome 4 (.fa / fa-*) and Glyphicons draw, so every legacy icon
   rendered as an empty box. Higher specificity + !important restores the families defined in font-awesome.css and
   bootstrap.css; the ::before/::after pseudo-elements inherit from these elements. */
.v2-app .fa, .v2-app [class^="fa-"], .v2-app [class*=" fa-"] { font-family: FontAwesome !important; }
.v2-app .glyphicon { font-family: "Glyphicons Halflings" !important; }
.v2-app *::before, .v2-app *::after { box-sizing: border-box; }
.v2-app h1, .v2-app h2, .v2-app h3, .v2-app h4, .v2-app p, .v2-app ul, .v2-app ol { margin: 0; padding: 0; }
.v2-app ul { list-style: none; }
.v2-app a { color: inherit; text-decoration: none; }
.v2-app button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* CC-V2-P1 gate fix: the legacy, global, unscoped `:focus { outline: none
   !important; }` in design.css (predates this migration, out of scope to
   touch per the "one surface at a time" migration rule) wins over any
   non-!important rule regardless of specificity, silently killing the
   required visible focus ring (approved spec §18) everywhere, V2 included.
   Both declarations below must also be !important to actually win against
   it; ordinary specificity is not enough once !important is in play. */
.v2-app :focus { outline: none !important; }
.v2-app :focus-visible { outline: 2px solid var(--vh2-focus-ring) !important; outline-offset: 2px !important; border-radius: var(--vh2-r-xs); }
.v2-app { font-variant-numeric: normal; }
.v2-app .vh2-num, .v2-app .vh2-tabular { font-variant-numeric: tabular-nums; }

/* ---- type scale (spec §4) ---- */
.vh2-display     { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.vh2-h1          { font-size: 22px; line-height: 32px; font-weight: 600; letter-spacing: -0.015em; }
.vh2-h2          { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.vh2-h3          { font-size: 16px; line-height: 22px; font-weight: 600; }
.vh2-body        { font-size: 14px; line-height: 20px; font-weight: 400; }
.vh2-body-strong { font-size: 14px; line-height: 20px; font-weight: 500; }
.vh2-small       { font-size: 14px; line-height: 18px; font-weight: 400; }
.vh2-caption     { font-size: 12px; line-height: 16px; font-weight: 500; }
.vh2-overline    { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.vh2-metric-lg   { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vh2-metric-md   { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
