/* ==========================================================================
   Rank Kiwi: editorial layer for /blog/ and /guides/ (content agent)
   Loaded after styles.min.css + premium.css. Everything is scoped under
   .rk-post, .rk-hub or .rk-c-* so it can't leak into other pages.
   ========================================================================== */

:root {
  --c-ink: #0b1a0e;
  --c-ink-2: #26352a;
  --c-soft: #3d4f40;
  --c-muted: #5c6b5e;
  --c-line: #e3e8e0;
  --c-line-2: #d3dccd;
  --c-wash: #f7faf4;
  --c-soft-bg: #f2faea;
  --c-green: #01370b;
  --c-lime: #cbf990;
  --c-lime-2: #e4f9c5;
  --c-radius: 14px;
  --c-shadow: 0 1px 2px rgba(11, 26, 14, 0.04), 0 10px 30px -16px rgba(11, 26, 14, 0.18);
  --c-shadow-lift: 0 2px 4px rgba(11, 26, 14, 0.05), 0 22px 44px -22px rgba(1, 55, 11, 0.32);
  --c-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --c-measure: 70ch;
}

/* ---------- Reading progress ---------- */
.rk-c-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
  background: transparent;
}
.rk-c-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #01370b, #5aa83a 60%, #cbf990);
}

/* ---------- Breadcrumbs ---------- */
.rk-c-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 18px;
}
.rk-c-crumbs a {
  color: var(--c-soft);
  text-decoration: none;
  padding: 6px 0;
}
.rk-c-crumbs a:hover { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
.rk-c-crumbs span[aria-hidden] { color: #a9b5a6; }
.rk-c-crumbs [aria-current] { color: var(--c-ink); font-weight: 500; }

/* ---------- Article header ---------- */
.rk-post { padding: clamp(28px, 5vw, 56px) 0 0; }
.rk-post-head {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}
.rk-post-head-inner { max-width: 820px; }
.rk-c-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--c-soft-bg);
  border: 1px solid #d2f2b2;
  color: var(--c-green);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
a.rk-c-chip:hover { background: var(--c-lime-2); }
.rk-post-head h1 {
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 760;
  color: var(--c-ink);
  margin: 16px 0 16px;
  text-wrap: balance;
}
.rk-post-dek {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--c-soft);
  max-width: 64ch;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.rk-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-muted);
}
.rk-byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c-line);
}
.rk-byline-name { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.rk-byline-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.rk-byline-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.rk-byline-meta > span + span::before { content: "·"; margin-right: 10px; color: #a9b5a6; }
.rk-byline-share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  color: var(--c-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.rk-byline-share:hover { background: var(--c-wash); border-color: #bcc6b7; }
.rk-byline-share svg { width: 16px; height: 16px; }

/* ---------- Hero figure ---------- */
.rk-post-hero {
  width: min(1140px, calc(100% - 32px));
  margin: 28px auto 0;
}
.rk-post-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 640;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow-lift);
  background: #0b1a0e;
}

/* ---------- Layout: body + sticky rail ---------- */
.rk-post-layout {
  width: min(1140px, calc(100% - 32px));
  margin: clamp(28px, 4vw, 48px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 1080px) {
  .rk-post-layout {
    grid-template-columns: minmax(0, var(--c-measure)) 260px;
    justify-content: space-between;
    gap: 72px;
  }
}
.rk-post-rail { display: none; }
@media (min-width: 1080px) {
  .rk-post-rail { display: block; }
  .rk-post-rail-inner { position: sticky; top: 96px; display: grid; gap: 20px; max-height: calc(100vh - 120px); overflow: auto; padding-bottom: 8px; }
  .rk-toc-mobile { display: none; }
}

/* ---------- TOC ---------- */
.rk-toc.table-of-contents { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.rk-toc-mobile .rk-toc.table-of-contents { padding: 0 16px 14px; }
.rk-toc.table-of-contents a { font-size: 13.5px; font-weight: 400; color: var(--c-soft); }
.rk-toc.table-of-contents a.is-active { font-weight: 600; color: var(--c-green); }
.rk-toc-mobile .rk-toc.table-of-contents a { font-size: 14.5px; }
.rk-toc-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 10px;
}
.rk-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-line); }
.rk-toc li { margin: 0; }
.rk-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--c-soft);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.rk-toc a:hover { color: var(--c-ink); }
.rk-toc a.is-active { color: var(--c-green); font-weight: 600; border-left-color: var(--c-green); }
.rk-toc-mobile {
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-wash);
  margin: 0 0 28px;
}
.rk-toc-mobile > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--c-ink);
  cursor: pointer;
}
.rk-toc-mobile > summary::-webkit-details-marker { display: none; }
.rk-toc-mobile > summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s var(--c-ease);
}
.rk-toc-mobile[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.rk-toc-mobile .rk-toc { padding: 0 16px 14px; }
.rk-toc-mobile .rk-toc a { padding-top: 10px; padding-bottom: 10px; font-size: 14.5px; }

/* Rail CTA */
.rk-rail-cta {
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(160deg, #01370b 0%, #0b2a12 100%);
  color: #e9f6dc;
  box-shadow: var(--c-shadow);
}
.rk-rail-cta p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #c9dcc2; }
.rk-rail-cta strong { display: block; color: #fff; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 6px; }
.rk-rail-cta .button { width: 100%; background: var(--c-lime); border-color: var(--c-lime); color: var(--c-green); font-weight: 700; }
.rk-rail-cta .button:hover { background: #baf378; }
.rk-rail-cta a.rk-rail-alt { display: block; margin-top: 10px; text-align: center; color: #cbf990; font-size: 13px; text-decoration: none; }
.rk-rail-cta a.rk-rail-alt:hover { text-decoration: underline; }

/* ---------- Prose ---------- */
.rk-prose {
  min-width: 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--c-ink-2);
}
@media (max-width: 640px) { .rk-prose { font-size: 16px; line-height: 1.68; } }
.rk-prose > * { max-width: var(--c-measure); }
.rk-prose p { color: var(--c-ink-2); margin: 0 0 1.15em; }
.rk-post .rk-prose > ul, .rk-post .rk-prose > ol, .rk-post .rk-prose > p, .rk-post .rk-prose > ul > li, .rk-post .rk-prose > ol > li, .rk-post .rk-prose blockquote { font-size: inherit; line-height: inherit; }
.rk-prose h2 {
  position: relative;
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.024em;
  font-weight: 740;
  color: var(--c-ink);
  margin: 2.4em 0 0.7em;
  scroll-margin-top: 92px;
  text-wrap: balance;
}
.rk-prose h3 {
  font-size: clamp(17.5px, 1.4vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.016em;
  font-weight: 700;
  color: var(--c-ink);
  margin: 1.9em 0 0.5em;
  scroll-margin-top: 92px;
}
.rk-prose ul, .rk-prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.rk-prose li { margin: 0 0 0.5em; padding-left: 0.2em; }
.rk-prose li::marker { color: #5aa83a; font-weight: 700; }
.rk-prose strong { color: var(--c-ink); font-weight: 650; }
.rk-prose code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--c-wash);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.rk-prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--c-lime);
  font-size: 1.06em;
  color: var(--c-ink);
}
.rk-prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.4em 0; }

/* Heading anchor (people click headings, so make them do something useful) */
.rk-h-anchor {
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #9aa897;
  opacity: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.rk-h-anchor svg { width: 16px; height: 16px; }
.rk-prose h2:hover .rk-h-anchor, .rk-h-anchor:focus-visible { opacity: 1; }
.rk-h-anchor:hover { color: var(--c-green); background: var(--c-soft-bg); }
@media (max-width: 1180px) { .rk-h-anchor { display: none; } }
.rk-c-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--c-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--c-ease);
}
.rk-c-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Key takeaways ---------- */
.rk-takeaways {
  margin: 0 0 2em;
  padding: 20px 22px 8px;
  border-radius: var(--c-radius);
  background: var(--c-soft-bg);
  border: 1px solid #d2f2b2;
}
.rk-takeaways-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-green);
}
.rk-takeaways-title svg { width: 16px; height: 16px; }
.rk-takeaways ul { list-style: none; padding: 0; margin: 0; }
.rk-takeaways li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--c-ink-2);
}
.rk-takeaways li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbf990' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Figures ---------- */
.rk-fig { margin: 2em 0; max-width: var(--c-measure); }
.rk-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--c-line);
  box-shadow: var(--c-shadow);
  background: var(--c-wash);
}
.rk-fig.is-small img { width: auto; max-width: min(100%, 460px); margin-inline: auto; }
.rk-fig figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-muted);
}
.rk-fig.is-small figcaption { text-align: center; }

/* ---------- Steps ---------- */
.rk-steps { list-style: none; counter-reset: rkstep; padding: 0 !important; margin: 1.4em 0 1.8em !important; }
.rk-steps > li {
  counter-increment: rkstep;
  position: relative;
  padding: 0 0 0 52px !important;
  margin: 0 0 1.25em !important;
}
.rk-steps > li::before {
  content: counter(rkstep);
  position: absolute;
  left: 0; top: -1px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--c-green);
  color: var(--c-lime);
  font-weight: 750;
  font-size: 15px;
}
.rk-steps > li::marker { content: none; }
.rk-steps > li > strong:first-child { display: block; color: var(--c-ink); font-size: 1.02em; margin-bottom: 2px; }

/* ---------- Callouts ---------- */
.rk-note, .rk-warn {
  margin: 1.6em 0;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15.5px;
  line-height: 1.6;
}
.rk-note { background: #f6f8fb; border: 1px solid #e1e7ef; color: #26324a; }
.rk-warn { background: #fffbeb; border: 1px solid #fde68a; color: #5b3a0b; }
.rk-note p, .rk-warn p { margin: 0; color: inherit; }
.rk-note p + p, .rk-warn p + p { margin-top: 0.6em; }
.rk-note strong, .rk-warn strong { color: inherit; }

/* ---------- Copyable template ---------- */
.rk-copy {
  margin: 1.6em 0;
  max-width: var(--c-measure);
  border-radius: 14px;
  background: #0f1f12;
  border: 1px solid #1d3322;
  box-shadow: var(--c-shadow);
  overflow: hidden;
}
.rk-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid #1d3322;
  background: #0b1a0e;
}
.rk-copy-title { font-size: 13px; font-weight: 650; color: #cfe5c4; letter-spacing: 0.01em; }
.rk-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #2c4a33;
  background: #16301b;
  color: var(--c-lime);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rk-copy-btn:hover { background: #1d3d23; }
.rk-copy-btn.is-done { background: var(--c-lime); color: var(--c-green); border-color: var(--c-lime); }
.rk-copy-btn svg { width: 15px; height: 15px; }
.rk-copy pre {
  margin: 0;
  padding: 16px 18px 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e7f3e0;
  max-height: 440px;
  overflow: auto;
}
.rk-copy pre .v { color: var(--c-lime); }

/* ---------- Tables ---------- */
.rk-table { margin: 1.6em 0; max-width: var(--c-measure); overflow-x: auto; border: 1px solid var(--c-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.rk-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 480px; }
.rk-table th, .rk-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.rk-table th { background: var(--c-wash); color: var(--c-ink); font-weight: 650; font-size: 13.5px; }
.rk-table tr:last-child td { border-bottom: 0; }
.rk-table td.num, .rk-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rk-table caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 13px; color: var(--c-muted); border-top: 1px solid var(--c-line); }

/* ---------- Tool card + extension CTA ---------- */
.rk-tool {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 1.8em 0;
  max-width: var(--c-measure);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  box-shadow: var(--c-shadow);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s var(--c-ease), box-shadow 0.2s var(--c-ease), border-color 0.2s;
}
.rk-tool:hover { transform: translateY(-2px); box-shadow: var(--c-shadow-lift); border-color: #b9d6a5; }
.rk-tool-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft-bg); color: var(--c-green); border: 1px solid #d2f2b2; }
.rk-tool-ico svg { width: 22px; height: 22px; }
.rk-tool-k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4b7d33; }
.rk-tool-t { display: block; font-size: 16px; font-weight: 700; color: var(--c-ink); letter-spacing: -0.01em; margin: 1px 0 2px; }
.rk-tool-d { display: block; font-size: 14px; line-height: 1.45; color: var(--c-muted); }
.rk-tool-go { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--c-green); color: #fff; font-size: 13.5px; font-weight: 650; white-space: nowrap; }
@media (max-width: 560px) {
  .rk-tool { grid-template-columns: 40px minmax(0, 1fr); }
  .rk-tool-go { grid-column: 1 / -1; width: 100%; min-height: 44px; }
}

.rk-ext {
  position: relative;
  overflow: hidden;
  margin: 2.4em 0;
  max-width: var(--c-measure);
  border-radius: 18px;
  background: radial-gradient(120% 140% at 100% 0%, #0f4a1a 0%, #01370b 45%, #062210 100%);
  color: #e9f6dc;
  box-shadow: var(--c-shadow-lift);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .rk-ext { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.rk-ext-body { padding: 26px 24px; }
.rk-prose .rk-ext .rk-ext-k { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lime); margin: 0 0 8px; }
.rk-prose .rk-ext .rk-ext-t { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin: 0 0 10px; font-weight: 740; text-wrap: balance; }
.rk-prose .rk-ext p { color: #c9dcc2; font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.rk-ext-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rk-ext .button { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-green); font-weight: 750; min-height: 46px; }
.rk-ext .button:hover { background: #baf378; }
.rk-ext-alt { color: #cbf990 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; padding: 10px 4px; }
.rk-ext-alt:hover { text-decoration: underline !important; }
.rk-ext-note { display: block; margin-top: 12px; font-size: 12.5px; color: #9fb79a; }
.rk-ext-shot { position: relative; min-height: 180px; }
.rk-ext-shot img { position: absolute; left: 0; top: 24px; width: 135%; max-width: none; height: auto; border-radius: 12px 0 0 0; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); }
@media (max-width: 719px) { .rk-ext-shot { min-height: 0; padding: 0 0 0 24px; } .rk-ext-shot img { position: static; width: 115%; } }

/* ---------- Interactive calculator ---------- */
.rk-calc {
  margin: 2em 0;
  max-width: var(--c-measure);
  border-radius: 16px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  box-shadow: var(--c-shadow);
  overflow: hidden;
}
.rk-calc-head { padding: 16px 18px 0; }
.rk-calc-head strong { display: block; font-size: 16px; color: var(--c-ink); letter-spacing: -0.01em; }
.rk-calc-head span { display: block; font-size: 14px; color: var(--c-muted); margin-top: 2px; line-height: 1.45; }
.rk-calc-body { padding: 14px 18px 18px; }
.rk-calc label { display: block; font-size: 13px; font-weight: 600; color: var(--c-soft); margin-bottom: 6px; }
.rk-calc textarea, .rk-calc input[type="number"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--c-line-2);
  background: var(--c-wash);
  color: var(--c-ink);
  resize: vertical;
}
.rk-calc textarea { min-height: 76px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14.5px; }
.rk-calc textarea:focus, .rk-calc input:focus { outline: 2px solid var(--c-green); outline-offset: 1px; background: #fff; }
.rk-calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.rk-calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.rk-calc-presets button {
  min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line-2); background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--c-soft); cursor: pointer;
}
.rk-calc-presets button:hover { border-color: #9fc489; color: var(--c-green); }
.rk-calc-out { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .rk-calc-out { gap: 8px; } .rk-calc-stat { padding: 10px; } .rk-calc-stat span { font-size: 10.5px; letter-spacing: 0.04em; } .rk-calc-stat b { font-size: 18px; } }
.rk-calc-stat { padding: 12px; border-radius: 12px; background: var(--c-wash); border: 1px solid var(--c-line); }
.rk-calc-stat span { display: block; font-size: 12px; font-weight: 650; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rk-calc-stat b { display: block; font-size: 21px; color: var(--c-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.rk-calc-stat.is-hi { background: var(--c-soft-bg); border-color: #cdeeb0; }
.rk-calc-stat.is-hi b { color: var(--c-green); }
.rk-calc-bars { margin-top: 14px; display: grid; gap: 6px; }
.rk-calc-bar { display: grid; grid-template-columns: 74px minmax(0, 1fr) 62px; align-items: center; gap: 10px; font-size: 13px; color: var(--c-soft); font-variant-numeric: tabular-nums; }
.rk-calc-bar i { display: block; height: 10px; border-radius: 999px; background: #dfe8da; position: relative; overflow: hidden; }
.rk-calc-bar i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: #9fc489; border-radius: inherit; transition: width 0.35s var(--c-ease); }
.rk-calc-bar.is-out i::after { background: var(--c-green); }
.rk-calc-bar b { text-align: right; color: var(--c-ink); }
.rk-calc-bar.is-out b { color: var(--c-green); }
.rk-calc-msg { margin: 12px 0 0 !important; font-size: 14px !important; color: var(--c-soft) !important; line-height: 1.5; }

/* ---------- FAQ ---------- */
.rk-faq { margin-top: 0.6em; }
.rk-faq details {
  border-bottom: 1px solid var(--c-line);
}
.rk-faq details:first-of-type { border-top: 1px solid var(--c-line); }
.rk-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  font-weight: 650;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--c-ink);
  cursor: pointer;
}
.rk-faq summary::-webkit-details-marker { display: none; }
.rk-faq summary::after {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-soft-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301370b' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='6' x2='12' y2='18'/%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.25s var(--c-ease);
}
.rk-faq details[open] summary::after { transform: rotate(45deg); }
.rk-faq .rk-faq-a { padding: 0 0 16px; }
.rk-faq .rk-faq-a p { margin: 0 0 0.8em; font-size: 16px; }

/* ---------- Sources ---------- */
.rk-sources { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--c-line); }
.rk-sources h2 { font-size: 18px !important; margin-top: 0 !important; }
.rk-sources ol { font-size: 14px; color: var(--c-muted); line-height: 1.55; }
.rk-sources li { margin-bottom: 0.4em; overflow-wrap: anywhere; }

/* ---------- Author box ---------- */
.rk-author {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 2.6em 0 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--c-line);
  background: var(--c-wash);
  max-width: var(--c-measure);
}
.rk-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.rk-author strong { display: block; font-size: 16px; color: var(--c-ink); }
.rk-author p { margin: 4px 0 0 !important; font-size: 14.5px !important; line-height: 1.55; color: var(--c-soft) !important; }

/* ---------- Related ---------- */
.rk-related {
  width: min(1140px, calc(100% - 32px));
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.rk-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rk-related-head h2 { font-size: clamp(20px, 1.9vw, 24px); letter-spacing: -0.022em; margin: 0; }
.rk-related-head a { font-size: 14px; font-weight: 600; color: var(--c-green); text-decoration: none; padding: 10px 0; }
.rk-related-head a:hover { text-decoration: underline; }

/* ---------- Cards (shared by hub + related) ---------- */
.rk-cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .rk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--c-line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 26, 14, 0.03);
  transition: transform 0.25s var(--c-ease), box-shadow 0.25s var(--c-ease), border-color 0.25s;
}
.rk-card:hover { transform: translateY(-3px); box-shadow: var(--c-shadow-lift); border-color: #cfe0c5; }
.rk-card:focus-within { outline: 2px solid var(--c-green); outline-offset: 2px; }
.rk-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0b1a0e; border-bottom: 1px solid var(--c-line); }
.rk-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.5s var(--c-ease); }
.rk-card:hover .rk-card-img img { transform: scale(1.03); }
.rk-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rk-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--c-muted); }
.rk-card h3 { font-size: 16.5px; line-height: 1.3; letter-spacing: -0.014em; margin: 0; color: var(--c-ink); font-weight: 700; text-wrap: balance; }
.rk-card h3 a { color: inherit; text-decoration: none; }
.rk-card h3 a::after { content: ""; position: absolute; inset: 0; }
.rk-card h3 a:focus-visible { outline: none; }
.rk-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--c-soft); }
.rk-card-foot { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--c-green); }

/* ---------- Bottom CTA band ---------- */
.rk-c-band {
  width: min(1140px, calc(100% - 32px));
  margin: clamp(48px, 7vw, 88px) auto clamp(48px, 7vw, 88px);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 52px);
  background: radial-gradient(120% 160% at 0% 0%, #0f4a1a 0%, #01370b 50%, #062210 100%);
  color: #e9f6dc;
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 860px) { .rk-c-band { grid-template-columns: minmax(0, 1.2fr) auto; } }
.rk-c-band h2 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.026em; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.rk-c-band p { color: #c9dcc2; margin: 0; font-size: 16px; max-width: 56ch; }
.rk-c-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rk-c-band .button { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-green); font-weight: 750; min-height: 48px; padding: 0 22px; }
.rk-c-band .button:hover { background: #baf378; }
.rk-c-band .button-ghost { background: transparent; border: 1px solid rgba(203, 249, 144, 0.4); color: var(--c-lime); box-shadow: none; }
.rk-c-band .button-ghost:hover { background: rgba(203, 249, 144, 0.08); }

/* ==========================================================================
   Blog hub
   ========================================================================== */
.rk-hub { padding: clamp(28px, 5vw, 64px) 0 0; }
.rk-hub-head { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.rk-hub-kicker { font-size: 12.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #4b7d33; margin: 0 0 12px; }
.rk-hub-head h1 { font-size: clamp(27px, 2.9vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 770; margin: 4px 0 10px; color: var(--c-ink); max-width: none; text-wrap: pretty; }
.rk-hub-head h1 span { color: #2b7a1e; }
@media (min-width: 1100px) { .rk-hub-head h1 { white-space: nowrap; } }
.rk-hub-head > p { font-size: clamp(15.5px, 1.2vw, 17px); color: var(--c-soft); max-width: 60ch; margin: 0 0 22px; line-height: 1.5; }

.rk-hub-controls { display: grid; gap: 14px; margin-bottom: 28px; }
.rk-search { position: relative; max-width: 560px; }
.rk-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-muted); pointer-events: none; }
.rk-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 96px 0 44px;
  border-radius: 14px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--c-ink);
  box-shadow: 0 1px 2px rgba(11, 26, 14, 0.04);
  -webkit-appearance: none;
  appearance: none;
}
.rk-search input::-webkit-search-cancel-button { display: none; }
.rk-search input:focus { outline: 2px solid var(--c-green); outline-offset: 1px; }
.rk-search kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 600 12px/1 "Inter", sans-serif; color: var(--c-muted);
  border: 1px solid var(--c-line-2); border-bottom-width: 2px; border-radius: 6px; padding: 4px 7px; background: var(--c-wash);
}
.rk-search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-width: 44px; min-height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--c-muted);
  font: inherit; font-size: 13px; font-weight: 600;
}
.rk-search-clear:hover { color: var(--c-ink); background: var(--c-wash); }
@media (hover: none) { .rk-search kbd { display: none; } }

.rk-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rk-chips::-webkit-scrollbar { display: none; }
.rk-chip-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  color: var(--c-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.rk-chip-btn:hover { border-color: #9fc489; color: var(--c-green); }
.rk-chip-btn:active { transform: scale(0.97); }
.rk-chip-btn[aria-pressed="true"] { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.rk-chip-btn span { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--c-wash); color: var(--c-muted); }
.rk-chip-btn[aria-pressed="true"] span { background: rgba(203, 249, 144, 0.2); color: var(--c-lime); }
.rk-chip-btn:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }

.rk-hub-status { font-size: 14px; color: var(--c-muted); margin: 0 0 14px; min-height: 1.4em; }

.rk-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: #fff;
  box-shadow: var(--c-shadow);
  margin-bottom: 28px;
  transition: box-shadow 0.25s var(--c-ease), transform 0.25s var(--c-ease);
}
.rk-feature:hover { box-shadow: var(--c-shadow-lift); transform: translateY(-2px); }
.rk-feature:focus-within { outline: 2px solid var(--c-green); outline-offset: 2px; }
@media (min-width: 900px) { .rk-feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.rk-feature-img { background: #0b1a0e; min-height: 220px; }
.rk-feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.rk-feature-body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.rk-feature-body h2 { font-size: clamp(21px, 2vw, 27px); line-height: 1.14; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
.rk-feature-body h2 a { color: var(--c-ink); text-decoration: none; }
.rk-feature-body h2 a::after { content: ""; position: absolute; inset: 0; }
.rk-feature-body h2 a:focus-visible { outline: none; }
.rk-feature-body p { margin: 0; color: var(--c-soft); font-size: 16px; line-height: 1.55; }
.rk-feature-tag { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.rk-feature-tag b { color: var(--c-green); background: var(--c-lime); padding: 3px 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.rk-empty { padding: 36px 20px; text-align: center; border: 1px dashed var(--c-line-2); border-radius: 16px; color: var(--c-soft); background: var(--c-wash); }
.rk-empty button { margin-top: 12px; }
.rk-card[hidden], .rk-feature[hidden] { display: none; }

.rk-hub-tools { width: min(1140px, calc(100% - 32px)); margin: clamp(48px, 7vw, 80px) auto 0; }
.rk-hub-tools h2 { font-size: clamp(20px, 1.9vw, 24px); letter-spacing: -0.022em; margin: 0 0 6px; }
.rk-hub-tools > p { color: var(--c-soft); margin: 0 0 18px; }
.rk-toolgrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .rk-toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rk-toolgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rk-toolgrid .rk-tool { margin: 0; grid-template-columns: 44px minmax(0, 1fr); }
.rk-toolgrid .rk-tool-go { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rk-card, .rk-card-img img, .rk-feature, .rk-tool, .rk-c-toast, .rk-calc-bar i::after { transition: none !important; }
  .rk-card:hover, .rk-feature:hover, .rk-tool:hover { transform: none; }
  .rk-card:hover .rk-card-img img { transform: none; }
}

@media print {
  .rk-c-progress, .rk-post-rail, .rk-toc-mobile, .rk-ext, .rk-c-band, .rk-related, .site-header, .site-footer, .rk-copy-btn { display: none !important; }
}

/* Byline share collapses to an icon on small phones so the byline stays on one row */
@media (max-width: 480px) {
  .rk-byline { flex-wrap: nowrap; }
  .rk-byline-share { width: 44px; min-height: 44px; padding: 0; justify-content: center; flex: 0 0 auto; }
  .rk-byline-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Related cards: compact rows on phones */
@media (max-width: 639px) {
  .rk-related .rk-cards { gap: 12px; }
  .rk-related .rk-card { flex-direction: row; align-items: stretch; }
  .rk-related .rk-card-img { flex: 0 0 112px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--c-line); }
  .rk-related .rk-card-body { padding: 12px 14px; gap: 6px; }
  .rk-related .rk-card p, .rk-related .rk-card-foot, .rk-related .rk-card-meta .rk-c-chip { display: none; }
  .rk-related .rk-card h3 { font-size: 15.5px; }
}

/* ==========================================================================
   Charts (cited data) + quizzes
   ========================================================================== */
.rk-chart {
  margin: 2em 0;
  max-width: var(--c-measure);
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--c-line);
  background: linear-gradient(180deg, #fff 0%, var(--c-wash) 100%);
  box-shadow: var(--c-shadow);
}
.rk-chart figcaption { margin: 0 0 14px; padding: 0; background: none; border: 0; text-align: left; font-style: normal; }
.rk-chart figcaption strong { display: block; font-size: 17px; line-height: 1.3; letter-spacing: -0.014em; color: var(--c-ink); text-wrap: balance; }
.rk-chart figcaption span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--c-muted); }
.rk-chart-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 12px; background: #eef3ea; }
.rk-chart-tabs button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--c-soft); cursor: pointer;
  transition: background 0.2s var(--c-ease), color 0.2s, box-shadow 0.2s;
}
.rk-chart-tabs button[aria-pressed="true"] { background: #fff; color: var(--c-green); box-shadow: 0 1px 2px rgba(11,26,14,.08), 0 4px 10px -6px rgba(11,26,14,.25); }
.rk-chart-tabs button:focus-visible { outline: 2px solid var(--c-green); outline-offset: 1px; }
.rk-bars { position: relative; display: grid; gap: 10px; }
.rk-bar { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rk-bar-l { font-size: 13.5px; line-height: 1.3; color: var(--c-soft); }
.rk-bar-t { position: relative; height: 26px; border-radius: 8px; background: #e7eee2; overflow: hidden; }
.rk-bar-t i {
  position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px;
  background: linear-gradient(90deg, #b9dca6, #8ec476);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--c-ease);
}
.rk-motion .rk-chart:not(.is-in) .rk-bar-t i { transform: scaleX(0); }
.rk-bar.is-top .rk-bar-t i { background: linear-gradient(90deg, #2b7a1e, #01370b); box-shadow: inset 0 0 0 1px rgba(203,249,144,.15); }
.rk-bar.is-top .rk-bar-v { color: var(--c-green); }
.rk-chart.is-in .rk-bar:nth-child(2) .rk-bar-t i { transition-delay: 0.06s; }
.rk-chart.is-in .rk-bar:nth-child(3) .rk-bar-t i { transition-delay: 0.12s; }
.rk-chart.is-in .rk-bar:nth-child(4) .rk-bar-t i { transition-delay: 0.18s; }
.rk-chart.is-in .rk-bar:nth-child(5) .rk-bar-t i { transition-delay: 0.24s; }
.rk-chart.is-in .rk-bar:nth-child(n+6) .rk-bar-t i { transition-delay: 0.3s; }
.rk-bar-v { min-width: 58px; text-align: right; font-size: 14.5px; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.rk-bar-t s { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed #b45309; z-index: 1; }
.rk-chart-src { margin: 14px 0 0 !important; font-size: 12.5px !important; line-height: 1.5; color: var(--c-muted) !important; }
.rk-chart-src a { font-weight: 500 !important; }
.rk-prose .rk-ref-note { display: flex; margin-bottom: 0; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--c-soft); }
.rk-ref-note::before { content: ""; width: 18px; border-top: 2px dashed #b45309; }
@media (max-width: 480px) {
  .rk-chart { padding: 16px 14px 12px; }
  .rk-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: 4px 10px; }
  .rk-bar-l { grid-area: l; }
  .rk-bar-v { grid-area: v; }
  .rk-bar-t { grid-area: t; height: 20px; }
}

/* Quiz */
.rk-quiz {
  margin: 2.4em 0;
  max-width: var(--c-measure);
  border-radius: 18px;
  border: 1px solid #d2f2b2;
  background: var(--c-soft-bg);
  padding: 20px;
}
.rk-quiz-head { margin-bottom: 8px; }
.rk-prose .rk-quiz-k { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #4b7d33; }
.rk-prose .rk-quiz-t { margin: 0; font-size: 19px; font-weight: 740; letter-spacing: -0.016em; color: var(--c-ink); line-height: 1.25; }
.rk-quiz-q { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.rk-quiz-q legend { display: block; padding: 0; margin: 0 0 10px; font-size: 16px; font-weight: 650; line-height: 1.4; color: var(--c-ink); }
.rk-quiz-q legend span { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--c-green); color: var(--c-lime); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.rk-quiz-opts { display: grid; gap: 8px; }
.rk-quiz-opt {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 44px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.2s, transform 0.15s var(--c-ease);
}
.rk-quiz-opt::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; border: 2px solid #b8c6b2; background: #fff center / 11px no-repeat;
  transition: border-color 0.15s, background-color 0.15s;
}
.rk-quiz-opt:hover:not(:disabled) { border-color: #9fc489; }
.rk-quiz-opt:active:not(:disabled) { transform: scale(0.99); }
.rk-quiz-opt:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.rk-quiz-opt:disabled { cursor: default; }
.rk-quiz-opt.is-right { border-color: #4b9a32; background: #eefbe3; color: var(--c-ink); }
.rk-quiz-opt.is-right::before { border-color: #2b7a1e; background-color: #2b7a1e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.rk-quiz-opt.is-wrong { border-color: #e2a3a3; background: #fdf2f2; }
.rk-quiz-opt.is-wrong::before { border-color: #b91c1c; background-color: #b91c1c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E"); }
.rk-quiz-opt.is-dim { opacity: 0.55; }
.rk-prose .rk-quiz-fb { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--c-soft); min-height: 0; }
.rk-prose .rk-quiz-fb:empty { display: none; }
.rk-prose .rk-quiz-fb b { color: var(--c-ink); }
.rk-quiz-result { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #d2f2b2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rk-quiz-result[hidden] { display: none; }
.rk-prose .rk-quiz-score { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--c-ink); }
.rk-quiz-retry { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--c-line-2); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--c-green); cursor: pointer; }
.rk-quiz-retry:hover { background: var(--c-wash); }
@keyframes rk-pop { 0% { transform: scale(0.98); } 60% { transform: scale(1.012); } 100% { transform: scale(1); } }
.rk-quiz-opt.is-right { animation: rk-pop 0.35s var(--c-ease); }

@media (prefers-reduced-motion: reduce) {
  .rk-bar-t i { transition: none !important; transform: scaleX(1) !important; }
  .rk-quiz-opt, .rk-quiz-opt.is-right { animation: none !important; transition: none !important; }
}

/* ---------- Entrance motion (JS adds .rk-motion to <html>; without JS everything stays visible) ---------- */
.rk-motion .rk-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--c-ease), transform 0.7s var(--c-ease); will-change: opacity, transform; }
.rk-motion .rk-fig.rk-in, .rk-motion .rk-post-hero.rk-in, .rk-motion .rk-feature.rk-in { transform: translateY(18px) scale(0.985); }
.rk-motion .rk-in.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rk-motion .rk-in, .rk-motion .rk-in.is-shown { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 899px) { .rk-feature-img { min-height: 0; aspect-ratio: 16 / 9; } }

/* ==========================================================================
   Visual story components (round 3)
   Final state is the default. Motion only applies under html.rk-motion.
   ========================================================================== */

/* Scene opener */
.rk-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 22px;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1a0e;
  color: #e9f6dc;
  box-shadow: var(--c-shadow-lift);
  max-width: var(--c-measure);
}

.rk-scene-img { position: relative; background: #0b1a0e; aspect-ratio: 16 / 9; overflow: hidden; }
.rk-scene-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-motion .rk-scene-img img { transform: scale(1.04); animation: rk-settle 1.4s var(--c-ease) .05s forwards; }
@keyframes rk-settle { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rk-motion .rk-scene-img img { transform: none; animation: none; } }


.rk-scene-body { padding: 18px 22px 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.rk-prose .rk-scene-k { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-lime); }
.rk-prose .rk-scene-q { margin: 0; font-size: clamp(19px, 2vw, 23px); line-height: 1.25; font-weight: 720; letter-spacing: -.018em; color: #fff; text-wrap: balance; }
.rk-prose .rk-scene-a { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #c9dcc2; }
.rk-prose .rk-scene-a b { color: var(--c-lime); }
.rk-motion .rk-scene .rk-scene-q, .rk-motion .rk-scene .rk-scene-a { opacity: 0; transform: translateY(8px); animation: rk-rise .7s var(--c-ease) forwards; }
.rk-motion .rk-scene .rk-scene-q { animation-delay: .15s; }
.rk-motion .rk-scene .rk-scene-a { animation-delay: .7s; }
@keyframes rk-rise { to { opacity: 1; transform: none; } }

/* Screenshot with ring */
.rk-shot { margin: 1.4em 0 1.6em; max-width: var(--c-measure); }
.rk-shot-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--c-shadow); background: #0b1a0e; }
.rk-shot-frame img { display: block; width: 100%; height: auto; }
.rk-shot.is-narrow { max-width: min(var(--c-measure), 420px); }
.rk-shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--c-muted); }
.rk-ring {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 0 2.5px #cbf990, 0 0 0 6px rgba(203, 249, 144, .28), 0 0 24px 4px rgba(203, 249, 144, .35);
  pointer-events: none;
}
.rk-ring em {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 750; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 999px; background: #cbf990; color: #01370b;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
}
.rk-ring.is-below em { bottom: auto; top: calc(100% + 8px); }
@media (max-width: 480px) { .rk-ring em { font-size: 11px; padding: 3px 7px; } }
.rk-motion .rk-in:not(.is-shown) .rk-ring { opacity: 0; transform: scale(1.25); }
.rk-motion .rk-ring { transition: opacity .5s var(--c-ease) .35s, transform .7s var(--c-ease) .35s; }
.rk-motion .is-shown .rk-ring, .rk-motion .rk-stepper .rk-ring { animation: rk-pulse 2.6s ease-in-out 1.2s infinite; }
@keyframes rk-pulse { 0%, 100% { box-shadow: 0 0 0 2.5px #cbf990, 0 0 0 6px rgba(203,249,144,.28), 0 0 24px 4px rgba(203,249,144,.35); } 50% { box-shadow: 0 0 0 2.5px #cbf990, 0 0 0 11px rgba(203,249,144,.12), 0 0 34px 8px rgba(203,249,144,.45); } }

/* Stepper */
.rk-stepper { margin: 1.6em 0 2em; max-width: var(--c-measure); }
.rk-stepper-track {
  position: relative;
  list-style: none; margin: 0 !important; padding: 0 !important;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 14px;
}
.rk-stepper-track::-webkit-scrollbar { display: none; }
.rk-stepper-track:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }
.rk-stepper-slide { scroll-snap-align: start; margin: 0 !important; padding: 0 !important; }
.rk-stepper-slide::marker { content: none; }
.rk-stepper .rk-shot { margin: 0; }
.rk-stepper figcaption { display: flex; gap: 10px; align-items: flex-start; font-size: 15px !important; color: var(--c-ink-2) !important; line-height: 1.45; min-height: 3em; }
.rk-stepper figcaption b { color: var(--c-ink); }
.rk-stepper-n { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-green); color: var(--c-lime); font-size: 13px; font-weight: 800; margin-top: 1px; }
.rk-stepper-ctrl { display: none; align-items: center; gap: 10px; margin-top: 8px; }
.rk-js .rk-stepper-ctrl { display: flex; }
.rk-stepper-prev, .rk-stepper-next {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; border: 1px solid var(--c-line-2); background: #fff;
  font-size: 22px; line-height: 1; color: var(--c-green); cursor: pointer; transition: background .15s, transform .15s var(--c-ease);
}
.rk-stepper-prev:hover, .rk-stepper-next:hover { background: var(--c-wash); }
.rk-stepper-prev:active, .rk-stepper-next:active { transform: scale(.94); }
.rk-stepper-prev:disabled, .rk-stepper-next:disabled { opacity: .35; cursor: default; }
.rk-stepper-dots { flex: 1; display: flex; justify-content: center; gap: 2px; }
.rk-stepper-dot { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.rk-stepper-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: #cfdcc8; transition: width .3s var(--c-ease), margin .3s var(--c-ease), background .2s; }
.rk-stepper-dot[aria-current="step"]::after { width: 22px; margin-left: -11px; background: var(--c-green); }
.rk-stepper-count { font-size: 13px; font-weight: 650; color: var(--c-muted); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

/* Median column chart */
.rk-median, .rk-reorder {
  margin: 1.8em 0; max-width: var(--c-measure); padding: 18px 18px 14px; border-radius: 16px;
  border: 1px solid var(--c-line); background: linear-gradient(180deg, #fff 0%, var(--c-wash) 100%); box-shadow: var(--c-shadow);
}
.rk-median figcaption, .rk-reorder figcaption { margin: 0 0 12px; padding: 0; background: none; border: 0; text-align: left; font-style: normal; }
.rk-median figcaption strong, .rk-reorder figcaption strong { display: block; font-size: 17px; line-height: 1.3; letter-spacing: -.014em; color: var(--c-ink); }
.rk-median figcaption span, .rk-reorder figcaption span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--c-muted); }
.rk-median-plot { position: relative; height: 210px; display: flex; align-items: flex-end; gap: 6px; padding: 26px 0 22px; border-bottom: 1px solid var(--c-line-2); }
.rk-col { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.rk-col-bar { position: relative; width: 100%; max-width: 38px; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #c3e2b2, #9cce86); transform-origin: 50% 100%; }
.rk-col.is-out .rk-col-bar { background: linear-gradient(180deg, #2b7a1e, #01370b); box-shadow: 0 10px 24px -10px rgba(1,55,11,.6); }
.rk-col-bar em { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font-style: normal; font-size: 12.5px; font-weight: 800; color: #01370b; background: #cbf990; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.rk-col-v { position: absolute; bottom: -20px; font-size: 11px; color: var(--c-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-median-line { position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 48px) * var(--m) / 100); border-top: 2px dashed #b45309; z-index: 1; transform-origin: 0 50%; }
.rk-median-line b { position: absolute; right: 0; bottom: 4px; font-size: 11.5px; font-weight: 750; color: #92400e; background: #fffbeb; padding: 2px 7px; border-radius: 6px; }
.rk-prose .rk-median-note { margin: 12px 0 0; font-size: 12.5px; color: var(--c-muted); }
@media (max-width: 480px) { .rk-median-plot { height: 180px; gap: 4px; } .rk-col-v { font-size: 9.5px; } }
.rk-motion .rk-median .rk-col-bar { transition: transform .8s var(--c-ease); transition-delay: calc(var(--i) * 60ms); }
.rk-motion .rk-median:not(.is-shown) .rk-col-bar { transform: scaleY(0); }
.rk-motion .rk-median .rk-median-line { transition: transform .9s var(--c-ease) .55s, opacity .3s .55s; }
.rk-motion .rk-median:not(.is-shown) .rk-median-line { transform: scaleX(0); opacity: 0; }
.rk-motion .rk-median .rk-col-bar em { transition: opacity .4s 1.1s, transform .5s var(--c-ease) 1.1s; }
.rk-motion .rk-median:not(.is-shown) .rk-col-bar em { opacity: 0; transform: translate(-50%, 8px) scale(.8); }
.rk-motion .rk-median.is-shown .rk-col.is-out .rk-col-bar { animation: rk-glow 2.4s ease-in-out 1.6s infinite; }
@keyframes rk-glow { 50% { box-shadow: 0 10px 30px -6px rgba(90,168,58,.75); } }

/* Reorder demo */
.rk-ro-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 12px; background: #eef3ea; }
.rk-ro-tabs { display: none; }
.rk-js .rk-ro-tabs { display: inline-flex; }
.rk-ro-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--c-soft); cursor: pointer; }
.rk-ro-tabs button[aria-pressed="true"] { background: #fff; color: var(--c-green); box-shadow: 0 1px 2px rgba(11,26,14,.08), 0 4px 10px -6px rgba(11,26,14,.25); }
.rk-ro-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; counter-reset: ro; }
.rk-ro-row { counter-increment: ro; display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 12px !important; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); will-change: transform; }
.rk-ro-row::before { content: counter(ro); flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-wash); color: var(--c-soft); font-size: 13px; font-weight: 800; }
.rk-ro-row::marker { content: none; }
.rk-ro-who { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.rk-ro-who b { font-size: 15px; color: var(--c-ink); }
.rk-ro-who small { font-size: 13px; color: var(--c-muted); }
.rk-ro-score { font-weight: 800; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: var(--c-wash); color: var(--c-soft); font-variant-numeric: tabular-nums; }
.rk-reorder[data-by="score"] .rk-ro-row:first-child { border-color: #b9d6a5; box-shadow: 0 8px 20px -14px rgba(1,55,11,.5); }
.rk-reorder[data-by="score"] .rk-ro-row:first-child::before { background: var(--c-green); color: var(--c-lime); }
.rk-ro-row[data-score] .rk-ro-score { transition: background .3s, color .3s; }
.rk-reorder[data-by="score"] .rk-ro-score { background: #eefbe3; color: var(--c-green); }

/* Stats */
.rk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 1.4em 0 1.6em; max-width: var(--c-measure); }
.rk-stat { padding: 14px 14px 12px; border-radius: 14px; background: var(--c-soft-bg); border: 1px solid #d2f2b2; }
.rk-stat b { display: block; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.02em; color: var(--c-green); font-variant-numeric: tabular-nums; }
.rk-stat span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--c-soft); }
@media (max-width: 480px) { .rk-stat { padding: 12px 10px 10px; } .rk-stat b { font-size: 22px; } .rk-stat span { font-size: 12.5px; } }

/* Flow */
.rk-flow { list-style: none; margin: 1.2em 0 1.6em !important; padding: 0 !important; display: grid; gap: 10px; max-width: var(--c-measure); }
@media (min-width: 640px) { .rk-flow { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.rk-flow li { position: relative; margin: 0 !important; padding: 12px 14px 12px 48px !important; border-radius: 12px; background: #fff; border: 1px solid var(--c-line-2); font-size: 15px; line-height: 1.4; color: var(--c-ink); box-shadow: 0 1px 2px rgba(11,26,14,.04); }
.rk-flow li::marker { content: none; }
.rk-flow li > span { position: absolute; left: 12px; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-green); color: var(--c-lime); font-size: 13px; font-weight: 800; }
@media (min-width: 640px) {
  .rk-flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid #9fc489; border-right: 2px solid #9fc489; transform: rotate(45deg); z-index: 1; }
}
.rk-motion .rk-flow.rk-in li { transition: opacity .5s var(--c-ease), transform .6s var(--c-ease); transition-delay: calc(var(--i) * 110ms); }
.rk-motion .rk-flow.rk-in:not(.is-shown) li { opacity: 0; transform: translateY(10px); }
.rk-motion .rk-flow.rk-in { opacity: 1 !important; transform: none !important; }

/* VS */
.rk-vs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 1.4em 0 1.6em; max-width: var(--c-measure); }
@media (min-width: 560px) { .rk-vs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rk-vs-col { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--c-line); background: #fff; }
.rk-vs-col.is-yes { background: var(--c-soft-bg); border-color: #d2f2b2; }
.rk-vs-col.is-no { background: #fbf8f6; border-color: #eadfd8; }
.rk-prose .rk-vs-t { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-soft); }
.rk-vs ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 6px; }
.rk-vs li { position: relative; margin: 0 !important; padding: 0 0 0 26px !important; font-size: 15px; line-height: 1.4; }
.rk-vs li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #2b7a1e center/11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.rk-vs-col.is-no li::before { background-color: #b45309; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E"); }
.rk-vs li::marker { content: none; }

/* Timeline */
.rk-timeline { list-style: none; margin: 1.4em 0 1.6em !important; padding: 0 !important; display: flex; gap: 4px; max-width: var(--c-measure); }
.rk-timeline li { flex: var(--w) 1 0; min-width: 0; margin: 0 !important; padding: 12px 10px !important; border-radius: 10px; background: #e3efdb; display: flex; flex-direction: column; gap: 2px; }
.rk-timeline li:first-child { background: var(--c-green); }
.rk-timeline li:first-child b, .rk-timeline li:first-child span { color: var(--c-lime); }
.rk-timeline li::marker { content: none; }
.rk-timeline b { font-size: 14px; color: var(--c-ink); }
.rk-timeline span { font-size: 12px; color: var(--c-soft); }
@media (max-width: 480px) { .rk-timeline { flex-direction: column; } .rk-timeline li { flex: none; flex-direction: row; justify-content: space-between; align-items: center; } }
.rk-motion .rk-timeline.rk-in { opacity: 1 !important; transform: none !important; }
.rk-motion .rk-timeline.rk-in li { transition: opacity .45s, transform .6s var(--c-ease); transition-delay: calc(var(--i) * 120ms); transform-origin: 0 50%; }
.rk-motion .rk-timeline.rk-in:not(.is-shown) li { opacity: 0; transform: scaleX(.6); }

/* Formula */
.rk-formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 1.4em 0 1.6em; padding: 16px; border-radius: 16px; background: #0b1a0e; max-width: var(--c-measure); }
.rk-formula > div { text-align: center; padding: 8px 12px; border-radius: 12px; background: #13281a; min-width: 96px; }
.rk-formula b { display: block; font-size: clamp(20px, 2.2vw, 26px); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rk-formula span { display: block; font-size: 12px; color: #9fb79a; margin-top: 2px; }
.rk-formula > i { font-style: normal; font-size: 22px; color: #9fb79a; }
.rk-formula > .is-r { background: var(--c-lime); }
.rk-formula > .is-r b { color: var(--c-green); }
.rk-formula > .is-r span { color: #2b5a1e; }
.rk-motion .rk-formula.rk-in > * { transition: opacity .5s, transform .6s var(--c-ease); }
.rk-motion .rk-formula.rk-in { opacity: 1 !important; transform: none !important; }
.rk-motion .rk-formula.rk-in:not(.is-shown) > * { opacity: 0; transform: translateY(8px); }
.rk-motion .rk-formula.rk-in > :nth-child(2) { transition-delay: .12s; } .rk-motion .rk-formula.rk-in > :nth-child(3) { transition-delay: .24s; }
.rk-motion .rk-formula.rk-in > :nth-child(4) { transition-delay: .36s; } .rk-motion .rk-formula.rk-in > :nth-child(5) { transition-delay: .55s; }

/* Tiles */
.rk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 1.4em 0 1.6em; max-width: var(--c-measure); }
.rk-tile { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--c-line-2); box-shadow: 0 1px 2px rgba(11,26,14,.04); }
.rk-tile b { display: block; font-size: 15px; color: var(--c-ink); margin-bottom: 4px; }
.rk-tile span { display: block; font-size: 14px; line-height: 1.45; color: var(--c-soft); }
@media (max-width: 420px) { .rk-tiles { grid-template-columns: minmax(0, 1fr); } }
.rk-motion .rk-tiles.rk-in { opacity: 1 !important; transform: none !important; }
.rk-motion .rk-tiles.rk-in .rk-tile { transition: opacity .45s, transform .6s var(--c-ease); transition-delay: calc(var(--i) * 80ms); }
.rk-motion .rk-tiles.rk-in:not(.is-shown) .rk-tile { opacity: 0; transform: translateY(10px) scale(.98); }

/* Short-form prose rhythm */
.rk-post .rk-prose > p { max-width: 62ch; }
.rk-prose h2 { margin-top: 2em; }

/* Playful quiz + calculator motion */
.rk-quiz-progress { height: 6px; border-radius: 999px; background: #dcebd2; overflow: hidden; margin: 10px 0 4px; }
.rk-quiz-progress i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #5aa83a, #01370b); border-radius: inherit; transition: width .5s var(--c-ease); }
.rk-quiz-opt.is-wrong { animation: rk-shake .4s ease-in-out; }
@keyframes rk-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.rk-burst { position: absolute; left: 22px; top: 50%; width: 0; height: 0; pointer-events: none; }
.rk-burst i { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: var(--c); animation: rk-burst .7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rk-burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.4) rotate(160deg); opacity: 0; } }
.rk-quiz-result { position: relative; }
.rk-quiz-ring { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--c-green);
  background: conic-gradient(#2b7a1e calc(var(--pct, 0) * 1%), #e3efdb 0); position: relative; transition: --pct 1s; }
.rk-quiz-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.rk-quiz-ring span { position: relative; }
.rk-calc-stat b.is-bump { animation: rk-bump .35s var(--c-ease); }
@keyframes rk-bump { 50% { transform: scale(1.08); color: #2b7a1e; } }
.rk-calc-stat b { display: inline-block; transform-origin: 0 50%; }

@media (prefers-reduced-motion: reduce) {
  .rk-ring, .rk-col-bar, .rk-median-line, .rk-quiz-opt, .rk-calc-stat b { animation: none !important; transition: none !important; }
  .rk-stepper-track { scroll-behavior: auto; }
}

@media (max-width: 480px) {
  .rk-formula { gap: 6px; padding: 12px 8px; flex-wrap: nowrap; }
  .rk-formula > div { min-width: 0; padding: 8px 6px; flex: 1 1 0; }
  .rk-formula b { font-size: 17px; }
  .rk-formula span { font-size: 10.5px; }
  .rk-formula > i { font-size: 16px; }
}
.rk-shot figcaption, .rk-stepper figcaption { padding: 0; background: none; border: 0; text-align: left; font-style: normal; }
