/* =========================================================
   Rhino Help Center — design system
   Editorial / financial. Navy + Rhino violet on warm cream.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,30..100&family=Geist:wght@300..700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* palette */
  --navy:          #1a2340;
  --navy-2:        #232c4d;
  --navy-soft:     rgba(26, 35, 64, 0.06);
  --ink:           #0c1226;
  --cream:         #f6f2e9;
  --cream-2:       #efe9da;
  --paper:         #ffffff;

  --violet:        #5b4ff5;
  --violet-deep:   #3f33cc;
  --violet-soft:   #ede9ff;
  --violet-tint:   #f5f3ff;

  --text:          #14172a;
  --muted:         #5a5f6b;
  --faint:         #8a8f99;
  --hair:          #e6e0d2;     /* warm divider over cream */
  --hair-2:        #ebe6d6;
  --hair-paper:    #eceaf2;     /* cool divider over white */

  --ai-bg:         #eff4ff;
  --ai-bg-2:       #e3ecff;
  --ai-border:     #c7d7f9;
  --ai-dot:        #2563eb;

  --pos:           #1a8870;
  --neg:           #c0563a;

  /* type */
  --display:       'Fraunces', 'New York', ui-serif, Georgia, serif;
  --sans:          'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:          'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* metrics */
  --container:     1180px;
  --container-w:   1280px;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-pill:   999px;

  --shadow-card:   0 1px 0 rgba(20, 23, 42, 0.04),
                   0 18px 38px -22px rgba(20, 23, 42, 0.18);
  --shadow-card-hover: 0 1px 0 rgba(20, 23, 42, 0.06),
                       0 30px 60px -28px rgba(20, 23, 42, 0.28);
  --shadow-ai:     0 1px 0 rgba(37, 99, 235, 0.05),
                   0 16px 40px -24px rgba(37, 99, 235, 0.35);

  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: #1a2340; color: #fff; }

/* warm grain background — only renders where intended */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.7;
  mix-blend-mode: multiply;
}
.grain > * { position: relative; z-index: 1; }

/* =========================================================
   header
   ========================================================= */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-header__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.site-header__inner--no-signin {
  grid-template-columns: auto 1fr;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand__mark { font-weight: 600; }
.brand__divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.22);
  display: inline-block;
  align-self: center;
}
.brand__sub {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.72);
  text-transform: none;
}
/* Header search — pill-shaped, navy, functional icon submit */
.header-search {
  justify-self: end;
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.header-search:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
}
.header-search input,
.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 22px;
  background: transparent;
  border: none;
  color: #fff;
  font: 14px var(--sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.55); }
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.header-search button,
.header-search button[type="submit"] {
  flex: 0 0 auto;
  height: 100%;
  width: 44px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
  padding: 0;
}
.header-search button:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.header-search button svg {
  width: 16px;
  height: 16px;
}
.signin {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s var(--ease-out);
}
.signin:hover { color: #fff; }
.signin .arrow { transition: transform .25s var(--ease-out); }
.signin:hover .arrow { transform: translateX(3px); }

/* =========================================================
   container
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--wide { max-width: var(--container-w); }

/* =========================================================
   HOME — hero / audience selector
   ========================================================= */
.hero {
  padding: 72px 0 40px;
}

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}
.hero__eyebrow-row .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__eyebrow-row .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--violet);
  display: inline-block;
}

.hero__title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 360;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 900px;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--violet-deep);
}

.hero__sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 56px;
}

/* audience selector */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 64px;
}
/* New stacked variant — bigger cards, helper text underneath */
.audience--stacked {
  display: block;
  margin-bottom: 96px;
}
.audience--stacked .audience__label {
  position: static;
  display: block;
  transform: none;
  margin: 0 0 14px;
}
.audience--stacked .audience__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience--stacked .audience__helper {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--hair);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 760px;
  border-left: none;
  align-self: auto;
}
.audience--stacked .audience__helper strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-right: 6px;
  display: inline-block;
  margin-bottom: 0;
}

.audience__label {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateY(-26px);
}

.audience-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair-paper);
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  cursor: pointer;
  transition: transform .35s var(--ease-out),
              border-color .25s var(--ease-out),
              box-shadow .35s var(--ease-out);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--violet) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
}
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.audience-card.is-active::before,
.audience-card:hover::before { opacity: 1; }
.audience-card.is-active {
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.audience-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--violet-tint);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--violet-deep);
  transition: background .3s var(--ease-out);
}
.audience-card.is-active .audience-card__icon,
.audience-card:hover .audience-card__icon {
  background: var(--violet-soft);
}
.audience-card__icon svg { width: 22px; height: 22px; }

.audience-card__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--ink);
}
.audience-card__desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 36ch;
}
/* old text-link — kept for legacy --}}
.audience-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-deep);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.audience-card__link .arrow { transition: transform .25s var(--ease-out); }
.audience-card:hover .audience-card__link .arrow { transform: translateX(4px); }

/* New purple pill CTA */
.audience-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--violet);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: auto;
  align-self: center;
  transition: background .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  box-shadow: 0 6px 14px -6px rgba(91, 79, 245, 0.55);
}
.audience-card__cta:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(63, 51, 204, 0.65);
}
.audience-card__cta .arrow {
  transition: transform .25s var(--ease-out);
}
.audience-card:hover .audience-card__cta .arrow,
.audience-card__cta:hover .arrow {
  transform: translateX(4px);
}

.audience-card .radio-pill {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--hair-paper);
  padding: 5px 9px;
  border-radius: 999px;
  transition: all .25s var(--ease-out);
}
.audience-card.is-active .radio-pill {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.audience-card.is-active .radio-pill::before {
  content: "✓ ";
}

.audience__helper {
  padding: 28px 24px;
  border-left: 1px solid var(--hair);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  align-self: center;
}
.audience__helper strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 500;
}

/* =========================================================
   AI SEARCH module
   ========================================================= */
.ai-block { padding: 0 0 96px; }

.ai-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  position: relative;
}
.ai-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6cf;
  box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.25);
  animation: aiPulse 2.4s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(102, 204, 255, 0.05); }
}

.ai-scope-text {
  font-size: 13.5px;
  color: var(--muted);
}
.ai-scope-text strong { color: var(--ink); font-weight: 500; }
.ai-scope-text a {
  color: var(--violet-deep);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease-out);
  margin-left: 4px;
}
.ai-scope-text a:hover { border-color: currentColor; }

.ai-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-weight: 380;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 12px 0 14px;
  color: var(--ink);
  max-width: 780px;
}
.ai-sub {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 680px;
  line-height: 1.55;
}

.ai-input {
  background: var(--paper);
  border: 1px solid var(--hair-paper);
  border-radius: 18px;
  padding: 22px 22px 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.ai-input:focus-within {
  border-color: rgba(91, 79, 245, 0.35);
  box-shadow: var(--shadow-ai);
}
.ai-input__row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
}
.ai-input__icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ai-bg);
  border-radius: 8px;
  color: var(--ai-dot);
}
.ai-input__icon svg { width: 16px; height: 16px; }
.ai-input__field {
  border: none;
  background: transparent;
  outline: none;
  font: 18px/1.5 var(--sans);
  color: var(--ink);
  padding: 10px 0;
}
.ai-input__field::placeholder { color: var(--faint); }

.ai-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background .2s var(--ease-out), transform .2s var(--ease-spring);
}
.ai-ask-btn:hover { background: var(--ink); }
.ai-ask-btn:active { transform: scale(0.97); }
.ai-ask-btn .arrow { transition: transform .25s var(--ease-out); }
.ai-ask-btn:hover .arrow { transform: translateX(3px); }

.ai-input__footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hair-paper);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}
.ai-input__footer .sep { opacity: 0.4; }

/* try asking */
.try-asking {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.try-asking__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid var(--hair-paper);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.chip:hover {
  border-color: var(--violet);
  color: var(--violet-deep);
  transform: translateY(-1px);
}
.chip svg { width: 12px; height: 12px; opacity: 0.6; }

/* =========================================================
   tag pill
   ========================================================= */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--violet-deep);
  background: var(--violet-soft);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
}
.tag-pill--ink {
  background: var(--ink);
  color: #fff;
}
.tag-pill--quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--hair-paper);
}

/* =========================================================
   CATEGORY landing page
   ========================================================= */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hair);
}
.page-header__meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.page-header__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 360;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 24px 0 18px;
  color: var(--ink);
}
.page-header__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.page-header__desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

.category-grid {
  padding: 64px 0 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
}
.cat-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.cat-block__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 60;
  font-weight: 420;
  font-size: 22px;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}
.cat-block__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}
.cat-list {
  list-style: none;
  margin: 0; padding: 0;
}
.cat-list li {
  border-bottom: 1px solid var(--hair-2);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 15.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: color .2s var(--ease-out), padding-left .2s var(--ease-out);
}
.cat-list a:hover {
  color: var(--violet-deep);
  padding-left: 4px;
}
.cat-list a .arrow {
  color: var(--faint);
  transition: transform .25s var(--ease-out), color .25s var(--ease-out);
}
.cat-list a:hover .arrow {
  color: var(--violet-deep);
  transform: translateX(3px);
}
.cat-block__see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--violet-deep);
  font-size: 13.5px;
  font-weight: 500;
}
.cat-block__see-all .arrow { transition: transform .25s var(--ease-out); }
.cat-block__see-all:hover .arrow { transform: translateX(3px); }

/* =========================================================
   ARTICLE page
   ========================================================= */
.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding: 56px 0 96px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.sidebar-section__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.toc {
  list-style: none;
  margin: 0; padding: 0;
  border-left: 1px solid var(--hair);
}
.toc li { position: relative; }
.toc a {
  display: block;
  padding: 8px 0 8px 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: -0.005em;
  transition: color .2s var(--ease-out);
}
.toc a:hover { color: var(--ink); }
.toc li.is-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--violet);
  border-radius: 2px;
}
.toc li.is-active a { color: var(--ink); font-weight: 500; }

.sidebar-list {
  list-style: none;
  margin: 0; padding: 0;
}
.sidebar-list li {
  border-top: 1px solid var(--hair);
  padding: 12px 0;
}
.sidebar-list li:first-child { border-top: none; padding-top: 0; }
.sidebar-list a {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  display: block;
  transition: color .2s var(--ease-out);
}
.sidebar-list a:hover { color: var(--ink); }
.sidebar-list li.is-current a {
  color: var(--ink);
  font-weight: 500;
}

/* article body */
.article-main { min-width: 0; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.article-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 360;
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 18px;
}
.article-subtitle {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 64ch;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hair);
}
.article-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--faint);
}
.article-meta a {
  color: var(--violet-deep);
  font-weight: 500;
}

/* AI summary box */
.ai-summary {
  margin: 36px 0;
  background: linear-gradient(180deg, var(--ai-bg) 0%, #f6f9ff 100%);
  border: 1px solid var(--ai-border);
  border-radius: 16px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.ai-summary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ai-dot) 0%, var(--violet) 100%);
}
.ai-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-summary__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ai-dot);
  font-weight: 500;
}
.ai-summary__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ai-dot);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  animation: aiPulse 2.4s ease-in-out infinite;
}
.ai-summary__source {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ai-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-summary li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 15.5px;
  color: #1f2740;
  line-height: 1.55;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}
.ai-summary li:first-child { border-top: none; }
.ai-summary li::before {
  content: "";
  position: absolute;
  top: 18px; left: 0;
  width: 14px; height: 1px;
  background: var(--ai-dot);
  opacity: 0.6;
}
.ai-summary__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(37, 99, 235, 0.18);
}
.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--ai-border);
  color: var(--ai-dot);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  transition: all .2s var(--ease-out);
}
.ai-btn:hover { background: rgba(37, 99, 235, 0.06); }
.ai-btn--primary {
  background: var(--ai-dot);
  color: #fff;
  border-color: var(--ai-dot);
}
.ai-btn--primary:hover { background: #1d4fc7; }

/* article prose */
.prose {
  font-size: 17px;
  line-height: 1.7;
  color: #1f2236;
  max-width: 68ch;
}
.prose h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 460;
  font-size: 28px;
  letter-spacing: -0.014em;
  line-height: 1.2;
  color: var(--ink);
  margin: 56px 0 18px;
  scroll-margin-top: 96px;
}
.prose h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "SOFT" 60;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a {
  color: var(--violet-deep);
  border-bottom: 1px solid rgba(63, 51, 204, 0.28);
  transition: border-color .2s var(--ease-out);
}
.prose a:hover { border-color: var(--violet-deep); }
.prose blockquote {
  margin: 24px 0;
  padding: 6px 0 6px 20px;
  border-left: 2px solid var(--violet);
  color: var(--muted);
  font-style: italic;
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "SOFT" 100;
  font-size: 19px;
  line-height: 1.5;
}
.prose .callout {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--cream-2);
  border-radius: 12px;
  border-left: 3px solid var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
  color: #2a2e44;
}
.prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--cream-2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* article voting */
.vote-block {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.vote-block__label {
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "SOFT" 60;
  font-size: 18px;
  color: var(--ink);
}
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--hair-paper);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s var(--ease-out);
}
.vote-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.vote-btn.is-selected.up { border-color: var(--pos); color: var(--pos); background: rgba(26, 136, 112, 0.06); }
.vote-btn.is-selected.down { border-color: var(--neg); color: var(--neg); background: rgba(192, 86, 58, 0.06); }
.vote-btn svg { width: 16px; height: 16px; }

/* {{vote}} helper renders a <button> with no inline SVG — paint the icon
   via ::before background-image so we don't depend on a label-with-HTML. */
.vote-btn::before {
  content: "";
  width: 16px; height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}
.vote-btn.up::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141729' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 10v12'/><path d='M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H7'/><path d='M7 10H4a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h3'/></svg>");
}
.vote-btn.down::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141729' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M17 14V2'/><path d='M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H17'/><path d='M17 14h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-3'/></svg>");
}
/* If inline SVG is present (static preview), suppress duplicate icon */
.vote-btn:has(svg)::before { display: none; }
/* Always hide Zendesk's vote sum counter */
.article-votes-sum, .article-vote-sum,
[class*="article-vote"][class*="count"] { display: none !important; }

/* =========================================================
   "Still need help?" CTA
   ========================================================= */
.cta-block {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.cta-block__inner {
  position: relative;
  padding: 88px 0;
}
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.cta-headline {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-weight: 360;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
  color: #fff;
  max-width: 720px;
}
.cta-headline em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.cta-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 0 36px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--navy);
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.4);
}
.cta-button .arrow { transition: transform .25s var(--ease-out); }
.cta-button:hover .arrow { transform: translateX(4px); }
.cta-hours {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cta-hours .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  animation: aiPulse 2.4s ease-in-out infinite;
}

/* =========================================================
   Footer bar
   ========================================================= */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--hair);
  padding: 28px 0;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer__links {
  display: flex;
  gap: 28px;
}
.site-footer__links a {
  color: var(--muted);
  transition: color .2s var(--ease-out);
}
.site-footer__links a:hover { color: var(--ink); }

/* =========================================================
   reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp .7s var(--ease-out) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
.reveal[data-delay="1"] { animation-delay: 0.04s; }
.reveal[data-delay="2"] { animation-delay: 0.10s; }
.reveal[data-delay="3"] { animation-delay: 0.18s; }
.reveal[data-delay="4"] { animation-delay: 0.28s; }
.reveal[data-delay="5"] { animation-delay: 0.38s; }
.reveal[data-delay="6"] { animation-delay: 0.50s; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 980px) {
  .audience { grid-template-columns: 1fr 1fr; }
  .audience__helper {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--hair);
    padding: 22px 0 0;
  }
  .category-grid { grid-template-columns: 1fr; gap: 48px; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
  .site-header__inner { grid-template-columns: auto auto; }
  .header-search { grid-column: 1 / -1; order: 3; justify-self: stretch; width: 100%; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .audience { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 36px; }
  .hero__title { font-size: 44px; }
  .ai-input__row { grid-template-columns: 28px 1fr; }
  .ai-input__row .ai-ask-btn { grid-column: 1 / -1; justify-content: center; margin-top: 10px; }
  .cta-block__inner { padding: 64px 0; }
}
