/*
Theme Name: Milillo 2026
Theme URI: https://milillo.cive.uh.edu/
Author: Pietro Milillo
Description: Modern academic theme for the Milillo SAR Lab at the University of Houston. Standalone (no parent theme), UH-branded, responsive, dark-mode aware. Publications render from page content and are filterable client-side.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: milillo-2026
Tags: education, one-column, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root{
  --uh-red:#c8102e;
  --uh-red-dark:#96000f;
  --uh-cream:#f7f4ef;

  --bg:#ffffff;
  --bg-alt:#f7f7f8;
  --bg-sunk:#eeeef0;
  --surface:#ffffff;
  --text:#16181d;
  --text-muted:#5b6068;
  --text-faint:#868c95;
  --border:#e3e5e9;
  --border-strong:#c9ccd2;
  --accent:var(--uh-red);
  --accent-contrast:#ffffff;

  --font-sans:"Work Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  /* Kept as a variable so display rules need no edits; the site is sans + mono only. */
  /* Sans is the site voice. The serif is used in exactly one place: the body of a
     long-form Writing post, where measure and reading time make it earn its keep. */
  --font-serif:"Work Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-read:"Source Serif 4","Iowan Old Style",Georgia,"Times New Roman",serif;
  --font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  --wrap:1120px;
  --wrap-narrow:760px;
  --gap:clamp(1rem,2.5vw,2rem);
  --radius:10px;
  --radius-lg:16px;
  --shadow-sm:0 1px 2px rgba(16,18,22,.06),0 1px 3px rgba(16,18,22,.04);
  --shadow-md:0 4px 12px rgba(16,18,22,.07),0 2px 4px rgba(16,18,22,.04);
  --shadow-lg:0 12px 32px rgba(16,18,22,.10),0 4px 8px rgba(16,18,22,.05);
  --header-h:64px;
  --ease:cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0e1013;
    --bg-alt:#15181d;
    --bg-sunk:#1c2027;
    --surface:#15181d;
    --text:#e8eaed;
    --text-muted:#a2a9b4;
    --text-faint:#7d848f;
    --border:#272c34;
    --border-strong:#3a414b;
    --accent:#ff5a6e;
    --accent-contrast:#14161a;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow-md:0 4px 12px rgba(0,0,0,.45);
    --shadow-lg:0 12px 32px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"]{
  --bg:#0e1013; --bg-alt:#15181d; --bg-sunk:#1c2027; --surface:#15181d;
  --text:#e8eaed; --text-muted:#a2a9b4; --text-faint:#7d848f;
  --border:#272c34; --border-strong:#3a414b;
  --accent:#ff5a6e; --accent-contrast:#14161a;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 4px 12px rgba(0,0,0,.45);
  --shadow-lg:0 12px 32px rgba(0,0,0,.55);
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 1rem)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font-sans);font-size:16px;line-height:1.62;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:3px}
h1,h2,h3,h4{line-height:1.18;margin:0 0 .38em;font-weight:650;letter-spacing:-.02em}
h1{font-size:clamp(1.55rem,3vw,2.1rem)}
h2{font-size:clamp(1.2rem,2.2vw,1.5rem)}
h3{font-size:clamp(1rem,1.6vw,1.15rem)}
p{margin:0 0 .85em}
ul,ol{padding-left:1.3em}
hr{border:0;border-top:1px solid var(--border);margin:2.5rem 0}
table{border-collapse:collapse;width:100%}
code{font-family:var(--font-mono);font-size:.9em;background:var(--bg-sunk);padding:.15em .4em;border-radius:4px}

.wrap{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto}
.wrap-narrow{width:min(100% - 2.5rem,var(--wrap-narrow));margin-inline:auto}
.section{padding-block:clamp(2rem,4.5vw,3.4rem)}
.section--alt{background:var(--bg-alt)}
.skip-link{position:absolute;left:-9999px;top:0;z-index:999;padding:.75rem 1.25rem;background:var(--accent);color:#fff;border-radius:0 0 var(--radius) 0}
.skip-link:focus{left:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

.eyebrow{
  font-family:var(--font-mono);font-size:.68rem;font-weight:400;letter-spacing:.13em;text-transform:uppercase;
  color:var(--accent);margin:0 0 .28rem;
}
.section-title{position:relative;padding-bottom:.42rem;margin-bottom:1rem}
.section-title::after{content:"";position:absolute;left:0;bottom:0;width:44px;height:2px;background:var(--accent);border-radius:2px}
.lead{font-size:clamp(.98rem,1.3vw,1.08rem);color:var(--text-muted);line-height:1.65}

/* ============================================================
   3. Header / navigation
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:100;height:var(--header-h);
  display:flex;align-items:center;
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
@supports not (backdrop-filter:blur(1px)){.site-header{background:var(--bg)}}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%}
.brand{display:flex;align-items:center;gap:.65rem;font-weight:700;font-size:1.02rem;letter-spacing:-.01em;color:var(--text);text-decoration:none;white-space:nowrap}
.brand:hover{color:var(--accent)}
.brand__mark{width:30px;height:30px;border-radius:7px;background:var(--uh-red);color:#fff;display:grid;place-items:center;font-size:.82rem;font-weight:800;letter-spacing:-.03em;flex:none}

.nav{display:flex;align-items:center;gap:.15rem}
.nav a{
  display:block;padding:.45rem .7rem;border-radius:7px;font-size:.925rem;font-weight:500;
  color:var(--text-muted);text-decoration:none;transition:color .15s var(--ease),background .15s var(--ease);
}
.nav a:hover{color:var(--text);background:var(--bg-sunk)}
.nav .current-menu-item>a,.nav .current_page_item>a{color:var(--accent);font-weight:600}
.nav ul{list-style:none;display:flex;gap:.15rem;margin:0;padding:0}

.theme-toggle,.nav-toggle{
  display:grid;place-items:center;width:38px;height:38px;flex:none;
  background:none;border:1px solid var(--border);border-radius:8px;color:var(--text-muted);cursor:pointer;
  transition:color .15s var(--ease),border-color .15s var(--ease);
}
.theme-toggle:hover,.nav-toggle:hover{color:var(--text);border-color:var(--border-strong)}
.nav-toggle{display:none}
.theme-toggle svg{width:17px;height:17px}
.theme-toggle .icon-sun{display:none}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:block}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .theme-toggle .icon-sun{display:block}
  :root:not([data-theme="light"]) .theme-toggle .icon-moon{display:none}
}

@media (max-width:860px){
  .nav-toggle{display:grid}
  .nav{
    position:fixed;inset:var(--header-h) 0 auto 0;flex-direction:column;align-items:stretch;gap:0;
    background:var(--bg);border-bottom:1px solid var(--border);padding:.5rem 1.25rem 1.25rem;
    box-shadow:var(--shadow-lg);
    transform:translateY(-8px);opacity:0;visibility:hidden;transition:all .2s var(--ease);
  }
  .nav[data-open="true"]{transform:none;opacity:1;visibility:visible}
  .nav ul{flex-direction:column;gap:0}
  .nav a{padding:.8rem .5rem;font-size:1rem;border-bottom:1px solid var(--border)}
}

/* ============================================================
   4. Hero  (replaces the Smart Slider header; fixes mobile clipping)
   ============================================================ */
.hero{position:relative;isolation:isolate;overflow:hidden;background:var(--bg-sunk)}
.hero__media{position:absolute;inset:0;z-index:-2}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,rgba(8,10,13,.82) 0%,rgba(8,10,13,.55) 38%,rgba(8,10,13,.12) 72%,rgba(8,10,13,0) 100%);
}
.hero__inner{
  display:grid;grid-template-columns:auto 1fr;align-items:center;gap:clamp(1.5rem,4vw,3rem);
  padding-block:clamp(3rem,8vw,5.5rem);color:#fff;
}
.hero__portrait{
  width:clamp(120px,17vw,190px);aspect-ratio:1;flex:none;
  border-radius:50%;object-fit:cover;
  border:4px solid rgba(255,255,255,.9);box-shadow:0 8px 28px rgba(0,0,0,.4);
}
.hero__name{font-family:var(--font-sans);font-weight:600;color:#fff;margin:0 0 .4rem;letter-spacing:-.028em;font-size:clamp(1.7rem,3.4vw,2.4rem);text-wrap:balance}
.hero__role{
  font-family:var(--font-mono);font-size:clamp(.76rem,1.2vw,.88rem);font-weight:400;letter-spacing:.01em;
  color:rgba(255,255,255,.93);margin:0 0 1rem;text-wrap:balance;
}
.hero__affil{font-size:.86rem;color:rgba(255,255,255,.7);margin:0 0 1.4rem}
.hero__actions{display:flex;flex-wrap:wrap;gap:.6rem}

/* Mobile: stack instead of clipping — this is the bug on the current site */
@media (max-width:700px){
  .hero__inner{grid-template-columns:1fr;justify-items:center;text-align:center;padding-block:2.5rem}
  .hero__actions{justify-content:center}
  .hero__media img{object-position:62% 16%}
}

/* ============================================================
   5. Buttons & chips
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.62rem 1.15rem;border-radius:8px;border:1px solid transparent;
  font-size:.9rem;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;
  transition:transform .12s var(--ease),background .15s var(--ease),border-color .15s var(--ease);
}
.btn:hover{transform:translateY(-1px);text-decoration:none}
.btn:active{transform:none}
.btn--primary{background:var(--uh-red);color:#fff}
.btn--primary:hover{background:var(--uh-red-dark);color:#fff}
.btn--ghost{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.35);backdrop-filter:blur(4px)}
.btn--ghost:hover{background:rgba(255,255,255,.20);color:#fff}
.btn--outline{background:transparent;color:var(--text);border-color:var(--border-strong)}
.btn--outline:hover{border-color:var(--accent);color:var(--accent)}
.btn svg{width:15px;height:15px;flex:none}

.chip{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.25rem .6rem;border-radius:99px;background:var(--bg-sunk);
  font-family:var(--font-mono);font-size:.68rem;font-weight:400;letter-spacing:.02em;color:var(--text-muted);
}
.chip--accent{background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
.chip--pi{background:color-mix(in srgb,var(--uh-red) 14%,transparent);color:var(--uh-red)}
:root[data-theme="dark"] .chip--pi{color:var(--accent)}

/* ============================================================
   6. Stats strip
   ============================================================ */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.9rem}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:1.4rem 1.1rem;text-align:center}
.stat__num{display:block;font-family:var(--font-mono);font-size:clamp(1.4rem,2.8vw,1.9rem);font-weight:500;line-height:1;color:var(--accent);letter-spacing:-.02em}
.stat__label{display:block;font-family:var(--font-mono);font-size:.66rem;font-weight:400;letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint);margin-top:.55rem}

/* ============================================================
   7. Cards & grids
   ============================================================ */
.grid{display:grid;gap:1.4rem}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(255px,1fr))}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}

.card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:1.15rem 1.25rem;box-shadow:var(--shadow-sm);
  transition:transform .18s var(--ease),box-shadow .18s var(--ease),border-color .18s var(--ease);
}
.card--link:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--border-strong)}
.card__title{font-size:1.08rem;margin:0 0 .5rem;text-wrap:balance}
.card__title a{color:var(--text);text-decoration:none}
.card__title a:hover{color:var(--accent)}
.card__meta{font-family:var(--font-mono);font-size:.7rem;color:var(--text-faint);font-weight:400;margin:0 0 .7rem;letter-spacing:.03em}
.card__body{font-size:.925rem;color:var(--text-muted);margin:0}
.card__foot{margin-top:1rem;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}

/* People */
.person{display:flex;gap:1rem;align-items:flex-start}
.person__avatar{
  width:52px;height:52px;flex:none;border-radius:50%;object-fit:cover;
  background:var(--bg-sunk);display:grid;place-items:center;
  font-weight:700;font-size:1.05rem;color:var(--text-faint);
}
.person__name{font-weight:650;font-size:1rem;margin:0 0 .15rem;color:var(--text)}
.person__role{font-size:.86rem;color:var(--text-muted);margin:0}
.person__years{font-size:.78rem;color:var(--text-faint);font-variant-numeric:tabular-nums}
.people-past{columns:2 220px;column-gap:2rem;font-size:.9rem;color:var(--text-muted)}
.people-past li{break-inside:avoid;margin-bottom:.45rem}

/* Projects */
.project{border-left:3px solid var(--accent);padding:.1rem 0 .1rem 1rem;margin-bottom:1rem}
.project__title{font-size:1rem;font-weight:600;margin:0 0 .3rem;color:var(--text);text-wrap:balance}
.project__meta{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;font-family:var(--font-mono);font-size:.72rem;color:var(--text-faint)}

/* ============================================================
   8. Publications  (markup lives in page content; JS filters it)
   ============================================================ */
.pubs-toolbar{
  position:sticky;top:var(--header-h);z-index:20;
  display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;
  padding:.9rem 0;margin-bottom:1.5rem;
  background:color-mix(in srgb,var(--bg) 92%,transparent);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.pubs-search{
  flex:1 1 220px;min-width:0;
  padding:.55rem .85rem;border:1px solid var(--border-strong);border-radius:8px;
  background:var(--surface);color:var(--text);font:inherit;font-size:.9rem;
}
.pubs-search::placeholder{color:var(--text-faint)}
.pubs-search:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.pubs-filters{display:flex;gap:.35rem;flex-wrap:wrap}
.pubs-filter{
  padding:.45rem .85rem;border:1px solid var(--border-strong);border-radius:99px;
  background:var(--surface);color:var(--text-muted);
  font:inherit;font-size:.83rem;font-weight:600;cursor:pointer;
  transition:all .15s var(--ease);
}
.pubs-filter:hover{border-color:var(--accent);color:var(--accent)}
.pubs-filter[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}
.pubs-count{font-size:.83rem;color:var(--text-faint);font-variant-numeric:tabular-nums;white-space:nowrap}

.pub-year{
  font-family:var(--font-mono);font-size:1.05rem;font-weight:500;color:var(--text-faint);
  margin:2.2rem 0 .9rem;padding-bottom:.35rem;border-bottom:1px solid var(--border);
  font-variant-numeric:tabular-nums;
}
.pub-year:first-of-type{margin-top:.5rem}
.pub-list{list-style:none;margin:0;padding:0}
.pub{
  padding:.95rem 0 .95rem 2.6rem;border-bottom:1px solid var(--border);position:relative;
}
.pub:last-child{border-bottom:0}
.pub__n{
  position:absolute;left:0;top:1.05rem;
  font-family:var(--font-mono);font-size:.7rem;font-weight:400;color:var(--text-faint);
  font-variant-numeric:tabular-nums;
}
.pub__title{font-weight:600;font-size:.92rem;line-height:1.45;margin:0 0 .25rem;color:var(--text);text-wrap:pretty}
.pub__title a{color:inherit;text-decoration:none}
.pub__title a:hover{color:var(--accent);text-decoration:underline}
.pub__authors{font-size:.82rem;color:var(--text-muted);margin:0 0 .3rem;line-height:1.5}
.pub__authors .me{color:var(--text);font-weight:700}
.pub__venue{font-family:var(--font-mono);font-size:.74rem;color:var(--text-faint);font-style:normal;margin:0}
.pub__tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem;align-items:center}
.pub[hidden]{display:none}
.pubs-empty{padding:3rem 1rem;text-align:center;color:var(--text-faint);font-size:.95rem}

@media (max-width:560px){
  .pub{padding-left:0}
  .pub__n{position:static;display:block;margin-bottom:.2rem}
  .pubs-toolbar{position:static}
}

/* ============================================================
   9. News
   ============================================================ */
.news-item{padding:1.6rem 0;border-bottom:1px solid var(--border);display:grid;grid-template-columns:130px 1fr;gap:1.5rem;align-items:start}
.news-item:last-child{border-bottom:0}
.news-item__date{font-family:var(--font-mono);font-size:.72rem;font-weight:400;color:var(--text-faint);letter-spacing:.03em;padding-top:.3rem;font-variant-numeric:tabular-nums}
.news-item__title{font-size:1.15rem;margin:0 0 .4rem;text-wrap:balance}
.news-item__title a{color:var(--text);text-decoration:none}
.news-item__title a:hover{color:var(--accent)}
.news-item__excerpt{font-size:.93rem;color:var(--text-muted);margin:0}
@media (max-width:640px){
  .news-item{grid-template-columns:1fr;gap:.4rem}
  .news-item__date{padding-top:0}
}

/* ============================================================
   10. Prose (WP editor output on interior pages)
   ============================================================ */
.prose{font-size:.97rem}
.prose h2{margin-top:1.7rem}
.prose h3{margin-top:1.3rem}
.prose img{border-radius:var(--radius);box-shadow:var(--shadow-sm);margin-block:1.5rem}
.prose blockquote{margin:1.5rem 0;padding:.4rem 0 .4rem 1.2rem;border-left:3px solid var(--accent);color:var(--text-muted);font-style:italic}
.prose ul li,.prose ol li{margin-bottom:.28rem}
.prose table{font-size:.92rem;margin-block:1.5rem;display:block;overflow-x:auto;white-space:nowrap}
.prose th,.prose td{padding:.6rem .8rem;border-bottom:1px solid var(--border);text-align:left}
.prose th{font-weight:650;color:var(--text);background:var(--bg-alt)}
.prose a{color:var(--accent)}

/* Definition-style CV blocks */
.cv-row{display:grid;grid-template-columns:150px 1fr;gap:1.2rem;padding:.75rem 0;border-bottom:1px solid var(--border);align-items:baseline}
.cv-row:last-child{border-bottom:0}
.cv-row__when{font-family:var(--font-mono);font-size:.74rem;font-weight:400;color:var(--text-faint);font-variant-numeric:tabular-nums}
.cv-row__what{font-size:.95rem}
.cv-row__what strong{color:var(--text)}
@media (max-width:600px){
  .cv-row{grid-template-columns:1fr;gap:.2rem}
}

/* ============================================================
   11. Contact
   ============================================================ */
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem}
.contact-item__label{font-family:var(--font-mono);font-size:.67rem;font-weight:400;letter-spacing:.11em;text-transform:uppercase;color:var(--accent);margin:0 0 .45rem}
.contact-item__value{font-size:.95rem;color:var(--text-muted);margin:0;line-height:1.55}
.contact-item__value a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--border-strong)}
.contact-item__value a:hover{color:var(--accent);border-color:var(--accent)}

/* ============================================================
   12. Footer  (UH-required links preserved from the old theme)
   ============================================================ */
.site-footer{background:var(--bg-alt);border-top:1px solid var(--border);padding-block:2.5rem 2rem;margin-top:4rem;font-size:.87rem}
.site-footer__top{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:space-between;align-items:flex-start;padding-bottom:1.5rem;border-bottom:1px solid var(--border)}
.site-footer__brand{font-weight:700;color:var(--text);font-size:1rem;margin:0 0 .3rem}
.site-footer__tag{color:var(--text-faint);margin:0;font-size:.85rem;max-width:38ch}
.uh-links{display:flex;flex-wrap:wrap;gap:.35rem 1.1rem;list-style:none;margin:0;padding:0}
.uh-links a{color:var(--text-muted);text-decoration:none;font-size:.83rem}
.uh-links a:hover{color:var(--accent);text-decoration:underline}
.site-footer__bottom{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;align-items:center;padding-top:1.25rem;color:var(--text-faint);font-size:.8rem}
.social{display:flex;gap:.5rem}
.social a{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--border);border-radius:8px;color:var(--text-muted);transition:all .15s var(--ease)}
.social a:hover{color:var(--accent);border-color:var(--accent)}
.social svg{width:16px;height:16px}

/* ============================================================
   13. Print
   ============================================================ */
@media print{
  .site-header,.site-footer,.hero__media,.pubs-toolbar,.nav-toggle,.theme-toggle,.hero__actions{display:none!important}
  body{font-size:11pt;color:#000;background:#fff}
  .hero::after{display:none}
  .hero__inner{color:#000;padding-block:0}
  .hero__name,.hero__role,.hero__affil{color:#000}
  a{color:#000;text-decoration:none}
  .pub{page-break-inside:avoid;border-bottom:1px solid #ddd}
  .section{padding-block:1rem}
}

/* ============================================================
   14. Forms, notices, email slots
   ============================================================ */
.email-slot a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--border-strong)}
.email-slot a:hover{color:var(--accent);border-color:var(--accent)}

.form{margin-top:2rem;display:flex;flex-direction:column;gap:1.1rem;align-items:flex-start}
.form__row{display:flex;flex-direction:column;gap:.4rem;width:100%}
.form__label{font-family:var(--font-mono);font-size:.7rem;font-weight:400;letter-spacing:.09em;text-transform:uppercase;color:var(--text-muted)}
.form__input{
  width:100%;padding:.7rem .9rem;font:inherit;font-size:.95rem;
  color:var(--text);background:var(--surface);
  border:1px solid var(--border-strong);border-radius:8px;
  transition:border-color .15s var(--ease),box-shadow .15s var(--ease);
}
.form__input:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent);
}
textarea.form__input{resize:vertical;min-height:150px;line-height:1.6}

.notice{padding:1rem 1.2rem;border-radius:var(--radius);border:1px solid var(--border);margin-bottom:1.5rem;font-size:.93rem}
.notice p:last-child{margin-bottom:0}
.notice--ok{border-color:color-mix(in srgb,#1a7f4b 45%,var(--border));background:color-mix(in srgb,#1a7f4b 9%,transparent)}
.notice--bad{border-color:color-mix(in srgb,var(--uh-red) 45%,var(--border));background:color-mix(in srgb,var(--uh-red) 8%,transparent)}

/* ============================================================
   15. Blog hub — two tracks
   ============================================================ */
.tracks{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(2rem,6vw,4.5rem);align-items:start}
@media (max-width:860px){.tracks{grid-template-columns:1fr;gap:3rem}}

.track__title{
  font-family:var(--font-mono);font-size:.72rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);margin:0 0 .35rem;padding-bottom:.6rem;border-bottom:2px solid var(--accent);
}
.track__note{font-size:.87rem;color:var(--text-faint);margin:.7rem 0 1.6rem}
.track__empty{font-size:.9rem;color:var(--text-faint);padding:1.5rem 0}
.track__more{
  display:inline-block;margin-top:1.4rem;font-size:.86rem;font-weight:600;
  color:var(--accent);text-decoration:none;
}
.track__more:hover{text-decoration:underline}

/* News: dense dated stream, no images */
.newsline{list-style:none;margin:0;padding:0}
.newsline__item{padding:0 0 1.35rem;margin-bottom:1.35rem;border-bottom:1px solid var(--border)}
.newsline__item:last-child{border-bottom:0;margin-bottom:0}
.newsline__date{
  display:block;font-family:var(--font-mono);font-size:.68rem;font-weight:400;letter-spacing:.09em;text-transform:uppercase;
  color:var(--text-faint);margin-bottom:.3rem;font-variant-numeric:tabular-nums;
}
.newsline__title{font-size:.94rem;line-height:1.4;margin:0 0 .3rem;text-wrap:balance}
.newsline__title a{color:var(--text);text-decoration:none}
.newsline__title a:hover{color:var(--accent)}
.newsline__excerpt{font-size:.88rem;color:var(--text-muted);margin:0;line-height:1.55}

/* Writing: long-form cards */
.essays{display:flex;flex-direction:column;gap:1.1rem}
.essay{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:1.5rem 1.6rem;box-shadow:var(--shadow-sm);
  transition:transform .18s var(--ease),box-shadow .18s var(--ease),border-color .18s var(--ease);
}
.essay:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--border-strong)}
.essay__title{font-family:var(--font-sans);font-size:1.12rem;font-weight:600;line-height:1.25;margin:0 0 .5rem;letter-spacing:-.015em;text-wrap:balance}
.essay__title a{color:var(--text);text-decoration:none}
.essay__title a:hover{color:var(--accent)}
.essay__meta{
  display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;
  font-family:var(--font-mono);font-size:.68rem;font-weight:400;letter-spacing:.05em;text-transform:uppercase;
  color:var(--text-faint);margin:0 0 .7rem;
}
.essay__excerpt{font-size:.93rem;color:var(--text-muted);margin:0;line-height:1.62}
.essays--stacked .essay{border-left:3px solid var(--accent)}

/* ============================================================
   16. Long-form article
   ============================================================ */
.article__head{margin-bottom:2.5rem}
.article__title{
  font-family:var(--font-sans);font-weight:600;letter-spacing:-.028em;
  font-size:clamp(1.6rem,3.2vw,2.2rem);line-height:1.15;margin:0 0 .8rem;text-wrap:balance;
}
.article__standfirst{
  font-size:clamp(.98rem,1.4vw,1.1rem);line-height:1.55;color:var(--text-muted);
  margin:0;padding-left:1.1rem;border-left:3px solid var(--accent);text-wrap:pretty;
}
.prose--longform{
  font-family:var(--font-read);font-size:1.1rem;line-height:1.72;
}
.prose--longform h2{font-family:var(--font-sans);font-size:1.28rem;margin-top:2.8rem}
.prose--longform h3{font-family:var(--font-sans);font-size:1.08rem;margin-top:2rem}
.prose--longform blockquote{
  font-family:var(--font-sans);font-style:normal;font-size:1.12rem;line-height:1.45;
  font-weight:600;color:var(--text);border-left:0;
  margin:2.2rem 0;padding:0 0 0 1.4rem;border-left:4px solid var(--accent);text-wrap:balance;
}
/* No drop cap: the Index direction carries no typographic ornament. */
.figcaption{font-size:.82rem;color:var(--text-faint);margin-top:.6rem;line-height:1.5}
.article__nav{
  display:flex;justify-content:space-between;gap:1rem;
  margin-top:3.5rem;padding-top:1.5rem;border-top:1px solid var(--border);font-size:.9rem;
}
.article__nav a{color:var(--text-muted);text-decoration:none}
.article__nav a:hover{color:var(--accent)}


/* ============================================================
   17. Teaching table
   ============================================================ */
.teach{display:grid;gap:0}
.teach__row{
  display:grid;grid-template-columns:132px 1fr auto;gap:.5rem 1.1rem;align-items:baseline;
  padding:.7rem 0;border-bottom:1px solid var(--border);
}
.teach__row:last-child{border-bottom:0}
.teach__code{font-family:var(--font-mono);font-size:.74rem;color:var(--accent);letter-spacing:.02em}
.teach__title{font-size:.95rem;font-weight:600;color:var(--text)}
.teach__title small{display:block;font-weight:400;font-size:.78rem;color:var(--text-faint)}
.teach__terms{font-family:var(--font-mono);font-size:.72rem;color:var(--text-faint);white-space:nowrap;text-align:right}
@media (max-width:620px){
  .teach__row{grid-template-columns:1fr;gap:.15rem}
  .teach__terms{text-align:left}
}

/* Publication PDF actions */
.chip--pdf{background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent);text-decoration:none;font-weight:600}
.chip--pdf:hover{background:var(--accent);color:var(--accent-contrast)}
.chip--req{background:transparent;border:1px solid var(--border-strong);color:var(--text-faint);text-decoration:none}
.chip--req:hover{border-color:var(--accent);color:var(--accent)}

/* ============================================================
   18. Research theme pages
   ============================================================ */
.theme-card{display:block;text-decoration:none;color:inherit}
.theme-card .card__title{color:var(--text)}
.theme-card:hover .card__title{color:var(--accent)}
.theme-card__go{
  display:inline-block;margin-top:.9rem;font-family:var(--font-mono);
  font-size:.7rem;letter-spacing:.06em;color:var(--accent);
}
.theme-standfirst{
  font-size:clamp(.98rem,1.4vw,1.1rem);line-height:1.5;color:var(--text-muted);
  margin:0 0 1.3rem;padding-left:1.1rem;border-left:3px solid var(--accent);text-wrap:pretty;
}
.theme-back{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border);font-size:.88rem}
.theme-back a{color:var(--text-muted);text-decoration:none}
.theme-back a:hover{color:var(--accent)}

/* Diagrams */
.fig{margin:1.4rem 0 1.7rem}
.fig__svg{
  background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:1.2rem;overflow-x:auto;
}
.fig__svg svg{width:100%;height:auto;min-width:520px;--ink:var(--text);--acc:var(--accent)}
.fig__cap{font-size:.84rem;color:var(--text-faint);line-height:1.55;margin-top:.7rem;max-width:62ch}
.dlbl{font-family:var(--font-mono);font-size:12px;fill:var(--text-muted)}
.dlbl--acc{fill:var(--accent)}
.dsm{font-family:var(--font-mono);font-size:10px;fill:var(--text-faint)}
.dsm--acc{fill:var(--accent);opacity:.9}

/* Findings */
.findings{display:grid;gap:.6rem;margin:1rem 0 1.6rem}
.finding{
  display:grid;grid-template-columns:180px 1fr;gap:1.1rem;align-items:baseline;
  padding:.75rem 0;border-top:1px solid var(--border);
}
.finding:last-child{border-bottom:1px solid var(--border)}
.finding__k{font-family:var(--font-mono);font-size:.76rem;color:var(--accent);margin:0;letter-spacing:.02em}
.finding__b{font-size:.95rem;color:var(--text-muted);margin:0;line-height:1.6}
@media (max-width:640px){
  .finding{grid-template-columns:1fr;gap:.3rem}
}

/* CV downloads + linked people cards */
.cv-downloads{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:2.2rem;padding-bottom:1.8rem;border-bottom:1px solid var(--border)}
.person-card{display:block;text-decoration:none;color:inherit}
.person-card:hover .person__name{color:var(--accent)}
.person-card__go{display:inline-block;margin-top:.5rem;font-family:var(--font-mono);font-size:.68rem;letter-spacing:.06em;color:var(--accent)}

/* Cross-theme reference chips and section counts */
.chip--xref{background:transparent;border:1px dashed var(--border-strong);color:var(--text-faint);text-decoration:none}
.chip--xref:hover{border-style:solid;border-color:var(--accent);color:var(--accent)}
.count{font-family:var(--font-mono);font-size:.62em;font-weight:400;color:var(--text-faint);vertical-align:.35em;margin-left:.35em}

/* ============================================================
   19. Study-site globe
   ============================================================ */
:root{
  --globe-ocean:#e6ecf3;--globe-land:#c2ccd8;--globe-grat:#ffffff;--globe-rim:#c9ccd2;
  --globe-ink:#16181d;--globe-mute:#5b6068;
  --globe-cryo:#2b7fd4;--globe-infra:#c8102e;--globe-haz:#d97a10;--globe-meth:#5a3fd6;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --globe-ocean:#0b1017;--globe-land:#1f2833;--globe-grat:#2a3440;--globe-rim:#3a414b;
    --globe-ink:#e8eaed;--globe-mute:#a2a9b4;
    --globe-cryo:#5aa9f0;--globe-infra:#ff5a6e;--globe-haz:#f2ab4a;--globe-meth:#9b84ff;
  }
}
:root[data-theme="dark"]{
  --globe-ocean:#0b1017;--globe-land:#1f2833;--globe-grat:#2a3440;--globe-rim:#3a414b;
  --globe-ink:#e8eaed;--globe-mute:#a2a9b4;
  --globe-cryo:#5aa9f0;--globe-infra:#ff5a6e;--globe-haz:#f2ab4a;--globe-meth:#9b84ff;
}

.globe{--globe-h:620px}
.globe__head{margin-bottom:.7rem}
.globe__intro{color:var(--text-muted);font-size:.9rem;margin:.25rem 0 0;max-width:66ch;line-height:1.5}
.globe__bar{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.7rem}
.globe__dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.4rem;vertical-align:-1px}
.globe__stage{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:1.4rem;align-items:start}
@media (max-width:900px){.globe__stage{grid-template-columns:1fr}}
.globe__canvas{position:relative;background:var(--globe-ocean);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.globe__canvas canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}
.globe__canvas canvas:active{cursor:grabbing}
.globe__reset{
  position:absolute;top:.7rem;right:.7rem;padding:.3rem .65rem;
  border:1px solid var(--border-strong);border-radius:7px;background:var(--bg);
  color:var(--text-muted);font:inherit;font-family:var(--font-mono);font-size:.68rem;cursor:pointer;
}
.globe__reset:hover{color:var(--accent);border-color:var(--accent)}
.globe__side{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:1.1rem;max-height:var(--globe-h);overflow-y:auto;
}
.globe__h{font-size:1.05rem;margin:0 0 .2rem}
.globe__meta{font-family:var(--font-mono);font-size:.68rem;color:var(--text-faint);margin:0}
.globe__note{font-size:.85rem;color:var(--text-muted);margin:.35rem 0 .7rem;line-height:1.5}
.globe__coord{font-family:var(--font-mono);font-size:.66rem;color:var(--text-faint);background:var(--bg-sunk);padding:.3rem .55rem;border-radius:6px;display:inline-block;margin:0 0 1rem}
.globe__row{padding:.65rem 0;border-top:1px solid var(--border)}
.globe__row:last-of-type{border-bottom:1px solid var(--border)}
.globe__rowt{font-size:.87rem;font-weight:600;line-height:1.4;margin:0 0 .2rem}
.globe__rowt a{color:var(--text);text-decoration:none}
.globe__rowt a:hover{color:var(--accent);text-decoration:underline}
.globe__tags{display:flex;flex-wrap:wrap;gap:.3rem;margin:.45rem 0 0}
.globe__back{margin-top:1rem;font-size:.85rem}
.globe__back a{color:var(--text-muted);text-decoration:none}
.globe__back a:hover{color:var(--accent)}
.globe__foot{font-size:.78rem;color:var(--text-faint);margin-top:1rem;max-width:72ch;line-height:1.55}

/* Layout: full-bleed band */
.globe--band{
  background:var(--bg-alt);border-block:1px solid var(--border);
  padding:clamp(2.2rem,5vw,3.6rem) 0;margin-block:clamp(2.5rem,6vw,4rem);
}
.globe--band > *{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto}

/* Layout: contained card */
.globe--card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:clamp(1.4rem,3vw,2rem);box-shadow:var(--shadow-sm);margin-block:2.5rem;
}
.globe--card .globe__canvas{border:0;border-radius:var(--radius)}

/* Layout: hero — globe carries the top of the page */
.globe--hero{padding:0;margin:0;background:var(--globe-ocean);border-bottom:1px solid var(--border)}
.globe--hero > *{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto}
.globe--hero .globe__stage{padding-block:clamp(1.5rem,4vw,2.5rem)}
.globe--hero .globe__canvas{border:0;background:transparent}
.globe--hero .globe__bar{padding-top:1.4rem}

/* Preview-only layout switcher */
.globe-layouts{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;width:min(100% - 2.5rem,var(--wrap));margin:2.5rem auto -1rem}
.globe-layouts__lbl{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint);margin-right:.4rem}

/* ============================================================
   20. Collaboration network
   ============================================================ */
:root{--net-edge:#9aa3ad}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--net-edge:#4a5561}}
:root[data-theme="dark"]{--net-edge:#4a5561}
.netgraph{margin-top:clamp(2rem,4.5vw,3rem);padding-top:clamp(1.3rem,3vw,1.9rem);border-top:1px solid var(--border)}
.netgraph__canvas{background:var(--bg-alt)}
.netgraph__canvas canvas{display:block;width:100%;height:auto;touch-action:none}
.netgraph .globe__tags .chip{cursor:pointer}
.netgraph .globe__tags .chip:hover{background:var(--accent);color:var(--accent-contrast)}

/* Network styles */
:root{--net-void:#f2f4f7}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--net-void:#06080b}}
:root[data-theme="dark"]{--net-void:#06080b}
.netgraph__styles{margin-top:-.3rem;align-items:center}
.netgraph[data-net-style="constellation"] .netgraph__canvas{background:var(--net-void)}
.netgraph[data-net-style="chord"] .netgraph__canvas,
.netgraph[data-net-style="matrix"] .netgraph__canvas{background:var(--bg)}

/* ============================================================
   21. Research page: split layout, compact
   ============================================================ */
.research-split{
  display:grid;grid-template-columns:minmax(178px,0.5fr) minmax(0,1.5fr);
  gap:clamp(1.1rem,2.2vw,1.8rem);align-items:start;margin:1.4rem 0 2rem;
}
@media (max-width:980px){.research-split{grid-template-columns:1fr;gap:2rem}}
.research-split h2{margin:0 0 .8rem;font-size:1.12rem}
.research-split .globe__head{margin-bottom:.7rem}
.research-split .globe__head .eyebrow{display:none}
.research-split .section-title{font-size:1.12rem;padding-bottom:.4rem;margin-bottom:.8rem}
.research-split .section-title::after{width:40px;height:2px}
.research-split .globe__intro{font-size:.86rem;margin-top:.3rem;line-height:1.5}

/* Theme cards stack in the left column, tighter than the grid version */
.theme-stack{display:flex;flex-direction:column;gap:.6rem}
.theme-stack .card{padding:.95rem 1.1rem}
.theme-stack .card__title{font-size:.99rem;margin-bottom:.3rem}
.theme-stack .card__body{font-size:.86rem;line-height:1.5}
.theme-stack .theme-card__go{margin-top:.6rem;font-size:.66rem}

/* Globe in split layout: canvas on top, sites rolling underneath */
.globe--split{margin:0;padding:0;background:none;border:0}
.globe--split > *{width:auto;margin-inline:0}
.globe--split .globe__bar{margin-bottom:.6rem;gap:.3rem}
.globe--split .globe__bar .pubs-filter{padding:.3rem .6rem;font-size:.74rem}
.globe--split .globe__stage{display:block}
.globe--split .globe__side{
  background:none;border:0;padding:.7rem 0 0;max-height:none;overflow:visible;
}
.globe--split .globe__foot{font-size:.72rem;margin-top:.6rem}

.siteroll{
  display:flex;gap:.4rem;overflow-x:auto;padding-bottom:.5rem;
  scrollbar-width:thin;scroll-snap-type:x proximity;
}
.siteroll__item{
  display:inline-flex;align-items:center;gap:.4rem;flex:0 0 auto;scroll-snap-align:start;
  padding:.35rem .65rem;border:1px solid var(--border);border-radius:99px;
  background:var(--surface);color:var(--text-muted);font:inherit;font-size:.76rem;
  cursor:pointer;white-space:nowrap;transition:all .15s var(--ease);
}
.siteroll__item:hover{border-color:var(--accent);color:var(--text)}
.siteroll__item.is-on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--text)}
.siteroll__dot{width:7px;height:7px;border-radius:50%;flex:none}
.siteroll__n{font-family:var(--font-mono);font-size:.66rem;color:var(--text-faint)}
.siteroll__detail{
  margin-top:.8rem;padding-top:.8rem;border-top:1px solid var(--border);
  max-height:280px;overflow-y:auto;
}

/* Stat tiles are links: they light up in the accent on hover and focus */
a.stat{
  display:block;position:relative;text-decoration:none;color:inherit;
  transition:transform .16s var(--ease),border-color .16s var(--ease),box-shadow .16s var(--ease),background .16s var(--ease);
}
.stat__go{
  position:absolute;top:.7rem;right:.85rem;font-size:.85rem;color:var(--accent);
  opacity:0;transform:translateX(-4px);transition:all .16s var(--ease);
}
a.stat:hover,a.stat:focus-visible{
  transform:translateY(-3px);border-color:var(--accent);box-shadow:var(--shadow-md);
  background:color-mix(in srgb,var(--accent) 6%,var(--surface));
}
a.stat:hover .stat__go,a.stat:focus-visible .stat__go{opacity:1;transform:none}
a.stat:hover .stat__label,a.stat:focus-visible .stat__label{color:var(--accent)}

/* ============================================================
   22. Charts (metrics page)
   ============================================================ */
.chart{width:100%;height:auto;display:block;min-width:520px}
.chart__grid{stroke:var(--border);stroke-width:1}
.chart__ax{font-family:var(--font-mono);font-size:10px;fill:var(--text-faint)}
.chart__line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round}
.chart__diag{fill:none;stroke:var(--text-faint);stroke-width:1;stroke-dasharray:4 4;opacity:.7}

/* ============================================================
   23. Research: theme tabs + inline panel, globe beside projects
   ============================================================ */
.research-split--even{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
@media (max-width:980px){.research-split--even{grid-template-columns:1fr}}

/* Cards become tabs */
.theme-stack .theme-card{
  display:block;width:100%;text-align:left;font:inherit;cursor:pointer;
  border:1px solid var(--border);background:var(--surface);
}
.theme-stack .theme-card[aria-selected="true"]{
  border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 7%,var(--surface));
  box-shadow:var(--shadow-md);
}
.theme-stack .theme-card[aria-selected="true"] .card__title{color:var(--accent)}
.theme-stack .theme-card[aria-selected="true"] .theme-card__go{opacity:1}
.theme-stack .theme-card .theme-card__go{opacity:.55;transition:opacity .15s var(--ease)}
.theme-stack .theme-card:hover .theme-card__go{opacity:1}

/* The panel that slides in beside them */
.research-split__detail{
  border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);
  padding:1.2rem 1.35rem;max-height:min(76vh,780px);overflow-y:auto;
}
.theme-panel{animation:themein .22s var(--ease) both}
@keyframes themein{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.theme-panel{animation:none}}
.theme-panel__title{font-size:1.1rem;margin:0 0 .5rem;color:var(--text)}
.theme-panel .theme-standfirst{font-size:.95rem;margin-bottom:1rem}
.theme-panel h2{font-size:.95rem;margin-top:1.3rem}
.theme-panel .fig{margin:1rem 0 1.1rem}
.theme-panel .fig__svg{padding:.7rem}
.theme-panel .fig__svg svg{min-width:420px}
.theme-panel .fig__cap{font-size:.78rem}
.theme-panel .finding{grid-template-columns:130px 1fr;gap:.8rem;padding:.6rem 0}
.theme-panel .finding__b{font-size:.88rem}
.theme-panel .pub__title{font-size:.88rem}
.theme-panel .pub__authors{font-size:.78rem}
.theme-panel .pub__venue{font-size:.71rem}
.theme-panel__more{margin-top:1.1rem;padding-top:.8rem;border-top:1px solid var(--border);font-size:.84rem}
.theme-panel__more a{color:var(--accent);text-decoration:none}
.theme-panel__more a:hover{text-decoration:underline}

/* Compact project list, sized to sit beside the globe */
.projects-tight{display:flex;flex-direction:column;gap:.55rem}
.ptight{padding:.55rem 0;border-bottom:1px solid var(--border)}
.ptight:last-child{border-bottom:0}
.ptight__t{font-size:.87rem;font-weight:600;line-height:1.4;margin:0 0 .3rem;color:var(--text);text-wrap:pretty}
.ptight__m{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center;margin:0;
  font-family:var(--font-mono);font-size:.68rem;color:var(--text-faint)}

/* Full-width globe block, with the site roller beneath it */
.research-globe{margin:2rem 0 2.4rem}
.research-globe .globe--split .globe__intro{max-width:74ch}
.research-globe .siteroll{padding-bottom:.4rem}
.research-globe .siteroll__detail{max-height:none}

/* Narrow theme rail: title and affordance only, description lives in the panel */
.theme-stack .theme-card .card__body{display:none}
.theme-stack .theme-card{padding:.75rem .85rem}
.theme-stack .theme-card .card__title{font-size:.92rem;line-height:1.3;margin-bottom:.35rem}
.theme-stack .theme-card .theme-card__go{margin-top:0;font-size:.62rem}
.research-split__detail{padding:1.3rem 1.5rem}
.theme-panel .fig__svg svg{min-width:0}
@media (max-width:980px){
  .theme-stack .theme-card .card__body{display:block}
  .theme-stack .theme-card{padding:.95rem 1.1rem}
}

/* Generic two-column pairing for equal-weight blocks */
.cols-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.2rem,3vw,2.2rem);align-items:start;margin-top:1.6rem}
.cols-2 > div > h2{margin-top:0}
.cols-2 .teach__row{grid-template-columns:46px 1fr auto;gap:.4rem .7rem}
.cols-2 .teach__title{font-size:.87rem}
@media (max-width:820px){.cols-2{grid-template-columns:1fr;gap:1.6rem}}

/* ============================================================
   24. Network: full-width graph, list underneath
   ============================================================ */
.netgraph--full .globe__stage{display:block}
.netgraph--full .globe__canvas{width:100%}
.netgraph--full .globe__side{
  background:none;border:0;padding:1rem 0 0;max-height:none;overflow:visible;
  border-top:1px solid var(--border);margin-top:1rem;
}
.netgraph--full .globe__h{font-size:.95rem}
/* The index of nodes reads as a multi-column list once it is under the graph */
.netgraph--full .globe__side > .globe__row{
  break-inside:avoid;border-top:0;padding:.3rem 0;
}
.netgraph--full .globe__side{columns:1}
.netgraph--full .globe__note{max-width:70ch}
@media (min-width:700px){
  .netgraph--full .globe__side > .globe__row{
    display:inline-block;width:calc(33.333% - 1rem);vertical-align:top;margin-right:.9rem;
  }
}
@media (min-width:700px) and (max-width:1000px){
  .netgraph--full .globe__side > .globe__row{width:calc(50% - .9rem)}
}
/* When a node is selected the detail should read as one column, not three */
.netgraph--full .globe__side:has(.globe__back) > .globe__row{
  display:block;width:auto;margin-right:0;border-top:1px solid var(--border);padding:.65rem 0;
}

/* Stat tiles: equal height regardless of how many lines the label wraps to.
   "Current PhD students" wraps where "Citations" does not, which was making
   tiles in the same row different heights. */
.stats{align-items:stretch}
.stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem}
.stat__label{min-height:2.3em;display:flex;align-items:center;justify-content:center;text-align:center}
a.stat{justify-content:center}
