/* ============================================================
   Ontario Defence Association — OntarioDefence.ca
   Design system stylesheet
   Base: dark navy / charcoal  |  Accent: restrained Ontario red
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  --ink:        #0a1420;   /* darkest base */
  --navy:       #0f2033;   /* primary dark section */
  --navy-2:     #16293f;   /* raised dark surface */
  --charcoal:   #1c2733;
  --red:        #d81f2e;   /* Ontario red accent */
  --red-dark:   #b3121f;
  --red-tint:   rgba(216,31,46,0.10);

  --paper:      #f4f6f8;   /* subtle cool white bg */
  --paper-2:    #eef1f4;
  --white:      #ffffff;
  --card:       #ffffff;

  --text:       #17222f;   /* body text on light */
  --text-soft:  #48586a;   /* muted */
  --text-faint: #7b8896;
  --line:       #dde3ea;   /* borders on light */
  --line-dark:  rgba(255,255,255,0.12);

  --ink-on-dark:      #eef2f6;
  --soft-on-dark:     #a9b7c6;
  --faint-on-dark:    #7f8fa2;

  --maxw: 1200px;
  --gap: 24px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(10,20,32,0.06), 0 1px 3px rgba(10,20,32,0.05);
  --shadow-md: 0 4px 14px rgba(10,20,32,0.08), 0 2px 6px rgba(10,20,32,0.05);
  --shadow-lg: 0 18px 50px rgba(10,20,32,0.16);

  --ff-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.01em; font-weight: 800; color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section.dark { background: var(--navy); color: var(--ink-on-dark); }
.section.ink { background: var(--ink); color: var(--ink-on-dark); }
.section.alt { background: var(--paper-2); }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4,
.section.ink h1, .section.ink h2, .section.ink h3, .section.ink h4 { color: #fff; }

.grid-texture {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; background: var(--red); display: inline-block;
}
.dark .eyebrow, .ink .eyebrow { color: #ff5b68; }

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 18px; }
.section-head p { font-size: 18px; color: var(--text-soft); }
.dark .section-head p, .ink .section-head p { color: var(--soft-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-sans);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  letter-spacing: 0.01em; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-arrow::after { content: "\2192"; font-size: 1.05em; transition: transform .15s ease; }
.btn:hover .btn-arrow::after, a.btn-arrow:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink { font-weight: 600; color: var(--red-dark); display: inline-flex; align-items: center; gap: 7px; }
.textlink::after { content: "\2192"; transition: transform .15s ease; }
.textlink:hover::after { transform: translateX(3px); }
.dark .textlink, .ink .textlink { color: #ff8b95; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,20,32,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  height: 74px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 3px;
  margin-left: 12px; flex-wrap: wrap;
}
.nav__links a {
  color: var(--soft-on-dark); font-size: 14px; font-weight: 500;
  padding: 8px 11px; border-radius: var(--radius); white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__links a.active { color: #fff; }
.nav__links a.active { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__lock { display: inline-flex; align-items: center; gap: 5px; }
.nav__lock svg { width: 13px; height: 13px; opacity: .8; }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.nav__cta .btn { padding: 10px 16px; font-size: 14px; }
.nav__toggle {
  display: none; background: transparent; border: 1px solid var(--line-dark);
  border-radius: var(--radius); width: 44px; height: 40px; padding: 0;
  margin-left: auto;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; transition: .2s; }

/* mobile */
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav { height: 66px; }
  .mobile-nav {
    position: fixed; inset: 66px 0 0 0; z-index: 55;
    background: var(--ink); color: #fff;
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto; padding: 20px 24px 60px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a {
    color: var(--ink-on-dark); font-size: 18px; font-weight: 500;
    padding: 14px 4px; border-bottom: 1px solid var(--line-dark);
  }
  .mobile-nav a.active { color: #ff5b68; }
  .mobile-nav .btn { margin-top: 14px; justify-content: center; }
  body.nav-open { overflow: hidden; }
}
.mobile-nav { display: none; }
@media (max-width: 1080px) { .mobile-nav { display: flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--ink); color: var(--ink-on-dark); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: stretch;
  gap: 48px; min-height: 600px;
}
.hero__text { padding: 88px 0; align-self: center; max-width: 640px; }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px); color: #fff; margin-bottom: 22px;
  letter-spacing: -0.02em; line-height: 1.05;
}
.hero__sub { font-size: 18.5px; color: var(--soft-on-dark); margin-bottom: 30px; max-width: 600px; }
.hero__support { margin-top: 26px; font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--faint-on-dark); border-left: 2px solid var(--red); padding-left: 14px; }
.hero__visual { position: relative; background: #10131a; border-radius: var(--radius-lg);
  overflow: hidden; align-self: stretch; min-height: 100%; border: 1px solid var(--line-dark); }
.hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,20,32,0.55) 0%, rgba(10,20,32,0.05) 45%, rgba(10,20,32,0) 100%);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__text { padding: 52px 0 40px; order: 2; }
  .hero__visual { min-height: 260px; order: 1; margin-top: 28px; }
}

/* page hero (interior) */
.page-hero { background: var(--navy); color: var(--ink-on-dark); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; padding-block: 76px; }
.page-hero .eyebrow { color: #ff5b68; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 50px); margin-bottom: 20px; max-width: 15ch; }
.page-hero p { font-size: 18.5px; color: var(--soft-on-dark); max-width: 720px; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(1); }
.page-hero__media::after { content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, var(--navy) 30%, rgba(15,32,51,0.6) 100%); }
.page-hero .btn-row { margin-top: 30px; }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.stat {
  background: var(--navy); padding: 34px 26px;
}
.stat__num { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.stat__num .accent { color: #ff5b68; }
.stat__label { margin-top: 12px; color: var(--soft-on-dark); font-size: 15px; line-height: 1.4; }
.stats-source { margin-top: 18px; font-family: var(--ff-mono); font-size: 12px; color: var(--faint-on-dark); letter-spacing: .02em; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card::before { content:""; position:absolute; top:0; left:0; height:3px; width:0; background: var(--red); transition: width .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd6df; }
.card:hover::before { width: 56px; }
.card__num { font-family: var(--ff-mono); font-size: 13px; color: var(--red); font-weight: 600; letter-spacing: .08em; }
.card h3 { font-size: 20px; margin: 8px 0 10px; color: var(--navy); font-weight: 700; }
.card p { color: var(--text-soft); font-size: 15.5px; }
.card .textlink { margin-top: 16px; font-size: 14.5px; }
.card ul.tick { margin-top: 12px; }
.card ul.tick li { color: var(--text-soft); font-size: 14.5px; padding-left: 20px; position: relative; margin-bottom: 6px; }
.card ul.tick li::before { content:"\2014"; position:absolute; left:0; color: var(--red); }

/* dark cards */
.dark .card, .ink .card { background: var(--navy-2); border-color: var(--line-dark); }
.dark .card h3, .ink .card h3 { color: #fff; }
.dark .card p, .ink .card p { color: var(--soft-on-dark); }
.dark .card:hover, .ink .card:hover { border-color: rgba(255,255,255,0.25); box-shadow: none; }

/* compact chip cards */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-size: 15px; font-weight: 500; color: var(--text);
}
.dark .chip, .ink .chip { background: var(--navy-2); border-color: var(--line-dark); color: var(--ink-on-dark); }

/* tile grid (domains) */
.tile-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 900px){ .tile-grid { grid-template-columns: repeat(2,1fr); } }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px;
  font-weight: 600; font-size: 15px; color: var(--navy); background: var(--card);
  display: flex; align-items: center; gap: 12px; transition: border-color .15s, background .15s;
}
.tile::before { content:""; width: 8px; height: 8px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.tile:hover { border-color: var(--navy); }
.dark .tile, .ink .tile { background: var(--navy-2); border-color: var(--line-dark); color: #fff; }

/* status pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid;
}
.pill::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-active   { color: #1c7a4a; border-color: #b6e0c8; background: #e9f7ef; }
.pill-dev      { color: #9a6410; border-color: #f0dcae; background: #fdf4e0; }
.pill-member   { color: #2b4d78; border-color: #c3d4ea; background: #eaf1f9; }
.pill-ongoing  { color: #4a5568; border-color: var(--line); background: var(--paper-2); }

/* ============================================================
   FEATURE / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split.narrow-media { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 900px) { .split, .split.narrow-media { grid-template-columns: 1fr; gap: 34px; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4/5; }
.media-frame.wide { aspect-ratio: 16/10; }

/* pull quote */
.pquote { border-left: 3px solid var(--red); padding: 6px 0 6px 28px; margin: 8px 0; }
.pquote p { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; line-height: 1.35; color: var(--navy); letter-spacing: -0.01em; }
.dark .pquote p, .ink .pquote p { color: #fff; }
.pquote cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--ff-mono);
  font-size: 12.5px; letter-spacing: .03em; color: var(--text-faint); }
.dark .pquote cite, .ink .pquote cite { color: var(--faint-on-dark); }

/* ODIS framework blocks */
.framework { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.framework.vert { grid-template-columns: 1fr; }
@media (max-width: 900px){ .framework { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .framework { grid-template-columns: 1fr; } }
.fw-block { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 22px 18px; min-width: 0; }
.framework.vert .fw-block { display: flex; align-items: baseline; gap: 16px; }
.framework.vert .fw-block .k { flex-shrink: 0; width: 76px; }
.fw-block .k { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #ff5b68; }
.fw-block .t { color:#fff; font-weight: 700; font-size: 16.5px; margin-top: 10px; line-height: 1.25; }

/* matrix rows */
.matrix { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.matrix__row { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 0; border-bottom: 1px solid var(--line); }
.matrix__row:last-child { border-bottom: none; }
.matrix__row > div { padding: 22px 26px; }
.matrix__k { background: var(--paper-2); font-weight: 700; color: var(--navy); font-size: 16px; }
.matrix__v { color: var(--text-soft); font-size: 15.5px; }
@media (max-width: 720px){ .matrix__row { grid-template-columns: 1fr; } .matrix__k { border-bottom: 1px solid var(--line); } }

/* stepper */
.stepper { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: none; }
.step__n { counter-increment: step; font-family: var(--ff-mono); font-weight: 600; font-size: 15px;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--red); color: var(--red);
  display: grid; place-items: center; }
.step__n::before { content: counter(step); }
.step h4 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* callout / safeguard box */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--red);
  background: #fff; border-radius: var(--radius); padding: 26px 30px;
}
.callout h3 { font-size: 19px; margin-bottom: 10px; color: var(--navy); }
.callout p { color: var(--text-soft); font-size: 15.5px; }
.dark .callout, .ink .callout { background: var(--navy-2); border-color: var(--line-dark); border-left-color: var(--red); }
.dark .callout p, .ink .callout p { color: var(--soft-on-dark); }

.note { font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: .01em; }
.dark .note, .ink .note { color: var(--faint-on-dark); }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 7px 14px; border-radius: 999px;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.ptable { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ptable th, .ptable td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ptable thead th { background: var(--navy); color: #fff; font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.ptable tbody tr:nth-child(even) { background: var(--paper); }
.ptable tbody tr:hover { background: var(--red-tint); }
.ptable td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.ptable tbody tr:last-child td { border-bottom: none; }
@media (max-width: 620px) {
  .ptable thead { display: none; }
  .ptable tbody td { display: block; border-bottom: none; padding: 4px 20px; }
  .ptable tbody tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .ptable td:last-child { padding-top: 6px; padding-bottom: 12px; }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15.5px; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint);
}
.consent { grid-column: 1/-1; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-soft); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 6px; }

/* ============================================================
   NEWS
   ============================================================ */
.news-card { display: flex; flex-direction: column; }
.news-card__tag { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.news-card__meta { font-family: var(--ff-mono); font-size: 12px; color: var(--text-faint); margin-top: 14px; }

/* filter chips */
.filter-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 34px; }
.filter-chip { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing:.04em; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background:#fff; color: var(--text-soft); }
.filter-chip.on, .filter-chip:hover { border-color: var(--navy); color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--soft-on-dark); padding-top: 66px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 46px; margin-bottom: 20px; }
.footer-brand p { font-size: 14.5px; color: var(--soft-on-dark); max-width: 34ch; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: var(--soft-on-dark); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--soft-on-dark); }
.footer-social a:hover { border-color: var(--red); color: #fff; background: var(--red); }
.footer-social svg { width: 17px; height: 17px; }
.footer-ack { border-top: 1px solid var(--line-dark); padding: 26px 0; font-size: 13.5px; color: var(--faint-on-dark); max-width: 90ch; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--faint-on-dark); }
.footer-bottom a { color: var(--faint-on-dark); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   MEMBER RESOURCES protected styling
   ============================================================ */
.mr-banner { background: var(--red-tint); border: 1px solid #f0c6cb; border-radius: var(--radius); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--navy); }
.mr-banner svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.resource-card { display:flex; flex-direction: column; }
.resource-card .doc-meta { margin-top: auto; font-family: var(--ff-mono); font-size: 12px; color: var(--text-faint); padding-top: 14px; }

/* misc utility */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.lead { font-size: 19px; color: var(--text-soft); max-width: 68ch; }
.dark .lead, .ink .lead { color: var(--soft-on-dark); }
.prose p { margin-bottom: 18px; color: var(--text-soft); font-size: 16.5px; }
.prose p:last-child { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* reveal animation (subtle) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color:#fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
