:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f7;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --color-primary: #0a0a0a;
  --color-primary-light: #1a1a1a;
  --color-accent: #0a0a0a;
  --color-accent-glow: rgba(0, 0, 0, 0.04);
  --color-insurance: #0a0a0a;
  --color-finance: #0a0a0a;
  --text-primary: #0a0a0a;
  --text-secondary: #444444;
  --text-muted: #777777;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.25);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ─── Reading Progress Bar ─── */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0a0a0a;
  transform-origin: left;
  transform: scaleX(0);
  animation: reading-progress linear;
  animation-timeline: scroll(root block);
  z-index: 9999;
}
@keyframes reading-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

main { position: relative; z-index: 1; }

/* ─── Container ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  font-weight: 400;
  color: var(--text-muted);
}

.logo sup {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
  letter-spacing: 0.1em;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-badge {
  background: var(--text-primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
}

/* ─── Hero ─── */
.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 50%;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  max-width: 720px;
  color: var(--text-primary);
}

.hero-title em {
  font-style: italic;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* ─── Category Tabs ─── */
.category-bar {
  display: flex;
  gap: 0.5rem;
  padding: 2rem 0 1rem;
  flex-wrap: wrap;
}

.cat-tag {
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.cat-tag.insurance { border-color: rgba(0, 0, 0, 0.2); color: var(--text-secondary); }
.cat-tag.finance { border-color: rgba(0, 0, 0, 0.2); color: var(--text-secondary); }
.cat-tag:hover { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-hover); }
.cat-tag.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* ─── Article Grid ─── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
}

/* ─── Card ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: grayscale(20%);
}

.card:hover .card-image { transform: scale(1.02); filter: grayscale(0%); }

.card-image-wrap { overflow: hidden; position: relative; }

.card-category-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.pill-tech,
.pill-insurance { background: #0a0a0a; color: #ffffff; }
.pill-finance { background: #ffffff; color: #0a0a0a; border: 1px solid rgba(0,0,0,0.15); }

.card-content { padding: 1.4rem; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1.4rem 1rem;
  border-top: 1px solid var(--border);
}

.card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

/* ─── Featured Card ─── */
.featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (max-width: 768px) { .featured-card { grid-template-columns: 1fr; } }

.featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.3s ease;
}

.featured-card:hover .featured-image { filter: grayscale(0%); }

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--text-primary);
  display: inline-block;
  padding-bottom: 0.25rem;
  width: fit-content;
}

/* ─── Article page ─── */
.article-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  filter: grayscale(10%);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.article-body p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* ─── Static pages ─── */
.static-page { padding: 4rem 0; min-height: 80vh; }

.static-page h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.static-page h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.static-page p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .article-grid { grid-template-columns: 1fr; } }

.footer h4 { font-family: var(--font-heading); margin-bottom: 1rem; font-size: 0.95rem; letter-spacing: -0.01em; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Admin ─── */
.admin-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.btn-publish {
  background: var(--text-primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.btn-publish:hover { opacity: 0.8; }

/* ─── Article Layout (body + sidebar) ─── */
.article-layout { padding-bottom: 2rem; }

.article-body-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .article-body-wrap {
    grid-template-columns: 200px 1fr;
    max-width: 1100px;
    align-items: start;
  }
  .article-toc { order: -1; }
}

@media (min-width: 1300px) {
  .article-body-wrap {
    grid-template-columns: 200px 1fr 320px;
    max-width: 1300px;
  }
}

/* ─── Right Sidebar ─── */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

/* ─── Static Comments ─── */
.static-comments {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  pointer-events: none;
  opacity: 0.85;
  background: var(--bg-primary);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.comment-form-stub {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.avatar-stub {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.form-input-stub {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  min-height: 80px;
}

.form-btn-stub {
  background: var(--text-primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.8;
}

.comment-item-stub {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-meta-stub {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-author-stub {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comment-date-stub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-text-stub {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.comment-actions-stub {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Table of Contents ─── */
.article-toc {
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  align-self: start;
}

.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-link {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 0.2rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  transition: color 0.2s, border-color 0.2s;
}
.toc-link:hover {
  color: var(--text-primary);
  border-left-color: var(--text-primary);
}

/* ─── Article header enhancements ─── */
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-snippet-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 0.75rem;
}

/* Byline — required for E-E-A-T (Google Helpful Content) */
.article-byline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.article-byline strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.read-time-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-category-pill-inline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* ─── Social Share ─── */
.share-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.share-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  color: var(--text-secondary);
  background: transparent;
  font-family: var(--font-body);
}
.share-btn:hover { border-color: var(--text-primary); color: var(--text-primary); background: var(--bg-secondary); }
.share-twitter:hover { border-color: #0a0a0a; color: #0a0a0a; }
.share-linkedin:hover { border-color: #0a0a0a; color: #0a0a0a; }
.share-copy { color: var(--text-secondary); border-color: var(--border); }

/* ─── Ad Containers ─────────────────────────────────────────────────────────
   Ads MUST be visually distinguishable from editorial content.
   Rule: no same background/border as cards; clear "Advertisement" label above.
──────────────────────────────────────────────────────────────────────────── */

/*
  Ad label: placed as a <p class="ad-label"> ABOVE the ad element.
  Never wrap the label inside the ad container itself.
*/
/* ─── Ad Layouts (Completely Hidden Pre-Approval) ─── */
.ad-label,
.in-article-ad,
.end-article-ad,
.sidebar-ad,
.sticky-rail-ad,
.homepage-leaderboard-ad,
.homepage-mid-ad,
.ad-desktop-only,
.ad-mobile-only {
  display: none !important;
}

/* ─── Filter Bar (homepage) ─── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
}

.search-wrap { flex: 0 1 280px; }

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* ─── Related Articles ─── */
.related-section {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 3rem;
  background: var(--bg-secondary);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.related-card { font-size: 0.95rem; }

/* ─── Most Viewed Articles Section ─── */
.most-viewed-section {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.most-viewed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.most-viewed-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.view-all-link:hover {
  color: var(--text-primary);
}

.most-viewed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .most-viewed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .most-viewed-grid {
    grid-template-columns: 1fr;
  }
}

.most-viewed-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.most-viewed-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.most-viewed-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.most-viewed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.most-viewed-card:hover .most-viewed-img {
  transform: scale(1.05);
}

.rank-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.most-viewed-pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  line-height: 1;
  z-index: 2;
}

.most-viewed-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.most-viewed-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.views-count {
  color: #0284c7;
  font-weight: 600;
}

.meta-dot {
  color: var(--border);
}

.most-viewed-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.most-viewed-snippet {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* ─── Newsletter ─── */
.newsletter-section {
  background: #0a0a0a;
  border-top: none;
  border-bottom: none;
  padding: 4.5rem 0;
  margin: 3rem 0 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .newsletter-inner { grid-template-columns: 1fr; } }

.newsletter-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.newsletter-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

.newsletter-copy .hero-eyebrow {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}
.newsletter-copy .hero-eyebrow::before {
  background: rgba(255,255,255,0.5);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}

.newsletter-btn {
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}
.newsletter-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.newsletter-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.newsletter-success {
  color: #4ade80;
  font-weight: 600;
  font-size: 1rem;
}
.newsletter-error {
  color: #f87171;
  font-size: 0.85rem;
}
.newsletter-fine {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

.newsletter-form-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

/* ─── 4-column Footer Grid ─── */
.footer-grid-4 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .footer-grid-4 { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-grid-4 { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ─── Authors Page ─── */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.author-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.author-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.author-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.author-initials {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.author-card-info { flex: 1; }

.author-card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.author-card-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-card-spec {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.author-card-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.author-card-dot { color: var(--border); }

/* ─── Author Profile Page ─── */
.author-profile-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.author-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-initials-lg {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.author-profile-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.author-profile-spec {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.author-section {
  margin-bottom: 2.5rem;
}

.author-credentials-list {
  list-style: none;
  padding: 0;
}

.author-credential-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.credential-check {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tag {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.author-articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.author-article-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.author-article-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.author-article-thumb {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  filter: grayscale(15%);
}

.author-article-info { flex: 1; min-width: 0; }

.author-article-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.35rem 0 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.author-article-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .author-profile-header { flex-direction: column; text-align: center; }
  .author-article-item { flex-direction: column; }
  .author-article-thumb { width: 100%; height: 160px; }
}

/* ─── FAQ Page ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: block;
  padding: 1.25rem 2rem 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  list-style: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover { color: var(--text-secondary); }

.faq-answer {
  padding: 0 0 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* ─── Resources Page ─── */
.resource-section {
  margin-bottom: 3rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.resource-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.resource-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.resource-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.resource-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* ─── Mobile nav ─── */
@media (max-width: 768px) {
  .nav-links {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
  .article-grid { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
}

