/* Shared by the public site and the dashboard. Brand: navy, blue, paper, white; flat, bordered. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #101c2d;
  --blue: #2457e6;
  --blue-dark: #1b44b8;
  --blue-tint: #e6ecfc;
  --paper: #f4f2ec;
  --white: #ffffff;
  --ink: #3a4557;      /* secondary text on white and paper; 9.4:1 on white */
  --rule: #d8d4c8;     /* quiet separators */
  --line: #101c2d;     /* structural borders */
  /* Status colours: only for status. */
  --ok: #17663f;   --ok-tint: #e3f1e9;
  --warn: #8a4b00; --warn-tint: #f8ecd9;
  --bad: #a3221a;  --bad-tint: #f9e3e1;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 6px;
  --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--navy); background: var(--white); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
p, ul, ol, dl, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 2px solid var(--navy); border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--navy);
}
.btn:hover { background: var(--paper); color: var(--navy); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: #22324a; color: var(--white); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 0.9375rem; }
.field .hint { font-size: 0.875rem; color: var(--ink); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--white);
  border: 2px solid #8b93a1; border-radius: var(--radius-sm);
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: 3px solid var(--blue-tint); outline-offset: 0; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--bad); }
.field .error { color: var(--bad); font-size: 0.875rem; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }

/* Status pills: status only. */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; border: 1.5px solid currentColor; }
.pill-ok { color: var(--ok); background: var(--ok-tint); }
.pill-warn { color: var(--warn); background: var(--warn-tint); }
.pill-bad { color: var(--bad); background: var(--bad-tint); }
.pill-info { color: var(--blue-dark); background: var(--blue-tint); }
.pill-plain { color: var(--ink); background: var(--white); border-color: var(--rule); }

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