:root {
  --rd-navy:    #042b56;
  --rd-accent:  #4aa8ff;
  --rd-white:   #ffffff;
  --rd-muted:   #5a7a9a;
  --rd-border:  #e5e9f0;
  --rd-page-bg: #f5f7fa;
  --rd-card-bg: #ffffff;
  --rd-navbar-h: 72px;   /* adjust if your navbar is taller/shorter */
}

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: color .2s; }

/* ─── PAGE SHELL ───────────────────────────────────── */
.rd-page {
  background: var(--rd-page-bg);
  color: var(--rd-navy);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── BANNER ───────────────────────────────────────── */
.rd-banner {
  position: relative;
  overflow: hidden;
  padding: 52px 40px 300px;
  background: linear-gradient(135deg, #010d1f 0%, #021830 40%, #042d5a 75%, #063a72 100%);
}

.rd-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
}

.rd-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,180,255,0.5), transparent);
}

.rd-banner-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rd-banner-particles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(100,180,255,0.35);
  animation: rdFloat linear infinite;
}

@keyframes rdFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-110px) translateX(35px); opacity: 0; }
}

.rd-banner-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  animation: rdFadeUp .6s ease .05s both;
}

@keyframes rdFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
}

.rd-breadcrumb a {
  color: rgba(200,216,235,0.7);
  text-decoration: none;
  transition: color .2s;
}
.rd-breadcrumb a:hover { color: var(--rd-accent); }

.rd-breadcrumb i {
  font-size: 10px;
  color: rgba(200,216,235,0.45);
}

.rd-breadcrumb span {
  color: rgba(200,216,235,0.7);
  font-weight: 600;
}

.rd-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  color: rgba(200,216,235,0.85);
  font-size: 14px;
  font-weight: 500;
}

.rd-banner-meta i { margin-right: 6px; color: #8fc8ff; font-size: 12px; }

.rd-topic-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rd-topic-labels a {
  padding: 4px 12px;
  border: 1px solid rgba(100,180,255,0.35);
  border-radius: 100px;
  background: rgba(100,180,255,0.08);
  color: #8fc8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.rd-topic-labels a:hover {
  background: rgba(100,180,255,0.18);
  color: #fff;
}

.rd-banner-title {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--rd-white);
  line-height: 1.28;
  margin: 0 0 20px;
  letter-spacing: -.4px;
}


.rd-banner-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.rd-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(74,168,255,0.15);
  color: #90cdf4;
  border: 1px solid rgba(74,168,255,0.28);
}

/* ─── CONTENT WRAPPER (constrains everything below banner) ── */
.rd-content-wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ─── COVER IMAGE ───────────────────────────────────── */
.rd-cover-wrap {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1200 / 500;
  margin: -250px auto 36px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(4,43,86,0.18);
  border: 1px solid var(--rd-border);
  position: relative;
  z-index: 2;
  background: #0b1929;
}

.rd-cover-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform .5s ease;
}
.rd-cover-wrap:hover .rd-cover-img { transform: scale(1.02); }

/* ─── BODY FLEX (TOC + MAIN) ────────────────────────── */
.rd-body {
  display: flex;
  gap: 26px;
  align-items: stretch;
}

/* ─── TOC SIDEBAR ───────────────────────────────────── */
.rd-toc {
  flex: 0 0 285px;
  position: sticky;
  top: calc(var(--rd-navbar-h) + 16px);
  align-self: flex-start;
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(4,43,86,0.06);
}

.rd-toc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #118af2;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding-bottom: 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--rd-border);
  line-height: 1.2;
}

.rd-toc ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-toc li:not(:last-child) {
  border-bottom: 1px solid #c8d4e0;
}

.rd-toc li a {
  display: block;
  font-size: 15px;
  color: var(--rd-muted);
  padding: 6px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: background .15s, color .15s, border-color .15s;
}
.rd-toc li a:hover {
  background: rgba(74,168,255,0.08);
  color: var(--rd-navy);
  border-left-color: var(--rd-accent);
}
.rd-toc li a.active {
  background: linear-gradient(90deg, rgba(74,168,255,0.18) 0%, rgba(74,168,255,0.04) 100%);
  color: var(--rd-navy);
  border-left: 3px solid var(--rd-accent);
}

/* ─── MAIN COLUMN ───────────────────────────────────── */
.rd-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 0;
}

.rd-main > .cta-stack {
  margin-top: 0;
}

/* ─── ARTICLE ───────────────────────────────────────── */
.rd-article {
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-border);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 2px 12px rgba(4,43,86,0.05);
  font-size: 16px;
  line-height: 1.88;
  color: var(--rd-navy);
}

.rd-article > *:first-child { margin-top: 0; }

.rd-article h2,
.rd-article h3 {
  font-weight: 700;
  color: var(--rd-navy);
  line-height: 1.3;
  margin: 2.2rem 0 .9rem;
  position: relative;
  padding-bottom: 10px;
  scroll-margin-top: calc(var(--nav-h, 72px) + 16px);
}
.rd-article h2 { font-size: 24px; }
.rd-article h3 { font-size: 20px; }

.rd-article h2::after,
.rd-article h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  background: var(--rd-accent);
  border-radius: 2px;
}

.rd-article h2.rd-content-h1 {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .5rem;
  padding-bottom: 0;
  position: static;
}
.rd-article h2.rd-content-h1::after { content: none; }
@media (min-width: 1200px) {
  .rd-article h2.rd-content-h1 { font-size: 2.5rem; }
}

.rd-article p               { margin: 0 0 1.1rem; }
.rd-article ul,
.rd-article ol              { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.rd-article li              { margin-bottom: .4rem; }
.rd-article a               { color: var(--rd-accent); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(74,168,255,.35); text-underline-offset: 2px; transition: transform .18s ease, text-decoration-color .18s ease; }
.rd-article a:hover         { text-decoration-color: var(--rd-accent); transform: translateY(-1px); }
.rd-article table a,
.rd-article h3 a            { text-decoration: none; }
.rd-article blockquote      { margin: 1.5rem 0; padding: 16px 20px; background: rgba(74,168,255,.06); border-left: 4px solid var(--rd-accent); border-radius: 0 10px 10px 0; font-style: italic; color: #374e6a; }
.rd-article img             { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.rd-article code            { background: #f0f4f8; border: 1px solid var(--rd-border); border-radius: 5px; padding: 2px 7px; font-size: 14px; font-family: monospace; }
.rd-article pre             { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 20px; overflow-x: auto; font-size: 14px; margin: 1rem 0; }
.rd-article table           { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.rd-article th, .rd-article td { border: 1px solid #042b56; padding: 10px 14px; text-align: left; }
.rd-article table thead th,
.rd-article table thead td,
.rd-article table:not(:has(thead)) tr:first-child > * { background: #042b56; color: #fff; font-weight: 700; }
.rd-article table tbody td,
.rd-article table:not(:has(thead)) tr + tr > * { background: #fff; color: #042b56; }

/* ─── AUTHOR BOX ────────────────────────────────────── */
.rd-author {
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-border);
  border-left: 4px solid var(--rd-accent);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(4,43,86,0.05);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.rd-author:hover { box-shadow: 0 6px 24px rgba(4,43,86,.10); transform: translateY(-2px); }

.rd-author-img {
  width: 70px; height: 70px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--rd-border);
}
.rd-author-ph {
  width: 70px; height: 70px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0B335A, #1f5e9d);
  color: #fff;
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rd-author-info { flex: 1; }
.rd-author-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: #118af2; margin-bottom: 5px;
}
.rd-author-name { font-size: 17px; font-weight: 700; color: var(--rd-navy); margin-bottom: 4px; }
.rd-author-pos  { font-size: 13px; color: var(--rd-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.rd-author-bio  { font-size: 14px; line-height: 1.7; color: #374e6a; margin: 0; }
.rd-author-more {
  color: #1f5e9d; font-weight: 600; font-size: 13px; margin-left: 4px;
  display: inline-flex; align-items: center; gap: 4px; transition: gap .15s;
  background: none; border: none; padding: 0; font-family: inherit; cursor: pointer;
}
.rd-author-more:hover { gap: 8px; }

/* ─── COMMENTS ──────────────────────────────────────── */
.rd-comments {
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-border);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 2px 12px rgba(4,43,86,0.05);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rd-comments-heading {
  font-size: 18px; font-weight: 700; color: var(--rd-navy);
  margin: 0; display: flex; align-items: center; gap: 10px;
}
.rd-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(74,168,255,.12); color: #0369a1;
  border: 1px solid rgba(74,168,255,.22);
  border-radius: 999px; font-size: 13px; font-weight: 700;
  min-width: 26px; height: 26px; padding: 0 7px;
}

.rd-comments-list { display: flex; flex-direction: column; gap: 12px; }

.rd-comment {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--rd-border);
  border-radius: 12px;
  background: #fafbfd;
  transition: box-shadow .18s;
}
.rd-comment:hover { box-shadow: 0 4px 14px rgba(4,43,86,.07); }

.rd-comment-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #0B335A, #1f5e9d);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rd-comment-body { flex: 1; min-width: 0; }
.rd-comment-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.rd-comment-name  { font-size: 14px; font-weight: 700; color: var(--rd-navy); }
.rd-comment-date  { font-size: 12px; color: #94a3b8; }
.rd-comment-text  { font-size: 14px; line-height: 1.7; color: #374e6a; margin: 0; }

.rd-no-comments { text-align: center; padding: 28px 20px; color: #94a3b8; }
.rd-no-comments i { font-size: 30px; display: block; margin-bottom: 10px; }
.rd-no-comments p { font-size: 15px; margin: 0; }

.rd-comments-pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.rd-pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; border: 1.5px solid var(--rd-border);
  background: #fff; color: var(--rd-navy); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .18s;
}
.rd-pg-btn:hover { background: var(--rd-navy); color: #fff; border-color: var(--rd-navy); }
.rd-pg-btn.active { background: var(--rd-navy); color: #fff; border-color: var(--rd-navy); }

/* ─── COMMENT FORM ──────────────────────────────────── */
.rd-form-wrap {
  padding-top: 22px;
}
.rd-form-title {
  font-size: 15px; font-weight: 700; color: var(--rd-navy);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.rd-form         { display: flex; flex-direction: column; gap: 16px; }
.rd-form input[type="hidden"] { display: none; }
.rd-form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-input,
.rd-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--rd-border);
  border-radius: 10px;
  font-size: 14px; font-family: inherit;
  color: var(--rd-navy);
  background: #fafbfd;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.rd-input:focus,
.rd-textarea:focus { border-color: var(--rd-navy); box-shadow: none; outline: none; background: #fff; }
.rd-textarea       { resize: vertical; min-height: 110px; }

.rd-submit-btn {
  align-self: flex-start;
  padding: 11px 28px;
  background: linear-gradient(90deg, #0B335A, #1f5e9d);
  color: #fff; border: none; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 3px 12px rgba(11,51,90,.2);
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.rd-submit-btn:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,51,90,.25); }

/* ─── ALERTS ────────────────────────────────────────── */
.rd-alert          { padding: 11px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.rd-alert--success { background: #dbeafe; color: #042b56; border-left: 3px solid #4aa8ff; }
.rd-alert--error   { background: #fee2e2; color: #dc2626; }

/* ─── AUTHOR MODAL ──────────────────────────────────── */
.rd-modal-bg {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.rd-modal-bg.open { display: flex; }

.rd-modal {
  background: var(--rd-card-bg);
  border-radius: 18px; padding: 40px 36px;
  max-width: 520px; width: 92%;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(4,43,86,.25);
  position: relative; text-align: center;
  animation: rdModalIn .32s ease both;
}
@keyframes rdModalIn {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rd-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 16px; color: #94a3b8; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.rd-modal-close:hover { background: #fee2e2; color: #dc2626; }

.rd-modal-photo {
  width: 96px; height: 96px; border-radius: 14px; object-fit: cover;
  display: block; margin: 0 auto 16px; border: 3px solid var(--rd-border);
}
.rd-modal-ph {
  width: 96px; height: 96px; border-radius: 14px;
  background: linear-gradient(135deg, #0B335A, #1f5e9d);
  color: #fff; font-size: 36px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.rd-modal-name { font-size: 20px; font-weight: 700; color: var(--rd-navy); margin: 0 0 6px; }
.rd-modal-pos  { font-size: 13px; color: var(--rd-muted); margin: 0 0 20px; }
.rd-modal-bio  { font-size: 15px; line-height: 1.75; color: #374e6a; text-align: left; margin: 0; }

/* ─── FLOATING SHARE ────────────────────────────────── */
.rd-share-wrap {
  position: fixed; bottom: 88px; right: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 1000;
}
.rd-share-toggle {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #0B335A, #1f5e9d);
  color: #fff; font-size: 17px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(4,43,86,.25);
  transition: transform .25s, box-shadow .2s;
}
.rd-share-toggle:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(4,43,86,.3); }

.rd-share-panel {
  display: flex; flex-direction: column; gap: 9px;
  opacity: 0; transform: translateY(14px);
  pointer-events: none; transition: opacity .3s, transform .3s;
}
.share-wrapper.active .rd-share-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }

.rd-share-panel a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--rd-card-bg); color: var(--rd-navy); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(4,43,86,.13);
  transition: background .2s, color .2s, transform .2s;
}
.rd-share-panel a:hover { background: linear-gradient(135deg, #0B335A, #1f5e9d); color: #fff; transform: translateY(-3px); }

/* ─── INLINE PROMO BANNER ──────────────────────────── */
.rd-promo {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #042b56;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 36px 0;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 24px rgba(11,51,90,0.28);
  text-decoration: none;
}
.rd-promo-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}
.rd-promo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.rd-promo-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rd-promo-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.35;
}
.rd-promo-sub {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
}
.rd-promo-sub a {
  color: #a8d8f8;
  text-decoration: none;
  font-weight: 600;
}
.rd-promo-divider {
  width: 2px;
  align-self: stretch;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  margin: 0 6px;
  border-radius: 1px;
}
.rd-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #118af2;
  font-size: 15px;
  font-weight: 500;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s, gap .15s;
}
.rd-article .rd-promo-title { margin: 0 0 6px; }
.rd-article .rd-promo-sub   { margin: 0; }
.rd-article .rd-promo-btn,
.rd-article .rd-promo-btn:hover,
.rd-article .rd-promo-sub a,
.rd-article .rd-promo-sub a:hover {
  color: #118af2;
  text-decoration: none;
  font-weight: 700;
}
.rd-promo-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #118af2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}
@media (max-width: 600px) {
  .rd-breadcrumb span[aria-current],
  .rd-breadcrumb i:last-of-type { display: none; }
  .rd-promo {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    row-gap: 18px;
    align-items: start;
    padding: 20px 18px 18px;
    margin: 34px 0;
  }
  .rd-promo-logo {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .rd-article .rd-promo-title {
    margin: 2px 0 6px;
    font-size: 16px;
    line-height: 1.35;
  }
  .rd-article .rd-promo-sub {
    font-size: 13.5px;
    line-height: 1.55;
  }
  .rd-promo-divider { display: none; }
  .rd-article .rd-promo-btn,
  .rd-article .rd-promo-btn:hover {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #118af2;
    color: #fff;
    font-size: 15px;
  }
  .rd-promo-btn-icon {
    width: auto;
    height: auto;
    background: transparent;
    font-size: 15px;
  }
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .rd-toc { flex: 0 0 220px; }
  .rd-article { padding: 32px 36px; }
}

@media (max-width: 860px) {
  .rd-banner       { padding: 28px 20px 180px; }
  .rd-content-wrap { padding: 0 16px 36px; }
  /* no fixed height — aspect-ratio scales the image with the screen width */
  .rd-cover-wrap   { margin-top: -160px; margin-bottom: 40px; }
  .rd-body         { flex-direction: column; gap: 20px; }
  .rd-toc          { position: static; flex: none; max-height: none; width: 100%; }
  .rd-article      { padding: 24px 20px; font-size: 15px; }
  .rd-comments     { padding: 22px 18px; }
  .rd-author       { padding: 20px 18px; gap: 16px; }
  .rd-form-row     { grid-template-columns: 1fr; }
  .rd-share-wrap   { bottom: 20px; right: 16px; }
}

@media (max-width: 480px) {
  .rd-banner       { padding: 22px 16px 110px; }
  .rd-banner-title { font-size: clamp(20px, 6vw, 28px); }
  /* no fixed height — aspect-ratio handles small screens */
  .rd-cover-wrap   { border-radius: 12px; margin-top: -90px; margin-bottom: 28px; }
  .rd-article      { padding: 18px 14px; }
  .rd-author       { flex-direction: column; }
  .rd-modal        { padding: 28px 20px; }
}
.rd-author-links { display: flex; gap: 10px; margin-top: 12px; }
.rd-modal .rd-author-links { justify-content: center; margin-top: 18px; }
.rd-author-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #eef5fe; color: #118af2; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s;
}
.rd-author-link:hover { background: #118af2; color: #fff; }
.rd-meta-bar {
  max-width: 1200px; margin: 28px auto 34px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  border-bottom: 1px solid var(--rd-border);
}
.rd-cover-wrap + .rd-meta-bar { margin-top: -16px; }
.rd-byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--rd-muted); }
.rd-byline strong { color: var(--rd-navy); font-weight: 700; }
.rd-byline time { white-space: nowrap; }
.rd-byline-img, .rd-byline-ph { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.rd-byline-img { object-fit: cover; border: 1px solid var(--rd-border); }
.rd-byline-ph { display: inline-flex; align-items: center; justify-content: center; background: #118af2; color: #fff; font-weight: 700; font-size: 15px; }

/* ── RECOMMENDED COMPANIES (in article) ──────────────── */
.rd-companies {
  margin: 36px 0;
  padding: 24px;
  border: 1px solid #d6e3f0;
  border-radius: 16px;
  background: #f1f6fc;
}
.rd-companies-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.rd-companies-kicker {
  color: #118af2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.rd-companies-title {
  margin-top: 4px;
  color: #042b56;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
.rd-article .rd-companies-all,
.rd-companies-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a5fc0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.rd-companies-all i { font-size: 11px; transition: transform .15s ease; }
.rd-companies-all:hover i { transform: translateX(3px); }
.rd-companies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rd-article .rd-company,
.rd-company {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #cfdeee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(4,43,86,0.06), 0 4px 12px rgba(4,43,86,0.04);
  color: #042b56;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rd-company:hover { border-color: #95c3ec; box-shadow: 0 10px 26px rgba(4,43,86,0.10); }
.rd-company-top { display: flex; align-items: center; gap: 14px; }
.rd-company-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}
.rd-company-logo--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #042b56, #1f5e9d);
  border-color: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.rd-company-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rd-company-name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rd-company-trust {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  background: #eef5fd;
  color: #0a5fc0;
  font-size: 12px;
  font-weight: 600;
}
.rd-company-trust i { font-size: 11px; }
.rd-company-trust b { color: #042b56; font-weight: 800; }
.rd-company-cta {
  flex-shrink: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid #cfe0f3;
  border-radius: 100px;
  color: #0a5fc0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.rd-company-cta i { font-size: 10px; transition: transform .2s ease; }
.rd-company:hover .rd-company-cta { background: #eef5fd; border-color: #95c3ec; }
.rd-company:hover .rd-company-cta i { transform: translateX(2px); }
.rd-article .rd-company-stats,
.rd-company-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #e3ebf4;
}
.rd-company-stats > div { min-width: 0; padding: 0 12px; }
.rd-company-stats > div:first-child { padding-left: 0; }
.rd-company-stats > div + div { border-left: 1px solid #e3ebf4; }
.rd-article .rd-company-stats dt,
.rd-company-stats dt { margin: 0 0 4px; color: #6a83a0; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.rd-article .rd-company-stats dd,
.rd-company-stats dd { margin: 0; color: #042b56; font-size: 13.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

/* ── RELATED SERVICES + CITY LINKS ───────────────────── */
.rd-service-links {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
  padding: 24px 26px;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: #fff;
}
.rd-service-links-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #042b56;
  font-size: 17px;
  font-weight: 700;
}
.rd-service-links-title i { color: #118af2; font-size: 15px; }
.rd-service-links ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rd-service-links li a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.rd-service-links li a:hover { border-color: #118af2; background: #f5f9ff; }
.rd-service-links-name { color: #042b56; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.rd-service-links-count { color: #5a7a9a; font-size: 12.5px; }
@media (max-width: 900px) {
  .rd-service-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rd-service-links { padding: 20px 16px; }
  .rd-service-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rd-service-links li a { padding: 10px 12px; }
}

@media (max-width: 600px) {
  .rd-companies { margin: 28px -4px; padding: 18px 14px; }
  .rd-companies-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rd-companies-title { font-size: 17px; }
  .rd-companies-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .rd-companies-grid::-webkit-scrollbar { display: none; }
  .rd-company { flex: 0 0 86%; scroll-snap-align: start; padding: 16px; }
  .rd-company-top { flex-wrap: wrap; }
  .rd-company-cta { order: 3; width: 100%; justify-content: center; }
  .rd-article .rd-company-stats,
  .rd-company-stats { grid-template-columns: 1fr; padding-top: 6px; }
  .rd-company-stats > div,
  .rd-company-stats > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; }
  .rd-company-stats > div + div { border-left: none; border-top: 1px solid #eef2f7; }
  .rd-article .rd-company-stats dt,
  .rd-company-stats dt { margin: 0; }
  .rd-article .rd-company-stats dd,
  .rd-company-stats dd { text-align: right; }
}
.rd-article .rd-company-logo { margin: 0; height: 48px; border-radius: 12px; }
.rd-article .rd-company:hover { transform: none; }
.rd-byline-name { color: inherit; text-decoration: none; }
.rd-byline-name:hover strong { color: #0a5fc0; text-decoration: underline; }
a.rd-author-more { text-decoration: none; }
.rd-author-name a { color: inherit; text-decoration: none; }
.rd-author-name a:hover { color: #0a5fc0; }

.rd-article sup:has(.rd-cite) { line-height: 0; }
.rd-article a.rd-cite {
  margin-left: 1px;
  color: #0a5fc0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.rd-article a.rd-cite:hover { color: #042b56; text-decoration: underline; transform: none; }
