/* Shared tokens and fonts (self-hosted: the portal must load before a
   passenger is online). Colors follow the Starhorse red, softened to blush. */

@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/static/fonts/manrope/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/static/fonts/manrope/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("/static/fonts/manrope/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/static/fonts/source-sans-3/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 500; font-display: swap; src: url("/static/fonts/source-sans-3/source-sans-3-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/static/fonts/source-sans-3/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("/static/fonts/source-sans-3/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("/static/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #fbf7f7;
  --surface: #ffffff;
  --sunk: #f6efef;
  --ink: #231a1b;
  --ink-2: #3d3133;
  --muted: #6e6062;
  --line: #ecdfe0;
  --line-2: #e2d3d5;
  --red: #c8102e;
  --red-strong: #b50e26;
  --red-deep: #8f0d22;
  --blush: #fdecee;
  --blush-line: #f5c9ce;
  --blush-hero: linear-gradient(160deg, #fde3e6 0%, #fdf0f1 55%, #fbf7f7 100%);
  --btn: linear-gradient(135deg, #d0101f 0%, #a3122a 100%);
  --ok: #1f6b3b;
  --ok-bg: #e1f2e7;
  --ok-line: #cbe5d4;
  --warn: #8a4f00;
  --warn-bg: #fff5e6;
  --warn-line: #f2d9ac;
  --danger: #b3261e;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid rgba(200, 16, 46, .35); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn-primary, .btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--display); text-decoration: none;
}
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 6px 16px rgba(200, 16, 46, .22); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); font-family: var(--body); }
.btn:hover { color: var(--ink); border-color: var(--blush-line); }
.btn-ghost { background: transparent; color: var(--red-strong); min-height: 36px; padding: 0 10px; font-family: var(--body); }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid #f1b8b4; }

/* Chips */
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.chip--unused { background: #eef1f6; color: #3b4a63; }
.chip--active { background: var(--ok-bg); color: var(--ok); }
.chip--ended { background: #f1ecec; color: #5f5254; }
.chip--void { background: var(--blush); color: var(--red-deep); }
.chip--sample { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; }
.input, .select {
  height: 46px; width: 100%; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px;
  font: 500 15px var(--body); color: var(--ink); background: var(--bg);
}
.input:focus, .select:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
