/* ════════════════════════════════════════════════════════════════
   MORSE Insights — Design System v1
   Extracted from /market-access-timeline/ CDA build and extended.
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Brand palette */
  --teal:        #00B4C8;
  --teal-dk:     #007A8A;
  --teal-lt:     #4ECFDC;
  --teal-pale:   #E6F8FA;
  --teal-mid:    #B3EBF2;
  --navy:        #0D2D4E;
  --navy-lt:     #1A4060;
  --navy-dk:     #081F38;
  --amber:       #F0A500;
  --amber-lt:    #FFF3CC;

  /* Neutrals */
  --white:       #FFFFFF;
  --bg:          #F4FBFC;
  --bg-alt:      #FFFFFF;
  --g100:        #EBF5F7;
  --g200:        #C8E8ED;
  --g300:        #9DD4DC;
  --mid:         #4A6572;
  --soft:        #7A9BA8;
  --slate:       #1E3A4A;
  --line:        rgba(13, 45, 78, 0.08);

  /* Layout */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 4px rgba(0,100,120,.08);
  --shadow:      0 2px 16px rgba(0,100,120,.10);
  --shadow-lg:   0 8px 32px rgba(0,100,120,.14);

  /* Typography */
  --font-h:      'Barlow', system-ui, -apple-system, sans-serif;
  --font-b:      'Nunito Sans', system-ui, -apple-system, sans-serif;
  --fs-display:  clamp(2.4rem, 5vw, 3.6rem);
  --fs-h1:       clamp(2.0rem, 4vw, 2.8rem);
  --fs-h2:       clamp(1.5rem, 2.8vw, 2.0rem);
  --fs-h3:       1.25rem;
  --fs-h4:       1.05rem;
  --fs-body:     1rem;
  --fs-sm:       0.9rem;
  --fs-xs:       0.8rem;

  /* Layout widths */
  --w-article:   720px;     /* prose column */
  --w-wide:      980px;     /* charts, comparison cards */
  --w-full:      1200px;    /* hero, section width */
  --gutter:      20px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--slate);
  font-size: var(--fs-body);
  line-height: 1.6;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dk); text-decoration: none; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-h); color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: var(--fs-h1); margin-bottom: 1rem; }
h2 { font-size: var(--fs-h2); margin: 2.5rem 0 1rem; }
h3 { font-size: var(--fs-h3); margin: 1.8rem 0 .6rem; }
h4 { font-size: var(--fs-h4); margin: 1.4rem 0 .4rem; }
p { margin: 0 0 1rem; }
strong { color: var(--navy); }
em { font-style: italic; color: var(--navy-lt); }
.eyebrow { font-family: var(--font-h); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dk); }

/* ── Site header (mirrors morseconsulting.ca WordPress header) ─ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(20, 20, 20, 0);
  padding: 0 var(--gutter);
  height: 92px;
  display: flex;
  align-items: center;
}
.site-header-inner {
  max-width: var(--w-full); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img.logo-img { max-height: 54px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; }

/* hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: #13294b; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* top-level menu */
.nav-menu { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a {
  font-family: 'PT Sans', system-ui, -apple-system, sans-serif;
  font-weight: 600; font-size: 14px; color: #13294b;
  letter-spacing: 1px; text-transform: uppercase;
  line-height: 92px; transition: color .15s; white-space: nowrap;
}
.nav-menu a:hover { color: #12b2cb; }
.nav-menu a.active { color: #12b2cb; }
.nav-menu .has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-left: 7px; vertical-align: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* dropdown sub-menu */
.sub-menu {
  list-style: none; margin: 0; padding: 7px 0;
  position: absolute; top: 100%; left: 0; min-width: 244px;
  background: #fff; border: 1px solid #e3e7ea; border-top: 3px solid #12b2cb;
  box-shadow: 0 16px 36px rgba(13,45,78,.15);
  opacity: 0; visibility: hidden; transform: translateY(7px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 250;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu li { position: relative; }
.sub-menu a {
  display: block; line-height: 1.4; padding: 9px 20px;
  font-size: 13.5px; letter-spacing: 0; text-transform: none; white-space: normal;
}
/* second-level flyout */
.sub-menu .sub-menu { top: -10px; left: 100%; min-width: 270px; transform: translateX(8px); }
.nav-menu .sub-menu li:hover > .sub-menu, .nav-menu .sub-menu li:focus-within > .sub-menu {
  transform: translateX(0);
}
.sub-menu .has-sub > a { display: flex; align-items: center; }
.sub-menu .has-sub > a::after { margin-left: auto; transform: rotate(-45deg); }

.site-nav .search-icon { color: #13294b; display: inline-flex; align-items: center; }
.site-nav .search-icon:hover { color: #12b2cb; }

/* caret toggle buttons — desktop hidden, shown on mobile */
.sub-toggle { display: none; }

@media (max-width: 860px) {
  .site-header { height: auto; padding: 12px var(--gutter); }
  .site-header-inner { flex-wrap: wrap; }
  .site-logo img.logo-img { max-height: 42px; }

  .site-nav { flex: 1; justify-content: flex-end; }
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none; flex-direction: column; align-items: stretch;
    gap: 0; width: 100%; margin-top: 12px; border-top: 1px solid #e3e7ea;
  }
  .site-nav.nav-open .nav-menu { display: flex; }

  .nav-menu li {
    width: 100%; display: flex; flex-wrap: wrap; align-items: stretch;
    border-bottom: 1px solid #eef1f3;
  }
  .nav-menu a { flex: 1; line-height: 1.4; padding: 14px 6px; font-size: 13px; }
  .nav-menu .has-sub > a::after { display: none; }

  .sub-toggle {
    display: block; flex: 0 0 54px; align-self: stretch;
    background: none; border: 0; border-left: 1px solid #eef1f3; cursor: pointer;
  }
  .sub-toggle::after {
    content: ""; display: block; width: 8px; height: 8px; margin: 0 auto;
    border-right: 2px solid #13294b; border-bottom: 2px solid #13294b;
    transform: rotate(45deg); transition: transform .2s;
  }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }

  .sub-menu {
    position: static; flex-basis: 100%;
    display: none; opacity: 1; visibility: visible; transform: none;
    min-width: 0; border: 0; border-top: 1px solid #eef1f3;
    box-shadow: none; padding: 0; background: #f6f8f9;
  }
  .sub-menu.open { display: block; }
  .sub-menu a { padding: 12px 6px 12px 26px; }
  .sub-menu .sub-menu { background: #eef1f3; }
  .sub-menu .sub-menu a { padding-left: 40px; }
}

/* ── Section hero ─────────────────────────────────────────────── */
.section-hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  padding: 60px var(--gutter) 40px;
}
.section-hero-inner {
  max-width: var(--w-full); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.section-hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
}
.section-hero h1 .accent { color: var(--teal); }
.section-hero .tagline {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--navy-lt);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.section-hero .tagline .decoded { color: var(--teal); font-weight: 600; }
.section-hero .intro { font-size: 1.05rem; color: var(--slate); max-width: 56ch; }
.section-hero .hero-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

@media (max-width: 860px) {
  .section-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .section-hero { padding-top: 30px; }
}

/* ── Article grid (tiles on landing) ──────────────────────────── */
.article-list {
  max-width: var(--w-full); margin: 0 auto; padding: 40px var(--gutter) 80px;
}
.article-list-head {
  display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.article-list-head h2 { margin: 0; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.article-tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid var(--line);
}
.article-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-tile a.tile-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.article-tile .tile-image { aspect-ratio: 16 / 9; background: var(--g100); object-fit: cover; }
.article-tile .tile-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.article-tile .tile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.article-tile .tile-tag { font-family: var(--font-h); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-dk); background: var(--teal-pale); padding: 3px 8px; border-radius: 4px; }
.article-tile h3 { margin: 0 0 .4rem; color: var(--navy); }
.article-tile .tile-subtitle { color: var(--mid); font-size: var(--fs-sm); margin-bottom: 14px; }
.article-tile .tile-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--soft); font-family: var(--font-h); font-weight: 600; letter-spacing: .02em; }
.article-tile .tile-cta { color: var(--teal-dk); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }

/* ── Article page chrome ──────────────────────────────────────── */
.article-page { background: var(--bg); }
.article-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-lt) 100%);
  color: var(--white);
  padding: 50px var(--gutter) 60px;
  position: relative;
  overflow: hidden;
}
/* Per-article hero background — apply via inline style: --hero-image: url('...') */
.article-header.has-hero {
  background:
    linear-gradient(95deg,
      rgba(13,45,78,0.96) 0%,
      rgba(13,45,78,0.86) 38%,
      rgba(13,45,78,0.55) 62%,
      rgba(13,45,78,0.20) 90%,
      rgba(13,45,78,0.05) 100%),
    var(--hero-image, none) right center / cover no-repeat,
    linear-gradient(180deg, var(--navy) 0%, var(--navy-lt) 100%);
}
.article-header-inner { max-width: var(--w-wide); margin: 0 auto; }
.article-header .breadcrumb { font-size: var(--fs-xs); color: var(--teal-lt); margin-bottom: 18px; font-family: var(--font-h); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.article-header .breadcrumb a { color: var(--teal-lt); }
.article-header .breadcrumb a:hover { color: var(--white); }
.article-header h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 28ch; }
.article-header .subtitle { color: var(--teal-pale); font-size: 1.15rem; margin: 1rem 0 1.8rem; max-width: 56ch; font-weight: 400; }
.article-header .meta-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; font-family: var(--font-h); font-size: var(--fs-sm); color: var(--teal-pale); }
.article-header .meta-row strong { color: var(--white); }

.article-body { max-width: var(--w-article); margin: 0 auto; padding: 48px var(--gutter); }
.article-body.wide { max-width: var(--w-wide); }
.article-body section { margin-bottom: 56px; }
.article-body section .section-num { color: var(--teal-dk); font-family: var(--font-h); font-weight: 700; margin-right: 8px; }

/* Section prose lists — restore proper indent after the global reset zeroed padding */
.article-body section > ul,
.article-body section > ol,
.article-body section ul.prose,
.article-body section ol.prose {
  padding-left: 1.5em;
  margin: 0 0 1.1em 0;
}
.article-body section > ul li,
.article-body section > ol li,
.article-body section ul.prose li,
.article-body section ol.prose li {
  margin-bottom: 0.5em;
  line-height: 1.6;
  color: var(--slate);
}
.article-body section > ul li::marker,
.article-body section ul.prose li::marker { color: var(--teal-dk); }

/* ── Section card (container for charts/modules) ──────────────── */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 24px 0;
}
.section-card h4 { margin-top: 0; }
.section-card .sec-sub { color: var(--mid); font-size: var(--fs-sm); margin-bottom: 16px; }

/* ── Stat row (At-a-Glance numbers) ───────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal); }
.stat-card .stat-num { font-family: var(--font-h); font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .stat-unit { font-size: 1rem; color: var(--mid); font-weight: 600; margin-left: 4px; }
.stat-card .stat-label { font-size: var(--fs-sm); color: var(--mid); margin-top: 6px; line-height: 1.35; }

/* ── Author card ──────────────────────────────────────────────── */
.author-card { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 14px 0; }
.author-card .author-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy)); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.author-card .author-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;  /* favour upper portion — keeps hair/forehead in frame */
  flex-shrink: 0;
  background: var(--g100);  /* fallback colour behind transparent PNGs */
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--g200);
}
@media (max-width: 720px) {
  .author-card .author-photo { width: 88px; height: 88px; }
}
.author-card .author-meta strong { display: block; color: var(--navy); font-family: var(--font-h); font-size: 1.05rem; }
.author-card .author-meta .author-role { color: var(--teal-dk); font-size: var(--fs-sm); font-family: var(--font-h); font-weight: 600; }
.author-card .author-meta p { margin: 8px 0 6px; line-height: 1.55; }
.author-card .author-links a { font-size: var(--fs-xs); color: var(--teal-dk); margin-right: 12px; }

/* ── Lens switcher (tabbed perspective) ───────────────────────── */
.lens-switcher { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0; overflow: hidden; }
.lens-tabs { display: flex; flex-wrap: wrap; background: var(--navy); padding: 4px; gap: 2px; }
.lens-tab { flex: 1; min-width: 110px; background: transparent; border: 0; color: var(--teal-pale); padding: 12px 16px; font-family: var(--font-h); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; border-radius: var(--radius-sm); transition: background .15s; letter-spacing: .02em; }
.lens-tab:hover { background: var(--navy-lt); color: var(--white); }
.lens-tab[aria-selected="true"] { background: var(--teal); color: var(--navy); }
.lens-content { padding: 28px; }
.lens-content > div:not([data-active]) { display: none; }
.lens-content h4 { margin-top: 0; color: var(--teal-dk); }

/* ── Comparison cards (side-by-side) ──────────────────────────── */
.comparison-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media (max-width: 720px) { .comparison-cards { grid-template-columns: 1fr; } }
.comp-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--teal); }
.comp-card.alt { border-top-color: var(--amber); }
.comp-card h4 { margin-top: 0; }
.comp-card .comp-tag { display: inline-block; font-family: var(--font-h); font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 4px; background: var(--teal-pale); color: var(--teal-dk); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.comp-card.alt .comp-tag { background: var(--amber-lt); color: #8c5a00; }
.comp-card ul { padding-left: 1.2em; }
.comp-card li { margin-bottom: .5rem; }

/* ── Expandable findings (collapsed by default) ───────────────── */
.findings { margin: 24px 0; }
.finding-card { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.finding-toggle { width: 100%; background: transparent; border: 0; padding: 18px 22px; text-align: left; font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.finding-toggle:hover { background: var(--g100); }
.finding-toggle .finding-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--teal-pale); color: var(--teal-dk); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform .2s; flex-shrink: 0; }
.finding-card[data-open="true"] .finding-icon { transform: rotate(45deg); background: var(--teal); color: var(--white); }
.finding-body { padding: 0 22px 20px; color: var(--slate); }
.finding-card:not([data-open="true"]) .finding-body { display: none; }

/* ── Callout (methodology / so-what / disclaimer) ─────────────── */
.callout { padding: 20px 22px; border-radius: var(--radius); margin: 20px 0; display: flex; gap: 14px; align-items: flex-start; }
.callout .callout-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-weight: 800; flex-shrink: 0; }
.callout-so-what { background: var(--teal-pale); border-left: 4px solid var(--teal); }
.callout-so-what .callout-icon { background: var(--teal); color: var(--white); }
.callout-methodology { background: var(--g100); border-left: 4px solid var(--navy-lt); }
.callout-methodology .callout-icon { background: var(--navy); color: var(--white); }
.callout-disclaimer { background: var(--amber-lt); border-left: 4px solid var(--amber); }
.callout-disclaimer .callout-icon { background: var(--amber); color: var(--navy); }
.callout h5 { font-family: var(--font-h); margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.callout p:last-child { margin-bottom: 0; }

/* ── Timeline strip ───────────────────────────────────────────── */
.timeline-strip { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); margin: 24px 0; overflow-x: auto; }
.timeline-track { position: relative; min-height: 130px; padding-top: 60px; }
.timeline-line { position: absolute; left: 0; right: 0; top: 60px; height: 3px; background: linear-gradient(90deg, var(--teal-mid), var(--teal-dk)); border-radius: 2px; }
.timeline-events { display: flex; justify-content: space-between; gap: 12px; position: relative; }
.timeline-event { flex: 1; min-width: 110px; text-align: center; position: relative; }
.timeline-event .te-dot { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--teal); }
.timeline-event .te-year { font-family: var(--font-h); font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.timeline-event .te-label { font-size: var(--fs-sm); color: var(--mid); }

/* ── Flow diagram (steppable patient flow) ────────────────────── */
.flow-diagram { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 24px 0; }
.flow-steps { display: flex; gap: 14px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 200px; background: var(--g100); padding: 16px 18px; border-radius: var(--radius-sm); border-left: 4px solid var(--teal); transition: all .2s; }
.flow-step[data-active="true"] { background: var(--teal-pale); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.flow-step .fs-num { font-family: var(--font-h); font-size: var(--fs-xs); font-weight: 700; color: var(--teal-dk); letter-spacing: .08em; }
.flow-step h5 { margin: 4px 0; font-size: 1rem; }
.flow-step p { font-size: var(--fs-sm); color: var(--mid); margin: 0; }
.flow-controls { display: flex; gap: 8px; margin-top: 16px; }
.flow-controls button { background: var(--navy); color: var(--white); border: 0; padding: 8px 16px; border-radius: var(--radius-sm); font-family: var(--font-h); font-weight: 600; cursor: pointer; font-size: var(--fs-sm); }
.flow-controls button:disabled { background: var(--soft); cursor: not-allowed; }

/* ── Definition (hoverable) ───────────────────────────────────── */
.defined-term { border-bottom: 1px dashed var(--teal); cursor: help; position: relative; color: var(--navy); font-weight: 600; }
.defined-term:hover::after, .defined-term:focus::after {
  content: attr(data-definition);
  position: absolute; bottom: 100%; left: 0; transform: translateY(-6px);
  background: var(--navy); color: var(--white); padding: 8px 12px;
  border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 400; line-height: 1.4;
  width: max-content; max-width: 280px;
  box-shadow: var(--shadow);
  z-index: 100;
}

/* ── Citation footnote ────────────────────────────────────────── */
.cite { font-size: .75em; color: var(--teal-dk); font-weight: 700; vertical-align: super; margin: 0 1px; }
.cite a { color: inherit; text-decoration: none; }
.cite a:hover { text-decoration: underline; }

/* ── PDF download — non-sticky banner at top of article ──────── */
.pdf-download {
  background: var(--white); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
/* Optional sidebar version — small pinned download in the ToC sidebar */
.article-toc .pdf-download-mini {
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--fs-xs);
}
.article-toc .pdf-download-mini strong {
  color: var(--navy); font-family: var(--font-h);
  font-size: var(--fs-sm); margin: 0;
}
.article-toc .pdf-download-mini a {
  display: inline-block;
  background: var(--navy); color: var(--white);
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: .04em;
  text-align: center; margin-top: 2px;
}
.article-toc .pdf-download-mini a:hover { background: var(--teal-dk); color: var(--white); }
.pdf-download .pdf-icon { width: 40px; height: 40px; background: var(--amber-lt); color: var(--amber); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-weight: 800; font-size: .85rem; }
.pdf-download .pdf-meta { flex: 1; }
.pdf-download .pdf-meta strong { display: block; color: var(--navy); font-family: var(--font-h); font-size: var(--fs-sm); }
.pdf-download .pdf-meta span { color: var(--mid); font-size: var(--fs-xs); }
.pdf-download a.pdf-cta { background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); font-family: var(--font-h); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.pdf-download a.pdf-cta:hover { background: var(--teal-dk); color: var(--white); }

/* ── Related articles ─────────────────────────────────────────── */
.related-articles { background: var(--white); padding: 40px var(--gutter); border-top: 1px solid var(--line); }
.related-articles-inner { max-width: var(--w-full); margin: 0 auto; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dk); color: var(--teal-pale); padding: 40px var(--gutter); text-align: center; font-size: var(--fs-sm); }
.site-footer a { color: var(--teal-lt); }
.site-footer .footer-meta { font-size: var(--fs-xs); color: var(--soft); margin-top: 12px; }

/* ── Utility ──────────────────────────────────────────────────── */
.container { max-width: var(--w-full); margin: 0 auto; padding: 0 var(--gutter); }
.container-article { max-width: var(--w-article); margin: 0 auto; padding: 0 var(--gutter); }
.divider { height: 2px; background: var(--g200); margin: 36px 0; border: 0; }
.text-muted { color: var(--mid); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ════════════════════════════════════════════════════════════════
   v2 additions — long-form article reading affordances
   ════════════════════════════════════════════════════════════════ */

/* ── Reading progress bar ─────────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 200; pointer-events: none;
}
.reading-progress > .bar {
  height: 100%; width: 0%; background: var(--teal);
  transition: width 80ms linear;
}

/* ── Article layout with sticky ToC ───────────────────────────── */
.article-layout {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px; padding: 48px var(--gutter);
  align-items: start;
}
.article-toc {
  position: sticky; top: 24px;
  font-family: var(--font-h);
  font-size: var(--fs-sm);
  align-self: start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding-right: 8px;
}
.article-toc-title {
  text-transform: uppercase; letter-spacing: .06em;
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--soft); margin-bottom: 14px;
}
.article-toc ol { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin-bottom: 6px; line-height: 1.35; }
.article-toc a {
  display: block; color: var(--mid);
  padding: 6px 10px 6px 14px;
  border-left: 2px solid var(--line);
  font-weight: 500;
  transition: color .15s, border-color .15s, background .15s;
}
.article-toc a:hover { color: var(--navy); background: var(--g100); }
.article-toc a.active {
  color: var(--teal-dk); border-left-color: var(--teal);
  background: var(--teal-pale); font-weight: 600;
}
.article-layout .article-body { padding: 0; max-width: none; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { display: none; }
}

/* ── Key takeaway card (end of each section) ──────────────────── */
.takeaway {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 32px 0 8px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.takeaway .takeaway-label {
  font-family: var(--font-h);
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--teal-dk);
  background: var(--teal-pale);
  padding: 4px 10px; border-radius: 4px;
  flex-shrink: 0;
}
.takeaway .takeaway-text {
  color: var(--navy);
  font-family: var(--font-h); font-weight: 600;
  font-size: 1.02rem; line-height: 1.45;
}

/* ── Canada tile map (province first-payer rules) ─────────────── */
.canada-map {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.canada-map h4 { margin-top: 0; }
.canada-map .map-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px;
  font-size: var(--fs-xs); font-family: var(--font-h); font-weight: 600;
}
.canada-map .map-legend > span {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--mid);
}
.canada-map .map-legend .swatch {
  width: 14px; height: 14px; border-radius: 3px;
  display: inline-block;
}
.swatch.private-first { background: var(--teal); }
.swatch.public-first  { background: var(--amber); }
.swatch.special       { background: var(--navy); }
.swatch.federal       { background: var(--soft); }

.canada-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  max-width: 720px;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  /* Collapse 13-col tile grid to a more readable 7-col layout on mobile.
     Empty cells still occupy slots but stay invisible — the named cells
     wrap naturally and remain large enough to read. */
  .canada-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}
.canada-cell {
  aspect-ratio: 1;
  background: var(--g100);
  border-radius: var(--radius-sm);
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(.65rem, 1.4vw, .85rem);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.canada-cell.empty { background: transparent; cursor: default; pointer-events: none; }
.canada-cell.private-first { background: var(--teal); }
.canada-cell.public-first  { background: var(--amber); color: var(--navy); }
.canada-cell.federal       { background: var(--soft); }
.canada-cell:not(.empty):hover { transform: translateY(-2px); box-shadow: var(--shadow); z-index: 2; }
.canada-cell[aria-pressed="true"] { outline: 3px solid var(--navy); outline-offset: 2px; }
.canada-cell .marker {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy);
}
.canada-detail {
  background: var(--g100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-height: 84px;
}
.canada-detail strong {
  font-family: var(--font-h); display: block;
  color: var(--navy); margin-bottom: 4px;
  font-size: 1rem;
}
.canada-detail p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.canada-detail .rule-pill {
  display: inline-block; font-family: var(--font-h);
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 4px;
  margin-right: 8px;
}
.rule-pill.private-first { background: var(--teal-pale); color: var(--teal-dk); }
.rule-pill.public-first  { background: var(--amber-lt); color: #7a4d00; }
.rule-pill.federal       { background: var(--g200); color: var(--mid); }

/* ── Inline data viz containers ───────────────────────────────── */
.dataviz {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}
.dataviz .dv-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.dataviz h5 { margin: 0; color: var(--navy); font-size: 1rem; }
.dataviz .dv-source {
  font-size: var(--fs-xs); color: var(--soft);
  font-family: var(--font-h); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.dataviz .dv-caption {
  margin-top: 12px; font-size: var(--fs-sm);
  color: var(--mid); line-height: 1.5;
}
.dataviz svg { width: 100%; height: auto; display: block; }

/* CAGR divergence chart specifics */
.cagr-chart .line-drd { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cagr-chart .line-rx  { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 4; }
.cagr-chart .axis     { stroke: var(--g200); stroke-width: 1; }
.cagr-chart .tick     { fill: var(--soft); font-size: 11px; font-family: var(--font-b); }
.cagr-chart .label    { fill: var(--navy); font-size: 12px; font-family: var(--font-h); font-weight: 700; }
.cagr-chart .end-dot  { fill: var(--navy); }
.cagr-chart .end-dot.rx { fill: var(--teal); }

/* CDIPC absorption bar specifics */
.cdipc-bar .seg-covered  { fill: var(--teal); }
.cdipc-bar .seg-absorbed { fill: var(--amber); }
.cdipc-bar .bar-bg       { fill: var(--g100); }
.cdipc-bar .pct          { font-family: var(--font-h); font-weight: 800; font-size: 18px; }
.cdipc-bar .pct.on-teal  { fill: var(--white); }
.cdipc-bar .pct.on-amber { fill: var(--navy); }
.cdipc-bar .lbl          { font-family: var(--font-h); font-weight: 600; font-size: 12px; fill: var(--navy); }

/* ── Citation hover popover ───────────────────────────────────── */
.cite-popover {
  position: absolute;
  background: var(--navy); color: var(--white);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 400; line-height: 1.4;
  width: 320px; max-width: 90vw;
  box-shadow: var(--shadow);
  z-index: 1000;
  font-family: var(--font-b); letter-spacing: 0;
  text-align: left;
  opacity: 0; transition: opacity .15s;
  pointer-events: none;
  /* Top/left are set by JS; never use bottom/right here */
}
.cite-popover[data-visible="true"] { opacity: 1; pointer-events: auto; }
.cite-popover .ref-num {
  display: inline-block; background: var(--teal); color: var(--navy);
  padding: 1px 8px; border-radius: 3px;
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-xs); margin-right: 8px;
}
.cite-popover .arrow {
  position: absolute; left: 50%; bottom: -6px;
  width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: var(--navy);
}

/* ════════════════════════════════════════════════════════════════
   v3 additions — pull quotes, glossary, stress-test
   ════════════════════════════════════════════════════════════════ */

/* ── Pull quote ───────────────────────────────────────────────── */
.pull-quote {
  margin: 36px 0;
  padding: 24px 28px 24px 36px;
  border-left: 5px solid var(--teal);
  background: linear-gradient(90deg, var(--teal-pale) 0%, transparent 60%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote .pq-text {
  font-family: var(--font-h);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.pull-quote .pq-text::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 2em;
  color: var(--teal);
  vertical-align: -0.25em;
  margin-right: 4px;
  line-height: 0;
}
.pull-quote .pq-text::after {
  content: "\201D";
  font-family: Georgia, serif;
  font-size: 1.4em;
  color: var(--teal);
  vertical-align: -0.25em;
  margin-left: 2px;
  line-height: 0;
}
.pull-quote .pq-attr {
  font-family: var(--font-h);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
}
.pull-quote .pq-attr::before { content: "— "; }

/* ── Glossary panel (floating) ────────────────────────────────── */
.glossary-toggle {
  position: fixed; bottom: 20px; left: 20px;
  z-index: 90;
  background: var(--navy); color: var(--white);
  border: 0; border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: .04em;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, background .15s;
}
.glossary-toggle:hover { background: var(--teal-dk); transform: translateY(-2px); }
.glossary-toggle .icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}

.glossary-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--white);
  box-shadow: -8px 0 32px rgba(0,100,120,.18);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
  padding: 24px 24px 80px;
}
.glossary-panel[data-open="true"] { transform: translateX(0); }
.glossary-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px;
}
.glossary-panel-head h3 { margin: 0; color: var(--navy); font-size: 1.25rem; }
.glossary-close {
  background: transparent; border: 0;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.6rem; color: var(--mid);
  cursor: pointer; line-height: 1;
}
.glossary-close:hover { background: var(--g100); color: var(--navy); }

.glossary-list { list-style: none; margin: 0; padding: 0; }
.glossary-list > li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.glossary-list > li:last-child { border-bottom: 0; }
.glossary-list dt {
  font-family: var(--font-h);
  font-weight: 800;
  color: var(--teal-dk);
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: 2px;
}
.glossary-list .full {
  font-family: var(--font-b); font-weight: 600;
  color: var(--navy); font-size: var(--fs-sm);
  margin-bottom: 6px; display: block;
}
.glossary-list dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--slate);
  line-height: 1.5;
}

.glossary-backdrop {
  position: fixed; inset: 0;
  background: rgba(13, 45, 78, 0.36);
  z-index: 95;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.glossary-backdrop[data-visible="true"] { opacity: 1; pointer-events: auto; }

/* ── Plan stress-test interactive ─────────────────────────────── */
.stress-test {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 24px 0;
  border: 1px solid var(--line);
}
.stress-test h4 { margin-top: 0; }
.stress-test .st-intro { color: var(--mid); font-size: var(--fs-sm); margin-bottom: 20px; }

.stress-inputs {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 22px;
}
.stress-inputs > .field { display: flex; flex-direction: column; gap: 6px; }
.stress-inputs label {
  font-family: var(--font-h); font-weight: 700;
  color: var(--navy); font-size: var(--fs-sm);
  letter-spacing: .02em;
}
.stress-inputs .hint { font-size: var(--fs-xs); color: var(--soft); }

.stress-inputs input[type="range"] { width: 100%; accent-color: var(--teal); }
.stress-inputs select {
  font-family: var(--font-b); font-size: var(--fs-body);
  padding: 9px 12px; border: 1px solid var(--g200);
  border-radius: var(--radius-sm); background: var(--white);
  color: var(--slate);
}
.stress-inputs select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.stress-inputs .seg-control { display: flex; gap: 4px; flex-wrap: wrap; }
.stress-inputs .seg-btn {
  flex: 1; min-width: 80px;
  background: var(--g100); color: var(--navy);
  border: 1px solid var(--g200);
  padding: 8px 10px;
  font-family: var(--font-h); font-weight: 600;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.stress-inputs .seg-btn:hover { background: var(--teal-pale); }
.stress-inputs .seg-btn[aria-pressed="true"] {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.stress-inputs .slider-value {
  font-family: var(--font-h); font-weight: 800; color: var(--navy);
  font-size: 1.1rem;
}

.stress-results {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 14px;
}
.stress-result-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 18px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.stress-result-card .srlabel {
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--soft);
}
.stress-result-card .srvalue {
  font-family: var(--font-h); font-weight: 800;
  font-size: 1.2rem; color: var(--navy);
  line-height: 1.2;
}
.stress-result-card .srdetail { font-size: var(--fs-sm); color: var(--mid); }
.stress-result-card[data-risk="low"]      { border-left: 4px solid var(--teal); }
.stress-result-card[data-risk="medium"]   { border-left: 4px solid var(--amber); }
.stress-result-card[data-risk="high"]     { border-left: 4px solid #C0383B; }
.stress-result-card[data-risk="low"]    .srvalue { color: var(--teal-dk); }
.stress-result-card[data-risk="medium"] .srvalue { color: #8c5a00; }
.stress-result-card[data-risk="high"]   .srvalue { color: #A02020; }

.stress-test .st-disclaimer {
  font-size: var(--fs-xs); color: var(--soft);
  background: var(--g100); padding: 10px 14px;
  border-radius: var(--radius-sm); margin-top: 14px;
}
.stress-test .st-cta {
  margin-top: 16px; text-align: right;
}
.stress-test .st-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: .02em;
}
.stress-test .st-cta a:hover { background: var(--teal-dk); color: var(--white); }

/* ════════════════════════════════════════════════════════════════
   Hero variant D — full-bleed background with left fade
   ════════════════════════════════════════════════════════════════ */
.section-hero-fullbleed {
  position: relative;
  min-height: 580px;
  background-color: var(--white);
  background-image: url('/insights/assets/hero.png');
  background-repeat: no-repeat;
  background-position: right center;
  /* Slightly oversize the image so it fills wide screens without a hard edge,
     while keeping the focal circle fully visible (minimal top/bottom crop). */
  background-size: auto 118%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Strong left → soft-right fade so the text area reads as clean background */
.section-hero-fullbleed::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,1.00) 0%,
    rgba(255,255,255,1.00) 24%,
    rgba(255,255,255,0.88) 34%,
    rgba(255,255,255,0.45) 48%,
    rgba(255,255,255,0.10) 64%,
    rgba(255,255,255,0.00) 78%);
  pointer-events: none;
}
.section-hero-fullbleed-inner {
  position: relative; z-index: 2;
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 90px var(--gutter) 80px;
  min-height: 580px;
  display: flex; align-items: center;
}
.section-hero-fullbleed .text-block {
  max-width: 560px;
}
.section-hero-fullbleed h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-hero-fullbleed h1 .accent { color: var(--teal); }
.section-hero-fullbleed .tagline {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--navy-lt);
  margin: 4px 0 18px;
  font-weight: 500;
}
.section-hero-fullbleed .tagline .decoded { color: var(--teal); font-weight: 600; }
.section-hero-fullbleed .intro {
  font-size: 1.06rem;
  color: var(--slate);
  max-width: 52ch;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .section-hero-fullbleed {
    /* On narrow screens, push image lower behind text and strengthen the fade */
    background-position: bottom right;
    background-size: 160% auto;
    min-height: 720px;
  }
  .section-hero-fullbleed::before {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.92) 45%,
      rgba(255,255,255,0.10) 75%,
      rgba(255,255,255,0.00) 100%);
  }
  .section-hero-fullbleed-inner {
    align-items: flex-start;
    padding: 50px var(--gutter) 220px;
    min-height: 720px;
  }
}

/* ════════════════════════════════════════════════════════════════
   v4 additions — DMA-facing features
   ════════════════════════════════════════════════════════════════ */

/* ── Audience filter ("Does this apply to you?") ──────────────── */
.audience-filter {
  background: linear-gradient(180deg, var(--teal-pale) 0%, var(--white) 100%);
  border: 1px solid var(--teal-mid);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0 32px;
}
.audience-filter h4 { margin: 0 0 10px; color: var(--navy); }
.audience-filter p  { color: var(--slate); font-size: var(--fs-sm); margin-bottom: 14px; }
.audience-row { display: flex; gap: 10px; flex-wrap: wrap; }
.audience-btn {
  flex: 1; min-width: 180px;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--g200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-b);
  transition: all .15s;
}
.audience-btn:hover { border-color: var(--teal); background: var(--teal-pale); }
.audience-btn[aria-pressed="true"] {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.audience-btn strong {
  display: block;
  font-family: var(--font-h); font-weight: 700;
  font-size: 1rem; margin-bottom: 4px;
  color: inherit;
}
.audience-btn span { font-size: var(--fs-sm); color: var(--mid); line-height: 1.35; }
.audience-btn[aria-pressed="true"] span { color: var(--teal-pale); }
.audience-route {
  margin-top: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: var(--fs-sm);
  border-left: 4px solid var(--teal);
  display: none;
}
.audience-route[data-visible="true"] { display: block; }
.audience-route strong { font-family: var(--font-h); color: var(--navy); display: block; margin-bottom: 4px; }
.audience-route .quick-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.audience-route .quick-links a {
  font-family: var(--font-h); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--teal-pale); color: var(--teal-dk);
  padding: 5px 12px; border-radius: 4px;
}
.audience-route .quick-links a:hover { background: var(--teal); color: var(--white); }

/* ── Why MORSE credentials band ───────────────────────────────── */
.why-morse {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0;
}
.why-morse-head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.why-morse h4 { color: var(--white); margin: 0; }
.why-morse .why-sub { color: var(--teal-pale); font-size: var(--fs-sm); }
.why-morse-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.why-morse-stat {
  border-left: 3px solid var(--teal);
  padding-left: 14px;
}
.why-morse-stat .num {
  font-family: var(--font-h); font-weight: 800;
  font-size: 2.2rem; line-height: 1;
  color: var(--teal-lt);
}
.why-morse-stat .lbl {
  margin-top: 6px;
  color: var(--teal-pale);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.why-morse-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
.why-morse-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: var(--navy);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: .02em;
}
.why-morse-cta a:hover { background: var(--white); color: var(--navy); }
.why-morse-cta a.secondary {
  background: transparent; color: var(--teal-pale);
  border: 1px solid var(--teal-mid);
}
.why-morse-cta a.secondary:hover { background: var(--navy-lt); color: var(--white); }

/* ── Pipeline-stage implications matrix ───────────────────────── */
.pipeline-matrix {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.pipeline-matrix h4 { margin-top: 0; }
.pipeline-stages {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--g100); padding: 4px;
  border-radius: var(--radius-sm);
  margin: 14px 0 22px;
}
.pipeline-stage-btn {
  flex: 1; min-width: 110px;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  font-family: var(--font-h); font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--mid);
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
}
.pipeline-stage-btn:hover { background: var(--teal-pale); color: var(--navy); }
.pipeline-stage-btn[aria-pressed="true"] {
  background: var(--navy); color: var(--white);
}
.pipeline-stage-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.pipeline-stage-body h5 {
  margin: 0 0 8px;
  color: var(--teal-dk);
  font-family: var(--font-h);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pipeline-stage-body ul { padding-left: 1.2em; margin: 0 0 12px; }
.pipeline-stage-body li { margin-bottom: 6px; }
.pipeline-cta {
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: var(--fs-sm);
}
.pipeline-cta strong { display: block; color: var(--navy); margin-bottom: 6px; }
.pipeline-cta a {
  display: inline-block;
  margin-top: 8px;
  background: var(--navy); color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-h); font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: .02em;
}
.pipeline-cta a:hover { background: var(--teal-dk); color: var(--white); }
@media (max-width: 720px) {
  .pipeline-stage-body { grid-template-columns: 1fr; }
}

/* ── Submission → listing forecast tool ───────────────────────── */
.forecast-tool {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 24px 0;
  border-top: 4px solid var(--teal);
}
.forecast-tool h4 { margin-top: 0; }
.forecast-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}
.forecast-inputs label {
  font-family: var(--font-h); font-weight: 700;
  color: var(--navy); font-size: var(--fs-sm);
  display: block; margin-bottom: 4px;
}
.forecast-inputs input[type="date"],
.forecast-inputs select {
  width: 100%;
  font-family: var(--font-b); font-size: var(--fs-body);
  padding: 9px 12px;
  border: 1px solid var(--g200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate);
}
.forecast-results { display: flex; flex-direction: column; gap: 12px; }
.forecast-row {
  display: flex; gap: 16px; align-items: center;
  padding: 14px 18px;
  background: var(--g100);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.forecast-row .channel {
  font-family: var(--font-h); font-weight: 700;
  color: var(--navy);
  min-width: 120px;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.forecast-row .range {
  font-family: var(--font-h); font-weight: 800;
  color: var(--teal-dk);
  font-size: 1.05rem;
}
.forecast-row .months {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--mid);
}
.forecast-disclaimer {
  font-size: var(--fs-xs);
  color: var(--soft);
  background: var(--g100);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 14px 0 0;
}
.forecast-craft {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--amber-lt);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--amber);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.forecast-craft p { margin: 0; font-size: var(--fs-sm); color: var(--navy); flex: 1; min-width: 200px; }
.forecast-craft a {
  background: var(--amber); color: var(--navy);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: .02em;
  white-space: nowrap;
}
.forecast-craft a:hover { background: var(--navy); color: var(--white); }

/* ── Private-only fit assessment ──────────────────────────────── */
.fit-assessment {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 24px 0;
  border-top: 4px solid var(--navy);
}
.fit-assessment h4 { margin-top: 0; }
.fit-questions {
  display: flex; flex-direction: column;
  gap: 10px; margin: 16px 0 20px;
}
.fit-q {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: var(--g100);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.fit-q .qtext {
  flex: 1; min-width: 240px;
  font-size: var(--fs-body);
  color: var(--slate);
  line-height: 1.4;
}
.fit-q .yesno {
  display: flex; gap: 4px; background: var(--white);
  padding: 2px; border-radius: 999px;
  border: 1px solid var(--g200);
}
.fit-q .yesno button {
  background: transparent;
  border: 0;
  padding: 6px 16px;
  font-family: var(--font-h); font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--mid);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.fit-q .yesno button[aria-pressed="true"] {
  background: var(--teal); color: var(--navy);
}
.fit-q .yesno button.no[aria-pressed="true"] {
  background: var(--amber); color: var(--navy);
}
.fit-result {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.fit-result .fit-label {
  font-family: var(--font-h); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: var(--fs-xs);
  color: var(--soft);
  margin-bottom: 4px;
}
.fit-result .fit-headline {
  font-family: var(--font-h); font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.fit-result p { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--slate); }
.fit-result.fit-good { border-left: 4px solid var(--teal); }
.fit-result.fit-mixed { border-left: 4px solid var(--amber); }
.fit-result.fit-poor { border-left: 4px solid #C0383B; }
.fit-result.fit-good .fit-headline { color: var(--teal-dk); }
.fit-result.fit-mixed .fit-headline { color: #8c5a00; }
.fit-result.fit-poor .fit-headline { color: #A02020; }

/* ── DMA module shared chrome — eyebrow + intro ───────────────── */
.dma-eyebrow {
  display: inline-block;
  background: var(--navy); color: var(--teal-pale);
  font-family: var(--font-h); font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 10px;
}
.dma-intro { color: var(--mid); font-size: var(--fs-sm); margin-bottom: 12px; }

/* ── Anchor-link affordance next to h2/h3 ─────────────────────── */
.article-body h2, .article-body h3 {
  position: relative;
}
.article-body h2 .anchor-link,
.article-body h3 .anchor-link {
  position: absolute;
  left: -1.5em;
  top: 0;
  opacity: 0;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.7em;
  color: var(--teal-dk);
  text-decoration: none;
  padding: 0.2em 0.3em;
  transition: opacity .15s;
  user-select: none;
}
.article-body h2:hover .anchor-link,
.article-body h3:hover .anchor-link,
.article-body h2 .anchor-link:focus,
.article-body h3 .anchor-link:focus {
  opacity: 1;
}
.article-body .anchor-link::before { content: '#'; }
@media (max-width: 720px) {
  .article-body h2 .anchor-link,
  .article-body h3 .anchor-link {
    position: static;
    opacity: 0.5;
    margin-right: 6px;
  }
}

/* ── Per-section references panel ─────────────────────────────── */
.section-refs {
  background: var(--g100);
  border-left: 3px solid var(--teal-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px 14px 20px;
  margin: 28px 0 8px;
  font-size: var(--fs-sm);
}
.section-refs-label {
  font-family: var(--font-h);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: var(--fs-xs);
  color: var(--teal-dk);
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.section-refs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.section-refs ol li {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  line-height: 1.45;
  color: var(--slate);
}
.section-refs ol li .ref-num {
  flex-shrink: 0;
  font-family: var(--font-h);
  font-weight: 700;
  color: var(--teal-dk);
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
}
.section-refs ol li .ref-body {
  flex: 1;
}
.section-refs ol li a {
  color: var(--teal-dk);
  text-decoration: none;
  border-bottom: 1px dotted var(--teal-mid);
}
.section-refs ol li a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.section-refs em { color: var(--mid); }

/* ── Print styles ─────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .pdf-download, .lens-tabs, .flow-controls,
  .reading-progress, .article-toc, .cite-popover,
  .glossary-toggle, .glossary-panel, .glossary-backdrop,
  .stress-test .st-cta, .audience-filter, .why-morse-cta,
  .pipeline-stages, .fit-questions, .forecast-craft a { display: none; }
  .lens-content > div { display: block !important; border-top: 1px solid #ccc; padding-top: 12px; }
  .finding-card[data-open] .finding-body { display: block !important; }
  .article-layout { grid-template-columns: 1fr; }
  body { background: white; color: black; }
}

/* ════════════════════════════════════════════════════════════════
   Demo-flag — wraps CTAs that are slated for removal per SME notes
   ════════════════════════════════════════════════════════════════ */
.demo-flag {
  display: inline-block;
  position: relative;
  padding: 12px 14px 10px;
  margin: 22px 0 6px;
  border: 2px dashed #d97706;
  border-radius: 8px;
  background: #fffbeb;
}
.demo-flag::before {
  content: "DEMO · Arvind: optional — slated for removal";
  position: absolute;
  top: -10px;
  left: 12px;
  background: #fef3c7;
  color: #92400e;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #d97706;
}
.demo-flag > * { margin: 0; }
.demo-flag a { display: inline-block; }
@media (max-width: 720px) {
  .demo-flag::before { font-size: 9px; left: 8px; }
}

/* ── H3 partner logo — inline with role text ─────────────────────── */
.author-card .author-org-logo {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  line-height: 1;
}
.author-card .author-org-logo img {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.author-card .author-org-logo .partner-label { display: none; }

/* ── Non-demo CTA wrapper for CRaFT and other real published links ── */
.real-cta {
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-left: 4px solid var(--teal, #12b2cb);
  background: var(--g50, #f9fafb);
  border-radius: 4px;
}
.real-cta a {
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-weight: 700;
  color: var(--navy, #13294b);
  text-decoration: none;
}
.real-cta a:hover { color: var(--teal-dk, #0e8ea3); text-decoration: underline; }
.real-cta-label {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g500, #6b7280);
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ── Co-published credit — Option D: stacked card with pipe lockup ── */
.copublished-credit {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 56px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  width: max-content;
  max-width: 100%;
}
.copublished-credit .cp-label {
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #444441;
  font-weight: 700;
}
.copublished-credit .cp-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}
.copublished-credit a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.copublished-credit img {
  display: block;
  width: auto;
}
.copublished-credit .cp-morse { height: 38px; }
.copublished-credit .cp-h3 { height: 36px; }
.copublished-credit .cp-sep {
  color: #94908A;
  font-size: 30px;
  font-weight: 300;
  user-select: none;
  line-height: 1;
}
@media (max-width: 720px) {
  .copublished-credit { padding: 8px 10px; gap: 6px; }
  .copublished-credit .cp-morse { height: 28px; }
  .copublished-credit .cp-h3 { height: 26px; }
  .copublished-credit .cp-sep { font-size: 22px; }
  .copublished-credit .cp-label { font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════════
   Print optimization
   ════════════════════════════════════════════════════════════════ */
@media print {
  /* Hide UI chrome that doesn't belong on paper */
  .version-switcher,
  .design-switcher,
  .pdf-download,
  .article-toc,
  .reading-progress,
  .glossary-panel,
  .glossary-trigger,
  .demo-flag::before { display: none !important; }

  /* Demo-flag amber outline → grayscale subtle frame on paper */
  .demo-flag {
    border: 1px dashed #999 !important;
    background: transparent !important;
    padding: 8px 12px !important;
    margin: 8px 0 !important;
  }

  /* Force every accordion / expandable section OPEN for print */
  .finding-body,
  [hidden] .finding-body,
  .finding-card .finding-body,
  details > *,
  .expandable-findings .finding-body {
    display: block !important;
    visibility: visible !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }
  .finding-toggle { display: none !important; }

  /* Prevent ugly page breaks in mid-component */
  .dataviz,
  .stat-card,
  .finding-card,
  .author-card,
  .comp-card,
  .comparison-cards,
  .real-cta,
  .copublished-credit,
  .timeline-event,
  .pull-quote,
  blockquote { page-break-inside: avoid; break-inside: avoid; }

  /* Avoid orphan headings */
  h2, h3, h4 { page-break-after: avoid; break-after: avoid; }

  /* Body type — slightly smaller and tighter for print legibility */
  body { font-size: 11pt; line-height: 1.45; }
  .article-layout { display: block; }  /* drop the sticky-TOC sidebar */

  /* Show full URL after external links so cites are traceable on paper */
  .references a[href^="http"]::after,
  .real-cta a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }
}

/* ════════════════════════════════════════════════════════════════
   Chart micro-interactions — subtle hover signals
   ════════════════════════════════════════════════════════════════ */
.cagr-chart .line-drd,
.cagr-chart .line-rx {
  transition: stroke-width 0.2s ease;
  cursor: pointer;
}
.cagr-chart:hover .line-drd { stroke-width: 5; }
.cagr-chart:hover .line-rx  { stroke-width: 4; }

.cagr-chart .end-dot {
  transition: r 0.2s ease;
}
.cagr-chart .end-dot:hover { r: 7.5; }

.cdipc-bar .seg-covered,
.cdipc-bar .seg-absorbed {
  transition: opacity 0.2s ease;
}
.cdipc-bar .seg-covered:hover,
.cdipc-bar .seg-absorbed:hover { opacity: 0.85; }

/* Stat cards — gentle lift on hover */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 45, 78, 0.08);
}

/* ── Verbatim "At a glance" numbered list (per paper) ─────────── */
.at-a-glance-list {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 32px var(--gutter) 16px;
}
.at-a-glance-list h2 {
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 0 0 16px;
  color: var(--navy);
}
.paper-at-a-glance {
  counter-reset: aag;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.paper-at-a-glance li {
  counter-increment: aag;
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--g50, #f9fafb);
  border-left: 4px solid var(--teal, #12b2cb);
  border-radius: 4px;
  line-height: 1.55;
}
.paper-at-a-glance li::before {
  content: counter(aag);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal, #12b2cb);
  color: #fff;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════════
   Optional markup — visualizations not in the white paper PDF.
   Subtle dotted blue outline + corner badge so SME reviewers know
   these are presentation enhancements they can vote off.
   ════════════════════════════════════════════════════════════════ */
.optional-markup {
  position: relative;
  outline: 2px dotted #2563eb;
  outline-offset: 8px;
  border-radius: 4px;
  margin: 52px 0 28px;
}
.optional-markup::after {
  content: "OPTIONAL · NOT IN WHITE PAPER";
  position: absolute;
  top: -32px;
  left: 0;
  background: #eff6ff;
  color: #1e3a8a;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px dotted #2563eb;
  z-index: 5;
  white-space: nowrap;
  pointer-events: none;
}
.optional-markup[data-figure]::after {
  content: attr(data-figure) " · OPTIONAL · NOT IN WHITE PAPER";
}
@media (max-width: 720px) {
  .optional-markup::after {
    font-size: 9px;
    right: 4px;
    top: -12px;
    padding: 2px 6px;
  }
  .optional-markup { outline-offset: 4px; }
}
@media print {
  .optional-markup { outline: 1px dotted #999 !important; outline-offset: 4px !important; }
  .optional-markup::after { color: #555 !important; background: transparent !important; border: 1px dotted #999 !important; }
}

/* ════════════════════════════════════════════════════════════════
   Rich site footer — matches morseconsulting.ca WordPress footer
   Loaded via JS include from /insights/_partials/site-footer.html
   ════════════════════════════════════════════════════════════════ */
.site-footer-rich {
  background: #1b1b1b;
  color: #b8b8b8;
  padding: 56px var(--gutter) 0;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 64px;
}
.site-footer-rich a { color: var(--teal, #12b2cb); text-decoration: none; }
.site-footer-rich a:hover { color: #fff; }

.site-footer-rich .footer-columns {
  max-width: var(--w-full, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 40px;
}
.site-footer-rich .footer-h {
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  margin: 0 0 18px;
}
.site-footer-rich .footer-org-name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.site-footer-rich .footer-cities {
  color: #d8d8d8;
  margin-bottom: 12px;
}
.site-footer-rich .footer-tel,
.site-footer-rich .footer-email {
  margin: 4px 0;
}
.site-footer-rich .footer-label {
  display: inline-block;
  width: 18px;
  color: #6b6b6b;
  font-weight: 600;
}
.site-footer-rich .footer-city-tag {
  color: #888;
  font-size: 12px;
}
.site-footer-rich .footer-blurb {
  margin: 0 0 16px;
  color: #b8b8b8;
}
.site-footer-rich .footer-cta {
  display: inline-block;
  padding: 8px 14px;
  background: var(--teal, #12b2cb);
  color: #fff !important;
  border-radius: 4px;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s;
}
.site-footer-rich .footer-cta:hover { background: #0e8ea3; color: #fff !important; }
.site-footer-rich .footer-cta-secondary {
  background: transparent;
  border: 1px solid var(--teal, #12b2cb);
  color: var(--teal, #12b2cb) !important;
}
.site-footer-rich .footer-cta-secondary:hover { background: var(--teal, #12b2cb); color: #fff !important; }
.site-footer-rich .footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.site-footer-rich .footer-social a {
  color: #d8d8d8;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
}
.site-footer-rich .footer-social a:hover {
  border-color: var(--teal, #12b2cb);
  color: #fff;
}

.site-footer-rich .footer-tagline {
  max-width: var(--w-full, 1200px);
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid #2a2a2a;
  color: #d8d8d8;
  font-size: 13px;
  text-align: center;
  font-style: italic;
}
.site-footer-rich .footer-meta-bar {
  background: #141414;
  margin: 0 calc(-1 * var(--gutter));
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #888;
}
.site-footer-rich .footer-meta-bar a { color: var(--teal, #12b2cb); }

@media (max-width: 720px) {
  .site-footer-rich { padding: 40px var(--gutter) 0; margin-top: 40px; }
  .site-footer-rich .footer-columns { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-rich .footer-meta-bar { flex-direction: column; align-items: flex-start; }
}

/* Hide the old simple site-footer so we don't get a double footer */
.site-footer { display: none !important; }

/* ── Footer 4-column layout + brand assets + CRaFT report card ── */
.site-footer-rich .footer-columns-4 {
  grid-template-columns: 1.1fr 1fr 1.2fr 1.1fr;
  gap: 36px;
}
.site-footer-rich .footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer-rich .footer-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}
.site-footer-rich .footer-anniversary {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}
.site-footer-rich .footer-report-card {
  display: block;
  padding: 16px 18px;
  background: rgba(18, 178, 203, 0.10);
  border: 1px solid rgba(18, 178, 203, 0.35);
  border-radius: 6px;
  color: #d8d8d8 !important;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.site-footer-rich .footer-report-card:hover {
  background: rgba(18, 178, 203, 0.18);
  border-color: var(--teal, #12b2cb);
  color: #fff !important;
}
.site-footer-rich .footer-report-title {
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}
.site-footer-rich .footer-report-sub {
  font-size: 12px;
  color: #c8c8c8;
  line-height: 1.45;
  margin-bottom: 10px;
}
.site-footer-rich .footer-report-cta {
  display: inline-block;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-weight: 700;
  font-size: 12px;
  color: var(--teal, #12b2cb);
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (max-width: 1024px) {
  .site-footer-rich .footer-columns-4 {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .site-footer-rich .footer-columns-4 {
    grid-template-columns: 1fr;
  }
  .site-footer-rich .footer-logo { width: 180px; }
  .site-footer-rich .footer-anniversary { width: 120px; }
}

/* ── WP-style footer: top-of-block logo + feature cards (CTC + Report) ── */
.site-footer-rich {
  padding-top: 48px;
}
.site-footer-rich .footer-logo-link {
  display: block;
  max-width: var(--w-full, 1200px);
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
}
.site-footer-rich .footer-logo {
  width: 268px;
  height: auto;
  max-width: 100%;
}

/* Contact rows with simple inline icons */
.site-footer-rich .footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.site-footer-rich .footer-ico {
  display: inline-flex;
  width: 22px;
  justify-content: center;
  color: #8a8a8a;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}
.site-footer-rich .footer-org-name {
  color: var(--teal, #12abc3);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

/* Feature cards with teal-bordered images */
.site-footer-rich .footer-feature-card {
  display: block;
  text-decoration: none;
}
.site-footer-rich .footer-feature-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 280px;
  border: 2px solid var(--teal, #12abc3);
  border-radius: 10px;
  transition: opacity .2s, border-color .2s;
}
.site-footer-rich .footer-feature-card:hover .footer-feature-img {
  border-color: #fff;
  opacity: 0.95;
}
.site-footer-rich .footer-feature-card-narrow .footer-feature-img {
  max-width: 150px;
}

/* Ghost CTA — matches WP "Sign Up" button */
.site-footer-rich .footer-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: #fff !important;
  border: 1px solid var(--teal, #12abc3);
  border-radius: 0;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, color .15s;
  margin: 4px 0 8px;
}
.site-footer-rich .footer-cta-ghost:hover {
  background: var(--teal, #12abc3);
  color: #fff !important;
}
.site-footer-rich .footer-cta-icon {
  color: var(--teal, #12abc3);
  font-size: 16px;
}
.site-footer-rich .footer-cta-ghost:hover .footer-cta-icon { color: #fff; }

/* Social cluster — small icon-style chips */
.site-footer-rich .footer-h-social { margin-top: 32px; }
.site-footer-rich .footer-social-label {
  color: #b8b8b8;
  margin-bottom: 10px;
  font-size: 13px;
}
.site-footer-rich .footer-social {
  display: flex;
  gap: 10px;
}
.site-footer-rich .footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: #d8d8d8;
  padding: 0;
  background: transparent;
}
.site-footer-rich .footer-social a:hover {
  border-color: var(--teal, #12abc3);
  color: var(--teal, #12abc3);
  background: transparent;
}

/* Column proportions matching the screenshot: contact narrow, CTC wider for image, report narrow */
.site-footer-rich .footer-columns-4 {
  grid-template-columns: 1fr 1.3fr 0.8fr 1.2fr;
}

@media (max-width: 1024px) {
  .site-footer-rich .footer-columns-4 {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 600px) {
  .site-footer-rich .footer-columns-4 { grid-template-columns: 1fr; }
  .site-footer-rich .footer-logo { width: 220px; }
}

/* ════════════════════════════════════════════════════════════════
   AI-flag — wraps content interpreted, summarized, or added by AI
   that is NOT verbatim from the white paper.
   Purple dotted outline, distinct from blue .optional-markup
   (which is reserved for factual visualizations).
   ════════════════════════════════════════════════════════════════ */
.ai-flag {
  position: relative;
  outline: 2px dotted #7c3aed;
  outline-offset: 8px;
  border-radius: 4px;
  margin: 52px 0 28px;
}
.ai-flag::after {
  content: "AI INTERPRETATION · NOT IN WHITE PAPER";
  position: absolute;
  top: -32px;
  left: 0;
  background: #f5f3ff;
  color: #5b21b6;
  font-family: var(--font-h, 'Barlow', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px dotted #7c3aed;
  z-index: 5;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 720px) {
  .ai-flag::after { font-size: 9px; padding: 2px 8px; top: -28px; }
  .ai-flag { outline-offset: 4px; margin: 40px 0 20px; }
}
@media print {
  .ai-flag { outline: 1px dashed #999 !important; outline-offset: 4px !important; }
  .ai-flag::after {
    color: #555 !important;
    background: transparent !important;
    border: 1px dashed #999 !important;
  }
}

