/*
 * CO-ORM stylesheet, following the CO-OP ev design guidelines:
 * black and white, square corners, no shadows, Special Gothic Expanded One
 * for titles and buttons, Inter for text, magenta focus ring.
 * As in CO-OPT, the colour gradients are left out (specs v2 section 1).
 *
 * All colours, fonts and sizes are defined once, in the variables below.
 */

/* ---- Fonts (bundled with CO-ORM: no call to Google from users' browsers) ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.51205681a1ba.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.90ff4f7e8bcb.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-latin-700-normal.8ca0a5155296.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.aa4c26661f64.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Special Gothic Expanded One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/special-gothic-expanded-one-latin-400-normal.b5aac1eb4f70.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Special Gothic Expanded One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/special-gothic-expanded-one-latin-ext-400-normal.65c700d8c375.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---- Design tokens (from the CO-OP ev design system) ---- */
:root {
  --black: #000000;
  --white: #ffffff;
  --primary: #0f69b4;      /* CO-OP blue: links on white (5.7:1) */
  --magenta: #ff42fa;      /* focus ring */
  --amber: #f9b133;
  --grey-light: #e8e8e8;   /* hairlines */
  --input: #f8f8f8;        /* field fill */
  --muted: #5e5e5e;        /* secondary text on white (6.5:1) */
  --error: #c42b1c;        /* darker than the brand red so error text reads on white (6.0:1) */
  --font-display: "Special Gothic Expanded One", Inter, Arial, sans-serif;
  --font-text: Inter, Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 32px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--font-text); font-weight: 500;
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--black); }
:focus-visible { outline: 4px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 38px; }
h2 { font-size: 17px; line-height: 24px; margin-bottom: var(--space-3); }
h3 { font-family: var(--font-text); font-weight: 700; font-size: 15px; margin: var(--space-3) 0 var(--space-2); }
p { margin: 0 0 var(--space-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Page layout: black side menu + white content ---- */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.sidebar { flex: 1 1 230px; background: var(--black); color: var(--white); padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar a { color: var(--white); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; display: block; }
.brand-name { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-text); font-size: 10px; letter-spacing: .02em; color: #acacac; margin-top: 4px; }
.sidebar form.search { display: flex; gap: 6px; }
.sidebar form.search input { flex: 1; min-width: 0; background: var(--white); }
.menu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: 15px; border-left: 4px solid transparent; }
.menu a:hover { background: #1c1c1c; }
.menu a[aria-current="page"] { border-left-color: var(--white); background: #1c1c1c; font-weight: 700; }
.menu .badge { font-size: 11px; color: #acacac; font-weight: 500; }
.sidebar-user { margin-top: auto; border-top: 1px solid #333; padding-top: var(--space-3); font-size: 13px; }
.sidebar-user .role { color: #acacac; }
.linkbutton { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.main { flex: 999 1 560px; min-width: 0; padding: var(--space-4) var(--space-5) 64px; display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar-content { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.sidebar .menu-toggle { display: none; }
@media (max-width: 800px) {
  .main { padding: var(--space-4) var(--space-3) 48px; }
  .sidebar { flex-basis: 100%; gap: var(--space-3); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px var(--space-3); }
  .sidebar-content { flex-basis: 100%; gap: var(--space-3); }
  .sidebar-user { margin-top: 0; }
  /* On phones the menu folds behind the "Menu" button (only when JavaScript works). */
  .js .sidebar .menu-toggle { display: inline-flex; background: var(--white); }
  .js .sidebar-content { display: none; }
  .js .sidebar.open .sidebar-content { display: flex; }
}

/* ---- Page header ---- */
.breadcrumb { font-size: 13px; color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-start; justify-content: space-between; }
.page-head .subtitle { color: var(--muted); margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---- Buttons: square, labels in the display face ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px;
  border: 2px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); text-decoration: none;
  font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1.2; cursor: pointer; }
.btn:hover { background: var(--black); color: var(--white); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #333; border-color: #333; color: var(--white); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 12px; }
.btn-quiet { border-color: var(--grey-light); }
.btn[aria-pressed="true"], .btn.is-active { background: var(--black); color: var(--white); }
.btn-danger { border-color: var(--error); color: var(--error); }
.btn-danger:hover { background: var(--error); border-color: var(--error); color: var(--white); }
form.inline { display: inline; }

/* ---- Cards (content blocks) ---- */
.card { background: var(--white); border: 1px solid var(--grey-light); padding: 20px; }
.card > h2:first-child, .card-head { margin-top: 0; }
.card-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.card-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-4); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Details lists ---- */
dl.details { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.details { grid-template-columns: 1fr; gap: 2px; } dl.details dd { margin-bottom: 8px; } }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; font-size: 12px; text-transform: none; color: var(--black);
  border-bottom: 2px solid var(--black); padding: 8px; white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--grey-light); padding: 10px 8px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { font-weight: 700; }
.empty { color: var(--muted); padding: 8px 0; }

/* ---- Tags and status labels: square ---- */
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--black); background: var(--white); font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.tag-solid { background: var(--black); color: var(--white); }
.tag-overdue { background: var(--error); border-color: var(--error); color: var(--white); }
.tag-grey { border-color: var(--grey-light); background: var(--grey-light); }
.phase { display: inline-block; padding: 0 6px; border: 1px dashed var(--muted); font-size: 11px; color: var(--muted); }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 960px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 24px; }
.field label, .field legend, .label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field.wide { grid-column: 1 / -1; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number],
input[type=url], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--black); background: var(--input);
  border: 2px solid var(--black); border-radius: 0; padding: 8px 12px; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--black); }
.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--error); font-size: 13px; font-weight: 700; }
.errorlist li::before { content: "Error: "; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.choices label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; margin: 0; }
.radio-buttons { display: flex; flex-wrap: wrap; gap: 0; }
.radio-buttons label { margin: 0; }
.radio-buttons input { position: absolute; opacity: 0; }
.radio-buttons span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--black);
  margin-right: -2px; font-family: var(--font-display); font-size: 14px; cursor: pointer; background: var(--white); }
.radio-buttons input:checked + span { background: var(--black); color: var(--white); }
.radio-buttons input:focus-visible + span { outline: 4px solid var(--magenta); outline-offset: 2px; }
.confidential textarea { border-style: dashed; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }

/* ---- Link picker (chips) ---- */
.picker { position: relative; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 10px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 700; }
.chip button { background: none; border: 0; color: var(--white); font-size: 18px; line-height: 1; min-width: 32px; min-height: 32px; cursor: pointer; }
.chip.is-new { background: var(--white); color: var(--black); border: 2px dashed var(--black); }
.chip.is-new button { color: var(--black); }
.picker-results { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none;
  background: var(--white); border: 2px solid var(--black); border-top: 0; max-height: 280px; overflow-y: auto; }
.picker-results li { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--grey-light); font-size: 14px; }
.picker-results li[aria-selected="true"], .picker-results li:hover { background: var(--black); color: var(--white); }
.picker-results .extra { display: block; font-size: 12px; opacity: .75; }

/* ---- Messages and warnings ---- */
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 16px; border: 2px solid var(--black); font-weight: 700; }
.messages li.error { border-color: var(--error); color: var(--error); }
.warning { border: 4px solid var(--black); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.warning h2 { margin: 0; }

/* ---- Notes ---- */
.note { border-bottom: 1px solid var(--grey-light); padding: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.note:first-of-type { padding-top: 0; }
.note:last-child { border-bottom: 0; }
.note-meta { font-size: 13px; color: var(--muted); }
.conf { border: 2px dashed var(--black); padding: 10px 12px; font-size: 14px; }
.conf.hidden-part { border-color: var(--muted); color: var(--muted); }
.note-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 24px; }

/* ---- Funnel: kanban, list, counts ---- */
.view-tabs { display: flex; flex-wrap: wrap; gap: 0; }
.view-tabs .btn { margin-right: -2px; }
.kanban-wrap { overflow-x: auto; padding-bottom: 8px; }
.kanban { display: flex; gap: 12px; min-width: max-content; }
.kanban-col { width: 200px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.kanban-col h3 { margin: 0; font-size: 13px; line-height: 1.3; min-height: 34px; }
.kanban-col .count { font-size: 12px; color: var(--muted); border-bottom: 2px solid var(--black); padding-bottom: 6px; }
.kanban-card { display: block; border: 1px solid var(--grey-light); padding: 10px; text-decoration: none; color: var(--black); font-size: 13px; background: var(--white); }
.kanban-card:hover { border-color: var(--black); color: var(--black); }
.kanban-card strong { display: block; }
.kanban-card.stuck { border: 2px solid var(--black); }
.stuck-label { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; background: var(--black); color: var(--white); padding: 1px 6px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 240px) minmax(0, 1fr) 32px; gap: 12px; align-items: center; font-size: 13px; }
.bar-track { height: 16px; background: var(--grey-light); }
.bar-fill { height: 16px; background: var(--black); }
[hidden] { display: none !important; }

/* ---- Stage progress on the project page ---- */
.steps { display: flex; gap: 4px; min-width: max-content; }
.step { width: 96px; font-size: 11px; line-height: 1.3; display: flex; flex-direction: column; gap: 6px; }
.step .bar { height: 8px; background: var(--grey-light); }
.step.done .bar { background: var(--black); }
.step.current { font-weight: 700; }

/* ---- Organisation hierarchy ---- */
.tree { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.tree li { display: flex; align-items: center; gap: 8px; }
.tree .node { border: 1px solid var(--grey-light); padding: 4px 10px; }
.tree .node.current { border: 2px solid var(--black); font-weight: 700; }

/* ---- Login pages ---- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: var(--black); }
.auth-box { width: 100%; max-width: 440px; background: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.auth-box .brand { color: var(--black); }
.qr svg { width: 200px; height: 200px; display: block; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; columns: 2; padding: 0; list-style: none; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---- Settings tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--black); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; color: var(--black);
  font-family: var(--font-display); font-size: 13px; }
.tabs a[aria-current="page"] { background: var(--black); color: var(--white); }
.copy-box { display: flex; gap: 8px; }
.copy-box input { flex: 1; }

@media print { .sidebar, .actions, .btn { display: none !important; } .main { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =====================================================================
 * Colour accents (CO-OP ev palette), added on request after V1 review.
 * The brand gradient is used only as thin accents; blue / amber / magenta
 * mark funnel stages and stagnation. Magenta and amber are never used as
 * text on white (contrast too low): only as fills behind black text or
 * as decoration.
 * ===================================================================== */
:root {
  --gradient: linear-gradient(75deg, #0f69b4, #ff42fa, #f9b133);
  --blue-tint: #e7f0f8;
  --amber-tint: #fef3df;
  --magenta-tint: #ffe8fe;
}

/* Gradient rule under each page title */
.main > h1::after, .page-head h1::after, .main > .page-head > div > h1::after {
  content: ""; display: block; width: 120px; height: 3px; background: var(--gradient); margin-top: 12px;
}
.auth-box { border-top: 6px solid transparent; border-image: var(--gradient) 1; }

/* Active menu entry: gradient bar instead of white */
.menu a[aria-current="page"] { border-left-color: transparent; position: relative; }
.menu a[aria-current="page"]::before { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; background: var(--gradient); }

/* Primary buttons: black plate with the brand's gradient glow */
/* The glow sits behind a black "plate" (::after), as in the CO-OP ev design system. */
.btn-primary { position: relative; z-index: 0; isolation: isolate; background: transparent; }
.btn-primary::before, .btn-primary::after { content: ""; position: absolute; z-index: -1; }
.btn-primary::before { inset: -2px; background: var(--gradient); filter: blur(4px); transition: filter .2s; }
.btn-primary::after { inset: -2px; background: var(--black); transition: opacity .2s; }
.btn-primary:hover { background: transparent; border-color: transparent; }
.btn-primary:hover::before, .btn-primary:focus-visible::before { filter: blur(8px); }
.btn-primary:hover::after { opacity: .8; }

/* Cards: thin gradient line on top of the funnel card */
.card.card-accent { border-top: 3px solid transparent; border-image: var(--gradient) 1; border-image-width: 3px 0 0 0; }

/* Stage types: blue = open, amber = won, grey = lost */
.tag-open { background: var(--primary); border-color: var(--primary); color: var(--white); }
.tag-won { background: var(--amber); border-color: var(--amber); color: var(--black); }
.tag-lost { background: var(--grey-light); border-color: var(--grey-light); color: var(--black); }
.kanban-col.kind-open .count { border-bottom-color: var(--primary); }
.kanban-col.kind-won .count { border-bottom-color: var(--amber); }
.kanban-col.kind-lost .count { border-bottom-color: var(--muted); }
.kanban-col.kind-open .kanban-card { background: var(--blue-tint); border-color: var(--blue-tint); }
.kanban-col.kind-won .kanban-card { background: var(--amber-tint); border-color: var(--amber-tint); }
.kanban-card:hover { border-color: var(--black); }
.bar-fill.kind-open { background: var(--primary); }
.bar-fill.kind-won { background: var(--amber); }
.bar-fill.kind-lost { background: var(--muted); }

/* Stagnation: magenta */
.kanban-card.stuck { border: 2px solid var(--magenta); }
.stuck-label { background: var(--magenta); color: var(--black); }
.months-stuck { display: inline-block; background: var(--magenta); color: var(--black); font-weight: 700; padding: 0 8px; }

/* Project stage progress: blue for open steps, amber once won, black outline on the current one */
.step.done .bar { background: var(--primary); }
.step.done.kind-won .bar { background: var(--amber); }
.step.current .bar { outline: 2px solid var(--black); outline-offset: 1px; }

/* Picker chips and pressed buttons in CO-OP blue */
.chip { background: var(--primary); }
.view-tabs .btn[aria-pressed="true"], .view-tabs .btn.is-active { background: var(--primary); border-color: var(--black); color: var(--white); }

/* Note channels: small coloured square before the label */
.tag[data-channel]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; }
.tag[data-channel="call"]::before { background: var(--primary); }
.tag[data-channel="meeting"]::before { background: var(--magenta); }
.tag[data-channel="information"]::before { background: var(--amber); }

/* Confidential parts: magenta tint */
.conf { background: var(--magenta-tint); }
.conf.hidden-part { background: var(--white); }

/* Form controls in brand blue */
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.radio-buttons input:checked + span { background: var(--primary); border-color: var(--black); }

/* ---- More colour (second round of review) ---- */
.card { border-top: 4px solid transparent; border-image: var(--gradient) 1; border-image-width: 4px 0 0 0;
  border-left: 1px solid var(--grey-light); border-right: 1px solid var(--grey-light); border-bottom: 1px solid var(--grey-light); }
.menu a[aria-current="page"] { background: var(--primary); }
.menu a:hover { background: #1a2a3a; }

/* Dashboard key figures */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--black); }
.kpi:hover { color: var(--black); outline: 2px solid var(--black); }
.kpi .value { font-family: var(--font-display); font-size: 34px; line-height: 1.1; }
.kpi .label { font-size: 13px; font-weight: 700; }
.kpi .sub { font-size: 12px; }
.kpi-blue { background: var(--primary); color: var(--white); }
.kpi-blue:hover { color: var(--white); }
.kpi-amber { background: var(--amber); }
.kpi-magenta { background: var(--magenta); }
.kpi-gradient { background: var(--gradient); color: var(--white); }
.kpi-gradient .value, .kpi-gradient .label, .kpi-gradient .sub { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.kpi-gradient:hover { color: var(--white); }

/* Project tags: one colour each (cycled by tag) */
.ptag { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.ptag-0 { background: var(--primary); color: var(--white); }
.ptag-1 { background: var(--magenta); color: var(--black); }
.ptag-2 { background: var(--amber); color: var(--black); }
.ptag-3 { background: #5e5e5e; color: var(--white); }
.ptag-4 { background: var(--black); color: var(--white); }
