/* ============================================================
   SIRIUS SOLUTIONS GLOBAL — BLOG / RESOURCES STYLESHEET
   billing.siriussolutionsglobal.com/blog
   Loads AFTER styles.css — uses the same design tokens
   (navy #29418A / teal #1B8CB5, Plus Jakarta Sans + Poppins)
   ============================================================ */

/* ============================================================
   01. BREADCRUMB
   ============================================================ */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
}
.blog-breadcrumb a { color: var(--c-text-muted); transition: color var(--t-base) var(--ease); }
.blog-breadcrumb a:hover { color: var(--c-teal); }
.blog-breadcrumb span[aria-current] { color: var(--c-navy); font-weight: 700; }
.blog-breadcrumb svg { width: 12px; height: 12px; opacity: .5; flex-shrink: 0; }

/* ============================================================
   02. BLOG HERO
   ============================================================ */
.blog-hero {
  background: var(--g-hero-bg);
  padding: var(--sp-16) 0 var(--sp-12);
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,140,181,.12) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-content { max-width: 760px; }
.blog-hero .h1 { margin-bottom: var(--sp-5); }

/* ── Search bar ─────────────────────────────────────────── */
.blog-search {
  position: relative;
  max-width: 620px;
  margin-top: var(--sp-8);
}
.blog-search input {
  width: 100%;
  padding: 18px 24px 18px 54px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-navy-100);
  background: var(--c-white);
  font-size: var(--text-base);
  color: var(--c-text);
  box-shadow: var(--clay-sm);
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.blog-search input::placeholder { color: var(--c-text-light); }
.blog-search input:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: var(--clay-md);
}
.blog-search svg {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  stroke: var(--c-text-muted);
  pointer-events: none;
}
.blog-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--c-navy-50);
  color: var(--c-navy);
}
.blog-search-clear.show { display: flex; }
.blog-search-results {
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  display: none;
}
.blog-search-results.show { display: block; }

/* ============================================================
   03. TOPIC / CATEGORY PILL CARDS  (#topics)
   ============================================================ */
.topics-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.topic-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--clay-xs);
  border: 1px solid rgba(255,255,255,.8);
  transition: transform var(--t-slow) var(--ease-spring), box-shadow var(--t-slow) var(--ease);
  cursor: pointer;
  display: block;
}
.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--clay-md);
}
.topic-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--g-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  box-shadow: var(--clay-btn);
}
.topic-icon svg { width: 22px; height: 22px; stroke: var(--c-white); }
.topic-card h3 { font-size: var(--text-lg); margin-bottom: 6px; }
.topic-card p { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.55; }

/* ============================================================
   04. FEATURED ARTICLE  (#featured)
   ============================================================ */
.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--c-white);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--clay-lg);
  border: 1px solid rgba(255,255,255,.8);
}
.featured-visual {
  background: var(--g-primary);
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.featured-visual svg { width: 42%; height: 42%; stroke: rgba(255,255,255,.9); position: relative; z-index: 2; }
.featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.10) 0%, transparent 50%);
}
.featured-body {
  padding: var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-body .tag { margin-bottom: var(--sp-4); width: fit-content; }
.featured-body h2 { margin-bottom: var(--sp-4); }
.featured-body p.excerpt { color: var(--c-text-3); line-height: 1.7; margin-bottom: var(--sp-6); }
.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
  font-weight: 600;
}
.article-meta-row .dot::before { content: '•'; margin-right: var(--sp-4); opacity: .5; }
.article-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-row svg { width: 13px; height: 13px; }

/* ============================================================
   05. FILTER PILLS
   ============================================================ */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}
.filter-pill {
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: var(--c-white);
  border: 1.5px solid var(--c-navy-100);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-3);
  transition: all var(--t-base) var(--ease);
  box-shadow: var(--clay-xs);
}
.filter-pill:hover { border-color: var(--c-teal); color: var(--c-teal-dark); }
.filter-pill.active {
  background: var(--g-primary);
  border-color: transparent;
  color: var(--c-white);
  box-shadow: var(--clay-btn);
}

/* ============================================================
   06. ARTICLE CARD GRID  (#latest)
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.article-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--clay-sm);
  border: 1px solid rgba(255,255,255,.8);
  transition: transform var(--t-slow) var(--ease-spring), box-shadow var(--t-slow) var(--ease);
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--clay-hover); }
.article-card-visual {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-card-visual svg { width: 34%; height: 34%; stroke: rgba(255,255,255,.92); position: relative; z-index: 2; }
.article-card-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.16) 0%, transparent 55%); }
.visual-navy   { background: var(--g-primary); }
.visual-teal   { background: var(--g-teal); }
.visual-navy2  { background: var(--g-navy); }
.article-card-body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.article-card-body .tag { margin-bottom: var(--sp-3); width: fit-content; }
.article-card-body h3 { font-size: var(--text-lg); line-height: 1.3; margin-bottom: var(--sp-3); }
.article-card-body h3 a { color: var(--c-text); transition: color var(--t-base) var(--ease); }
.article-card-body h3 a:hover { color: var(--c-navy); }
.article-card-body p { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.6; margin-bottom: var(--sp-5); flex: 1; }
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--c-text-light);
  font-weight: 600;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-navy-50);
}
.article-card-meta .read-more { color: var(--c-teal); display: inline-flex; align-items: center; gap: 4px; }
.article-card-meta .read-more svg { width: 13px; height: 13px; transition: transform var(--t-base) var(--ease); }
.article-card:hover .read-more svg { transform: translateX(3px); }
.article-card.is-hidden { display: none; }

/* ============================================================
   07. POPULAR THIS MONTH  (#popular)
   ============================================================ */
.popular-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.popular-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--clay-xs);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.popular-item:hover { transform: translateX(4px); box-shadow: var(--clay-sm); }
.popular-rank {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--g-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}
.popular-item h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: 4px; }
.popular-item h4 a { color: var(--c-text); }
.popular-item h4 a:hover { color: var(--c-navy); }
.popular-item .body-xs { color: var(--c-text-muted); }
.popular-meta { text-align: right; font-size: var(--text-xs); color: var(--c-text-light); font-weight: 600; white-space: nowrap; }

/* ============================================================
   08. BILLING GUIDES  (#guides)
   ============================================================ */
.guide-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--clay-xs);
  border: 1px solid rgba(255,255,255,.8);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--clay-md); }
.guide-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--c-teal-50);
  display: flex; align-items: center; justify-content: center;
}
.guide-icon svg { width: 21px; height: 21px; stroke: var(--c-teal-dark); }
.guide-card h4 { font-size: var(--text-base); margin-bottom: 4px; }
.guide-card p { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.55; }

/* ============================================================
   09. CPT / HCPCS / ICD-10 CODE LOOKUP  (#code-lookup)
   ============================================================ */
.code-hub-box {
  background: var(--c-white);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
  box-shadow: var(--clay-lg);
  border: 1px solid rgba(255,255,255,.8);
}
.code-search-wrap { position: relative; margin-bottom: var(--sp-6); }
.code-search-wrap input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-navy-100);
  font-size: var(--text-base);
  background: var(--c-surface);
}
.code-search-wrap input:focus { outline: none; border-color: var(--c-teal); }
.code-search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--c-text-muted); }
.code-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-6); }
.code-chip {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--c-navy-50);
  color: var(--c-navy);
  font-size: var(--text-xs);
  font-weight: 700;
}
.code-results { display: flex; flex-direction: column; gap: var(--sp-3); max-height: 460px; overflow-y: auto; }
.code-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-navy-50);
}
.code-row.is-hidden { display: none; }
.code-num { font-family: var(--font-display); font-weight: 800; color: var(--c-teal-dark); font-size: var(--text-base); }
.code-desc-title { font-weight: 600; font-size: var(--text-sm); color: var(--c-text); margin-bottom: 2px; }
.code-desc-sub { font-size: var(--text-xs); color: var(--c-text-muted); }
.code-cat-tag { font-size: var(--text-xs); font-weight: 700; color: var(--c-text-light); white-space: nowrap; }
.code-hub-note {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-warning-light);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  color: #7A4A06;
  line-height: 1.6;
  display: flex;
  gap: 10px;
}
.code-hub-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke: #B5760A; }

/* ============================================================
   10. SPECIALTY GRID  (#specialty)
   ============================================================ */
.specialty-pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.specialty-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--clay-xs);
  border: 1px solid rgba(255,255,255,.8);
  transition: all var(--t-base) var(--ease-spring);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--c-text-2);
}
.specialty-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--clay-sm);
  color: var(--c-navy);
}
.specialty-pill .sp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); flex-shrink: 0; }
.specialty-pill.linked .sp-dot { background: var(--c-success); }

/* ============================================================
   11. RCM TRENDS  (#trends)
   ============================================================ */
.trend-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--clay-xs);
  border: 1px solid rgba(255,255,255,.8);
  height: 100%;
}
.trend-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.trend-label.fact     { background: var(--c-navy-50); color: var(--c-navy); }
.trend-label.analysis { background: var(--c-teal-50); color: var(--c-teal-dark); }
.trend-label.industry { background: var(--c-success-light); color: var(--c-success); }
.trend-label.service  { background: var(--c-warning-light); color: #8A5A0A; }
.trend-card h4 { font-size: var(--text-base); margin-bottom: 8px; line-height: 1.3; }
.trend-card p { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.6; }

/* ============================================================
   12. NEWSLETTER  (#newsletter)
   ============================================================ */
.newsletter-box {
  background: var(--g-navy);
  border-radius: var(--r-2xl);
  padding: var(--sp-12);
  position: relative;
  overflow: hidden;
  color: var(--c-white);
}
.newsletter-box::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,197,245,.18) 0%, transparent 70%);
}
.newsletter-content { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter-box h2 { color: var(--c-white); margin-bottom: var(--sp-3); }
.newsletter-box p { color: rgba(255,255,255,.78); margin-bottom: var(--sp-8); }
.newsletter-form { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 15px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--c-white);
  font-size: var(--text-sm);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form input:focus { outline: none; border-color: var(--c-teal-bright); background: rgba(255,255,255,.14); }
.newsletter-note { margin-top: var(--sp-4); font-size: var(--text-xs); color: rgba(255,255,255,.55); }
.newsletter-success { display: none; align-items: center; justify-content: center; gap: 10px; font-weight: 700; padding: 15px; }
.newsletter-success.show { display: flex; }
.newsletter-success svg { width: 20px; height: 20px; stroke: var(--c-teal-bright); }

/* ============================================================
   13. TRUST SECTION
   ============================================================ */
.trust-item {
  text-align: center;
  padding: var(--sp-6);
}
.trust-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--c-teal-50);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4);
}
.trust-icon svg { width: 24px; height: 24px; stroke: var(--c-teal-dark); }
.trust-item h4 { font-size: var(--text-base); margin-bottom: 6px; }
.trust-item p { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.55; }

/* ============================================================
   14. ARTICLE PAGE — LAYOUT
   ============================================================ */
.article-hero { background: var(--g-hero-bg); padding: var(--sp-10) 0 var(--sp-8); }
.article-hero-inner { max-width: 860px; }
.article-hero .tag { margin-bottom: var(--sp-4); }
.article-hero h1 { margin-bottom: var(--sp-5); }
.article-hero .lead { margin-bottom: var(--sp-6); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-12);
  align-items: start;
  padding: var(--sp-12) 0;
}

/* ── Prose ─────────────────────────────────────────────── */
.article-body { max-width: 720px; }
.article-body h2 {
  font-size: var(--text-2xl);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-5);
  scroll-margin-top: 110px;
}
.article-body h3 {
  font-size: var(--text-xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  scroll-margin-top: 110px;
}
.article-body p { color: var(--c-text-2); margin-bottom: var(--sp-5); font-size: 1.03rem; }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-5) 0; padding-left: 22px; color: var(--c-text-2); }
.article-body li { margin-bottom: 10px; line-height: 1.65; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li {
  position: relative;
  padding-left: 30px;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--c-teal-50);
  border: 1.5px solid var(--c-teal);
}
.article-body ul li::after {
  content: '';
  position: absolute;
  left: 5px; top: 11px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--c-teal-dark);
  border-bottom: 1.5px solid var(--c-teal-dark);
  transform: rotate(-45deg);
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li {
  position: relative;
  padding-left: 34px;
  counter-increment: ol-counter;
}
.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--g-primary);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.article-body strong { color: var(--c-text); font-weight: 700; }
.article-body a:not(.btn) { color: var(--c-teal-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-teal-100); text-underline-offset: 3px; }
.article-body a:not(.btn):hover { color: var(--c-teal); }
.article-body blockquote {
  border-left: 3px solid var(--c-teal);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  margin: var(--sp-6) 0;
  font-style: italic;
  color: var(--c-text-3);
  font-size: var(--text-lg);
}
.article-table-wrap { overflow-x: auto; margin: var(--sp-6) 0; border-radius: var(--r-md); box-shadow: var(--clay-xs); }
.article-table { width: 100%; border-collapse: collapse; background: var(--c-white); font-size: var(--text-sm); min-width: 480px; }
.article-table caption { caption-side: top; text-align: left; font-size: var(--text-xs); font-weight: 700; color: var(--c-text-muted); padding-bottom: 10px; }
.article-table th {
  background: var(--c-navy);
  color: var(--c-white);
  text-align: left;
  padding: 13px 16px;
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.article-table td { padding: 13px 16px; border-bottom: 1px solid var(--c-navy-50); color: var(--c-text-2); }
.article-table tr:last-child td { border-bottom: none; }
.article-table tr:nth-child(even) td { background: var(--c-surface); }

/* ── Key takeaways box ─────────────────────────────────── */
.key-takeaways {
  background: var(--c-teal-50);
  border: 1px solid var(--c-teal-200);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  margin: var(--sp-8) 0 var(--sp-10);
}
.key-takeaways h2 { margin-top: 0 !important; font-size: var(--text-lg) !important; display: flex; align-items: center; gap: 9px; margin-bottom: var(--sp-4) !important; }
.key-takeaways h2 svg { width: 20px; height: 20px; stroke: var(--c-teal-dark); }
.key-takeaways ul { margin-bottom: 0 !important; }

/* ── Inline contextual CTA banner ──────────────────────── */
.inline-cta {
  background: var(--g-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin: var(--sp-10) 0;
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.inline-cta::after { content:''; position:absolute; top:-60px; right:-60px; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%); }
.inline-cta h3 { color: var(--c-white); font-size: var(--text-xl); margin-bottom: 8px; position: relative; z-index: 2; }
.inline-cta p { color: rgba(255,255,255,.85); margin-bottom: var(--sp-5); position: relative; z-index: 2; }
.inline-cta .btn { position: relative; z-index: 2; }

/* ── Disclaimer / source note ──────────────────────────── */
.article-disclaimer {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  background: var(--c-surface);
  border: 1px dashed var(--c-navy-100);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-6) 0;
  line-height: 1.6;
}

/* ── E-E-A-T byline ─────────────────────────────────────── */
.article-byline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--c-navy-50);
  border-bottom: 1px solid var(--c-navy-50);
  margin: var(--sp-8) 0;
  flex-wrap: wrap;
}
.byline-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--g-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white); font-weight: 800; font-size: var(--text-sm);
  flex-shrink: 0;
}
.byline-text { font-size: var(--text-xs); color: var(--c-text-muted); line-height: 1.6; }
.byline-text strong { color: var(--c-text); font-size: var(--text-sm); display: block; }

/* ── Sources ────────────────────────────────────────────── */
.sources-list { font-size: var(--text-sm); color: var(--c-text-muted); }
.sources-list li { margin-bottom: 8px; padding-left: 0 !important; }
.sources-list li::before { display: none !important; }

/* ============================================================
   15. TABLE OF CONTENTS (sticky sidebar)
   ============================================================ */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: var(--sp-5); }
.toc-box {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--clay-xs);
  border: 1px solid rgba(255,255,255,.8);
}
.toc-box h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); margin-bottom: var(--sp-4); font-weight: 800; }
.toc-list { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--c-navy-50); }
.toc-list a {
  display: block;
  padding: 7px 0 7px 16px;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color var(--t-base) var(--ease);
  font-weight: 500;
}
.toc-list a.toc-h3 { padding-left: 30px; font-size: var(--text-xs); }
.toc-list a:hover { color: var(--c-navy); }
.toc-list a.active { color: var(--c-teal-dark); border-left-color: var(--c-teal); font-weight: 700; }

.sidebar-cta-box {
  background: var(--g-navy);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  color: var(--c-white);
  text-align: center;
}
.sidebar-cta-box h4 { color: var(--c-white); font-size: var(--text-base); margin-bottom: 6px; }
.sidebar-cta-box p { color: rgba(255,255,255,.75); font-size: var(--text-sm); margin-bottom: var(--sp-5); line-height: 1.55; }
.sidebar-cta-box .btn { width: 100%; }

.sidebar-list-box {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--clay-xs);
  border: 1px solid rgba(255,255,255,.8);
}
.sidebar-list-box h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); margin-bottom: var(--sp-4); font-weight: 800; }
.sidebar-list-box ul { display: flex; flex-direction: column; gap: var(--sp-4); }
.sidebar-list-box li a { font-size: var(--text-sm); font-weight: 600; color: var(--c-text-2); line-height: 1.4; display: block; }
.sidebar-list-box li a:hover { color: var(--c-navy); }
.sidebar-list-box li span { display: block; font-size: 11px; color: var(--c-text-light); margin-top: 3px; font-weight: 500; }

/* ── Mobile TOC (collapsible) ───────────────────────────── */
.toc-mobile { display: none; }

/* ============================================================
   16. RELATED ARTICLES
   ============================================================ */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

/* ============================================================
   17. CATEGORY / GUIDE PAGE INTRO
   ============================================================ */
.category-hero { background: var(--g-hero-bg); padding: var(--sp-14) 0 var(--sp-12); }
.category-hero-inner { max-width: 780px; }
.category-icon-badge {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  background: var(--g-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
  box-shadow: var(--clay-btn);
}
.category-icon-badge svg { width: 28px; height: 28px; stroke: var(--c-white); }

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; order: -1; }
  .toc-box { display: none; }
  .toc-mobile {
    display: block;
    background: var(--c-white);
    border-radius: var(--r-lg);
    box-shadow: var(--clay-xs);
    border: 1px solid rgba(255,255,255,.8);
    margin-bottom: var(--sp-8);
    overflow: hidden;
  }
  .toc-mobile summary {
    padding: var(--sp-5) var(--sp-6);
    font-weight: 700;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile[open] summary { border-bottom: 1px solid var(--c-navy-50); }
  .toc-mobile .toc-list { padding: var(--sp-4) var(--sp-6); border-left: none; }
  .topics-scroll { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-pill-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-visual { min-height: 200px; }
}

/* ============================================================
   19. PHOTO-DRIVEN CARDS (bellmedex / medcaremso inspired)
   ============================================================ */

/* Category filter bar — sits right under the page header */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--c-navy-50);
  border-bottom: 1px solid var(--c-navy-50);
  margin-bottom: var(--sp-10);
}
.blog-filter-bar .filter-pill { padding: 8px 18px; font-size: var(--text-xs); }

/* Photo wrapper — used in featured card, article cards, category hero */
.card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--g-primary); /* shows while the image loads / if missing */
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease);
}
.article-card:hover .card-photo img,
.featured-card:hover .card-photo img { transform: scale(1.04); }
.card-photo .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  box-shadow: var(--sh-sm);
}

.featured-card .card-photo { aspect-ratio: auto; height: 100%; min-height: 320px; }

/* Author / meta row — bellmedex-style byline under the title */
.card-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--sp-4);
}
.card-author-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--g-primary);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-author-name { font-size: var(--text-xs); font-weight: 700; color: var(--c-text-2); }
.card-author-date { font-size: 11px; color: var(--c-text-light); display: block; }

/* Category page / article hero banner photo */
.hero-banner-photo {
  width: 100%;
  aspect-ratio: 21 / 8;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: var(--sp-8);
  background: var(--g-primary);
  box-shadow: var(--clay-md);
}
.hero-banner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 720px) {
  .featured-card .card-photo { min-height: 220px; }
  .hero-banner-photo { aspect-ratio: 16/10; border-radius: var(--r-lg); }
}

  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .specialty-pill-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-item { grid-template-columns: 32px 1fr; }
  .popular-meta { grid-column: 2; text-align: left; margin-top: 4px; }
  .code-row { grid-template-columns: 1fr; gap: 6px; }
  .code-cat-tag { display: none; }
  .newsletter-box { padding: var(--sp-8) var(--sp-5); }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill { white-space: nowrap; }
  .article-body h2 { font-size: var(--text-xl); }
  .article-body p { font-size: 1rem; }
  .code-hub-box { padding: var(--sp-6); }
}
