/* NHC Digitisation Unit — design tokens and shared chrome.
   "Technical paper" light interface. Tokens mirror docs/dashboard-mockup.html. */

:root {
  --ink: #15191F;
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --slate: #59616E;
  --line: #E4E7EC;
  --ahead: #0E8C76;
  --ahead-deep: #0B6F5C;
  --behind: #C8742A;
  --accent: #1A5FB4;
  --accent-deep: #134A8E;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* identity keyline */
body::before { content: ""; display: block; height: 3px; background: var(--accent); }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

a { color: var(--accent-deep); }

/* topbar */
.topbar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 16px; gap: 16px; flex-wrap: wrap;
}
.mark { display: flex; align-items: baseline; gap: 10px; }
.mark .nhc { font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .02em; color: var(--accent-deep); }
.mark .unit { font-size: 13px; color: var(--slate); font-weight: 500; }
.topbar .who { font-family: var(--mono); font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 14px; }
.topbar .who b { color: var(--ink); font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 64px; }

.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 600; color: var(--slate); }

/* role chip */
.role-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(26, 95, 180, .10); color: var(--accent-deep);
}
.role-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* weekly recognition */
.award-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(100deg, rgba(14,140,118,.12), rgba(26,95,180,.10));
  border: 1px solid rgba(14,140,118,.30); border-radius: 14px;
  padding: 14px 16px; margin: 8px 0 22px;
}
.award-banner .medal { font-size: 26px; color: var(--ahead-deep); line-height: 1; }
.award-copy { display: flex; flex-direction: column; gap: 2px; }
.award-copy b { font-size: 15px; }
.award-sub { font-size: 12.5px; color: var(--slate); }
.award-x { margin-left: auto; background: none; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--slate); padding: 4px 8px; border-radius: 8px; }
.award-x:hover { color: var(--ink); }
.badge-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(201,168,76,.16); color: #8A6D1F;
}

/* cards / panels */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px;
}
.panel h2 { font-family: var(--body); font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.panel .sub { font-size: 12.5px; color: var(--slate); margin-bottom: 16px; }

.actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.action {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: var(--surface); transition: border-color 120ms ease, box-shadow 120ms ease;
}
.action:hover { border-color: var(--accent); box-shadow: 0 8px 22px -18px rgba(21, 25, 31, .5); }
.action .t { font-weight: 700; font-size: 15px; }
.action .d { font-size: 12.5px; color: var(--slate); margin-top: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--slate); }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; font-family: var(--body); font-size: 15px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 95, 180, .15); }
.form-error { color: var(--behind); font-size: 13px; margin-bottom: 14px; }

/* login */
.login-shell { min-height: calc(100vh - 3px); display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-card .brand { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.login-card .brand .nhc { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--accent-deep); }
.login-card h1 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 18px 0 4px; }
.login-card .lede { color: var(--slate); font-size: 13.5px; margin: 0 0 22px; }

footer.foot {
  max-width: var(--maxw); margin: 34px auto 0; padding: 0 24px 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: var(--slate); font-family: var(--mono);
}

/* accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible, .action:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .action { transition: none; }
}

@media (max-width: 540px) {
  .topbar { padding: 14px 18px; }
  .wrap { padding: 0 18px 48px; }
}
