/* ================================================================
   prism.css: Editorial Prism, the new visual system (newui branch).

   Reference: the design handoff pack (index.html, styles.css, tokens).
   Loaded after base.css. Everything is scoped under html[data-ui="prism"]
   so it wins on specificity without !important and can be lifted out whole.

   Layers, in order:
     1. Tokens, light and dark
     2. Page, type, buttons, labels
     3. Header and mobile menu
     4. Footer, cookie banner
     5. Dark mode patches for components not yet rebuilt
     6. Home page components (px-*)
     7. Responsive, motion, touch
   ================================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────────── */
html[data-ui="prism"] {
  color-scheme: light;

  /* Existing token names, remapped so every page picks up the palette */
  --bg: #ffffff;
  --surface: #fbf9fd;
  --surface-raised: #f4eff9;
  --border: #e9e5ed;
  --border-strong: #d6d0de;
  --ink: #1c1a21;
  --body: #2b2832;
  --muted: #686371;
  --smokegrey: #9a95a3;

  /* The brand orange stays: the hero headline and the old pages use it */
  --orange: #f97316;
  --orange-deep: #ea580c;
  --orange-glow: rgba(249, 115, 22, 0.12);
  --orange-subtle: rgba(249, 115, 22, 0.07);
  --orange-light: #ffedd5;

  /* Editorial Prism tokens, straight from design-tokens.json */
  --px-purple: #7546b9;
  --px-purple-bg: #f3eaff;
  --px-rose: #b93869;
  --px-rose-bg: #fff0f4;
  --px-blue: #176a8a;
  --px-blue-bg: #e9f8ff;
  --px-orange: #b74c21;
  --px-orange-bg: #fff2e7;
  --px-gradient: linear-gradient(125deg, #ffad6d, #ed70a8 43%, #9d79f2 78%, #72c7eb);
  --px-glass: #fffffff2;
  --px-card-shadow: 0 16px 35px rgba(28, 26, 33, 0.07);
  --header-bg: rgba(255, 255, 255, 0.92);

  /* Type: the system stack, so Apple devices render San Francisco */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(28, 26, 33, 0.05);
  --shadow-md: 0 4px 14px rgba(28, 26, 33, 0.06);
  --shadow-lg: 0 14px 34px rgba(28, 26, 33, 0.08);
  --shadow-xl: 0 22px 50px rgba(28, 26, 33, 0.1);
  --header-height: 68px;
}

html[data-ui="prism"][data-theme="dark"] {
  color-scheme: dark;

  --bg: #09070d;
  --surface: #14101c;
  --surface-raised: #1c1627;
  --border: #30273b;
  --border-strong: #433653;
  --ink: #f6f2fa;
  --body: #e6e0ee;
  --muted: #b9b0c6;
  --smokegrey: #8d849b;

  --orange: #ffa05e;
  --orange-deep: #ffb48a;
  --orange-glow: rgba(255, 160, 94, 0.16);
  --orange-subtle: rgba(255, 160, 94, 0.1);
  --orange-light: #2b1a12;

  --px-purple: #d3a8ff;
  --px-purple-bg: #251534;
  --px-rose: #ffaccc;
  --px-rose-bg: #2f1422;
  --px-blue: #9addf6;
  --px-blue-bg: #102530;
  --px-orange: #ffb48a;
  --px-orange-bg: #2b1a12;
  --px-gradient: linear-gradient(125deg, #df743b, #c83b81 43%, #6e35c6 78%, #1d739a);
  --px-glass: #18111ff2;
  --px-card-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(9, 7, 13, 0.92);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 22px 50px rgba(0, 0, 0, 0.55);
}

/* ── 2. PAGE, TYPE, BUTTONS, LABELS ────────────────────────────── */
html[data-ui="prism"] body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
}
html[data-ui="prism"] body,
html[data-ui="prism"] .header,
html[data-ui="prism"] .footer,
html[data-ui="prism"] .px-card {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
html[data-ui="prism"] ::selection { background: var(--px-purple-bg); color: var(--ink); }
html[data-ui="prism"] :focus-visible { outline: 3px solid var(--px-purple); outline-offset: 4px; border-radius: 8px; }

:where(html[data-ui="prism"]) :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[data-ui="prism"] #hero h1 { font-weight: 650; letter-spacing: -0.045em; }

/* Buttons: ink pill, outlined pill. No glow, no zoom. */
html[data-ui="prism"] .btn {
  font-family: var(--font-body);
  font-weight: 550;
  font-size: 0.8125rem;
  padding: 0.8125rem 1.375rem;
  letter-spacing: 0;
  text-transform: none;
}
html[data-ui="prism"] .btn--primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
html[data-ui="prism"] .btn--primary::before { display: none; }
html[data-ui="prism"] .btn--primary:hover,
html[data-ui="prism"] .btn--secondary:hover,
html[data-ui="prism"] .btn--outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
html[data-ui="prism"] .btn--primary:hover { background: var(--ink); }
html[data-ui="prism"] .btn--secondary,
html[data-ui="prism"] .btn--outline {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
  padding: 0.8125rem 1.375rem;
}
html[data-ui="prism"] .btn--secondary:hover,
html[data-ui="prism"] .btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* Eyebrows: small sans capitals, no pill, no pulse */
html[data-ui="prism"] .section-label,
html[data-ui="prism"] .section-number {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  background: transparent;
  border-radius: 0;
  animation: none;
}
html[data-ui="prism"] .section-label--orange { color: var(--px-orange); background: transparent; animation: none; }

/* The old atmosphere is gone; the progress bar is the only leftover */
html[data-ui="prism"] #scroll-progress { background: var(--px-gradient); height: 2px; }

/* ── 3. HEADER AND MOBILE MENU ─────────────────────────────────── */
html[data-ui="prism"] .header,
html[data-ui="prism"] header.header {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  gap: 1.5rem;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
html[data-ui="prism"] .header--scrolled { padding-top: 0.625rem; padding-bottom: 0.625rem; box-shadow: 0 6px 24px rgba(28, 26, 33, 0.06); }
html[data-ui="prism"][data-theme="dark"] .header--scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
html[data-ui="prism"] .header__logo { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; }
html[data-ui="prism"] .header__logo img { height: 30px; width: 30px; object-fit: contain; }

html[data-ui="prism"] .header__nav { margin-left: auto; gap: 0.25rem; align-items: center; }
html[data-ui="prism"] .header__nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4375rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
html[data-ui="prism"] .header__nav a:hover { color: var(--ink); background: var(--surface-raised); box-shadow: none; }
html[data-ui="prism"] .header__nav a.active { color: var(--ink); font-weight: 600; background: var(--surface-raised); }
html[data-ui="prism"] .header__nav a::after,
html[data-ui="prism"] .header__nav a.active::after,
html[data-ui="prism"] .header__nav a:hover::after { display: none; }

html[data-ui="prism"] .header__tools { display: flex; align-items: center; gap: 0.875rem; }
.theme-toggle { display: none; } /* shown only inside the new UI */
html[data-ui="prism"] .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.8125rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 500 0.75rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.25s;
}
html[data-ui="prism"] .theme-toggle:hover { border-color: var(--ink); }
html[data-ui="prism"] .theme-toggle svg { width: 14px; height: 14px; flex: none; }
html[data-ui="prism"] .theme-toggle__sun { display: none; }
html[data-ui="prism"][data-theme="dark"] .theme-toggle__sun { display: block; }
html[data-ui="prism"][data-theme="dark"] .theme-toggle__moon { display: none; }
html[data-ui="prism"] .mobile-toggle span { background: var(--ink); }
html[data-ui="prism"] .mobile-overlay { background: var(--bg); }
html[data-ui="prism"] .mobile-link { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
html[data-ui="prism"] .mobile-link:hover { color: var(--px-purple); }

/* ── 4. FOOTER AND COOKIE BANNER ───────────────────────────────── */
html[data-ui="prism"] .footer { background: var(--bg); border-top: 1px solid var(--border); }
html[data-ui="prism"] .footer__logo { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.12em; }
html[data-ui="prism"] .footer__nav-block a:hover,
html[data-ui="prism"] .footer__contact a:hover { color: var(--px-purple); }
html[data-ui="prism"] .footer__social-link { border-color: var(--border-strong); color: var(--muted); opacity: 1; }
html[data-ui="prism"] .footer__social-link:hover { color: var(--ink); border-color: var(--ink); background: transparent; box-shadow: none; }
html[data-ui="prism"] .footer__bottom { border-color: var(--border); }
/* Cookie banner: a card with the sentence on top and two equal, thumb sized
   buttons under it. On a phone it floats above the chat button (bottom right,
   60px, 20px in) so the two never overlap; from 640px it sits bottom left. */
html[data-ui="prism"] .cookie-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: stretch;
  bottom: 6.25rem; left: 1rem; right: 1rem; max-width: none;
  padding: 1.125rem; border-radius: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--body); box-shadow: var(--px-card-shadow);
}
html[data-ui="prism"] .cookie-banner p { grid-column: 1 / -1; flex: none; font-size: 0.9375rem; line-height: 1.55; color: var(--body); }
html[data-ui="prism"] .cookie-banner p a { color: var(--px-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html[data-ui="prism"] .cookie-banner__accept,
html[data-ui="prism"] .cookie-banner__decline {
  min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 600; text-align: center;
}
html[data-ui="prism"] .cookie-banner__accept { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
html[data-ui="prism"] .cookie-banner__decline { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
html[data-ui="prism"] .cookie-banner__decline:hover { border-color: var(--ink); color: var(--ink); }
@media (min-width: 640px) {
  html[data-ui="prism"] .cookie-banner { bottom: 1.5rem; left: 1.5rem; right: auto; width: 31rem; }
}

/* ── 5. DARK MODE PATCHES (components not yet rebuilt) ─────────── */
html[data-ui="prism"][data-theme="dark"] [style*="background:#fff"],
html[data-ui="prism"][data-theme="dark"] [style*="background: #fff"],
html[data-ui="prism"][data-theme="dark"] [style*="background:#ffffff"],
html[data-ui="prism"][data-theme="dark"] [style*="background: #ffffff"],
html[data-ui="prism"][data-theme="dark"] [style*="background:white"],
html[data-ui="prism"][data-theme="dark"] [style*="background: white"] { background: var(--surface) !important; }
html[data-ui="prism"] .hero-badge,
html[data-ui="prism"] .hero-badge--link {
  background: var(--px-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html[data-ui="prism"] .hero-badge--link:hover { border-color: var(--ink); }
html[data-ui="prism"] .hero-badge--link:hover .hero-badge__label { color: var(--muted); }
html[data-ui="prism"] .hero-badge__number { color: var(--ink); }

/* ── 6. HOME PAGE COMPONENTS ───────────────────────────────────── */

/* The hero keeps its design: portrait, floating links, orange headline.
   Only its backdrop changes, from a fixed full page aurora to a glow that
   belongs to the hero and fades into the page. */
html[data-ui="prism"] #hero { position: relative; isolation: isolate; }
html[data-ui="prism"] #hero::before {
  content: '';
  position: absolute;
  inset: 0 0 -3rem 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 70% at 12% 8%, rgba(249, 115, 22, 0.17), transparent 70%),
    radial-gradient(45% 60% at 92% 62%, rgba(255, 213, 170, 0.55), transparent 72%);
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}
html[data-ui="prism"][data-theme="dark"] #hero::before {
  background:
    radial-gradient(55% 70% at 12% 8%, rgba(249, 115, 22, 0.2), transparent 70%),
    radial-gradient(45% 60% at 92% 62%, rgba(157, 121, 242, 0.16), transparent 72%);
}
/* The floating hero chip pokes 3px past the window at 1024px; clip it so the page never scrolls sideways. */
html[data-ui="prism"] #hero { overflow-x: clip; }
html[data-ui="prism"] #hero .section-label--orange { color: var(--px-orange); }
html[data-ui="prism"] #hero h1 span[style*="orange"] { color: var(--orange) !important; }
/* The headline is two lines at every width: "I build Customer Success /
   systems that scale." The text column is a size container, and the type size
   is a share of its width, so the longer line always fits its column instead
   of wrapping to a third line. Each line is nowrap for the same reason. The
   text splitter turns each line into an inline block, so display:block is
   forced to keep the two lines apart. */
html[data-ui="prism"] #hero .hero-grid > div:first-child { container-type: inline-size; }
html[data-ui="prism"] #hero-heading {
  font-size: clamp(1.25rem, 7.4vw, 3.2rem);   /* fallback without container units */
  font-size: clamp(1.25rem, 8.6cqw, 3.2rem);
}
html[data-ui="prism"] #hero-heading > span { display: block !important; white-space: nowrap; }

/* Shared primitives */
.px-section { padding: clamp(2.5rem, 5.5vw, 4.5rem) 0; }
.px-section--line { border-top: 1px solid var(--border); }
.px-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.px-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.625rem;
}
.px-h2 {
  font-size: clamp(1.625rem, 2.6vw, 2.0625rem);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 34rem;
  margin: 0;
}
.px-lede { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); max-width: 40rem; margin: 0.875rem 0 0; }
/* Section heads: eyebrow on its own row, then the heading on the left and its lede
   on the right, both starting on the same line, with the section's link or date
   under the lede. Stacks under 960px. */
.px-head > div:has(> .px-lede) { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.px-head > div:has(> .px-lede) > .px-eyebrow { grid-column: 1 / -1; grid-row: 1; }
.px-head > div:has(> .px-lede) > .px-h2 { grid-column: 1; grid-row: 2; max-width: none; }
.px-head > div:has(> .px-lede) > .px-lede { grid-column: 2; grid-row: 2; max-width: none; margin: 0; padding-top: 0.25rem; font-size: 1rem; }
.px-head > div:has(> .px-lede) > .px-head__act { grid-column: 2; grid-row: 3; margin-top: 0.875rem; }
/* Two paragraphs of intro prose sit side by side instead of stacking in a strip. */
.px-intro2 { display: grid; grid-template-columns: 1fr; gap: 0.875rem; margin-bottom: 2rem; }
/* A heading that is one line across the full width: the block is a size container and
   the type size is a share of its width, so the line never wraps on a wide screen. */
.px-head--line > div { flex: 1 1 100%; width: 100%; container-type: inline-size; }
@media (min-width: 900px) {
  .px-h2--line { max-width: none; white-space: nowrap; font-size: clamp(1.25rem, 2.55cqw, 2.0625rem); }
}
/* A one line head that also has a lede: heading, then the lede full width, then the link. */
.px-head--line > div:has(> .px-lede) { display: block; }
.px-head--line > div:has(> .px-lede) > .px-lede { max-width: none; margin: 0.875rem 0 0; padding-top: 0; font-size: 1rem; }
.px-head--line > div:has(> .px-lede) > .px-head__act { margin-top: 0.75rem; }
.px-intro2 .px-lede { max-width: none; margin: 0; font-size: 1rem; }
@media (max-width: 960px) {
  .px-head > div:has(> .px-lede) { display: block; }
  .px-head > div:has(> .px-lede) > .px-lede { margin-top: 0.875rem; padding-top: 0; }
  .px-head > div:has(> .px-lede) > .px-head__act { margin-top: 0.75rem; }
}
.px-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--px-purple);
  text-decoration: none;
}
.px-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cards lift on a fine pointer only */
.px-card { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease, border-color 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  .px-card:hover { transform: translateY(-4px); box-shadow: var(--px-card-shadow); }
}

/* Organization strip */
.px-trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.px-trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.px-trust__label { font-size: 0.75rem; color: var(--muted); max-width: 11rem; line-height: 1.55; margin: 0; }
.px-trust__org { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.px-trust__org img { width: 28px; height: 28px; object-fit: contain; background: #fff; border-radius: 7px; padding: 2px; }
.px-trust__note { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); max-width: 52rem; margin: 1.125rem 0 0; }

/* Key numbers */
.px-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.px-stat { padding: 1.75rem 1.5rem 1.75rem 0; }
.px-stat + .px-stat { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.px-stat__n { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 550; letter-spacing: -0.04em; color: var(--ink); line-height: 1.1; }
.px-stat__l { font-size: 0.8125rem; color: var(--muted); margin-top: 0.375rem; }

/* Explore my world */
.px-world { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1rem; }
.px-world__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
}
.px-world__card--radar { background: var(--px-blue-bg); border-color: transparent; }
.px-world__card--books { background: var(--px-purple-bg); border-color: transparent; }
.px-world__img { width: 100%; height: 11rem; object-fit: cover; }
.px-world__copy { display: flex; flex-direction: column; gap: 0.6875rem; padding: 1.5rem; flex: 1; }
.px-world__kicker { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 550; color: var(--muted); }
.px-world__title { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.03em; font-weight: 550; margin: 0; }
.px-world__text { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; }
.px-world__more { margin-top: auto; padding-top: 0.5rem; font-size: 0.8125rem; font-weight: 550; color: var(--px-purple); }
.px-world__card--radar .px-world__more { color: var(--px-blue); }
.px-radar-art { height: 9rem; position: relative; display: grid; place-items: center; overflow: hidden; }
.px-radar-art::before, .px-radar-art::after { content: ''; position: absolute; border: 1px solid color-mix(in srgb, var(--px-blue) 24%, transparent); border-radius: 50%; width: 8rem; height: 8rem; }
.px-radar-art::after { width: 12.5rem; height: 12.5rem; }
.px-radar-art i { width: 0.875rem; height: 0.875rem; background: var(--px-blue); border-radius: 50%; box-shadow: 0 0 0 1.5rem color-mix(in srgb, var(--px-blue) 8%, transparent); }
.px-mini-books { height: 11rem; display: flex; justify-content: center; align-items: flex-end; gap: 0.5rem; padding-top: 1rem; }
.px-mini-books img { height: 8.5rem; width: auto; max-width: 43%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.2)); transform: rotate(-7deg); }
.px-mini-books img + img { height: 7.75rem; transform: rotate(8deg); }

/* This week on the radar */
.px-radar { border-radius: 24px; background: var(--surface); border: 1px solid var(--border); padding: clamp(1.25rem, 3vw, 2rem); }
.px-radar__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
@supports (grid-template-rows: subgrid) { .px-radar__list { grid-auto-rows: auto; } }
.px-radar__item { border-top: 1px solid var(--border-strong); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
/* Columns line up row by row: number, headline, take and link each share one row
   track across all three items (subgrid), so a short headline or take in one
   column never pulls its link out of line with the others. */
@supports (grid-template-rows: subgrid) {
  .px-radar__item { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.5rem; align-content: start; }
  .px-radar__item .px-link { align-self: end; }
}
.px-radar__no { font-size: 0.75rem; font-weight: 600; color: var(--px-blue); }
.px-radar__item h3 { font-size: 1rem; line-height: 1.4; font-weight: 600; margin: 0; letter-spacing: -0.015em; }
.px-radar__item p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; }
.px-radar__date { font-size: 0.75rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4375rem; }
.px-radar__date::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--px-blue); }

/* Execution */
.px-exec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9375rem; }
.px-exec__card { border-radius: 23px; padding: 1.5625rem; display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; text-decoration: none; }
.px-exec__card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.px-exec__card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.px-exec__card--c { background: var(--px-orange-bg); color: var(--px-orange); }
.px-exec__co { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 550; color: var(--ink); }
.px-exec__co img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; background: #fff; padding: 2px; }
.px-exec__title { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.025em; font-weight: 550; color: var(--ink); margin: 0; min-height: 4.5em; }
.px-exec__n { font-size: clamp(2rem, 3.2vw, 2.625rem); letter-spacing: -0.045em; line-height: 1.1; font-weight: 550; padding-top: 0.75rem; }
.px-exec__sub { font-size: 0.75rem; line-height: 1.6; color: var(--muted); margin: 0; }
.px-exec__more { margin-top: auto; padding-top: 0.5rem; font-size: 0.8125rem; font-weight: 550; }
.px-also { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9375rem; margin-top: 0.9375rem; }
.px-also__card { border: 1px solid var(--border); border-radius: 20px; padding: 1.25rem 1.375rem; background: var(--surface); display: flex; flex-direction: column; gap: 0.375rem; }
.px-also__card h3 { font-size: 0.9375rem; margin: 0; font-weight: 600; }
.px-also__card p { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); margin: 0; }
.px-also__tags { font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.375rem; }
@media (min-width: 1180px) { .px-also { grid-template-columns: repeat(5, 1fr); } }
.px-tools { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; margin-top: 1.5rem; padding: 1.75rem 2rem; border-radius: 23px; background: var(--px-purple-bg); }
.px-tools h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 550; margin: 0.375rem 0 0.5rem; letter-spacing: -0.02em; }
.px-tools p { font-size: 0.8125rem; color: var(--muted); margin: 0; line-height: 1.65; }
.px-tools .px-eyebrow { color: var(--px-purple); margin: 0; }

/* Expertise: intro across the top, then one tinted card per specialty. Rows line
   up (equal height cards, title block reserves two lines) like the execution cards. */
.px-craft { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.px-craft__intro { display: grid; gap: 1rem; }
.px-craft__lede { max-width: none; font-size: 1rem; line-height: 1.75; color: var(--muted); margin: 0; }
.px-craft__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9375rem; }
.px-craft__card { border-radius: 23px; padding: 1.5625rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.px-craft__card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.px-craft__card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.px-craft__card--c { background: var(--px-orange-bg); color: var(--px-orange); }
.px-craft__card--d { background: var(--px-blue-bg); color: var(--px-blue); }
.px-craft__no { font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -0.04em; line-height: 1; font-weight: 550; }
.px-craft__card h3 { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.025em; font-weight: 550; color: var(--ink); margin: 0.5rem 0 0; min-height: 2.7em; }
.px-craft__card p { font-size: 0.8125rem; line-height: 1.75; color: var(--muted); margin: 0; }
.px-keywords { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(1rem, 2.5vw, 2rem); }
.px-keywords li { font-size: 0.8125rem; color: var(--muted); padding: 0.75rem 0; border-top: 1px solid var(--border); }

/* Journey */
.px-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.px-journey__card { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.px-journey__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.px-journey__copy { padding: 1.375rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.px-journey__copy h3 { font-size: 1.1875rem; line-height: 1.3; margin: 0; font-weight: 550; letter-spacing: -0.025em; }
.px-journey__copy p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; }
.px-journey__copy .px-link { margin-top: auto; padding-top: 0.5rem; }

/* Impact numbers */
.px-impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; }
.px-impact__card { border-radius: 21px; padding: 1.375rem 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.375rem; }
.px-impact__card:nth-child(4n+1) { background: var(--px-purple-bg); color: var(--px-purple); }
.px-impact__card:nth-child(4n+2) { background: var(--px-rose-bg); color: var(--px-rose); }
.px-impact__card:nth-child(4n+3) { background: var(--px-blue-bg); color: var(--px-blue); }
.px-impact__card:nth-child(4n+4) { background: var(--px-orange-bg); color: var(--px-orange); }
/* A number that does not fill the last row spans it, so no row is left with a gap. */
@media (min-width: 1101px) { .px-impact__card:last-child:nth-child(4n+1) { grid-column: 1 / -1; } }
@media (min-width: 641px) and (max-width: 1100px) { .px-impact__card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.px-impact__v { font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1.15; }
.px-impact__l { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-top: 0.25rem; }
.px-impact__c { font-size: 0.75rem; line-height: 1.6; color: var(--muted); }

/* Case study */
/* Featured case study: copy and key numbers across the top, then the story as a
   climbing row of stages underneath, so the whole width is used. */
.px-case { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.px-case__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.px-case h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 550; margin: 0.625rem 0 0.875rem; }
.px-case__copy p { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin: 0; }
.px-case__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.px-case__metric { border-top: 1px solid var(--border-strong); padding-top: 0.625rem; }
.px-case__metric span { display: block; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.px-case__metric strong { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; margin-top: 0.25rem; white-space: nowrap; }

/* Case study ladder: six columns that climb. Cards sit on a common baseline and each
   stage is a little taller than the last, so the row reads as growth. The closing
   tile is fixed dark in both themes so its contrast never depends on the tokens. */
.px-ladder__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; align-items: end; }
.px-ladder__steps li {
  display: flex; flex-direction: column; gap: 0.5rem; min-width: 0;
  min-height: calc(8.5rem + var(--i) * 1.5rem);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 18px;
  padding: 1rem 1.125rem;
}
.px-ladder__steps i { font-style: normal; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--px-orange, var(--orange)); font-weight: 600; }
.px-ladder__steps b { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }
.px-ladder__steps span { font-size: 0.75rem; line-height: 1.5; color: var(--muted); }
.px-ladder__steps li.px-ladder__result { background: #14101c; border-color: #14101c; }
.px-ladder__steps li.px-ladder__result i { color: #ffb27a; }
.px-ladder__steps li.px-ladder__result b { color: #ffb27a; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.px-ladder__steps li.px-ladder__result span { color: #ece8f4; }
@media (max-width: 1100px) {
  .px-ladder__steps { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .px-ladder__steps li { min-height: 0; }
}
@media (max-width: 640px) {
  .px-ladder__steps { grid-template-columns: 1fr; }
}

/* Published work */
.px-books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.125rem; }
.px-book { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.px-book__fig { margin: 0 0 0.9375rem; border-radius: 17px; padding: 1.375rem 1.125rem; display: flex; align-items: center; justify-content: center; height: 14rem; }
.px-book:nth-child(4n+1) .px-book__fig { background: var(--px-purple-bg); }
.px-book:nth-child(4n+2) .px-book__fig { background: var(--px-rose-bg); }
.px-book:nth-child(4n+3) .px-book__fig { background: var(--px-blue-bg); }
.px-book:nth-child(4n+4) .px-book__fig { background: var(--px-orange-bg); }
.px-book__fig img { max-width: 100%; height: 11.25rem; width: auto; object-fit: contain; filter: drop-shadow(4px 8px 5px rgba(0, 0, 0, 0.2)); }
.px-book h3 { font-size: 0.9375rem; line-height: 1.45; font-weight: 600; margin: 0; letter-spacing: -0.015em; }
.px-book p { font-size: 0.75rem; line-height: 1.7; color: var(--muted); margin: 0.5rem 0 0; }
.px-book .px-link { margin-top: auto; padding-top: 0.625rem; }
.px-sub { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 1.125rem; }
.px-block { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.75rem, 3.5vw, 2.5rem); border-top: 1px solid var(--border); }
.px-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9375rem; }
.px-article { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.375rem 1.5rem; border: 1px solid var(--border); border-radius: 21px; background: var(--surface); text-decoration: none; color: var(--ink); }
.px-article__src { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 550; }
.px-article:last-child:nth-child(odd) { grid-column: 1 / -1; }
.px-article h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 550; margin: 0; letter-spacing: -0.02em; }
.px-article .px-link { margin-top: auto; padding-top: 0.25rem; }
.px-morelist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 0.25rem 2rem; }
.px-morelist li a { display: block; font-size: 0.875rem; font-weight: 550; color: var(--ink); text-decoration: none; padding: 0.625rem 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.px-morelist li a:hover { color: var(--px-purple); }
.px-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8125rem; }
.px-guide { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border: 1px solid var(--border); border-radius: 17px; padding: 1.125rem 1.25rem; font-size: 0.875rem; font-weight: 550; color: var(--ink); text-decoration: none; background: var(--bg); }
.px-guide span { color: var(--px-purple); }

/* Testimonials */

/* FAQ keeps its id and markup, so the page level two column rules still apply */
html[data-ui="prism"] #faq details { border-bottom: 1px solid var(--border); }
html[data-ui="prism"] #faq summary { color: var(--ink); font-weight: 550; }
html[data-ui="prism"] #faq summary span { color: var(--px-purple); }
html[data-ui="prism"] #faq details p { color: var(--muted); }

/* Closing */
.px-connect { border-radius: 26px; background: var(--px-purple-bg); padding: clamp(1.75rem, 4.5vw, 3.25rem); display: grid; grid-template-columns: 1.5fr auto; gap: 2rem; align-items: center; }
.px-connect h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 550; margin: 0 0 0.75rem; max-width: 30rem; }
.px-connect p { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin: 0; max-width: 34rem; }
.px-connect__tags { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; font-size: 0.75rem; color: var(--muted); }
.px-connect__tags li + li::before { content: '/'; margin-right: 1rem; opacity: 0.5; }
.px-connect__actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }
.px-connect__actions .btn { justify-content: center; }
.px-connect .btn--secondary { background: transparent; }

/* ── 7. RESPONSIVE, MOTION, TOUCH ──────────────────────────────── */
@media (max-width: 1100px) {
  .px-impact { grid-template-columns: repeat(2, 1fr); }
  .px-stats { grid-template-columns: repeat(2, 1fr); }
  .px-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .px-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 960px) {
  .px-craft__intro { grid-template-columns: 1fr; align-items: start; }
  .px-craft__cards { grid-template-columns: 1fr 1fr; }
  .px-case { grid-template-columns: 1fr; }
  .px-case__top { grid-template-columns: 1fr; align-items: start; }
  .px-radar__list { grid-template-columns: 1fr; }
  .px-books { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .px-guides { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .px-world { grid-template-columns: 1fr 1fr; }
  .px-world__card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; }
  .px-world__card:first-child .px-world__img { height: 100%; min-height: 14rem; }
  .px-exec { grid-template-columns: 1fr; }
  .px-exec__card { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; align-items: start; }
  .px-exec__co, .px-exec__title, .px-exec__more { grid-column: 1; }
  .px-exec__title { min-height: 0; }
  .px-exec__n { grid-column: 2; grid-row: 1; align-self: center; padding: 0; }
  .px-exec__sub { grid-column: 2; grid-row: 2; }
  .px-journey { grid-template-columns: 1fr; }
  .px-tools, .px-connect { grid-template-columns: 1fr; }
  .px-connect__actions { flex-direction: row; flex-wrap: wrap; }
  html[data-ui="prism"] .header__tools { margin-left: auto; }
}
@media (max-width: 720px) {
  .px-world { grid-template-columns: 1fr; }
  .px-world__card:first-child { display: flex; }
  .px-world__card:first-child .px-world__img { height: 13.75rem; min-height: 0; }
  .px-articles { grid-template-columns: 1fr; }
  .px-case__metrics { grid-template-columns: 1fr 1fr; }
  .px-head { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .px-keywords { grid-template-columns: 1fr; }
  .px-quotes { grid-template-columns: 1fr; }
  .px-book__fig { height: 11.875rem; padding: 0.9375rem 0.625rem; }
  .px-book__fig img { height: 9.5rem; }
}
@media (max-width: 520px) {
  .px-trust__row { justify-content: flex-start; }
  .px-stats { grid-template-columns: 1fr 1fr; }
  .px-impact { grid-template-columns: 1fr; }
  .px-guides { grid-template-columns: 1fr; }
  .px-exec__card { grid-template-columns: 1fr; }
  .px-exec__n, .px-exec__sub { grid-column: auto; grid-row: auto; }
  html[data-ui="prism"] .theme-toggle__label { display: none; }
  html[data-ui="prism"] .theme-toggle { padding: 0.5625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .px-card, html[data-ui="prism"] .btn, html[data-ui="prism"] body { transition: none; }
  .px-card:hover, html[data-ui="prism"] .btn:hover { transform: none; }
  .px-acc summary::before { transition: none; }
}
@media (pointer: coarse) {
  html[data-ui="prism"] .theme-toggle, .px-link, .px-guide, .px-morelist li a { min-height: 44px; }
  html[data-ui="prism"] .px-link { align-items: center; }
}

/* After the tablet rules above, so it wins: one expertise card per row on a phone. */
@media (max-width: 640px) {
  .px-craft__cards { grid-template-columns: 1fr; }
  .px-craft__card h3 { min-height: 0; }
}

/* Testimonials: all of them, two rows, scrolling sideways. About two and a half
   columns show at once so the next one is visibly there. Snap keeps cards whole. */
.px-scroller {
  display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 0.9375rem) / 2.6); gap: 0.9375rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.875rem;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; overscroll-behavior-x: contain;
}
.px-scroller:focus-visible { outline-offset: 2px; }
.px-quotes__card { scroll-snap-align: start; margin: 0; border: 1px solid var(--border); border-radius: 21px; padding: 1.5rem 1.625rem; background: var(--surface); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.px-quotes__card blockquote { margin: 0; font-size: 0.9375rem; line-height: 1.7; letter-spacing: -0.01em; color: var(--ink); }
.px-quotes__card figcaption { margin-top: auto; font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.px-quotes__card figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.px-scroller__nav { display: flex; gap: 0.5rem; }
.px-scroller__btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 1rem; cursor: pointer; line-height: 1; }
.px-scroller__btn:hover { background: var(--px-purple-bg); }
@media (max-width: 720px) { .px-scroller { grid-auto-columns: 84%; } }
@media (prefers-reduced-motion: reduce) { .px-scroller { scroll-behavior: auto; } }

/* After the tablet rules above, so they win. */
@media (max-width: 960px) {
  .px-keywords { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .px-keywords { grid-template-columns: 1fr; } }

/* ================================================================
   8. Resources & Insights (rs-*)
   ================================================================ */
.rs-visually { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-hero { padding: clamp(6rem, 11vw, 8.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); position: relative; }
.rs-h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; margin: 0.625rem 0 0; max-width: none; text-wrap: balance; }
.rs-sub { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); max-width: none; margin: 1rem 0 0; }
.rs-facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.9375rem; color: var(--muted); }
.rs-facts b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin-right: 0.375rem; }
.rs-latest { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem 1.25rem; align-items: baseline; margin-top: 1.5rem; padding: 0.875rem 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-decoration: none; color: var(--ink); }
.rs-latest:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.rs-latest__k { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--px-orange); font-weight: 600; }
.rs-latest__t { font-weight: 550; letter-spacing: -0.015em; }
.rs-latest__m { font-size: 0.8125rem; color: var(--px-purple); font-weight: 550; white-space: nowrap; }

.rs-head { margin-bottom: 1.5rem; }
.rs-head .px-lede { max-width: none; }
.rs-paths, .rs-lib, .rs-bands, .rs-cta { padding: clamp(2rem, 4.5vw, 3.5rem) 0; }
.rs-paths { border-top: 1px solid var(--border); }
.rs-pathgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; }
.rs-path { border-radius: 23px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.rs-path--a { background: var(--px-purple-bg); color: var(--px-purple); }
.rs-path--b { background: var(--px-rose-bg); color: var(--px-rose); }
.rs-path--c { background: var(--px-blue-bg); color: var(--px-blue); }
.rs-path--d { background: var(--px-orange-bg); color: var(--px-orange); }
.rs-path h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.025em; font-weight: 550; color: var(--ink); margin: 0; min-height: 3.1em; }
.rs-path ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.rs-path li { counter-increment: s; border-top: 1px solid var(--border-strong); padding: 0.75rem 0; display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; align-items: start; }
.rs-path li::before { content: counter(s); font-weight: 600; font-size: 0.8125rem; padding-top: 0.0625rem; }
.rs-path li a { color: var(--ink); text-decoration: none; font-size: 0.875rem; line-height: 1.5; font-weight: 500; }
.rs-path li a:hover { text-decoration: underline; text-underline-offset: 3px; }

.rs-lib { border-top: 1px solid var(--border); }
.rs-bar { position: sticky; top: 4.25rem; z-index: 5; background: var(--bg); padding: 0.75rem 0 0.5rem; display: grid; gap: 0.75rem; border-bottom: 1px solid var(--border); }
.rs-search { display: flex; align-items: center; gap: 0.75rem; padding: 0 1rem; height: 3.25rem; border: 1.5px solid var(--border-strong); border-radius: 14px; background: var(--surface); color: var(--muted); }
.rs-search:focus-within { border-color: var(--px-purple); box-shadow: 0 0 0 4px var(--px-purple-bg); }
.rs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); height: 100%; }
.rs-search input::placeholder { color: var(--muted); }
.rs-search kbd { font: inherit; font-size: 0.75rem; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 6px; padding: 0.0625rem 0.4375rem; }
.rs-tabs { display: flex; gap: 0.25rem 1.5rem; overflow-x: auto; scrollbar-width: none; }
.rs-tabs button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.5rem 0; font: inherit; font-size: 0.9375rem; font-weight: 550; color: var(--muted); cursor: pointer; white-space: nowrap; }
.rs-tabs button i { font-style: normal; font-size: 0.75rem; font-weight: 500; margin-left: 0.25rem; opacity: 0.75; }
.rs-tabs button:hover { color: var(--ink); }
.rs-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--px-purple); }
.rs-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.125rem; font-size: 0.8125rem; }
.rs-topics > span { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.6875rem; }
.rs-topics button { appearance: none; background: none; border: 0; padding: 0.1875rem 0; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 1.5px solid transparent; }
.rs-topics button:hover { color: var(--ink); }
.rs-topics button[aria-pressed="true"] { color: var(--px-purple); border-bottom-color: var(--px-purple); font-weight: 550; }
.rs-count { margin: 1rem 0 0.875rem; font-size: 0.8125rem; color: var(--muted); }
.rs-count b { color: var(--ink); }

.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9375rem; }
.rs-card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.375rem 1.5rem; border: 1px solid var(--border); border-radius: 21px; background: var(--surface); text-decoration: none; color: var(--ink); min-width: 0; transition: transform 0.2s ease, border-color 0.2s ease; }
.rs-card[hidden] { display: none; }
.rs-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.rs-card:focus-visible { outline: 3px solid var(--px-purple); outline-offset: 3px; }
.rs-card__k { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.rs-card--guides .rs-card__k { color: var(--px-purple); }
.rs-card--articles .rs-card__k { color: var(--px-blue); }
.rs-card--books .rs-card__k { color: var(--px-rose); }
.rs-card--tools .rs-card__k { color: var(--px-orange); }
.rs-card h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.02em; font-weight: 550; margin: 0; }
.rs-card p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rs-card__m { margin-top: auto; padding-top: 0.625rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: var(--muted); }
.rs-card__m span:last-child { color: var(--px-purple); font-weight: 600; }
.rs-card__cover { width: 3.5rem; height: auto; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,0.18); margin-bottom: 0.25rem; align-self: flex-start; }
.rs-card--books { background: var(--px-rose-bg); border-color: transparent; }
.rs-card--tools { background: var(--px-orange-bg); border-color: transparent; }
.rs-card--guides { background: var(--surface); }
.rs-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--border-strong); border-radius: 21px; }
.rs-empty[hidden], .rs-grid[hidden] { display: none; }
.rs-empty h3 { margin: 0 0 0.5rem; font-weight: 550; }
.rs-empty p { margin: 0.375rem auto 0; max-width: 32rem; color: var(--muted); font-size: 0.9375rem; }
.rs-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--px-purple); font-weight: 550; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.rs-bands { border-top: 1px solid var(--border); }
.rs-bands__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.9375rem; }
.rs-band { border-radius: 23px; padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.875rem; text-decoration: none; }
.rs-band h2 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 550; margin: 0; }
.rs-band p { font-size: 0.9375rem; line-height: 1.7; margin: 0; max-width: none; }
.rs-band--tools { background: #14101c; color: #ece8f4; }
.rs-band--tools .px-eyebrow { color: #ffb27a; margin: 0; }
.rs-band--tools h2 { color: #fff; }
.rs-band--tools ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; font-size: 0.875rem; }
.rs-band--tools li { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 0.5rem; }
.rs-band__go { margin-top: auto; font-weight: 600; color: #ffb27a; }
.rs-band--tools:hover .rs-band__go { text-decoration: underline; text-underline-offset: 3px; }
.rs-band--radar { background: var(--px-blue-bg); }
.rs-band--radar .px-eyebrow { color: var(--px-blue); margin: 0; }
.rs-band--radar ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); }
.rs-band--radar .px-link { margin-top: auto; }
.rs-cta { text-align: center; border-top: 1px solid var(--border); }
.rs-cta .container { max-width: 44rem; }
.rs-cta .px-lede { margin: 0.875rem auto 1.75rem; }

@media (max-width: 1100px) { .rs-pathgrid { grid-template-columns: 1fr 1fr; } .rs-grid { grid-template-columns: 1fr 1fr; } .rs-bands__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rs-pathgrid, .rs-grid { grid-template-columns: 1fr; }
  .rs-path h3 { min-height: 0; }
  .rs-latest { grid-template-columns: 1fr; }
  .rs-bar { top: 3.75rem; }
  .rs-band--tools ul { grid-template-columns: 1fr; }
  .rs-search kbd { display: none; }
  /* One scrolling line instead of two, so the sticky bar stays short on a phone. */
  .rs-topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .rs-topics button, .rs-topics > span { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .rs-card, .rs-latest { transition: none; } .rs-card:hover, .rs-latest:hover { transform: none; } }

/* ================================================================
   9. Free Playbooks hub (pb-*)
   ================================================================ */
.pb-hero { padding: clamp(6rem, 11vw, 8.5rem) 0 clamp(1.25rem, 2.5vw, 2rem); }
.pb-h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; margin: 0.625rem 0 0; max-width: none; text-wrap: balance; }
.pb-sub { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); max-width: none; margin: 1rem 0 0; }
.pb-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9375rem; }
.pb-steps li { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1.125rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-weight: 550; letter-spacing: -0.01em; }
.pb-steps b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--px-purple-bg); color: var(--px-purple); font-size: 0.875rem; flex: none; }

.pb-choose { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.pb-choose__head { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 2rem; align-items: baseline; margin-bottom: 1.125rem; }
.pb-choose__head .px-lede { margin: 0; max-width: none; }
.pb-opts { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.pb-opts button { appearance: none; font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 14px; padding: 0.75rem 1.125rem; cursor: pointer; text-align: left; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.pb-opts button:hover { border-color: var(--px-purple); transform: translateY(-2px); }
.pb-opts button[aria-checked="true"] { border-color: var(--px-purple); background: var(--px-purple-bg); color: var(--px-purple); font-weight: 600; }
.pb-opts button:focus-visible { outline: 3px solid var(--px-purple); outline-offset: 3px; }
.pb-answer { margin: 1rem 0 0; padding: 0.875rem 1.125rem; border-radius: 14px; background: var(--px-purple-bg); color: var(--ink); font-size: 0.9375rem; max-width: none; }
.pb-answer[hidden] { display: none; }
.pb-answer a { color: var(--px-purple); font-weight: 600; margin-left: 0.25rem; }

.pb-offers { padding: 0 0 clamp(2rem, 4vw, 3.5rem); }
.pb-bundle { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; background: #14101c; color: #ece8f4; text-decoration: none; position: relative; margin-bottom: 0.9375rem; transition: transform 0.2s ease, opacity 0.2s ease; }
.pb-bundle:hover { transform: translateY(-4px); }
.pb-bundle__tag { grid-column: 1 / -1; font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: #ffb27a; font-weight: 600; }
.pb-bundle__main { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.pb-bundle__name { font-size: clamp(1.375rem, 2.4vw, 2rem); letter-spacing: -0.035em; font-weight: 600; color: #fff; line-height: 1.15; }
.pb-bundle__out { font-size: 1rem; color: #ffb27a; font-weight: 550; }
.pb-bundle__detail { font-size: 0.875rem; line-height: 1.7; max-width: 52rem; }
.pb-bundle__incl { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.5rem; font-size: 0.8125rem; }
.pb-bundle__incl span { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 0.4375rem; }
.pb-bundle__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.pb-spec { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pb-bundle .pb-spec { color: #bdb6cc; }
.pb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; }
.pb-card { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.5625rem; border-radius: 23px; text-decoration: none; min-width: 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.pb-card:hover { transform: translateY(-4px); }
.pb-card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.pb-card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.pb-card--c { background: var(--px-blue-bg); color: var(--px-blue); }
.pb-card--d { background: var(--px-orange-bg); color: var(--px-orange); }
.pb-card__no { font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -0.04em; line-height: 1; font-weight: 550; }
.pb-card h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.025em; font-weight: 550; color: var(--ink); margin: 0.375rem 0 0; }
.pb-card__out { font-size: 0.875rem; font-weight: 600; line-height: 1.45; }
.pb-card p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: none; }
.pb-card__foot { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.pb-card__go { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.pb-card:focus-visible, .pb-bundle:focus-visible { outline: 3px solid var(--px-purple); outline-offset: 4px; }
.is-picked { box-shadow: 0 0 0 3px var(--px-purple), var(--px-card-shadow); }
.is-dim { opacity: 0.45; }
.is-dim:hover, .is-dim:focus-visible { opacity: 1; }

.pb-why { padding: clamp(2rem, 4.5vw, 3.5rem) 0; border-top: 1px solid var(--border); }
.pb-why__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.pb-why__text { display: grid; gap: 1rem; justify-items: start; }
.pb-why__text p { font-size: 1rem; line-height: 1.75; color: var(--muted); margin: 0; max-width: none; }
.pb-faq { border-bottom: 1px solid var(--border); padding: 1.125rem 0; }
.pb-faq:first-child { border-top: 1px solid var(--border); }
.pb-faq summary { font-size: 1rem; font-weight: 550; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: '+'; color: var(--px-purple); font-size: 1.375rem; line-height: 1; flex: none; }
.pb-faq[open] summary::after { content: '\2212'; }
.pb-faq p { font-size: 0.9375rem; line-height: 1.8; color: var(--muted); margin: 0.875rem 0 0; max-width: 46rem; }

@media (max-width: 1100px) { .pb-grid { grid-template-columns: 1fr 1fr; } .pb-bundle { grid-template-columns: 1fr; } .pb-bundle__cta { align-items: flex-start; } }
@media (max-width: 720px) {
  .pb-steps { grid-template-columns: 1fr; }
  .pb-choose__head, .pb-why__grid { grid-template-columns: 1fr; }
  .pb-grid { grid-template-columns: 1fr; }
  .pb-opts button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pb-card, .pb-bundle, .pb-opts button { transition: none; } .pb-card:hover, .pb-bundle:hover, .pb-opts button:hover { transform: none; } }

/* ================================================================
   10. About hero (ab-*)
   ================================================================ */
.ab-hero { padding: clamp(6rem, 11vw, 8.5rem) 0 clamp(1.25rem, 2.5vw, 2rem); }
.ab-hero__grid { display: grid; gap: 2rem; align-items: center; }
.ab-h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; margin: 0.625rem 0 0; max-width: none; text-wrap: balance; }
.ab-sub { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 550; letter-spacing: -0.02em; color: var(--px-purple); margin: 0.75rem 0 0; max-width: none; }
.ab-lead { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); margin: 1.5rem 0 0; max-width: 40rem; }
.ab-claim { font-size: 1.1875rem; line-height: 1.55; font-weight: 550; letter-spacing: -0.015em; color: var(--ink); margin: 1.25rem 0 0; padding-left: 1.125rem; border-left: 3px solid var(--px-orange); max-width: 40rem; }
.ab-hero__visual { display: none; }
@media (min-width: 900px) {
  .ab-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
  .ab-hero__visual { display: block; justify-self: center; width: min(100%, 24rem); }
  .ab-hero__visual img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 0.5rem var(--bg), 0 0 0 0.6rem rgba(249, 115, 22, 0.35), 0 2rem 4rem rgba(17, 17, 17, 0.12); background: var(--px-orange-bg); }
}
.ab-caps { padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(2rem, 4vw, 3rem); }
.ab-caps__grid { list-style: none; margin: 0.875rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.ab-cap { border-radius: 18px; padding: 1rem 1.125rem 1.125rem; display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.ab-cap--a { background: var(--px-purple-bg); color: var(--px-purple); }
.ab-cap--b { background: var(--px-rose-bg); color: var(--px-rose); }
.ab-cap--c { background: var(--px-blue-bg); color: var(--px-blue); }
.ab-cap--d { background: var(--px-orange-bg); color: var(--px-orange); }
.ab-cap__no { font-size: 1.25rem; font-weight: 550; letter-spacing: -0.04em; line-height: 1; }
.ab-cap__t { font-size: 0.9375rem; line-height: 1.4; font-weight: 550; letter-spacing: -0.015em; color: var(--ink); }
@media (min-width: 720px) { .ab-caps__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .ab-caps__grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 480px) { .ab-caps__grid { grid-template-columns: 1fr; } }

/* ----- About: actions and the career record ----- */
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.ab-actions__note { font-size: 0.75rem; color: var(--muted); }
.ab-record { padding: clamp(2rem, 4.5vw, 3.5rem) 0; border-top: 1px solid var(--border); }
.ab-glance { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; }
.ab-glance li { border-top: 1px solid var(--border-strong); padding-top: 0.875rem; display: flex; flex-direction: column; gap: 0.25rem; }
.ab-glance b { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 550; letter-spacing: -0.045em; line-height: 1.05; color: var(--ink); }
.ab-glance span { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.ab-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9375rem; }
.ab-role { display: grid; grid-template-columns: minmax(13rem, 17rem) 1fr; gap: 1.25rem clamp(1.5rem, 4vw, 3rem); border-radius: 23px; padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem); }
.ab-role--a { background: var(--px-purple-bg); color: var(--px-purple); }
.ab-role--b { background: var(--px-rose-bg); color: var(--px-rose); }
.ab-role--c { background: var(--px-blue-bg); color: var(--px-blue); }
.ab-role--d { background: var(--px-orange-bg); color: var(--px-orange); }
.ab-role__head { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.ab-role__when { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.ab-role h3 { font-size: 1.375rem; letter-spacing: -0.03em; font-weight: 550; line-height: 1.2; color: var(--ink); margin: 0; }
.ab-role__title { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.ab-role__body p { font-size: 0.9375rem; line-height: 1.7; color: var(--ink); margin: 0; max-width: none; }
.ab-role__body ul { margin: 0.875rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.ab-role__body li { position: relative; padding-left: 1.125rem; font-size: 0.8125rem; line-height: 1.65; color: var(--muted); }
.ab-role__body li::before { content: ''; position: absolute; left: 0; top: 0.5625rem; width: 0.4375rem; height: 0.4375rem; border-radius: 2px; background: currentColor; opacity: 0.85; }
.ab-skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; margin-top: 1.5rem; }
.ab-skill { border-radius: 21px; padding: 1.375rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ab-skill--a { background: var(--px-purple-bg); color: var(--px-purple); }
.ab-skill--b { background: var(--px-rose-bg); color: var(--px-rose); }
.ab-skill--c { background: var(--px-blue-bg); color: var(--px-blue); }
.ab-skill--d { background: var(--px-orange-bg); color: var(--px-orange); }
.ab-skill h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 550; color: var(--ink); margin: 0; }
.ab-skill p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: none; }
.ab-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.5rem, 4vw, 3rem); margin: 1.5rem 0 0; }
.ab-tools div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--border); }
.ab-tools dt { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 0.125rem; }
.ab-tools dd { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink); }
@media (max-width: 1100px) { .ab-skills { grid-template-columns: 1fr 1fr; } .ab-glance { grid-template-columns: 1fr 1fr; } .ab-tools { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .ab-role { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ab-skills { grid-template-columns: 1fr; } .ab-tools div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* No wobble or ink distortion on buttons or docks, whatever a script tries to set. */
html[data-ui="prism"] .btn, html[data-ui="prism"] .dock-item { filter: none !important; }

/* ================================================================
   11. Generic page kit (pg-*), used by the inner pages
   ================================================================ */
.pg-hero { padding: clamp(6rem, 11vw, 8.5rem) 0 clamp(1.25rem, 2.5vw, 2rem); }
.pg-h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; margin: 0.625rem 0 0; max-width: none; text-wrap: balance; }
.pg-sub { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 550; letter-spacing: -0.02em; color: var(--px-purple); margin: 0.75rem 0 0; max-width: none; }
.pg-lede { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); max-width: none; margin: 1.25rem 0 0; }
.pg-section { padding: clamp(1.5rem, 3.5vw, 2.75rem) 0; }
.pg-section .px-eyebrow { margin-bottom: 1rem; }
.pg-grid { display: grid; gap: 0.9375rem; }
.pg-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pg-card { border-radius: 23px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.pg-card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.pg-card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.pg-card--c { background: var(--px-blue-bg); color: var(--px-blue); }
.pg-card--d { background: var(--px-orange-bg); color: var(--px-orange); }
.pg-card__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: rgba(255,255,255,0.65); }
html[data-theme="dark"] .pg-card__icon { background: rgba(255,255,255,0.08); }
.pg-card h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.02em; font-weight: 550; color: var(--ink); margin: 0.25rem 0 0; }
.pg-card p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: none; }
.pg-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; }
.pg-stats li { border-top: 1px solid var(--border-strong); padding-top: 0.875rem; display: flex; flex-direction: column; gap: 0.375rem; }
.pg-stats b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.pg-stats span { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.pg-dark { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); background: #14101c; color: #ece8f4; border-radius: 24px; padding: clamp(1.5rem, 3.5vw, 2.5rem); align-items: center; }
.pg-dark .px-eyebrow { color: #ffb27a; }
.pg-dark h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 550; color: #fff; margin: 0.625rem 0 0.875rem; max-width: none; }
.pg-dark p { font-size: 0.9375rem; line-height: 1.75; margin: 0; max-width: none; color: #ece8f4; }
.pg-dark__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pg-dark__grid li { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 0.625rem; display: flex; flex-direction: column; gap: 0.25rem; }
.pg-dark__grid b { font-size: 0.9375rem; font-weight: 550; color: #fff; }
.pg-dark__grid span { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: #ffb27a; }
.pg-cta { text-align: center; padding: clamp(2rem, 4.5vw, 3.5rem) 0; border-top: 1px solid var(--border); }
.pg-cta p { font-size: 1.125rem; line-height: 1.7; color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; }
.pg-cta__btns { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

.ex-orgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9375rem; }
.ex-org { border: 1px solid var(--border); background: var(--surface); border-radius: 23px; padding: clamp(1.25rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; }
.ex-org__head { display: flex; gap: 1rem; align-items: center; }
.ex-org__mark { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 14px; background: #fff; border: 1px solid var(--border); color: var(--px-orange); overflow: hidden; }
.ex-org__mark img { width: 80%; height: 80%; object-fit: contain; }
.ex-org__head h2 { font-size: 1.375rem; letter-spacing: -0.03em; font-weight: 550; margin: 0; line-height: 1.2; }
.ex-org__head p { font-size: 0.875rem; font-weight: 550; color: var(--px-orange); margin: 0.25rem 0 0; max-width: none; }
.ex-org__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.ex-org__stats li { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.ex-org__stats li:not(:last-child)::after { content: '/'; margin: 0 0.75rem; color: var(--border-strong); font-weight: 400; }
.ex-org__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.ex-org__list li { position: relative; padding-left: 1.125rem; font-size: 0.875rem; line-height: 1.65; color: var(--muted); }
.ex-org__list li::before { content: ''; position: absolute; left: 0; top: 0.5625rem; width: 0.4375rem; height: 0.4375rem; border-radius: 2px; background: var(--px-purple); }

@media (max-width: 1100px) { .pg-grid--4 { grid-template-columns: 1fr 1fr; } .pg-grid--3 { grid-template-columns: 1fr 1fr; } .pg-stats { grid-template-columns: 1fr 1fr; } .pg-dark { grid-template-columns: 1fr; } .ex-orgs { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pg-grid--4, .pg-grid--3, .pg-grid--2 { grid-template-columns: 1fr; } .pg-stats { grid-template-columns: 1fr; } .pg-dark__grid { grid-template-columns: 1fr; } }

/* Case studies index */
.cs-feat { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--ink); transition: transform 0.2s ease; }
.cs-feat:hover { transform: translateY(-4px); }
.cs-feat h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 550; margin: 0.625rem 0 0.875rem; max-width: none; }
.cs-feat p { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin: 0 0 1rem; max-width: none; }
.cs-feat__facts { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.875rem; color: var(--muted); }
.cs-feat__facts b { color: var(--ink); font-weight: 600; }
.cs-feat__metrics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cs-feat__metrics li { border-radius: 18px; padding: 1.125rem; display: flex; flex-direction: column; gap: 0.375rem; }
.cs-feat__metrics li:nth-child(1) { background: var(--px-purple-bg); color: var(--px-purple); }
.cs-feat__metrics li:nth-child(2) { background: var(--px-rose-bg); color: var(--px-rose); }
.cs-feat__metrics li:nth-child(3) { background: var(--px-blue-bg); color: var(--px-blue); }
.cs-feat__metrics li:nth-child(4) { background: var(--px-orange-bg); color: var(--px-orange); }
.cs-feat__metrics span { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cs-feat__metrics b { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1.1; }
.pg-note { font-size: 0.875rem; line-height: 1.7; color: var(--muted); margin: 1rem 0 0; max-width: none; }
.cs-pat__no { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 960px) { .cs-feat { grid-template-columns: 1fr; } }

/* ================================================================
   12. Legacy components on the long pages (guides, articles, case study)
   ================================================================ */
:root { --panel: #14101c; }
/* Panels that always carry light text stay dark in both themes. */
html[data-ui="prism"] .flow__step--ink { background: var(--panel); border-color: var(--panel); }
html[data-ui="prism"] .flow__step--ink .flow__k { color: #ffb27a; }
/* The decorative rings and pulses from the old design are gone. */
html[data-ui="prism"] .deco { display: none !important; }
/* No capsule tags: inline pill radii become small rounded rectangles. */
html[data-ui="prism"] [style*="radius-full"], html[data-ui="prism"] [style*="border-radius:100px"], html[data-ui="prism"] [style*="border-radius: 100px"] { border-radius: 8px !important; }
/* Accent borders on callouts follow the new accent. */
html[data-ui="prism"] .pull-quote, html[data-ui="prism"] .checklist-box, html[data-ui="prism"] .insight-box { border-left-color: var(--px-purple); }
html[data-ui="prism"] .article-body a:not(.btn) { color: var(--px-purple); text-underline-offset: 3px; }

/* Connect */
.cn-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.cn-call p { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); margin: 0.875rem 0 1.5rem; max-width: none; }
.cn-direct { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: grid; gap: 0.75rem; justify-items: start; }
.cn-direct .px-eyebrow { margin: 0; }
.cn-mail { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.cn-mail:hover { color: var(--px-purple); }
.cn-social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 !important; font-size: 0.875rem !important; }
.cn-social a { color: var(--px-purple); font-weight: 550; text-decoration: none; }
.cn-social a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cn-form { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); }
.cn-form .px-h2 { margin-bottom: 1.25rem; }
.cn-form .form-group { margin-bottom: 1rem; }
.cn-form label { display: block; font-size: 0.8125rem; font-weight: 550; color: var(--ink); margin-bottom: 0.375rem; }
.cn-form input[type="text"], .cn-form input[type="email"], .cn-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 0.75rem 1rem; }
.cn-form textarea { min-height: 8rem; resize: vertical; }
.cn-form input:focus, .cn-form textarea:focus { outline: 0; border-color: var(--px-purple); box-shadow: 0 0 0 4px var(--px-purple-bg); }
@media (max-width: 960px) { .cn-grid { grid-template-columns: 1fr; } }

/* Headings on the inner pages never wrap at the old 34rem cap, and a centered call to action
   centers its heading as well as its text. */
.pg-section .px-h2, #faq .px-h2, .pg-cta .px-h2, .pg-why .px-h2 { max-width: none; }
.pg-cta .px-h2 { margin-left: auto; margin-right: auto; text-align: center; }
.pg-cta p { text-align: center; }

/* Radar archive */
.rd-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); margin: 1rem 0 0; max-width: none; }
.rd-meta__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--px-blue); flex: none; }
.rd-week { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.rd-week:first-child { margin-top: 0; }
.rd-date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.875rem; max-width: none; }
.rd-latest { margin-left: 0.75rem; color: var(--px-blue); }
.rd-items { display: grid; gap: 0.75rem; }
.rd-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem 1rem; border-radius: 21px; padding: 1.25rem 1.5rem; }
.rd-item--a { background: var(--px-purple-bg); color: var(--px-purple); }
.rd-item--b { background: var(--px-rose-bg); color: var(--px-rose); }
.rd-item--c { background: var(--px-blue-bg); color: var(--px-blue); }
.rd-item--d { background: var(--px-orange-bg); color: var(--px-orange); }
.rd-n { font-size: 1.125rem; font-weight: 550; letter-spacing: -0.04em; }
.rd-item h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.02em; font-weight: 550; color: var(--ink); margin: 0 0 0.375rem; }
.rd-item p { font-size: 0.875rem; line-height: 1.75; color: var(--muted); margin: 0 0 0.5rem; max-width: none; }

/* Glossary */
.gl-search { display: flex; align-items: center; gap: 0.75rem; max-width: 28rem; height: 3.25rem; margin-top: 1.5rem; padding: 0 1rem; border: 1.5px solid var(--border-strong); border-radius: 14px; background: var(--surface); color: var(--muted); }
.gl-search:focus-within { border-color: var(--px-purple); box-shadow: 0 0 0 4px var(--px-purple-bg); }
.gl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); height: 100%; }
.gl-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gl-nav { position: sticky; top: 6rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
.gl-nav ul { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0; }
.gl-nav a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.gl-nav a:hover { color: var(--px-purple); }
.gl-nav i { font-style: normal; font-size: 0.75rem; opacity: 0.7; }
.gl-stage { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.gl-stage:first-of-type { margin-top: 0; }
.gl-stage h2 { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1.375rem; letter-spacing: -0.03em; font-weight: 550; margin: 0 0 1rem; max-width: none; }
.gl-stage__no { color: var(--px-purple); font-size: 1rem; }
.gl-stage small { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gl-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.g-term { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 1.125rem 1.25rem; scroll-margin-top: 6rem; }
.g-term h3 { font-size: 1rem; font-weight: 550; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 0.375rem; }
.g-term p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: none; }
.g-term .g-link { display: inline-block; margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 550; color: var(--px-purple); text-decoration: none; }
.g-term .g-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.gl-empty { display: none; color: var(--muted); font-size: 0.9375rem; padding: 1.5rem 0; max-width: none; }
.gl-deeper { text-decoration: none; }
.gl-deeper__k { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 1100px) { .gl-layout { grid-template-columns: 1fr; } .gl-nav { position: static; max-height: none; } .gl-nav ul { grid-template-columns: repeat(3, 1fr); gap: 0 1.5rem; } }
@media (max-width: 720px) { .gl-terms { grid-template-columns: 1fr; } .gl-nav ul { grid-template-columns: 1fr 1fr; } }

/* ================================================================
   13. Case study detail (cx-*)
   ================================================================ */
.cx-hero { padding: clamp(6rem, 11vw, 8.5rem) 0 clamp(1.25rem, 2.5vw, 2rem); }
.cx-lede { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); margin: 1.25rem 0 0; max-width: none; }
.cx-stats { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; }
.cx-stat { border-radius: 21px; padding: 1.25rem 1.375rem; display: flex; flex-direction: column; gap: 0.375rem; }
.cx-stat--a { background: var(--px-purple-bg); color: var(--px-purple); }
.cx-stat--b { background: var(--px-rose-bg); color: var(--px-rose); }
.cx-stat--c { background: var(--px-blue-bg); color: var(--px-blue); }
.cx-stat--d { background: var(--px-orange-bg); color: var(--px-orange); }
.cx-stat b { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 550; letter-spacing: -0.045em; line-height: 1.05; }
.cx-stat span { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

.cx-numbers, .cx-summary { padding: clamp(1.5rem, 3.5vw, 2.75rem) 0; border-top: 1px solid var(--border); }
.cx-charts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.9375rem; }
.cx-chart { margin: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 23px; padding: clamp(1.25rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.cx-chart figcaption { display: grid; gap: 0.25rem; }
.cx-chart figcaption b { font-size: 1.1875rem; letter-spacing: -0.025em; font-weight: 550; color: var(--ink); }
.cx-chart figcaption span { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.cx-bars, .cx-ba { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.125rem; }
.cx-bars li, .cx-ba li { display: grid; gap: 0.375rem; }
.cx-bars__k, .cx-ba__k { font-size: 0.875rem; font-weight: 550; color: var(--ink); }
.cx-bars__k small { font-size: 0.75rem; font-weight: 400; color: var(--muted); margin-left: 0.5rem; }
.cx-bars__track, .cx-ba__track { position: relative; display: block; height: 0.875rem; border-radius: 7px; background: var(--surface-raised); overflow: hidden; }
.cx-bars__fill { display: block; height: 100%; border-radius: 7px; transform-origin: left; animation: cx-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.cx-bars__fill--a { background: var(--px-purple); }
.cx-bars__fill--b { background: var(--px-rose); }
.cx-bars__fill--c { background: var(--px-blue); }
.cx-bars__fill--d { background: var(--px-orange); }
.cx-bars__v, .cx-ba__v { font-size: 0.8125rem; color: var(--muted); }
.cx-ba__before { position: absolute; inset: 0; background: var(--border-strong); opacity: 0.6; }
.cx-ba__after { position: absolute; left: 0; top: 0; bottom: 0; background: var(--px-purple); border-radius: 7px; animation: cx-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: left; }
.cx-ba__v s { color: var(--muted); text-decoration-thickness: 1px; margin-right: 0.375rem; }
.cx-ba__v b { color: var(--ink); font-weight: 600; }
@keyframes cx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cx-impact { list-style: none; margin: 0.9375rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9375rem; }
.cx-impact__card { border-radius: 21px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.cx-impact__card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.cx-impact__card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.cx-impact__card--c { background: var(--px-blue-bg); color: var(--px-blue); }
.cx-impact__card--d { background: var(--px-orange-bg); color: var(--px-orange); }
.cx-impact__card b { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1.1; }
.cx-impact__l { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.cx-impact__c { font-size: 0.75rem; line-height: 1.6; color: var(--muted); }

.cx-sum { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.cx-p { font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 1rem 0 0; max-width: none; }
.cx-platforms { font-size: 0.875rem; line-height: 1.7; color: var(--muted); margin: 1.25rem 0 0; padding-left: 1rem; border-left: 3px solid var(--px-purple); max-width: none; }
.cx-platforms b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }
.cx-across { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 0.75rem; max-width: none; }
.cx-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.cx-item { border-radius: 16px; padding: 0.875rem 1rem; font-size: 0.8125rem; line-height: 1.5; font-weight: 550; color: var(--ink); }
.cx-item--a { background: var(--px-purple-bg); }
.cx-item--b { background: var(--px-rose-bg); }
.cx-item--c { background: var(--px-blue-bg); }
.cx-item--d { background: var(--px-orange-bg); }

.cx-chapters { padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--border); }
.cx-ch { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: clamp(1.75rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--border); scroll-margin-top: 6rem; }
.cx-ch:last-child { border-bottom: 0; }
.cx-ch--rev .cx-ch__text { order: 2; }
.cx-ch--rev .cx-ch__fig { order: 1; }
.cx-ch h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 550; margin: 0.625rem 0 0; max-width: none; }
.cx-ch__fig { margin: 0; position: sticky; top: 6rem; border-radius: 24px; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--border); }
.cx-ch__fig img { display: block; width: 100%; height: auto; }
.cx-callout { margin: 1.5rem 0 0; padding: 1.125rem 1.25rem; border-radius: 18px; background: var(--px-purple-bg); }
.cx-callout span { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); }
.cx-callout p { margin: 0.375rem 0 0; font-size: 1rem; line-height: 1.65; font-weight: 550; color: var(--ink); max-width: none; }
.cx-quote { margin: 1.5rem 0 0; padding-left: 1.125rem; border-left: 3px solid var(--px-orange); font-size: 1.125rem; line-height: 1.6; font-weight: 550; letter-spacing: -0.01em; color: var(--ink); }
.cx-metrics { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cx-metric { border-radius: 18px; padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: 0.375rem; }
.cx-metric--a { background: var(--px-purple-bg); color: var(--px-purple); }
.cx-metric--b { background: var(--px-rose-bg); color: var(--px-rose); }
.cx-metric--c { background: var(--px-blue-bg); color: var(--px-blue); }
.cx-metric--d { background: var(--px-orange-bg); color: var(--px-orange); }
.cx-metric span { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cx-metric b { font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 550; letter-spacing: -0.03em; line-height: 1.2; }

@media (max-width: 1100px) { .cx-stats { grid-template-columns: 1fr 1fr; } .cx-charts, .cx-sum { grid-template-columns: 1fr; } .cx-impact { grid-template-columns: 1fr 1fr; } .cx-ch { grid-template-columns: 1fr; } .cx-ch--rev .cx-ch__text, .cx-ch--rev .cx-ch__fig { order: 0; } .cx-ch__fig { position: static; } }
@media (max-width: 560px) { .cx-stats, .cx-impact, .cx-items, .cx-metrics { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cx-bars__fill, .cx-ba__after { animation: none; } }

/* Books hub */
.bk-author { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bk-author img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.bk-author > div:nth-child(2) { flex: 1; min-width: 12rem; }
.bk-author strong { display: block; color: var(--ink); }
.bk-author span { font-size: 0.8125rem; color: var(--muted); }
.bk-author__links { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.bk-list { display: grid; gap: 0.9375rem; }
.bk-card { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); }
.bk-card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.bk-card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.bk-card--c { background: var(--px-blue-bg); color: var(--px-blue); }
.bk-card--d { background: var(--px-orange-bg); color: var(--px-orange); }
.bk-card__cover img, .bk-fic__cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.bk-card__cover:hover img, .bk-fic__cover:hover img { transform: translateY(-4px); }
.bk-card h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; font-weight: 550; line-height: 1.2; color: var(--ink); margin: 0; }
.bk-card__sub { font-size: 0.9375rem; font-weight: 550; margin: 0.375rem 0 0; max-width: none; }
.bk-card__desc { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin: 0.875rem 0 0; max-width: none; }
.bk-card__lists { display: grid; gap: 0.75rem; margin: 1.125rem 0 0; }
.bk-card__lists div { border-top: 1px solid var(--border-strong); padding-top: 0.625rem; }
.bk-card__lists dt { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.25rem; }
.bk-card__lists dd { margin: 0; font-size: 0.8125rem; line-height: 1.7; color: var(--ink); }
.bk-card__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.bk-fic { display: flex; flex-direction: column; gap: 0.5rem; }
.bk-fic__cover { margin-bottom: 0.5rem; }
.bk-fic h3 { font-size: 1.0625rem; font-weight: 550; letter-spacing: -0.02em; color: var(--ink); margin: 0; line-height: 1.3; }
.bk-fic p { font-size: 0.8125rem; line-height: 1.65; color: var(--muted); margin: 0; max-width: none; }
.bk-fic .px-link { margin-top: auto; padding-top: 0.5rem; }
.bk-bio { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.bk-bio img { width: 7.5rem; height: 7.5rem; border-radius: 24px; object-fit: cover; }
.bk-bio p { font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 0.875rem 0 0; max-width: none; }
.bk-topics { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: 0.8125rem; color: var(--muted); }
.bk-topics li:not(:last-child)::after { content: '\00b7'; margin: 0 0.625rem; color: var(--border-strong); }
@media (max-width: 720px) { .bk-card { grid-template-columns: 1fr; } .bk-card__cover { max-width: 12rem; } .bk-bio { grid-template-columns: 1fr; } }

/* ================================================================
   14. Footer in columns
   Brand and social on the left, then one labelled column per topic.
   ================================================================ */
html[data-ui="prism"] .ft { padding: clamp(2.5rem, 5vw, 4rem) 0 1.75rem; }
.ft__grid { display: grid; grid-template-columns: minmax(13rem, 1fr) repeat(3, minmax(0, 1fr)) minmax(0, 2.2fr); gap: clamp(1.5rem, 2.5vw, 2.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.ft__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; min-width: 0; }
.ft__brand .footer__tagline { margin: 0; max-width: 17rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.ft__mail { font-size: 0.9375rem; font-weight: 550; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ft__mail:hover { color: var(--px-purple); }
html[data-ui="prism"] .ft__social { padding: 0; border: 0; gap: 0.5rem; margin-top: 0.25rem; }
html[data-ui="prism"] .ft__social .footer__social-link { padding: 0; width: 2.5rem; height: 2.5rem; justify-content: center; border-radius: 10px; }
html[data-ui="prism"] .ft__social .footer__social-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
html[data-ui="prism"] .ft__social .footer__social-link:hover { transform: none; }
.ft__col { min-width: 0; }
.ft__h { font-family: var(--font-body) !important; font-size: 0.6875rem !important; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600 !important; color: var(--ink) !important; margin: 0 0 1rem !important; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-strong); max-width: none; }
.ft__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.125rem; }
.ft__col a { display: inline-block; padding: 0.3125rem 0; font-size: 0.875rem; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.ft__col a:hover { color: var(--px-purple); }
/* Guides is the longest list, so it gets a double wide column with its links in two columns. */
.ft__col--guides ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.125rem 1.5rem; }
@media (max-width: 1100px) {
  .ft__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft__col--guides { grid-column: 1 / -1; }
  .ft__brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
  .ft__brand .footer__tagline { max-width: none; }
}
@media (max-width: 820px) { .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ft__col--guides ul { column-gap: 1rem; } .ft__col--guides a { font-size: 0.8125rem; } }
@media (max-width: 340px) { .ft__grid { grid-template-columns: 1fr; } }

/* ================================================================
   15. Book landing pages (bl-*) and The 48 Laws (lb-*)
   ================================================================ */
.bl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bl-points li { position: relative; padding-left: 1.625rem; font-size: 0.875rem; line-height: 1.6; color: var(--ink); }
.bl-points li::before { content: ''; position: absolute; left: 0.125rem; top: 0.4em; width: 0.75rem; height: 0.375rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.bl-label { display: block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 1.125rem 0 0.5rem; }
.bk-card .bl-label:first-of-type { margin-top: 1.25rem; }
.bl-shelf { display: grid; gap: 0.9375rem; }
.bl-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bl-faq .pb-faq { border-top: 0; }
.bl-faq .pb-faq:nth-child(-n+2) { border-top: 1px solid var(--border); }
.bl-faq .pb-faq p { max-width: none; }
.bl-why-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .bl-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .bl-faq { grid-template-columns: 1fr; } .bl-faq .pb-faq:nth-child(2) { border-top: 0; } }
@media (max-width: 640px) { .bl-why-grid { grid-template-columns: 1fr; } }

/* The 48 Laws Of Business */
.lb-hero { display: grid; grid-template-columns: 1fr minmax(11rem, 17rem); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.lb-hero__cover img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 22px 48px rgba(0,0,0,0.25); }
.lb-kicker { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 550; letter-spacing: -0.02em; color: var(--px-purple); margin: 0.75rem 0 0; max-width: none; }
.lb-hero__copy p { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); margin: 1rem 0 0; max-width: none; }
.lb-hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.lb-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.lb-part { border-radius: 18px; padding: 1rem 1.125rem; display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.5rem; row-gap: 0.25rem; align-content: start; }
.lb-part--a { background: var(--px-purple-bg); color: var(--px-purple); }
.lb-part--b { background: var(--px-rose-bg); color: var(--px-rose); }
.lb-part--c { background: var(--px-blue-bg); color: var(--px-blue); }
.lb-part--d { background: var(--px-orange-bg); color: var(--px-orange); }
.lb-part__n { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; padding-top: 0.2rem; }
.lb-part b { font-size: 0.9375rem; font-weight: 550; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }
.lb-part span:last-child { grid-column: 2; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.lb-note { margin-top: 1rem; border-radius: 20px; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); }
.lb-note span { display: block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); margin-bottom: 0.5rem; }
.lb-note p { margin: 0; font-size: 0.9375rem; line-height: 1.75; color: var(--muted); max-width: none; }
.lb-note strong { color: var(--ink); }
.lb-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9375rem; }
.lb-act { border-radius: 22px; padding: 1.25rem 1.375rem 1.375rem; min-width: 0; }
.lb-act--a { background: var(--px-purple-bg); color: var(--px-purple); }
.lb-act--b { background: var(--px-rose-bg); color: var(--px-rose); }
.lb-act--c { background: var(--px-blue-bg); color: var(--px-blue); }
.lb-act--d { background: var(--px-orange-bg); color: var(--px-orange); }
.lb-act__k { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.lb-act h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 550; color: var(--ink); margin: 0.5rem 0 0.875rem; }
.lb-act ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; border-top: 1px solid currentColor; padding-top: 0.875rem; }
.lb-act li { position: relative; padding-left: 1.125rem; font-size: 0.8125rem; line-height: 1.55; color: var(--ink); }
.lb-act li::before { content: '\2192'; position: absolute; left: 0; color: currentColor; }
.lb-bos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.lb-bos li { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0.875rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.lb-bos__n { font-size: 0.6875rem; font-weight: 600; color: var(--muted); }
.lb-bos__name { font-size: 0.875rem; font-weight: 550; color: var(--ink); }
.lb-bos li.is-fail { background: var(--px-orange-bg); border-color: transparent; }
.lb-bos li.is-fail .lb-bos__n { color: var(--px-orange); }
.lb-key { display: flex; align-items: center; gap: 0.5rem; margin: 0.875rem 0 0; font-size: 0.75rem; color: var(--muted); max-width: none; }
.lb-key i { width: 0.875rem; height: 0.875rem; border-radius: 4px; background: var(--px-orange-bg); border: 1px solid var(--px-orange); flex: none; }
.lb-bos-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 1.5rem; }
.lb-bos-copy p { font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 0; max-width: none; }
@media (max-width: 1280px) { .lb-acts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .lb-parts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .lb-hero { grid-template-columns: 1fr; } .lb-hero__cover { max-width: 12rem; order: -1; } .lb-bos-copy { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lb-parts, .lb-acts { grid-template-columns: 1fr; } }

/* ================================================================
   16. Guides (views/pillar.ejs): gd-*
   ================================================================ */
.gd-hero { padding: clamp(6rem, 11vw, 8.5rem) 0 clamp(1rem, 2vw, 1.75rem); }
.gd-h1 { font-size: clamp(1.875rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; margin: 0.625rem 0 0; max-width: none; text-wrap: balance; }
.gd-lede { font-size: 1.125rem; line-height: 1.75; color: var(--muted); margin: 1.25rem 0 0; max-width: 46rem; }
.gd-author { display: flex; align-items: center; gap: 0.875rem; margin-top: 1.75rem; padding: 1.125rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gd-author img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: none; }
.gd-author strong { display: block; font-size: 0.9375rem; color: var(--ink); }
.gd-author span { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.gd-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 1rem 0 0; font-size: 0.8125rem; color: var(--muted); max-width: none; }
.gd-meta span:not(:last-child)::after { content: '\00b7'; margin-left: 1.25rem; color: var(--border-strong); }
.gd-def { background: var(--px-purple-bg); border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.75rem); margin-top: 2rem; }
.gd-def .px-eyebrow { color: var(--px-purple); margin-bottom: 0.625rem; }
.gd-def p { margin: 0; font-size: 1rem; line-height: 1.8; color: var(--muted); max-width: none; }
.gd-def strong { color: var(--ink); }

/* Contents list */
.gd-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.25rem 1.375rem; margin-top: 2rem; }
.gd-toc__k { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); margin-bottom: 0.75rem; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.gd-toc a { display: flex; gap: 0.625rem; padding: 0.4375rem 0; font-size: 0.875rem; line-height: 1.4; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); transition: color 0.15s ease; }
.gd-toc a span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; color: var(--px-purple); padding-top: 0.125rem; flex: none; }
.gd-toc a:hover, .gd-toc a[aria-current="true"] { color: var(--ink); }
.gd-toc a[aria-current="true"] { font-weight: 550; }
.gd-toc a[aria-current="true"] span { color: var(--px-rose); }
html[data-ui="prism"] .pillar-aside .pillar-toc { grid-template-columns: 1fr !important; }
@media (max-width: 760px) { .gd-toc ol { grid-template-columns: 1fr; } }

/* Sections */
.gd-sec { padding: clamp(1.75rem, 3.5vw, 2.75rem) 0; border-top: 1px solid var(--border); scroll-margin-top: 5.5rem; }
.pillar-main .gd-sec:first-child { border-top: 0; }
.gd-sec > .px-eyebrow, .gd-sec .container > .px-eyebrow { margin-bottom: 0.625rem; }
.gd-h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 1.5rem; max-width: none; text-wrap: balance; }
.gd-p { font-size: 1.0625rem; line-height: 1.85; color: var(--muted); margin: 0 0 1.125rem; max-width: 48rem; }
.gd-p a, .gd-callout a, .gd-card a, .gd-step a, .gd-table a { color: var(--px-purple); text-underline-offset: 3px; }
.gd-p strong, .gd-step strong, .gd-card strong { color: var(--ink); }
.gd-2col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.gd-2col .gd-p { max-width: none; }

/* Steps */
.gd-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.gd-step { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.5rem 1.25rem; align-items: baseline; padding: 1rem 1.25rem; border-radius: 16px; }
.gd-step--a { background: var(--px-purple-bg); color: var(--px-purple); }
.gd-step--b { background: var(--px-rose-bg); color: var(--px-rose); }
.gd-step--c { background: var(--px-blue-bg); color: var(--px-blue); }
.gd-step--d { background: var(--px-orange-bg); color: var(--px-orange); }
.gd-step__label { font-size: 0.9375rem; font-weight: 550; letter-spacing: -0.01em; }
.gd-step__desc { font-size: 0.9375rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 760px) { .gd-step { grid-template-columns: 1fr; } }

/* Cards */
.gd-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0.9375rem; margin: 0 0 1.5rem; }
.gd-card { border-radius: 22px; padding: 1.375rem; min-width: 0; }
.gd-card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.gd-card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.gd-card--c { background: var(--px-blue-bg); color: var(--px-blue); }
.gd-card--d { background: var(--px-orange-bg); color: var(--px-orange); }
.gd-card h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.02em; font-weight: 550; color: var(--ink); margin: 0 0 0.875rem; padding-bottom: 0.75rem; border-bottom: 1px solid currentColor; }
.gd-card dl { margin: 0; display: grid; gap: 0.75rem; }
.gd-card dt { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.1875rem; }
.gd-card dd { margin: 0; font-size: 0.875rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 1100px) { .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gd-cards { grid-template-columns: 1fr; } }

/* Tables */
.gd-table { margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.gd-table table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 640px; }
.gd-table thead th { background: var(--panel, #14101c); color: #fff; padding: 0.875rem 1rem; text-align: left; font-weight: 550; white-space: nowrap; }
.gd-table tbody th, .gd-table tbody td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); text-align: left; line-height: 1.65; vertical-align: top; color: var(--muted); }
.gd-table tbody th { color: var(--ink); font-weight: 600; }
.gd-table tbody tr:last-child th, .gd-table tbody tr:last-child td { border-bottom: 0; }
.table-scroll__inner .gd-table th, .table-scroll__inner td, .table-scroll__inner th { min-width: 150px; }

/* Stats */
.gd-stats { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0.9375rem; }
.gd-stat { border-radius: 21px; padding: 1.25rem 1.375rem; display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.gd-stat--a { background: var(--px-purple-bg); color: var(--px-purple); }
.gd-stat--b { background: var(--px-rose-bg); color: var(--px-rose); }
.gd-stat--c { background: var(--px-blue-bg); color: var(--px-blue); }
.gd-stat--d { background: var(--px-orange-bg); color: var(--px-orange); }
.gd-stat b { font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1.05; }
.gd-stat__l { font-size: 0.875rem; font-weight: 550; color: var(--ink); line-height: 1.4; }
.gd-stat__n { font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 1100px) { .gd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gd-stats { grid-template-columns: 1fr; } }

/* Checklist and callout */
.gd-check { margin: 0 0 1.5rem; gap: 0.75rem; }
.gd-check li { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.gd-check li::before { color: var(--px-purple); top: 0.55em; }
.gd-callout { background: var(--px-purple-bg); border-radius: 20px; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.gd-callout span { display: block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); margin-bottom: 0.5rem; }
.gd-callout p { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--muted); max-width: none; }
.gd-callout strong { color: var(--ink); }

/* FAQ */
.gd-faq .pb-faq p { max-width: none; }

/* Sources and further reading */
.gd-sources { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.gd-sources li { display: grid; gap: 0.25rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.gd-sources a { font-size: 1rem; font-weight: 550; line-height: 1.45; color: var(--px-purple); text-underline-offset: 3px; overflow-wrap: anywhere; }
.gd-sources__by { font-size: 0.875rem; line-height: 1.55; color: var(--ink); }
.gd-sources__note { font-size: 0.875rem; line-height: 1.55; color: var(--muted); }

@media (max-width: 760px) { .gd-2col { grid-template-columns: 1fr; gap: 0; } }
/* Inline links in the guide data carry the old orange as an inline style. */
.gd-sec a[style*="--orange"] { color: var(--px-purple) !important; border-bottom-color: var(--px-purple-bg) !important; }
.gd-sec a[style*="--orange"]:hover { border-bottom-color: var(--px-purple) !important; }

/* ================================================================
   17. Articles (views/insights/*): one layer for the shared components.
   The articles define these classes in their own <style> blocks, which load
   after this file, so every rule here carries the html[data-ui] prefix to win.
   ================================================================ */
html[data-ui="prism"] .chapter-label,
html[data-ui="prism"] .section-label--orange,
html[data-ui="prism"] .qa__n,
html[data-ui="prism"] .principle-card__num,
html[data-ui="prism"] .metric-card__goal { color: var(--px-purple); }
html[data-ui="prism"] .article-chapter > p[style*="--orange"],
html[data-ui="prism"] .article-chapter > h2 + p[style*="--orange"] { color: var(--px-purple) !important; }
html[data-ui="prism"] .article-chapter h2 { font-size: clamp(1.5rem, 2.6vw, 2rem) !important; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; }
html[data-ui="prism"] .article-chapter { border-top-color: var(--border); }
/* Header pills: the tag pill takes the new accent. */
html[data-ui="prism"] [style*="rgba(249,115,22,0.08)"] { background: var(--px-purple-bg) !important; border-color: transparent !important; color: var(--px-purple) !important; }

/* Tinted blocks instead of hairline boxes. */
html[data-ui="prism"] .pull-quote { background: var(--px-purple-bg); border: 0; border-radius: 22px; padding: 1.5rem 1.75rem; }
html[data-ui="prism"] .pull-quote p { font-size: 1.125rem; line-height: 1.6; color: var(--ink); font-style: normal; font-weight: 550; }
html[data-ui="prism"] .checklist-box { background: var(--px-blue-bg); border: 0; border-radius: 22px; padding: 1.5rem 1.75rem; }
html[data-ui="prism"] .checklist-box h4 { color: var(--px-blue); }
html[data-ui="prism"] .checklist-box li { border-bottom-color: var(--border); color: var(--muted); }
html[data-ui="prism"] .checklist-box li::before { color: var(--px-blue); }
html[data-ui="prism"] .case-study-box, html[data-ui="prism"] .ask-box { border-radius: 22px; }
html[data-ui="prism"] .case-study-box h4, html[data-ui="prism"] .ask-box h4 { color: #ffb27a; }
html[data-ui="prism"] .metric-mini, html[data-ui="prism"] .metric-card, html[data-ui="prism"] .dom-card, html[data-ui="prism"] .principle-card { border: 0; border-radius: 20px; }
html[data-ui="prism"] .metric-mini, html[data-ui="prism"] .metric-card { padding: 1.125rem 1.25rem; }
html[data-ui="prism"] .metric-mini:nth-child(4n+1), html[data-ui="prism"] .metric-card:nth-child(4n+1), html[data-ui="prism"] .dom-card:nth-child(4n+1), html[data-ui="prism"] .principle-card:nth-child(4n+1) { background: var(--px-purple-bg); }
html[data-ui="prism"] .metric-mini:nth-child(4n+2), html[data-ui="prism"] .metric-card:nth-child(4n+2), html[data-ui="prism"] .dom-card:nth-child(4n+2), html[data-ui="prism"] .principle-card:nth-child(4n+2) { background: var(--px-rose-bg); }
html[data-ui="prism"] .metric-mini:nth-child(4n+3), html[data-ui="prism"] .metric-card:nth-child(4n+3), html[data-ui="prism"] .dom-card:nth-child(4n+3), html[data-ui="prism"] .principle-card:nth-child(4n+3) { background: var(--px-blue-bg); }
html[data-ui="prism"] .metric-mini:nth-child(4n+4), html[data-ui="prism"] .metric-card:nth-child(4n+4), html[data-ui="prism"] .dom-card:nth-child(4n+4), html[data-ui="prism"] .principle-card:nth-child(4n+4) { background: var(--px-orange-bg); }
html[data-ui="prism"] .metric-mini__value, html[data-ui="prism"] .metric-card__value, html[data-ui="prism"] .principle-card__title { font-family: var(--font-body); font-weight: 550; letter-spacing: -0.02em; }
html[data-ui="prism"] .dom-card h4 { color: var(--ink); }
html[data-ui="prism"] .qa { border-radius: 22px; border-color: var(--border); }
html[data-ui="prism"] .qa__strong { border-left-color: var(--px-purple); }
html[data-ui="prism"] .skill-table th { font-family: var(--font-body); letter-spacing: 0.08em; }

/* /insights index */
.in-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9375rem; }
.in-card { border-radius: 23px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; text-decoration: none; min-width: 0; transition: transform 0.2s ease; }
.in-card--a { background: var(--px-purple-bg); color: var(--px-purple); }
.in-card--b { background: var(--px-rose-bg); color: var(--px-rose); }
.in-card--c { background: var(--px-blue-bg); color: var(--px-blue); }
.in-card--d { background: var(--px-orange-bg); color: var(--px-orange); }
.in-card__k { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.in-card h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.025em; font-weight: 550; color: var(--ink); margin: 0; }
.in-card p { font-size: 0.875rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: none; }
.in-card__foot { margin-top: auto; padding-top: 0.5rem; display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; font-weight: 550; }
.in-card__foot span:last-child { color: var(--muted); font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .in-card:hover { transform: translateY(-3px); } }
.in-li { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.in-li a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.in-li a:hover { border-color: var(--px-purple); }
.in-li b { display: block; font-size: 0.9375rem; font-weight: 550; color: var(--ink); }
.in-li small { font-size: 0.75rem; color: var(--muted); }
.in-li span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--px-purple); white-space: nowrap; }
@media (max-width: 1100px) { .in-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .in-grid { grid-template-columns: 1fr; } }
html[data-ui="prism"] .art-rail__title { font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.12em; font-weight: 600; color: var(--px-purple); }
html[data-ui="prism"] .art-rail__bar i { background: var(--px-purple); }
html[data-ui="prism"] .art-rail__list a { color: var(--muted); }
html[data-ui="prism"] .art-rail__list a:hover, html[data-ui="prism"] .art-rail__list a.is-current { color: var(--ink); }
/* The short-answer callout at the top of each article carries orange inline. */
html[data-ui="prism"] .article-body [style*="border-left:3px solid var(--orange)"],
html[data-ui="prism"] section [style*="border-left:3px solid var(--orange)"] { border-left: 0 !important; background: var(--px-purple-bg) !important; border-radius: 22px !important; }
html[data-ui="prism"] [style*="border-left:3px solid var(--orange)"] > span:first-child { color: var(--px-purple) !important; }

/* ================================================================
   18. Legal pages, 404, generator pages
   ================================================================ */
.lg-parts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lg-h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-strong); max-width: none; scroll-margin-top: 5.5rem; }
.lg-h3 { font-family: var(--font-body) !important; font-size: 0.75rem !important; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600 !important; color: var(--px-purple) !important; margin: 1.75rem 0 0.5rem !important; max-width: none; }
.lg-part p { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin: 0 0 0.875rem; max-width: none; }
.lg-ul { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.lg-ul li { list-style: disc; font-size: 0.9375rem; line-height: 1.7; color: var(--muted); }
.lg-ul li::marker { color: var(--px-purple); }
@media (max-width: 1000px) { .lg-parts { grid-template-columns: 1fr; } }

.nf { position: relative; }
.nf__n { position: absolute; top: -2rem; right: 0; font-size: clamp(7rem, 22vw, 16rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: var(--px-purple-bg); pointer-events: none; user-select: none; }
.nf > *:not(.nf__n) { position: relative; }
.nf__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.ca-ticks { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.ca-ticks li { position: relative; padding-left: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.ca-ticks li::before { content: ''; position: absolute; left: 0.125rem; top: 0.4em; width: 0.75rem; height: 0.375rem; border-left: 2px solid var(--px-purple); border-bottom: 2px solid var(--px-purple); transform: rotate(-45deg); }
.ca-more { font-size: 0.875rem; color: var(--muted); margin: 1.25rem 0 0; max-width: none; }
.ca-more a { font-weight: 550; }
/* Generator body: the legacy cards and form pick up the new accent and rounding. */
html[data-ui="prism"] .ca-seo__card { background: var(--px-purple-bg); border: 0; border-radius: 22px; }
html[data-ui="prism"] .ca-seo__card:nth-child(4n+2) { background: var(--px-rose-bg); }
html[data-ui="prism"] .ca-seo__card:nth-child(4n+3) { background: var(--px-blue-bg); }
html[data-ui="prism"] .ca-artifact-section__title { border-bottom-color: var(--px-purple) !important; }
html[data-ui="prism"] #ca-unlock-ultimate-card { background: var(--px-purple-bg) !important; border: 0 !important; border-radius: 22px !important; }

/* Legacy long pages (Customer Success guide, About Chethan Kumar S, AI in CS): the hand-written inline
   orange accents follow the new purple, except on the always-dark panels, which keep a light amber. */
html[data-ui="prism"] main [style*="color:var(--orange)"],
html[data-ui="prism"] main [style*="color: var(--orange)"] { color: var(--px-purple) !important; }
html[data-ui="prism"] main [style*="var(--panel"] [style*="color:var(--orange)"],
html[data-ui="prism"] main [style*="var(--panel"] [style*="color: var(--orange)"],
html[data-ui="prism"] main [style*="var(--panel"][style*="color:var(--orange)"] { color: #ffb27a !important; }
html[data-ui="prism"] main [style*="border-left:2px solid var(--orange)"],
html[data-ui="prism"] main [style*="border-left: 2px solid var(--orange)"] { border-left-color: var(--px-purple) !important; }
html[data-ui="prism"] main [style*="border-bottom:2px solid var(--orange)"] { border-bottom-color: var(--px-purple) !important; }
html[data-ui="prism"] main svg[stroke="#F97316"] { stroke: var(--px-purple); }

/* ================================================================
   19. Audit fixes
   ================================================================ */
/* Text set in the old orange measured 2.7:1 on white. Where a rule still says var(--orange), use the
   palette's own readable orange, which is lighter in dark mode automatically. */
html[data-ui="prism"] { --orange: var(--px-orange); --orange-deep: var(--px-orange); }
/* Outline buttons inside the always-dark panels. */
.pg-dark .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.pg-dark .btn--outline:hover { border-color: #fff; }
/* Fixed-width chips in the flow diagrams wrap on phones instead of pushing the page wide. */
@media (max-width: 480px) { .article-body [style*="white-space:nowrap"] { white-space: normal !important; } }

/* ================================================================
   20. About Chethan Kumar S (ek-*)
   ================================================================ */
.ek-id { font-size: 0.9375rem; line-height: 1.6; font-weight: 550; color: var(--ink); margin: 1.25rem 0 0; max-width: none; }
.ek-id span { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.ek-def { margin-top: 0; }
.ek-facts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.ek-fact { border-radius: 18px; padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.ek-fact--a { background: var(--px-purple-bg); color: var(--px-purple); }
.ek-fact--b { background: var(--px-rose-bg); color: var(--px-rose); }
.ek-fact--c { background: var(--px-blue-bg); color: var(--px-blue); }
.ek-fact--d { background: var(--px-orange-bg); color: var(--px-orange); }
.ek-fact span { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.ek-fact b { font-size: 1rem; font-weight: 550; letter-spacing: -0.015em; line-height: 1.35; color: var(--ink); }
.ek-big { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 550; letter-spacing: -0.045em; line-height: 1; }
.ek-career { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9375rem; }
.ek-job { border-radius: 22px; padding: 1.375rem; display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.ek-job--a { background: var(--px-purple-bg); color: var(--px-purple); }
.ek-job--b { background: var(--px-rose-bg); color: var(--px-rose); }
.ek-job--c { background: var(--px-blue-bg); color: var(--px-blue); }
.ek-job--d { background: var(--px-orange-bg); color: var(--px-orange); }
.ek-job__when { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.ek-job h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.025em; font-weight: 550; color: var(--ink); margin: 0.25rem 0 0; }
.ek-job__type { font-size: 0.8125rem; font-weight: 550; }
.ek-job p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); margin: 0.5rem 0 0; max-width: none; }
.ek-books { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.ek-book { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; align-items: center; border-radius: 18px; padding: 0.875rem; text-decoration: none; height: 100%; }
.ek-book--a { background: var(--px-purple-bg); color: var(--px-purple); }
.ek-book--b { background: var(--px-rose-bg); color: var(--px-rose); }
.ek-book--c { background: var(--px-blue-bg); color: var(--px-blue); }
.ek-book--d { background: var(--px-orange-bg); color: var(--px-orange); }
.ek-book img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); display: block; }
.ek-book__t { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.ek-book small { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.ek-book b { font-size: 0.9375rem; font-weight: 550; line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; }
.ek-book em { font-style: normal; font-size: 0.8125rem; font-weight: 550; }
.ek-book:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .ek-facts { grid-template-columns: 1fr 1fr; } .ek-career, .ek-books { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ek-facts, .ek-career, .ek-books { grid-template-columns: 1fr; } }

/* The seven menu links need about 1,060px. Below that they used to wrap onto two lines between 769px
   and 1,000px, so the menu button takes over earlier and the links never wrap. */
html[data-ui="prism"] .header__nav a { white-space: nowrap; }
@media (max-width: 1080px) {
  html[data-ui="prism"] .header__nav { display: none; }
  html[data-ui="prism"] .mobile-toggle { display: flex; }
}

/* ================================================================
   21. Guide system for the hand-built long pages (customer-success, ai-customer-success)
   ================================================================ */
.gd-page { max-width: none; }
.pillar-main .gd-sec > .container { padding-inline: 0; }
.gd-sec--plain { border-top: 0; }
.gd-body > .gd-p:last-child, .gd-body > .gd-s:last-child { margin-bottom: 0; }
.gd-s { font-size: 0.875rem; line-height: 1.75; color: var(--muted); margin: 0 0 0.75rem; max-width: none; }
.gd-t { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.gd-h3 { font-size: clamp(1.1875rem, 1.9vw, 1.5rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 600; color: var(--ink); margin: 2rem 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-strong); max-width: none; }
.gd-body > .gd-h3:first-child { margin-top: 0; }
.gd-2col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.gd-2col > * { min-width: 0; }
.gd-2col .gd-p { max-width: none; }
.gd-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Boxes: tinted, rounded, cycling through the four tones by position. */
.gd-box { border-radius: 20px; padding: 1.25rem 1.375rem; background: var(--px-purple-bg); color: var(--px-purple); min-width: 0; margin: 0; }
.gd-box--s { border-radius: 16px; padding: 0.875rem 1.125rem; }
.gd-box:nth-child(4n+2) { background: var(--px-rose-bg); color: var(--px-rose); }
.gd-box:nth-child(4n+3) { background: var(--px-blue-bg); color: var(--px-blue); }
.gd-box:nth-child(4n+4) { background: var(--px-orange-bg); color: var(--px-orange); }
.gd-box h3, .gd-box h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.02em; font-weight: 550; color: var(--ink); margin: 0 0 0.625rem; max-width: none; }
.gd-box > strong, .gd-box > div > strong { color: var(--ink); font-weight: 550; }
.gd-box p { font-size: 0.875rem; line-height: 1.7; color: var(--muted); margin: 0 0 0.625rem; max-width: none; }
.gd-box p:last-child { margin-bottom: 0; }
.gd-box .gd-p { font-size: 0.9375rem; }
.gd-box strong { color: var(--ink); }
.gd-box a { color: var(--px-purple); }
.gd-box[id] { scroll-margin-top: 5.5rem; padding: 1.5rem 1.625rem; }
.gd-boxhead { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.gd-boxhead h3 { margin: 0; font-size: 1.1875rem; }
.gd-tag { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 0.3125rem 0.625rem; border-radius: 8px; background: rgba(255,255,255,0.7); color: inherit; }
html[data-theme="dark"] .gd-tag { background: rgba(255,255,255,0.08); }
.gd-row { display: grid; grid-template-columns: minmax(5.5rem, 8rem) 1fr; gap: 0.25rem 1rem; align-items: baseline; }
.gd-row > strong { color: inherit !important; font-weight: 550; font-size: 0.875rem; }
.gd-line { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.gd-arrow { color: var(--px-purple); flex: none; margin-top: 0.1rem; }
.gd-no { font-size: 1.125rem; font-weight: 550; letter-spacing: -0.03em; color: var(--px-purple); flex: none; line-height: 1.4; min-width: 2rem; }
.gd-k { display: block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: inherit; margin-bottom: 0.1875rem; }
.gd-box dl, .gd-box .gd-k + span { color: var(--muted); }
.gd-ico { display: block; font-size: 1.25rem; color: var(--px-purple); margin-bottom: 0.5rem; }
.gd-num { display: block; font-size: 1.375rem; font-weight: 550; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 0.25rem; }
.gd-sub { font-size: 0.8125rem !important; font-weight: 550; color: var(--px-purple) !important; margin-bottom: 0.625rem !important; }
.gd-formula { background: var(--panel, #14101c); color: #fff; padding: 0.875rem 1.125rem; border-radius: 12px; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.gd-quote { margin: 0 0 1rem; padding: 1.25rem 1.5rem; background: var(--px-purple-bg); border: 0; border-radius: 20px; }
.gd-quote p { font-size: 1.0625rem; font-weight: 550; line-height: 1.6; color: var(--ink); margin: 0; max-width: none; font-style: normal; }
.gd-quote cite { display: block; margin-top: 0.5rem; font-size: 0.75rem; font-style: normal; color: var(--px-purple); }
.gd-signal { border-radius: 16px; padding: 1rem 1.125rem; background: var(--px-blue-bg); color: var(--px-blue); }
.gd-signal > span:last-child { font-size: 0.75rem; line-height: 1.6; color: var(--muted); }
.gd-cycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.625rem; }
.gd-cycle__cell { border-radius: 18px; padding: 1.125rem 1.25rem; background: var(--px-purple-bg); color: var(--px-purple); }
.gd-cycle__cell:nth-child(4n+2) { background: var(--px-rose-bg); color: var(--px-rose); }
.gd-cycle__cell:nth-child(4n+3) { background: var(--px-blue-bg); color: var(--px-blue); }
.gd-cycle__cell:nth-child(4n+4) { background: var(--px-orange-bg); color: var(--px-orange); }
.gd-cycle__cell strong { display: block; font-size: 0.9375rem; font-weight: 550; color: var(--ink); margin-bottom: 0.5rem; }
.gd-cycle__cell > div { display: grid; gap: 0.25rem; }
.gd-bio { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; background: var(--px-purple-bg); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); }
.gd-bio img { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; }
.gd-bio .gd-p { max-width: none; font-size: 0.9375rem; }
@media (max-width: 760px) { .gd-2col { grid-template-columns: 1fr; } .gd-row { grid-template-columns: 1fr; } .gd-bio { grid-template-columns: 1fr; } }

/* Two more from the audit. Solid orange badges carry white text inline, which fails on the lighter
   dark-mode orange, and one row of flow chips could not shrink on a 320px phone. */
html[data-theme="dark"] [style*="background:var(--orange)"] { color: #14101c !important; }
@media (max-width: 480px) { .article-body [style*="display:flex; align-items:center; gap:16px; padding:14px 16px"] { flex-wrap: wrap; } }

/* ================================================================
   22. Article system (ar-*). One kit for every long read in /insights.
   Layout: a wide container with a numeral column beside the text, so the
   page uses the screen without stretching the 46rem reading measure.
   The per-article <style> blocks are gone; everything lives here.
   ================================================================ */
html[data-ui="prism"] .ar-wrap { max-width: 61.25rem; }
html[data-ui="prism"] .ar-wrap--plain { max-width: 50rem; }
html[data-ui="prism"] .article-body { padding-top: 0; padding-bottom: 0; }
html[data-ui="prism"] .article-body .ar-wrap > p,
html[data-ui="prism"] .article-body .ar-wrap > .ar-def,
html[data-ui="prism"] .article-body .ar-wrap--ch > .reveal { max-width: 46rem; }
html[data-ui="prism"] .ar-open { font-size: 1.1875rem; line-height: 1.8; color: var(--ink); margin: 0 0 1.25rem; }
html[data-ui="prism"] .article-body p { font-size: 1.0625rem; line-height: 1.85; color: var(--muted); margin: 0 0 1.25rem; max-width: 46rem; }
html[data-ui="prism"] .article-body p strong, html[data-ui="prism"] .article-body li strong { color: var(--ink); font-weight: 600; }
html[data-ui="prism"] .article-body p a, html[data-ui="prism"] .article-body li a:not(.ar-link) { color: var(--px-purple); text-underline-offset: 3px; }
html[data-ui="prism"] .ar-note { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }

/* Definition card under the header (the 40 to 60 word answer). */
html[data-ui="prism"] .ar-def { background: var(--px-purple-bg); border: 0; border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.75rem); margin: 0 0 2rem; }
html[data-ui="prism"] .ar-def p { margin: 0; font-size: 1rem; line-height: 1.8; color: var(--muted); }
html[data-ui="prism"] .ar-def strong { color: var(--ink); }

/* Contents: numbered tiles instead of a plain list. */
html[data-ui="prism"] .article-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.75rem); margin: 0 0 3rem; }
html[data-ui="prism"] .ar-toc__t { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); margin: 0 0 1rem; }
html[data-ui="prism"] .article-toc ol { list-style: none; margin: 0; padding: 0; columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; counter-reset: ar-toc; }
html[data-ui="prism"] .article-toc li { margin: 0; counter-increment: ar-toc; }
html[data-ui="prism"] .article-toc a { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.8125rem 1rem; border-radius: 14px; background: var(--px-purple-bg); color: var(--ink); font-size: 0.9375rem; line-height: 1.4; font-weight: 500; text-decoration: none; transition: transform 0.2s ease; }
html[data-ui="prism"] .article-toc li:nth-child(4n+2) a { background: var(--px-rose-bg); }
html[data-ui="prism"] .article-toc li:nth-child(4n+3) a { background: var(--px-blue-bg); }
html[data-ui="prism"] .article-toc li:nth-child(4n+4) a { background: var(--px-orange-bg); }
html[data-ui="prism"] .article-toc a::before { content: counter(ar-toc, decimal-leading-zero); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--px-purple); flex: none; }
html[data-ui="prism"] .article-toc li:nth-child(4n+2) a::before { color: var(--px-rose); }
html[data-ui="prism"] .article-toc li:nth-child(4n+3) a::before { color: var(--px-blue); }
html[data-ui="prism"] .article-toc li:nth-child(4n+4) a::before { color: var(--px-orange); }
@media (hover: hover) and (pointer: fine) { html[data-ui="prism"] .article-toc a:hover { transform: translateY(-2px); } }
@media (max-width: 640px) { html[data-ui="prism"] .article-toc ol { grid-template-columns: 1fr; } }

/* Chapter: numeral in its own column, text beside it. */
html[data-ui="prism"] .article-chapter { margin: 0; padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; border-top: 1px solid var(--border); scroll-margin-top: 5.5rem; display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
html[data-ui="prism"] .article-chapter > * { grid-column: 2; min-width: 0; }
html[data-ui="prism"] .article-chapter > .chapter-label { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 6rem; align-self: start; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
html[data-ui="prism"] .chapter-label small { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
html[data-ui="prism"] .chapter-label b { font-size: clamp(3rem, 6vw, 4.75rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 550; background: linear-gradient(135deg, var(--px-purple), var(--px-rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-ui="prism"] .article-chapter:nth-of-type(3n+2) .chapter-label b { background-image: linear-gradient(135deg, var(--px-rose), var(--px-orange)); }
html[data-ui="prism"] .article-chapter:nth-of-type(3n+3) .chapter-label b { background-image: linear-gradient(135deg, var(--px-blue), var(--px-purple)); }
html[data-ui="prism"] .ar-h2, html[data-ui="prism"] .article-chapter h2 { font-family: var(--font-body); font-size: clamp(1.5rem, 2.6vw, 2.125rem) !important; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); margin: 0 0 1rem !important; text-wrap: balance; }
html[data-ui="prism"] .ar-sub { font-size: 1.125rem; line-height: 1.6; font-weight: 550; letter-spacing: -0.01em; color: var(--px-purple); margin: 0 0 1.5rem; max-width: 46rem; }
html[data-ui="prism"] .article-body .ar-sub { color: var(--px-purple); font-size: 1.125rem; line-height: 1.6; }
html[data-ui="prism"] .ar-h3 { font-size: clamp(1.1875rem, 1.9vw, 1.4375rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 600; color: var(--ink); margin: 2.25rem 0 0.875rem; }
html[data-ui="prism"] .article-body h3 { font-family: var(--font-body); letter-spacing: -0.02em; font-weight: 600; }
html[data-ui="prism"] .article-body h2:not(.ar-h2):not(.gd-h2) { font-family: var(--font-body); font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; margin: 2.5rem 0 0.875rem; }
@media (max-width: 899px) {
  html[data-ui="prism"] .article-chapter { display: block; }
  html[data-ui="prism"] .article-chapter > .chapter-label { position: static; flex-direction: row; align-items: baseline; gap: 0.625rem; margin: 0 0 0.875rem; }
  html[data-ui="prism"] .chapter-label b { font-size: 2rem; letter-spacing: -0.03em; }
}

/* Quote, dark panel, checklist, case box. */
html[data-ui="prism"] .pull-quote { position: relative; background: var(--px-purple-bg); border: 0; border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem) clamp(3.5rem, 6vw, 5rem); margin: 2rem 0; }
html[data-ui="prism"] .pull-quote::before { content: '\201C'; position: absolute; left: clamp(1rem, 2.4vw, 1.75rem); top: 0.25rem; font-size: 4.5rem; line-height: 1; font-weight: 600; color: var(--px-purple); opacity: 0.5; }
html[data-ui="prism"] .pull-quote p, html[data-ui="prism"] .article-body .pull-quote p { font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.45; letter-spacing: -0.02em; font-weight: 550; font-style: normal; color: var(--ink); margin: 0; max-width: none; }
html[data-ui="prism"] .ask-box, html[data-ui="prism"] .case-study-box, html[data-ui="prism"] .ar-dark { position: relative; overflow: hidden; background: var(--panel, #14101c); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.25rem); margin: 2rem 0; }
html[data-ui="prism"] .ask-box::before, html[data-ui="prism"] .case-study-box::before, html[data-ui="prism"] .ar-dark::before { content: ''; position: absolute; right: -4rem; top: -4rem; width: 14rem; height: 14rem; border-radius: 50%; background: radial-gradient(circle, rgba(167, 114, 255, 0.35), rgba(255, 110, 150, 0.12) 55%, transparent 70%); pointer-events: none; }
html[data-ui="prism"] .ask-box > *, html[data-ui="prism"] .case-study-box > *, html[data-ui="prism"] .ar-dark > * { position: relative; }
html[data-ui="prism"] .ask-box h4, html[data-ui="prism"] .case-study-box h4, html[data-ui="prism"] .ar-dark__k { font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #ffb27a; margin: 0 0 0.75rem; display: block; }
html[data-ui="prism"] .ask-box p, html[data-ui="prism"] .case-study-box p, html[data-ui="prism"] .ar-dark p, html[data-ui="prism"] .article-body .ask-box p, html[data-ui="prism"] .article-body .case-study-box p, html[data-ui="prism"] .article-body .ar-dark p { color: #e6e1ee; font-size: 1rem; line-height: 1.75; margin: 0 0 0.75rem; max-width: none; }
html[data-ui="prism"] .ask-box p:last-child, html[data-ui="prism"] .case-study-box p:last-child, html[data-ui="prism"] .ar-dark p:last-child { margin-bottom: 0; }
html[data-ui="prism"] .ask-box strong, html[data-ui="prism"] .case-study-box strong, html[data-ui="prism"] .ar-dark strong, html[data-ui="prism"] .article-body .ask-box strong, html[data-ui="prism"] .article-body .case-study-box strong { color: #fff; }
html[data-ui="prism"] .ar-dark h3 { color: #fff; font-size: 1.1875rem; margin: 0 0 0.75rem; }
html[data-ui="prism"] .ar-close { margin-top: clamp(2.5rem, 5vw, 4rem); }
html[data-ui="prism"] .checklist-box { background: var(--px-blue-bg); border: 0; border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.875rem); margin: 2rem 0; }
html[data-ui="prism"] .checklist-box h4 { font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--px-blue); margin: 0 0 1rem; }
html[data-ui="prism"] .checklist-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
html[data-ui="prism"] .article-body .checklist-box li { background: var(--bg); border: 0; border-radius: 14px; padding: 0.875rem 1rem 0.875rem 3rem; font-size: 0.9375rem; line-height: 1.65; color: var(--muted); margin: 0; position: relative; }
html[data-ui="prism"] .article-body .checklist-box li::before { content: '\2713'; position: absolute; left: 1rem; top: 0.875rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--px-blue); color: #fff; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }
html[data-ui="prism"] .article-body ul:not(.checklist-box ul):not([class]) li::before { color: var(--px-purple); }

/* Tables: one look for every table class the articles use. */
html[data-ui="prism"] .table-scroll { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin: 1.75rem 0; }
html[data-ui="prism"] .table-scroll__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html[data-ui="prism"] .wave-table, html[data-ui="prism"] .skill-table, html[data-ui="prism"] .plan-table, html[data-ui="prism"] .role-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.9375rem; }
html[data-ui="prism"] .role-table { min-width: 36rem; }
html[data-ui="prism"] .wave-table th, html[data-ui="prism"] .skill-table th, html[data-ui="prism"] .plan-table th, html[data-ui="prism"] .role-table th { background: var(--panel, #14101c); color: #fff; padding: 0.875rem 1.125rem; text-align: left; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.01em; text-transform: none; white-space: nowrap; }
html[data-ui="prism"] .wave-table td, html[data-ui="prism"] .skill-table td, html[data-ui="prism"] .plan-table td, html[data-ui="prism"] .role-table td { padding: 0.9375rem 1.125rem; border-bottom: 1px solid var(--border); color: var(--muted); line-height: 1.65; vertical-align: top; }
html[data-ui="prism"] .wave-table td:first-child, html[data-ui="prism"] .skill-table td:first-child, html[data-ui="prism"] .role-table td:first-child { color: var(--ink); font-weight: 600; }
html[data-ui="prism"] .plan-table td:first-child { color: var(--px-purple); font-weight: 600; white-space: nowrap; width: 1%; }
html[data-ui="prism"] .wave-table tr:last-child td, html[data-ui="prism"] .skill-table tr:last-child td, html[data-ui="prism"] .plan-table tr:last-child td, html[data-ui="prism"] .role-table tr:last-child td { border-bottom: 0; }
html[data-ui="prism"] .wave-table tbody tr:nth-child(even) td, html[data-ui="prism"] .skill-table tbody tr:nth-child(even) td, html[data-ui="prism"] .plan-table tbody tr:nth-child(even) td { background: var(--surface); }
@media (max-width: 700px) {
  html[data-ui="prism"] .wave-table thead, html[data-ui="prism"] .skill-table thead, html[data-ui="prism"] .plan-table thead { display: none; }
  html[data-ui="prism"] .wave-table, html[data-ui="prism"] .wave-table tbody, html[data-ui="prism"] .wave-table tr, html[data-ui="prism"] .wave-table td,
  html[data-ui="prism"] .skill-table, html[data-ui="prism"] .skill-table tbody, html[data-ui="prism"] .skill-table tr, html[data-ui="prism"] .skill-table td,
  html[data-ui="prism"] .plan-table, html[data-ui="prism"] .plan-table tbody, html[data-ui="prism"] .plan-table tr, html[data-ui="prism"] .plan-table td { display: block; width: 100%; }
  html[data-ui="prism"] .wave-table tr, html[data-ui="prism"] .skill-table tr, html[data-ui="prism"] .plan-table tr { padding: 1rem 1.125rem; border-bottom: 1px solid var(--border); }
  html[data-ui="prism"] .wave-table tr:last-child, html[data-ui="prism"] .skill-table tr:last-child, html[data-ui="prism"] .plan-table tr:last-child { border-bottom: 0; }
  html[data-ui="prism"] .wave-table td, html[data-ui="prism"] .skill-table td, html[data-ui="prism"] .plan-table td { border: 0; padding: 0; background: none !important; }
  html[data-ui="prism"] .wave-table td:first-child, html[data-ui="prism"] .skill-table td:first-child, html[data-ui="prism"] .plan-table td:first-child { width: 100%; margin-bottom: 0.375rem; white-space: normal; }
}

/* Cards: stats, principles, domains, phases, question and answer, rewrites. */
html[data-ui="prism"] .metric-row, html[data-ui="prism"] .metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.9375rem; margin: 2rem 0; }
html[data-ui="prism"] .metric-mini, html[data-ui="prism"] .metric-card { text-align: left; border: 0; border-radius: 21px; padding: 1.25rem 1.375rem; }
html[data-ui="prism"] .metric-mini__value, html[data-ui="prism"] .metric-card__value { display: block; font-family: var(--font-body); font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1.05; color: var(--px-purple); }
html[data-ui="prism"] .metric-mini:nth-child(4n+2) .metric-mini__value, html[data-ui="prism"] .metric-card:nth-child(4n+2) .metric-card__value { color: var(--px-rose); }
html[data-ui="prism"] .metric-mini:nth-child(4n+3) .metric-mini__value, html[data-ui="prism"] .metric-card:nth-child(4n+3) .metric-card__value { color: var(--px-blue); }
html[data-ui="prism"] .metric-mini:nth-child(4n+4) .metric-mini__value, html[data-ui="prism"] .metric-card:nth-child(4n+4) .metric-card__value { color: var(--px-orange); }
html[data-ui="prism"] .metric-mini__label, html[data-ui="prism"] .metric-card__label { display: block; margin-top: 0.375rem; font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; }
html[data-ui="prism"] .metric-card__goal { display: block; margin-top: 0.375rem; font-family: var(--font-body); font-size: 0.8125rem; color: var(--muted); }
html[data-ui="prism"] .principle-grid, html[data-ui="prism"] .dom-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9375rem; margin: 2rem 0; }
html[data-ui="prism"] .principle-card, html[data-ui="prism"] .dom-card { padding: 1.375rem; border: 0; border-radius: 22px; }
html[data-ui="prism"] .principle-card__num { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 0.5rem; color: var(--px-purple); }
html[data-ui="prism"] .principle-card:nth-child(4n+2) .principle-card__num, html[data-ui="prism"] .dom-card:nth-child(4n+2) h4 { color: var(--px-rose); }
html[data-ui="prism"] .principle-card:nth-child(4n+3) .principle-card__num { color: var(--px-blue); }
html[data-ui="prism"] .principle-card:nth-child(4n+4) .principle-card__num { color: var(--px-orange); }
html[data-ui="prism"] .principle-card__title { font-size: 1.0625rem; font-weight: 600; color: var(--ink); margin: 0 0 0.375rem; }
html[data-ui="prism"] .principle-card p, html[data-ui="prism"] .article-body .principle-card p { font-size: 0.9375rem; line-height: 1.65; margin: 0; }
html[data-ui="prism"] .dom-card h4 { font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); margin: 0 0 0.75rem; }
html[data-ui="prism"] .dom-card ul { margin: 0; padding: 0; list-style: none; }
html[data-ui="prism"] .article-body .dom-card li { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); margin: 0 0 0.5rem; padding-left: 1.25rem; }
html[data-ui="prism"] .article-body .dom-card li::before { content: ''; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: currentColor; top: 0.6em; font-size: 0; color: var(--px-purple); }
html[data-ui="prism"] .phase { background: var(--px-purple-bg); border: 0; border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.75rem); margin: 1.5rem 0; }
html[data-ui="prism"] .phase:nth-of-type(4n+2) { background: var(--px-rose-bg); }
html[data-ui="prism"] .phase:nth-of-type(4n+3) { background: var(--px-blue-bg); }
html[data-ui="prism"] .phase h3 { font-size: 1.25rem; letter-spacing: -0.025em; margin: 0 0 0.25rem; color: var(--ink); }
html[data-ui="prism"] .phase .phase__goal { display: block; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--px-purple); margin-bottom: 0.875rem; }
html[data-ui="prism"] .phase p { font-size: 1rem; line-height: 1.75; margin: 0 0 0.75rem; }
html[data-ui="prism"] .qa { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.75rem); margin: 1.5rem 0; }
html[data-ui="prism"] .qa__n { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; color: var(--px-purple); }
html[data-ui="prism"] .qa__q { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; color: var(--ink); margin: 0 0 1.25rem; }
html[data-ui="prism"] .qa__lbl, html[data-ui="prism"] .rw__lbl { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.375rem; }
html[data-ui="prism"] .qa__block { margin-bottom: 1rem; }
html[data-ui="prism"] .qa__block p, html[data-ui="prism"] .article-body .qa__block p { font-size: 0.9375rem; line-height: 1.75; margin: 0; }
html[data-ui="prism"] .qa__strong { border-left: 0; background: var(--px-purple-bg); border-radius: 16px; padding: 1rem 1.125rem; }
html[data-ui="prism"] .qa__strong .qa__lbl { color: var(--px-purple); }
html[data-ui="prism"] .qa__strong p { color: var(--ink); }
html[data-ui="prism"] .qa__trap { border-left: 0; background: var(--px-rose-bg); border-radius: 16px; padding: 1rem 1.125rem; }
html[data-ui="prism"] .qa__trap .qa__lbl { color: var(--px-rose); }
html[data-ui="prism"] .rw { border: 0; border-radius: 22px; overflow: hidden; margin: 1.5rem 0; }
html[data-ui="prism"] .rw__bad { background: var(--px-rose-bg); border: 0; padding: 1.125rem 1.375rem; }
html[data-ui="prism"] .rw__good { background: var(--px-blue-bg); border: 0; padding: 1.125rem 1.375rem; }
html[data-ui="prism"] .rw__bad .rw__lbl { color: var(--px-rose); }
html[data-ui="prism"] .rw__good .rw__lbl { color: var(--px-blue); }
html[data-ui="prism"] .rw p, html[data-ui="prism"] .article-body .rw p { font-size: 1rem; line-height: 1.7; margin: 0; }
html[data-ui="prism"] .rw__good p { color: var(--ink); }
html[data-ui="prism"] .health-formula { background: var(--px-purple-bg); border: 0; border-radius: 24px; padding: 1.5rem; margin: 2rem 0; text-align: center; }
html[data-ui="prism"] .health-formula__eq { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
html[data-ui="prism"] .health-formula__eq span { color: var(--px-purple); }
html[data-ui="prism"] .stack-flow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
html[data-ui="prism"] .stack-pill { background: var(--px-blue-bg); border: 0; border-radius: 10px; padding: 0.4375rem 0.875rem; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 550; color: var(--px-blue); }
html[data-ui="prism"] .stack-pill--orange { background: var(--px-purple-bg); color: var(--px-purple); border: 0; }
html[data-ui="prism"] .gh-stage { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.03em; color: var(--px-purple); }
html[data-ui="prism"] .chapter-svg { display: block; margin: 2rem auto; max-width: 40rem; width: 100%; height: auto; }
@media (max-width: 640px) {
  html[data-ui="prism"] .principle-grid, html[data-ui="prism"] .dom-split { grid-template-columns: 1fr; }
  html[data-ui="prism"] .metric-row, html[data-ui="prism"] .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Flow component (steps and arrows) in the Prism palette. */
html[data-ui="prism"] .flow { gap: 0.625rem; margin: 2rem 0; }
html[data-ui="prism"] .flow__step { background: var(--px-purple-bg); border: 0; border-radius: 20px; padding: 1.125rem 1.25rem; }
html[data-ui="prism"] .flow > .flow__step:nth-of-type(4n+2) { background: var(--px-rose-bg); }
html[data-ui="prism"] .flow > .flow__step:nth-of-type(4n+3) { background: var(--px-blue-bg); }
html[data-ui="prism"] .flow > .flow__step:nth-of-type(4n+4) { background: var(--px-orange-bg); }
html[data-ui="prism"] .flow__step--hub { background: var(--px-purple-bg); }
html[data-ui="prism"] .flow__step--ink { background: var(--panel, #14101c) !important; }
html[data-ui="prism"] .flow__k { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; color: var(--px-purple); }
html[data-ui="prism"] .flow__step--ink .flow__k { color: #ffb27a; }
html[data-ui="prism"] .flow .flow__step p { font-size: 0.9375rem; line-height: 1.65; }
html[data-ui="prism"] .flow__arrow { color: var(--px-purple); }

/* Related link cards and the closing buttons. */
html[data-ui="prism"] .ar-link { display: block; padding: 1.25rem 1.5rem; background: var(--px-purple-bg); border: 0; border-radius: 22px; text-decoration: none; margin: 2rem 0; transition: transform 0.2s ease; }
html[data-ui="prism"] .ar-link__k { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); margin-bottom: 0.5rem; }
html[data-ui="prism"] .ar-link__t { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.375rem; }
html[data-ui="prism"] .ar-link__d { display: block; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); margin-bottom: 0.75rem; }
html[data-ui="prism"] .ar-link__go { font-size: 0.875rem; font-weight: 600; color: var(--px-purple); }
@media (hover: hover) and (pointer: fine) { html[data-ui="prism"] a.ar-link:hover { transform: translateY(-3px); } }
html[data-ui="prism"] .ar-actions { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border); }

/* Generic building blocks for the widget style articles. */
html[data-ui="prism"] .ar-k { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 1rem; }
html[data-ui="prism"] .ar-k--p { color: var(--px-purple); }
html[data-ui="prism"] .ar-k--c { text-align: center; }
html[data-ui="prism"] .ar-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.75rem); margin: 2rem 0; }
html[data-ui="prism"] .ar-panel--a { background: var(--px-purple-bg); border: 0; }
html[data-ui="prism"] .ar-panel--b { background: var(--px-rose-bg); border: 0; }
html[data-ui="prism"] .ar-panel--c { background: var(--px-blue-bg); border: 0; }
html[data-ui="prism"] .ar-panel--d { background: var(--px-orange-bg); border: 0; }
html[data-ui="prism"] .ar-panel--center { text-align: center; }
html[data-ui="prism"] .ar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr)); gap: 0.75rem; margin: 2rem 0; }
html[data-ui="prism"] .ar-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9375rem; }
html[data-ui="prism"] .ar-panel .ar-grid { margin: 0; }
html[data-ui="prism"] .ar-tile { border-radius: 16px; padding: 0.875rem 1rem; background: var(--px-purple-bg); color: var(--ink); font-size: 0.9375rem; line-height: 1.5; min-width: 0; }
html[data-ui="prism"] .ar-grid > .ar-tile:nth-child(4n+2) { background: var(--px-rose-bg); }
html[data-ui="prism"] .ar-grid > .ar-tile:nth-child(4n+3) { background: var(--px-blue-bg); }
html[data-ui="prism"] .ar-grid > .ar-tile:nth-child(4n+4) { background: var(--px-orange-bg); }
html[data-ui="prism"] .ar-tile--flat { background: var(--surface) !important; border: 1px solid var(--border); }
html[data-ui="prism"] .ar-tile b { color: var(--ink); font-weight: 600; }
html[data-ui="prism"] .ar-big { font-size: clamp(1.625rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; color: var(--ink); margin: 0.5rem 0; }
html[data-ui="prism"] .ar-ico { color: var(--px-purple); font-weight: 600; }
html[data-ui="prism"] .ar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
html[data-ui="prism"] .ar-list li { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.5625rem 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
html[data-ui="prism"] .ar-list li:last-child { border-bottom: 0; }
html[data-ui="prism"] .ar-list li::before { content: ''; flex: none; width: 0.4375rem; height: 0.4375rem; margin-top: 0.5625rem; border-radius: 50%; background: var(--px-purple); }
html[data-ui="prism"] .ar-list--off li { text-decoration: line-through; }
html[data-ui="prism"] .ar-list--off li::before { background: var(--muted); }
html[data-ui="prism"] .ar-list--ink li { color: var(--ink); font-weight: 500; }
html[data-ui="prism"] .ar-bar { height: 1.75rem; border-radius: 10px; background: var(--px-purple-bg); overflow: hidden; }
html[data-ui="prism"] .ar-bar > i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--px-purple), var(--px-rose)); }
html[data-ui="prism"] .ar-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
html[data-ui="prism"] .ar-row--c { justify-content: center; }
html[data-ui="prism"] .ar-chip { padding: 0.5rem 0.875rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted); }
html[data-ui="prism"] .ar-chip--hot { background: var(--px-purple-bg); border-color: transparent; color: var(--px-purple); font-weight: 600; }
html[data-ui="prism"] .ar-arrow { color: var(--px-purple); font-weight: 600; }
@media (max-width: 640px) { html[data-ui="prism"] .ar-grid--2 { grid-template-columns: 1fr; } }
html[data-ui="prism"] .ar-dark .ar-k, html[data-ui="prism"] .ar-dark .ar-k--p { color: #ffb27a; }
html[data-ui="prism"] .ar-dark .ar-big, html[data-ui="prism"] .ar-dark .ar-tile { color: #fff; }
html[data-ui="prism"] .flow .flow__step--ink p, html[data-ui="prism"] .flow .flow__step--ink li { color: #e6e1ee; }
/* "Continue exploring" row at the foot of an article. */
html[data-ui="prism"] .ar-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0.9375rem; }
html[data-ui="prism"] .ar-more .ar-link { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
html[data-ui="prism"] .ar-more .ar-link:nth-child(4n+2) { background: var(--px-rose-bg); }
html[data-ui="prism"] .ar-more .ar-link:nth-child(4n+2) .ar-link__k { color: var(--px-rose); }
html[data-ui="prism"] .ar-more .ar-link:nth-child(4n+3) { background: var(--px-blue-bg); }
html[data-ui="prism"] .ar-more .ar-link:nth-child(4n+3) .ar-link__k { color: var(--px-blue); }
html[data-ui="prism"] .ar-more .ar-link:nth-child(4n+4) { background: var(--px-orange-bg); }
html[data-ui="prism"] .ar-more .ar-link:nth-child(4n+4) .ar-link__k { color: var(--px-orange); }
html[data-ui="prism"] .ar-more .ar-link__d { margin: 0; }

/* About: journey text and the philosophy panel. */
html[data-ui="prism"] .ab-jh { font-family: var(--font-body); font-size: clamp(1.375rem, 2.3vw, 1.875rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); margin: 0.5rem 0 1rem; max-width: none; text-wrap: balance; }
html[data-ui="prism"] .ab-jp { font-size: 1.0625rem; line-height: 1.8; color: var(--muted); margin: 0 0 1rem; }
html[data-ui="prism"] .journey-chapter__number { font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); }
.ab-phil p + p { margin-top: 0.875rem; }
.ab-phil .ab-phil__act { margin-top: 1.5rem; }
.ab-phil .ab-phil__act .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
/* Layout helpers for the guide pages (replace inline flex and grid wrappers). */
.gd-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.gd-autogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gd-flexrow { display: flex; gap: 1.25rem; align-items: flex-start; }
@media (max-width: 480px) { .gd-flexrow { flex-direction: column; gap: 0.5rem; } }

/* ---- 22b. Widget articles: the future of CS, the last CSM ---- */
/* the-future-of-customer-success: one-off widget rules (ar-fu-*) */
html[data-ui="prism"] .ar-fu-item { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
html[data-ui="prism"] .ar-fu-item--top { align-items: flex-start; }
html[data-ui="prism"] .ar-fu-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--px-purple); }
html[data-ui="prism"] .ar-grid > .ar-tile.ar-fu-solid { background: var(--bg) !important; }
html[data-ui="prism"] .ar-fu-c { text-align: center; }
html[data-ui="prism"] .ar-fu-c.ar-fu-item { justify-content: center; }
html[data-ui="prism"] .ar-fu-ico { display: block; font-size: 1.25rem; line-height: 1; margin-bottom: 0.5rem; }
html[data-ui="prism"] .ar-fu-tight { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
html[data-ui="prism"] .ar-fu-block { margin: 2rem 0; }
html[data-ui="prism"] .ar-fu-block > .ar-grid { margin: 0; }
html[data-ui="prism"] .ar-fu-t { display: block; font-size: 0.9375rem; line-height: 1.4; margin-bottom: 0.25rem; }
html[data-ui="prism"] .ar-fu-metric { padding: 1.5rem 1.25rem; }
html[data-ui="prism"] .ar-fu-big { display: block; margin: 0 0 0.5rem; color: var(--px-purple); }
html[data-ui="prism"] .ar-grid > .ar-tile:nth-child(4n+2) .ar-fu-big { color: var(--px-rose); }
html[data-ui="prism"] .ar-grid > .ar-tile:nth-child(4n+3) .ar-fu-big { color: var(--px-blue); }
html[data-ui="prism"] .ar-fu-warn, html[data-ui="prism"] .ar-fu-check { flex: none; color: var(--px-rose); }
html[data-ui="prism"] .ar-fu-check { color: var(--px-purple); margin-top: 0.1875rem; }

/* two panels side by side: no outer margin, equal height */
html[data-ui="prism"] .ar-fu-pair { align-items: stretch; }
html[data-ui="prism"] .ar-fu-pair > .ar-panel { margin: 0; }
html[data-ui="prism"] .ar-fu-mute li::before { background: var(--muted); }
html[data-ui="prism"] .ar-fu-arrows li::before { display: none; }
html[data-ui="prism"] .ar-fu-arrows li { gap: 0.5rem; }
html[data-ui="prism"] .ar-fu-checks li::before { content: '\2713'; width: auto; height: auto; margin-top: 0; border-radius: 0; background: none; color: var(--px-purple); font-size: 0.875rem; font-weight: 700; line-height: 1.55; }

/* captions and chips */
html[data-ui="prism"] .ar-fu-cap { margin: 1rem 0 0; text-align: center; font-style: italic; max-width: none; font-size: 0.8125rem; line-height: 1.6; }
html[data-ui="prism"] .article-body p.ar-fu-cap { font-size: 0.875rem; line-height: 1.6; margin: 1rem 0 0; max-width: none; }
html[data-ui="prism"] .article-body p.ar-fu-cap--lead { text-align: left; margin: -0.25rem 0 1.25rem; }
html[data-ui="prism"] .ar-fu-chip { background: var(--bg); border-color: transparent; color: var(--ink); font-size: 0.875rem; }
html[data-ui="prism"] .ar-fu-struck { color: var(--muted); text-decoration: line-through; }
html[data-ui="prism"] .ar-fu-gap { margin-bottom: 1.5rem; }

/* old support model: chips and arrows, stacking on phones */
html[data-ui="prism"] .ar-fu-flow { gap: 0.5rem 0.625rem; }
html[data-ui="prism"] .ar-fu-flow .ar-chip { background: var(--bg); border-color: transparent; font-size: 0.875rem; }
@media (max-width: 640px) {
  html[data-ui="prism"] .ar-fu-flow { flex-direction: column; align-items: stretch; }
  html[data-ui="prism"] .ar-fu-flow .ar-chip { text-align: center; }
  html[data-ui="prism"] .ar-fu-flow .ar-arrow { align-self: center; transform: rotate(90deg); line-height: 1; }
}

/* the evolution: from, arrow, to */
html[data-ui="prism"] .ar-fu-evo { display: grid; gap: 0.625rem; }
html[data-ui="prism"] .ar-fu-evo__row { display: grid; grid-template-columns: 9.5rem auto minmax(0, 1fr); align-items: center; column-gap: 1rem; padding: 0.9375rem 1.125rem; border-radius: 16px; background: var(--bg); }
html[data-ui="prism"] .ar-fu-evo__from { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
html[data-ui="prism"] .ar-fu-evo__to { font-size: 0.9375rem; font-weight: 500; line-height: 1.5; color: var(--px-purple); }
@media (max-width: 640px) {
  html[data-ui="prism"] .ar-fu-evo__row { grid-template-columns: 1fr; row-gap: 0.375rem; }
  html[data-ui="prism"] .ar-fu-evo__row .ar-arrow { transform: rotate(90deg); justify-self: start; }
}

/* continue exploring: link cards in a grid */
html[data-ui="prism"] .ar-fu-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
html[data-ui="prism"] .ar-fu-cards .ar-link { margin: 0; height: 100%; }
html[data-ui="prism"] .ar-fu-cards .ar-link__t { margin-top: 0; font-family: var(--font-body); }
html[data-ui="prism"] .ar-fu-cards .ar-link__d { margin-bottom: 0; }

/* ar-list inside .article-body: neutralize the legacy absolute-positioned bullet and li margin from base.css */
html[data-ui="prism"] .article-body .ar-list li { position: static; margin: 0; font-size: 0.9375rem; line-height: 1.55; }
html[data-ui="prism"] .article-body .ar-list li::before { position: static; top: auto; left: auto; font-size: 0; }
html[data-ui="prism"] .article-body .ar-list.ar-fu-checks li::before { font-size: 0.875rem; }
html[data-ui="prism"] .article-body .ar-list.ar-fu-arrows li::before { display: none; }

/* The Last CSM Has Already Been Hired: one-off widget rules (ar-lc-*), on top of section 22. */
html[data-ui="prism"] .ar-lc-mt { margin-top: 1.25rem; }
html[data-ui="prism"] .ar-lc-off { text-decoration: line-through; }
html[data-ui="prism"] .ar-lc-soft { border: 0; background: var(--surface); }
html[data-ui="prism"] .ar-lc-host { position: relative; overflow: hidden; }
html[data-ui="prism"] .ar-lc-host > .ar-grid { position: relative; }
html[data-ui="prism"] .ar-lc-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.06; pointer-events: none; }
html[data-ui="prism"] .ar-lc-bg path { stroke: var(--px-purple); }
html[data-ui="prism"] .ar-lc-head { gap: 0.5rem; margin-bottom: 0.25rem; flex-wrap: nowrap; }
html[data-ui="prism"] .ar-grid > .ar-panel { margin: 0; }
html[data-ui="prism"] .ar-grid--2 { margin: 2rem 0; }
html[data-ui="prism"] .ar-grid > .ar-panel .ar-k { margin-bottom: 1rem; }

/* Small paragraphs inside widgets (beats the .article-body p rule). */
html[data-ui="prism"] .article-body p.ar-lc-p { font-size: 0.875rem; line-height: 1.6; margin: 0; max-width: none; }
html[data-ui="prism"] .article-body p.ar-lc-cap { margin-top: 1.25rem; }

/* "Yet You Get" */
html[data-ui="prism"] .ar-lc-lead-row { flex-wrap: nowrap; align-items: flex-start; gap: 0.625rem; padding: 0.5rem 0 1rem; }
html[data-ui="prism"] .ar-lc-check { flex: none; margin-top: 0.125rem; }
html[data-ui="prism"] .ar-lc-check circle, html[data-ui="prism"] .ar-lc-check path { stroke: var(--px-purple); }
html[data-ui="prism"] .ar-lc-lead { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }

/* Eliminated waits */
html[data-ui="prism"] .ar-lc-grid-sm { grid-template-columns: repeat(auto-fit, minmax(min(8.75rem, 100%), 1fr)); gap: 0.625rem; }
html[data-ui="prism"] .ar-lc-elim { text-align: center; padding: 1rem 0.75rem; }
html[data-ui="prism"] .ar-lc-elim .ar-k { margin: 0 0 0.625rem; }
html[data-ui="prism"] .ar-lc-waiting { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html[data-ui="prism"] .ar-lc-name { display: block; margin-top: 0.25rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--px-purple); line-height: 1.25; }
html[data-ui="prism"] .ar-lc-name--ink { color: var(--ink); }

/* Speed gap */
html[data-ui="prism"] .ar-lc-bars { display: flex; flex-direction: column; gap: 1.25rem; }
html[data-ui="prism"] .ar-lc-split { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 1rem; margin-bottom: 0.5rem; }
html[data-ui="prism"] .ar-lc-lbl { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
html[data-ui="prism"] .ar-lc-lbl--mute { font-weight: 500; color: var(--muted); }
html[data-ui="prism"] .ar-lc-val { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.75rem; color: var(--muted); }
html[data-ui="prism"] .ar-lc-val--hot { color: var(--px-purple); font-weight: 600; }
html[data-ui="prism"] .ar-lc-w96 { width: 96%; }
html[data-ui="prism"] .ar-lc-w8 { width: 8%; }
html[data-ui="prism"] .ar-lc-bar--mute { background: var(--bg); }
html[data-ui="prism"] .ar-lc-bar--mute > i { background: var(--muted); }
html[data-ui="prism"] .ar-lc-tags { display: block; margin-top: 0.5rem; }

/* Flow: node, arrow, node. Stacks on phones with the arrow turned down. */
html[data-ui="prism"] .ar-lc-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.25rem; }
html[data-ui="prism"] .ar-lc-node { text-align: center; padding: 1.25rem; border-radius: 20px; background: var(--surface); min-width: 0; }
html[data-ui="prism"] .ar-lc-node .ar-k { margin: 0 0 0.375rem; }
html[data-ui="prism"] .ar-lc-node--old { background: var(--bg); }
html[data-ui="prism"] .ar-lc-node--hot { background: var(--px-purple-bg); }
html[data-ui="prism"] .ar-lc-role { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
html[data-ui="prism"] .ar-lc-role.ar-lc-off { color: var(--muted); }
html[data-ui="prism"] .ar-lc-mid { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
html[data-ui="prism"] .ar-lc-mid .ar-k { margin: 0; text-align: center; }
html[data-ui="prism"] .ar-lc-arrow path { stroke: var(--px-purple); }
html[data-ui="prism"] .ar-lc-down { text-align: center; margin: 1rem 0; }
html[data-ui="prism"] .ar-lc-goal { text-align: center; padding: 1.25rem; border-radius: 20px; background: var(--px-purple-bg); }
html[data-ui="prism"] .ar-lc-goal .ar-lc-name { font-size: 1.25rem; margin: 0 0 0.5rem; }
@media (max-width: 640px) {
  html[data-ui="prism"] .ar-lc-flow { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  html[data-ui="prism"] .ar-lc-arrow--h { transform: rotate(90deg); margin: 0.75rem 0; }
}

/* Two paths */
html[data-ui="prism"] .ar-lc-glyph { font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; color: var(--muted); font-weight: 600; }
html[data-ui="prism"] .ar-lc-glyph--hot { color: var(--px-purple); }
html[data-ui="prism"] .ar-lc-q { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 1.25rem; }
html[data-ui="prism"] .ar-lc-q--hot { color: var(--px-purple); }

/* Related reading */
html[data-ui="prism"] .ar-lc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
html[data-ui="prism"] .ar-lc-links > .ar-link { margin: 0; }
html[data-ui="prism"] .ar-lc-links .ar-k { margin-bottom: 0.5rem; }

/* ar-list inside .article-body: neutralise the base ul li arrow and padding. */
html[data-ui="prism"] .article-body ul.ar-list { margin: 0; }
html[data-ui="prism"] .article-body ul.ar-list li { position: static; padding-left: 0; margin-bottom: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
html[data-ui="prism"] .article-body ul.ar-list li::before { position: static; content: ''; font-size: 0; top: auto; left: auto; width: 0.4375rem; height: 0.4375rem; margin-top: 0.5625rem; border-radius: 50%; background: var(--muted); }

/* Hot chips sitting on a purple tint need their own ground. */
html[data-ui="prism"] .ar-panel--a .ar-chip--hot, html[data-ui="prism"] .ar-lc-node--hot .ar-chip--hot { background: var(--surface); }
html[data-ui="prism"] .ar-panel--a .ar-chip, html[data-ui="prism"] .ar-panel--c .ar-chip { border-color: transparent; }
html[data-ui="prism"] .ar-lc-flow { align-items: stretch; }
html[data-ui="prism"] .ar-lc-flow > .ar-lc-mid { align-self: center; }
html[data-ui="prism"] .ar-lc-node { display: flex; flex-direction: column; justify-content: center; }

/* Quotes in article bodies take the Prism look, not the old orange stripe. */
html[data-ui="prism"] .article-body blockquote { border: 0; background: var(--px-purple-bg); border-radius: 24px; padding: 1.5rem 1.75rem; margin: 2rem 0; }
html[data-ui="prism"] .article-body blockquote p { font-size: 1.1875rem; line-height: 1.5; font-weight: 550; font-style: normal; color: var(--ink); margin: 0; }

/* Box titles are labels, not headings (keeps the heading outline clean). */
html[data-ui="prism"] .article-body .ar-bt { display: block; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--px-purple); margin: 0 0 0.875rem; max-width: none; }
html[data-ui="prism"] .article-body .ask-box .ar-bt, html[data-ui="prism"] .article-body .case-study-box .ar-bt, html[data-ui="prism"] .article-body .ar-dark .ar-bt { color: #ffb27a; }
html[data-ui="prism"] .article-body .checklist-box .ar-bt { color: var(--px-blue); }
html[data-ui="prism"] .article-body .dom-card:nth-child(4n+2) .ar-bt { color: var(--px-rose); }
html[data-ui="prism"] .article-body .dom-card:nth-child(4n+3) .ar-bt { color: var(--px-blue); }
html[data-ui="prism"] .article-body .dom-card:nth-child(4n+4) .ar-bt { color: var(--px-orange); }
/* Count badges beside tab and index labels: full opacity so they keep their contrast. */
.rs-tabs button i, .gl-nav i { opacity: 1; }
@media (max-width: 640px) {
  html[data-ui="prism"] .pull-quote { padding-left: 2.75rem; }
  html[data-ui="prism"] .pull-quote::before { font-size: 3.5rem; left: 0.875rem; }
}

/* ---- 22c. Platforms, proactive, building, getting hired ---- */
/* One-off article widgets, Prism look. Prefix ar-pl-. Tokens only. */

/* Hero card lead line (cs-platforms) */
html[data-ui="prism"] .article-body .ar-pl-lead { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); max-width: 32.5rem; margin: 0.75rem auto 0; }

/* Yesterday vs Now, and the two questions: two soft columns, no hairline box */
html[data-ui="prism"] .ar-pl-flow { margin: 1rem 0 2rem; }
html[data-ui="prism"] .ar-pl-col { background: var(--px-rose-bg); border: 0; border-radius: 22px; padding: clamp(1.25rem, 2.5vw, 1.75rem); min-width: 0; }
html[data-ui="prism"] .ar-pl-col--new { background: var(--px-purple-bg); }
html[data-ui="prism"] .ar-pl-col .ar-k { margin-bottom: 1rem; }
html[data-ui="prism"] .ar-pl-steps { display: flex; flex-direction: column; gap: 0.625rem; }
html[data-ui="prism"] .ar-pl-step { display: flex; align-items: center; gap: 0.75rem; }
html[data-ui="prism"] .ar-pl-n { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 0.75rem; font-weight: 600; display: grid; place-items: center; }
html[data-ui="prism"] .ar-pl-col--new .ar-pl-n { background: var(--px-purple); color: var(--bg); }
html[data-ui="prism"] .ar-pl-t { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); min-width: 0; }
html[data-ui="prism"] .ar-pl-col--new .ar-pl-t { color: var(--ink); font-weight: 500; }

/* Three layer stack */
html[data-ui="prism"] .ar-pl-stack { display: flex; flex-direction: column; gap: 0.5rem; }
html[data-ui="prism"] .ar-pl-layer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; padding: 1.125rem 1.375rem; background: var(--bg); border-radius: 16px; }
html[data-ui="prism"] .ar-pl-layer > div { min-width: 0; flex: 1 1 14rem; }
html[data-ui="prism"] .ar-pl-layer .ar-k { margin: 0; }
html[data-ui="prism"] .ar-pl-layer__t { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
html[data-ui="prism"] .ar-pl-layer__d { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); margin-top: 0.125rem; }
html[data-ui="prism"] .ar-pl-layer--off .ar-pl-layer__t { color: var(--muted); text-decoration: line-through; font-weight: 500; }
html[data-ui="prism"] .ar-pl-layer--hot { background: var(--px-purple); }
html[data-ui="prism"] .ar-pl-layer--hot .ar-pl-layer__t { color: var(--bg); }
html[data-ui="prism"] .ar-pl-layer--hot .ar-pl-layer__d { color: var(--bg); opacity: 0.85; }
html[data-ui="prism"] .ar-pl-layer--hot .ar-k { color: var(--bg); }

/* Card grid */
html[data-ui="prism"] .ar-pl-card { padding: 1.125rem 1.25rem; border-radius: 18px; }
html[data-ui="prism"] .ar-pl-card b { display: block; font-size: 1rem; margin-bottom: 0.375rem; }
html[data-ui="prism"] .ar-pl-card__d { display: block; font-size: 0.875rem; line-height: 1.6; color: var(--muted); }

/* Two questions */
html[data-ui="prism"] .ar-pl-q { text-align: center; padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.5rem); }
html[data-ui="prism"] .ar-pl-q__i { font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; color: var(--muted); }
html[data-ui="prism"] .ar-pl-col--new .ar-pl-q__i { color: var(--px-purple); }
html[data-ui="prism"] .ar-pl-q__t { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; color: var(--ink); margin-bottom: 1rem; text-wrap: balance; }
html[data-ui="prism"] .ar-pl-col--new .ar-pl-q__t { color: var(--px-purple); }
html[data-ui="prism"] .ar-pl-tags { display: flex; flex-direction: column; gap: 0.375rem; }
html[data-ui="prism"] .ar-pl-tags .ar-note { font-size: 0.875rem; }
html[data-ui="prism"] .ar-pl-tags .ar-pl-on { color: var(--ink); font-weight: 500; }

/* Proactive professional: metric tiers and the formula note */
html[data-ui="prism"] .ar-pl-after { margin-top: 0.75rem; }
html[data-ui="prism"] .ar-pl-tiers { display: grid; gap: 0.9375rem; margin: 1.75rem 0; }
html[data-ui="prism"] .ar-pl-tiers > .ar-panel { margin: 0; }
html[data-ui="prism"] .ar-pl-m { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
html[data-ui="prism"] .ar-pl-m--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-ui="prism"] .ar-pl-mi { background: var(--bg); border-radius: 14px; padding: 0.875rem 1rem; min-width: 0; font-size: 0.9375rem; color: var(--ink); }
html[data-ui="prism"] .ar-pl-mi .ar-note { display: inline-block; margin-top: 0.125rem; }
@media (max-width: 640px) { html[data-ui="prism"] .ar-pl-m, html[data-ui="prism"] .ar-pl-m--2 { grid-template-columns: 1fr; } }

/* Building the autonomous org: inline code and the four rules */
html[data-ui="prism"] .ar-pl-code { background: var(--px-purple-bg); color: var(--px-purple); padding: 0.125rem 0.4375rem; border-radius: 8px; font-size: 0.8125rem; }
html[data-ui="prism"] .ar-pl-four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
html[data-ui="prism"] .ar-pl-four__i { background: rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 1rem 1.125rem; }
html[data-ui="prism"] .ar-dark .ar-pl-four__i p { margin: 0; }
html[data-ui="prism"] .ar-dark .ar-pl-four__i .ar-k { margin-bottom: 0.5rem; }
@media (max-width: 640px) { html[data-ui="prism"] .ar-pl-four { grid-template-columns: 1fr; } }

/* Getting hired: short answer, funnel diagram and its caption */
html[data-ui="prism"] .article-body .ar-pl-short { font-size: 1rem; line-height: 1.75; color: var(--ink); margin: 0; max-width: none; }
html[data-ui="prism"] .gh-funnel { display: block; margin: 2rem auto 1rem; max-width: 38.75rem; width: 100%; height: auto; }
html[data-ui="prism"] .gh-funnel rect { fill: var(--px-purple-bg); stroke: none; }
html[data-ui="prism"] .gh-funnel rect:last-of-type { fill: var(--px-purple); }
html[data-ui="prism"] .gh-funnel .gh-stage { font-size: 24px; fill: var(--ink); }
html[data-ui="prism"] .gh-funnel text:last-of-type { fill: var(--bg); }
html[data-ui="prism"] .article-body .ar-pl-figcap { text-align: center; margin: 0 auto 2rem; max-width: 38.75rem; font-size: 0.8125rem; line-height: 1.6; }
@media (max-width: 700px) { html[data-ui="prism"] .gh-funnel .gh-stage { font-size: 30px; } }
html[data-ui="prism"] .article-body .article-toc a { color: var(--ink); text-decoration: none; }
html[data-ui="prism"] .ar-toc__t { display: block; }
/* Reduced motion: the legacy hero morph and badge float stop too. */
@media (prefers-reduced-motion: reduce) {
  .hero-image__frame .parallax-container, .hero-badge, .float-badge, [class*="badge"] { animation: none !important; }
}

/* Contact form feedback (built by main.js). */
.form-ok { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--px-blue-bg); border-radius: 18px; }
.form-ok strong { display: block; margin-bottom: 0.25rem; color: var(--ink); }
.form-ok span { font-size: 0.875rem; color: var(--muted); }
.form-error { color: var(--px-rose); font-size: 0.875rem; margin-top: 0.5rem; }
/* Links on the dark panels need a light tint to stay readable. */
html[data-ui="prism"] .article-body .ar-dark a, html[data-ui="prism"] .article-body .ask-box a, html[data-ui="prism"] .article-body .case-study-box a { color: #d9c2ff; }

/* ---- 23. Generator pages (wizard, results, reviews, shared view) ---- */
/* ================================================================
   21. Free generator pages (views/consulting-artifact.ejs and
   consulting-artifact-shared.ejs, JS: public/js/playbook-generator.js)

   Replaces the page-scoped <style> blocks those views used to carry.
   The JS builds the wizard and the result with fixed class names (ca-*),
   so those keep their names and are restyled here; new classes are gn-*.
   Every rule that has to out-rank base.css carries html[data-ui="prism"].
   No orange text: accents are the Prism purple, with rose and blue for
   errors and variety. Minimum text size is 12px.
   ================================================================ */

/* ── Wizard card ───────────────────────────────────────────────── */
.gn-sec { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.ca-split__main { min-width: 0; }
.gn-card {
  --gn-ring: rgba(117, 70, 185, 0.24);
  background: var(--px-purple-bg);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  min-width: 0;
}
html[data-theme="dark"] .gn-card,
html[data-theme="dark"] .gn-deeper,
html[data-theme="dark"] .rv-form-wrap { --gn-ring: rgba(211, 168, 255, 0.3); }
.gn-deeper { --gn-ring: rgba(117, 70, 185, 0.24); }
.rv-form-wrap { --gn-ring: rgba(117, 70, 185, 0.24); }

/* Step progress bar: one segment per stage, filled up to the current one. */
.ca-progress { display: flex; gap: 6px; margin: 0 0 1.75rem; }
.ca-progress:empty { display: none; }
.ca-progress__dot { flex: 1; height: 6px; border-radius: 6px; background: var(--border-strong); transition: background-color 0.3s ease; }
.ca-progress__dot--active { background: var(--px-purple); }

/* While the clarification or the thinking list is showing, the questions step aside. */
.gn-card:has(> #ca-thinking[style*="block"]) > #ca-progress,
.gn-card:has(> #ca-thinking[style*="block"]) > #ca-form,
.gn-card:has(> #ca-clarify[style*="block"]) > #ca-progress,
.gn-card:has(> #ca-clarify[style*="block"]) > #ca-form { display: none; }

@keyframes gn-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ca-stage { animation: gn-in 0.28s ease both; }

html[data-ui="prism"] .ca-stage > .section-label,
html[data-ui="prism"] .gn-clarify > .section-label,
html[data-ui="prism"] .gn-deeper > .section-label,
html[data-ui="prism"] .gn-bundle > .section-label {
  display: block; margin: 0; color: var(--px-purple); font-weight: 600;
}
.gn-stage-title {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 550;
  color: var(--ink); margin: 0.625rem 0 0.375rem; max-width: none;
}
html[data-ui="prism"] .ca-stage__desc { font-size: 0.9375rem; line-height: 1.7; color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; }

/* ── Fields ────────────────────────────────────────────────────── */
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group { margin-bottom: 1.25rem; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group > label {
  display: block; font-family: var(--font-body); font-size: 0.875rem; font-weight: 550; line-height: 1.4;
  text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0 0 0.5rem;
}
html[data-ui="prism"] .ca-req { color: var(--px-rose); font-weight: 700; margin-left: 2px; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group input:not([type="checkbox"]),
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group textarea,
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group select {
  width: 100%; min-height: 3.25rem; padding: 0.875rem 1.125rem;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4; color: var(--ink);
  background-color: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 14px;
  box-shadow: none; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group input::placeholder,
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group textarea::placeholder { color: var(--smokegrey); opacity: 1; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group input:not([type="checkbox"]):focus,
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group textarea:focus,
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group select:focus {
  background-color: var(--bg); border-color: var(--px-purple); box-shadow: 0 0 0 4px var(--gn-ring); outline: none;
}
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238d849b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.125rem center;
}
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group select:invalid { color: var(--smokegrey); }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group select option { color: var(--ink); background: var(--bg); }

/* Validation: the JS sets aria-invalid and drops a message under the field. */
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group [aria-invalid="true"] { border-color: var(--px-rose); box-shadow: 0 0 0 4px rgba(185, 56, 105, 0.14); }
html[data-theme="dark"] :is(.gn-card, .gn-deeper) .form-group [aria-invalid="true"] { box-shadow: 0 0 0 4px rgba(255, 172, 204, 0.18); }
html[data-ui="prism"] .ca-field-error { margin: 0.5rem 0 0; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 550; line-height: 1.45; color: var(--px-rose); }
.gn-chips--invalid { outline: 2px solid var(--px-rose); outline-offset: 6px; border-radius: 14px; }

/* Chips: rounded squares, purple when picked. */
.ca-chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group label.ca-chip {
  display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; margin: 0; padding: 0.625rem 0.875rem;
  background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 450; line-height: 1.3; text-transform: none; letter-spacing: 0;
  color: var(--body); transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group label.ca-chip:hover { border-color: var(--px-purple); }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .ca-chip input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0;
  background: transparent; border: 1.5px solid var(--smokegrey); border-radius: 6px; box-shadow: none; outline: none; cursor: pointer;
}
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .ca-chip input:checked {
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237546b9' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--bg);
}
html[data-theme="dark"][data-ui="prism"] :is(.gn-card, .gn-deeper) .ca-chip input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d3a8ff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
}
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group label.ca-chip:has(input:checked) { background: var(--px-purple); border-color: var(--px-purple); color: var(--bg); font-weight: 550; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .form-group label.ca-chip:has(input:focus-visible) { outline: 3px solid var(--px-purple); outline-offset: 2px; }

/* Back and Continue */
.gn-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.gn-nav__next { display: block; flex: 1; min-width: 0; padding: 0; }
html[data-ui="prism"] .gn-btn-block { width: 100%; justify-content: center; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .btn { padding: 0.9375rem 1.5rem; font-size: 0.9375rem; font-weight: 550; }
html[data-ui="prism"] :is(.gn-card, .gn-deeper) .btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

.gn-error { margin-top: 1.25rem; padding: 0.875rem 1.125rem; background: var(--px-rose-bg); color: var(--px-rose); border-radius: 14px; font-size: 0.9375rem; font-weight: 550; line-height: 1.55; }
.gn-card .gn-error { background: var(--bg); }

/* ── Thinking sequence ─────────────────────────────────────────── */
.gn-thinking { padding: 0.25rem 0; }
.ca-thinking__stage-list { display: flex; flex-direction: column; padding: 0; }
.ca-thinking__stage { display: flex; align-items: center; gap: 0.875rem; padding: 0.8125rem 0.25rem; border-bottom: 1px solid var(--border-strong); color: var(--muted); transition: color 0.25s ease; }
.ca-thinking__stage:last-child { border-bottom: 0; }
.ca-thinking__stage--active { color: var(--ink); }
.ca-thinking__stage--active .ca-thinking__label { font-weight: 600; }
.ca-thinking__icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ca-thinking__spinner { width: 18px; height: 18px; border: 2.5px solid var(--border-strong); border-top-color: var(--px-purple); border-radius: 50%; animation: ca-spin 0.7s linear infinite; }
.ca-thinking__check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--px-purple); color: var(--bg); font-size: 0.75rem; font-weight: 700; line-height: 1; }
.ca-thinking__label { font-size: 1rem; font-family: var(--font-body); color: inherit; line-height: 1.4; }
@keyframes ca-spin { to { transform: rotate(360deg); } }

/* ── Results ───────────────────────────────────────────────────── */
.gn-res-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gn-res-head .px-eyebrow { margin: 0; color: var(--px-purple); font-weight: 600; }
html[data-ui="prism"] .gn-res-head .btn { padding: 0.625rem 1.125rem; }
.gn-result-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; color: var(--ink); margin: 1rem 0 0.5rem; max-width: none; text-wrap: balance; }
.gn-result-sub { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); margin: 0 0 2rem; max-width: 46rem; }
.gn-result-sub:empty { display: none; }

/* Tabs: segmented control */
.gn-seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 1.5rem; background: var(--px-purple-bg); border-radius: 14px; max-width: 100%; }
.gn-seg:empty { display: none; }
html[data-ui="prism"] .ca-tab-btn {
  min-height: 2.5rem; padding: 0.5rem 1.375rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 550; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
html[data-ui="prism"] .ca-tab-btn:hover { color: var(--ink); }
html[data-ui="prism"] .ca-tab-btn--active { background: var(--bg); color: var(--px-purple); box-shadow: 0 1px 3px rgba(28, 26, 33, 0.14); }
.ca-tab-panel { display: none; }
.ca-tab-panel--active { display: block; }

.gn-dl { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.gn-dl-note { font-size: 0.875rem; line-height: 1.65; color: var(--muted); max-width: 42rem; margin: 0 0 2.25rem; }
.gn-bundle { margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--px-blue-bg); border-radius: 20px; }
html[data-ui="prism"] .gn-bundle > .section-label { color: var(--px-blue); }
.gn-bundle .gn-dl { margin: 0.75rem 0 0; }

/* ── Document rendering ────────────────────────────────────────── */
.ca-artifact-section { margin: 0 0 3rem; }
html[data-ui="prism"] .ca-artifact-section__title {
  position: relative; font-family: var(--font-display); font-size: clamp(1.25rem, 2.1vw, 1.625rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 600;
  color: var(--ink); margin: 0 0 1.5rem; padding: 0 0 1rem; border-bottom: 1px solid var(--border-strong) !important;
}
html[data-ui="prism"] .ca-artifact-section__title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 2.5rem; height: 3px; border-radius: 3px; background: var(--px-purple); }
html[data-ui="prism"] .ca-p { font-size: 1rem; line-height: 1.8; color: var(--body); margin: 0 0 1rem; max-width: 54rem; }

/* Callouts: tinted tiles, no side stripes */
html[data-ui="prism"] .ca-callout { --c: var(--px-purple); padding: 1.125rem 1.375rem; background: var(--px-purple-bg); border: 0; border-radius: 18px; margin: 0 0 1.25rem; }
html[data-ui="prism"] .ca-callout--assumption { --c: var(--px-blue); background: var(--px-blue-bg); }
html[data-ui="prism"] .ca-callout--risk { --c: var(--px-rose); background: var(--px-rose-bg); }
html[data-ui="prism"] .ca-callout--quote { --c: var(--px-purple); background: var(--px-orange-bg); }
html[data-ui="prism"] .ca-callout__label { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); margin: 0 0 0.5rem; }
html[data-ui="prism"] .ca-callout p { font-size: 0.9375rem; line-height: 1.7; color: var(--body); font-style: normal; margin: 0; max-width: 54rem; }

/* Tables: dark header, scroll inside the wrapper on a phone */
html[data-ui="prism"] .ca-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: 16px; -webkit-overflow-scrolling: touch; }
html[data-ui="prism"] .ca-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.875rem; }
html[data-ui="prism"] .ca-table th { background: var(--panel); color: #fff; padding: 0.75rem 1rem; text-align: left; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal; vertical-align: bottom; }
html[data-ui="prism"] .ca-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--body); line-height: 1.55; vertical-align: top; }
html[data-theme="dark"][data-ui="prism"] .ca-table th { background: var(--surface-raised); border-bottom: 1px solid var(--border-strong); }
html[data-ui="prism"] .ca-table:not(.ca-table--raci) th,
html[data-ui="prism"] .ca-table:not(.ca-table--raci) td { min-width: 9.5rem; }
html[data-ui="prism"] .ca-table tbody tr:last-child td { border-bottom: 0; }
html[data-ui="prism"] .ca-table tbody tr:nth-child(even) td { background: var(--surface); }
html[data-ui="prism"] .ca-table td.ca-matrix__label { font-weight: 600; color: var(--ink); }
html[data-ui="prism"] .ca-table--raci td.ca-matrix__label { min-width: 12rem; }
html[data-ui="prism"] .ca-matrix__title { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 0.75rem; }
html[data-ui="prism"] .ca-table td.ca-raci__cell { text-align: center; font-weight: 700; color: var(--muted); }
html[data-ui="prism"] .ca-table td.ca-raci__cell--r { color: var(--px-purple); }
html[data-ui="prism"] .ca-table td.ca-raci__cell--a { color: var(--px-rose); }
html[data-ui="prism"] .ca-table td.ca-raci__cell--c { color: var(--px-blue); }
html[data-ui="prism"] .ca-table--raci th:not(:first-child) { text-align: center; }
html[data-ui="prism"] .ca-raci__legend { font-size: 0.8125rem; color: var(--muted); margin: -0.5rem 0 1.5rem; }

/* Checklist */
html[data-ui="prism"] .ca-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0; }
html[data-ui="prism"] .ca-checklist__item { display: flex; align-items: flex-start; gap: 0.875rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; line-height: 1.6; color: var(--body); }
html[data-ui="prism"] .ca-checklist__item:last-child { border-bottom: 0; }
html[data-ui="prism"] .ca-checklist__box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--px-purple); border-radius: 6px; background: var(--bg); }

/* Roadmap columns: tinted tiles */
html[data-ui="prism"] .ca-roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.9375rem; margin: 0 0 1.5rem; }
html[data-ui="prism"] .ca-roadmap__col { --c: var(--px-purple); background: var(--px-purple-bg); border: 0; border-radius: 22px; padding: 1.375rem 1.5rem; min-width: 0; }
html[data-ui="prism"] .ca-roadmap__col:nth-child(4n+2) { --c: var(--px-rose); background: var(--px-rose-bg); }
html[data-ui="prism"] .ca-roadmap__col:nth-child(4n+3) { --c: var(--px-blue); background: var(--px-blue-bg); }
html[data-ui="prism"] .ca-roadmap__col:nth-child(4n+4) { --c: var(--px-purple); background: var(--px-orange-bg); }
html[data-ui="prism"] .ca-roadmap__label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); margin: 0 0 0.875rem; }
html[data-ui="prism"] .ca-roadmap__items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
html[data-ui="prism"] .ca-roadmap__items li { position: relative; padding-left: 1.25rem; font-size: 0.875rem; line-height: 1.55; color: var(--body); }
html[data-ui="prism"] .ca-roadmap__items li::before { content: '\2192'; position: absolute; left: 0; color: var(--c); font-weight: 600; }

/* Recommendation cards */
html[data-ui="prism"] .ca-recommendation { background: var(--px-purple-bg); border: 0; border-radius: 22px; overflow: hidden; margin: 0 0 1.25rem; }
html[data-ui="prism"] .ca-recommendation__header { display: flex; align-items: center; gap: 0.875rem; padding: 1.25rem 1.5rem 1rem; background: transparent; }
html[data-ui="prism"] .ca-recommendation__number { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 10px; background: var(--px-purple); color: var(--bg); font-size: 0.875rem; font-weight: 700; }
html[data-ui="prism"] .ca-recommendation__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; color: var(--ink); }
html[data-ui="prism"] .ca-recommendation__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 0.75rem; padding: 0 1.25rem 1.25rem; }
html[data-ui="prism"] .ca-recommendation__grid > div { background: var(--bg); border-radius: 14px; padding: 0.875rem 1rem; min-width: 0; }
html[data-ui="prism"] .ca-recommendation__field { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--px-purple); margin: 0 0 0.375rem; }
html[data-ui="prism"] .ca-recommendation__grid p { font-size: 0.875rem; line-height: 1.6; color: var(--body); margin: 0; max-width: none; }

/* Numbered list */
html[data-ui="prism"] .ca-numlist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
html[data-ui="prism"] .ca-numlist li { display: flex; align-items: flex-start; gap: 0.875rem; font-size: 1rem; line-height: 1.7; color: var(--body); max-width: 54rem; }
html[data-ui="prism"] .ca-numlist li::before { content: none; }
html[data-ui="prism"] .ca-numlist__index { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; margin-top: 0.125rem; border-radius: 9px; background: var(--px-purple-bg); color: var(--px-purple); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; }

/* ── Go deeper ─────────────────────────────────────────────────── */
.gn-deeper { margin: 3rem 0 0; padding: clamp(1.5rem, 3.5vw, 2.5rem); background: var(--px-purple-bg); border-radius: 24px; }
html[data-ui="prism"] #ca-unlock-ultimate-card.gn-deeper { border-radius: 24px !important; }
.gn-deeper__title { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 550; color: var(--ink); margin: 0.625rem 0 0.75rem; max-width: none; }
.gn-deeper__text { font-size: 0.9375rem; line-height: 1.7; color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; }
.gn-deeper__form { margin-top: 0.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border-strong); }
.gn-deeper__form, .gn-deeper .gn-thinking { max-width: 46rem; }
.gn-deeper .gn-thinking { margin-top: 1.5rem; }

/* ── Attribution, share, start over ────────────────────────────── */
html[data-ui="prism"] .ca-attribution { margin: 2.5rem 0 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--px-blue-bg); border: 0; border-radius: 22px; text-align: center; }
html[data-ui="prism"] .ca-attribution p { font-size: 0.9375rem; line-height: 1.7; color: var(--muted); margin: 0 auto; max-width: 46rem; }
html[data-ui="prism"] .ca-attribution p a { color: var(--px-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gn-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
html[data-ui="prism"] .ca-attribution .btn--primary { color: var(--bg); text-decoration: none; }
.gn-share-confirm { font-size: 0.875rem; font-weight: 550; color: var(--px-purple); margin: 1rem 0 0; }
html[data-ui="prism"] .ca-attribution .gn-share-confirm { color: var(--px-purple); max-width: none; margin: 1.25rem auto 0; }
.gn-startover { margin-top: 1.5rem; }

/* Read-only shared view */
.gn-shared .ca-shared-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; margin: 0 0 1.75rem; background: var(--px-purple-bg); border: 0; border-radius: 20px;
  font-size: 0.9375rem; line-height: 1.55; color: var(--ink);
}
.gn-shared .ca-shared-banner .btn { flex: none; padding: 0.625rem 1.125rem; }
.gn-shared-doc { padding-top: clamp(1rem, 2.5vw, 2rem); }

/* ── Side cards (this page only) ───────────────────────────────── */
html[data-ui="prism"] .ca-split__side .side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.375rem 1.5rem; border-left-width: 1px; }
html[data-ui="prism"] .ca-split__side .side-card__eyebrow { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.13em; color: var(--px-purple); }
html[data-ui="prism"] .ca-split__side .side-card__steps li::before { background: var(--px-purple-bg); color: var(--px-purple); font-family: var(--font-body); font-weight: 600; }
html[data-ui="prism"] .ca-split__side .side-card__facts dt { font-family: var(--font-body); font-weight: 600; color: var(--px-purple); }
html[data-ui="prism"] .ca-split__side .side-card__link { color: var(--px-purple); }
html[data-ui="prism"] .ca-split__side .side-card__list a:hover { color: var(--px-purple); }

/* ── SEO cards ─────────────────────────────────────────────────── */
.gn-h2 { max-width: 48rem; margin-bottom: 1.75rem; }
/* Eyebrows on this page: 12px, one step above the 11px house size. */
html[data-ui="prism"] .gn-eyebrow, html[data-ui="prism"] .gn-sec .px-eyebrow, html[data-ui="prism"] .ca-stage > .section-label, html[data-ui="prism"] .gn-clarify > .section-label, html[data-ui="prism"] .gn-deeper > .section-label, html[data-ui="prism"] .gn-bundle > .section-label, html[data-ui="prism"] .ca-split__side .side-card__eyebrow { font-size: 0.75rem; }
.gn-seo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 0.9375rem; }
.gn-seo__card { background: var(--px-purple-bg); border-radius: 23px; padding: 1.5rem; min-width: 0; }
.gn-seo__card:nth-child(4n+2) { background: var(--px-rose-bg); }
.gn-seo__card:nth-child(4n+3) { background: var(--px-blue-bg); }
.gn-seo__card:nth-child(4n+4) { background: var(--px-orange-bg); }
.gn-seo__card h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.02em; font-weight: 550; color: var(--ink); margin: 0 0 0.75rem; }
.gn-seo__card p { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); margin: 0 0 0.75rem; max-width: none; }
.gn-seo__card p:last-child { margin-bottom: 0; }

/* ── Reviews ───────────────────────────────────────────────────── */
.rv-summary { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.rv-avg { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.rv-count { font-size: 0.8125rem; color: var(--muted); }
.rv-stars { display: inline-flex; gap: 2px; color: var(--smokegrey); font-size: 1.0625rem; line-height: 1; letter-spacing: 0; }
.rv-stars--lg { font-size: 1.5rem; }
.rv-stars .on { color: var(--px-purple); }
.rv-list { display: grid; grid-template-columns: 1fr; gap: 0.9375rem; margin: 0 0 2rem; align-items: start; }
.rv-item { padding: 1.375rem 1.5rem; background: var(--px-purple-bg); border: 0; border-radius: 22px; min-width: 0; }
.rv-item:nth-child(3n+2) { background: var(--px-rose-bg); }
.rv-item:nth-child(3n+3) { background: var(--px-blue-bg); }
.rv-item__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.75rem; }
.rv-date { font-size: 0.75rem; color: var(--muted); }
.rv-text { font-size: 0.9375rem; line-height: 1.7; color: var(--ink); margin: 0 0 0.75rem; max-width: none; }
.rv-who { font-size: 0.8125rem; color: var(--muted); margin: 0; max-width: none; }
.rv-who strong { color: var(--ink); font-weight: 600; }
.rv-who span::before { content: '\00B7'; margin: 0 0.5em; }
.rv-empty { font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 0 0 1.75rem; max-width: 40rem; }

.rv-form-wrap { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.rv-form-title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.03em; font-weight: 550; color: var(--ink); margin: 0 0 0.5rem; }
.rv-form-note { font-size: 0.875rem; line-height: 1.65; color: var(--muted); margin: 0 0 1.5rem; max-width: 34rem; }
.rv-botcheck { display: none !important; }

.rv-rate { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.rv-rate legend { font-size: 0.875rem; font-weight: 550; color: var(--ink); padding: 0; margin: 0 0 0.375rem; }
/* Reversed row, so a hovered or checked star also lights the ones before it. */
.rv-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rv-rate__stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.rv-rate__stars label { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; font-size: 2.125rem; line-height: 1; color: var(--smokegrey); cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.rv-rate__stars label:hover, .rv-rate__stars label:hover ~ label, .rv-rate__stars input:checked ~ label { color: var(--px-purple); }
.rv-rate__stars label:hover { transform: scale(1.08); }
.rv-rate__stars input:focus-visible + label { outline: 3px solid var(--px-purple); outline-offset: 1px; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.rv-field { display: block; margin: 0 0 1.125rem; min-width: 0; }
.rv-field > span { display: block; font-size: 0.875rem; font-weight: 550; line-height: 1.4; color: var(--ink); margin: 0 0 0.5rem; }
.rv-field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.rv-field input, .rv-field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.875rem 1.125rem; font-family: var(--font-body); font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 14px; outline: none; box-shadow: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rv-field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.rv-field input::placeholder, .rv-field textarea::placeholder { color: var(--smokegrey); opacity: 1; }
.rv-field input:focus, .rv-field textarea:focus { border-color: var(--px-purple); box-shadow: 0 0 0 4px var(--gn-ring); outline: none; }
.rv-submit { margin-top: 0.375rem; }
.rv-msg { font-size: 0.9375rem; line-height: 1.6; margin: 0.75rem 0 0; min-height: 0; }
.rv-msg:empty { display: none; }
.rv-msg--err { color: var(--px-rose); font-weight: 550; }
.rv-msg--ok { color: var(--ink); }

/* ── FAQ: the Prism details style, two columns on wide screens ─── */
.gn-faq { border-top: 1px solid var(--border); }
.gn-faq .pb-faq, .gn-faq .pb-faq:first-child { border-top: 0; break-inside: avoid; }
.gn-faq .pb-faq summary { min-height: 2.75rem; }

/* ── Wide and narrow screens ───────────────────────────────────── */
@media (min-width: 900px) {
  .rv-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .gn-faq { column-count: 2; column-gap: clamp(2rem, 5vw, 4rem); }
  .rv-form-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .rv-form-intro { position: sticky; top: calc(var(--header-height) + 1.5rem); }
  .rv-form-note { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .gn-card, .gn-deeper { border-radius: 20px; }
  .rv-fields { grid-template-columns: 1fr; }
  .gn-seg { display: flex; }
  .gn-seg .ca-tab-btn { flex: 1; padding-inline: 0.75rem; }
  .gn-dl { flex-direction: column; }
  .gn-dl .btn, .gn-actions .btn, .gn-actions .magnetic-wrap { width: 100%; justify-content: center; text-align: center; }
  .gn-actions { flex-direction: column; }
  html[data-ui="prism"] .gn-actions .btn { padding-inline: 1rem; font-size: 0.8125rem; white-space: normal; line-height: 1.3; }
  .gn-nav { flex-direction: row; }
  .gn-shared .ca-shared-banner .btn { width: 100%; justify-content: center; }
  .rv-rate__stars label { width: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ca-stage { animation: none; }
  .ca-thinking__spinner { animation-duration: 2.4s; }
  .rv-rate__stars label:hover { transform: none; }
}

/* Scroll cue for wide tables (public/js/prism.js wraps any table that overflows). */
html[data-ui="prism"] .table-scroll::before { display: none; }
.scrollcue { position: relative; }
.scrollcue[data-over]::before { content: "Scroll sideways for more \2192"; display: block; padding: 0.625rem 1rem 0.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--px-purple); }
.scrollcue[data-moved]::before { display: none; }
.scrollcue[data-over]::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 3rem; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg)); opacity: 1; transition: opacity 0.2s ease; }
.scrollcue[data-r="0"]::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .scrollcue[data-over]::after { transition: none; } }

/* Home hero photo: fades in from CSS alone, so it never waits for the animation scripts (they load
   from a CDN and used to hold the largest paint for about three seconds). */
.hero-image__photo { animation: hero-photo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes hero-photo-in { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-image__photo { animation: none; opacity: 1; transform: none; } }
/* Home hero intro, driven by CSS so the text never waits for the animation scripts (they load from a
   CDN). Same fade-up choreography as before, and it still appears if the scripts are blocked. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
#hero-subtitle { animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
#hero-h2 { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
#hero-body { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
#hero-body-2 { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both; }
#hero-ctas { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
#hero-caption { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
.hero-badge { animation: hero-fade 0.6s ease 0.9s both, float-badge 3s ease-in-out infinite, badge-morph 7s ease-in-out infinite; animation-delay: 0.9s, var(--delay, 0s), calc(var(--delay, 0s) + 1s); }
@media (prefers-reduced-motion: reduce) { #hero-subtitle, #hero-h2, #hero-body, #hero-body-2, #hero-ctas, #hero-caption { animation: none; } }

/* Side cards (articles, guides, tools): the same Prism treatment everywhere, not only beside the generator. */
html[data-ui="prism"] .side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.375rem 1.5rem; border-left-width: 1px; }
html[data-ui="prism"] .side-card__eyebrow { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.13em; color: var(--px-purple); }
html[data-ui="prism"] .side-card__steps li::before { background: var(--px-purple-bg); color: var(--px-purple); font-family: var(--font-body); font-weight: 600; }
html[data-ui="prism"] .side-card__facts dt { font-family: var(--font-body); font-weight: 600; color: var(--px-purple); }
html[data-ui="prism"] .side-card__link { color: var(--px-purple); }
html[data-ui="prism"] .side-card__list a:hover { color: var(--px-purple); }
html[data-ui="prism"] .side-card--tool { border-left: 1px solid var(--border); background: var(--px-purple-bg); border-color: transparent; }
html[data-ui="prism"] .side-card__list a:hover { color: var(--px-purple); }
html[data-ui="prism"] a.side-card:hover { border-color: var(--px-purple); }
html[data-ui="prism"] .side-card__facts dt { font-family: var(--font-body); font-weight: 600; color: var(--px-purple); }
/* Avoid a lonely last card: 6 cards go 3 by 3, 4 cards go 2 by 2. */
@media (min-width: 641px) {
  .gd-autogrid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-autogrid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Customer retention calculator (/customer-retention-calculator) ── */
.rc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 960px) {
  .rc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; }
  .rc__in { position: sticky; top: 6rem; }
}
.rc__in, .rc__out { background: var(--surface); border: 1px solid var(--border); border-radius: 23px; padding: clamp(1.25rem, 2.5vw, 1.75rem); min-width: 0; }
.rc__h { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.375rem; }
.rc__sub { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); margin: 0 0 1.25rem; }
.rc__sub a { color: var(--px-purple); text-underline-offset: 3px; }
.rc-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 480px) { .rc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.875rem; } }
.rc-field { display: block; margin: 0 0 1rem; }
.rc-field span { display: block; font-size: 0.875rem; font-weight: 550; color: var(--ink); margin-bottom: 0.375rem; }
.rc-field small { display: block; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); margin-top: 0.375rem; }
.rc-field input { width: 100%; font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 0.75rem 1rem; }
.rc-field input:focus-visible { outline: 2px solid var(--px-purple); outline-offset: 2px; }
.rc-error { margin: 0.25rem 0 1rem; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.875rem; line-height: 1.55; color: var(--px-rose); background: var(--px-rose-bg); }
.rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-top: 1.25rem; }
.rc-copied { font-size: 0.875rem; color: var(--muted); }
.rc-kpis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .rc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rc-kpi { border-radius: 18px; padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.rc-kpi--a { background: var(--px-purple-bg); color: var(--px-purple); }
.rc-kpi--b { background: var(--px-rose-bg); color: var(--px-rose); }
.rc-kpi--c { background: var(--px-blue-bg); color: var(--px-blue); }
.rc-kpi__l { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.rc-kpi b { font-size: clamp(1.875rem, 4vw, 2.375rem); letter-spacing: -0.04em; line-height: 1.1; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-kpi small { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.rc-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; margin: 0.875rem 0 0; }
@media (min-width: 640px) { .rc-more { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rc-more div { border: 1px solid var(--border); border-radius: 14px; padding: 0.75rem 0.875rem; min-width: 0; }
.rc-more dt { font-size: 0.8125rem; color: var(--muted); margin: 0 0 0.125rem; }
.rc-more dd { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.rc-read { margin-top: 1.5rem; }
.rc-read h4 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 0.625rem; }
.rc-read ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.rc-read li { font-size: 0.9375rem; line-height: 1.7; color: var(--ink); padding-left: 1rem; border-left: 3px solid var(--px-purple); }
.rc-note { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); margin: 1rem 0 0; }

/* Plan builder and tall forms: textarea, select, the plan text, no sticky form */
.rc-field textarea, .rc-field select { width: 100%; font: inherit; font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 0.75rem 1rem; }
.rc-field textarea { resize: vertical; min-height: 4.5rem; }
.rc-field textarea:focus-visible, .rc-field select:focus-visible { outline: 2px solid var(--px-purple); outline-offset: 2px; }
.rc-field input[type="text"] { font-variant-numeric: normal; }
.rc--tall .rc__in { position: static; }
.rc-plan { margin: 1.25rem 0 0; padding: 1rem 1.125rem; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; line-height: 1.7; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 34rem; overflow: auto; }
