/* SourceLink — shared styles (Version D) */

:root {
  --blue: #336aa8;
  --blue-dark: #2e5a91;
  --blue-soft: #5ca1ce;
  --ink: #1d2430;
  --ink-soft: #3a4453;
  --muted: #5c636e;
  --bg: #faf8f4;
  --bg-white: #ffffff;
  --bg-alt: #f3efe6;
  --surface-blue: #eef7fb;
  --surface-blue-warm: #f2f7fa;
  --brand-pale: #afe0f2;
  --accent: #c8430a;
  --accent-dark: #b33a00;
  --accent-soft: #fdf0e8;
  --green: #2c7a4e;
  --green-dark: #1f5d3a;
  --green-soft: #e5f3ec;
  --border: #e8e2d3;
  --field-border: #767063;
  --border-soft: #f0ebde;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-editorial: 'Instrument Serif', Georgia, serif;

  --container: 1240px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* Converted pages render their own SourceLink chrome outside editable content. */
body.sl-site #masthead,
body.sl-start #masthead,
body.sl-platform #masthead,
body.sl-site #colophon,
body.sl-start #colophon,
body.sl-platform #colophon {
  display: none;
}

/* Kadence global chrome migration switch: unhide native Kadence full chrome
   only when the plugin full header/footer shell is intentionally bypassed. */
body.sl-global #masthead,
body.sl-global #colophon {
  display: block;
}

/* The block-built footer Element renders on every page (general|site
   conditional); mirror the #colophon visibility rules so reduced-chrome
   pages (Start) stay footerless like their mockups. */
body.sl-site .sl-footer-element,
body.sl-start .sl-footer-element,
body.sl-platform .sl-footer-element {
  display: none;
}
body.sl-global .sl-footer-element {
  display: block;
}

/* Kadence global.min.css sets .entry-content { word-break: break-word }, which
   lets flex/grid text shrink below whole-word width and wrap mid-word on
   narrow viewports. The mockups rely on the default (whole words define
   min-content); restore it for converted page content. */
body.sl-site .entry-content {
  word-break: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
/* Pages with the sticky section sub-nav need a deeper offset so focused/anchored
   targets clear both sticky bars (WCAG 2.2 SC 2.4.11 Focus Not Obscured). */
html:has(.sv-subnav), html:has(.platform-subnav) { scroll-padding-top: 150px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* WCAG 2.2 AA (1.4.11 / 2.4.7): a clearly perceivable keyboard focus indicator
   on form controls, replacing the faint low-alpha box-shadow rings. */
.form-control:focus-visible,
.ct-input:focus-visible, .ct-select:focus-visible, .ct-textarea:focus-visible,
.footer-form input:focus-visible, .footer-newsletter input:focus-visible,
input[type="text"]:focus-visible, input[type="email"]:focus-visible,
input[type="tel"]:focus-visible, input[type="url"]:focus-visible,
input[type="number"]:focus-visible, input[type="search"]:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

body {
  font-family: var(--font-body);
  /* Instrument Serif (the display face) ships only a 400 weight. Never let the
     browser fake a heavier one: synthesized bold thickens and crowds glyphs,
     which is what made stat numbers like "99/99" and "1.2M+" look cramped and
     almost overlapping. Figtree and Instrument Sans have real weights, so this
     only neutralizes faux-bold on the serif. */
  font-synthesis-weight: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: inline-block;
  width: 193px;
  height: 36px;
  background-image: var(--joinsourcelink-logo-dark-url, none);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.logo-mark { display: none; }
.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.nav-menu a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-menu a:hover,
.nav-menu a.is-current { color: var(--blue); }

/* Mobile menu — hamburger button (injected by nav.js, hidden on desktop) */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: 8px; padding: 0;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block; width: 22px; height: 3px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease, background 0.15s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }
.nav.is-open .nav-toggle-icon { background: transparent; }
.nav.is-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle-icon::after  { top: 0; transform: rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  letter-spacing: -0.1px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(240, 105, 38, 0.28);
}

/* The Kadence theme's generic a:hover sets an orange TEXT color, which turns the
   white label on every filled <a> CTA orange-on-orange (invisible) on hover.
   Force white on hover for all of them in one place; !important beats the theme.
   Form <button>/<input type=submit> CTAs do NOT leak text color (the theme only
   darkens their background), so they are intentionally not listed. */
/* When a btn-primary is a Kadence wp-block-button, the class sits on the WRAPPER,
   so the wrapper also inherits the button background + padding. The button visual
   must live only on the inner __link; otherwise the wrapper shows as a second
   layer (a lighter orange frame) once the link darkens on hover. Reset it. */
.wp-block-button.btn-primary {
  background: none !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover,
.ev-featured-cta:hover,
.ev-submit-cta:hover,
.ep-register:hover,
.wf-custom-cta:hover,
.sub-submit-news-cta:hover,
.bc-btn-primary:hover,
.bc-workshop-cta:hover,
.rl-featured-cta:hover,
.rl-submit-cta:hover,
.product-cta-primary:hover {
  color: #fff !important;
}
.btn-primary:focus-visible {
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
  display: inline-block;
  font-weight: 400;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Auto-wrapped arrow span (added by count-up.js for any link ending in →).
   Animates the arrow on parent link hover. */
.sl-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
a:hover .sl-arrow,
a:focus-visible .sl-arrow {
  transform: translateX(3px);
}

/* ---------- EYEBROWS / PILLS ---------- */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.eyebrow-pill::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}
/* Hide the eyebrow pill (and its dash) when there is no eyebrow text, so a
   cleared eyebrow leaves no stray dash. Blank-means-blank. */
.eyebrow-pill:empty { display: none; }

/* ---------- SECTION BASE ---------- */
section { padding: 120px 0; }
.section-bg-white { background: var(--bg-white); }
.section-bg-pale { background: var(--surface-blue-warm); }
.section-bg-alt { background: var(--bg-alt); }

.section-head { max-width: 780px; margin-bottom: 64px; }

/* Staggered reveal: kicker → title → lede appear in sequence on scroll-into-view.
   Only applies when JS adds .section-head--anim. JS skips that class for users
   with prefers-reduced-motion, so reduced-motion users see static layout. */
.section-head--anim .section-kicker,
.section-head--anim .section-title,
.section-head--anim .section-lede,
.section-head--anim h2,
.section-head--anim p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-head--anim.is-revealed .section-kicker,
.section-head--anim.is-revealed h2:first-of-type {
  opacity: 1; transform: translateY(0);
  transition-delay: 0s;
}
.section-head--anim.is-revealed .section-title {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.12s;
}
.section-head--anim.is-revealed .section-lede,
.section-head--anim.is-revealed p {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.24s;
}
.section-kicker {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0;
}
/* ---------- DISPLAY HEADINGS ----------
   Every page has exactly one h1: the hero headline. The display face,
   weight, and italic highlight live here once; per-page rules set only
   font-size, line-height, letter-spacing, and margins. Instrument Serif
   ships a single 400 weight, so heavier values render a synthesized bold:
   never set display headings above 400. */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
}
h1 .hl,
h1 .highlight {
  color: var(--blue);
  font-style: italic;
  font-weight: 400;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-title .hl { color: var(--blue); font-style: italic; font-weight: 400; }
.section-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
  font-weight: 400;
  margin: 0;
}
/* Center the lede block inside any centered section head or intro. Default
   .section-head is left-aligned (kept so), so it's excluded. Uses a descendant
   combinator (not >) because core (Gutenberg) group blocks insert a
   .wp-block-group__inner-container between the -head group and the lede, which a
   direct-child selector would miss, letting the theme's `.entry-content p` rule
   left-align it. */
[class$="-head"]:not(.section-head) .section-lede,
[class$="-intro"] .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- AVATARS ---------- */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.avatar-kc { background: linear-gradient(135deg, #3c73b5, #afe0f2); }
.avatar-mr { background: linear-gradient(135deg, #d64500, #f7b991); }
.avatar-sm { background: linear-gradient(135deg, #1d2430, #5ca1ce); }
.avatar-jt { background: linear-gradient(135deg, #5ca1ce, #afe0f2); }
.avatar-aw { background: linear-gradient(135deg, #3c73b5, #1d2430); }
.avatar-lh { background: linear-gradient(135deg, #d64500, #3c73b5); }

/* ---------- PHOTO PLACEHOLDERS ---------- */
/* Striped SVG placeholder — "drop product photo here" */
.photo-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(27, 36, 49, 0.035),
      rgba(27, 36, 49, 0.035) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--surface-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-placeholder.tone-warm { background:
    repeating-linear-gradient(135deg, rgba(27,36,49,0.035), rgba(27,36,49,0.035) 12px, transparent 12px, transparent 24px),
    var(--bg-alt);
}
.photo-placeholder.tone-accent { background:
    repeating-linear-gradient(135deg, rgba(27,36,49,0.035), rgba(27,36,49,0.035) 12px, transparent 12px, transparent 24px),
    var(--accent-soft);
}
.photo-placeholder.tone-ink {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 12px, transparent 12px, transparent 24px),
    var(--ink);
  color: rgba(255,255,255,0.7);
}
.photo-placeholder .ph-label {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
}
.photo-placeholder.tone-ink .ph-label {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Top strip: newsletter + social */
.footer-top {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-newsletter {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 32px 28px;
}
.footer-newsletter-head { margin-bottom: 18px; }
.footer-newsletter-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-newsletter-head p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 440px;
}
.footer-newsletter-head p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.footer-newsletter-head p a:hover {
  color: var(--accent-dark);
}

.footer-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 8px;
  align-items: stretch;
}
.footer .footer-form-input {
  min-width: 0;
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  /* Kadence's global input styles add line-height and height floors; the
     static inputs are 41px tall (padding + normal line-height + border). */
  line-height: normal;
  min-height: 0;
  color: var(--ink);
  background: white;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.footer .footer-form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36,117,186,0.12);
}
.footer .footer-form-submit {
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  min-height: 0;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.footer .footer-form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240,105,38,0.25);
}
.footer-form-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.footer-form-foot a { color: var(--blue); font-weight: 500; }

/* The Resource Navigator plugin sets `.slrn-container { font-family: sans-serif }`
   and every descendant inherits it. Restore the site body font (Figtree) for all
   SourceLink web forms / containers. `body` prefix beats the plugin's single-class
   rule without !important. */
body .slrn-container {
  font-family: var(--font-body);
}

/* Footer newsletter: SLRN web form styled to the compact single-row .footer-form
   look. The plugin styles inputs with high-specificity !important rules, so the
   contested input properties carry !important to win. */
.footer-newsletter .slrn-container {
  /* The form wrapper is a <section>; reset the global `section { padding: 120px 0 }`. */
  padding: 0;
}
.footer-newsletter .slrn-container .container,
.footer-newsletter .slrn-container .main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.footer-newsletter .slrn-container .row {
  margin-left: 0;
  margin-right: 0;
}
.footer-newsletter .slrn_web_form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 8px;
  align-items: stretch;
}
/* Hide the form's built-in "Signup Information" heading row. */
.footer-newsletter .slrn_web_form .form-group.row.heading-row {
  display: none;
}
/* Invisible reCAPTCHA binding div: keep it in the DOM but out of the grid flow. */
.footer-newsletter .slrn_web_form .g-recaptcha-invisible {
  position: absolute;
}
/* Reset the Bootstrap row/column scaffolding. */
.footer-newsletter .slrn_web_form .form-group.row {
  display: block;
  margin: 0;
  padding: 0;
}
.footer-newsletter .slrn_web_form .form-group [class*="col-"] {
  flex: none;
  width: 100%;
  max-width: none;
  padding: 0;
  text-align: left;
}
/* Labels: above the field as a fallback; hidden once JS sets placeholders. */
.footer-newsletter .slrn_web_form .form-group > label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-newsletter .slrn_web_form .form-group .required {
  color: var(--accent-dark);
}
.footer-newsletter .slrn-container.slrn-form-styled .form-group > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Inputs: mirror .footer-form-input. */
.footer-newsletter .slrn_web_form .field-wrap input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="submit"]),
.footer-newsletter .slrn_web_form .field-wrap select,
.footer-newsletter .slrn_web_form .field-wrap textarea {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 11px 14px !important;
  font-family: var(--font-body);
  font-size: 14px !important;
  line-height: normal !important;
  color: var(--ink) !important;
  background: white;
  border: 1px solid var(--field-border) !important;
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.footer-newsletter .slrn_web_form .field-wrap input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="submit"]):focus,
.footer-newsletter .slrn_web_form .field-wrap select:focus,
.footer-newsletter .slrn_web_form .field-wrap textarea:focus {
  outline: none;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(36, 117, 186, 0.12) !important;
}
.footer-newsletter .slrn_web_form .field-wrap input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="submit"])::placeholder,
.footer-newsletter .slrn_web_form .field-wrap textarea::placeholder {
  color: var(--muted) !important;
  opacity: 1;
}
/* Submit: orange, fills its auto column, aligned with the inputs. */
.footer-newsletter .slrn_web_form .submit-div {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.footer-newsletter .slrn_web_form .submit-div [class*="col-"] {
  flex: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.footer-newsletter .slrn_web_form input[type="submit"],
.footer-newsletter .slrn_web_form .btn-save-profile {
  width: 100%;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.footer-newsletter .slrn_web_form input[type="submit"]:hover,
.footer-newsletter .slrn_web_form .btn-save-profile:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 105, 38, 0.25);
}
/* Keep the honeypot hidden. */
.footer-newsletter .slrn_web_form .slrn-honeypot {
  position: absolute;
  left: -9999px;
}
@media (max-width: 960px) {
  .footer-newsletter .slrn_web_form { grid-template-columns: 1fr 1fr; }
  .footer-newsletter .slrn_web_form .sl-field-email,
  .footer-newsletter .slrn_web_form .submit-div { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-newsletter .slrn_web_form { grid-template-columns: 1fr; }
  .footer-newsletter .slrn_web_form .sl-field-text,
  .footer-newsletter .slrn_web_form .sl-field-email,
  .footer-newsletter .slrn_web_form .submit-div { grid-column: auto; }
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-social-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.footer-social-sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 4px;
}
.footer-social-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.footer-social-links { display: flex; gap: 10px; }
.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.footer-social-link:hover {
  border-color: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 36, 49, 0.08);
}
.footer-social-link svg { width: 20px; height: 20px; }
/* On hover, each social icon flashes its brand color */
.footer-social-link[aria-label$="LinkedIn"]:hover { color: #0A66C2; }
.footer-social-link[aria-label$="Facebook"]:hover { color: #1877F2; }
.footer-social-link img {
  width: 22px; height: 22px; border-radius: 50%;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.18s ease;
}
.footer-social-link:hover img {
  filter: grayscale(0) contrast(1.05);
}

/* Middle: brand + columns */
.footer-main { padding: 56px 0 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo {
  margin-bottom: 16px;
  display: block;
  background-image: var(--joinsourcelink-logo-dark-url, none);
  width: 170px;
  height: 32px;
}
.footer-tag {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--blue); }

/* Foundation: partners + copyright in one unified dark band */
.footer-partners {
  background: var(--ink);
  padding: 32px 0 28px;
}
.footer-partners-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-partners-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-pale);
  white-space: nowrap;
}
.footer-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-partner-logo {
  height: 50px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.18s ease;
}
.footer-partner-logo:hover { opacity: 1; }
/* Kauffman source is gray; force to white so it matches UMKC + SBA on dark strip */
.footer-partner-logo.kauffman {
  filter: brightness(0) invert(1);
}

/* Bottom: copyright (sits within the same dark band as partners) */
.footer-bottom {
  padding: 18px 0 22px;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12.5px;
  /* WCAG 1.4.3: 0.62 alpha white on the dark footer clears 4.5:1 for small text. */
  color: rgba(255,255,255,0.62);
  flex-wrap: wrap;
}
.footer-bottom-inner a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom-inner a:hover { color: white; }

@media (max-width: 960px) {
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-form { grid-template-columns: 1fr 1fr; }
  .footer-partners-inner { gap: 16px; }
  .footer-partners-logos { gap: 32px; }
}
@media (max-width: 560px) {
  .footer-form { grid-template-columns: 1fr; }
}

/* ---------- FINAL CTA (shared baseline) ---------- */
.final-cta {
  padding: 140px 0;
  background: var(--surface-blue);
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}
.final-cta h2 .hl { color: var(--blue); font-style: italic; font-weight: 400; }
.final-cta p {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Media card: vertical card with a 4:3 media slot on top + body below.
   Use as a base on listing-grid cards; pages add their own typography/padding overrides. */
.media-card {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: all 0.25s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-pale);
  box-shadow: 0 16px 40px rgba(27, 36, 49, 0.07);
}
.media-card-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.media-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.media-card-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink); z-index: 2;
}

/* Unified-diagram: polished record-card mock showing one entrepreneur record flowing through 3 products.
   Used on index.html and platform.html. Animation triggered by count-up.js when section enters viewport. */
.unified-diagram {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 36px 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(27, 36, 49, 0.05);
}
.unified-diagram-anim .unified-record {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.unified-diagram-anim .unified-product {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.unified-diagram-anim .unified-foot {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.unified-diagram-anim .unified-flow::before,
.unified-diagram-anim .unified-flow::after,
.unified-diagram-anim .unified-product::before {
  opacity: 0;
  transition: opacity 0.4s ease-out, background 0.4s ease-out;
}
.unified-diagram-anim.is-in-view .unified-product:nth-child(1) {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.15s;
}
.unified-diagram-anim.is-in-view .unified-product:nth-child(2) {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.3s;
}
.unified-diagram-anim.is-in-view .unified-product:nth-child(3) {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.45s;
}
.unified-diagram-anim.is-in-view .unified-product::before {
  opacity: 1; transition-delay: 0.7s;
}
.unified-diagram-anim.is-in-view .unified-flow::after {
  opacity: 1; transition-delay: 0.85s;
}
.unified-diagram-anim.is-in-view .unified-flow::before {
  opacity: 1; transition-delay: 1.0s;
}
.unified-diagram-anim.is-in-view .unified-record {
  opacity: 1; transform: translateY(0) scale(1);
  transition-delay: 1.15s;
}
.unified-diagram-anim.is-in-view .unified-foot {
  opacity: 1; transform: translateY(0);
  transition-delay: 1.7s;
}
.unified-flow-pulse {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(214, 69, 0, 0.5);
  margin-left: -3px;
  margin-top: -3px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}
@keyframes pulse-from-left {
  0%       { left: calc((100% - 24px) / 6); top: 38px; opacity: 0; transform: scale(0.6); }
  8%       { opacity: 1; transform: scale(1); }
  25%      { left: calc((100% - 24px) / 6); top: 21px; opacity: 1; }
  45%      { left: 50%;    top: 21px; opacity: 1; }
  70%      { left: 50%;    top: 0px;  opacity: 1; }
  78%      { opacity: 1; transform: scale(1.6); }
  85%      { opacity: 0; transform: scale(1); }
  100%     { left: 50%;    top: 0px;  opacity: 0; }
}
@keyframes pulse-from-middle {
  0%       { left: 50%; top: 38px; opacity: 0; transform: scale(0.6); }
  8%       { opacity: 1; transform: scale(1); }
  70%      { left: 50%; top: 0px;  opacity: 1; }
  78%      { opacity: 1; transform: scale(1.6); }
  85%      { opacity: 0; transform: scale(1); }
  100%     { left: 50%; top: 0px;  opacity: 0; }
}
@keyframes pulse-from-right {
  0%       { left: calc(100% - (100% - 24px) / 6); top: 38px; opacity: 0; transform: scale(0.6); }
  8%       { opacity: 1; transform: scale(1); }
  25%      { left: calc(100% - (100% - 24px) / 6); top: 21px; opacity: 1; }
  45%      { left: 50%;    top: 21px; opacity: 1; }
  70%      { left: 50%;    top: 0px;  opacity: 1; }
  78%      { opacity: 1; transform: scale(1.6); }
  85%      { opacity: 0; transform: scale(1); }
  100%     { left: 50%;    top: 0px;  opacity: 0; }
}
@keyframes record-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 69, 0, 0); }
  40%      { box-shadow: 0 0 24px 2px rgba(214, 69, 0, 0.25); }
}
.unified-diagram-anim.is-in-view .unified-flow-pulse-1 {
  animation: pulse-from-left 3.2s ease-in-out 2.0s infinite;
}
.unified-diagram-anim.is-in-view .unified-flow-pulse-2 {
  animation: pulse-from-middle 3.2s ease-in-out 2.3s infinite;
}
.unified-diagram-anim.is-in-view .unified-flow-pulse-3 {
  animation: pulse-from-right 3.2s ease-in-out 2.6s infinite;
}
.unified-diagram-anim.is-in-view .unified-record {
  animation: record-glow 3.2s ease-in-out 4.5s infinite;
}
.unified-record {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}
.unified-record-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f06926, #f7b991);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.unified-record-name { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.2px; }
.unified-record-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.unified-record-id {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--surface-blue);
  padding: 4px 9px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}
.unified-flow {
  position: relative;
  padding: 20px 0 4px;
}
.unified-flow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 22px;
  background: var(--border);
}
.unified-flow::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc((100% - 24px) / 6);
  right: calc((100% - 24px) / 6);
  height: 1px;
  background: var(--border);
}
.unified-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.unified-product {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  position: relative;
}
.unified-product::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 18px;
  background: var(--border);
}
.unified-product-icon {
  width: 32px; height: 32px;
  margin: 0 auto 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--surface-blue);
}
.unified-product:nth-child(2) .unified-product-icon { color: var(--accent-dark); background: var(--accent-soft); }
.unified-product:nth-child(3) .unified-product-icon { color: var(--ink); background: var(--bg-alt); }
.unified-product-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}
.unified-product-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.unified-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.55;
}
.unified-foot strong { color: var(--ink); font-weight: 600; }

/* Testimonial: centered display-serif quote with optional kicker above and inline attribution below.
   Add .testimonial--dark on the section for the dark-bg variant. */
.testimonial {
  padding: 120px 0;
  background: var(--bg);
}
.testimonial--dark {
  background: var(--ink);
  color: white;
}
.testimonial-card {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.testimonial-kicker {
  font-size: 12px; font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.6px; text-transform: uppercase;
  margin-bottom: 24px;
}
.testimonial--dark .testimonial-kicker { color: var(--brand-pale); }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  margin: 0 auto 32px;
  max-width: 840px;
  text-wrap: balance;
}
.testimonial--dark .testimonial-quote { color: white; }
.testimonial-quote .hl { color: var(--blue); }
.testimonial--dark .testimonial-quote .hl { color: var(--brand-pale); }
.testimonial-attr {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}
.testimonial-photo {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}
.testimonial--dark .testimonial-name { color: white; }
.testimonial-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  text-align: left;
}
.testimonial--dark .testimonial-role { color: rgba(255, 255, 255, 0.65); }

/* Larger portrait + heavier name treatment for hero/featured testimonials. */
.testimonial--featured .testimonial-photo {
  width: 96px; height: 96px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.testimonial--featured .testimonial-name { font-weight: 700; font-size: 17px; }
.testimonial--featured .testimonial-role { font-size: 14px; }

/* Filter chip bar: sticky pill-chip filter row used on listing pages (case studies, resources). */
.filter-bar {
  padding: 24px 0;
  position: sticky; top: 73px; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.filter-bar-inner {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; justify-content: space-between;
}
.filter-chip-groups {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
}
/* When JS detects the chips have wrapped to 2+ lines, center every line; a single
   clean line stays left-aligned. (Only alignment changes, so it can't alter which
   line a chip lands on and cannot oscillate.) */
.filter-chip-groups.is-wrapped { justify-content: center; }
.filter-chip-group {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.filter-chip-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.3px;
}
/* One pill-chip implementation shared by every listing filter: the .filter-chip
   bar (blog / case studies / resources) and the events .ev-chip bar. Events keeps
   only a compact-padding modifier in events.css. */
.filter-chip,
.ev-chip {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  line-height: 1;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover,
.ev-chip:hover {
  /* The Kadence theme leaks an orange hover (background on raw <button> chips,
     text color via a:hover on the <a> category chips). Force a readable neutral
     hover; !important beats both theme rules. */
  background: rgba(27, 36, 49, 0.06) !important;
  border-color: var(--ink-soft);
  color: var(--ink) !important;
}
.filter-chip.is-active,
.filter-chip.is-active:hover,
.ev-chip.is-active,
.ev-chip.is-active:hover {
  background: var(--ink) !important;
  border-color: var(--ink);
  color: #fff !important;
}
.filter-count {
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.filter-count strong { color: var(--ink); font-weight: 600; }

/* Cadence list: label/body row pairs separated by hairline borders.
   Use for "Monthly / Quarterly / Annually" style rhythm sections. */
.cadence-list {
  display: flex; flex-direction: column; gap: 0;
}
.cadence-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--border-soft);
}
.cadence-item:first-child { padding-top: 0; }
.cadence-item:last-child { border-bottom: none; }
.cadence-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--blue); padding-top: 3px;
}
.cadence-body { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.cadence-body strong { color: var(--ink); }

/* Numbered step card grid: simple 4-up cards with a small accent-colored number, h3, and p.
   Override --numbered-step-accent on the card or grid wrapper to switch the number color. */
.numbered-step-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.numbered-step-card {
  --numbered-step-accent: var(--blue);
  background: white; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.numbered-step-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.4px;
  color: var(--numbered-step-accent);
}
.numbered-step-h {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.4px; line-height: 1.2;
  color: var(--ink); margin: 0;
}
.numbered-step-p {
  font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0;
}
@media (max-width: 1024px) {
  .numbered-step-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .numbered-step-grid { grid-template-columns: 1fr; }
}

/* Hero meta strip: label/value pairs with top+bottom borders, used at the bottom of detail-page heros. */
.hero-meta-strip {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-item .label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-meta-item .val {
  font-size: 15px; font-weight: 500; color: var(--ink);
}

/* Detail page hero scaffold: padded section with a soft radial bloom in a corner.
   Override the CSS variables (or the padding) per-page; keep .detail-hero as a base. */
.detail-hero {
  --detail-hero-bloom-color: rgba(175, 224, 242, 0.4);
  --detail-hero-bloom-size: 560px;
  --detail-hero-bloom-top: -100px;
  --detail-hero-bloom-right: -180px;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.detail-hero::after {
  content: ""; position: absolute;
  top: var(--detail-hero-bloom-top);
  right: var(--detail-hero-bloom-right);
  width: var(--detail-hero-bloom-size);
  height: var(--detail-hero-bloom-size);
  background: radial-gradient(circle, var(--detail-hero-bloom-color), transparent 65%);
  z-index: 0; pointer-events: none;
}
.detail-hero > .container { position: relative; z-index: 1; }

/* Case teaser card: photo on the left, body + optional stats on the right.
   Override --case-teaser-accent on the wrapper to switch accent color (default blue). */
.case-teaser {
  --case-teaser-accent: var(--blue);
  background: white; border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.case-teaser-media {
  position: relative; min-height: 380px;
}
.case-teaser-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.case-teaser-tag {
  position: absolute; top: 22px; left: 22px;
  background: rgba(255,255,255,0.96); padding: 6px 14px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.3px;
  z-index: 2;
}
.case-teaser-body {
  padding: 48px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.case-teaser-kicker {
  font-size: 12px; font-weight: 700; color: var(--case-teaser-accent);
  letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 12px;
}
.case-teaser-h {
  font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 400; letter-spacing: -0.8px; line-height: 1.2;
  margin: 0 0 16px; color: var(--ink); text-wrap: balance;
}
.case-teaser-h .hl { color: var(--case-teaser-accent); font-style: italic; }
.case-teaser-p {
  font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 24px;
}
.case-teaser-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  padding: 20px 0; margin-bottom: 24px;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.case-teaser-stat-n {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  line-height: 1; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 4px;
}
.case-teaser-stat-n .unit { color: var(--case-teaser-accent); font-style: italic; }
.case-teaser-stat-l { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.case-teaser-cta {
  font-size: 15px; font-weight: 600; color: var(--case-teaser-accent);
}

@media (max-width: 1024px) {
  .case-teaser { grid-template-columns: 1fr; }
  .case-teaser-media { min-height: 280px; }
  .case-teaser-body { padding: 40px 32px; }
}
@media (max-width: 680px) {
  .case-teaser-stats { grid-template-columns: 1fr; gap: 14px; }
}

/* Personal CTA: portrait next to the door, used in the final-cta on every page */
.cta-person-row {
  display: inline-flex; align-items: center; gap: 24px;
  text-align: left;
}
.cta-person-photo {
  width: 116px; height: 116px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  box-shadow: 0 12px 28px rgba(27,36,49,0.18);
  border: 4px solid white;
  display: block; flex-shrink: 0;
}
.cta-person-stack {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
}
.cta-person-stack > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.cta-person-intro {
  font-family: var(--font-display); font-style: italic;
  font-size: 17px; line-height: 1.4; color: var(--ink);
  max-width: 380px;
}
.final-cta p.cta-person-intro {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  max-width: 380px;
  text-wrap: auto;
}
.final-cta p.cta-person-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  max-width: none;
  text-wrap: auto;
}
.cta-person-intro strong {
  font-style: normal; font-weight: 600; color: var(--blue);
}
.cta-person-btn { padding: 14px 26px; font-size: 15px; }
.final-cta .wp-block-button.cta-person-btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.final-cta .wp-block-button.cta-person-btn .wp-block-button__link {
  font-size: 15px;
  line-height: 1.65;
  padding: 14px 26px;
}
/* Core-block bridges for the person CTA (any converted page): the
   .cta-person-photo class sits on the wp:image FIGURE, so size the figure
   and round the inner img. */
.final-cta .cta-person-photo.wp-block-image {
  width: 116px;
  height: 116px;
  margin: 0;
  flex-shrink: 0;
  border: 0;
  box-shadow: none;
}
.final-cta .cta-person-photo.wp-block-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 28px rgba(27,36,49,0.18);
  border: 4px solid white;
  display: block;
}
.final-cta .cta-person-row.wp-block-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  text-align: left;
}
.final-cta .cta-person-stack.wp-block-group {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.final-cta .wp-block-buttons.cta-person-actions {
  margin: 0;
}
/* The static meta/intro lines are spans; as wp:paragraphs they would inherit
   the .final-cta intro paragraph sizing. Restore the small meta styling. */
.final-cta .cta-person-meta p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  max-width: none;
}
.final-cta .cta-person-meta p.cta-person-role {
  color: var(--ink-soft);
}
.final-cta .cta-person-meta p.cta-person-alt {
  color: var(--muted);
}
.final-cta p.cta-person-intro {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  max-width: 380px;
}

.cta-person-meta {
  font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.cta-person-role { color: var(--ink-soft); }
.cta-person-alt { color: var(--muted); }
.cta-person-meta a { color: var(--blue); font-weight: 600; text-decoration: none; }

@media (max-width: 880px) {
  .cta-person-row { flex-direction: column; text-align: center; gap: 18px; }
  .cta-person-stack { align-items: center; }
}

/* ---------- SERVICES SUB-NAV ---------- */
/* ---------- SECTION SUB-NAV (shared) ----------
   Used by .sv-subnav (services) and .platform-subnav (platform). Both sit
   directly below the main .nav (which is sticky at top: 0, z-index: 100),
   so they pin at top: 73px with z-index: 90. */
.sv-subnav,
.platform-subnav {
  position: sticky;
  top: 73px;
  z-index: 90;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-body);
}
.sv-subnav-inner,
.platform-subnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
  transition: height 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Compressed state, applied by nav.js once the subnav pins to the top */
.sv-subnav.is-pinned .sv-subnav-inner,
.platform-subnav.is-pinned .platform-subnav-inner {
  height: 40px;
}
.sv-subnav-label,
.platform-subnav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  border-right: 1px solid var(--border-soft);
  white-space: nowrap;
}
.sv-subnav-label::before,
.platform-subnav-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.sv-subnav-list,
.platform-subnav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.sv-subnav-list::-webkit-scrollbar,
.platform-subnav-list::-webkit-scrollbar { display: none; }
.sv-subnav-list a,
.platform-subnav-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-soft);
  border-radius: 8px;
  white-space: nowrap;
  transition: padding 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.15s ease,
              background 0.15s ease;
}
.sv-subnav.is-pinned .sv-subnav-list a,
.platform-subnav.is-pinned .platform-subnav-list a {
  box-sizing: border-box;
  height: 40px;
  padding: 9px 12px 0;
}
.sv-subnav.is-pinned .sv-subnav-label,
.platform-subnav.is-pinned .platform-subnav-label {
  box-sizing: border-box;
  height: 40px;
  padding-top: 8px;
  padding-bottom: 0;
}
.sv-subnav-list a:hover,
.platform-subnav-list a:hover {
  color: var(--blue);
  background: rgba(175, 224, 242, 0.2);
}
.sv-subnav-list a .num,
.platform-subnav-list a .num {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.sv-subnav-list a.is-current,
.platform-subnav-list a.is-current {
  color: var(--blue);
  background: var(--surface-blue);
}
.sv-subnav-list a.is-current .num,
.platform-subnav-list a.is-current .num { color: var(--blue); }
/* Platform-only: trademark superscript (SM) on SiteConnex/Resource Navigator labels */
.platform-subnav-list a .sm {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-left: 1px;
  color: var(--muted);
  position: relative;
  top: -0.6em;
}

/* ---------- BREADCRUMB + PRODUCT CHIP (B) ---------- */
/* Sits at the very top of each product page's hero, above the eyebrow pill. */
.platform-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.platform-crumb a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.platform-crumb a:hover { color: var(--blue); }
.platform-crumb .sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}
.platform-crumb .current {
  color: var(--ink);
  font-weight: 600;
}
.platform-crumb .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface-blue);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* Centered variant for hero layouts that center their head */
.sc-hero-head .platform-crumb,
.platform-crumb.is-center {
  justify-content: center;
}

/* ---------- "HOW THIS FITS" (C) ---------- */
/* Recurring section on Platform + every product page. Shows the three products
   as connected cards with the current one highlighted. Same bones everywhere. */
.platform-fit {
  padding: 120px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-soft);
}
.platform-fit .section-head { margin-bottom: 56px; }
.platform-fit .section-kicker { margin-bottom: 10px; }
.platform-fit .section-head .section-kicker { margin: 0 0 16px !important; }
.platform-fit .section-head .section-title { margin: 0 0 20px !important; }
.platform-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  position: relative;
}
.platform-fit-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
}
.platform-fit-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-pale);
  box-shadow: 0 14px 28px rgba(27, 36, 49, 0.06);
}
.platform-fit-card.is-current {
  background: var(--surface-blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 117, 186, 0.08);
}
.platform-fit-card.is-current:hover { transform: none; }
.platform-fit-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px !important;
}
.platform-fit-card.is-current .platform-fit-num { color: var(--blue); }
.platform-fit-youarehere {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--brand-pale);
}
.platform-fit-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0 0 10px !important;
}
.platform-fit-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 16px !important;
  font-family: var(--font-display);
}
.platform-fit-card.is-current .platform-fit-role { color: var(--accent-dark); }
.platform-fit-p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px !important;
  flex-grow: 1;
}
.platform-fit-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.platform-fit-link::after {
  content: "→";
  transition: transform 0.15s ease;
}
.platform-fit-card:hover .platform-fit-link::after { transform: translateX(3px); }

/* The connecting line that ties the three cards together into one system */
.platform-fit-thread {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding: 22px 28px;
  background: var(--surface-blue-warm);
  border: 1px dashed var(--brand-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.platform-fit-thread strong { color: var(--ink); font-weight: 600; }
.platform-fit-thread-ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--brand-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 24px 24px;
    box-shadow: 0 24px 32px rgba(27, 36, 49, 0.06);
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu li {
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    color: var(--ink);
  }
  /* Tighten the desktop CTA so the hamburger has room */
  .nav-inner > .btn { padding: 10px 16px; font-size: 14px; }
  section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .platform-subnav,
  .sv-subnav { position: sticky; }
  .platform-subnav::after,
  .sv-subnav::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to right, rgba(250, 248, 244, 0), rgba(250, 248, 244, 0.95) 70%);
    pointer-events: none;
    z-index: 1;
  }
  .platform-subnav-inner,
  .sv-subnav-inner { padding: 0 20px; gap: 0; }
  .platform-subnav-label,
  .sv-subnav-label { display: none; }
  .platform-subnav-list a,
  .sv-subnav-list a { padding: 8px 10px; scroll-snap-align: start; }
  .platform-subnav-list,
  .sv-subnav-list { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .platform-fit-grid { grid-template-columns: 1fr; }
  .platform-fit-thread { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 12px 18px; }
  .logo { width: 150px; height: 28px; }
  .nav-inner > .btn { padding: 9px 12px; font-size: 13px; }
}

/* ---------- BLOCK-BUILT FOOTER ELEMENT BRIDGES ----------
   The global footer is a Kadence Element (replace_footer) whose block markup
   carries the static footer classes. Flatten the classic-theme group
   wrappers so the static grid/flex rules see their real children, and keep
   block-added tags styled like the static markup. */
.footer .wp-block-group__inner-container {
  display: contents;
}
/* Kadence's global heading styles tighten line-height; the static footer
   headings inherit the body 1.65. Margins come from the static rules
   (.footer-col h4, .footer-newsletter-head h3), so set none here. */
.footer h3,
.footer h4 {
  line-height: inherit;
}
.footer-col ul.wp-block-list {
  margin: 0;
  padding: 0;
}
