
/* ════════════════════════════════════════════════════════════════════
   MARBLEHOST BLOG — All blog-specific styles
   Append this block to the existing style.css
   ════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════
   BLOG HERO VARIANTS
═══════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(29,78,216,.35), transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(249,145,26,.12), transparent 45%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 16px 0 0;
  max-width: 780px;
}
.page-hero .hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-top: 14px;
  line-height: 1.65;
}
.hero-article-img {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-top: 32px;
}
.hero-article-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.hero-category-img {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  margin-top: 28px;
}
.hero-category-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════
   BREADCRUMBS
═══════════════════════════════ */
.breadcrumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumbs a { color: rgba(255,255,255,.7); transition: color .2s; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { color: rgba(255,255,255,.3); }
.breadcrumbs .current { color: rgba(255,255,255,.5); }

/* ═══════════════════════════════
   HERO ARTICLE META (base)
═══════════════════════════════ */
.hero-author-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; border: 1px solid rgba(255,255,255,.8);
}
.hero-author-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.hero-author-info { display: flex; flex-direction: column; gap: 2px; }
.hero-author-name { font-size: .9rem; font-weight: 700; color: #fff; }
.hero-author-role { font-size: .75rem; color: rgba(255,255,255,.6); }
.hero-cat-pill {
  display: inline-flex; align-items: center;
  font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--amber); color: #fff;
  padding: 3px 10px; border-radius: 20px;
}

/* ═══════════════════════════════
   BLOG LAYOUT
═══════════════════════════════ */
.blog-layout { background: var(--surface); padding: 40px 0 80px; }
.blog-main { min-width: 0; }
.blog-empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ═══════════════════════════════
   ARTICLE GRID
═══════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }

/* ═══════════════════════════════
   ARTICLE CARD
═══════════════════════════════ */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.blog-card-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--navy); position: relative; flex-shrink: 0;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-cat {
  position: absolute; top: 12px; left: 12px;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--amber); color: #fff;
  padding: 3px 8px; border-radius: 20px;
  z-index: 1;
}
.blog-card-cat a { color: #fff; }
.blog-card-body { padding: 18px 18px 14px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title {
  font-family: var(--f-sans); font-size: 1rem; font-weight: 700;
  color: var(--ink); line-height: 1.35; letter-spacing: -.01em;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-title a { color: inherit; }
.blog-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blog-card-title a:hover { color: var(--blue); }
.blog-card:hover .blog-card-title a { color: var(--blue); }
.blog-card-excerpt {
  font-size: .85rem; color: var(--muted); line-height: 1.6;
  flex: 1; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.blog-card-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden;
}
.blog-card-meta-right { flex: 1; min-width: 0; }
.blog-card-author { font-size: .78rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-card-info { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.blog-card-info-sep { color: var(--border); }

/* ═══════════════════════════════
   CATEGORY FILTER / NAV
═══════════════════════════════ */
.blog-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.blog-filter-bar h2 {
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.blog-filter-bar h2 strong { color: var(--ink); }
.blog-filter-nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted);
}
.blog-cat-link {
  font-size: .8rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 20px;
  padding: 5px 12px; background: var(--white);
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.blog-cat-link:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ═══════════════════════════════
   MID-FUNNEL CTA BANNER
═══════════════════════════════ */
.blog-midfunnel {
  background: var(--navy);
  border-radius: 14px; overflow: hidden;
  margin: 4px 0 22px;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 48px 40px;
}
.blog-midfunnel::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 10% 50%, rgba(29,78,216,.4), transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(249,145,26,.15), transparent 45%);
}
.blog-midfunnel-text { position: relative; z-index: 1; margin-bottom: 28px; }
.blog-midfunnel-eyebrow {
  font-size: .65rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px; display: block;
}
.blog-midfunnel-text h3 {
  font-family: var(--f-sans); font-size: 1.65rem; font-weight: 800;
  color: #fff; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px;
}
.blog-midfunnel-text p { font-size: .95rem; color: rgba(255,255,255,.72); line-height: 1.65; max-width: 520px; margin: 0 auto; }
.blog-midfunnel-cta { position: relative; z-index: 1; flex-shrink: 0; }
.blog-midfunnel-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--navy-deep);
  font-size: .95rem; font-weight: 700;
  padding: 15px 28px; border-radius: 10px;
  transition: background .2s, gap .2s; white-space: nowrap;
}
.blog-midfunnel-cta a:hover { background: var(--amber-h); gap: 12px; }
.blog-midfunnel-cta a svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.blog-midfunnel-note { display: block; font-size: .72rem; color: rgba(255,255,255,.45); text-align: center; margin-top: 10px; }

/* ═══════════════════════════════
   PAGINATION
═══════════════════════════════ */
.blog-pagination { display: flex; gap: 6px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span {
  min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; border-radius: 8px;
  border: 1.5px solid var(--border); color: var(--ink); transition: all .2s;
}
.blog-pagination a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.blog-pagination .active { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-pagination .pag-arrow { width: auto; padding: 0 12px; gap: 6px; }
.blog-pagination .pag-arrow svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.blog-pagination .pag-ellipsis { border: none; color: var(--muted); }

/* ═══════════════════════════════
   ARTICLE LAYOUT
═══════════════════════════════ */
.article-layout { background: var(--surface); padding: 48px 0 80px; }
.article-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.article-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
}
.article-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

/* ═══════════════════════════════
   MOBILE TOC
═══════════════════════════════ */
.toc-mobile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 32px; overflow: hidden;
  display: none;
}
.toc-mobile-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: none; border: none; cursor: pointer;
  font-size: .85rem; font-weight: 700; color: var(--ink); font-family: var(--f-sans);
}
.toc-mobile-toggle svg { width: 16px; height: 16px; stroke: var(--muted); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; flex-shrink: 0; }
.toc-mobile.open .toc-mobile-toggle svg { transform: rotate(180deg); }
.toc-mobile-body { display: none; border-top: 1px solid var(--border); padding: 12px 0; }
.toc-mobile.open .toc-mobile-body { display: block; }

/* ═══════════════════════════════
   TOC NAVIGATION
═══════════════════════════════ */
.toc-nav { list-style: none; }
.toc-nav li a {
  display: block; padding: 6px 20px;
  font-size: .85rem; color: var(--muted); line-height: 1.4;
  transition: color .15s, background .15s; border-left: 2px solid transparent;
}
.toc-nav li a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.toc-nav li a.active {
  color: var(--blue); font-weight: 700;
  border-left-color: var(--blue); background: var(--blue-pale);
}

/* ═══════════════════════════════
   ARTICLE PROSE
═══════════════════════════════ */
.article-prose {
  font-family: var(--f-sans);
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink);
}
.article-prose p { margin-bottom: 1.4em; }
.article-prose h2 {
  font-family: var(--f-sans);
  font-size: 1.45rem; font-weight: 800;
  color: var(--ink); letter-spacing: -.03em;
  margin: 2em 0 .7em; line-height: 1.2;
  padding-bottom: 10px;
  scroll-margin-top: 32px;
}
.article-prose h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em;
  margin: 1.6em 0 .6em; line-height: 1.3;
  scroll-margin-top: 32px;
}
.article-prose ul, .article-prose ol { margin: 0 0 1.4em 2.4em; }
.article-prose li { margin-bottom: .5em; }
.article-prose strong { font-weight: 700; color: var(--ink); }
.article-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--blue-h); }
.article-prose code {
  font-family: 'Courier New', monospace;
  font-size: .88em; background: var(--surface);
  padding: 2px 6px; border-radius: 4px;
  color: var(--ink); border: 1px solid var(--border);
}
.article-prose pre {
  background: #1e293b;
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.4em 0;
}
.article-prose pre code {
  font-size: .85em;
  color: #e2e8f0;
  background: none;
  border: none;
  padding: 0;
}
.article-prose blockquote {
  border-left: 4px solid var(--blue);
  margin: 1.6em 0;
  padding: 14px 20px;
  background: var(--blue-pale);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-style: italic;
}
.article-prose img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1em 0;
}
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: .9rem;
}
.article-prose table th,
.article-prose table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-prose table th {
  background: var(--surface);
  font-weight: 700;
}

/* ═══════════════════════════════
   INLINE CALLOUT
═══════════════════════════════ */
.article-callout {
  background: var(--blue-pale);
  border: 1px solid rgba(0,113,188,.2);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
  display: flex; gap: 16px; align-items: flex-start;
}
.callout-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.article-callout p { margin: 0; font-size: .98rem; line-height: 1.65; color: var(--ink); }

/* ═══════════════════════════════
   ARTICLE FAQ (accordion)
═══════════════════════════════ */

/* Reset global section { padding: 80px 0 } from style.css when inside article */
.article-prose section {
  padding: 0;
  margin: 1.6em 0;
}
/* Also neutralise the H2 top margin that stacks with section margin */
.article-prose section > h2:first-child {
  margin-top: 0;
}

.article-faq { margin: 1.6em 0 0; }
.article-faq h2 { scroll-margin-top: 32px; }
.afaq-accordion { display: flex; flex-direction: column; gap: 0; }
.afaq-item {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 0; margin-top: -1px;
}
.afaq-item:first-child { border-radius: 12px 12px 0 0; }
.afaq-item:last-child  { border-radius: 0 0 12px 12px; }
.afaq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: .98rem; font-weight: 700; color: var(--ink);
  transition: background .15s; font-family: var(--f-sans);
}
.afaq-q:hover { background: var(--white); }
.afaq-q svg { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--muted); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.afaq-item.open .afaq-q svg { transform: rotate(180deg); }
.afaq-a {
  display: none; padding: 0 22px 20px;
  font-size: .95rem; color: var(--muted); line-height: 1.78;
}
.afaq-item.open .afaq-a { display: block; }
.afaq-a a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.afaq-a strong { color: var(--ink); }

/* FAQ section (simple, non-accordion) */
.faq-section { margin: 2em 0; }
.faq-item { margin-bottom: 1.4em; }
.faq-question { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: .4em; }
.faq-answer { color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════
   ARTICLE FINAL CTA
═══════════════════════════════ */
.article-final-cta {
  background: var(--navy);
  border-radius: 16px; padding: 40px;
  margin: 40px 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.article-final-cta::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgba(29,78,216,.45), transparent 60%);
}
.article-final-cta > * { position: relative; z-index: 1; }
.final-cta-eyebrow {
  font-size: .65rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px; display: block;
}
.final-cta-title {
  font-family: var(--f-sans); font-size: 1.5rem; font-weight: 800;
  color: #fff; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px;
}
.final-cta-body {
  font-size: .95rem; color: rgba(255,255,255,.72); line-height: 1.65; margin-bottom: 24px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.final-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Inline CTA block (inside prose) */
.article-inline-cta {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 2em 0;
  text-align: center;
}
.article-inline-cta h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.article-inline-cta p  { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }

/* ═══════════════════════════════
   AUTHOR BIO
═══════════════════════════════ */
.author-bio {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  margin: 32px 0 0;
}
.author-bio-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden;
}
.author-bio-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.author-bio-body { min-width: 0; }
.author-bio-name { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 2px; display: block; }
.author-bio-role { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; display: block; }
.author-bio-text { font-size: .88rem; color: var(--muted); line-height: 1.68; }
.author-bio-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Author social links */
.author-social-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.author-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 7px;
  border: 1.5px solid var(--border); color: var(--muted);
  transition: border-color .15s, color .15s;
}
.author-social-link:hover { border-color: var(--blue); color: var(--blue); }
.author-social-link svg { width: 14px; height: 14px; }

/* ═══════════════════════════════
   SIDEBAR WIDGETS
═══════════════════════════════ */
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.sidebar-widget-title {
  padding: 14px 20px 12px; border-bottom: 1px solid var(--border);
  font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.sidebar-toc .toc-nav { max-height: 360px; overflow-y: auto; padding: 6px 0; }

/* Sidebar contextual CTA */
.sidebar-cta {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 22px 20px;
}
.sidebar-cta-eyebrow {
  font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 10px; display: block;
}
.sidebar-cta-title { font-size: .98rem; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 8px; letter-spacing: -.02em; }
.sidebar-cta-text { font-size: .84rem; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.sidebar-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--blue); color: #fff;
  font-size: .875rem; font-weight: 700;
  padding: 12px 16px; border-radius: 9px;
  transition: background .2s, gap .2s;
}
.sidebar-cta-btn:hover { background: var(--blue-h); gap: 10px; text-decoration: none; }
.sidebar-cta-btn svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-cta-note { display: block; font-size: .72rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* ═══════════════════════════════
   RESPONSIVE — BLOG
═══════════════════════════════ */
@media (max-width: 1100px) {
  .article-columns { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .toc-mobile { display: block; }
  .article-layout { padding: 32px 0 56px; }
  .article-main { padding: 28px 28px; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .article-final-cta { padding: 28px 20px; }
  .final-cta-title { font-size: 1.2rem; }
  .article-callout { flex-direction: column; gap: 10px; }
  .author-bio { flex-direction: column; }
  .blog-midfunnel { padding: 32px 20px; }
  .blog-midfunnel-text h3 { font-size: 1.25rem; }
  .page-hero { padding: 36px 0 36px; }
  .hero-article-img img { height: 220px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-main { padding: 20px 16px; }
  .blog-filter-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .article-prose { font-size: .97rem; }
  .article-prose h2 { font-size: 1.2rem; }
}

/* ═══════════════════════════════
   AUTHOR PROFILE PAGE
═══════════════════════════════ */
.author-profile-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  margin-bottom: 8px;
}
.author-profile-avatar {
  width: 90px; height: 90px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
}
.author-profile-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.author-profile-name { font-size: 1.25rem; font-weight: 800; color: var(--ink); display: block; margin-bottom: 4px; }
.author-profile-role { font-size: .85rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 12px; }
.author-profile-bio  { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.author-profile-bio a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .author-profile-card { flex-direction: column; }
}

/* ═══════════════════════════════
   AUTHOR PROFILE LINK (below bio)
═══════════════════════════════ */
.author-profile-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .82rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
}
.author-profile-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════
   CATEGORY SELECT DROPDOWN
═══════════════════════════════ */
.blog-filter-nav select {
  font-size: .82rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: 6px 10px; background: var(--white); cursor: pointer;
  font-family: var(--f-sans);
  transition: border-color .15s;
}
.blog-filter-nav select:hover  { border-color: var(--blue); }
.blog-filter-nav select:focus  { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,188,.1); }

/* ═══════════════════════════════
   CODE BLOCKS (readable light-on-dark)
═══════════════════════════════ */
.article-prose pre {
  background: #1e293b;
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.4em 0;
}
.article-prose pre code {
  font-family: 'Courier New', Consolas, monospace;
  font-size: .85em;
  line-height: 1.6;
  color: #e2e8f0;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

/* ═══════════════════════════════
   FINAL CTA NOTE
═══════════════════════════════ */
.final-cta-note {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin-top: 12px;
}

/* ═══════════════════════════════
   RELATED ARTICLES
═══════════════════════════════ */
.related-section {
  background: var(--white);
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.related-card-thumb { aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; position: relative; }
.related-card-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s; }
.related-card:hover .related-card-thumb img { transform: scale(1.04); }
.related-card-cat {
  position: absolute; top: 10px; left: 10px;
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--amber); color: #fff; padding: 2px 7px; border-radius: 16px; z-index: 1;
}
.related-card-cat a { color: #fff; }
.related-card-body { padding: 16px 18px 14px; flex: 1; display: flex; flex-direction: column; }
.related-card-title { font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 10px; }
.related-card-title a { color: inherit; }
.related-card-title a::after { content:''; position:absolute; inset:0; z-index:0; }
.related-card-title a:hover { color: var(--blue); }
.related-card:hover .related-card-title a { color: var(--blue); }
.related-card-meta { display:flex; align-items:center; gap:8px; margin-top:auto; }
.related-card-avatar { width:24px; height:24px; border-radius:50%; flex-shrink:0; overflow:hidden; }
.related-card-info { font-size: .75rem; color: var(--muted); display:flex; gap:5px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════
   HERO ARTICLE META
   Desktop: single row — author | sep | date | sep | read time
   Mobile (≤640px): two rows — author / pill panel
═══════════════════════════════ */
.hero-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 4px;
  row-gap: 12px;
}

.hero-author-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid rgba(255,255,255,.2);
}

/* Desktop meta items inline with separators */
.hero-meta-group {
  display: flex;
  align-items: center;
}
.hero-meta-group .hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 18px;
  position: relative;
}
.hero-meta-group .hero-meta-item:first-child {
  padding-left: 0;
}
.hero-meta-group .hero-meta-item + .hero-meta-item {
  border-left: 1px solid rgba(255,255,255,.2);
}

.hero-meta-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.hero-meta-value {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

/* Mobile: switch to two-row pill layout */
@media (max-width: 640px) {
  .hero-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  /* Remove the right border/margin from author group */
  .hero-author-group {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
  }
  /* Meta items become a full-width pill panel */
  .hero-meta-group {
    width: 100%;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    overflow: hidden;
  }
  .hero-meta-group .hero-meta-item {
    flex: 1;
    padding: 9px 12px;
    border-left: none;
    border-right: 1px solid rgba(255,255,255,.09);
  }
  /* Restore left padding on first item (overrides desktop rule that zeroes it) */
  .hero-meta-group .hero-meta-item:first-child {
    padding-left: 12px;
  }
  .hero-meta-group .hero-meta-item:last-child {
    border-right: none;
  }
  /* Remove inline separators — pill borders take over */
  .hero-meta-group .hero-meta-item + .hero-meta-item {
    border-left: none;
  }
  .hero-meta-label { font-size: .55rem; }
  .hero-meta-value { font-size: .78rem; }
}

/* ═══════════════════════════════
   AUTHOR PAGE — compact article grid
   2-column, no excerpts
═══════════════════════════════ */
.author-article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}
.author-article-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 14px;
  transition: box-shadow .2s;
}
.author-article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.author-article-thumb {
  width: 80px; height: 60px;
  border-radius: 6px; overflow: hidden; flex-shrink: 0; display: block;
}
.author-article-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.author-article-card:hover .author-article-thumb img {
  transform: scale(1.05);
}
.author-article-body {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
}
.author-article-cat {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber);
}
.author-article-cat a { color: inherit; }
.author-article-title {
  font-size: .88rem; font-weight: 700; line-height: 1.35;
  color: var(--ink); margin: 0;
}
.author-article-title a { color: inherit; }
.author-article-title a:hover { color: var(--blue); }
.author-article-card:hover .author-article-title a { color: var(--blue); }
.author-article-meta {
  font-size: .72rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

@media (max-width: 640px) {
  .author-article-grid { grid-template-columns: 1fr; }
  .author-article-thumb { width: 70px; height: 52px; }
}

/* ═══════════════════════════════
   ARTICLE PROSE — image border
═══════════════════════════════ */
#articleMain .article-prose img {
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ═══════════════════════════════
   AUTHOR PAGE — extended bio
═══════════════════════════════ */
.author-extended-bio {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 40px;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .author-extended-bio { padding: 20px; }
}
