/* ==========================================================================
   Tribute Capital Partners — Broker Portal
   Tokens ported from tcp-brand BRAND_GUIDE.md §2–3 (web palette) and
   tcp-marketing-site/src/styles/global.css. The palette is closed: navy
   variants + near-white neutrals. No gold, no new hues. Cream is the
   publication surface only — the business UI never uses it.
   ========================================================================== */

@font-face {
  font-family: 'Lora';
  src: url('/static/fonts/Lora-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/static/fonts/Lora-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('/static/fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('/static/fonts/Raleway-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --navy-900: #0E1E36;
  --navy-800: #162A4B;
  --navy-700: #2C3D54;
  --navy-accent: #4A6FA5;   /* marks, rules, underlines only — never large fills or body text */
  --gray-100: #F4F5F8;
  --gray-200: #E8EAF0;
  --gray-300: #E2E4EC;
  --gray-500: #98ABB7;
  --gray-600: #6B7280;
  --ink:      #2A2D35;      /* warm near-black — never #000 */
  --white:    #FFFFFF;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Spacing scale — use these instead of ad-hoc margins. */
  --space-1: 0.5rem;   /*  8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
}

*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible, .app-header :focus-visible, .auth-hero :focus-visible {
  outline-color: var(--white);
}

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

html { -webkit-text-size-adjust: 100%; background: var(--navy-900); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 180ms var(--ease), opacity 180ms var(--ease); }

/* ---------- Type ---------- */

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--navy-900);
  margin: 0 0 1rem;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 0.75rem;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--navy-900);
  margin: 0 0 0.5rem;
}

/* Section label: Raleway SemiBold 12px uppercase 0.14em + hairline (§3). */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy-900);
  margin: 0 0 1.25rem;
}
.eyebrow::after {
  content: '';
  flex: 0 0 3.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow.on-dark { color: var(--gray-500); }

.muted { color: var(--gray-600); }
.on-dark p, .on-dark .muted { color: rgba(255,255,255,0.82); }

/* ---------- The three controls (§12) — do not invent a fourth ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.btn.primary { background: var(--navy-900); color: var(--white); }
.btn.primary:hover { background: var(--navy-700); }
/* Unmodified .btn = the quiet secondary (Cancel, Override, …). */
.btn:not(.primary):not(.outline-light):not(.light) {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--gray-300);
}
.btn:not(.primary):not(.outline-light):not(.light):hover { border-color: var(--navy-900); }
.btn.outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn.outline-light:hover { background: var(--white); color: var(--navy-900); }
/* Solid white — the primary action when it sits on a navy ground (page band). */
.btn.light { background: var(--white); color: var(--navy-900); }
.btn.light:hover { background: var(--gray-200); }

.action {
  --action-ink: var(--navy-900);
  --action-on-fill: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--action-ink);
}
.action.on-dark, .on-dark .action { --action-ink: var(--white); --action-on-fill: var(--navy-900); }
.action-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 180ms var(--ease);
}
.action-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--action-ink);
  border-radius: 50%;
  color: var(--action-ink);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
a:hover .action-label, a:focus-visible .action-label { text-decoration-color: currentColor; }
a:hover .action-circle, a:focus-visible .action-circle {
  background: var(--action-ink);
  color: var(--action-on-fill);
  transform: scale(1.12);
}
@media (prefers-reduced-motion: reduce) {
  a:hover .action-circle, a:focus-visible .action-circle { transform: none; }
}

.text-link {
  color: var(--navy-900);
  text-decoration: none;
  background-image: linear-gradient(var(--navy-accent), var(--navy-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: color 180ms var(--ease), background-size 180ms var(--ease);
}
.text-link:hover { color: var(--navy-accent); background-size: 100% 2px; }
.on-dark .text-link, .on-dark .text-link:hover {
  color: var(--white);
  background-image: linear-gradient(var(--white), var(--white));
}

/* ---------- Editorial note (§6.11 / §13) — the house alternative to a
   filled callout card: a short MID_NAVY rule above muted text. ---------- */
.editorial-note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-600);
}
.editorial-note::before {
  content: '';
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-bottom: 0.9rem;
  background: var(--navy-700);
}

/* ---------- App shell ---------- */

.app-header {
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.app-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 0.9rem;
}
.app-header .logo img { height: 26px; width: auto; }
.app-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.75rem); }
.app-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0.85;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.app-nav a:hover { opacity: 1; }
/* The selected section gets an explicit underline, not just opacity. */
.app-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: rgba(255,255,255,0.85);
}

/* Mobile: the nav collapses behind a toggle (Alpine flips .open). */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.nav-toggle svg { display: block; }
@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .app-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.25rem 0.75rem;
  }
  .app-nav.open { display: flex; }
  .app-nav a, .app-nav button {
    padding: 0.6rem 0;
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .app-nav a { padding-left: 0.75rem; }
  .app-nav a[aria-current="page"] {
    border-bottom: none;
    border-left-color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
  }
  .app-nav .whoami { padding: 0.6rem 0.75rem 0.2rem; }
  .app-nav form { padding-left: 0.75rem; }
}
.app-nav .whoami { font-weight: 400; font-size: 0.8125rem; color: rgba(255,255,255,0.6); }
.app-nav form { margin: 0; }
.app-nav button {
  all: unset;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0.85;
}
.app-nav button:hover { opacity: 1; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

main { flex: 1; }

.section { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section.light { background: var(--white); color: var(--ink); }
.section.muted { background: var(--gray-100); color: var(--ink); }
.section.dark  { background: var(--navy-900); color: var(--white); }

/* Page header band: navy ground + the hero emblem watermark (§13.1) —
   oversized, bleeding off the right, white at 5%. */
.page-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 75% 20%, rgba(74,111,165,0.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 80%);
  color: var(--white);
}
/* Compact by design: the band titles the page; the working data owns the screen. */
.page-band .container { position: relative; z-index: 1; padding-block: clamp(1.1rem, 2vw, 1.6rem); }
.page-band h1 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}
.page-band .eyebrow { margin-bottom: 0.4rem; }
.page-band .dek {
  margin: 0.3rem 0 0;
  max-width: 720px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}
/* Title on the left, optional primary action on the right. */
.band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  flex-wrap: wrap;
}
.band-row .band-main { min-width: 0; }
.band-back {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
}
.band-back:hover { color: var(--white); }

/* One-time flash banner (see app/flash.py); sits at the top of <main>. */
.flash {
  border-left: 3px solid var(--navy-accent);
  background: var(--gray-200);
  color: var(--ink);
}
.flash .container { padding-block: 0.75rem; font-size: 0.9375rem; font-weight: 500; }
.flash-success { border-left-color: #2E7D52; background: #E7F3EC; }
.flash-error { border-left-color: #B3261E; background: #FBEAE8; }
.flash-info { border-left-color: var(--navy-accent); background: var(--gray-200); }

.band-watermark {
  position: absolute;
  top: 50%;
  right: -6%;
  height: 150%;
  transform: translateY(-50%);
  color: var(--white);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.band-watermark svg { display: block; height: 100%; width: auto; fill: currentColor; }
@media (max-width: 767px) { .band-watermark { right: -34%; } }

/* Full-screen auth hero (login): same navy ground + watermark, card-free. */
.auth-hero {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 75% 20%, rgba(74,111,165,0.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 80%);
  color: var(--white);
  padding-block: clamp(3rem, 8vh, 6rem);
}
.auth-hero .container { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.auth-hero .logo { margin-bottom: clamp(2rem, 6vh, 3.5rem); }
.auth-hero .logo img { height: 34px; width: auto; }
.auth-hero h1 { color: var(--white); }
.auth-hero p { color: rgba(255,255,255,0.82); }

/* ---------- Surfaces: content panel (no filled callout cards —
   panels are grounds, asides use .editorial-note) ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* Two-path chooser (e.g. the proposal front door): equal-height option cards. */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.choose-grid .panel { display: flex; flex-direction: column; gap: 0.6rem; }
.choose-grid .panel h2 { margin: 0; }
.choose-grid .panel .btn { margin-top: auto; align-self: flex-start; }
.choose-card-meta { font-size: 0.8125rem; color: var(--gray-600); }

/* ---------- Forms ---------- */
.tcp-form { display: grid; gap: 1rem; }
.tcp-form .field { display: grid; gap: 0.4rem; }
.tcp-form .field > span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.on-dark .tcp-form .field > span, .auth-hero .tcp-form .field > span { color: var(--gray-500); }
.tcp-form input, .tcp-form select, .tcp-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  padding: 0.6rem 0.85rem;
  outline: 0;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  resize: vertical;
  width: 100%;
}
.tcp-form input:focus, .tcp-form select:focus, .tcp-form textarea:focus { border-color: var(--navy-900); }
.auth-hero .tcp-form input { border-color: var(--white); }
.auth-hero .tcp-form input:focus { box-shadow: 0 0 0 2px var(--navy-accent); }
.tcp-form .form-note { font-size: 0.8125rem; color: var(--gray-600); margin: 0; }
/* Required marker inside a field label: <span>Name <em class="req">*</em></span> */
.tcp-form .req { font-style: normal; color: var(--navy-accent); }
.auth-hero .form-note { color: rgba(255,255,255,0.6); }
.tcp-form .checkbox-option { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.note-blocking { border-left: 3px solid var(--navy-900); padding-left: 1rem; color: var(--ink); }
.inst-options { display: grid; gap: 0.25rem; }
.inst-option {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 180ms var(--ease);
}
.inst-option:hover { border-color: var(--navy-900); }

/* ---------- Layout & badge utilities ---------- */
.stack-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.panel-narrow { max-width: 720px; }
.form-narrow { max-width: 480px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
}
.badge-system { background: var(--gray-100); }
.form-wide { max-width: 640px; }
.table-narrow { max-width: 560px; }
.table-wide { max-width: 720px; }
.pre-wrap { white-space: pre-wrap; }
.text-right { text-align: right; }
.text-sm { font-size: 0.8125rem; }
.inline-flex { display: inline-flex; gap: 0.4rem; }
.mb-1 { margin-bottom: 1.5rem; }
.mb-half { margin-bottom: 0.5rem; }
.ml-half { margin-left: 0.5rem; }
.btn.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8125rem; }
.checkbox-group { display: grid; gap: 0.5rem; }
.list-indent { margin: 0; padding-left: 1.25rem; }

/* Dashboard action list */
.action-list { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.action-list li { border-top: 1px solid var(--gray-300); }
.action-list li:last-child { border-bottom: 1px solid var(--gray-300); }
.action-list .action { width: 100%; justify-content: space-between; padding: 0.9rem 0; }
.action-list .action-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Metrics stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-top: 1rem;
}
.stat { padding-left: 1.5rem; border-left: 1px solid var(--gray-300); }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--navy-900);
}
.stat-label { color: var(--gray-600); margin-top: 0.5rem; }
.tcp-form .checkbox-option input[type="checkbox"] { width: auto; margin: 0; }

/* ---------- Data tables — the workstation surface: compact, scannable ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--white);
  background: var(--navy-900);
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
}
.data-table td {
  font-size: 0.875rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--ink);
}
.data-table tbody tr:hover { background: var(--gray-100); }

/* Wide tables scroll inside their own container on small screens —
   the page never scrolls horizontally. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--gray-300);
}
.table-scroll > .data-table { min-width: 640px; }
.table-scroll.narrow > .data-table { min-width: 420px; }
.table-scroll > .data-table th:first-child,
.table-scroll > .data-table td:first-child { padding-left: 1rem; }
.table-scroll > .data-table th:last-child,
.table-scroll > .data-table td:last-child { padding-right: 1rem; }

/* Status badge — monochrome by design: weight and fill carry the meaning. */
.status {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
  white-space: nowrap;
}
.status-protected, .status-converted { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.status-pending { border-color: var(--navy-700); color: var(--navy-700); }
.status-prospect { border-color: var(--gray-500); color: var(--navy-700); }
.status-cure { border-color: var(--navy-accent); color: var(--navy-900); background: var(--gray-200); }
.status-lapsed, .status-voided, .status-declined, .status-withdrawn { background: var(--gray-100); }
/* A date that needs attention (e.g. protection expiring inside 14 days). */
.due-soon { font-weight: 600; color: var(--navy-900); }

/* ---------- List-page furniture: KPI strip, toolbar, filter tabs ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
}
.kpi {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: var(--space-2) 1.25rem;
}
.kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--navy-900);
}
.kpi-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-top: 0.3rem;
}
.kpi-note { font-size: 0.8125rem; color: var(--gray-600); margin-top: 0.15rem; }

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  flex-wrap: wrap;
  margin-block: var(--space-3) var(--space-2);
}
.list-toolbar .tcp-form { flex: 1 1 260px; max-width: 380px; }

.filter-tabs { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.filter-tabs a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.filter-tabs a:hover { color: var(--navy-900); }
.filter-tabs a[aria-current="true"] { color: var(--navy-900); border-bottom-color: var(--navy-900); }
.filter-tabs .count { font-weight: 400; color: var(--gray-500); }

/* Panel header row: small heading left, contextual link right. */
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.panel-head .h3, .panel-head h2, .panel-head h3 { margin: 0; }

/* Empty state: explain what belongs here, then the way to create it. */
.empty-state {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}
.empty-state p { max-width: 46ch; margin: 0 auto var(--space-2); color: var(--gray-600); }
.empty-state .h3 { margin-bottom: 0.4rem; }

/* ---------- Detail pages: two columns on desktop, stacked on mobile ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid > .span-2 { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.app-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.app-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.max-prose { max-width: 62ch; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
