/* =========================================================================
   NORMIES — FANCY PRO POLISH (CONSERVATIVE)
   Shared upgrade layer for: careers, contact, partnerships, support, faq,
   detail_blog, legal/security, legal/privacy, legal/terms, legal/disclosures,
   posts/*.

   Design rule for this file: ADD only, never override existing components.
   Anything that touches an existing class is scoped narrowly; if a page
   already has its own treatment for an element, this file leaves it alone.
   ========================================================================= */

:root {
  --nfp-y: #fffca2;
  --nfp-y-deep: #f6dd4a;
  --nfp-y-gold: #b89a00;
  --nfp-ink: #1d1d1b;
}

/* ────────────────────────────────────────────────────────────────────────
   1. H1 ITALIC EM — UNIVERSAL GOLD GRADIENT
   The most consistent, low-risk polish: any italic emphasis inside a hero
   H1 picks up a refined ink-to-gold gradient. Targets the natural
   semantics each page already uses.
   ──────────────────────────────────────────────────────────────────────── */
.car-h1 em,
.ctc-h1 em,
.prt-hero__h1-accent,
.sup-hero__h1 em,
.faq-hero__h1 em,
.sec-h1 em,
.pp-title em,
.terms-page h1 .h1-accent,
.disclosures-page h1 .editorial {
  background: linear-gradient(135deg, #1d1d1b 0%, #4a4318 45%, var(--nfp-y-gold) 90%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

/* ────────────────────────────────────────────────────────────────────────
   2. ARTICLE / POST BODY — long-form reading polish
   Targets ONLY explicit article bodies. Skips faq, careers, etc.
   ──────────────────────────────────────────────────────────────────────── */

/* Post header — left-align (editorial reading rhythm) instead of centered.
   Centered titles work for short heroes; long article titles read better
   left-aligned because the wrap point is breath/cadence-driven. */
.blog-post-header {
  text-align: left !important;
}
.blog-post-meta-row {
  justify-content: flex-start !important;
}
.blog-back-link {
  margin-bottom: 32px !important;
  margin-top: 8px !important;
  position: relative;
  padding-left: 0;
  transition: color .2s ease, transform .2s ease, padding-left .25s ease !important;
}
.blog-back-link:hover {
  padding-left: 4px;
}
/* Tighten the title slightly for editorial weight */
.blog-post-title {
  letter-spacing: -0.022em !important;
  line-height: 1.08 !important;
}

.blog-post-section h2 {
  scroll-margin-top: 80px;
  position: relative;
}
.blog-post-section h2::before {
  content: "";
  display: block;
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--nfp-y), var(--nfp-y-deep));
  border-radius: 4px;
  margin-bottom: 14px;
  opacity: 0.85;
}
.blog-post-section p a {
  background-image: linear-gradient(0deg, var(--nfp-y) 0, var(--nfp-y) 0);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 30%;
  padding: 0 1px;
  transition: background-size .3s ease;
}
.blog-post-section p a:hover {
  background-size: 100% 100%;
}
/* ============================================================
   POST HERO POSTER — brand-aligned magazine cover.
   Replaces the static /images/blog/<slug>-featured.png with a CSS
   rendered editorial poster that matches the blog-index card system
   (kicker rule, category pill, NORMIES mark, big editorial title in
   yellow). Consistent across all 17 posts without per-post art.
   ============================================================ */
.blog-post-section .blog-featured-image {
  display: none !important;
}
.post-hero-poster {
  position: relative;
  margin: 0 0 64px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,252,162,0.08), transparent 55%),
    radial-gradient(120% 80% at 0% 100%, rgba(255,252,162,0.12), transparent 55%),
    linear-gradient(165deg, #1d1d1b 0%, #232321 55%, #1a1a18 100%);
  box-shadow:
    0 1px 0 rgba(36,36,36,0.04),
    0 30px 80px -28px rgba(20,20,18,0.45);
  isolation: isolate;
  padding: 28px 32px 36px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.post-hero-poster::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,252,162,0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.post-hero-poster::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 72px; height: 72px;
  background: linear-gradient(135deg, transparent 50%, rgba(255,252,162,0.45) 50%);
  border-bottom-right-radius: inherit;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(184,154,0,0.25));
  z-index: 0;
}
.post-hero-poster > * { position: relative; z-index: 1; }

/* Top row: pill + brand mark */
.post-hero-poster__topbar {
  position: absolute;
  top: 22px; left: 32px; right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.post-hero-poster__pill {
  font-family: var(--n-font-display, "SF Pro Display"), sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,252,162,0.92);
  background: rgba(255,252,162,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,252,162,0.22);
  padding: 6px 12px;
  border-radius: 999px;
}
.post-hero-poster__mark {
  font-family: var(--n-font-display, "SF Pro Display"), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,252,162,0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-hero-poster__mark::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 100px;
  background: rgba(255,252,162,0.7);
}

/* Hairline kicker rule + meta */
.post-hero-poster__kicker {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,252,162,0.35) 0%, rgba(255,252,162,0.10) 60%, transparent 100%);
  margin: 0 0 14px;
}

/* Title */
.post-hero-poster__title {
  font-family: var(--n-font-display, "SF Pro Display"), sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #fffca2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

/* Bottom meta line */
.post-hero-poster__meta {
  margin-top: 18px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,252,162,0.55);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .post-hero-poster {
    padding: 22px 24px 28px;
    min-height: 220px;
    margin: 0 0 40px;
  }
  .post-hero-poster__topbar {
    top: 18px; left: 24px; right: 24px;
  }
  .post-hero-poster__title {
    font-size: clamp(20px, 5.5vw, 26px);
    max-width: none;
  }
  .post-hero-poster::after {
    width: 48px; height: 48px;
  }
}

/* ============================================================
   POST READING UPGRADE (Direction A — editorial luxury)
   Reading progress bar, sticky TOC, drop cap, refined pull-quote,
   editorial byline, end-of-article CTA card, related posts strip.
   ============================================================ */

/* Reading-progress bar — pinned to top, fills as user scrolls */
.post-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 99999;
  background: linear-gradient(90deg, var(--nfp-y), var(--nfp-y-deep), var(--nfp-y-gold));
  box-shadow: 0 1px 6px rgba(184,154,0,0.42);
  border-radius: 0 4px 4px 0;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Drop cap — first paragraph of the post body */
.blog-post-body .w-richtext > p:first-of-type::first-letter,
.blog-post-section .post-dropcap::first-letter {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-size: 4.4em;
  line-height: 0.86;
  float: left;
  margin: 0.08em 0.12em -0.12em 0;
  color: var(--nfp-y-gold);
  background: linear-gradient(180deg, #b89a00 0%, #8a7300 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-feature-settings: "ss01";
}

/* Pull-quote — full-width centered editorial block (replaces left-rail) */
.blog-post-section blockquote {
  /* Reset the simpler left-rail styling above */
  border-left: 0 !important;
  padding: 32px 0 !important;
  margin: 48px -8px !important;
  text-align: center;
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif !important;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--nfp-ink);
  position: relative;
}
.blog-post-section blockquote::before {
  content: "";
  display: block;
  margin: 0 auto 28px;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--nfp-y), var(--nfp-y-deep));
  border-radius: 4px;
}
.blog-post-section blockquote::after {
  content: "";
  display: block;
  margin: 28px auto 0;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--nfp-y-deep), var(--nfp-y));
  border-radius: 4px;
}

/* Editorial byline upgrade — meta row with author identity */
.blog-post-meta-row {
  align-items: center;
}
.post-byline-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.post-byline-card__avatar {
  width: 32px; height: 32px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--nfp-y), var(--nfp-y-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--n-font-display, "SF Pro Display"), sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--nfp-ink);
  letter-spacing: -0.01em;
  box-shadow: 0 4px 10px -2px rgba(184,154,0,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.post-byline-card__meta {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.post-byline-card__name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--nfp-ink);
}
.post-byline-card__role {
  font-size: 11px;
  color: rgba(36,36,36,0.5);
  letter-spacing: 0.02em;
}

/* Tighten the dead space between the article header (which on rich-template
   posts ends with a SHARE row) and the body. Default Webflow header has
   48px padding-bottom + 48px margin-bottom = 96px, plus a `.blog-post-body`
   wrapper that adds more. Bring it to a more editorial 56px. */
.blog-post-section .blog-post-header {
  padding-bottom: 28px !important;
  margin-bottom: 28px !important;
}
.blog-post-section .blog-featured-image {
  margin: 0 !important;
}

/* ============================================================
   POST-PAGE CONTRAST PASS
   Audited values were too light on a cream paper background:
   H2 #333, meta rgb(138,138,128) ≈ borderline AA fail, TOC links 70%
   alpha. Bumping ink to #1d1d1b and muted to a darker gray-90.
   ============================================================ */
.blog-post-section .blog-post-title {
  color: #1d1d1b !important;
  font-weight: 700;
}
.blog-post-section .blog-post-body,
.blog-post-section .blog-post-body p,
.blog-post-section .blog-post-body li {
  color: #1f1f1c !important;
}
.blog-post-section .blog-post-body h2,
.blog-post-section .w-richtext h2 {
  color: #1a1a17 !important;
  font-weight: 700;
}
.blog-post-section .blog-post-body h3,
.blog-post-section .w-richtext h3 {
  color: #1a1a17 !important;
  font-weight: 600;
}
.blog-post-section .blog-post-body strong,
.blog-post-section .w-richtext strong {
  color: #0e0e0c !important;
  font-weight: 700;
}
.blog-post-section .blog-post-body p a,
.blog-post-section .w-richtext p a {
  color: #1d1d1b !important;
  font-weight: 600;
}

/* Author / share / meta — bump from gray-138 to gray-90 for AA pass */
.nr-author-sub,
.nr-share__label,
.blog-post-meta-row p,
.blog-post-meta-row {
  color: #5a5a55 !important;
}
.nr-author-name {
  color: #1a1a17 !important;
}

/* TOC contrast — labels / inactive / active states more distinct */
.post-toc__label {
  color: #4a4a44 !important;
  font-weight: 700 !important;
}
.post-toc__list a {
  color: #4a4a44 !important;
  font-weight: 500;
}
.post-toc__list a:hover {
  color: #0e0e0c !important;
}
.post-toc__list a.is-active {
  color: #0e0e0c !important;
  font-weight: 700;
}
.post-toc__list li::before {
  color: #8a8a82 !important;
  font-weight: 600;
}

/* Related list — already darkened title via earlier rule, also darken meta */
.post-related__pill {
  color: #5a5a55 !important;
  font-weight: 700;
}
.post-related__meta {
  color: #5a5a55 !important;
}
.post-related__title {
  color: #1a1a17 !important;
  font-weight: 600 !important;
}
.post-related__label {
  color: #4a4a44 !important;
}

/* Drop cap — darken from gold gradient to a more legible amber */
.blog-post-body .w-richtext > p:first-of-type::first-letter,
.blog-post-section .post-dropcap::first-letter {
  background: linear-gradient(180deg, #8a7300 0%, #5a4a00 100%) !important;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sticky table of contents — left side, vertically centered (≥1100px) */
.post-toc {
  position: fixed;
  top: 50%;
  left: max(20px, calc((100vw - 1100px) / 2 - 240px));
  transform: translateY(-50%);
  width: 220px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 50;
  font-family: var(--n-font-display, "SF Pro Display"), -apple-system, sans-serif;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(36,36,36,0.08);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px -16px rgba(20,20,18,0.18);
  scrollbar-width: thin;
  display: none;
}
@media (min-width: 1100px) {
  .post-toc { display: block; }
}
.post-toc::-webkit-scrollbar { width: 4px; }
.post-toc::-webkit-scrollbar-thumb {
  background: rgba(36,36,36,0.18);
  border-radius: 4px;
}
.post-toc__label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(36,36,36,0.55);
  font-weight: 700;
  margin: 0 0 12px;
}
.post-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ptoc;
}
.post-toc__list li {
  counter-increment: ptoc;
  position: relative;
  margin: 0;
  padding: 6px 0 6px 26px;
  line-height: 1.35;
}
.post-toc__list li::before {
  content: counter(ptoc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 7px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  color: rgba(36,36,36,0.4);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.post-toc__list a {
  display: block;
  font-size: 12.5px;
  text-decoration: none;
  transition: color .2s ease;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  /* color + weight set by the contrast pass higher up */
}
.post-toc__list a.is-active::before {
  content: "";
  position: absolute;
  left: -20px; top: 12px;
  width: 8px; height: 1.5px;
  background: linear-gradient(90deg, var(--nfp-y), var(--nfp-y-deep));
  border-radius: 2px;
}

/* End-of-article CTA card — replaces inline "<hr/><p><strong>Normies…" */
.post-cta-card {
  margin: 56px 0 16px;
  padding: 28px 32px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255,232,122,0.55), transparent 65%),
    linear-gradient(135deg, var(--nfp-y) 0%, var(--nfp-y-deep) 100%);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 50px -22px rgba(184,154,0,0.55), 0 1px 0 rgba(255,255,255,0.6) inset;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
.post-cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(36,36,36,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}
.post-cta-card > * { position: relative; z-index: 1; }
.post-cta-card__mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--nfp-ink);
  color: var(--nfp-y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--n-font-display, "SF Pro Display"), sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(20,20,18,0.45);
}
.post-cta-card__copy {
  font-family: var(--n-font, "SF Pro", -apple-system, sans-serif) !important;
}
.post-cta-card__eyebrow {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(36,36,36,0.65);
  margin: 0 0 4px !important;
  line-height: 1.2 !important;
}
.post-cta-card__title {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.28 !important;
  color: var(--nfp-ink);
  margin: 0 !important;
  letter-spacing: -0.012em;
}
.post-cta-card__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px !important;
  background: var(--nfp-ink) !important;
  color: var(--nfp-y) !important;
  border-radius: 100px !important;
  font-family: var(--n-font-display, "SF Pro Display"), sans-serif !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: -0.005em;
  text-decoration: none !important;
  background-image: none !important;
  background-size: 0 0 !important;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(20,20,18,0.4);
  box-sizing: border-box !important;
  min-height: 44px;
  line-height: 1.2 !important;
}
.post-cta-card__btn:hover {
  transform: translateY(-1px);
  background: #000 !important;
  background-image: none !important;
  background-size: 0 0 !important;
  box-shadow: 0 8px 20px -4px rgba(20,20,18,0.5);
}
.post-cta-card__btn svg {
  width: 14px; height: 14px;
}
@media (max-width: 640px) {
  .post-cta-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 22px;
    text-align: left;
  }
  .post-cta-card__btn { justify-content: center; }
}

/* Related posts strip — editorial list (NYT/Stripe Press style)
   Replaces earlier dark-block cards. The post body is cream/white
   editorial; matching that palette makes "Keep reading" feel like
   a continuation of the article rather than a separate widget. */
.post-related {
  margin: 64px -8px 32px;
  padding: 32px 0 0;
  border-top: 1px solid rgba(36,36,36,0.14);
  position: relative;
}
.post-related__label {
  display: block;
  font-family: var(--n-font-display, "SF Pro Display"), sans-serif;
  font-size: 10.5px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,36,36,0.55) !important;
  margin: 0 0 28px !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.post-related__label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--nfp-y), var(--nfp-y-deep));
  box-shadow: 0 0 0 3px rgba(184,154,0,0.18);
}
.post-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.post-related__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(36,36,36,0.08);
  text-decoration: none;
  color: var(--nfp-ink);
  position: relative;
  transition: padding-left .35s cubic-bezier(.2,.8,.2,1);
}
.post-related__item:hover {
  padding-left: 16px;
}
.post-related__item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--nfp-y), var(--nfp-y-deep));
  transform: translateY(-50%);
  transition: height .35s cubic-bezier(.2,.8,.2,1);
}
.post-related__item:hover::before {
  height: 60%;
}
.post-related__num {
  display: none; /* counter handled via tabular index below */
}
.post-related__pill {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(36,36,36,0.5);
  font-variant-numeric: tabular-nums;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap;
}
.post-related__title {
  font-family: var(--n-font, "SF Pro", -apple-system, sans-serif) !important;
  font-weight: 500 !important;
  font-size: 18px !important;
  line-height: 1.32 !important;
  letter-spacing: -0.014em;
  color: var(--nfp-ink) !important;
  margin: 0 !important;
  text-shadow: none !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  transition: color .25s ease;
}
.post-related__item:hover .post-related__title {
  color: #000 !important;
}
.post-related__title em {
  font-style: italic;
  color: var(--nfp-y-gold);
}
.post-related__meta {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(36,36,36,0.45);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-transform: none;
}
.post-related__arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: rgba(36,36,36,0.35);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.post-related__item:hover .post-related__arrow {
  transform: translateX(0);
  opacity: 1;
  color: var(--nfp-ink);
}
@media (max-width: 600px) {
  .post-related__item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    padding: 16px 8px;
  }
  .post-related__pill { grid-column: 1 / -1; }
  .post-related__title { grid-column: 1 / -1; font-size: 17px !important; }
  .post-related__meta { grid-column: 1 / -1; margin-top: 4px; }
  .post-related__arrow { display: none; }
}

/* Hide the inline CTA pattern (hr followed by single short paragraph) when
   the JS has injected the .post-cta-card replacement above it. */
.blog-post-body.has-cta-card hr + p,
.blog-post-body.has-cta-card hr {
  display: none;
}

/* ────────────────────────────────────────────────────────────────────────
   3. DISCLOSURES — editorial accent gradient
   ──────────────────────────────────────────────────────────────────────── */
.disclosures-page .editorial {
  font-style: italic;
  background: linear-gradient(135deg, #1d1d1b 0%, #4a4318 50%, var(--nfp-y-gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ────────────────────────────────────────────────────────────────────────
   4. TERMS — auto-tag MATERIAL clauses
   ──────────────────────────────────────────────────────────────────────── */
.terms-page .is-material::after {
  content: "MATERIAL";
  display: inline-block;
  margin-left: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg, var(--nfp-y), var(--nfp-y-deep));
  color: var(--nfp-ink);
  padding: 3px 8px;
  border-radius: 100px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(125,119,0,0.18);
}

/* ────────────────────────────────────────────────────────────────────────
   5. FOOTER SIGNATURE — gold-fade hairline above footer
   ──────────────────────────────────────────────────────────────────────── */
.footer-main { position: relative; }
.footer-main::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184,154,0,0.18) 30%,
    rgba(184,154,0,0.35) 50%,
    rgba(184,154,0,0.18) 70%,
    transparent 100%);
  pointer-events: none;
}

/* ────────────────────────────────────────────────────────────────────────
   6. SCROLL PROGRESS BAR — fixed at top of viewport, gold gradient
   Driven by CSS animation timeline (modern browsers) with --scroll fallback
   set by inline script. New element injected at body start, safe class.
   ──────────────────────────────────────────────────────────────────────── */
.nfp-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: var(--nfp-progress, 0%);
  background: linear-gradient(90deg, var(--nfp-y), var(--nfp-y-deep), var(--nfp-y-gold));
  box-shadow: 0 1px 8px rgba(184,154,0,0.45);
  z-index: 99998;
  transition: width .12s linear, opacity .25s ease;
  pointer-events: none;
  border-radius: 0 4px 4px 0;
}
.nfp-progress[data-progress="0"] { opacity: 0; }

/* ────────────────────────────────────────────────────────────────────────
   7. AMBIENT WARM ORB — page-level, fixed, mix-blend-mode soft-light.
   Sits BEHIND all content (z-index: 0, content has its own stacking).
   Skipped on dark pages and FAQ (which already has a stage of cards).
   ──────────────────────────────────────────────────────────────────────── */
body.car-page::before,
body.ctc-page::before,
body.sup-page::before,
body.disclosures-page::before,
body.terms-page::before,
body.pp-body::before {
  content: "";
  position: fixed;
  top: -10vh; right: -10vw;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle,
    rgba(255,243,140,0.16) 0%,
    rgba(255,222,120,0.08) 35%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  mix-blend-mode: soft-light;
}
body.car-page::after,
body.ctc-page::after,
body.sup-page::after,
body.disclosures-page::after,
body.terms-page::after,
body.pp-body::after {
  content: "";
  position: fixed;
  bottom: -15vh; left: -10vw;
  width: 50vw; height: 50vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle,
    rgba(255,250,170,0.12) 0%,
    rgba(255,232,155,0.06) 40%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  mix-blend-mode: soft-light;
}
@media (prefers-reduced-motion: no-preference) {
  body.car-page::before,
  body.ctc-page::before,
  body.sup-page::before,
  body.disclosures-page::before,
  body.terms-page::before,
  body.pp-body::before {
    animation: nfp-orb-drift 28s ease-in-out infinite alternate;
  }
}
@keyframes nfp-orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4vw, 4vh) scale(1.05); }
}

/* ────────────────────────────────────────────────────────────────────────
   8. POSTS — reading-time / scroll position floating pill (right side)
   Pure-CSS fixed pill that mirrors progress. Injected via JS into
   blog-post-section pages only.
   ──────────────────────────────────────────────────────────────────────── */
.nfp-readpill {
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 99997;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(36,36,36,0.08);
  border-radius: 100px;
  font-family: "SF Pro Display", "SF Pro", -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(36,36,36,0.7);
  box-shadow: 0 8px 24px -8px rgba(20,20,18,0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.nfp-readpill.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.nfp-readpill__ring {
  width: 16px; height: 16px;
  border-radius: 100px;
  background:
    conic-gradient(var(--nfp-y-deep) calc(var(--nfp-progress, 0%) * 1), rgba(36,36,36,0.10) 0%);
  position: relative;
  flex-shrink: 0;
}
.nfp-readpill__ring::after {
  content: "";
  position: absolute; inset: 3px;
  background: #fff;
  border-radius: 100px;
}
@media (max-width: 720px) {
  .nfp-readpill { display: none; }
}

/* ────────────────────────────────────────────────────────────────────────
   9. HEADING ATTENTION — h1 hover sheen on legal pages
   Subtle one-time gold shimmer when h1 enters viewport.
   ──────────────────────────────────────────────────────────────────────── */
.terms-page main h1,
.disclosures-page main h1,
.pp-body main h1,
.nr-page .sec-h1 {
  position: relative;
  isolation: isolate;
}

/* ────────────────────────────────────────────────────────────────────────
   10. CAREERS — refined "NOW HIRING" sticker pulse
   Add a soft pulsing glow to the existing hiring badge without
   touching its layout.
   ──────────────────────────────────────────────────────────────────────── */
.car-page .car-hiring-sticker,
.car-page [class*="now-hiring"] {
  position: relative;
}
.car-page .car-hiring-sticker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(255,252,162,0.6);
  opacity: 0;
  animation: nfp-hiring-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes nfp-hiring-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .car-page .car-hiring-sticker::after { animation: none; opacity: 0; }
}

/* ────────────────────────────────────────────────────────────────────────
   11. MOBILE POLISH — scrollable tab strips + blog post header dedup
   ──────────────────────────────────────────────────────────────────────── */

/* Blog post: hide duplicate original header when hero poster is present  */
/* (the poster is aria-hidden so it is visual-only; on simple-template    */
/* pages the poster visually replaces the text header above the image)    */
.blog-post-section:has(.post-hero-poster) .blog-post-category-label,
.blog-post-section:has(.post-hero-poster) .blog-post-title,
.blog-post-section:has(.post-hero-poster) .blog-post-meta-row {
  display: none;
}

/* Careers roles tab strip — properly scrollable on mobile */
@media (max-width: 767px) {
  .car-toc {
    overflow: hidden !important;  /* beat inline <style> block cascade       */
    position: relative !important;
  }
  .car-toc::after {               /* right-fade gradient scroll hint         */
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 36px;
    background: linear-gradient(to right, transparent, rgba(255,253,244,0.9));
    pointer-events: none;
    z-index: 10;
  }
  .car-toc__inner {
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-right: 40px;
  }
  .car-toc__inner::-webkit-scrollbar { display: none; }
}

/* FAQ category chips — properly scrollable on mobile */
@media (max-width: 767px) {
  .faq-chips {
    overflow: hidden !important;  /* beat inline <style> block cascade       */
    position: relative !important;
  }
  .faq-chips::after {             /* right-fade gradient scroll hint         */
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 36px;
    background: linear-gradient(to right, transparent, #fffef5);
    pointer-events: none;
    z-index: 10;
  }
  .faq-chips__inner {
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .faq-chips__inner::-webkit-scrollbar { display: none; }
}
/* ────────────────────────────────────────────────────────────────────────
   12. MOBILE NAV — solid yellow background on all pages
   Home page had bg set as a Webflow per-page override (#fffca2);
   sub-pages were transparent, making open nav unreadable.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-menu-wrapper.w-nav-menu {
    background-color: #fffca2 !important;
  }
}
/* ────────────────────────────────────────────────────────────────────────
   13. MOBILE NAV OVERLAY — full-screen, fixed from the very top
   Home page sets .w-nav-overlay { position:fixed; top:0 } via an inline
   per-page Webflow style. Sub-pages use Webflow default (position:absolute;
   top:100%) so the overlay anchors below the nav bar, not the top of screen.
   z-index:9999 ensures the overlay sits above sticky/fixed page sections.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .w-nav-overlay {
    position: fixed     !important;
    top:       0        !important;
    left:      0        !important;
    right:     0        !important;
    max-height: 100dvh  !important;
    border-radius: 16px !important;
    z-index:   9999     !important;
    background-color: #fffca2 !important;
  }
  .w-nav-overlay .nav-menu-wrapper {
    height: 100dvh      !important;
    border-radius: 16px !important;
  }
  .w-nav-overlay .nav-menu-wrapper[data-nav-menu-open] {
    top: 0 !important;  /* override Webflow default [data-nav-menu-open] top:100% */
  }
}