/* Site styles. Plain CSS (no Sass) so it builds identically locally and on GitHub Pages. */

:root {
  --bg: #0c0f11;
  --bg-2: #111518;
  --surface: #161b1f;
  --surface-2: #1c2227;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f1f3f5;
  --ink-2: #c5ccd1;
  --muted: #8d979e;
  --accent: #ff6b3d;
  --accent-ink: #ffb199;
  --accent-soft: rgba(255, 107, 61, 0.12);
  --gold: #f4c25b;
  --gold-soft: rgba(244, 194, 91, 0.12);
  --blue: #79b8ff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 64px;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe, video { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1.1em; }

a { color: var(--ink); text-decoration-color: rgba(255, 107, 61, 0.55); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }

strong { color: var(--ink); font-weight: 600; }
em { color: var(--ink-2); }

code {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.45em;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: rgba(255, 107, 61, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) { .container { padding: 0 16px; } }

.eyebrow {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.62rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: 600 0.92rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); color: var(--ink); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a0b05; }
.btn-primary:hover { background: #ff8259; border-color: #ff8259; color: #1a0b05; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(12, 15, 17, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-link--lab { margin-left: 8px; color: var(--ink); border: 1px solid var(--line-strong); }
.nav-link--lab:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

@media (max-width: 860px) {
  .nav-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    cursor: pointer;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s ease, background 0.2s ease;
  }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
  .nav-burger span::before { top: -6px; }
  .nav-burger span::after { top: 6px; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(12, 15, 17, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-link { padding: 0.7rem 0.8rem; font-size: 1rem; }
  .nav-link--lab { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(640px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 75% 40%, rgba(255, 107, 61, 0.07), transparent 70%),
    var(--bg);
}
.hero #d3banner { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 15, 17, 0.92) 0%, rgba(12, 15, 17, 0.7) 38%, rgba(12, 15, 17, 0) 62%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 48px;
  pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-copy { max-width: 600px; }
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1.2rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.hero-role { font-size: 1.15rem; color: var(--ink); font-weight: 500; line-height: 1.5; margin-bottom: 0.9rem; }
.hero-lead { font-size: 1.05rem; color: var(--ink-2); max-width: 540px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.highlights {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}
.highlight {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 21, 24, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.highlight-value { color: var(--ink); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.highlight-label { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

@media (max-width: 900px) {
  .hero { min-height: 0; display: block; }
  .hero #d3banner { height: 280px; bottom: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 15, 17, 0) 0, rgba(12, 15, 17, 0.2) 120px, var(--bg) 280px); }
  .hero-inner { padding-top: 200px; padding-bottom: 40px; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--split .btn { flex-shrink: 0; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0; }
@media (max-width: 700px) { .section-head--split { flex-direction: column; align-items: flex-start; } }

.section > .container > h2:first-child,
.section .about-body > h2:first-child { margin-bottom: 0.8em; }
.section .container > h3 { margin-top: 2.2rem; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.about-body { font-size: 1.04rem; }
.about-body > p:first-of-type code { font-family: var(--font); font-size: 1em; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(255, 107, 61, 0.3); }

.featured-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.featured-in-label { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.featured-in a { display: inline-flex; opacity: 0.6; transition: opacity 0.18s ease; }
.featured-in a:hover { opacity: 1; }
.featured-in img { height: 26px; width: auto; display: block; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { position: static; max-width: 240px; }
}

/* ---------- Featured research cards ---------- */

.section--research { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rgrid { grid-template-columns: 1fr; } }

.rcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.rcard:hover { transform: translateY(-3px); border-color: rgba(255, 107, 61, 0.5); box-shadow: var(--shadow); color: var(--ink-2); }

.rcard-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070b center / cover no-repeat;
}
.rcard-press {
  position: absolute;
  left: 12px; top: 12px;
  font-size: 0.72rem; font-weight: 600;
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.rcard-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.rcard-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.rcard-subtitle { margin: 0; color: var(--ink-2); font-size: 0.93rem; line-height: 1.5; }
.rcard-summary { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.rcard-cta { margin-top: auto; padding-top: 6px; color: var(--accent-ink); font-size: 0.88rem; font-weight: 600; }

.rcard--spotlight { grid-column: 1 / -1; flex-direction: row; }
.rcard--spotlight .rcard-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 320px; }
.rcard--spotlight .rcard-body { padding: 32px 36px; justify-content: center; gap: 14px; }
.rcard--spotlight .rcard-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.rcard--spotlight .rcard-subtitle { font-size: 1.05rem; color: var(--ink); }
@media (max-width: 760px) {
  .rcard--spotlight { flex-direction: column; }
  .rcard--spotlight .rcard-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .rcard--spotlight .rcard-body { padding: 20px; }
}

.rcard--fallback { grid-column: 1 / -1; border-style: dashed; }
.rcard--fallback .rcard-body { padding: 28px; }

.pills, .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font: 600 0.7rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 61, 0.3);
}
.pill em { font-style: normal; opacity: 0.75; }
.pill--award { color: var(--gold); background: var(--gold-soft); border-color: rgba(244, 194, 91, 0.35); }
.chip {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

/* loading placeholders */
.rcard--skeleton .rcard-media,
.rcard--skeleton .rcard-body span {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.rcard--skeleton .rcard-body span { display: block; height: 12px; border-radius: 6px; }
.rcard--skeleton .rcard-body span:nth-child(1) { width: 35%; }
.rcard--skeleton .rcard-body span:nth-child(2) { width: 80%; height: 18px; }
.rcard--skeleton .rcard-body span:nth-child(3) { width: 60%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Publications ---------- */

.pub-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 0.6rem; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font: 500 0.86rem/1.2 var(--font);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-count { font: 500 0.72rem/1 var(--mono); opacity: 0.6; }

.pub-group {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}
.pub-year {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  align-self: start;
  margin: 0;
  padding-top: 22px;
  font: 500 1rem/1.4 var(--mono);
  color: var(--muted);
  letter-spacing: 0;
}
.pub-items { list-style: none; margin: 0; padding: 0; }
.pub { padding: 20px 0; }
.pub + .pub { border-top: 1px solid var(--line); }
.pub-title { display: inline; color: var(--ink); font-weight: 600; font-size: 1.04rem; line-height: 1.45; text-decoration: none; }
.pub-title:hover { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent); }
.pub-meta { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.pub-meta strong { color: var(--ink-2); font-weight: 600; }
.pub-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.badge {
  font: 500 0.72rem/1 var(--mono);
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--rank { color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(255, 107, 61, 0.28); }
.badge--award { color: var(--gold); background: var(--gold-soft); border-color: rgba(244, 194, 91, 0.35); }
.badge--link { color: var(--blue); border-color: rgba(121, 184, 255, 0.35); background: rgba(121, 184, 255, 0.08); text-decoration: none; }
.badge--link:hover { color: #fff; background: rgba(121, 184, 255, 0.2); }

.pub-more-wrap { display: flex; justify-content: center; padding-top: 28px; border-top: 1px solid var(--line); }

@media (max-width: 700px) {
  .pub-group { grid-template-columns: 1fr; gap: 0; }
  .pub-year { position: static; padding-top: 18px; color: var(--accent); }
}

/* Static list (shown without JavaScript) */
.pub-source ul { padding-left: 1.1em; }
.pub-source li { margin-bottom: 0.9em; color: var(--muted); }
.pub-source li > a:first-child { font-weight: 600; }

/* ---------- Talks ---------- */

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0.4rem 0 1rem; }
.video-grid iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

.talk-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}
.talk-list li {
  position: relative;
  break-inside: avoid;
  padding: 14px 0 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.talk-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 22px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.talk-list code { font-family: var(--font); font-size: 0.88rem; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; }
@media (max-width: 760px) { .talk-list ul { columns: 1; } }

/* ---------- Consulting ---------- */

.services ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.services li {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}
.services li > strong:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
}
.services li > strong:first-child::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--accent);
}
@media (max-width: 860px) { .services ul { grid-template-columns: 1fr; } }

.cta {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 61, 0.3);
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 107, 61, 0.02));
}
.cta p { margin: 0; }
.cta a { color: var(--accent-ink); font-weight: 600; }

/* ---------- Callout (students) ---------- */

.callout {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(255, 107, 61, 0.14), transparent 70%),
    var(--surface);
}
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 600px) { .callout { padding: 26px 22px; } }

/* ---------- Grants ---------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1.6rem;
}
@media (max-width: 760px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-wall img {
  display: block;
  width: 100%;
  height: 96px;
  padding: 22px 20px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  opacity: 0.85;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}
.logo-wall img:hover { opacity: 1; border-color: var(--line-strong); }

/* ---------- Generic pages (course, etc.) ---------- */

.page { max-width: 860px; padding-top: 56px; padding-bottom: 96px; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 2rem; }
.prose h4 { margin-top: 1.6rem; font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface); }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 1.2rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose #d3banner { display: block; width: 100%; margin: 0 0 1.5rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 28px; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; }
.footer-name { color: var(--ink); font-weight: 700; margin: 0 0 4px; }
.footer-sub { color: var(--muted); margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-base { margin-top: 28px; color: var(--muted); font-size: 0.8rem; }
