
:root {
  --bg: #ffffff;
  --bg-soft: #fafaf7;
  --card-bg: #ffffff;
  --fg: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #eaecf0;
  --line-2: #d0d5dd;
  --brand: #1e6b4a;
  --brand-hover: #164f37;
  --accent: #f5c542;
  --pill: #f2f4f7;
  --dark: #101828;
  --dark-hover: #1d2939;
  --serif: ui-serif, "Georgia", "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.06);
  --shadow: 0 4px 8px -2px rgba(16,24,40,0.06), 0 2px 4px -2px rgba(16,24,40,0.04);
  --shadow-lg: 0 12px 24px -4px rgba(16,24,40,0.10), 0 4px 8px -2px rgba(16,24,40,0.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1117;
    --bg-soft: #0f1620;
    --card-bg: #131b26;
    --fg: #e8ecf1;
    --muted: #98a2b3;
    --muted-2: #6c7684;
    --line: #1e293b;
    --line-2: #334155;
    --pill: #1a2331;
    --dark: #ffffff;
    --dark-hover: #f0f2f5;
    --brand: #4fb37e;
    --brand-hover: #6fc99a;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1117;
  --bg-soft: #0f1620;
  --card-bg: #131b26;
  --fg: #e8ecf1;
  --muted: #98a2b3;
  --muted-2: #6c7684;
  --line: #1e293b;
  --line-2: #334155;
  --pill: #1a2331;
  --dark: #ffffff;
  --dark-hover: #f0f2f5;
  --brand: #4fb37e;
  --brand-hover: #6fc99a;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img, svg { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-tight { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* -------- header -------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky; top: 0; z-index: 50;
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { display: block; }
.brand:hover { color: var(--brand); }
.nav {
  display: flex; gap: 32px; align-items: center;
  font-size: 15px; font-weight: 500;
}
.nav a { color: var(--fg); position: relative; padding: 8px 0; }
.nav a.active { color: var(--brand); }
.nav a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-dark { background: var(--dark); color: var(--bg); }
.btn-dark:hover { background: var(--dark-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.theme-toggle {
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); padding: 6px 12px; border-radius: 999px;
  font-size: 13px; cursor: pointer; font-family: var(--sans);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg); }

/* -------- blog hero -------- */
.blog-hero { padding: 64px 0 24px; }
.blog-hero .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 32px;
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 72px); line-height: 1.02;
  letter-spacing: -0.03em; margin: 0; font-weight: 700;
}
.blog-hero .lede { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0; max-width: 44ch; justify-self: end; }
.hero-email {
  display: flex; align-items: stretch; gap: 8px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 5px 5px 20px; max-width: 480px;
}
.hero-email input {
  flex: 1; border: 0; background: transparent; outline: 0;
  padding: 10px 4px; font-size: 15px; font-family: var(--sans); color: var(--fg);
}
.hero-email input::placeholder { color: var(--muted-2); }
.hero-email .btn { padding: 10px 22px; }
@media (max-width: 800px) {
  .blog-hero .row { grid-template-columns: 1fr; gap: 16px; }
  .blog-hero .lede { justify-self: start; }
}

/* -------- tabs -------- */
.tabs {
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.tabs .tab-row {
  display: flex; gap: 8px; align-items: center; overflow-x: auto;
  padding-bottom: 0;
}
.tab {
  background: transparent; border: 0; padding: 12px 12px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  font-family: var(--sans); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--brand); }

/* -------- 2-col card grid -------- */
.cards { margin: 40px 0 80px; }
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px;
}
@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; gap: 32px; }
}
.card {
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0;
}
.card .cover-wrap {
  position: relative; aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--pill);
}
.card .cover-wrap > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card .cover-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.card .badge {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  background: var(--bg); color: var(--fg);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.card .author-overlay {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.card .author-overlay img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
}
.card .author-overlay .who { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.card .author-overlay .when { font-size: 12px; opacity: 0.85; margin-top: 1px; }
.card h3 {
  font-family: var(--serif); font-size: 22px; line-height: 1.25;
  margin: 0; letter-spacing: -0.01em; font-weight: 700;
}
.card h3 a { color: var(--fg); }
.card h3 a:hover { color: var(--brand); }
.card .snippet { color: var(--muted); font-size: 15px; margin: 0; }
.card .read {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg); font-weight: 600; font-size: 14.5px;
}
.card .read .arrow { transition: transform .15s ease; }
.card .read:hover .arrow { transform: translate(2px, -2px); }
.card .read:hover { color: var(--brand); }

/* Load more */
.load-more {
  display: flex; justify-content: center; margin: 48px 0 24px;
}

/* -------- marquee -------- */
.marquee {
  background: var(--dark); color: var(--bg);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--dark);
}
.marquee .track {
  display: inline-flex; gap: 44px; padding-left: 44px;
  animation: scroll 30s linear infinite;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.2px;
  will-change: transform;
}
.marquee .track span::before {
  content: "•"; margin-right: 44px; color: var(--accent); opacity: 0.9;
}
.marquee .track a { color: inherit; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -------- CTA row -------- */
.cta-row {
  padding: 72px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 800px) { .cta-row { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; } }
.cta-row h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 700;
}
.cta-row p { color: var(--muted); margin: 0; font-size: 16px; }

/* -------- FOOTER (green, kept from v2) -------- */
.site-footer {
  margin-top: 0;
  background: var(--brand); color: #eef4ee;
  padding: 40px 24px 0; overflow: hidden;
}
.footer-inner {
  background: var(--bg); color: var(--fg);
  border-radius: 20px 20px 0 0;
  padding: 40px 32px 0;
  max-width: 1200px; margin: 0 auto;
}
@media (max-width: 640px) { .footer-inner { padding: 28px 20px 0; } }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-newsletter h4 {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  margin: 0 0 12px; letter-spacing: 0.2px;
}
.footer-newsletter .np-row {
  display: flex; align-items: center;
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 5px 5px 18px; max-width: 420px;
}
.footer-newsletter input {
  border: 0; background: transparent; outline: 0; padding: 10px 6px;
  font-family: var(--sans); font-size: 14px; color: var(--fg); flex: 1;
}
.footer-newsletter input::placeholder { color: var(--muted); }
.footer-newsletter .btn { padding: 8px 18px; }
.footer-newsletter small {
  display: block; color: var(--muted); font-size: 12px; margin-top: 10px; max-width: 420px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); }
.footer-col h5 {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.3px; margin: 0 0 16px; color: var(--muted);
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; font-size: 15px; }
.footer-col a { color: var(--fg); }
.footer-col a:hover { color: var(--brand); }
.footer-wordmark {
  font-family: var(--serif);
  font-size: clamp(80px, 22vw, 260px);
  font-weight: 800; line-height: 0.85;
  color: var(--brand); letter-spacing: -0.05em;
  padding: 16px 0 0; margin: 0;
  display: flex; align-items: baseline; gap: 0.05em; overflow: hidden;
}
.footer-wordmark sup { font-size: 0.16em; font-weight: 700; vertical-align: super; }
.footer-strip {
  border-top: 1px solid var(--line); padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.footer-strip a { color: var(--muted); }
.footer-strip a:hover { color: var(--fg); }

/* -------- article page -------- */
.article { padding: 48px 0 24px; }
.article header { max-width: 780px; margin: 0 auto 28px; }
.article .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 14px;
}
.article h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.8vw, 48px); line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 16px; font-weight: 700;
}
.article .meta {
  color: var(--muted); font-size: 14px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.article .meta .dot { opacity: .5; }
.article .meta .author {
  display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600;
}
.article .meta .author img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.article .cover-lg {
  max-width: 900px; margin: 0 auto 32px;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1200/630; background: var(--pill);
}
.article .cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.disclosure-box {
  background: var(--pill); border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 8px; margin: 0 auto 24px;
  font-family: var(--sans); font-size: 14.5px; max-width: var(--measure);
}
.article .body {
  font-family: var(--serif); font-size: 18.5px; line-height: 1.75;
  max-width: var(--measure); margin: 0 auto;
}
.article .body p { margin: 0 0 1.15em; }
.article .body h2 {
  font-family: var(--serif); font-size: 26px; line-height: 1.25;
  margin: 2em 0 0.6em; scroll-margin-top: 80px; letter-spacing: -0.01em;
}
.article .body h3 {
  font-family: var(--serif); font-size: 21px; line-height: 1.3;
  margin: 1.6em 0 0.5em; scroll-margin-top: 80px;
}
.article .body h4 {
  font-family: var(--sans); font-size: 15px; line-height: 1.3;
  margin: 1.5em 0 0.5em; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--muted);
}
.article .body ul, .article .body ol { padding-left: 1.4em; }
.article .body li { margin: 0.35em 0; }
.article .body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0; padding: 0.1em 1em;
  color: var(--muted); font-style: italic;
}
.article .body a {
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(30, 107, 74, 0.4);
}
.article .body a:hover { text-decoration-color: var(--brand); }
.article .body table {
  border-collapse: collapse; width: 100%; margin: 1.5em 0;
  font-family: var(--sans); font-size: 15px;
}
.article .body th, .article .body td {
  border-bottom: 1px solid var(--line); padding: 10px 12px;
  text-align: left; vertical-align: top;
}
.article .body th { font-weight: 700; }
.article .toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 auto 24px; background: var(--card-bg);
  font-family: var(--sans); font-size: 14.5px; max-width: var(--measure);
}
.article .toc .toc-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.article .toc ul { list-style: none; padding: 0; margin: 0; }
.article .toc li { margin: 5px 0; }
.article .toc li.sub { padding-left: 18px; font-size: 13.5px; }
.article .toc a { color: var(--fg); }
.article .toc a:hover { color: var(--brand); }
.author-card {
  max-width: 68ch; margin: 40px auto 0;
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card-bg); align-items: start;
}
.author-card img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
}
.author-card h4 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; letter-spacing: -0.005em; }
.author-card .role { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.author-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.related { max-width: 1200px; margin: 56px auto 0; padding: 0 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.related h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 22px; letter-spacing: -0.01em; }

/* -------- category page -------- */
.cat-hero { padding: 48px 0 24px; }
.cat-hero .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
@media (max-width: 800px) { .cat-hero .row { grid-template-columns: 1fr; } }
.cat-hero .pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--pill); color: var(--brand);
  font-weight: 700; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
}
.cat-hero h1 {
  font-family: var(--serif); font-size: clamp(38px, 6vw, 60px);
  margin: 0; letter-spacing: -0.02em; font-weight: 700; line-height: 1.05;
}
.cat-hero p { color: var(--muted); margin: 0; max-width: 44ch; justify-self: end; font-size: 17px; }
@media (max-width: 800px) { .cat-hero p { justify-self: start; } }

/* -------- legal / about -------- */
.legal { padding: 48px 0 24px; max-width: 780px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 0 0 18px; }
.legal .body { font-family: var(--serif); font-size: 18.5px; line-height: 1.75; }
.legal .body p { margin: 0 0 1em; }
.legal .body h2 { font-family: var(--serif); font-size: 22px; margin: 1.6em 0 0.5em; letter-spacing: -0.01em; }
.legal .body h3 { font-family: var(--serif); font-size: 18px; margin: 1.3em 0 0.4em; }
.legal .body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.about-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding: 48px 0 24px;
}
@media (max-width: 640px) { .about-hero { grid-template-columns: 1fr; text-align: center; } .about-hero img { margin: 0 auto; } }
.about-hero img {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--accent);
}
.about-hero .pill {
  color: var(--brand); background: var(--pill);
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.about-hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 10px; letter-spacing: -0.02em; }
.about-hero p.tag { color: var(--muted); font-size: 17px; margin: 0; }

/* -------- mobile header cleanup -------- */
@media (max-width: 700px) {
  .site-header .row { flex-wrap: wrap; gap: 12px; }
  .nav { gap: 18px; font-size: 14.5px; order: 3; width: 100%; overflow-x: auto; }
  .header-cta { order: 2; }
}

/* -------- v4 hard overrides -------- */

/* Force 2-col grid at desktop, no matter what */
@media (min-width: 768px) {
  .card-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 40px 32px; }
}
@media (max-width: 767.98px) {
  .card-grid { grid-template-columns: 1fr !important; }
}

/* Tabs — clean underline row */
.tabs { border-bottom: 1px solid var(--line); margin-top: 32px; }
.tabs .tab-row { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
button.tab {
  appearance: none; background: transparent !important; border: 0 !important;
  padding: 14px 14px !important; margin-bottom: -1px !important;
  font-size: 15px !important; font-weight: 600 !important;
  color: var(--muted) !important; font-family: var(--sans) !important;
  cursor: pointer; white-space: nowrap; border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
  transition: color .15s ease, border-color .15s ease;
}
button.tab:hover { color: var(--fg) !important; }
button.tab.active { color: var(--fg) !important; border-bottom-color: var(--brand) !important; }

/* Cover image sizing — enforce aspect ratio */
.card .cover-wrap { aspect-ratio: 16/10 !important; overflow: hidden; }
.card .cover-wrap > img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; object-position: center !important;
  display: block !important; position: absolute; inset: 0; z-index: 0;
}

/* Cover author overlay — keep avatar SMALL (was blowing up on mobile) */
.card .author-overlay img { width: 32px !important; height: 32px !important; flex-shrink: 0; }
.card .author-overlay { display: flex !important; align-items: center; gap: 10px; }


/* v5 hard pin: keep author avatar as small circle */
.card .author-overlay {
  position: absolute !important; left: 16px !important; bottom: 14px !important;
  z-index: 3 !important;
  display: flex !important; align-items: center; gap: 10px;
  color: #fff;
}
.card .author-overlay img {
  width: 32px !important; height: 32px !important;
  border-radius: 50% !important; object-fit: cover !important;
  position: static !important; inset: auto !important;
  border: 2px solid rgba(255,255,255,0.5) !important;
  flex-shrink: 0;
}
.card .badge { z-index: 3 !important; }
.card .cover-wrap::after { z-index: 1 !important; }

/* -------- v7: post-page sticky sidebars -------- */
@media (min-width: 1100px) {
  .article {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 720px) 260px !important;
    gap: 48px !important;
    max-width: 1320px !important;
    padding: 48px 24px 24px !important;
    align-items: start;
  }
  .article > header,
  .article > .cover-lg,
  .article > .disclosure-box,
  .article > .author-card {
    grid-column: 1 / -1 !important;
    max-width: none !important;
    margin-left: auto !important; margin-right: auto !important;
  }
  .article > .body {
    grid-column: 2 / 3 !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .article > .toc {
    grid-column: 1 / 2 !important;
    position: sticky !important; top: 90px !important;
    align-self: start !important;
    max-width: none !important; margin: 0 !important;
    max-height: calc(100vh - 110px);
    overflow-y: auto; overflow-x: hidden;
  }
  .article > .toc::-webkit-scrollbar { width: 4px; }
  .article > .toc::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
  .article-side {
    grid-column: 3 / 4;
    position: sticky; top: 90px; align-self: start;
    display: flex; flex-direction: column; gap: 20px;
  }
  .article-side .side-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
  }
  .article-side .side-card.author { text-align: center; }
  .article-side .side-avatar {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 12px; display: block;
    border: 3px solid var(--accent);
  }
  .article-side .side-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
  }
  .article-side .side-name {
    font-family: var(--serif); font-size: 17px; font-weight: 700;
    margin: 0 0 8px; letter-spacing: -0.01em;
  }
  .article-side .side-bio {
    font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0;
  }
  .article-side .side-share { display: flex; flex-direction: column; gap: 8px; }
  .article-side .side-share a,
  .article-side .side-share button {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; text-align: left;
    border: 1px solid var(--line); border-radius: 8px;
    background: transparent; color: var(--fg); font-size: 13.5px;
    font-family: var(--sans); font-weight: 500; cursor: pointer; text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
  }
  .article-side .side-share a:hover,
  .article-side .side-share button:hover {
    border-color: var(--brand); color: var(--brand);
  }
  .article-side .side-share .icn {
    width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--muted);
  }
  /* scroll-spy active TOC link */
  .article .toc a.active { color: var(--brand); font-weight: 700; }
  .article .toc li.sub a.active { color: var(--brand); }
}

/* below 1100px: keep the old inline TOC layout, hide the injected side card */
@media (max-width: 1099.98px) {
  .article-side { display: none !important; }
}
