/*
  NPCA Match Admin Portal -- visual foundation (added 2026-07-24, production usability packet).
  Plain CSS, no build step, no external fonts/CDN -- matches this app's own "no external
  dependency unless approved" discipline. Styles layout/typography/color only; no template here
  changes what data is shown or how authorization/audit/query logic behaves.
*/

:root {
  /* MGB/NPCA brand direction: deep navy for structure, MGB green for positive/healthy states. */
  --color-navy-900: #0b1f3a;
  --color-navy-800: #12294d;
  --color-navy-700: #1b3a66;
  --color-navy-600: #274a7d;

  --color-green-600: #1f7a4d;
  --color-green-700: #175f3c;
  --color-green-100: #e4f4ec;

  --color-warning-600: #b7791f;
  --color-warning-100: #fdf3e0;

  --color-danger-600: #b3261e;
  --color-danger-100: #fbe9e7;

  --color-info-600: #2563a8;
  --color-info-100: #e7f0fa;

  --color-neutral-900: #1a1f28;
  --color-neutral-700: #3f4652;
  --color-neutral-500: #6b7280;
  --color-neutral-300: #d7dbe0;
  --color-neutral-200: #e9ecf0;
  --color-neutral-100: #f4f6f8;
  --color-white: #ffffff;

  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 3px rgba(11, 31, 58, 0.08), 0 1px 2px rgba(11, 31, 58, 0.06);
  --focus-ring: 0 0 0 3px rgba(39, 74, 125, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-neutral-900);
  background: var(--color-neutral-100);
  line-height: 1.5;
}

h1, h2, h3 { color: var(--color-navy-900); line-height: 1.25; }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.125rem; margin: 1.5rem 0 .75rem; }

a { color: var(--color-navy-700); }
a:hover { color: var(--color-green-700); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-white);
  color: var(--color-navy-900);
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-navy-700);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-navy-800); color: var(--color-white); }
.btn--ghost {
  background: transparent;
  border-color: var(--color-neutral-300);
  color: var(--color-neutral-900);
}
.btn--ghost:hover { background: var(--color-neutral-200); }
button.btn, form button[type="submit"] {
  font: inherit;
}

/* Default, unclassed buttons (existing markup in a few screens) still get baseline styling so
   nothing regresses to raw browser chrome. */
button[type="submit"]:not(.btn) {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--color-navy-700);
  color: var(--color-white);
  cursor: pointer;
}
button[type="submit"]:not(.btn):hover { background: var(--color-navy-800); }

/* ---------- Forms ---------- */
form p { margin: 0 0 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--color-neutral-700); }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], select, textarea {
  font: inherit;
  width: 100%;
  max-width: 26rem;
  padding: .5rem .65rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-neutral-900);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-navy-600);
}
[role="alert"], .form-alert {
  background: var(--color-danger-100);
  color: var(--color-danger-600);
  border: 1px solid var(--color-danger-600);
  border-radius: var(--radius-md);
  padding: .6rem .9rem;
  margin: 0 0 1rem;
  font-weight: 600;
}
ul.errorlist {
  list-style: none;
  margin: .25rem 0 .5rem;
  padding: 0;
  color: var(--color-danger-600);
  font-size: .9rem;
}

/* Password visibility toggle -- progressive enhancement only; forms work identically without JS. */
.password-field { position: relative; max-width: 26rem; }
.password-field input { padding-right: 3.25rem; max-width: 100%; }
.password-toggle {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-neutral-700);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  padding: .3rem .5rem;
}
.password-toggle:hover { color: var(--color-navy-700); }

/* ---------- Unauthenticated / auth-card shell ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
}
.auth-shell__brand {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-shell__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy-900);
}
.auth-shell__subtitle {
  display: block;
  font-size: .85rem;
  color: var(--color-neutral-500);
  margin-top: .15rem;
}
.auth-card {
  width: 100%;
  max-width: 28rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}
.auth-card__header { margin-bottom: 1rem; }
.auth-card__subtitle { color: var(--color-neutral-500); font-size: .9rem; margin: 0 0 1rem; }

/* MFA enrollment specifics */
.mfa-steps { padding-left: 1.25rem; color: var(--color-neutral-700); }
.mfa-qr {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  margin: 1rem 0;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
}
.mfa-qr img { display: block; width: 220px; height: 220px; }
.mfa-manual-fallback {
  margin: 0 0 1.25rem;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
}
.mfa-manual-fallback summary { cursor: pointer; font-weight: 600; color: var(--color-navy-700); }
.mfa-manual-fallback dl { margin: .75rem 0 0; }
.mfa-manual-fallback dt { font-weight: 600; color: var(--color-neutral-700); }
.mfa-manual-fallback dd { margin: 0 0 .5rem; font-family: ui-monospace, Consolas, monospace; }

/* ---------- Authenticated app shell ---------- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  background: var(--color-navy-900);
  color: var(--color-white);
  padding: .85rem 1.25rem;
}
.app-header__brand { display: flex; flex-direction: column; }
.app-header__title { font-weight: 700; font-size: 1.05rem; }
.app-header__subtitle { font-size: .75rem; color: rgba(255,255,255,0.7); }
.app-header__account { display: flex; align-items: center; gap: .75rem; }
.app-header__user { font-size: .9rem; }
.app-header .btn--ghost {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}
.app-header .btn--ghost:hover { background: rgba(255,255,255,0.12); }

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .15rem .5rem;
  border-radius: 999px;
}
.badge--role { background: rgba(255,255,255,0.15); color: var(--color-white); }
.badge--healthy { background: var(--color-green-100); color: var(--color-green-700); }
.badge--warning { background: var(--color-warning-100); color: var(--color-warning-600); }
.badge--informational { background: var(--color-info-100); color: var(--color-info-600); }
.badge--unavailable { background: var(--color-danger-100); color: var(--color-danger-600); }

/* ---------- Desktop-first application shell (2026-07-28) ----------
   Collapsed-by-default navigation rail: hover/keyboard-focus expands it temporarily (pure CSS,
   :hover/:focus-within -- no JS needed for that part); the Menu button pins it open persistently
   (JS + accounts.set_nav_preference_view, static/js/nav-rail.js). Content margins/max-width are
   deliberately generous -- table/list screens are the primary use case, not narrow prose. */
:root {
  --rail-collapsed: 80px;
  --rail-expanded: 236px;
}
.app-shell {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}
.app-nav {
  position: sticky;
  top: 1.25rem;
  align-self: flex-start;
  width: var(--rail-collapsed);
  flex-shrink: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: width .15s ease;
}
.app-nav:hover,
.app-nav:focus-within,
.app-shell.is-nav-pinned .app-nav {
  width: var(--rail-expanded);
}
.app-nav__toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .75rem;
  background: var(--color-neutral-100);
  border: none;
  border-bottom: 1px solid var(--color-neutral-200);
  cursor: pointer;
  font-weight: 700;
  font-size: .85rem;
  color: var(--color-navy-900);
  white-space: nowrap;
}
.app-nav__toggle:hover { background: var(--color-neutral-200); }
.app-shell.is-nav-pinned .app-nav__toggle { background: var(--color-navy-700); color: var(--color-white); }
.app-nav ul { list-style: none; margin: 0; padding: .4rem; display: flex; flex-direction: column; gap: .2rem; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  border-radius: var(--radius-md);
  color: var(--color-neutral-700);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}
.app-nav a:hover { background: var(--color-neutral-200); }
.app-nav a.is-active {
  background: var(--color-navy-700);
  color: var(--color-white);
}
.app-nav__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-neutral-200);
  color: var(--color-neutral-700);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 0;
}
.app-nav a.is-active .app-nav__glyph,
.app-nav__toggle .app-nav__glyph { background: rgba(255,255,255,0.18); color: inherit; }
.app-nav a.is-active .app-nav__glyph { background: rgba(255,255,255,0.22); color: var(--color-white); }
.app-main { flex: 1 1 auto; min-width: 0; }
.app-footer {
  text-align: center;
  color: var(--color-neutral-500);
  font-size: .8rem;
  padding: 1.5rem 1rem 2rem;
}

/* Opt-in narrowing for prose/form-heavy pages (invite form, participant detail) -- table/list
   screens deliberately do NOT use this, so they keep the full reclaimed width. */
.prose { max-width: 42rem; }

/* Shared non-wrapping date/time cell (compact-date feature) -- applied to every ordinary table
   timestamp column across Admin Users, Participants, Notification History, Audit Activity, and
   invitations. Width is generous enough for "YYYY-MM-DD HH:MM" (16 chars) at this font size with
   comfortable padding, and never shrinks below it even in a cramped table. */
.date-cell {
  white-space: nowrap;
  min-width: 9.5rem;
}
thead th.date-cell { text-align: left; }

/* ---------- Cards (dashboard overview) ---------- */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  /* align-items: start so each card sizes to its own content instead of the grid's default `stretch`,
     which was stretching every card in a row to the height of the tallest (the long Onboarding list)
     and leaving large empty regions in the short cards. Responsive column packing is unchanged. */
  align-items: start;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.summary-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.25rem;
}
.summary-card__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-neutral-500);
  margin-bottom: .35rem;
}
.summary-card__value { font-size: 1.4rem; font-weight: 700; color: var(--color-navy-900); }
.summary-card__meta { font-size: .82rem; color: var(--color-neutral-500); margin-top: .35rem; }
.summary-card--unavailable .summary-card__value { color: var(--color-danger-600); font-size: 1rem; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .85rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem;
}
.filters label { margin: 0 0 .25rem; }
.filters > div, .filters label { min-width: 9rem; }

/* ---------- Tables ---------- */
.table-responsive { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--color-white); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead th {
  text-align: left;
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--color-neutral-200);
  position: sticky;
  top: 0;
}
tbody th, tbody td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--color-neutral-200);
  vertical-align: top;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-neutral-100); }

.pagination { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; color: var(--color-neutral-700); }

.copy-field { display: inline-flex; align-items: center; gap: .4rem; }
.copy-field__btn {
  font-size: .72rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-neutral-700);
  cursor: pointer;
}
.copy-field__btn:hover { background: var(--color-neutral-200); }

.empty-state, .unavailable-state {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  color: var(--color-neutral-700);
  text-align: center;
}
.unavailable-state { color: var(--color-danger-600); }

.note {
  color: var(--color-neutral-500);
  font-size: .85rem;
}

/* ---------- Detail screens ---------- */
.detail-table th { width: 14rem; color: var(--color-neutral-700); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .app-nav { position: static; flex: none; width: 100%; }
  .app-nav ul { flex-direction: row; flex-wrap: wrap; }
  .app-nav a { padding: .5rem .65rem; font-size: .85rem; }
}

@media (max-width: 560px) {
  .app-header { padding: .75rem 1rem; }
  .app-shell { padding: 1rem .75rem 2rem; }
  .auth-card { padding: 1.25rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label, .filters > div { min-width: 0; }
}

/* ---------- Compact table actions (Admin Users + Participants bulk-actions feature, 2026-07-28) ----------
   Shared by every table offering row checkboxes/a compact Actions menu (Admin Users, Participants)
   -- one class, not a per-screen copy, so the two can never visually drift apart. Goal: no row's
   height changes just because its own action menu happens to be closed -- reason capture and
   confirmation live in one shared <dialog>, never a permanently-rendered per-row form. */
.compact-table tbody td { padding: .45rem .85rem; }
/* .compact-table--selectable is a separate modifier (not folded into .compact-table itself)
   because not every compact table has a leading checkbox column -- Admin Users' own Pending
   Invitations table below reuses .compact-table for row padding/Actions-column shrinking but has
   no checkbox column, so it must NOT get this first-column-width rule. */
.compact-table--selectable thead th:first-child,
.compact-table--selectable tbody td:first-child { width: 2.25rem; text-align: center; }
/* Column-priority rule (Section F): the trailing Actions column is low-value/narrow -- shrink it
   to its own content ("width: 1%" is the standard auto-layout trick for this) so the remaining
   width goes to the columns that actually need it (name, email, organization, role). Never
   applied to a date-cell column -- that one already sets its own min-width via .date-cell,
   further down this file. */
.compact-table thead th:last-child,
.compact-table tbody td:last-child { width: 1%; white-space: nowrap; }

.bulk-actions-toolbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .6rem;
}
.bulk-actions-toolbar label { font-weight: 600; font-size: .85rem; color: var(--color-neutral-700); }
.bulk-actions-toolbar select {
  padding: .4rem .6rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md, .4rem);
  font-size: .85rem;
}

.row-actions { position: relative; }
.row-actions > summary {
  cursor: pointer;
  list-style: none;
  color: var(--color-navy-700);
  font-weight: 600;
  font-size: .85rem;
}
.row-actions > summary::-webkit-details-marker { display: none; }
.row-actions[open] > summary { color: var(--color-navy-900); }
.row-actions__menu {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .4rem;
}
.row-actions__menu .btn { text-align: left; }

.action-confirm-dialog {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.5rem;
  max-width: 28rem;
  width: 90vw;
}
.action-confirm-dialog::backdrop { background: rgba(11, 31, 58, 0.45); }
.action-confirm-affected ul { margin: .4rem 0; padding-left: 1.2rem; font-size: .85rem; }
#action-confirm-reason-wrapper { display: flex; flex-direction: column; gap: .3rem; margin: .75rem 0; }
#action-confirm-reason { width: 100%; padding: .5rem; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-md, .4rem); font: inherit; }
.action-confirm-buttons { display: flex; justify-content: flex-end; gap: .5rem; padding: 0; margin: 0; }

.bulk-results {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
  font-size: .88rem;
}
.bulk-results ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.bulk-result--success { color: var(--color-green-700); }
.bulk-result--failure { color: var(--color-danger-600); }

.reminder-note {
  font-size: .82rem;
  color: var(--color-neutral-500);
  margin: .35rem 0 0;
}

.page-messages { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.page-messages__item {
  border-radius: var(--radius-lg);
  padding: .65rem 1rem;
  font-size: .88rem;
  background: var(--color-green-100);
  color: var(--color-green-700);
  box-shadow: var(--shadow-card);
}
.page-messages__item--error { background: var(--color-danger-100); color: var(--color-danger-600); }
.page-messages__item--warning { background: var(--color-warning-100); color: var(--color-warning-600); }

/* ---------- Tabs (Platform Status, Admin Portal Intake/Platform-Status/Deleted-Records
   expansion, 2026-07-29) ---------- */
.tabs {
  display: flex;
  gap: .25rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--color-neutral-300);
}
.tab {
  display: inline-block;
  padding: .6rem 1rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-neutral-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--color-navy-700); }
.tab--active {
  color: var(--color-navy-900);
  border-bottom-color: var(--color-navy-700);
}

.filters__checkbox { display: flex; align-items: center; }
.filters__checkbox label { display: flex; align-items: center; gap: .4rem; font-weight: 600; margin: 0; }

.inline-form { display: inline-block; margin: 0 .3rem 0 0; }

.dependency-preview {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
  font-size: .9rem;
}
.dependency-preview ul { margin: .4rem 0; }

/* ---------- Complete Participant Deletion and Restore (2026-07-29) ---------- */
.bulk-actions-toolbar__count { font-size: .85rem; color: var(--color-neutral-700); font-weight: 600; }

.participant-deletion-dialog { max-width: 36rem; max-height: 85vh; overflow-y: auto; }
.participant-deletion-confirm-fields { display: flex; flex-direction: column; gap: .3rem; margin: .75rem 0; }
.participant-deletion-confirm-fields textarea,
.participant-deletion-confirm-fields input[type="text"] {
  width: 100%;
  padding: .5rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md, .4rem);
  font: inherit;
}

.deletion-preview__identity { display: grid; grid-template-columns: 10rem 1fr; gap: .25rem .75rem; margin: .5rem 0 1rem; font-size: .9rem; }
.deletion-preview__identity dt { font-weight: 600; color: var(--color-neutral-700); }
.deletion-preview__identity dd { margin: 0; }
.deletion-preview__categories { margin: .25rem 0 1rem; padding-left: 1.2rem; font-size: .9rem; }
.deletion-preview__total { border-top: 1px solid var(--color-neutral-200); padding-top: .6rem; }
.deletion-preview__participant { border: 1px solid var(--color-neutral-200); border-radius: var(--radius-md); padding: .5rem .75rem; margin: 0 0 .5rem; }
.deletion-preview__participant summary { cursor: pointer; font-weight: 600; }
.deletion-preview__blocked { color: var(--color-danger-600); }

/* ---------- Permanent Deletion / Purge (Admin Portal Shared Data-Table Framework, 2026-07-30) ---------- */
.permanent-purge-ack { display: flex; align-items: flex-start; gap: .4rem; font-size: .9rem; }
.permanent-purge-ack input[type="checkbox"] { margin-top: .2rem; }

/* ---------- Reduced motion / print not otherwise handled ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* IA (2026-09-09): Admin Tools landing-page cards + a shared page-intro lead paragraph. */
.page-intro { color: var(--color-neutral-700); max-width: 60ch; margin: 0.25rem 0 1.25rem; }
.tool-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.tool-card { margin: 0; }
.tool-card__link { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 0.9rem 1rem; text-decoration: none; background: var(--color-white); border: 1px solid var(--color-neutral-300); border-radius: var(--radius-md); transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.tool-card__link:hover, .tool-card__link:focus-visible { border-color: var(--color-navy-600); box-shadow: var(--shadow-card); }
.tool-card__title { font-weight: 600; color: var(--color-navy-900); }
.tool-card__desc { font-size: 0.88rem; color: var(--color-neutral-700); }
/* IA (2026-09-09): contextual cross-link row on entity/Project detail pages. */
.detail-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0 0.5rem; padding: 0.75rem 0 0; border-top: 1px solid var(--color-neutral-200); font-size: 0.9rem; }
.detail-links a { white-space: nowrap; }
