/* ePOD visual refresh -- shared theme layer, loaded after base.css by both apps.
   v0.8.94: the ePOD brand (Brand Guide.md, 9 Nov 2026) -- calm neutrals, one muted
   accent (Moss), Space Grotesk headings, Inter text in the office. Colour still carries
   meaning: near-black = loading, Moss = delivering / done / the thing to press,
   amber = waiting / needs a look, red = a problem. No ePlan Steel blue in ePOD.
   The driver app keeps Atkinson Hyperlegible for its text: it tells I, l, 1 and 0, O
   apart in Seq numbers and codes, which the kit's Inter files can't (no "ss02"). */

@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  /* Brand neutrals */
  --ink: #16181D;             /* headings, icons, main text */
  --text: #3A3F47;            /* Graphite: body text */
  --muted: #5F6670;           /* Stone: secondary text, labels (5.3:1 on Mist) */
  --paper: #F4F5F6;           /* Mist: page background */
  --surface: #FFFFFF;
  --line: #E3E5E8;            /* borders, dividers, progress tracks */
  --line-soft: #EDEFF1;
  --control-line: #8A9099;    /* inputs and tick boxes: 3:1 on white, so they stay visible outdoors */
  /* The ePOD accent: buttons, links, selected, delivered */
  --accent: #3D6B4E;          /* Moss -- white text 6.2:1 */
  --accent-soft: #E8F1EB;     /* Moss text on it 5.3:1 */
  --brand: var(--accent);     /* older rules that used the company colour on screen */
  --link: var(--accent);
  /* Meaning colours. "--blue" was loading / info: it's near-black now, never blue. */
  --blue: #16181D;
  --blue-soft: #ECEEF1;
  --green: #3D6B4E;
  --green-soft: #E8F1EB;
  --warning: #B0611A;         /* bars, icons, borders; text on white only (4.6:1) */
  --amber: #8A4A12;           /* amber TEXT on --amber-soft (6.6:1) */
  --amber-soft: #FBEEDF;
  --red: #B3261E;             /* 6.5:1 on white */
  --red-soft: #FBE9E7;
  --action: var(--accent);    /* main button colour */
  --radius: 14px;             /* cards */
  --radius-sm: 10px;          /* buttons, inputs */
  --radius-lg: 20px;          /* dialogs, sheets */
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

h1, h2, .brand-title { font-family: var(--font-display); letter-spacing: -0.01em; }
h3 { font-family: var(--font-display); }
dialog, .dialog-card { border-radius: var(--radius-lg); }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), select, textarea { border-color: var(--control-line); border-radius: var(--radius-sm); }
a { color: var(--link); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Sentence case labels: capitals are harder to read at a glance, and every label
   in capitals means none of them stands out. */
.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* Buttons: one solid main action per screen, outlined secondary, quiet text links. */
.primary-button, .ghost-button, .text-button, .danger-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0;
}
.primary-button {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
/* A disabled main button reads as "not yet", not as a faded error colour. */
.primary-button:disabled {
  opacity: 1;
  background: #dde2e7;
  border-color: #dde2e7;
  color: #4f5963;
}
.ghost-button { border: 2px solid var(--ink); background: var(--surface); }
.danger-button { border: 2px solid var(--red); background: var(--surface); color: var(--red); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

input[type="text"], input[type="date"], input[type="password"], input[type="email"], input[type="tel"], select, textarea {
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }

.field-label { color: var(--ink); font-size: 0.95rem; font-weight: 700; }

.tag { font-weight: 700; font-size: 0.8rem; }

.panel { border-radius: var(--radius); }

.toast { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Login help line (v0.8.49): what to do when locked out, under both login forms. */
.login-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* v0.8.94: the ePOD logo (text already outlined in the SVG, so it needs no font). */
.brand-title { display: flex; align-items: center; gap: 10px; margin: 0; line-height: 1; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand-sub { color: var(--muted); font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.login-brand { margin-bottom: 14px; }
.login-brand .brand-logo, .login-logo { height: 40px; }
.login-logo { margin: 0 0 14px; }
.brand-mark { flex: none; display: block; width: 32px; height: 32px; }
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-theme="dark"] .brand-logo { content: url("brand/ePOD-logo-on-dark.svg"); }

/* v0.8.95 (Aleks: "ePOD on the phone always opens a tiny bit zoomed in"): Safari on an
   iPhone zooms in when a text box under 16px gets the cursor -- the office login puts it
   in Username on open -- and doesn't zoom back out. On phones and tablets every text box
   and drop-down is at least 16px, so nothing zooms by itself. (Not "maximum-scale=1":
   that would also stop people pinching to zoom in to read.) !important because some
   office rules size these smaller with more specific selectors. */
@media (pointer: coarse), (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea { font-size: max(16px, 1em) !important; }
}
