/* ==========================================================================
   Vectra AI blog post template redesign mock, combined edition (2026-11-06)
   Built on the homepage, platform and blog index combined mocks
   (redesigns/home-combined, platform-combined, blog-combined): the same
   tokens, type, CTAs, sheets, cards and motion states, so the pages read as
   one system. Scope: everything lives under main.rd; every class is
   prefixed rd-. Loaded after the Webflow CSS so the scoped reset wins over
   the site's global tag rules (white p/h1/h2, flex ul, 20px lh).
   Post bodies keep their custom embeds (.rd-custom: infographics, tables)
   with their own styles: the article's rules reach only the post's own
   paragraphs, headings, lists, quotes and figures.
   ========================================================================== */

/* ---------- Tokens (brand values from the live site) ---------- */
.rd {
  --rd-navy: #002a4c;
  --rd-navy-deep: #01203a;
  --rd-navy-ink: #0b1f33;
  --rd-green: #35a36b;
  --rd-green-600: #1d895e;
  --rd-green-400: #5db589;
  --rd-orange: #c14b1f;
  --rd-blue: #1866c1;
  --rd-blue-hover: #005176;
  --rd-sky: #7ac9ed;
  --rd-red: #f0524f;
  --rd-amber: #ea8a43;
  --rd-ink: #131516;
  --rd-text: #303435;
  --rd-text-2: #525456;
  --rd-line: #e3e7e6;
  --rd-soft: #f4f6f5;
  --rd-display: Montserrat, sans-serif;
  --rd-body: "Roboto Flex", Arial, sans-serif;
  --rd-pad: clamp(5rem, 3.25rem + 5.2vw, 9rem);
  --rd-radius-sheet: 2.5rem;
  --rd-ease: cubic-bezier(.22, .7, .18, 1);
  /* The three series: one colour each (the live cards give all three the same pencil icon) */
  --rd-tb: #f07d4f;
  --rd-sr: #7ac9ed;
  --rd-ai: #7fd3a8;

  position: relative; /* the hero's search list is placed in <main>, outside the hero */
  background: var(--rd-navy-deep);
  color: var(--rd-ink);
  font-family: var(--rd-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}

/* ---------- Scoped reset (specificity 0,1,0; components follow) ---------- */
.rd,
.rd *,
.rd *::before,
.rd *::after { box-sizing: border-box; }

.rd :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dt, dd) {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.rd :where(ul, ol) { display: block; flex-direction: row; gap: 0; list-style: none; }
.rd :where(li) { list-style: none; }
.rd :where(blockquote) { border: 0; }
.rd :where(img, video) { display: block; max-width: 100%; height: auto; }
.rd :where(strong, b) { font-weight: 700; }
.rd :where(em) { font-style: italic; }
.rd :where(a) { color: inherit; text-decoration: none; }
.rd :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.rd :where(input) { font: inherit; color: inherit; margin: 0; }
.rd :where(kbd, mark) { font: inherit; }
.rd svg { overflow: visible; }
.rd :where(p) { text-wrap: pretty; }
.rd-nowrap { white-space: nowrap; }
.rd ::selection { background: rgba(93, 181, 137, .32); }
.rd-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Sharing, the contents bar and the copy buttons need JavaScript */
html:not(.rd-js) :is(.rd-tocbar, .rd-code__copy, button.rd-share__b) { display: none; }

/* ---------- Layout ---------- */
.rd-container {
  position: relative;
  width: 90%;
  max-width: 108rem;
  margin-inline: auto;
}
.rd-section { position: relative; padding-block: var(--rd-pad); }
.rd-sheet {
  z-index: 1;
  margin-top: calc(var(--rd-radius-sheet) * -1);
  border-radius: var(--rd-radius-sheet) var(--rd-radius-sheet) 0 0;
}
.rd-section:has(+ .rd-sheet) { padding-bottom: calc(var(--rd-pad) + var(--rd-radius-sheet)); }

/* ---------- Type ---------- */
.rd-h1 {
  font-family: var(--rd-display);
  font-size: clamp(2.35rem, 1rem + 3.6vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #fff;
}
.rd-line { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.rd-line__inner { display: block; }
@media (min-width: 1200px) { .rd-line__inner { white-space: nowrap; } }
.rd-h2 {
  font-family: var(--rd-display);
  font-size: clamp(2.125rem, 1.3rem + 2.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.rd-lead {
  max-width: 56ch;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.rd-eyebrow {
  font-family: var(--rd-display);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rd-green-600);
}
.rd-eyebrow--on-dark { color: var(--rd-green-400); }
.rd-gradient-text {
  background: linear-gradient(270deg, #15b374 12%, #d56a32 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* The live H1 sets "Vectra AI Blog" in the logo's green */
.rd-accent { color: var(--rd-green-400); }
.rd-sl-mask { padding-bottom: .12em; margin-bottom: -.12em; }

/* ---------- CTAs: one system ---------- */
.rd-btn {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  min-height: 3.25rem;
  padding: .5rem .5rem .5rem 1.5rem;
  border-radius: 100vh;
  font-family: var(--rd-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .35s var(--rd-ease), box-shadow .35s var(--rd-ease);
}
.rd-btn--primary {
  background: var(--rd-blue);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(24, 102, 193, .7);
}
.rd-btn--primary:hover { background: var(--rd-blue-hover); }
.rd-btn__chev {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--rd-orange);
  color: #fff;
  transition: transform .35s var(--rd-ease);
}
.rd-btn:hover .rd-btn__chev { transform: translateX(3px); }

.rd-link {
  --rd-caret: 2rem;
  display: inline-flex;
  align-items: flex-end;
  gap: .625rem;
  font-family: var(--rd-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rd-blue);
}
.rd-link > span:first-child { text-wrap: balance; }
/* Centred on the label's last line (line-height 1.25em), whether it wraps or not */
.rd-link__caret {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--rd-caret);
  height: var(--rd-caret);
  margin-bottom: calc((1.25em - var(--rd-caret)) / 2);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color .3s var(--rd-ease), transform .3s var(--rd-ease);
}
.rd-link__caret svg { transition: color .3s; }
.rd-link:hover .rd-link__caret { background: currentColor; transform: translateX(2px); }
.rd-link:hover .rd-link__caret svg { color: #fff; }
.rd-link--light { color: #fff; }
.rd-link--light:hover .rd-link__caret svg { color: var(--rd-navy); }
.rd-link--sm { --rd-caret: 1.75rem; font-size: .9375rem; }

.rd-btn:focus-visible,
.rd-link:focus-visible,
.rd-crumbs a:focus-visible,
.rd-tag--link:focus-visible,
.rd-pmeta__by a:focus-visible,
.rd-ls__a:focus-visible {
  outline: 2px solid var(--rd-sky);
  outline-offset: 3px;
}
.rd-read :is(.rd-toc__a, .rd-share__b, .rd-ptag, .rd-acard__li, .rd-zoom, .rd-yt, .rd-code__copy, .rd-anchor, .rd-tocbar__btn, .rd-link):focus-visible,
.rd-more :is(.rd-link, .rd-rres):focus-visible {
  outline: 2px solid var(--rd-blue);
  outline-offset: 3px;
}
/* A card is one link: its title's. The ring goes round the whole card. */
.rd-post:has(.rd-post__a:focus-visible) { outline: 2px solid var(--rd-blue); outline-offset: 6px; border-radius: 1.125rem; }
.rd-post__a:focus-visible { outline: none; }

.rd-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(2rem, 3vw, 2.75rem);
}
.rd-cta-row--center { justify-content: center; }

.rd-head { display: flex; flex-direction: column; gap: 1.25rem; }

/* Pause / play (WCAG 2.2.2): every visual that keeps moving has one */
.rd-i-play { display: none; }
.is-user-paused .rd-i-pause { display: none; }
.is-user-paused .rd-i-play { display: block; }

/* Avatars and bylines */
.rd-av {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: #dfe7ee;
  box-shadow: 0 0 0 2px var(--rd-av-ring, #fff);
}
.rd-av img { width: 100%; height: 100%; object-fit: cover; }
.rd-av--txt {
  background: linear-gradient(135deg, #0d3a60, #1d6a74);
  color: #fff;
  font-family: var(--rd-display);
  font-size: .625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}
.rd-av--lg { width: 3rem; height: 3rem; }
.rd-av--lg.rd-av--txt { font-size: .9375rem; }
.rd-by { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.rd-by__av { display: inline-flex; flex: none; }
.rd-by__av .rd-av + .rd-av { margin-left: -.5rem; }
.rd-by__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--rd-text); }

.rd-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 34rem at 94% calc(100% + 4.75rem), rgba(29, 137, 94, .62) 0%, rgba(16, 94, 85, .3) 42%, rgba(0, 42, 76, 0) 76%),
    radial-gradient(40% 55% at 0% 0%, rgba(24, 102, 193, .2) 0%, rgba(24, 102, 193, 0) 70%),
    linear-gradient(180deg, #002a4c 0%, #01203a 100%);
}

/* ==========================================================================
   1. Hero: where the post sits, what it says, who wrote it, and its image
   ========================================================================== */
.rd-phero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rd-navy);
  color: #fff;
  overflow: clip;
}
.rd-phero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: clamp(34rem, calc(100svh - var(--rd-header-h, 148px) - 6rem), 46rem);
  padding-block: clamp(3rem, 6vh, 5rem) calc(clamp(3.5rem, 7vh, 5.5rem) + var(--rd-radius-sheet));
}
.rd-phero__copy { position: relative; z-index: 2; min-width: 0; }

.rd-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .625rem; }
.rd-crumbs li { display: inline-flex; align-items: center; gap: .625rem; font-family: var(--rd-display); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.rd-crumbs li + li::before {
  content: "";
  width: .375rem;
  height: .375rem;
  border-right: 1.5px solid rgba(255, 255, 255, .4);
  border-top: 1.5px solid rgba(255, 255, 255, .4);
  transform: rotate(45deg);
}
.rd-crumbs a { color: rgba(255, 255, 255, .66); transition: color .25s; }
.rd-crumbs a:hover { color: #fff; }
.rd-crumbs li:last-child a { color: var(--rd-green-400); }

.rd-phero__series { margin-top: 1.25rem; }
.rd-phero__series .rd-tag--link { position: static; display: inline-flex; transition: background-color .3s; }
.rd-tag--link:hover { background: rgba(1, 26, 48, 1); }
.rd-phero .rd-tag--link { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.rd-phero .rd-tag--link:hover { background: rgba(255, 255, 255, .14); }

.rd-ptitle {
  max-width: 22ch;
  margin-top: 1.125rem;
  font-family: var(--rd-display);
  font-size: clamp(2.125rem, 1.1rem + 2.55vw, 3.875rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.rd-phero__series + .rd-ptitle { margin-top: 1rem; }
.rd-pdek {
  max-width: 54ch;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .76);
}
.rd-pmeta {
  --rd-av-ring: var(--rd-navy);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  max-width: 44rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.375rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.rd-pmeta__av { display: inline-flex; flex: none; }
.rd-pmeta__av .rd-av + .rd-av { margin-left: -.75rem; }
.rd-av--md { width: 2.75rem; height: 2.75rem; }
.rd-av--md.rd-av--txt { font-size: .8125rem; }
.rd-pmeta__who { display: grid; gap: .125rem; min-width: 0; margin-right: auto; }
.rd-pmeta__by { font-family: var(--rd-display); font-size: .9375rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.rd-pmeta__by a { color: #fff; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--rd-ease); }
.rd-pmeta__by a:hover { background-size: 100% 1px; }
.rd-pmeta__role { font-size: .8125rem; color: rgba(255, 255, 255, .56); }
.rd-pmeta__when { font-family: var(--rd-display); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .62); white-space: nowrap; }

/* The image: framed; the lines plug into the socket on its left edge */
.rd-pcover { position: relative; margin: 0; }
.rd-pcover__frame {
  position: relative;
  aspect-ratio: 1200 / 630;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--rd-navy-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 44px 90px -40px rgba(0, 0, 0, .85);
  isolation: isolate;
}
.rd-pcover__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
}
.rd-pcover__img { width: 100%; height: 100%; object-fit: cover; }
.rd-pcover .rd-cover__k { display: none; }
.rd-pcover__socket,
.rd-pcover__socket::after {
  position: absolute;
  z-index: 3;
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
}
.rd-pcover__socket {
  left: 0;
  top: 50%;
  margin: -.3125rem 0 0 -.3125rem;
  background: #e8fff2;
  box-shadow: 0 0 0 3px rgba(93, 181, 137, .25), 0 0 .875rem rgba(127, 211, 168, .9);
}
.rd-pcover__socket::after { content: ""; left: 0; top: 0; box-shadow: 0 0 0 1.5px var(--rd-green-400); opacity: 0; }
.rd-phero.is-hit .rd-pcover__socket::after { animation: rd-ping .9s ease-out both; }
.rd-phero__toggle {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: calc(var(--rd-radius-sheet) + 1.25rem);
  display: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .75);
  transition: background-color .3s, color .3s;
}
.rd-phero__toggle:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.rd-phero__toggle svg { width: 1rem; height: 1rem; }
.rd-phero__toggle:focus-visible { outline: 2px solid var(--rd-sky); outline-offset: 3px; }
.rd-phero.is-gl .rd-phero__toggle { display: grid; }
@media (max-width: 1199px) { .rd-phero.is-gl .rd-phero__toggle { display: none; } }
@keyframes rd-ping {
  from { opacity: .95; scale: .6; }
  to { opacity: 0; scale: 3; }
}

/* ==========================================================================
   2. Reading: contents, the article, its FAQ and footer
   ========================================================================== */
.rd-read { background: #fff; color: var(--rd-ink); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.rd-read__grid {
  display: grid;
  grid-template-columns: 15rem minmax(0, 46rem);
  justify-content: center;
  align-items: start;
  column-gap: clamp(3rem, 6vw, 7.5rem);
}
.rd-read__grid.is-solo { grid-template-columns: minmax(0, 46rem); }

/* The contents rail: the sections, the one being read, the ones read */
.rd-rail {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.rd-rail::-webkit-scrollbar { display: none; }
.rd-rail__k {
  margin-bottom: 1rem;
  font-family: var(--rd-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rd-green-600);
}
.rd-toc--rail { border-left: 1px solid var(--rd-line); }
.rd-toc__i { position: relative; }
.rd-toc__a {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  padding: .5rem 0 .5rem 1rem;
  font-family: var(--rd-display);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #6b7174;
  transition: color .3s;
}
.rd-toc__a:hover { color: var(--rd-ink); }
.rd-toc__n { padding-top: .1em; font-size: .6875rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: #a3aaac; transition: color .3s; }
.rd-toc--rail .rd-toc__a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: .25rem;
  bottom: .25rem;
  width: 2px;
  border-radius: 2px;
  background: var(--rd-green);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .5s var(--rd-ease), background-color .4s;
}
.rd-toc__i.is-read > .rd-toc__a::before { transform: scaleY(1); background: #c9e3d5; }
.rd-toc__i.is-active > .rd-toc__a { color: var(--rd-ink); }
.rd-toc__i.is-active > .rd-toc__a::before { transform: scaleY(1); background: var(--rd-green); }
.rd-toc__i.is-active > .rd-toc__a .rd-toc__n,
.rd-toc__i.is-read > .rd-toc__a .rd-toc__n { color: var(--rd-green-600); }
/* a section's subsections open while it is the one being read */
.rd-toc__subw { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--rd-ease); }
.rd-toc__i.is-open > .rd-toc__subw { grid-template-rows: 1fr; }
.rd-toc__sub { min-height: 0; overflow: hidden; }
.rd-toc__i--sub > .rd-toc__a { grid-template-columns: minmax(0, 1fr); padding: .3125rem 0 .3125rem 2.75rem; font-size: .8125rem; font-weight: 500; }
.rd-toc__i--sub.is-active > .rd-toc__a { color: var(--rd-green-600); font-weight: 600; }

.rd-rail__share { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rd-line); }
.rd-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.rd-share__b {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rd-line);
  color: var(--rd-text-2);
  transition: background-color .3s var(--rd-ease), color .3s, box-shadow .3s;
}
.rd-share__b:hover { background: var(--rd-navy); color: #fff; box-shadow: inset 0 0 0 1px var(--rd-navy); }
.rd-share__b svg { width: 1.125rem; height: 1.125rem; }
.rd-share__b.is-done { background: var(--rd-green); color: #fff; box-shadow: none; }

/* On narrow screens the contents are a bar that holds the top of the screen */
.rd-tocbar { display: none; }
.rd-tocbar__btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .875rem;
  width: 100%;
  min-height: 3.25rem;
  padding: .5rem 1rem;
  text-align: left;
}
.rd-tocbar__k { font-family: var(--rd-display); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-green-600); white-space: nowrap; }
.rd-tocbar__cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--rd-display); font-size: .9375rem; font-weight: 600; color: var(--rd-ink); }
.rd-tocbar__chev { color: var(--rd-text-2); transition: transform .3s var(--rd-ease); }
.rd-tocbar__btn[aria-expanded="true"] .rd-tocbar__chev { transform: rotate(180deg); }
.rd-tocbar__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .375rem);
  max-height: min(60vh, 28rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: .5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 35, 60, .08), 0 24px 48px -16px rgba(10, 35, 60, .38);
}
.rd-tocbar__panel[hidden] { display: none; }
.rd-toc--bar .rd-toc__a { padding: .625rem .75rem; border-radius: .625rem; }
.rd-toc--bar .rd-toc__i.is-active > .rd-toc__a { background: var(--rd-soft); }
.rd-toc--bar .rd-toc__subw { grid-template-rows: 1fr; }
.rd-toc--bar .rd-toc__i--sub > .rd-toc__a { padding-left: 2.5rem; }
.rd-tocbar__prog {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rd-green);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: transform .6s var(--rd-ease);
}

/* ---------- The article ---------- */
.rd-article { min-width: 0; }
.rd-prose {
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.72;
  color: #2b3032;
}
.rd-prose::after { content: ""; display: table; clear: both; }
.rd-prose > :is(p, ul, ol, blockquote, h2, h3, h4, .rd-key, .rd-label) { overflow-wrap: break-word; }
.rd-prose > :is(p, ul, ol, blockquote) a,
.rd-prose li,
.rd-prose .rd-tweet { overflow-wrap: anywhere; }
.rd-prose > * + * { margin-top: 1.3em; }
.rd-prose > p:first-child { font-size: 1.1em; line-height: 1.65; color: var(--rd-ink); }
.rd-prose > h2 {
  position: relative;
  margin-top: 2.3em;
  font-family: var(--rd-display);
  font-size: clamp(1.5rem, 1.18rem + 1vw, 2.125rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--rd-ink);
  text-wrap: balance;
  scroll-margin-top: 5.5rem;
}
.rd-prose > h3 {
  position: relative;
  margin-top: 1.9em;
  font-family: var(--rd-display);
  font-size: clamp(1.1875rem, 1.06rem + .4vw, 1.4375rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--rd-ink);
  scroll-margin-top: 5.5rem;
}
.rd-prose > h2 + *,
.rd-prose > h3 + * { margin-top: .7em; }
.rd-prose > h4 { margin-top: 1.6em; font-family: var(--rd-display); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--rd-ink); }
.rd-prose > h6 { font-family: var(--rd-display); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-text-2); }
/* Links and emphasis in the post's own text (custom embeds keep their own styles) */
.rd-prose > :is(p, ul, ol, blockquote, h2, h3, h4, .rd-key, .rd-label) a,
.rd-prose > .rd-fig figcaption a,
.rd-qa__a a,
.rd-acard__bio a {
  color: var(--rd-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(24, 102, 193, .38);
  text-underline-offset: .2em;
  transition: color .25s, text-decoration-color .25s;
}
.rd-prose > :is(p, ul, ol, blockquote, h2, h3, h4, .rd-key, .rd-label) a:hover,
.rd-prose > .rd-fig figcaption a:hover,
.rd-qa__a a:hover,
.rd-acard__bio a:hover { color: var(--rd-blue-hover); text-decoration-color: currentColor; }
.rd-prose > :is(p, ul, ol, blockquote) :is(strong, b) { font-weight: 600; color: var(--rd-ink); }
.rd-prose > :is(p, ul, ol) :is(em, i) { font-style: italic; }
.rd-prose sup { font-size: .7em; line-height: 0; vertical-align: super; }
.rd-prose > :is(p, ul, ol, h2, h3, h4, blockquote) code,
.rd-qa__a code {
  padding: .12em .38em;
  border-radius: .35em;
  background: #eef2f1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  color: #17344c;
}

/* Lists: a green point, or the number in the brand face */
.rd-prose > ul,
.rd-prose > ol,
.rd-prose li > ul,
.rd-prose li > ol { display: grid; gap: .55em; }
.rd-prose li > ul,
.rd-prose li > ol { margin-top: .55em; }
.rd-prose > ul > li,
.rd-prose li > ul > li { position: relative; padding-left: 1.55em; }
.rd-prose > ul > li::before,
.rd-prose li > ul > li::before {
  content: "";
  position: absolute;
  left: .3em;
  top: .7em;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: var(--rd-green);
  box-shadow: 0 0 0 .2em rgba(53, 163, 107, .14);
}
.rd-prose li > ul > li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rd-green); }
.rd-prose > ol,
.rd-prose li > ol { padding-left: 1.6em; }
.rd-prose > ol > li,
.rd-prose li > ol > li { display: list-item; list-style: decimal outside; padding-left: .35em; }
.rd-prose > ol > li::marker,
.rd-prose li > ol > li::marker { font-family: var(--rd-display); font-size: .92em; font-weight: 700; color: var(--rd-green-600); }

/* Quotes, the author's key lines, labels */
.rd-prose > blockquote {
  margin-block: 2em;
  padding: .1em 0 .1em 1.375em;
  border-left: 3px solid var(--rd-green);
  font-family: var(--rd-display);
  font-size: clamp(1.125rem, 1.02rem + .35vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--rd-ink);
}
.rd-prose > blockquote :is(strong, b) { font-weight: 700; }
.rd-prose > .rd-key {
  position: relative;
  margin-block: 1.9em;
  padding: 1.25rem 1.5rem 1.25rem 1.625rem;
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(90deg, rgba(53, 163, 107, .1), rgba(53, 163, 107, .02) 85%);
  font-family: var(--rd-display);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.015em;
  color: var(--rd-ink);
  text-wrap: balance;
}
.rd-prose > .rd-key::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--rd-green-400), var(--rd-green-600)); }
.rd-prose > .rd-key :is(strong, b) { font-weight: 700; }
.rd-prose > .rd-label { font-family: var(--rd-display); font-size: 1.0625rem; font-weight: 700; color: var(--rd-ink); }
.rd-prose > .rd-label + :is(ul, ol) { margin-top: .75em; }
.rd-prose > hr { height: 1px; margin-block: 2.5em; border: 0; background: var(--rd-line); }
.rd-prose .rd-tweet {
  margin-block: 1.5em;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--rd-line);
  font-size: 1rem;
  color: var(--rd-text);
}
.rd-prose .rd-tweet p + p { margin-top: .5em; }
.rd-prose .rd-tweet a { color: var(--rd-blue); }

/* Figures: images open larger; videos load only when played */
.rd-fig { margin-block: 2.25em; }
.rd-zoom {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--rd-soft);
  box-shadow: 0 0 0 1px rgba(10, 35, 60, .08);
  cursor: zoom-in;
}
.rd-zoom img { width: 100%; height: auto; opacity: 0; transition: opacity .6s var(--rd-ease), transform .8s var(--rd-ease); }
.rd-zoom img.is-loaded,
html:not(.rd-js) .rd-zoom img { opacity: 1; }
.rd-zoom:hover img { transform: scale(1.012); }
.rd-zoom::after {
  content: "";
  position: absolute;
  right: .75rem;
  top: .75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(1, 26, 48, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M12 3.5h4.5V8M8 16.5H3.5V12M16.5 3.5l-5 5M3.5 16.5l5-5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s, transform .3s var(--rd-ease);
}
.rd-zoom:hover::after,
.rd-zoom:focus-visible::after { opacity: 1; transform: none; }
.rd-fig[style*="--mw"] .rd-zoom { max-width: var(--mw); margin-inline: auto; }
.rd-fig figcaption {
  display: flex;
  gap: .625rem;
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--rd-text-2);
}
.rd-fig figcaption::before { content: ""; flex: none; width: 1.25rem; height: 1px; margin-top: .72em; background: var(--rd-green); }
.rd-fig[style*="--mw"] figcaption { justify-content: center; }
@media (min-width: 768px) {
  .rd-fig--floatright { float: right; width: min(45%, var(--mw, 22rem)); margin: .35em 0 1em 2em; }
  .rd-fig--floatleft { float: left; width: min(45%, var(--mw, 22rem)); margin: .35em 2em 1em 0; }
  .rd-fig--floatright .rd-zoom,
  .rd-fig--floatleft .rd-zoom { max-width: none; }
}
.rd-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.rd-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s, transform .8s var(--rd-ease); }
.rd-yt:hover img { opacity: 1; transform: scale(1.02); }
.rd-yt__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background: var(--rd-orange);
  box-shadow: 0 0 0 .5rem rgba(193, 75, 31, .25), 0 18px 40px -14px rgba(0, 0, 0, .7);
  transition: transform .35s var(--rd-ease);
}
.rd-yt__play::before { content: ""; position: absolute; left: 52%; top: 50%; translate: -40% -50%; border-style: solid; border-width: .75rem 0 .75rem 1.25rem; border-color: transparent transparent transparent #fff; }
.rd-yt:hover .rd-yt__play { transform: scale(1.06); }
.rd-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: var(--rd-soft); }
.rd-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rd-table { overflow-x: auto; border-radius: 1rem; box-shadow: 0 0 0 1px var(--rd-line); }
.rd-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.rd-table :is(th, td) { padding: .75rem 1rem; border-bottom: 1px solid var(--rd-line); text-align: left; vertical-align: top; }
.rd-table th { background: var(--rd-soft); font-family: var(--rd-display); font-size: .8125rem; font-weight: 700; color: var(--rd-ink); }
.rd-table tr:last-child td { border-bottom: 0; }
.rd-code { position: relative; }
.rd-code pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #0b1f33;
  color: #dbe9f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8125rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.rd-code pre code { font: inherit; color: inherit; background: none; padding: 0; }
.rd-code__copy {
  position: absolute;
  right: .625rem;
  top: .625rem;
  padding: .375rem .75rem;
  border-radius: 100vh;
  background: rgba(255, 255, 255, .08);
  font-family: var(--rd-display);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  transition: background-color .25s;
}
.rd-code__copy:hover { background: rgba(255, 255, 255, .16); }
.rd-prose > .rd-custom { margin-block: 2em; }
.rd-prose > .rd-custom:first-child { margin-top: 0; }

/* A link to each section, beside its heading */
.rd-anchor {
  position: absolute;
  left: -2.25rem;
  top: .15em;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--rd-text-2);
  opacity: 0;
  transition: opacity .25s, background-color .25s, color .25s;
}
.rd-anchor svg { width: 1rem; height: 1rem; }
.rd-prose > :is(h2, h3):hover .rd-anchor,
.rd-anchor:focus-visible { opacity: 1; }
.rd-anchor:hover { background: var(--rd-soft); color: var(--rd-blue); }

/* FAQ (the live template's, open one at a time) */
.rd-pfaq { margin-top: clamp(3rem, 5vw, 4.5rem); scroll-margin-top: 5.5rem; }
.rd-pfaq__title {
  margin-bottom: 1.25rem;
  font-family: var(--rd-display);
  font-size: clamp(1.5rem, 1.18rem + 1vw, 2.125rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.rd-qa { border-top: 1px solid #d9dfdd; }
.rd-qa:last-child { border-bottom: 1px solid #d9dfdd; }
.rd-qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.125rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--rd-display);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--rd-ink);
  transition: color .3s;
}
.rd-qa__q::-webkit-details-marker { display: none; }
.rd-qa__q::marker { content: ""; }
.rd-qa__q:hover { color: var(--rd-blue); }
.rd-qa__q:focus-visible { outline: 2px solid var(--rd-blue); outline-offset: 4px; border-radius: .25rem; }
.rd-qa__icon {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--rd-blue);
  border-radius: 50%;
  color: var(--rd-blue);
  transition: background-color .3s var(--rd-ease), transform .45s var(--rd-ease);
}
.rd-qa__icon::before,
.rd-qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .75rem;
  height: 1.5px;
  margin: -.75px 0 0 -.375rem;
  border-radius: 1px;
  background: currentColor;
  transition: transform .45s var(--rd-ease), background-color .3s;
}
.rd-qa__icon::after { transform: rotate(90deg); }
.rd-qa[open] .rd-qa__icon { transform: rotate(180deg); background: var(--rd-blue); color: #fff; }
.rd-qa[open] .rd-qa__icon::after { transform: rotate(0deg); }
.rd-qa__a { padding: 0 clamp(0rem, 5vw, 3rem) 1.375rem 0; overflow: hidden; }
.rd-qa__a p,
.rd-qa__a li { font-size: 1rem; line-height: 1.65; color: var(--rd-text-2); }
.rd-qa__a p + p,
.rd-qa__a p + ul,
.rd-qa__a p + ol { margin-top: .75rem; }
.rd-qa__a ul,
.rd-qa__a ol { display: grid; gap: .4rem; }
.rd-qa__a ul > li { position: relative; padding-left: 1.125rem; }
.rd-qa__a ul > li::before { content: ""; position: absolute; left: 0; top: .7em; width: .375rem; height: .375rem; border-radius: 50%; background: var(--rd-green); }
.rd-qa__a ol { padding-left: 1.25rem; }
.rd-qa__a ol > li { display: list-item; list-style: decimal outside; }
.rd-qa__a strong { color: var(--rd-text); }

/* The article's footer: where it is filed, sharing, the authors */
.rd-afoot {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rd-line);
}
.rd-afoot__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.rd-afoot__k {
  font-family: var(--rd-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rd-green-600);
}
.rd-afoot__row .rd-afoot__k { min-width: 9.5rem; }
.rd-afoot__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.rd-ptag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.125rem;
  padding: .375rem .875rem;
  border-radius: 100vh;
  background: var(--rd-soft);
  box-shadow: inset 0 0 0 1px var(--rd-line);
  font-family: var(--rd-display);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rd-ink);
  transition: box-shadow .25s, color .25s, background-color .25s;
}
.rd-ptag:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--rd-blue); color: var(--rd-blue); }
.rd-dot { width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: var(--c, var(--rd-sky)); }
.rd-dot--tb { --c: var(--rd-tb); }
.rd-dot--sr { --c: var(--rd-sr); }
.rd-dot--ai { --c: var(--rd-ai); }
.rd-share--row .rd-share__b { width: 2.375rem; height: 2.375rem; }
.rd-authors { display: grid; gap: .875rem; scroll-margin-top: 5.5rem; }
.rd-authors > .rd-afoot__k { margin-bottom: .125rem; }
.rd-acard {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--rd-soft);
  --rd-av-ring: var(--rd-soft);
}
.rd-av--xl { width: 4.5rem; height: 4.5rem; }
.rd-av--xl.rd-av--txt { font-size: 1.25rem; }
.rd-acard__n { font-family: var(--rd-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; color: var(--rd-ink); }
.rd-acard__r { margin-top: .125rem; font-size: .9375rem; color: var(--rd-text-2); }
.rd-acard__bio { margin-top: .75rem; font-size: .9375rem; line-height: 1.6; color: var(--rd-text); }
.rd-acard__bio p + p { margin-top: .5em; }
.rd-acard__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }
.rd-acard__li {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rd-line);
  color: #0a66c2;
  transition: box-shadow .25s;
}
.rd-acard__li svg { width: 1rem; height: 1rem; }
.rd-acard__li:hover { box-shadow: inset 0 0 0 1px #0a66c2; }

/* ==========================================================================
   3. Series: where the post sits in it, and what else is in it
   ========================================================================== */
.rd-pseries { --c: var(--rd-sr); background: var(--rd-navy-deep); color: #fff; }
.rd-pseries--tb { --c: var(--rd-tb); }
.rd-pseries--ai { --c: var(--rd-ai); }
.rd-pseries::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(46% 60% at 100% 0%, rgba(24, 102, 193, .16), transparent 70%), radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.rd-pseries__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(2.5rem, 6vw, 6.5rem); }
.rd-pseries__head { position: sticky; top: 2.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.rd-pseries__ic svg { width: 3rem; height: 3rem; margin-bottom: 1.5rem; stroke: var(--c); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rd-pseries__ic .rd-ic-fill { fill: var(--c); stroke: none; }
.rd-pseries--ai .rd-pseries__ic circle { fill: var(--rd-navy-deep); }
.rd-pseries__title { margin-top: .875rem; font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); }
.rd-pseries__x { max-width: 40ch; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.rd-pseries__n { margin-top: 1.25rem; font-family: var(--rd-display); font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.rd-pseries__n b { font-size: 1.125rem; color: #fff; }
.rd-pseries__head .rd-link { margin-top: 1.5rem; }
.rd-pseries__list { display: grid; gap: .75rem; }
.rd-sp {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: .75rem 1.25rem .75rem .75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .35s var(--rd-ease), box-shadow .35s var(--rd-ease), translate .35s var(--rd-ease);
}
.rd-sp:hover { translate: 4px 0; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.rd-sp__media { position: relative; aspect-ratio: 1200 / 630; border-radius: .75rem; overflow: hidden; background: var(--rd-navy-ink); }
.rd-sp__media img { width: 100%; height: 100%; object-fit: cover; }
.rd-sp__body { display: grid; gap: .3125rem; min-width: 0; }
.rd-sp__body time { font-family: var(--rd-display); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.rd-sp__t { font-family: var(--rd-display); font-size: clamp(.9375rem, .9rem + .25vw, 1.0625rem); font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .92); }
.rd-sp__m { font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.rd-sp:focus-visible { outline: 2px solid var(--rd-sky); outline-offset: 3px; }

/* ==========================================================================
   4. Keep reading: related posts and resources
   ========================================================================== */
.rd-more { background: var(--rd-soft); color: var(--rd-ink); }
.rd-more__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.rd-more__title { font-size: clamp(1.875rem, 1.2rem + 1.9vw, 3.125rem); }
.rd-more__res { margin-top: clamp(.5rem, 1.5vw, 1.25rem); padding-top: 2rem; border-top: 1px solid #dfe5e3; }
.rd-rres__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.125rem; }
.rd-rres {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: .75rem 1rem .75rem .75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 35, 60, .06), 1px 12px 34px rgba(0, 0, 0, .03);
  color: var(--rd-blue);
  transition: box-shadow .35s var(--rd-ease), translate .35s var(--rd-ease);
}
.rd-rres:hover { translate: 0 -2px; box-shadow: 0 0 0 1px rgba(24, 102, 193, .25), 1px 18px 34px rgba(0, 0, 0, .08); }
.rd-rres__media { aspect-ratio: 1200 / 630; border-radius: .5rem; overflow: hidden; background: var(--rd-navy-ink); }
.rd-rres__media img { width: 100%; height: 100%; object-fit: cover; }
.rd-rres__body { display: grid; gap: .25rem; min-width: 0; }
.rd-rres__k { font-family: var(--rd-display); font-size: .625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-green-600); }
.rd-rres__t {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: var(--rd-display);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rd-ink);
}
.rd-rres .rd-link__caret { --rd-caret: 1.75rem; margin: 0; }
.rd-rres:hover .rd-link__caret { background: currentColor; transform: translateX(2px); }
.rd-rres:hover .rd-link__caret svg { color: #fff; }
.rd-rres:focus-visible { outline: 2px solid var(--rd-blue); outline-offset: 3px; }

/* The grid: rows share their lines (subgrid), so titles, excerpts and bylines align */
.rd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.2vw, 2.25rem);
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}
.rd-grid:empty { display: none; }
.rd-post { position: relative; display: flex; flex-direction: column; padding-bottom: clamp(2.25rem, 3.4vw, 3.25rem); }
@supports (grid-template-rows: subgrid) {
  .rd-post { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .rd-post__body { display: contents; }
}
.rd-post__text { padding-top: .5rem; }
.rd-post__media {
  position: relative;
  aspect-ratio: 1200 / 630;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--rd-navy-ink);
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(10, 35, 60, .06);
}
.rd-post__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--rd-ease); }
.rd-post:hover .rd-post__img { transform: scale(1.045); }
.rd-tag {
  position: absolute;
  z-index: 2;
  left: .75rem;
  top: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  padding: .375rem .625rem .375rem .5rem;
  border-radius: 100vh;
  background: rgba(1, 26, 48, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--rd-display);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.rd-tag::before { content: ""; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 .5rem var(--c); }
.rd-tag--tb { --c: var(--rd-tb); }
.rd-tag--sr { --c: var(--rd-sr); }
.rd-tag--ai { --c: var(--rd-ai); }
.rd-post__kicker {
  padding-top: 1.25rem;
  font-family: var(--rd-display);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rd-green-600);
}
.rd-post__t {
  font-family: var(--rd-display);
  font-size: clamp(1.125rem, .98rem + .38vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: var(--rd-ink);
}
.rd-post__a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .5s var(--rd-ease), color .3s;
}
.rd-post__a::after { content: ""; position: absolute; inset: 0 0 clamp(2.25rem, 3.4vw, 3.25rem); z-index: 1; }
.rd-post:hover .rd-post__a { background-size: 100% 1.5px; color: var(--rd-navy); }
.rd-post__x {
  display: -webkit-box;
  margin-top: .625rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--rd-text-2);
}
.rd-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem .875rem;
  padding-top: 1rem;
  font-size: .875rem;
  line-height: 1.3;
  color: var(--rd-text-2);
  align-self: end;
}
.rd-post__d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rd-hl { padding: 0 .05em; border-radius: .2em; background: rgba(93, 181, 137, .28); color: inherit; }

/* Generated covers: the brand's signal lines, one drawing per post (seeded by its
   slug), for the 114 posts whose thumbnail is shared by 3+ posts on the live site */
.rd-cover {
  --c: var(--rd-sky);
  --g1: #0d3a60;
  --g2: #021f38;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.125rem;
  background: radial-gradient(90% 120% at var(--fx, 70%) var(--fy, 45%), var(--g1) 0%, var(--g2) 58%, #011628 100%);
  color: var(--c);
  overflow: hidden;
}
.rd-cover[data-tone="tb"] { --c: var(--rd-tb); --g1: #3a2338; --g2: #0c1d36; }
.rd-cover[data-tone="ai"] { --c: var(--rd-ai); --g1: #0f4146; --g2: #031f33; }
.rd-cover[data-tone="sr"] { --c: var(--rd-sr); --g1: #0d3f66; --g2: #021f38; }
.rd-cover[data-hue="mint"] { --c: var(--rd-ai); --g1: #0c3d48; --g2: #02213a; }
.rd-cover[data-hue="blue"] { --c: #78acef; --g1: #0f3463; --g2: #031c36; }
.rd-cover__svg.is-flip { -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 48%); mask-image: linear-gradient(270deg, transparent 0%, #000 48%); }
.rd-cover__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
}
.rd-cover__g { transition: transform 1.2s var(--rd-ease); }
.rd-post:hover .rd-cover__g { transform: translateX(-14px); }
.rd-cover__f {
  position: absolute;
  left: var(--fx, 70%);
  top: var(--fy, 45%);
  width: .4375rem;
  height: .4375rem;
  margin: -.21875rem 0 0 -.21875rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 .5rem 2px var(--c), 0 0 1.75rem .5rem color-mix(in srgb, var(--c) 45%, transparent);
}
.rd-cover__k {
  position: relative;
  max-width: 70%;
  font-family: var(--rd-display);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* ==========================================================================
   5. Final
   ========================================================================== */
.rd-final { background: var(--rd-navy); color: #fff; text-align: center; overflow: clip; padding-bottom: 0; }
.rd-final::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(5rem, 9vw, 8rem);
  background: linear-gradient(180deg, rgba(19, 21, 22, 0), rgba(19, 21, 22, .55) 55%, #131516);
  pointer-events: none;
}
.rd-final__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 62% at 50% 118%, rgba(29, 137, 94, .58), rgba(16, 94, 85, .2) 45%, transparent 76%);
  pointer-events: none;
}
.rd-final__questions { position: absolute; inset: 0; font-family: var(--rd-display); font-weight: 600; pointer-events: none; }
.rd-fq {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  font-size: var(--fs);
  white-space: nowrap;
  color: #fff;
  opacity: .08;
}
/* gl.js spells these in dots, which need a little more size than ink to stay readable */
.rd-fq--1 { --x: 15%; --y: 22%; --fs: clamp(1.375rem, .6rem + .95vw, 1.75rem); }
.rd-fq--2 { --x: 85%; --y: 17%; --fs: clamp(1.25rem, .5rem + .9vw, 1.625rem); }
.rd-fq--3 { --x: 12%; --y: 60%; --fs: clamp(1.125rem, .4rem + .85vw, 1.5rem); }
.rd-fq--4 { --x: 87%; --y: 56%; --fs: clamp(1.125rem, .4rem + .85vw, 1.5rem); }
.rd-fq--5 { --x: 50%; --y: 8%; --fs: clamp(1.125rem, .4rem + .85vw, 1.5rem); }
.rd-final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: clamp(1rem, 3vw, 3rem);
  padding-bottom: clamp(9rem, 15vw, 14rem);
}
.rd-final__title { max-width: 20ch; font-size: clamp(2.25rem, 1.05rem + 3.4vw, 4.75rem); line-height: 1.06; letter-spacing: -.035em; }
.rd-final__beat { display: inline-block; }
.rd-final .rd-cta-row { margin-top: .75rem; }

/* The template's quote under the call to action */
.rd-fquote { max-width: 46rem; margin: .25rem auto 0; }
.rd-fquote blockquote { font-size: clamp(1.0625rem, .96rem + .4vw, 1.3125rem); line-height: 1.55; color: rgba(255, 255, 255, .82); }
.rd-fquote figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.125rem;
  text-align: left;
  font-size: .875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .6);
}
.rd-fquote figcaption img { width: auto; height: 2.25rem; filter: brightness(0) invert(1); opacity: .72; }
.rd-fquote b { display: block; font-family: var(--rd-display); font-size: .9375rem; color: #fff; }

/* ---------- Image dialog ---------- */
html:has(.rd-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.rd-dialog {
  width: min(94vw, 90rem);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.rd-dialog::backdrop { background: rgba(0, 18, 34, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rd-dialog__close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.rd-dialog__close svg { width: 1.25rem; height: 1.25rem; }
.rd-dialog__close:focus-visible { outline: 2px solid var(--rd-sky); outline-offset: 3px; }
.rd-zoomdlg__fig { display: grid; justify-items: center; gap: .875rem; margin: 0; }
.rd-zoomdlg__fig img { width: auto; max-width: 100%; height: auto; max-height: 84vh; border-radius: 1rem; background: #fff; }
.rd-zoomdlg__fig figcaption { max-width: 64ch; font-size: .9375rem; line-height: 1.5; text-align: center; color: rgba(255, 255, 255, .78); }
.rd-zoomdlg__fig figcaption a { color: #fff; text-decoration: underline; }

/* ---------- Toast ---------- */
.rd-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 2rem;
  padding: .75rem 1.25rem;
  border-radius: 100vh;
  background: var(--rd-navy);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  font-family: var(--rd-display);
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  translate: -50% 1rem;
  pointer-events: none;
  transition: opacity .3s var(--rd-ease), translate .3s var(--rd-ease);
}
.rd-toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- A post other than the default is rendered before the page shows ---------- */
.rd-swap main.rd { visibility: hidden; }

/* ---------- Motion start states (only when JS + GSAP will run) ---------- */
.rd-motion .rd-phero [data-rd-hero],
.rd-motion .rd-pcover,
.rd-motion .rd-rail,
.rd-motion [data-rd-reveal],
.rd-motion .rd-final__beat { opacity: 0; }
.rd-motion .rd-ptitle,
.rd-motion [data-rd-split] { visibility: hidden; }
.rd-motion .rd-grid:not(.is-in) > .rd-post { opacity: 0; }

/* ==========================================================================
   Responsive (site breakpoints: 991 / 767 / 479, plus 1199 for the wide layouts)
   ========================================================================== */
@media (max-width: 1199px) {
  .rd-phero__inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2.5rem; min-height: 0; }
  .rd-pcover { width: min(100%, 44rem); }
  .rd-pcover__socket { display: none; }

  .rd-read__grid,
  .rd-read__grid.is-solo { grid-template-columns: minmax(0, 46rem); }
  .rd-rail { display: none; }
  .rd-tocbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: block;
    margin: 0 -1rem 2rem;
    border-radius: 0 0 1rem 1rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 0 rgba(10, 35, 60, .08);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
  .rd-anchor { display: none; }
  .rd-prose > :is(h2, h3),
  .rd-pfaq,
  .rd-authors { scroll-margin-top: 4.5rem; }

  .rd-pseries__grid { grid-template-columns: minmax(0, 1fr); }
  .rd-pseries__head { position: static; }
  .rd-rres__list { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-grid > .rd-post:nth-child(3) { display: none; }
}

@media (max-width: 991px) {
  .rd { --rd-radius-sheet: 1.75rem; }
  .rd-container { width: 100%; padding-inline: 1.5rem; }
  .rd-phero__inner { padding-block: 3rem calc(3rem + var(--rd-radius-sheet)); }
  .rd-tocbar { margin-inline: -1.5rem; border-radius: 0; }

  .rd-final { text-align: left; }
  .rd-final__inner { align-items: flex-start; }
  .rd-cta-row--center { justify-content: flex-start; }
  .rd-final__questions { display: none; }
  .rd-fquote { margin-inline: 0; }
  .rd-fquote figcaption { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .rd-pmeta__when { flex-basis: 100%; }
  .rd-prose > .rd-key { padding: 1rem 1.125rem 1rem 1.25rem; }
  .rd-acard { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem; }
  .rd-afoot__row .rd-afoot__k { min-width: 0; flex-basis: 100%; }
  .rd-sp { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-right: 1rem; }
  .rd-more__head .rd-link { order: 3; }

  /* Related posts as a list: thumbnail beside the title (as on the blog index) */
  .rd-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-grid > .rd-post:nth-child(3) { display: grid; }
  .rd-post,
  .rd-post__body { display: grid; }
  @supports (grid-template-rows: subgrid) {
    .rd-post { grid-row: auto; grid-template-rows: none; }
    .rd-post__body { display: grid; }
  }
  .rd-post { grid-template-columns: 7.5rem minmax(0, 1fr); align-items: start; column-gap: 1rem; padding-bottom: 0; padding-block: 1.125rem; border-bottom: 1px solid #dfe5e3; }
  .rd-post__a::after { inset: 0; }
  .rd-post__media { aspect-ratio: 1; border-radius: .75rem; }
  .rd-post__media .rd-tag { left: .375rem; top: .375rem; padding: .3125rem; font-size: 0; letter-spacing: 0; gap: 0; }
  .rd-cover { padding: .5rem; }
  .rd-cover__k { display: none; }
  .rd-post__kicker { padding-top: 0; }
  .rd-post__text { padding-top: .375rem; }
  .rd-post__t { font-size: 1rem; line-height: 1.32; }
  .rd-post__x { display: none; }
  .rd-post__meta { padding-top: .5rem; font-size: .8125rem; }
  .rd-post__meta .rd-by__av { display: none; }
}

@media (max-width: 479px) {
  .rd-btn { font-size: 1rem; }
  .rd-ptitle { font-size: 2rem; }
  .rd-fquote figcaption { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   WebGL (gl.js): the canvases, and what each one takes over
   html.rd-gl-ok   WebGL2 exists (set in <head>, so space is held from the first paint;
                   removed again if three.js never arrives)
   .is-gl          on a section: its scene has drawn, so its CSS/SVG stand-ins hide
   ========================================================================== */
.rd-gl {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--rd-ease);
}
.rd-gl.is-on { opacity: 1; }
/* Behind the title the lines stay quiet: they converge on the image */
.rd-gl--hero {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) calc(var(--rd-sx, 58%) - 24rem), #000 calc(var(--rd-sx, 58%) - 3rem));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) calc(var(--rd-sx, 58%) - 24rem), #000 calc(var(--rd-sx, 58%) - 3rem));
}
/* Stacked (one column), the image has no edge for the lines to meet: no lines */
@media (max-width: 1199px) {
  .rd-gl--hero { display: none; }
}

/* Resolution: the particles take over from the CSS words and glow */
.rd-final.is-gl .rd-final__questions { visibility: hidden; }
.rd-final.is-gl .rd-final__glow { opacity: .5; transition: opacity 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .rd *,
  .rd *::before,
  .rd *::after { transition-duration: .01ms !important; animation: none !important; }
}
