/*
 * Zahara Help Centre — Release Notes page
 * Visual language directly ported from the Zahara marketing blog CSS.
 * All classes scoped under .rn-* to avoid conflicts.
 */

/* ─── Design tokens (mirrors blog :root) ─── */
:root {
  --color-brand-purple:      #af1469;
  --color-brand-orange:      #e76b2c;
  --color-brand-purple-dark: #ab1988;
  --color-brand-orange-dark: #c95522;

  --gradient-zahara-main: linear-gradient(90deg, var(--color-brand-purple) 0%, var(--color-brand-orange) 100%);
  --text-gradient-zahara:  var(--gradient-zahara-main);

  --ds-color-text:       #4d4d4d;
  --ds-color-text-muted: #6b7280;
  --ds-color-border:     #e5e7eb;

  --color-blue1: #001d67;
  --color-blue2: #2a68ec;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 18px rgba(0,0,0,0.10);
  --shadow-hero:  0 24px 60px rgba(0,0,0,0.16);
  --radius-large: 24px;

  --font-poppins: Poppins, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --aspect-ratio-square: 1 / 1;
}

/* ─── Skeleton shimmer ─── */
@keyframes rn-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.rn-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: rn-shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ─── Reading progress bar (on sticky hero) ─── */
.rn-reading-progress {
  height: 3px;
  background: #e5e7eb;
  pointer-events: none;
}
.rn-reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-zahara-main);
  transition: width 80ms linear;
}

/* Sticky hero bar — full width, content scrolls beneath */
.rn-hero-sticky {
  grid-column: 1 / -1;
  position: sticky;
  top: var(--rn-hero-sticky-top, 116px);
  z-index: 100;
  background: #ffffff;
  padding-bottom: 8px;
  margin-bottom: 0;
  isolation: isolate;
}
/* Mask content scrolling up above / behind the hero */
.rn-hero-sticky::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: #ffffff;
  pointer-events: none;
}

.rn-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(51, 51, 51);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  text-decoration: none;
  transition: color 0.2s, padding-left 250ms ease;
}
.rn-hero-back:hover {
  color: var(--color-brand-purple);
  padding-left: 8px;
  text-decoration: none;
}

.rn-hero-card {
  background: #ffffff;
  border: 1px solid var(--ds-color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rn-hero-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.rn-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-brand-purple);
  margin: 0 0 8px;
}

.rn-hero-title {
  font-family: var(--font-poppins);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  color: rgb(51, 51, 51);
  margin: 0 0 24px;
  min-height: 1.2em;
}
.rn-hero-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.rn-hero-meta-vdivider {
  width: 1px;
  height: 1.25em;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.rn-hero-tldr-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 12px;
  font-family: var(--font-poppins);
  font-size: 13px;
  font-weight: 500;
  color: #4d4d4d;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.rn-hero-tldr-jump-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.rn-hero-tldr-jump:hover {
  background: #e9eaec;
  border-color: #d1d5db;
  color: #4d4d4d;
}

/* Meta row — mirrors .blog-hero-meta */
.rn-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 14px;
}
.rn-hero-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rn-hero-category {
  color: var(--color-brand-purple);
  font-weight: 600;
  text-decoration: none;
}
.rn-hero-sep { color: #b0b0b0; }
.rn-hero-date { color: #6f6f6f; font-weight: 500; }
.rn-hero-readtime { color: #2f2f2f; font-weight: 500; }

/* ══════════════════════════════════════════════
   INFO BOXES — matches help centre info assets
══════════════════════════════════════════════ */
.rn-info-box {
  background: #f3e8ff;
  border: 1px solid var(--color-brand-purple);
  border-left-width: 5px;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
  font-family: var(--font-poppins);
  position: relative;
  z-index: 1;
}
.rn-info-box__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-brand-purple) 35%, transparent);
  color: var(--color-brand-purple);
}
.rn-info-box__header i,
.rn-info-box__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.rn-info-box__icon {
  width: 1.1rem;
  height: 1.1rem;
}
.rn-info-box__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rn-info-box__question {
  margin: 0;
  padding: 12px 18px 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-brand-purple-dark);
}
.rn-info-box__body {
  padding: 14px 18px 18px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-brand-purple-dark);
}
.rn-info-box__body p {
  margin: 0 0 0.75em;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-brand-purple-dark);
}
.rn-info-box__body p:last-child { margin-bottom: 0; }
.rn-info-box__body ul,
.rn-info-box__body ol {
  margin: 0;
  padding-left: 1.25rem;
}
.rn-info-box__body li {
  margin-bottom: 0.5em;
}
.rn-info-box__body li::marker {
  color: var(--color-brand-purple);
}
/* TL:DR — same layout as Key Takeaways, grey palette */
.rn-info-box--tldr {
  background: #f3f4f6;
  border-color: #4d4d4d;
}
.rn-info-box--tldr .rn-info-box__header {
  border-bottom-color: color-mix(in srgb, #4d4d4d 35%, transparent);
  color: #4d4d4d;
}
.rn-info-box--tldr .rn-info-box__question {
  color: #4d4d4d;
}
.rn-info-box--tldr .rn-info-box__body,
.rn-info-box--tldr .rn-info-box__body p {
  color: #4d4d4d;
}
.rn-info-box--tldr .rn-info-box__body li::marker {
  color: #4d4d4d;
}

#rn-tldr-box {
  margin-top: 32px;
  margin-bottom: 0;
  scroll-margin-top: calc(var(--rn-stack-top, 240px) + 24px);
}

/* ══════════════════════════════════════════════
   BODY SECTION — sidebar + main
   (mirrors .blog-body-section / .blog-body-grid)
══════════════════════════════════════════════ */
.rn-body-section {
  background: #ffffff;
  padding: 56px 0 64px;
}
.rn-body-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: clamp(280px, 26%, 340px) minmax(0, 1fr);
  column-gap: 36px;
  row-gap: 12px;
  align-items: start;
}

/* ══════════════════════════════════════════════
   LEFT SIDEBAR — Release History Timeline
   Card/wrapper visual IDENTICAL to blog TOC:
     .blog-toc-card  →  .rn-toc-card   (sidebar TOC card)
     .blog-toc-title →  .rn-toc-title  (orange, border-bottom)
     .blog-toc-list  →  .rn-toc-list   (items)
     .blog-toc-link  →  .rn-toc-link   (left-rail box-shadow)
     .is-active      →  same token, orange fill + 3px left rail
   Items get timeline dots added on top of the left-rail pattern.
══════════════════════════════════════════════ */

/* Left sidebar — sticky below the hero bar */
.rn-side {
  position: sticky;
  top: var(--rn-stack-top, 240px);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-self: start;
  max-height: calc(100vh - var(--rn-stack-top, 240px) - 16px);
  background: #ffffff;
  isolation: isolate;
}
.rn-side::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: #ffffff;
  pointer-events: none;
}

/* Sidebar TOC card */
.rn-toc-card {
  background: #ffffff;
  border: 1px solid var(--ds-color-border);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}

/* Orange title — mirrors .blog-toc-title */
.rn-toc-title {
  font-family: var(--font-poppins);
  color: rgb(51, 51, 51);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* Search row */
.rn-side-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-bottom: 10px;
}
.rn-side-search-wrap {
  position: relative;
  flex: 1;
}
.rn-side-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 11px;
  pointer-events: none;
}
.rn-side-search {
  width: 100%;
  padding: 7px 10px 7px 28px;
  font-size: 12px;
  font-family: var(--font-poppins);
  border: 1px solid var(--ds-color-border);
  border-radius: 10px;
  color: var(--ds-color-text);
  background: #f9fafb;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.rn-side-search:focus {
  border-color: var(--color-brand-purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-purple) 12%, transparent);
  background: #fff;
}
.rn-side-search::placeholder { color: #9ca3af; font-style: italic; font-size: 11px; }
.rn-side-clear-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--ds-color-border);
  border-radius: 8px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rn-side-clear-btn:hover {
  background: #fff;
  border-color: var(--color-brand-orange);
  color: var(--color-brand-orange);
}

/* ─── In-article date timeline (left sidebar) ─── */
.rn-hist-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.rn-hist-scroll::-webkit-scrollbar { width: 4px; }
.rn-hist-scroll::-webkit-scrollbar-track { background: transparent; }
.rn-hist-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

/* Vertical gradient spine */
.rn-hist-list {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.rn-hist-list::before {
  content: '';
  position: absolute;
  left: 10px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--color-brand-purple) 35%, transparent),
    color-mix(in srgb, var(--color-brand-orange) 35%, transparent)
  );
  border-radius: 1px;
  pointer-events: none;
}

/* Each date item */
.rn-hist-item {
  position: relative;
  margin: 2px 0;
  padding-left: 32px;
}
.rn-hist-item::before {
  content: '';
  position: absolute;
  left: 5px; top: 11px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  z-index: 1;
}
.rn-hist-item.is-active::before {
  border-color: var(--color-brand-purple);
  background: var(--color-brand-purple);
  transform: scale(1.15);
}
.rn-hist-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 8px;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}
.rn-hist-link:hover {
  color: var(--color-brand-orange);
  background: color-mix(in srgb, var(--color-brand-orange) 8%, transparent);
  text-decoration: none;
}
.rn-hist-item.is-active .rn-hist-link {
  color: var(--color-brand-purple);
  font-weight: 600;
  background: color-mix(in srgb, var(--color-brand-purple) 8%, transparent);
}

/* Skeleton & empty */
.rn-hist-skeleton { display: flex; flex-direction: column; gap: 8px; }
.rn-hist-skeleton-item { height: 36px; border-radius: 8px; }
.rn-hist-empty { padding: 20px 8px; text-align: center; color: #9ca3af; font-size: 13px; }

/* ─── Next / Previous release nav links ─── */
.rn-nav-divider {
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 20px 0 14px;
  flex-shrink: 0;
}

.rn-nav-group {
  margin-top: 0;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
}
.rn-nav-group:has(.rn-nav-card--next:not(.rn-prev-release-hidden)):has(.rn-nav-card--prev:not(.rn-prev-release-hidden))::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.12);
  transform: translateX(-50%);
}

.rn-nav-card {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.rn-nav-card:hover {
  text-decoration: none;
}

.rn-nav-card-row--right { justify-content: flex-end; }

.rn-nav-card-label { display: none; }

.rn-nav-card-date {
  font-family: var(--font-poppins);
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.15s;
}
.rn-nav-card:hover .rn-nav-card-date { color: #4b5563; }

.rn-nav-card-arrow {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.2s;
}
.rn-nav-card:hover .rn-nav-card-arrow { color: #9ca3af; }
.rn-nav-card--next { grid-column: 1; justify-content: flex-start; }
.rn-nav-card--prev { grid-column: 2; justify-content: flex-end; }
.rn-nav-card--next:hover .rn-nav-card-arrow { transform: translateX(-3px); }
.rn-nav-card--prev:hover .rn-nav-card-arrow { transform: translateX(3px); }

.rn-prev-release-hidden { display: none; }

/* ══════════════════════════════════════════════
   MAIN AREA — article + in-article timeline
══════════════════════════════════════════════ */
.rn-main {
  min-width: 0;
  overflow: clip;
  position: relative;
  z-index: 1;
}

.rn-article-wrap {
  display: block;
}
.rn-article-body { min-width: 0; }

/* Loading skeleton */
.rn-article-skeleton {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 4px 0;
}
.rn-article-skeleton-line { height: 16px; }
.rn-article-skeleton-line:nth-child(1) { width: 44%; height: 28px; }
.rn-article-skeleton-line:nth-child(2) { width: 100%; animation-delay: 0.08s; }
.rn-article-skeleton-line:nth-child(3) { width: 96%; animation-delay: 0.12s; }
.rn-article-skeleton-line:nth-child(4) { width: 88%; animation-delay: 0.18s; }
.rn-article-skeleton-line:nth-child(5) { width: 62%; height: 22px; margin-top: 10px; }
.rn-article-skeleton-line:nth-child(6) { width: 100%; animation-delay: 0.08s; }
.rn-article-skeleton-line:nth-child(7) { width: 91%; animation-delay: 0.14s; }

/* Empty state */
.rn-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: #9ca3af;
  gap: 14px;
}
.rn-empty-icon { font-size: 3rem; opacity: 0.35; }
.rn-empty-text  { font-size: 15px; }

/* ══════════════════════════════════════════════
   ARTICLE CONTENT  (mirrors .blog-content)
══════════════════════════════════════════════ */
.rn-content {
  font-size: 16px;
  line-height: 1.75;
  color: #4d4d4d;
  overflow-wrap: break-word;
  font-family: var(--font-poppins);
}
.rn-content p { font-size: 16px; line-height: 1.8; margin-bottom: 1.3em; }
.rn-content a { color: var(--color-blue2); text-decoration: underline; }
.rn-content a:hover { color: var(--color-brand-purple); }

/* h2, h3, h4 = date section headings — gradient dot + horizontal rule */
.rn-content h2,
.rn-content h3,
.rn-content h4 {
  font-family: var(--font-poppins);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-brand-purple);
  margin: 48px 0 16px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
  scroll-margin-top: 110px;
}
.rn-content h2::before,
.rn-content h3::before,
.rn-content h4::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-brand-purple);
  flex-shrink: 0;
}
.rn-content h2::after,
.rn-content h3::after,
.rn-content h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--color-brand-purple) 28%, transparent),
    transparent
  );
}
.rn-content h5 { font-size: 1em; font-weight: 700; margin: 14px 0 6px; }
.rn-content h6 { font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 6px; color: #9ca3af; }
.rn-content ul, .rn-content ol { padding-left: 1.6rem; margin-bottom: 1.4em; line-height: 1.75; }
.rn-content ul { list-style: disc; }
.rn-content ol { list-style: decimal; }
.rn-content li { margin-bottom: 0.6em; }
.rn-content blockquote {
  border-left: 4px solid var(--color-brand-purple);
  padding: 0.5em 0 0.5em 1.2rem;
  font-style: italic; color: #666;
  margin: 1.5em 0; background: #f9f9f9;
  border-radius: 0 8px 8px 0;
}
.rn-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.2em 0; display: block; box-shadow: var(--shadow-md); }
.rn-content strong { font-weight: 700; }
.rn-content code { font-family: var(--font-mono); font-size: 0.88em; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; color: #374151; }
.rn-content pre { background: #f4f4f4; font-size: 0.88em; line-height: 1.5; font-family: var(--font-mono); padding: 14px 16px; border-radius: 10px; margin-bottom: 1.4em; overflow-x: auto; }
.rn-content pre code { background: none; padding: 0; }
.rn-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 15px; }
.rn-content th { background: var(--color-blue1); color: #fff; padding: 8px 12px; text-align: left; font-weight: 600; }
.rn-content td { padding: 8px 12px; border-bottom: 1px solid #e5e5e5; }
.rn-content tr:nth-child(even) { background: #f8f8f8; }

/* ══════════════════════════════════════════════
   FEEDBACK ROW
══════════════════════════════════════════════ */
.rn-feedback {
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rn-feedback-label { font-size: 14px; font-weight: 500; color: #4d4d4d; }
.rn-feedback-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  border: 1px solid; background: transparent;
  cursor: pointer; font-family: var(--font-poppins);
  transition: background 0.15s, transform 0.1s;
}
.rn-feedback-btn:active { transform: translateY(1px); }
.rn-feedback-btn--yes { border-color: #48c78e; color: #2d8a5e; }
.rn-feedback-btn--yes:hover { background: rgba(72,199,142,0.10); }
.rn-feedback-btn--no  { border-color: #f14668; color: #c0304f; }
.rn-feedback-btn--no:hover  { background: rgba(241,70,104,0.10); }
.rn-feedback-thanks { font-size: 13px; color: #2d8a5e; font-weight: 500; }

/* ══════════════════════════════════════════════
   IN-ARTICLE DATE TIMELINE (right column)
   Scans H2s within the loaded article body
══════════════════════════════════════════════ */
.rn-timeline {
  position: sticky;
  top: 90px;
  padding-top: 4px;
}
.rn-timeline-wrap {
  background: #fde9e1;
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.rn-timeline-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 12px;
}
.rn-timeline-title {
  font-family: var(--font-poppins);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-brand-orange);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rn-timeline-list {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.rn-timeline-list::before {
  content: '';
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--color-brand-purple) 28%, transparent),
    color-mix(in srgb, var(--color-brand-orange) 28%, transparent)
  );
  border-radius: 1px;
}
.rn-timeline-item {
  position: relative;
  padding: 0 0 2px 22px;
  margin-bottom: 2px;
}
.rn-timeline-item::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  z-index: 1;
}
.rn-timeline-item.is-active::before {
  border-color: var(--color-brand-purple);
  background: var(--color-brand-purple);
  transform: scale(1.2);
}
.rn-timeline-link {
  display: block;
  font-size: 12.5px; font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.35;
  transition: color 0.15s, background 0.15s;
}
.rn-timeline-link:hover {
  color: var(--color-brand-orange);
  background: color-mix(in srgb, var(--color-brand-orange) 8%, transparent);
  text-decoration: none;
}
.rn-timeline-item.is-active .rn-timeline-link {
  color: var(--color-brand-purple);
  font-weight: 600;
  background: color-mix(in srgb, var(--color-brand-purple) 7%, transparent);
}
.rn-timeline-sublist { list-style: none; margin: 2px 0 4px; padding-left: 10px; }
.rn-timeline-sublink {
  display: block; font-size: 11.5px; font-weight: 400;
  color: #9ca3af; text-decoration: none;
  padding: 2px 6px; border-radius: 5px;
  transition: color 0.15s;
}
.rn-timeline-sublink:hover { color: var(--color-brand-orange); text-decoration: none; }

/* ══════════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════════ */
.rn-mobile-fab {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-zahara-main);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  font-size: 16px;
  cursor: pointer;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.rn-mobile-fab:hover { transform: scale(1.07); }
.rn-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 600;
}
.rn-drawer {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100%;
  background: #fff;
  z-index: 700;
  display: flex; flex-direction: column;
  transition: left 0.3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.16);
}
.rn-drawer.is-open { left: 0; }
.rn-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--ds-color-border);
  flex-shrink: 0;
}
.rn-drawer-title { font-family: var(--font-poppins); font-size: 1rem; font-weight: 600; color: var(--color-brand-orange); }
.rn-drawer-close {
  background: none; border: none;
  font-size: 18px; color: #6b7280;
  cursor: pointer; padding: 4px;
  border-radius: 6px; transition: background 0.15s;
}
.rn-drawer-close:hover { background: #f3f4f6; color: #2c2c2c; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .rn-article-wrap { grid-template-columns: 1fr; }
  .rn-timeline { display: none; }
}
@media (max-width: 960px) {
  .rn-hero-card-body { padding: 22px; }
}
@media (max-width: 800px) {
  .rn-body-grid { grid-template-columns: 1fr; }
  .rn-side { position: static; max-height: none; }
  .rn-toc-card { max-height: 280px; }
  .rn-mobile-fab { display: inline-flex !important; }
}
@media (max-width: 600px) {
  .rn-hero-title { font-size: 26px; }
  .rn-hero-meta { flex-wrap: wrap; }
  .rn-hero-meta-right { width: 100%; justify-content: flex-start; }
  .rn-hero-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ══════════════════════════════════════════════
   ENTRANCE ANIMATIONS  (mirrors blog motion)
══════════════════════════════════════════════ */
@keyframes rn-fade-up {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}
.rn-hero-back { animation: rn-fade-up 700ms cubic-bezier(0.22,1,0.36,1) both; }
.rn-hero-card { animation: rn-fade-up 900ms cubic-bezier(0.22,1,0.36,1) 60ms both; }
.rn-hero-title { animation: rn-fade-up 900ms cubic-bezier(0.22,1,0.36,1) 80ms both; }
.rn-hero-meta  { animation: rn-fade-up 800ms cubic-bezier(0.22,1,0.36,1) 200ms both; }

@media (prefers-reduced-motion: reduce) {
  .rn-hero-back, .rn-hero-card, .rn-hero-title, .rn-hero-meta { animation: none !important; }
  .rn-hist-item::before, .rn-timeline-item::before { transition: none !important; }
}
