/* LPMeck Phase 1 — supportable cousin of live site (docs/FRONTEND.md)
   cache: bump ?v= in base.html when shipping CSS changes */


:root {
  --navy: #0b1229;
  --navy-2: #121a36;
  --blue: #007cba;
  --blue-dark: #005a87;
  --blue-soft: #e8f4fb;
  --gold: #d4af37;
  --gold-dim: #b8962e;
  --text: #2a2d34;
  --text-soft: #5c6370;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-warm: #faf8f4;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(11, 18, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 18, 41, 0.14);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --max: 1140px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1rem;
  z-index: 2000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ─── Top bar ─── */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding-block: 0.35rem;
}

.topbar a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--gold);
}

.topbar-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.topbar-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ─── Header ─── */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(11, 18, 41, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.35rem;
}

.brand img {
  height: 56px;
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.nav-toggle-bars {
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  box-shadow: 0 5px 0 var(--navy), 0 -5px 0 var(--navy);
  margin: 0.45rem 0 0.3rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link,
.sub-toggle {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-link:hover,
.sub-toggle:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.has-sub {
  position: relative;
}

.sub-nav {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 13.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  z-index: 60;
}

.sub-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 450;
}

.sub-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.has-sub.open .sub-nav,
.has-sub:focus-within .sub-nav {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .has-sub:hover .sub-nav {
    display: block;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.35rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, color 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(180deg, #0a8fd0 0%, var(--blue) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 124, 186, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 90, 135, 0.4);
}

.btn-gold {
  background: linear-gradient(180deg, #e4c45a 0%, var(--gold) 55%, var(--gold-dim) 100%);
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  filter: brightness(1.05);
  color: var(--navy);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  color: #fff;
  min-height: clamp(420px, 58vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy) center / cover no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      105deg,
      rgba(11, 18, 41, 0.92) 0%,
      rgba(11, 18, 41, 0.78) 42%,
      rgba(0, 90, 135, 0.55) 100%
    ),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4.75rem;
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.175rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 34rem;
}

.hero-rule {
  width: 3.5rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.25rem 0 0;
}

/* ─── Sections ─── */
.section {
  padding: 4.25rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-muted {
  background: var(--bg-soft);
}

.section-warm {
  background: var(--bg-warm);
}

.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.65rem;
}

.section-navy .section-kicker {
  color: var(--gold);
}

.section-head h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--text-soft);
  margin: 0;
  font-size: 1.05rem;
}

.section-navy .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.gold-rule {
  width: 2.75rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 0 1rem;
}

.section-head.center .gold-rule {
  margin-inline: auto;
}

/* About split */
.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.split-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
}

.split-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.split-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.split-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.98rem;
}

.split-list li:last-child {
  border-bottom: none;
}

.split-list .mark {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* Cards */
.cards,
.cards-3 {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.6rem 1.45rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-soft);
  font-size: 0.98rem;
  flex: 1;
  margin-bottom: 1.1rem;
}

.card-link,
.text-link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link::after {
  content: "→";
  transition: transform 0.15s var(--ease);
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* Action strip */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-tile {
  background: var(--navy-2);
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s var(--ease);
  display: block;
}

.action-tile:hover {
  background: #1a2448;
  color: #fff;
}

.action-tile span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.action-tile strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.45rem;
}

.action-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, #0d3a5c 70%, var(--blue-dark) 100%);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  margin: 0 0 0.5rem;
}

.page-hero .page-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 38rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.85rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* Prose */
.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose .muted,
.muted {
  color: var(--text-soft);
}

.page-body {
  padding: 3rem 0 4rem;
}

.page-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0;
  padding: 3.25rem 0 0;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-bottom: 2.25rem;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 18rem;
}

.footer-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9375rem;
  display: inline-block;
  padding: 0.28rem 0;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal p {
  margin: 0 0 0.4rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-meta {
  margin-top: 0.5rem;
}

/* Topic filters (Articles index) */
.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.topic-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.topic-chip:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.topic-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.topic-filter-status {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.9rem;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}

.topic-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Help Wanted (Get Involved) */
.page-hero-help-wanted {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #1a2744 100%);
  color: #fff;
}

.page-hero-help-wanted h1,
.page-hero-help-wanted .breadcrumb,
.page-hero-help-wanted .breadcrumb a,
.page-hero-help-wanted .page-intro {
  color: #fff;
}

.page-hero-help-wanted .breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.9;
}

.page-hero-help-wanted .breadcrumb a:hover {
  opacity: 1;
  color: var(--gold);
}

.help-wanted-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.help-wanted-listings .section-heading {
  margin: 0 0 1.25rem;
}

.help-wanted-listings .section-heading h2 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  color: var(--navy);
}

.help-wanted-listings .section-heading .muted {
  margin: 0;
}

.card-help-wanted {
  border-left: 4px solid var(--gold);
}

.help-wanted-empty {
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.help-wanted-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
}

.help-wanted-apply-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--bg-warm) 100%);
  border: 1px solid var(--line);
}

.help-wanted-apply-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.help-wanted-apply-cta .muted {
  margin: 0 0 1rem;
}

.help-wanted-apply-cta .btn {
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

/* Media list cards (articles + events + help wanted) */
.cards-media-list {
  grid-template-columns: 1fr !important;
  gap: 1.1rem;
}

.card-media {
  display: flex;
  flex-direction: row;
  gap: 1.15rem;
  align-items: stretch;
  padding: 1rem;
}

.card-thumb {
  flex: 0 0 160px;
  max-width: 40%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  align-self: stretch;
  display: block;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 110px;
}

.card-media-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0.35rem 0.25rem 0;
}

@media (max-width: 640px) {
  .card-media {
    flex-direction: column;
  }
  .card-thumb {
    flex: none;
    max-width: none;
    width: 100%;
    max-height: 180px;
  }
  .card-thumb img {
    min-height: 160px;
  }
}

/* Events: share + calendar actions */
.event-actions {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.event-actions h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.share-chip:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-color: #c5e0f0;
}

code.feed-url {
  font-size: 0.8rem;
  background: var(--bg-soft);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* CRM public forms */
.crm-form .form-field {
  margin-bottom: 1.15rem;
}

.crm-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.crm-form input[type="text"],
.crm-form input[type="email"],
.crm-form input[type="tel"],
.crm-form select,
.crm-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

.crm-form input:focus,
.crm-form select:focus,
.crm-form textarea:focus {
  outline: 2px solid rgba(0, 124, 186, 0.35);
  border-color: var(--blue);
}

.crm-form .checkbox-label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.45;
}

.crm-form .checkbox-label input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.crm-form .has-error input,
.crm-form .has-error textarea,
.crm-form .has-error select {
  border-color: #c0392b;
}

.crm-form .field-error {
  color: #c0392b;
  font-size: 0.875rem;
  margin: 0.3rem 0 0;
  font-weight: 500;
}

.crm-form button.btn {
  border: none;
}

/* Messages */
.messages {
  padding-top: 1rem;
}

.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  border: 1px solid #b6d9ef;
  margin-bottom: 0.5rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 0;
}

.error-page h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 960px) {
  .split,
  .cards,
  .cards-3,
  .action-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    gap: 0;
  }
}

@media (max-width: 860px) {
  .topbar-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-nav {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 0.75rem;
  }

  .has-sub.open .sub-nav {
    display: block;
  }

  .has-sub:hover .sub-nav {
    display: none;
  }

  .has-sub.open:hover .sub-nav,
  .has-sub.open .sub-nav {
    display: block;
  }

  .nav-actions {
    padding-top: 0.5rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero-inner {
    padding: 3.25rem 0 3.5rem;
  }
}

@media (min-width: 700px) and (max-width: 960px) {
  .cards,
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }
}
