/* 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-list > li {
  display: flex;
  align-items: center;
}

.nav-link,
.sub-toggle {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  box-sizing: border-box;
}

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

.has-sub {
  position: relative;
}

.sub-nav {
  display: none;
  position: absolute;
  /* Slight overlap under the trigger so the pointer stays over .has-sub */
  top: calc(100% - 2px);
  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: 200;
}

.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);
}

/* Opened by JS (.open) or keyboard focus — not pure CSS :hover (unreliable
   when moving into absolute menus / hybrid pointer devices). */
.has-sub.open .sub-nav,
.has-sub:focus-within .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: #243056;
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(11, 18, 41, 0.28);
}

/* Default: readable on light pages (articles, standard pages). */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

/* Dark fields (home hero, coming-soon) keep the original white outline. */
.hero .btn-ghost,
.soon-page .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-ghost:hover,
.soon-page .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 — StreamField body (heading/subheading/paragraph/quote/image) */
.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 h4 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.prose blockquote,
.prose .pull-quote {
  margin: 1.75rem 0;
  padding: 0.15rem 0 0.15rem 1.2rem;
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--navy);
}

.prose blockquote p,
.prose .pull-quote p {
  margin: 0;
  color: inherit;
}

.prose figure,
.prose .prose-figure {
  margin: 1.5rem 0;
}

.prose-figure img,
.article-featured img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.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;
}

.opinion-banner {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-radius: var(--radius);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}

.opinion-banner-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.opinion-banner p:last-child {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Wagtail document block (platform, bylaws PDFs) */
.document-block {
  margin: 1.5rem 0 2rem;
}

.document-block-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin-bottom: 1rem;
}

.document-block-meta {
  font-size: 0.875rem;
}

.document-embed-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.document-embed {
  display: block;
  width: 100%;
  min-height: min(80vh, 900px);
  height: 80vh;
  border: 0;
  background: #fff;
}

.document-block-caption {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

/* 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 input[type="password"],
.crm-form input[type="url"],
.crm-form input[type="number"],
.crm-form input[type="search"],
.crm-form input[type="date"],
.crm-form input[type="datetime-local"],
.crm-form input[type="time"],
.crm-form input.crm-datetime,
.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;
  box-sizing: border-box;
  color: inherit;
  min-height: 2.75rem;
  /* Reset browser search-field quirks (WebKit) */
  -webkit-appearance: none;
  appearance: none;
}

/* File input — match other fields + secondary button feel */
.crm-form input[type="file"],
.crm-form input.crm-file-input {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
}
.crm-form input[type="file"]::file-selector-button,
.crm-form input.crm-file-input::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-right: 0.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--navy, #0b1f33);
  color: #fff;
  cursor: pointer;
}
.crm-form input[type="file"]::file-selector-button:hover,
.crm-form input.crm-file-input::file-selector-button:hover {
  filter: brightness(1.08);
}

/* Directory / profile role badges */
.member-badge,
.badge-row .member-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  margin: 0 0.25rem 0.25rem 0;
  border-radius: 999px;
  background: rgba(0, 124, 186, 0.12);
  color: var(--navy, #0b1f33);
  border: 1px solid rgba(0, 124, 186, 0.28);
}
.join-lpnc-criteria ul {
  margin: 0.5rem 0 0.75rem 1.1rem;
  padding: 0;
}
.join-lpnc-criteria li {
  margin-bottom: 0.35rem;
}

.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;
}

.crm-form .checkbox-grid {
  display: grid;
  gap: 0.5rem 1rem;
}

@media (min-width: 560px) {
  .crm-form .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.danger-zone {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.04);
}

.members-hero .page-intro {
  max-width: 40rem;
}

/* Contribute */
.contribute-layout {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}
@media (min-width: 880px) {
  .contribute-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  }
}
.contribute-aside {
  display: grid;
  gap: 1.25rem;
}
.form-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.25rem;
  margin: 0 0 1.25rem;
}
.form-fieldset legend {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  padding: 0 0.35rem;
}
.form-row-2,
.form-row-3 {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-row-3 {
    grid-template-columns: 1.4fr 0.6fr 0.8fr;
  }
}
.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choice-pills--stack {
  flex-direction: column;
}
.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}
.choice-pills--stack .choice-pill {
  border-radius: var(--radius-sm);
}
.choice-pill:has(input:checked) {
  border-color: var(--gold);
  background: var(--bg-warm);
  box-shadow: 0 0 0 1px var(--gold);
}
.choice-pill input {
  margin: 0;
}
.zelle-handle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.legal-fineprint {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 40rem;
}

.contribute-featured .section-kicker {
  margin-bottom: 0.35rem;
}

.contribute-story {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.75rem;
  padding-top: 0.5rem;
}
.contribute-story .cards {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .contribute-story .cards {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

.featured-offers {
  margin: 0 0 1.1rem;
}
.featured-offers-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.45rem;
}
.featured-offers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.featured-offer {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--bg-warm);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
}
.featured-offer strong {
  display: block;
  font-size: 1.05rem;
}
.featured-offer-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.featured-offer:hover {
  background: #fff;
}

.bucket-grid,
.provider-grid {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .bucket-grid {
    grid-template-columns: 1fr 1fr;
  }
  .provider-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bucket-card,
.provider-tile {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.bucket-card:has(input:checked),
.provider-tile:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  background: var(--bg-warm);
}
.bucket-card input,
.provider-tile input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}
.bucket-card-body {
  display: block;
}
.bucket-card-body strong {
  display: block;
  color: var(--navy);
}
.bucket-card-body p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.provider-tile {
  flex-direction: column;
  align-items: stretch;
  min-height: 6.5rem;
}
.provider-tile-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.provider-tile-note {
  font-size: 0.75rem;
  color: var(--text-soft);
}
.provider-tile.is-pending {
  opacity: 0.82;
}
.provider-tile.is-offline-disabled {
  opacity: 0.42;
  filter: grayscale(0.7);
  pointer-events: none;
  cursor: not-allowed;
}
.provider-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-height: 2rem;
  color: var(--navy);
}
.provider-mark .card-brands {
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* Members area: title left, status badges right-justified */
.members-hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.5rem;
  width: 100%;
}
.members-hero-heading {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  flex: 1 1 auto;
  min-width: 0;
}
.page-hero .members-hero-heading {
  color: #fff;
}
.members-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 auto;
  margin-left: auto;
}
.member-status-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  vertical-align: middle;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
/* High-contrast on navy hero */
.member-status-badge--active {
  background: #22c55e;
  color: #052e16;
  border-color: #86efac;
}
.member-status-badge--pending {
  background: #fbbf24;
  color: #451a03;
  border-color: #fde68a;
}
.member-status-badge--niof {
  background: #38bdf8;
  color: #0c4a6e;
  border-color: #bae6fd;
}
.member-status-badge--muted {
  background: #e5e7eb;
  color: #1f2937;
  border-color: #f3f4f6;
}

/* Article comments */
.article-comments {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.comment-thread {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.comment-meta {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.comment-body {
  line-height: 1.5;
}
.comment-replies {
  margin: 0.75rem 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
}
.comment-reply-item {
  border-bottom: none;
  padding: 0.75rem 0;
}
.comment-reply summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.event-rsvp {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* ---- Email campaign visual editor (Templatical needs explicit height) ---- */
.comms-editor-page {
  padding-bottom: 0;
}

.comms-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
}

.comms-editor-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.comms-editor-actions {
  margin: 0;
}

.comms-editor-shell {
  /* Fill most of the viewport below site header + toolbar */
  height: calc(100dvh - 14rem);
  min-height: 32rem;
  max-height: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.comms-editor-mount,
#templatical-root {
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

/* Templatical often injects a wrapper; stretch common patterns */
#templatical-root > *,
.comms-editor-mount > * {
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .comms-editor-shell {
    height: calc(100dvh - 18rem);
    min-height: 24rem;
  }
}

/* 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;
  }
}

/* Staff contact directory table */
.container--wide {
  max-width: 72rem;
}
.contact-list-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.contact-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: #fff;
}
.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.contact-table th,
.contact-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line, #e5e7eb);
  vertical-align: middle;
}
.contact-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4b5563;
  background: #f9fafb;
  white-space: nowrap;
}
.contact-table tbody tr:hover {
  background: #f8fafc;
}
.contact-table tbody tr:last-child td {
  border-bottom: none;
}
.contact-table__flag {
  text-align: center;
  width: 3.25rem;
}
.contact-table .flag-yes {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}
.dup-cluster {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: #fff;
}
.dup-cluster__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.dup-cluster__people {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.dup-cluster__people li {
  margin: 0.25rem 0;
}
.dup-cluster__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.merge-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .merge-cols { grid-template-columns: 1fr; }
}
.merge-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
}
.merge-card--keep {
  background: #f0fdf4;
  border-color: #86efac;
}
.merge-card__kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text-soft);
}
.merge-table__diff td,
.merge-table__diff th {
  background: #fff7ed;
}
.contact-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
