/* EIA Public Review Portal — design tokens & base components.
   Warm paper background + deep ink-navy structure, with a brand red pulled
   from Yone's logo used only as a decorative accent (nav underline, footer
   rule, card highlights). The amber/red *status* colours are kept visually
   distinct from the brand red and reserved strictly for time-sensitive
   meaning — deadlines, "closing soon", late-comment flags — never decorative. */

:root {
  --paper: #faf7f2;
  --paper-raised: #ffffff;
  --ink: #12283d;
  --ink-dark: #0b1c2c;
  --ink-soft: #3d5771;
  --line: #e4ddd1;
  --text: #1c1a17;
  --text-muted: #6b6459;
  --brand: #c4351f;
  --brand-soft: #f4e3de;

  --status-amber: #8a5300;
  --status-amber-bg: #fbeed9;
  --status-red: #a3170e;
  --status-red-bg: #f9e2df;
  --status-green: #206b34;
  --status-green-bg: #e3f1e6;
  --focus-ring: #ffbf47;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

  --radius: 6px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;

  --width: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.0625rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1875rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--ink); }

/* Visible focus state everywhere — this is a legal/compliance-facing
   public tool, keyboard and screen-reader access is not optional. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper-raised);
  color: var(--ink);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
.skip-link:focus { left: var(--space-1); top: var(--space-1); }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--space-3); }
.note { color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
.site-header-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }
.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.brand .logo { display: block; height: 76px; width: auto; flex-shrink: 0; }
.brand .org-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.brand .system-name { display: block; font-size: 0.8rem; color: var(--text-muted); }

.nav-toggle-input { position: absolute; left: -9999px; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
}
.nav-toggle-label span { display: block; width: 100%; height: 2px; background: var(--ink); }
.nav-toggle-input:focus-visible + .nav-toggle-label { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:hover { border-bottom-color: var(--brand); color: var(--ink); }
.brand-rule { height: 3px; background: var(--brand); }

@media (max-width: 720px) {
  .brand .logo { height: 52px; }
  .nav-toggle-label { display: flex; }
  .site-nav {
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .site-nav a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Page shell / sticky footer ---------- */
main { flex: 1 0 auto; padding: var(--space-4) 0; }

.site-footer { background: var(--ink); color: #dce6ee; padding: 34px 0 18px; margin-top: auto; flex: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.footer-grid p { color: #cdd9e2; font-size: 0.92rem; max-width: 42ch; }
.footer-grid nav { display: flex; flex-direction: column; }
.footer-grid a { color: #cdd9e2; text-decoration: none; font-size: 0.92rem; margin-bottom: 8px; }
.footer-grid a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-1); font-size: 0.8rem; color: #9fb2c1; flex-wrap: wrap; gap: 10px; }
.staff-link { color: #9fb2c1; text-decoration: none; }
.staff-link:hover { color: #fff; text-decoration: underline; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--paper-raised); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: var(--status-red); color: #fff; }
.btn-danger:hover { background: #7d120b; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.danger-zone { border: 1px solid var(--status-red); background: var(--status-red-bg); }
.danger-zone h2 { color: var(--status-red); border-bottom-color: var(--status-red); }

/* ---------- Status tags — the only place status colours appear ---------- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.24rem 0.65rem;
  border-radius: 100px;
}
.tag-open { background: var(--status-green-bg); color: var(--status-green); }
.tag-closing-soon { background: var(--status-amber-bg); color: var(--status-amber); }
.tag-closed,
.tag-late { background: var(--status-red-bg); color: var(--status-red); }
.tag-neutral { background: var(--paper); border: 1px solid var(--line); color: var(--text-muted); }

/* Countdown component */
.countdown {
  border: 1px solid var(--line);
  border-left: 4px solid var(--status-amber);
  background: var(--status-amber-bg);
  border-radius: var(--radius);
  padding: var(--space-2);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.countdown[data-state="closed"] {
  border-left-color: var(--status-red);
  background: var(--status-red-bg);
}
.countdown .days { font-size: 1.75rem; font-weight: 700; font-family: var(--font-mono); color: var(--text); }
.countdown .label { color: var(--text-muted); }
.countdown-inline { font-family: var(--font-mono); font-size: 0.85rem; color: var(--status-amber); }
.countdown-inline.closed { color: var(--status-red); }

/* Document row / folder tree */
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}
.doc-row:last-child { border-bottom: none; }
.doc-row:nth-child(even) { background: var(--paper); }
.doc-row .name { flex: 1; font-weight: 600; }
.doc-row .meta { color: var(--text-muted); font-size: 0.88rem; font-family: var(--font-mono); white-space: nowrap; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="datetime-local"], input[type="number"], textarea, select {
  font: inherit;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: var(--space-2);
}
input[type="checkbox"] { width: auto; margin: 0 0.4rem 0 0; }
input[type="radio"] { width: auto; margin: 0; }

.export-picker summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; display: inline-block; }
.export-picker summary::-webkit-details-marker { display: none; }
.export-picker summary::before { content: "▸ "; }
.export-picker[open] summary::before { content: "▾ "; }
.export-form { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); }
.export-options { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.export-options fieldset { border: none; padding: 0; margin: 0; }
.export-options legend { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; padding: 0; }
.export-options label { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; margin-bottom: 6px; }
.field-hint { color: var(--text-muted); font-size: 0.88rem; margin-top: -0.6rem; margin-bottom: var(--space-2); }
.field-checkbox { display: flex; align-items: center; gap: 0.4rem; margin-bottom: var(--space-2); }
.field-checkbox label { margin-bottom: 0; font-weight: 400; }
.field-errors { color: var(--status-red); font-size: 0.85rem; margin: -0.4rem 0 var(--space-2); }
.required-star { color: var(--brand); }
.required-legend { font-style: italic; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.form-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin-bottom: 22px; }
.form-card h2 { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; font-size: 1.2rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2); }
.consent-box { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--space-2); font-size: 0.92rem; display: flex; gap: 10px; align-items: flex-start; }
.consent-box input { width: auto; margin: 3px 0 0; }

@media (max-width: 720px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.swatch {
  display: inline-flex;
  flex-direction: column;
  width: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 var(--space-2) var(--space-2) 0;
}
.swatch .fill { height: 70px; }
.swatch .label { padding: 0.4rem 0.6rem; font-size: 0.8rem; background: var(--paper-raised); }

/* ---------- Hero + "how it works" steps ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-3); align-items: center; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); margin-bottom: var(--space-4); }
.hero .kicker { color: var(--brand); text-transform: uppercase; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.hero p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; margin-top: var(--space-2); flex-wrap: wrap; }

.steps-card ol { margin: 0; padding-left: 20px; }
.steps-card li { margin-bottom: var(--space-2); font-size: 0.94rem; }
.steps-card li:last-child { margin-bottom: 0; }
.steps-card li strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.02rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---------- Project card grid ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-2); flex-wrap: wrap; gap: 10px; }
.section-head .view-all { font-size: 0.92rem; font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-2); }
.project-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: var(--space-3); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .15s; }
.project-card:hover { border-color: var(--ink); }
.project-card .ref { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.project-card h3 { margin: 0; }
.project-card .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.project-card .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }

/* Projects list filter bar */
.filter-bar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: var(--space-3); }
.filter-bar label { display: inline; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; margin-right: 6px; }
.filter-bar select, .filter-bar input[type="text"] { font: inherit; width: auto; padding: 0.4rem 0.6rem; margin-bottom: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.bulk-bar { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }
.bulk-bar select { width: auto; margin-bottom: 0; }
.row-check { width: auto; margin: 0; }
.filter-chip { border: 1px solid var(--line); background: var(--paper); padding: 0.4rem 0.9rem; border-radius: 100px; font-size: 0.85rem; text-decoration: none; color: var(--text); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-bar .count { margin-left: auto; font-size: 0.85rem; color: var(--text-muted); }

.pagination-bar { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }
.pagination-bar a { font-weight: 600; font-size: 0.88rem; }
.pagination-bar .note { margin: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.breadcrumbs a { font-weight: 600; }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs .current { font-weight: 600; color: var(--text-muted); }

.eyebrow { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; margin: 0 0 4px; }

/* ---------- Project detail: two-column layout ---------- */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); align-items: start; }
.sidebar-card { position: sticky; top: 20px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: var(--space-3); }
.sidebar-card dl { margin: 0 0 var(--space-2); }
.sidebar-card dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 10px; }
.sidebar-card dt:first-child { margin-top: 0; }
.sidebar-card dd { margin: 2px 0 0; font-weight: 600; }
.sidebar-card .btn { margin-bottom: 10px; }
.phase-block { margin-bottom: var(--space-4); }

/* Generic summary dt/dd pattern — used anywhere a card shows a handful of
   read-only key/value facts (project hub, authority link, stakeholder). */
.summary-dl dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 10px; }
.summary-dl dt:first-child { margin-top: 0; }
.summary-dl dd { margin: 2px 0 0; font-weight: 600; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

/* Data table — comment registers, CRR-style listings */
.data-table-wrap { overflow-x: auto; margin-bottom: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; }
.data-table thead tr { background: var(--paper); border-bottom: 1px solid var(--line); }
.data-table tbody tr { border-bottom: 1px solid var(--line); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table .refcell { font-family: var(--font-mono); font-size: 0.82rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2); margin-top: 6px; }
.contact-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: var(--space-3); }
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card .swatch-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }

/* ---------- Auth shell (staff sign-in / OTP / 2FA setup) ---------- */
.auth-shell { display: grid; grid-template-columns: 1.1fr 1fr; flex: 1 0 auto; }
.auth-side { background: var(--ink); color: #dce6ee; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand-mark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.auth-side .brand-mark img { height: 48px; }
.auth-side .brand-mark span { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: #fff; }
.auth-side .mission { max-width: 34ch; }
.auth-side .mission h2 { color: #fff; font-size: 1.5rem; }
.auth-side .mission p { color: #b9c9d5; }
.auth-side .back { color: #9fb2c1; text-decoration: none; font-size: 0.88rem; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px; background: var(--paper-raised); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .step { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); margin-bottom: var(--space-3); }
.auth-card .error { color: var(--status-red); background: var(--status-red-bg); border-radius: var(--radius); padding: 10px 14px; margin-bottom: var(--space-2); font-size: 0.9rem; }
.form-error { color: var(--status-red); background: var(--status-red-bg); border-radius: var(--radius); padding: 10px 14px; margin-bottom: var(--space-2); font-size: 0.95rem; }

/* Flash messages (django.contrib.messages) on the public site */
.flash { border-radius: var(--radius); padding: 12px 16px; margin-bottom: var(--space-2); font-size: 0.95rem; border: 1px solid transparent; }
.flash-success { background: var(--status-green-bg); color: var(--status-green); border-color: var(--status-green); }
.flash-error { background: var(--status-red-bg); color: var(--status-red); border-color: var(--status-red); }
.flash-warning { background: var(--status-amber-bg); color: var(--status-amber); border-color: var(--status-amber); }
.flash-info { background: var(--paper); color: var(--text); border-color: var(--line); }
.auth-hint { margin-top: var(--space-2); padding: var(--space-2); border: 1px dashed var(--line); border-radius: var(--radius); font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* ---------- Staff area (post-login) ---------- */
.staff-topbar { background: var(--ink); color: #fff; padding: 14px 0; flex: none; }
.staff-topbar .in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.staff-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.staff-brand img { height: 32px; }
.staff-brand .lbl { font-family: var(--serif); font-weight: 600; color: #fff; }
.staff-brand .area { background: rgba(255, 255, 255, 0.14); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 100px; margin-left: 6px; color: #fff; }
.staff-user { display: flex; align-items: center; gap: var(--space-2); font-size: 0.88rem; flex-wrap: wrap; }
.staff-user a { color: #cdd9e2; text-decoration: none; }
.staff-user a:hover { color: #fff; text-decoration: underline; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: #cdd9e2; cursor: pointer; }
.link-btn:hover { color: #fff; text-decoration: underline; }

.hub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.hub-head p { color: var(--text-muted); max-width: 60ch; }

.org-chip { display: flex; align-items: center; gap: 0.6rem; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 100px; padding: 0.5rem 1rem; font-size: 0.85rem; white-space: nowrap; }
.org-chip-label { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.68rem; color: var(--text-muted); font-weight: 700; }
.org-chip-name { font-weight: 600; color: var(--ink); }
.org-chip a { font-weight: 600; font-size: 0.82rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-bottom: var(--space-4); }
.stat-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: var(--space-2); }
.stat-card .num { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat-card.attention .num { color: var(--status-amber); }
.stat-card .lbl { font-size: 0.85rem; color: var(--text-muted); margin: 8px 0 10px; }
.stat-card a { font-size: 0.82rem; font-weight: 600; }
.stat-card-links { display: flex; flex-direction: column; gap: 0.35rem; }
.stat-card-links a { display: block; }

.task-group { margin-bottom: var(--space-4); }
.task-group h2 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-2); }
.task-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: var(--space-2); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.task-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.task-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; }
.task-card p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }
.task-card .go { margin-top: auto; font-size: 0.82rem; font-weight: 700; color: var(--brand); }

.hub-note { background: var(--brand-soft); border: 1px solid var(--brand); border-radius: 10px; padding: 18px 22px; margin-top: var(--space-1); font-size: 0.92rem; }
.hub-note strong { color: var(--brand); }

@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
}
