/* =============================================================================
   RevBridge Blog — design system + components
   Brand: RevBridge (coral #EA5840 + navy #0A1628, Inter, monochrome+accent)
   Layout: InsiderOne-inspired editorial (dark heroes, sticky TOC, card grid)
   ========================================================================== */

/* ---------- Font (self-hosted Inter variable; system stack fallback) -------- */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('../fonts/InterVariable.woff2') format('woff2');
}

/* ---------- Tokens ---------------------------------------------------------- */
:root {
  /* Brand accent */
  --rb-brand-50:#FFF5F3; --rb-brand-100:#FFE4DD; --rb-brand-200:#FFC4B8;
  --rb-brand-300:#FF9E8D; --rb-brand-400:#F06652; --rb-brand-500:#EA5840;
  --rb-brand-600:#D04830; --rb-brand-700:#B03825; --rb-brand-800:#8A2B1C;
  --rb-brand-900:#6B2015;
  /* Navy / dark surfaces */
  --rb-dark-700:#0D2847; --rb-dark-800:#102240; --rb-dark-900:#0A1628;
  /* Warm tints */
  --rb-warm-50:#FFF9F7; --rb-warm-100:#FFF0EC; --rb-warm-200:#FFE4DD;
  /* Channels */
  --rb-c-email:#EA5840; --rb-c-sms:#3B82F6; --rb-c-whatsapp:#22C55E; --rb-c-push:#F59E0B;
  /* Gray scale (Chakra default gray) */
  --rb-gray-50:#F7FAFC; --rb-gray-100:#EDF2F7; --rb-gray-200:#E2E8F0;
  --rb-gray-300:#CBD5E0; --rb-gray-400:#A0AEC0; --rb-gray-500:#718096;
  --rb-gray-600:#4A5568; --rb-gray-700:#2D3748; --rb-gray-800:#1A202C;
  --rb-gray-900:#171923; --rb-white:#FFFFFF;
  /* White alphas (text on dark) */
  --rb-wa-100:rgba(255,255,255,.06); --rb-wa-200:rgba(255,255,255,.08);
  --rb-wa-300:rgba(255,255,255,.12); --rb-wa-400:rgba(255,255,255,.16);
  --rb-wa-500:rgba(255,255,255,.36); --rb-wa-600:rgba(255,255,255,.48);
  --rb-wa-700:rgba(255,255,255,.64); --rb-wa-800:rgba(255,255,255,.80);
  /* Typography */
  --rb-font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  --rb-fs-hero:clamp(36px,5.2vw,68px);
  --rb-fs-section:clamp(28px,4vw,48px);
  --rb-fs-subsection:clamp(20px,2.5vw,30px);
  --rb-fs-h3:clamp(19px,1.6vw,24px);
  --rb-fs-body:clamp(16px,1.05vw,18px);
  --rb-fs-prose:19px;
  --rb-fs-label:13px; --rb-fs-navlink:15px;
  --rb-lh-heading:1.12; --rb-lh-body:1.75; --rb-lh-prose:1.8;
  --rb-ls-heading:-0.03em; --rb-ls-wordmark:-0.02em; --rb-ls-eyebrow:.1em; --rb-ls-col:.08em;
  /* Layout */
  --rb-container:1200px; --rb-container-wide:1296px;
  --rb-prose:740px;
  --rb-px:20px;
  --rb-navbar-h:68px;
  /* Radii */
  --rb-r-sm:8px; --rb-r-md:12px; --rb-r-card:16px; --rb-r-lg:20px; --rb-r-xl:24px; --rb-r-pill:999px;
  /* Shadows */
  --rb-sh-subtle:0 1px 4px rgba(0,0,0,.04);
  --rb-sh-card:0 1px 3px rgba(0,0,0,.04),0 6px 24px rgba(0,0,0,.04);
  --rb-sh-card-hover:0 4px 12px rgba(0,0,0,.05),0 16px 48px rgba(0,0,0,.08);
  --rb-sh-hero:0 24px 80px rgba(0,0,0,.08);
  --rb-sh-dark:0 32px 80px rgba(0,0,0,.3);
  --rb-sh-btn:0 8px 24px rgba(234,88,64,.3);
  /* Motion */
  --rb-ease:cubic-bezier(.25,.1,.25,1);
}
@media (min-width:768px){ :root{ --rb-px:40px; } }
@media (min-width:992px){ :root{ --rb-px:64px; } }

/* ---------- Reset / base ---------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
[id]{ scroll-margin-top:calc(var(--rb-navbar-h) + 24px); }
body{
  margin:0; background:var(--rb-white); color:var(--rb-gray-900);
  font-family:var(--rb-font-sans); font-size:var(--rb-fs-body); line-height:var(--rb-lh-body);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
img,svg,video{ max-width:100%; height:auto; display:block; }
a{ color:var(--rb-brand-600); text-decoration:none; }
a:hover{ color:var(--rb-brand-600); }
h1,h2,h3,h4,h5,h6{ margin:0; font-weight:800; letter-spacing:var(--rb-ls-heading); line-height:var(--rb-lh-heading); color:var(--rb-gray-900); }
/* Heading look without the heading tag — page chrome (footer cols, newsletter,
   related, cards, author box) must not pollute the article's heading outline. */
.rb-fauxhead{ margin:0; font-weight:800; letter-spacing:var(--rb-ls-heading); line-height:var(--rb-lh-heading); color:var(--rb-gray-900); }
p{ margin:0 0 1.1em; }
ul,ol{ margin:0 0 1.1em; padding-left:1.3em; }
hr{ border:0; border-top:1px solid var(--rb-gray-200); margin:32px 0; }
:focus-visible{ outline:2px solid var(--rb-brand-500); outline-offset:2px; border-radius:4px; }
::selection{ background:var(--rb-brand-100); color:var(--rb-brand-900); }

/* ---------- Layout helpers -------------------------------------------------- */
.rb-container{ width:100%; max-width:var(--rb-container); margin-inline:auto; padding-inline:var(--rb-px); }
.rb-container--wide{ max-width:var(--rb-container-wide); }
.rb-section{ padding-block:clamp(56px,8vw,96px); }
.rb-section--sm{ padding-block:clamp(48px,6vw,72px); }
.rb-bg-light{ background:var(--rb-white); }
.rb-bg-gray{ background:var(--rb-gray-50); }
.rb-bg-dark{ background:var(--rb-dark-900); color:var(--rb-white); }
.rb-skip-link{ position:absolute; left:-9999px; }
.rb-eyebrow{
  display:inline-block; font-size:var(--rb-fs-label); font-weight:700; text-transform:uppercase;
  letter-spacing:var(--rb-ls-eyebrow); color:var(--rb-brand-600); margin:0 0 14px;
}
.rb-bg-dark .rb-eyebrow,.rb-on-dark .rb-eyebrow{ color:var(--rb-brand-400); }
.rb-balance{ text-wrap:balance; }
.rb-measure{ max-width:640px; }

/* ---------- Buttons --------------------------------------------------------- */
.rb-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  font-family:inherit; font-weight:600; font-size:14px; line-height:1; cursor:pointer;
  border-radius:var(--rb-r-pill); border:1.5px solid transparent; padding:0 24px; height:42px;
  transition:all .2s var(--rb-ease); white-space:nowrap; text-decoration:none;
}
.rb-btn svg{ width:18px; height:18px; flex:none; }
.rb-btn--lg{ height:50px; padding:0 32px; font-size:16px; }
.rb-btn--sm{ height:36px; padding:0 18px; font-size:14px; }
/* Bold + large-size keeps white-on-coral AA-compliant while preserving brand #EA5840. */
.rb-btn--primary{ background:var(--rb-brand-600); color:#fff; font-weight:700; }
.rb-btn--primary:hover{ background:var(--rb-brand-700); color:#fff; transform:translateY(-1px); box-shadow:var(--rb-sh-btn); }
.rb-btn--primary:active{ background:var(--rb-brand-800); transform:translateY(0); }
.rb-btn--outline{ background:transparent; color:var(--rb-gray-700); border-color:var(--rb-gray-200); }
.rb-btn--outline:hover{ background:var(--rb-gray-50); border-color:var(--rb-gray-300); color:var(--rb-gray-900); }
.rb-btn--ghost{ background:transparent; color:var(--rb-gray-600); }
.rb-btn--ghost:hover{ background:var(--rb-gray-50); color:var(--rb-gray-900); }
/* On dark */
.rb-on-dark .rb-btn--outline,.rb-bg-dark .rb-btn--outline{ color:#fff; border-color:var(--rb-wa-300); }
.rb-on-dark .rb-btn--outline:hover,.rb-bg-dark .rb-btn--outline:hover{ background:var(--rb-wa-100); border-color:var(--rb-wa-500); color:#fff; }
.rb-on-dark .rb-btn--ghost,.rb-bg-dark .rb-btn--ghost{ color:var(--rb-wa-700); }
.rb-on-dark .rb-btn--ghost:hover,.rb-bg-dark .rb-btn--ghost:hover{ background:var(--rb-wa-100); color:#fff; }

/* ---------- Tag / pill ------------------------------------------------------ */
.rb-pill{
  display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em; line-height:1; padding:5px 10px;
  border-radius:var(--rb-r-pill); background:var(--rb-brand-50); color:var(--rb-brand-700);
}
.rb-pill--ghost{ background:var(--rb-gray-100); color:var(--rb-gray-600); }
.rb-pill--solid{ background:var(--rb-brand-500); color:#fff; }
.rb-pill:hover{ color:var(--rb-brand-800); }

.rb-readtime{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:500; color:var(--rb-gray-600); }
.rb-readtime svg{ width:13px; height:13px; }

/* =============================================================================
   Header / navigation
   ========================================================================== */
/* Announcement ribbon */
.rb-announce{
  background:linear-gradient(90deg,var(--rb-brand-600),var(--rb-brand-500));
  color:#fff; font-size:13.5px; font-weight:500;
}
.rb-announce__inner{ display:flex; align-items:center; justify-content:center; gap:14px; padding:9px calc(var(--rb-px) + 34px) 9px var(--rb-px); position:relative; }
.rb-announce a{ color:#fff; text-decoration:underline; text-underline-offset:2px; font-weight:600; }
.rb-announce__close{ position:absolute; right:calc(var(--rb-px) - 4px); top:50%; transform:translateY(-50%); background:none; border:0; color:rgba(255,255,255,.78); cursor:pointer; padding:4px; line-height:0; }
.rb-announce__close:hover{ color:#fff; }
.rb-announce[hidden]{ display:none; }
.rb-announce-dismissed .rb-announce{ display:none; }
@media (max-width:599px){ .rb-announce__inner{ justify-content:flex-start; text-align:left; } }

.rb-header{ position:sticky; top:0; z-index:1000; }
.rb-nav{
  background:rgba(255,255,255,.80); backdrop-filter:blur(16px) saturate(180%);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
  border-bottom:1px solid var(--rb-gray-100);
}
.rb-nav.is-scrolled{ background:rgba(255,255,255,.92); box-shadow:0 6px 24px rgba(10,22,40,.07); }
.rb-nav__inner{ display:flex; align-items:center; justify-content:space-between; height:var(--rb-navbar-h); gap:24px; }
.rb-brand{ display:inline-flex; align-items:center; gap:10px; color:var(--rb-gray-900); }
.rb-brand:hover{ color:var(--rb-gray-900); opacity:.82; }
.rb-brand__mark{ height:26px; width:auto; color:var(--rb-brand-500); }
.rb-brand__mark svg{ height:26px; width:auto; }
.rb-brand__word{ font-size:17px; font-weight:700; letter-spacing:var(--rb-ls-wordmark); }
.rb-nav__menu{ display:none; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }
.rb-nav__menu a{ display:inline-flex; align-items:center; padding:8px 13px; border-radius:var(--rb-r-sm); font-size:var(--rb-fs-navlink); font-weight:500; color:var(--rb-gray-600); transition:all .15s var(--rb-ease); }
.rb-nav__menu a:hover,.rb-nav__menu .current-menu-item>a,.rb-nav__menu .current_page_item>a{ color:var(--rb-gray-900); background:var(--rb-gray-50); }
.rb-nav__cta{ display:none; align-items:center; gap:10px; }
.rb-nav__toggle{ display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:var(--rb-r-sm); background:transparent; border:0; color:var(--rb-gray-900); cursor:pointer; }
.rb-nav__toggle:hover{ background:var(--rb-gray-50); }
.rb-nav__toggle svg{ width:22px; height:22px; }
@media (min-width:992px){
  .rb-nav__menu{ display:flex; }
  .rb-nav__cta{ display:flex; }
  .rb-nav__toggle{ display:none; }
}
/* Mobile drawer */
.rb-drawer{ position:fixed; inset:0; z-index:1100; visibility:hidden; }
.rb-drawer.is-open{ visibility:visible; }
.rb-drawer__overlay{ position:absolute; inset:0; background:rgba(10,22,40,.4); opacity:0; transition:opacity .25s var(--rb-ease); }
.rb-drawer.is-open .rb-drawer__overlay{ opacity:1; }
.rb-drawer__panel{
  position:absolute; top:0; right:0; height:100%; width:min(86vw,360px);
  background:#fff; border-left:1px solid var(--rb-gray-100);
  transform:translateX(100%); transition:transform .28s var(--rb-ease);
  padding:18px 22px 32px; display:flex; flex-direction:column; overflow-y:auto;
}
.rb-drawer.is-open .rb-drawer__panel{ transform:translateX(0); }
.rb-drawer__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.rb-drawer__close{ background:none; border:0; color:var(--rb-gray-500); cursor:pointer; padding:6px; }
.rb-drawer__close:hover{ color:var(--rb-gray-900); }
.rb-drawer__menu{ list-style:none; margin:0 0 20px; padding:0; }
.rb-drawer__menu li{ border-bottom:1px solid var(--rb-gray-100); }
.rb-drawer__menu a{ display:block; padding:14px 4px; font-size:16px; font-weight:600; color:var(--rb-gray-800); }
.rb-drawer__menu a:hover{ color:var(--rb-brand-600); }
.rb-drawer__cta{ display:flex; flex-direction:column; gap:10px; margin-top:auto; }

/* =============================================================================
   Heroes
   ========================================================================== */
.rb-hero{ position:relative; overflow:hidden; background:linear-gradient(160deg,var(--rb-dark-900),var(--rb-dark-700)); color:#fff; }
.rb-hero::before{
  content:""; position:absolute; top:-20%; left:50%; transform:translateX(-50%);
  width:1100px; height:680px; pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(234,88,64,.18) 0%,rgba(234,88,64,.05) 40%,transparent 70%);
}
.rb-hero__inner{ position:relative; padding-block:clamp(48px,7vw,92px); }
.rb-hero h1{ color:#fff; font-size:var(--rb-fs-hero); max-width:18ch; }
.rb-hero__dek{ margin-top:18px; font-size:var(--rb-fs-body); line-height:1.65; color:var(--rb-wa-700); max-width:58ch; }

/* Blog index hero adds nothing extra; article hero variant below */
.rb-arthero__inner{ position:relative; padding-block:clamp(40px,5vw,72px); max-width:880px; }
.rb-arthero h1{ color:#fff; font-size:clamp(30px,4vw,52px); line-height:1.14; max-width:22ch; }
.rb-arthero__dek{ margin-top:16px; font-size:clamp(17px,1.4vw,20px); line-height:1.6; color:var(--rb-wa-700); max-width:60ch; }
.rb-arthero__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 18px; margin-top:26px; }
.rb-author-chip{ display:flex; align-items:center; gap:11px; }
.rb-author-chip__avatar{ width:42px; height:42px; border-radius:var(--rb-r-pill); object-fit:cover; background:var(--rb-wa-200); border:1px solid var(--rb-wa-200); }
.rb-author-chip > span{ display:flex; flex-direction:column; gap:1px; }
.rb-author-chip__name{ display:block; font-size:14px; font-weight:700; color:#fff; line-height:1.35; }
.rb-author-chip__role{ display:block; font-size:12.5px; color:var(--rb-wa-600); line-height:1.35; }
.rb-arthero__dot{ width:3px; height:3px; border-radius:50%; background:var(--rb-wa-500); }
.rb-arthero__date,.rb-arthero__meta .rb-readtime{ font-size:13px; color:var(--rb-wa-600); }
.rb-arthero__meta .rb-readtime svg{ color:var(--rb-wa-600); }

/* =============================================================================
   Breadcrumbs
   ========================================================================== */
.rb-breadcrumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:13px; }
.rb-breadcrumbs a{ color:var(--rb-gray-600); }
.rb-breadcrumbs a:hover{ color:var(--rb-gray-600); }
.rb-breadcrumbs .sep{ color:var(--rb-gray-300); user-select:none; }
.rb-breadcrumbs [aria-current]{ color:var(--rb-gray-600); font-weight:500; }
.rb-on-dark .rb-breadcrumbs a{ color:var(--rb-wa-500); }
.rb-on-dark .rb-breadcrumbs a:hover{ color:#fff; }
.rb-on-dark .rb-breadcrumbs .sep{ color:var(--rb-wa-400); }
.rb-on-dark .rb-breadcrumbs [aria-current]{ color:var(--rb-wa-700); }
.rb-breadcrumbs--page{ margin-bottom:22px; }

/* =============================================================================
   Cards / grid
   ========================================================================== */
.rb-grid{ display:grid; gap:24px; grid-template-columns:1fr; }
@media (min-width:640px){ .rb-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:992px){ .rb-grid{ grid-template-columns:repeat(3,1fr); } }

.rb-card{
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--rb-gray-100);
  border-radius:var(--rb-r-card); overflow:hidden; box-shadow:var(--rb-sh-card);
  transition:transform .25s var(--rb-ease),box-shadow .25s var(--rb-ease),border-color .25s var(--rb-ease);
  height:100%;
}
.rb-card:hover{ transform:translateY(-3px); box-shadow:var(--rb-sh-card-hover); border-color:var(--rb-gray-200); }
.rb-card__media{ position:relative; aspect-ratio:16/9; background:linear-gradient(135deg,var(--rb-dark-800),var(--rb-dark-700)); overflow:hidden; }
.rb-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .4s var(--rb-ease); }
.rb-card:hover .rb-card__media img{ transform:scale(1.04); }
.rb-card__media--placeholder{ display:flex; align-items:center; justify-content:center; }
.rb-card__media--placeholder .rb-brand__mark{ height:34px; opacity:.18; color:#fff; }
.rb-card__badge{ position:absolute; top:12px; right:12px; background:rgba(10,22,40,.78); color:#fff; backdrop-filter:blur(6px); padding:4px 9px; border-radius:var(--rb-r-pill); }
.rb-card__badge .rb-readtime{ color:#fff; }
.rb-card__badge .rb-readtime svg{ color:#fff; }
.rb-card__body{ display:flex; flex-direction:column; gap:10px; padding:20px 22px 22px; flex:1; }
.rb-card__cats{ display:flex; flex-wrap:wrap; gap:6px; }
.rb-card__title{ font-size:18px; line-height:1.32; letter-spacing:-0.02em; }
.rb-card__title a{ color:var(--rb-gray-900); }
.rb-card__title a:hover{ color:var(--rb-brand-600); }
.rb-card__excerpt{ font-size:14px; color:var(--rb-gray-600); line-height:1.6; margin:0; }
.rb-card__meta{ display:flex; align-items:center; gap:9px; margin-top:auto; padding-top:6px; }
.rb-card__meta-avatar{ width:26px; height:26px; border-radius:50%; object-fit:cover; background:var(--rb-gray-100); }
.rb-card__meta-text{ font-size:12.5px; color:var(--rb-gray-600); line-height:1.3; }
.rb-card__meta-text b{ color:var(--rb-gray-700); font-weight:600; }

/* Featured / trending cluster */
.rb-trending{ display:grid; gap:24px; grid-template-columns:1fr; }
@media (min-width:992px){ .rb-trending{ grid-template-columns:1.35fr 1fr; align-items:stretch; } }
.rb-trending__sub{ display:grid; gap:18px; grid-template-columns:1fr; align-content:start; }
@media (min-width:560px) and (max-width:991px){ .rb-trending__sub{ grid-template-columns:1fr 1fr; } }
.rb-card--feature .rb-card__media{ aspect-ratio:16/9; }
.rb-card--feature .rb-card__title{ font-size:clamp(22px,2.4vw,30px); line-height:1.18; }
.rb-card--feature .rb-card__excerpt{ font-size:15px; }
.rb-card--feature .rb-card__body{ padding:26px 28px 28px; gap:12px; }
.rb-card--mini .rb-card__media{ aspect-ratio:16/9; }
.rb-card--mini .rb-card__title{ font-size:15.5px; line-height:1.3; }
.rb-card--mini .rb-card__body{ padding:14px 16px 16px; gap:8px; }
.rb-card--mini .rb-card__excerpt{ display:none; }

/* Section heading row */
.rb-headrow{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:30px; flex-wrap:wrap; }
.rb-headrow h2{ font-size:var(--rb-fs-section); }
.rb-headrow__link{ font-size:14px; font-weight:600; color:var(--rb-brand-600); display:inline-flex; align-items:center; gap:5px; }
.rb-headrow__link:hover{ gap:8px; color:var(--rb-brand-600); }

/* Filter bar */
.rb-filter{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; justify-content:space-between; margin-bottom:32px; }
.rb-searchband{ padding:22px 0; border-bottom:1px solid var(--rb-gray-100); }
.rb-filter--search{ justify-content:flex-start; margin-bottom:0; }
.rb-filter--search .rb-search{ max-width:640px; flex:1; }
.rb-filter__chips{ display:flex; flex-wrap:wrap; gap:8px; }
.rb-chip{ font-size:13px; font-weight:600; color:var(--rb-gray-600); background:var(--rb-gray-50); border:1px solid var(--rb-gray-100); padding:8px 15px; border-radius:var(--rb-r-pill); transition:all .15s var(--rb-ease); }
.rb-chip:hover{ background:var(--rb-gray-100); color:var(--rb-gray-900); }
.rb-chip.is-active{ background:var(--rb-gray-900); border-color:var(--rb-gray-900); color:#fff; }
.rb-search{ position:relative; display:flex; align-items:center; min-width:240px; flex:1; max-width:320px; }
.rb-search svg{ position:absolute; left:14px; width:17px; height:17px; color:var(--rb-gray-400); pointer-events:none; }
.rb-search input{ width:100%; height:44px; padding:0 16px 0 40px; border:1px solid var(--rb-gray-200); border-radius:var(--rb-r-pill); font-family:inherit; font-size:14px; color:var(--rb-gray-900); background:#fff; transition:border-color .15s; }
.rb-search input:focus{ outline:none; border-color:var(--rb-brand-500); box-shadow:0 0 0 3px rgba(234,88,64,.12); }

/* =============================================================================
   Single article — two column layout
   ========================================================================== */
.rb-reading-progress{ position:fixed; top:0; left:0; height:3px; width:0; background:var(--rb-brand-500); z-index:1200; transition:width .1s linear; }
.rb-article{ background:#fff; padding-block:clamp(36px,5vw,64px); }
.rb-article__grid{ display:grid; gap:40px; grid-template-columns:1fr; }
@media (min-width:992px){ .rb-article__grid{ grid-template-columns:260px minmax(0,1fr); gap:56px; } }
.rb-article__main{ min-width:0; max-width:760px; }
.rb-rail{ display:none; }
@media (min-width:992px){ .rb-rail{ display:block; position:sticky; top:calc(var(--rb-navbar-h) + 28px); align-self:start; max-height:calc(100vh - var(--rb-navbar-h) - 48px); overflow-y:auto; } }
.rb-rail__title{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:var(--rb-ls-col); color:var(--rb-gray-600); margin:0 0 12px; }
/* TOC */
.rb-toc{ margin-bottom:32px; }
.rb-toc ol{ list-style:none; margin:0; padding:0; border-left:2px solid var(--rb-gray-100); }
.rb-toc li{ margin:0; }
.rb-toc a{ display:block; padding:6px 0 6px 16px; margin-left:-2px; border-left:2px solid transparent; font-size:13.5px; line-height:1.45; color:var(--rb-gray-600); transition:color .15s,border-color .15s; }
.rb-toc a:hover{ color:var(--rb-gray-800); }
.rb-toc a.is-active{ color:var(--rb-brand-600); border-left-color:var(--rb-brand-500); font-weight:600; }
.rb-toc li.lvl-3 a{ padding-left:28px; font-size:13px; }
/* Mobile collapsible TOC (native <details>, collapsed by default; <992px only) */
.rb-toc-mobile{ display:block; margin:0 0 28px; border:1px solid var(--rb-gray-100); border-radius:var(--rb-r-lg); padding:0 16px; background:var(--rb-gray-50); }
.rb-toc-mobile[hidden]{ display:none; }
.rb-toc-mobile__summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 2px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:var(--rb-ls-col); color:var(--rb-gray-600); }
.rb-toc-mobile__summary::-webkit-details-marker{ display:none; }
.rb-toc-mobile__summary svg{ flex:none; color:var(--rb-gray-400); transition:transform .2s var(--rb-ease); }
.rb-toc-mobile[open] .rb-toc-mobile__summary svg{ transform:rotate(180deg); }
.rb-toc-mobile nav{ padding:0 0 14px; }
.rb-toc-mobile ol{ list-style:none; margin:0; padding:0; border-left:2px solid var(--rb-gray-200); }
.rb-toc-mobile a{ display:block; padding:6px 0 6px 14px; margin-left:-2px; border-left:2px solid transparent; font-size:14px; line-height:1.45; color:var(--rb-gray-600); }
.rb-toc-mobile a:hover{ color:var(--rb-gray-900); }
.rb-toc-mobile li.lvl-3 a{ padding-left:26px; font-size:13px; }
@media (min-width:992px){ .rb-toc-mobile{ display:none !important; } }
/* Author / category expertise */
.rb-archhead__expertise{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; color:var(--rb-wa-700); font-size:13px; }
.rb-archhead__expertise .rb-pill{ background:var(--rb-wa-100); color:#fff; }
.rb-archhead__expertise .rb-pill:hover{ background:var(--rb-brand-500); color:#fff; }
.rb-cat-authors{ display:flex; flex-wrap:wrap; gap:16px; margin-top:18px; }
.rb-cat-authors .rb-author-chip__name{ color:var(--rb-gray-900); }
.rb-cat-authors .rb-author-chip__avatar{ width:36px; height:36px; }
/* Category hero is dark: keep the "written by" author names legible. */
.rb-on-dark .rb-cat-authors .rb-author-chip__name{ color:#fff; }
.rb-on-dark .rb-cat-authors .rb-author-chip:hover .rb-author-chip__name{ color:var(--rb-wa-700); }

/* Authors listing page */
.rb-authors-grid{ display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:640px){ .rb-authors-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1080px){ .rb-authors-grid{ grid-template-columns:repeat(3,1fr); } }
.rb-author-card{ display:flex; gap:18px; align-items:flex-start; background:#fff; border:1px solid var(--rb-gray-100); border-radius:var(--rb-r-lg); padding:24px; box-shadow:var(--rb-sh-card); transition:transform .2s var(--rb-ease),box-shadow .2s var(--rb-ease); }
.rb-author-card:hover{ transform:translateY(-3px); box-shadow:var(--rb-sh-card-hover); }
.rb-author-card__avatar{ width:64px; height:64px; border-radius:var(--rb-r-pill); flex:none; object-fit:cover; background:var(--rb-gray-100); }
.rb-author-card__name{ font-size:18px; margin:0 0 2px; color:var(--rb-gray-900); }
.rb-author-card__role{ font-size:13px; font-weight:600; color:var(--rb-brand-600); margin:0 0 8px; }
.rb-author-card__bio{ font-size:14px; color:var(--rb-gray-600); line-height:1.6; margin:0 0 10px; }
.rb-author-card__count{ font-size:12px; font-weight:600; color:var(--rb-gray-400); }
/* Share */
.rb-share__list{ display:flex; flex-wrap:wrap; gap:8px; }
.rb-share__btn{ display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:var(--rb-r-pill); background:var(--rb-gray-50); border:1px solid var(--rb-gray-100); color:var(--rb-gray-600); cursor:pointer; transition:all .15s var(--rb-ease); }
.rb-share__btn:hover{ background:var(--rb-gray-900); border-color:var(--rb-gray-900); color:#fff; transform:translateY(-2px); }
.rb-share__btn svg{ width:17px; height:17px; }
.rb-share--inline{ display:flex; align-items:center; gap:12px; margin:28px 0 8px; }
.rb-share--inline .rb-rail__title{ margin:0; }
.rb-share__btn.is-copied{ background:var(--rb-brand-500); border-color:var(--rb-brand-500); color:#fff; }
@media (min-width:992px){ .rb-share--inline{ display:none; } }

/* Key takeaway callout ([rb_key] shortcode) */
.rb-prose .rb-key{ background:var(--rb-warm-50); border:1px solid var(--rb-brand-100); border-left:3px solid var(--rb-brand-500); border-radius:var(--rb-r-md); padding:18px 22px; margin:1.8em 0; color:var(--rb-gray-800); font-style:normal; }
.rb-prose .rb-key p:last-child{ margin-bottom:0; }
/* Comment list basics */
.rb-comment-list .children{ list-style:none; padding-left:24px; }
.rb-comment-list li{ margin-bottom:18px; }

/* =============================================================================
   AISO — Read-with-AI, key takeaways, glossary
   ========================================================================== */
.rb-askai{ display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; margin:0 0 34px; padding:13px 18px; background:var(--rb-gray-50); border:1px solid var(--rb-gray-100); border-radius:var(--rb-r-md); }
.rb-askai__label{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--rb-gray-700); }
.rb-askai__label svg{ width:15px; height:15px; color:var(--rb-brand-500); }
.rb-askai__btns{ display:flex; flex-wrap:wrap; gap:8px; }
.rb-askai__btn{ font-size:13px; font-weight:600; color:var(--rb-gray-700); background:#fff; border:1px solid var(--rb-gray-200); padding:7px 14px; border-radius:var(--rb-r-pill); transition:all .15s var(--rb-ease); }
.rb-askai__btn:hover{ border-color:var(--rb-brand-500); color:var(--rb-brand-700); box-shadow:0 2px 10px rgba(234,88,64,.12); }

.rb-prose .rb-takeaways{ margin:0 0 2em; padding:24px 26px; background:linear-gradient(155deg,var(--rb-dark-900),var(--rb-dark-700)); color:#fff; border-radius:var(--rb-r-lg); position:relative; overflow:hidden; }
.rb-takeaways::before{ content:""; position:absolute; top:-50%; right:-10%; width:340px; height:340px; background:radial-gradient(circle,rgba(234,88,64,.18),transparent 65%); pointer-events:none; }
.rb-takeaways__h{ position:relative; display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:var(--rb-ls-eyebrow); color:var(--rb-brand-400); margin:0; cursor:pointer; list-style:none; user-select:none; }
.rb-takeaways__h::-webkit-details-marker{ display:none; }
.rb-takeaways__chev{ margin-left:auto; display:inline-flex; color:rgba(255,255,255,.7); transition:transform .2s var(--rb-ease); }
.rb-takeaways[open] .rb-takeaways__chev{ transform:rotate(180deg); }
.rb-prose .rb-takeaways ul{ position:relative; margin:14px 0 0; padding:0; list-style:none; display:grid; gap:11px; }
.rb-prose .rb-takeaways li{ position:relative; margin:0; padding-left:26px; font-size:15.5px; line-height:1.5; color:rgba(255,255,255,.88); }
.rb-takeaways li::before{ content:""; position:absolute; left:4px; top:9px; width:7px; height:7px; border-radius:2px; background:var(--rb-brand-500); transform:rotate(45deg); }
.rb-takeaways li::marker{ content:none; }

.rb-glossary{ margin:2.2em 0; }
.rb-glossary h2{ font-size:clamp(22px,2.4vw,28px); margin:0 0 18px; }
.rb-glossary dl{ margin:0; border-top:1px solid var(--rb-gray-200); }
.rb-glossary dt{ font-weight:700; color:var(--rb-gray-900); font-size:17px; margin-top:18px; }
.rb-glossary dd{ margin:4px 0 18px; padding-bottom:18px; border-bottom:1px solid var(--rb-gray-100); color:var(--rb-gray-700); font-size:15.5px; line-height:1.65; }
.rb-glossary dd p:last-child{ margin-bottom:0; }

/* =============================================================================
   Prose
   ========================================================================== */
.rb-prose{ font-size:var(--rb-fs-prose); line-height:var(--rb-lh-prose); color:var(--rb-gray-700); }
.rb-prose > *:first-child{ margin-top:0; }
.rb-prose p{ margin:0 0 1.35em; }
.rb-prose h2{ font-size:clamp(24px,2.6vw,32px); line-height:1.2; margin:2em 0 .6em; }
.rb-prose h3{ font-size:clamp(20px,2vw,24px); line-height:1.25; margin:1.8em 0 .5em; }
.rb-prose h4{ font-size:18px; margin:1.6em 0 .5em; }
.rb-prose a{ color:var(--rb-brand-600); text-decoration:underline; text-decoration-color:var(--rb-brand-200); text-underline-offset:3px; text-decoration-thickness:1.5px; }
.rb-prose a:hover{ text-decoration-color:var(--rb-brand-500); }
/* Buttons embedded in prose ([rb_cta] etc.) must not inherit link underline/colour. */
.rb-prose .rb-btn{ text-decoration:none; }
.rb-prose a.rb-btn--primary{ color:#fff; text-decoration:none; }
.rb-prose a.rb-btn--outline{ color:var(--rb-gray-700); }
.rb-prose a.rb-btn--ghost{ color:var(--rb-gray-600); }
.rb-prose .rb-on-dark a.rb-btn--outline,.rb-prose .rb-cta a.rb-btn--outline{ color:#fff; }
.rb-prose strong{ color:var(--rb-gray-900); font-weight:700; }
.rb-prose ul,.rb-prose ol{ margin:0 0 1.35em; padding-left:1.3em; }
.rb-prose li{ margin:0 0 .55em; padding-left:.2em; }
.rb-prose li::marker{ color:var(--rb-brand-500); }
.rb-prose blockquote{ margin:1.8em 0; padding:4px 0 4px 24px; border-left:3px solid var(--rb-brand-500); font-size:1.08em; line-height:1.6; color:var(--rb-gray-800); font-style:normal; }
.rb-prose blockquote p:last-child{ margin-bottom:0; }
.rb-prose img,.rb-prose figure{ border-radius:var(--rb-r-md); margin:1.8em 0; }
.rb-prose figure{ margin-inline:0; }
.rb-prose figcaption{ font-size:13px; color:var(--rb-gray-500); margin-top:8px; text-align:center; }
.rb-prose pre{ background:var(--rb-dark-900); color:#e8eef7; padding:20px 22px; border-radius:var(--rb-r-md); overflow-x:auto; font-size:14px; line-height:1.6; margin:1.6em 0; }
.rb-prose code{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.88em; background:var(--rb-gray-100); padding:.15em .4em; border-radius:5px; color:var(--rb-brand-700); }
.rb-prose pre code{ background:none; color:inherit; padding:0; }
.rb-prose hr{ margin:2.4em 0; }
.rb-prose table{ width:100%; border-collapse:collapse; margin:1.6em 0; font-size:15px; }
.rb-prose th,.rb-prose td{ text-align:left; padding:10px 14px; border-bottom:1px solid var(--rb-gray-200); }
.rb-prose th{ font-weight:700; color:var(--rb-gray-900); }

/* Featured image (in-flow, above prose on mobile / below hero) */
.rb-featimg{ margin:0 0 clamp(32px,4vw,48px); border-radius:var(--rb-r-lg); overflow:hidden; aspect-ratio:16/9; background:var(--rb-gray-100); box-shadow:var(--rb-sh-card); }
/* Article cover hidden for readability (kept in the DOM for OG/schema). */
.rb-single .rb-featimg{ display:none; }
.rb-featimg img{ width:100%; height:100%; object-fit:cover; }

/* Tags row */
.rb-posttags{ display:flex; flex-wrap:wrap; gap:8px; margin:36px 0 0; }

/* =============================================================================
   Author box
   ========================================================================== */
.rb-authorbox{ display:flex; gap:20px; align-items:flex-start; margin:40px 0 0; padding:26px; background:var(--rb-gray-50); border:1px solid var(--rb-gray-100); border-radius:var(--rb-r-lg); }
.rb-authorbox__avatar{ width:64px; height:64px; border-radius:var(--rb-r-pill); object-fit:cover; flex:none; background:var(--rb-gray-100); }
.rb-authorbox__name{ font-size:17px; margin:0 0 2px; }
.rb-authorbox__role{ font-size:13px; color:var(--rb-brand-700); font-weight:600; margin:0 0 8px; }
.rb-authorbox__bio{ font-size:14.5px; color:var(--rb-gray-600); line-height:1.65; margin:0; }
.rb-authorbox__link{ display:inline-block; margin-top:10px; font-size:13px; font-weight:600; color:var(--rb-brand-700); }

/* =============================================================================
   Newsletter band + CTA
   ========================================================================== */
.rb-newsletter{ background:var(--rb-dark-900); color:#fff; border-radius:var(--rb-r-xl); padding:clamp(32px,5vw,56px); position:relative; overflow:hidden; }
.rb-newsletter::before{ content:""; position:absolute; top:-40%; right:-10%; width:520px; height:520px; background:radial-gradient(circle,rgba(234,88,64,.16),transparent 65%); pointer-events:none; }
.rb-newsletter__grid{ position:relative; display:grid; gap:28px; align-items:center; grid-template-columns:1fr; }
@media (min-width:880px){ .rb-newsletter__grid{ grid-template-columns:1.1fr 1fr; } }
.rb-newsletter .rb-fauxhead{ color:#fff; font-size:clamp(24px,2.6vw,34px); line-height:1.18; }
.rb-newsletter__dek{ margin-top:10px; color:rgba(255,255,255,.72); font-size:15px; line-height:1.6; }
.rb-newsletter__form{ display:flex; gap:10px; flex-wrap:wrap; }
.rb-newsletter__form input[type=email]{ flex:1; min-width:200px; height:50px; padding:0 18px; border-radius:var(--rb-r-pill); border:1px solid var(--rb-wa-300); background:var(--rb-wa-100); color:#fff; font-family:inherit; font-size:15px; }
.rb-newsletter__form input::placeholder{ color:var(--rb-wa-500); }
.rb-newsletter__form input:focus{ outline:none; border-color:var(--rb-brand-400); background:var(--rb-wa-200); }
.rb-newsletter__note{ margin-top:12px; font-size:12.5px; color:rgba(255,255,255,.66); }
.rb-newsletter__note a{ color:var(--rb-wa-700); text-decoration:underline; }

.rb-cta{ background:var(--rb-dark-900); color:#fff; border-radius:var(--rb-r-xl); padding:clamp(32px,4.5vw,48px); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; position:relative; overflow:hidden; }
.rb-cta::before{ content:""; position:absolute; inset:0; background:radial-gradient(ellipse at 80% 20%,rgba(234,88,64,.16),transparent 60%); pointer-events:none; }
.rb-cta__text{ position:relative; max-width:560px; }
.rb-cta h2,.rb-cta__title{ color:#fff; font-size:clamp(22px,2.4vw,30px); line-height:1.2; font-weight:800; letter-spacing:var(--rb-ls-heading); margin:0; }
.rb-cta p{ margin:8px 0 0; color:rgba(255,255,255,.72); font-size:15px; }
.rb-cta__action{ position:relative; flex:none; }

/* =============================================================================
   Related
   ========================================================================== */
.rb-related__heading{ font-size:var(--rb-fs-section); margin-bottom:28px; }

/* =============================================================================
   FAQ accordion
   ========================================================================== */
.rb-faq{ max-width:100%; margin:.5em 0 0; }
.rb-faq h2{ text-align:left; font-size:clamp(22px,2.4vw,28px); margin:0 0 18px; }
.rb-faq__item{ background:#fff; border:1px solid var(--rb-gray-200); border-radius:var(--rb-r-md); margin-bottom:12px; overflow:hidden; }
.rb-faq__item[open]{ background:var(--rb-gray-50); }
.rb-faq__q{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; font-size:15px; font-weight:600; color:var(--rb-gray-800); }
.rb-faq__q::-webkit-details-marker{ display:none; }
.rb-faq__q:hover{ background:var(--rb-gray-50); }
.rb-faq__q .ic{ flex:none; width:20px; height:20px; color:var(--rb-gray-400); transition:transform .2s var(--rb-ease); }
.rb-faq__item[open] .rb-faq__q .ic{ transform:rotate(45deg); }
.rb-faq__a{ padding:0 22px 20px; font-size:14.5px; color:var(--rb-gray-600); line-height:1.7; }

/* =============================================================================
   Footer
   ========================================================================== */
.rb-footer{ background:var(--rb-dark-900); color:#fff; padding-block:clamp(48px,6vw,80px) 0; overflow:hidden; }
.rb-footer__grid{ display:grid; gap:32px; grid-template-columns:repeat(2,1fr); }
@media (min-width:992px){ .rb-footer__grid{ grid-template-columns:1.5fr repeat(4,1fr); gap:40px; } }
.rb-footer__brand{ grid-column:1 / -1; }
@media (min-width:992px){ .rb-footer__brand{ grid-column:auto; } }
.rb-footer__brand .rb-brand{ margin-bottom:14px; }
.rb-footer__tagline{ color:rgba(255,255,255,.74); font-size:13px; line-height:1.65; max-width:240px; }
.rb-footer__col .rb-fauxhead{ color:rgba(255,255,255,.7); font-size:12px; text-transform:uppercase; letter-spacing:var(--rb-ls-col); font-weight:600; margin:0 0 14px; }
.rb-footer__col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.rb-footer__col a{ color:rgba(255,255,255,.74); font-size:14px; line-height:1.5; }
.rb-footer__col a:hover{ color:#fff; }
.rb-footer__wordmark{ display:block; width:min(100%,1180px); height:auto; color:var(--rb-wa-100); margin-top:clamp(32px,5vw,56px); user-select:none; font-family:var(--rb-font-sans); }
.rb-footer__bottom{ border-top:1px solid var(--rb-wa-100); margin-top:clamp(24px,4vw,40px); padding-block:24px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; }
.rb-footer__copy{ color:rgba(255,255,255,.74); font-size:13px; }
.rb-footer__social{ display:flex; gap:8px; }
.rb-footer__social a{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:var(--rb-r-pill); background:var(--rb-wa-100); color:rgba(255,255,255,.74); }
.rb-footer__social a:hover{ background:var(--rb-brand-500); color:#fff; }
.rb-footer__social svg{ width:16px; height:16px; }
.rb-footer__legal{ display:flex; gap:18px; }
.rb-footer__legal a{ color:rgba(255,255,255,.74); font-size:13px; }
.rb-footer__legal a:hover{ color:var(--rb-wa-700); }
/* Language switcher — flag dropdown (header + drawer) */
.rb-lang{ position:relative; display:inline-block; }
.rb-lang__flag{ display:inline-flex; border-radius:3px; overflow:hidden; box-shadow:0 0 0 1px rgba(0,0,0,.1); line-height:0; }
.rb-lang__flag svg{ display:block; }

/* Toggle (the <summary>) */
.rb-lang__toggle{ display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:var(--rb-r-pill); border:1px solid var(--rb-gray-200); background:#fff; font-size:12px; font-weight:600; color:var(--rb-gray-700); cursor:pointer; list-style:none; user-select:none; transition:all .15s var(--rb-ease); }
.rb-lang__toggle::-webkit-details-marker{ display:none; }
.rb-lang__toggle:hover{ color:var(--rb-gray-900); border-color:var(--rb-gray-300); background:var(--rb-gray-50); }
.rb-lang__chevron{ margin-left:-1px; color:var(--rb-gray-400); transition:transform .18s var(--rb-ease); }
.rb-lang[open] > .rb-lang__toggle{ color:var(--rb-gray-900); border-color:var(--rb-gray-300); }
.rb-lang[open] > .rb-lang__toggle .rb-lang__chevron{ transform:rotate(180deg); }

/* Menu */
.rb-lang__menu{ position:absolute; top:calc(100% + 6px); right:0; z-index:60; min-width:132px; display:flex; flex-direction:column; gap:2px; padding:6px; background:#fff; border:1px solid var(--rb-gray-100); border-radius:var(--rb-r-md,12px); box-shadow:0 12px 32px rgba(16,24,40,.14); }
.rb-lang__item{ display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:8px; font-size:13px; font-weight:600; color:var(--rb-gray-600); transition:all .12s var(--rb-ease); }
.rb-lang__item:hover{ color:var(--rb-gray-900); background:var(--rb-gray-50); }
.rb-lang__item.is-current{ color:var(--rb-gray-900); background:var(--rb-gray-100); }

/* Drawer variant: menu sits inline (no absolute overlay) */
.rb-lang--drawer{ display:block; margin:18px 0 4px; }
.rb-lang--drawer .rb-lang__toggle{ width:100%; justify-content:space-between; font-size:14px; padding:10px 12px; }
.rb-lang--drawer .rb-lang__menu{ position:static; margin-top:8px; box-shadow:none; min-width:0; }
.rb-lang--drawer .rb-lang__item{ font-size:14px; }

/* Category nav bar (header row 2) */
.rb-catnav{ background:#fff; border-bottom:1px solid var(--rb-gray-100); }
.rb-catnav__inner{ display:flex; }
.rb-catnav ul{ display:flex; flex-wrap:nowrap; gap:2px; list-style:none; margin:0; padding:0; overflow-x:auto; scrollbar-width:none; }
.rb-catnav ul::-webkit-scrollbar{ display:none; }
.rb-catnav li{ flex:none; }
.rb-catnav a{ display:inline-flex; align-items:center; padding:12px 14px; font-size:14px; font-weight:600; color:var(--rb-gray-600); border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; transition:color .15s var(--rb-ease); }
.rb-catnav a:hover{ color:var(--rb-gray-900); }
.rb-catnav li.is-current a{ color:var(--rb-brand-600); border-bottom-color:var(--rb-brand-500); }

/* Drawer categories label */
.rb-drawer__label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:var(--rb-ls-col); color:var(--rb-gray-400); margin:18px 0 4px; }
.rb-drawer__menu--cats a{ font-size:15px; }

/* =============================================================================
   Archive header / pagination / 404 / search
   ========================================================================== */
.rb-archhead{ padding-block:clamp(40px,5vw,72px) clamp(28px,3vw,40px); }
.rb-archhead h1{ font-size:var(--rb-fs-hero); color:#fff; }
.rb-archhead__dek{ margin-top:14px; color:var(--rb-wa-700); font-size:var(--rb-fs-body); max-width:60ch; }
.rb-archhead__count{ color:rgba(255,255,255,.74); font-size:13px; margin-top:16px; }
.rb-archhead__role{ color:var(--rb-brand-400); font-weight:700; font-size:14px; margin-top:8px; }
.rb-archhead__social{ display:flex; gap:8px; margin-top:18px; }
.rb-archhead__social a{ display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:var(--rb-r-pill); background:var(--rb-wa-100); color:rgba(255,255,255,.78); }
.rb-archhead__social a:hover{ background:var(--rb-brand-500); color:#fff; }
.rb-archhead__social svg{ width:16px; height:16px; }

.rb-pagination{ display:flex; justify-content:center; align-items:center; gap:6px; margin-top:48px; }
.rb-pagination a,.rb-pagination span{ display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 12px; border-radius:var(--rb-r-sm); font-size:14px; font-weight:600; color:var(--rb-gray-600); border:1px solid var(--rb-gray-200); background:#fff; }
.rb-pagination a:hover{ border-color:var(--rb-gray-400); color:var(--rb-gray-900); }
.rb-pagination .current{ background:var(--rb-gray-900); border-color:var(--rb-gray-900); color:#fff; }
.rb-pagination .dots{ border:0; }

.rb-empty{ text-align:center; max-width:520px; margin-inline:auto; padding-block:clamp(48px,8vw,96px); }
.rb-empty h1{ font-size:var(--rb-fs-section); margin-bottom:14px; }
.rb-empty p{ color:var(--rb-gray-600); margin-bottom:24px; }

/* =============================================================================
   Reveal animation
   ========================================================================== */
/* Only hide when JS is present (progressive enhancement — no-JS + crawlers see all). */
.rb-js .rb-reveal{ opacity:0; transform:translateY(28px); transition:opacity .6s var(--rb-ease),transform .6s var(--rb-ease); }
.rb-js .rb-reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .rb-js .rb-reveal{ opacity:1 !important; transform:none !important; }
}

/* Utilities */
.rb-mt-0{ margin-top:0 !important; }
.rb-hide-mobile{ display:none; }
@media (min-width:768px){ .rb-hide-mobile{ display:initial; } }

/* a11y: the footer brand link must not inherit the brand link color on navy. */
.rb-footer .rb-brand,.rb-footer .rb-brand__word{ color:#fff; }

/* Single-post tail: collapse the stacked section paddings (related grid,
   product CTA and newsletter were compounding to ~230px of empty space). */
.rb-single .rb-article{ padding-bottom:0; }
.rb-related.rb-section{ padding-block:clamp(40px,5vw,64px) 0; }
.rb-single .rb-section--sm{ padding-block:clamp(20px,3vw,28px); }

/* ============================================================= *
 *  Primary mega-menu (mirrors the marketing site's Navbar)
 * ============================================================= */
.rb-nav{ position:relative; }
.rb-nav__item{ position:static; list-style:none; }
.rb-nav__link,.rb-nav__trigger{
  display:inline-flex; align-items:center; gap:4px;
  padding:8px 13px; border-radius:var(--rb-r-sm);
  font-size:var(--rb-fs-navlink); font-weight:500; color:var(--rb-gray-600);
  background:none; border:0; cursor:pointer; font-family:inherit; line-height:1;
  transition:color .15s var(--rb-ease), background .15s var(--rb-ease);
}
.rb-nav__link:hover,.rb-nav__trigger:hover,
.rb-nav__item--mega:hover .rb-nav__trigger,
.rb-nav__trigger[aria-expanded="true"]{ color:var(--rb-gray-900); background:var(--rb-gray-50); }
.rb-nav__trigger svg{ opacity:.55; transition:transform .2s var(--rb-ease); }
.rb-nav__item--mega:hover .rb-nav__trigger svg,
.rb-nav__trigger[aria-expanded="true"] svg{ transform:rotate(180deg); }

.rb-mega{
  position:absolute; left:0; right:0; top:100%;
  background:#fff; border-top:1px solid var(--rb-gray-200);
  box-shadow:0 24px 48px -12px rgba(16,34,64,.16);
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .18s var(--rb-ease), transform .18s var(--rb-ease), visibility .18s;
  z-index:70;
}
.rb-nav__item--mega:hover > .rb-mega,.rb-mega.is-open{ opacity:1; visibility:visible; transform:none; }
.rb-mega__inner{ display:flex; gap:48px; padding:34px var(--rb-px) 40px; align-items:flex-start; }
.rb-mega__cols{ display:flex; gap:56px; flex:1 1 auto; }
.rb-mega__title{
  font-size:var(--rb-fs-label); text-transform:uppercase; letter-spacing:var(--rb-ls-eyebrow);
  color:var(--rb-gray-400); font-weight:700; margin:0 0 16px; padding-bottom:12px;
  border-bottom:1px solid var(--rb-gray-100);
}
.rb-mega a{ display:block; padding:0; background:none; border-radius:0; text-decoration:none; }
.rb-mega a:hover{ background:none; }
.rb-mega__main{ flex:1 1 auto; display:flex; flex-direction:column; }
.rb-mega__seeall{ margin-top:24px; padding-top:20px; border-top:1px solid var(--rb-gray-100); font-size:14px; font-weight:700; color:var(--rb-brand-500); }
.rb-mega__seeall:hover{ color:var(--rb-brand-600); }
.rb-mega__list{ list-style:none; margin:0; padding:0; display:grid; gap:17px; }
.rb-mega__col--wide .rb-mega__list{ grid-template-columns:1fr 1fr; gap:17px 40px; }
.rb-mega__label{ display:block; font-size:15px; font-weight:700; color:var(--rb-gray-900); line-height:1.2; }
.rb-mega__desc{ display:block; font-size:13px; line-height:1.45; color:var(--rb-gray-500); margin-top:3px; max-width:240px; }
.rb-mega__link:hover .rb-mega__label{ color:var(--rb-brand-500); }
.rb-mega__list--rail{ gap:15px; }
.rb-mega__aside{ width:300px; flex:0 0 300px; border-left:1px solid var(--rb-gray-100); padding-left:44px; display:flex; flex-direction:column; gap:22px; }
.rb-mega__featured{ display:block; background:var(--rb-gray-50); border:1px solid var(--rb-gray-100); border-radius:var(--rb-r-md); padding:20px; transition:border-color .15s var(--rb-ease); }
.rb-mega__featured:hover{ border-color:var(--rb-gray-300); }
.rb-mega__featured-h{ display:block; font-size:15px; font-weight:800; color:var(--rb-gray-900); }
.rb-mega__featured-b{ display:block; font-size:13px; line-height:1.5; color:var(--rb-gray-500); margin:6px 0 12px; }
.rb-mega__featured-cta{ display:block; font-size:13px; font-weight:700; color:var(--rb-brand-500); }
@media (max-width:991px){ .rb-mega{ display:none !important; } }

/* Drawer (mobile) collapsible groups */
.rb-drawer__group details{ border-bottom:1px solid var(--rb-gray-100); }
.rb-drawer__group summary{ display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; padding:13px 0; font-weight:600; font-size:16px; color:var(--rb-gray-900); }
.rb-drawer__group summary::-webkit-details-marker{ display:none; }
.rb-drawer__group summary svg{ opacity:.5; transition:transform .2s var(--rb-ease); }
.rb-drawer__group details[open] summary svg{ transform:rotate(180deg); }
.rb-drawer__sub{ padding:2px 0 12px 6px; }
.rb-drawer__sublabel{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--rb-gray-400); font-weight:700; margin:12px 0 4px; }
.rb-drawer__sub ul{ list-style:none; margin:0 0 6px; padding:0; }
.rb-drawer__sub a{ display:block; padding:7px 0; color:var(--rb-gray-600); font-size:14px; }
