/* ===========================================================
   David Joseph — personal academic site
   Look modeled on AcademicPages / Minimal Mistakes: a plain masthead,
   a sticky author sidebar, and one content column.
   No external requests: system fonts only, inline SVG icons, no CDN.
   =========================================================== */

:root {
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f2f3f3;
  --code-bg:       #fafafa;
  --text:          #494e52;
  --muted:         #7a8288;
  --faint:         #9ba1a6;
  --line:          #f2f3f3;
  --border:        #cccfd1;
  --border-strong: #bdc1c4;
  --accent:        #b83a4b;   /* change this one value to recolor the site */
  --accent-dk:     #932e3c;
  --accent-soft:   #ca6b78;
  --accent-bg:     #faf1f2;
  --on-accent:     #ffffff;
  --info:          #33809c;
  --shadow:        0 0 10px rgba(0, 0, 0, .25);
  --lift:          0 10px 22px rgba(0, 0, 0, .1);

  --sans: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --page: 925px;
  --page-wide: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #15171a;
    --surface:       #1b1e22;
    --surface-2:     #1d2024;
    --code-bg:       #1b1e22;
    --text:          #c8cdd2;
    --muted:         #9aa1a8;
    --faint:         #7f878e;
    --line:          #262a2f;
    --border:        #3a3f45;
    --border-strong: #454b52;
    --accent:        #ee8896;
    --accent-dk:     #f6aeb8;
    --accent-soft:   #c9596a;
    --accent-bg:     #2b1c1f;
    --on-accent:     #15171a;
    --info:          #5aa9c4;
    --shadow:        0 0 10px rgba(0, 0, 0, .6);
    --lift:          0 10px 22px rgba(0, 0, 0, .45);
  }
}

/* Explicit theme override wins in both directions. */
:root[data-theme="dark"] {
  --bg: #15171a; --surface: #1b1e22; --surface-2: #1d2024; --code-bg: #1b1e22;
  --text: #c8cdd2; --muted: #9aa1a8; --faint: #7f878e;
  --line: #262a2f; --border: #3a3f45; --border-strong: #454b52;
  --accent: #ee8896; --accent-dk: #f6aeb8; --accent-soft: #c9596a; --accent-bg: #2b1c1f;
  --on-accent: #15171a; --info: #5aa9c4;
  --shadow: 0 0 10px rgba(0,0,0,.6); --lift: 0 10px 22px rgba(0,0,0,.45);
}
:root[data-theme="light"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f3f3; --code-bg: #fafafa;
  --text: #494e52; --muted: #7a8288; --faint: #9ba1a6;
  --line: #f2f3f3; --border: #cccfd1; --border-strong: #bdc1c4;
  --accent: #b83a4b; --accent-dk: #932e3c; --accent-soft: #ca6b78; --accent-bg: #faf1f2;
  --on-accent: #ffffff; --info: #33809c;
  --shadow: 0 0 10px rgba(0,0,0,.25); --lift: 0 10px 22px rgba(0,0,0,.1);
}

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

html {
  font-size: 16px; background: var(--bg);
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
}
@media (min-width: 48em) { html { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- links ---------- */
a { color: var(--accent); text-decoration: none; transition: color .2s ease-in-out, background-color .2s ease-in-out; }
main a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- masthead ---------- */
.masthead { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.masthead__inner { max-width: var(--page); margin: 0 auto; padding: 1em; }
@media (min-width: 80em) { .masthead__inner { max-width: var(--page-wide); } }

.site-nav { position: relative; display: flex; align-items: center; }
.site-nav a {
  position: relative; display: block; margin: 0 1rem; padding: .5rem 0;
  color: var(--muted); white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: var(--accent-soft); transform: scaleX(0); transition: transform .2s ease-in-out;
}
.site-nav a:hover::before, .site-nav a[aria-current="page"]::before { transform: scaleX(1); }
.site-nav .site-nav__home { margin-left: 0; margin-right: calc(1rem + 2em); font-weight: 700; }
.site-nav__links { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav__links li { margin: 0; }
.site-nav__tools { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.theme-toggle {
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 4px;
  background: none; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 40px; padding: 0; border: 0;
  background: var(--muted); cursor: pointer;
}
.navicon, .navicon::before, .navicon::after {
  display: block; width: 28px; height: 4px; background: var(--bg); transition: .3s;
}
.navicon { position: relative; margin: auto; }
.navicon::before, .navicon::after { content: ""; position: absolute; left: 0; }
.navicon::before { top: -8px; }
.navicon::after { bottom: -8px; }
.nav-toggle[aria-expanded="true"] .navicon { background: transparent; }
.nav-toggle[aria-expanded="true"] .navicon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .navicon::after { bottom: 0; transform: rotate(-45deg); }

/* ---------- page frame: sidebar + content ---------- */
.wrap {
  flex: 1 0 auto;
  width: 100%; max-width: var(--page); margin: 2em auto 0; padding: 0 1em;
}
main { margin-bottom: 3em; min-width: 0; }

@media (min-width: 57.8125em) {
  .wrap { display: flex; align-items: flex-start; }
  .sidebar { flex: 0 0 15.2542%; margin-right: 1.6949%; position: sticky; top: 2em; }
  main { flex: 1 1 0; padding-left: 4.2373%; padding-right: 4.2373%; }
}
@media (min-width: 80em) {
  .wrap { max-width: var(--page-wide); }
  main { padding-right: 16.9492%; }
}

/* ---------- author sidebar ---------- */
.sidebar { margin-bottom: 1em; }
.author__avatar { display: block; }
.author__avatar img {
  display: block; width: 100%; max-width: 175px; height: auto; aspect-ratio: 1; object-fit: cover;
  padding: 5px; border: 1px solid var(--line); border-radius: 50%;
}
.author__name { margin: 10px 0; font-size: 1em; font-weight: 700; line-height: 1.2; }
.author__bio { margin: 10px 0 20px; font-size: .75em; line-height: 1.5; }
.author__urls { margin: 0; padding: 0; list-style: none; font-size: .75em; line-height: 1.5; }
.author__urls li { margin: 10px 0; white-space: nowrap; }
.author__urls a { display: block; margin-bottom: 5px; padding: 2px 5px 2px 0; color: inherit; }
.author__urls a:hover { text-decoration: underline; }
.author__urls svg, .author__urls-toggle svg {
  width: 1.25em; height: 1em; margin-right: .1em; vertical-align: -.125em; fill: currentColor;
}
.author__urls .ico-linkedin { fill: #007bb6; }
.author__urls .ico-orcid { fill: #a6ce39; }
.author__urls .ico-bluesky { fill: #0a7aff; }
.author__urls-toggle { display: none; }

/* ---------- small screens: collapsed nav and author row ---------- */
@media (max-width: 57.8124em) {
  .site-nav .site-nav__home { margin-right: 1rem; }

  .author { position: relative; display: flex; align-items: center; }
  .author__avatar { flex: 0 0 36px; }
  .author__avatar img { padding: 0; border: 0; }
  .author__content { padding: 0 25px 0 15px; line-height: 1; }
  .author__name, .author__bio { margin: 0; }
  .author__bio { margin-top: 3px; line-height: 1.3; }
  .author__urls-wrapper { position: relative; }

  /* With scripts: a hamburger menu and a "Links" button, as dropdowns. */
  .js .nav-toggle { display: block; }
  .js .site-nav__links, .js .author__urls {
    display: none; position: absolute; top: 100%; right: 0; z-index: 10; margin-top: 15px;
    border: 1px solid var(--border); border-radius: 4px;
    background: var(--surface); box-shadow: var(--shadow);
  }
  .js .site-nav__links.is-open, .js .author__urls.is-open { display: block; }
  .js .site-nav__links { min-width: 12rem; padding: 5px; }
  .js .site-nav__links li + li { border-top: 1px solid var(--line); }
  .js .site-nav__links a { margin: 0; padding: 10px 20px; }
  .js .site-nav__links a::before { display: none; }
  .js .site-nav__links a:hover { background: var(--surface-2); }
  .js .author__urls { padding: 0 10px; font-size: .8125rem; }
  .js .author__urls-toggle {
    display: inline-flex; align-items: center; padding: .5em 1em;
    color: var(--muted); font: inherit; font-size: .75em; font-weight: 700;
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: 4px; cursor: pointer;
  }
  .js .author__urls-toggle:hover { color: var(--bg); background: var(--muted); border-color: var(--muted); }

  /* Without scripts: everything simply stays visible and wraps. */
  html:not(.js) .site-nav, html:not(.js) .site-nav__links, html:not(.js) .author { flex-wrap: wrap; }
  html:not(.js) .author__urls-wrapper { flex-basis: 100%; }
  html:not(.js) .author__urls { display: flex; flex-wrap: wrap; gap: 0 1rem; }
}

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 2em 0 .5em; font-weight: 700; line-height: 1.2; }
h1 { margin-top: 0; font-size: 1.563em; line-height: 1.15; }
h2 { font-size: 1.25em; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
h3 { font-size: 1em; }

p { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }
section > p:last-child { margin-bottom: 1.3em; }
ul li, ol li { margin-bottom: .5em; }
b, strong { font-weight: 700; }
/* Keep isotope labels and subscripts from pushing lines apart. */
sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
sup { top: -.5em; }
sub { bottom: -.25em; }

/* As in the reference theme, running text is justified at every screen width;
   only the short bio line in the sidebar stays left-aligned. */
p, li, figcaption, .note { text-align: justify; }
.author__bio { text-align: left; }

.lede { color: var(--muted); }

.eyebrow, .crumb {
  margin: 0 0 .75em; font-size: .75em; color: var(--faint);
}
.eyebrow { text-transform: uppercase; letter-spacing: .04em; }
.crumb a { color: inherit; }

.muted { color: var(--muted); }
.small { font-size: .75em; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* On the homepage, section headings carry the weight a page title would. */
.home h2 { font-size: 1.563em; padding-bottom: 0; border-bottom: 0; }

/* ---------- blog ---------- */
.posts { list-style: none; margin: 1.5em 0 0; padding: 0; }
.posts li { margin: 0; padding: 1em 0; border-bottom: 1px solid var(--line); }
.posts li:first-child { padding-top: 0; }
.posts li:last-child { border-bottom: 0; }
.posts time, .post__meta { font-size: .75em; color: var(--faint); }
.posts h2 { margin: .15em 0 .25em; padding: 0; border: 0; font-size: 1.15em; }
.posts p { margin: 0; font-size: .875em; color: var(--muted); }
.post__meta { margin: -.2em 0 2em; }
.post img { display: block; margin: 0 auto; border-radius: 4px; }
blockquote {
  margin: 2em 1em 2em 0; padding: 0 1em; font-style: italic;
  border-left: .25em solid var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; margin-bottom: .25em; padding: .5em 1em;
  color: var(--on-accent) !important; font-size: .75em; font-weight: 700; text-align: center;
  text-decoration: none !important;
  background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; cursor: pointer;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn.ghost { color: var(--muted) !important; background: var(--bg); border-color: var(--border-strong); }
.btn.ghost:hover { color: var(--bg) !important; background: var(--muted); border-color: var(--muted); }

/* ---------- research overview figure (homepage) ----------
   Transparent link tabs sit on the artwork of each research area, at every screen
   size. The tabs are sized in cqw (1cqw = 1% of the figure's width), so they keep
   their place on the artwork as the figure scales. The figure never shrinks below
   a readable width: on a phone it scrolls sideways inside its card instead.
   The artwork has a white background, so the card is white in both themes. */
.research-map { margin: .75rem 0 1rem; }
.research-map__stage { overflow-x: auto; background: #fff; }
.research-map__canvas { position: relative; min-width: 640px; container-type: inline-size; }
.research-map img { display: block; width: 100%; height: auto; }
.research-map__label {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
}
.research-map__group {
  position: absolute; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .3em .35em;
  font-size: 9.4px; font-size: 1.3cqw;
}
.research-map__group a {
  padding: .12em .5em; font-weight: 600; line-height: 1.5; white-space: nowrap;
  color: #fff; background: rgba(12, 14, 40, .3);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.research-map__group a:hover {
  color: #23272b; background: #fff; border-color: #fff; text-shadow: none; text-decoration: none;
}

/* Each group is a box on its research area: left/top/width as a share of the figure. */
.research-map__group--qoc   { left: 31.2%; top: 2.8%;  width: 24%; }
.research-map__group--ai    { left: 69%;   top: 16.4%; width: 20%; }
.research-map__group--metab { left: 9.8%;  top: 61.6%; width: 30%; }
.research-map__group--qt    { left: 42%;   top: 56.6%; width: 15%; }
.research-map__group--adv   { left: 56.8%; top: 85.6%; width: 33%; }

.research-map__hint { display: none; margin-top: .4rem; font-size: .75em; color: var(--faint); }
@media (max-width: 42.2em) { .research-map__hint { display: block; } }   /* only where it scrolls */

/* ---------- cards ---------- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1em;
}
.card h3 { margin: 0 0 .4em; }
.card p { font-size: .75em; color: var(--muted); margin: 0; }
a.card { color: inherit; display: block; }
a.card:hover { border-color: var(--accent-soft); text-decoration: none; }
a.card:hover h3 { color: var(--accent); }

/* ---------- entries (jobs, education, teaching) ---------- */
.entry { margin: 0 0 1em; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.entry-head h3 { margin: 0; font-size: 1.1em; }   /* below the 1.25em section headings */
.entry .when { font-size: .8em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry .where { margin: .1em 0 0; }
.entry .detail { margin: .2em 0 0; color: var(--muted); }
@media (max-width: 34rem) { .entry-head { flex-direction: column; gap: 0; } }

/* ---------- publications ---------- */
.archive h2 { margin-top: 1.414em; font-size: 1em; color: var(--faint); }
/* career-stage groups inside a section */
.archive h3 { margin: 1.5em 0 .9em; font-size: .875em; }
.archive h2 + h3 { margin-top: 1em; }
.archive h3 .sub { font-weight: 400; color: var(--muted); }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem;
  margin: 0 0 1.25em;
}
.pubs .num {
  padding-top: .15em; font-size: .75em; font-weight: 700; color: var(--faint);
  text-align: right; font-variant-numeric: tabular-nums;
}
.pubs .title { display: block; font-size: .875em; font-weight: 700; line-height: 1.35; }
.pubs .authors, .pubs .venue, .pubs .links { display: block; margin-top: .2em; font-size: .75em; }
.pubs .venue em { font-style: italic; }
.pubs .me { font-weight: 700; }
.pubs .links { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Optional paper thumbnail: <li class="has-thumb"><img class="thumb" src="…" alt="">. */
.pubs li.has-thumb { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
.pubs .thumb { display: block; width: 100%; border: 1px solid var(--border); }

.tag {
  display: inline-block; margin-left: .6em; padding: .3em .6em;
  font-size: .6rem; font-weight: 700; line-height: 1.5; letter-spacing: .02em; text-transform: uppercase;
  color: var(--bg); background: var(--muted); border-radius: 4px; vertical-align: .15em;
}
.tag.hl { background: var(--info); }

/* ---------- dated lists (awards, talks, news) ---------- */
.plain, .news { list-style: none; margin: 0; padding: 0; }
.plain li, .news li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem;
  margin: 0; padding: .55em 0; border-bottom: 1px solid var(--line);
}
.plain li:last-child, .news li:last-child { border-bottom: 0; }
.plain .when, .news .when { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 34rem) {
  .plain li, .news li, .pubs li { grid-template-columns: 1fr; gap: .15rem; }
  .pubs .num { text-align: left; padding-top: 0; }}

/* ---------- callout ---------- */
.note {
  margin: 2em 0; padding: 1em; font-size: .75em;
  background: var(--accent-bg); border-radius: 4px;
  box-shadow: 0 1px 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ---------- footer ---------- */
.page__footer {
  margin-top: 3em; color: var(--muted);
  background: var(--surface-2); border-top: 1px solid var(--border-strong);
}
.page__footer-inner { max-width: var(--page); margin: 2em auto 0; padding: 0 1em 2em; }
@media (min-width: 80em) { .page__footer-inner { max-width: var(--page-wide); } }
.page__footer a { color: inherit; }
.page__footer a:hover { text-decoration: underline; }
.page__footer-follow ul { margin: 0; padding: 0; list-style: none; }
.page__footer-follow li {
  display: inline-block; margin: 0; padding: 5px 0; font-size: .75em; text-transform: uppercase;
}
.page__footer-follow a, .page__footer-follow strong { padding-right: 10px; font-weight: 700; }
.page__footer-copyright { font-size: .6875em; }
/* ---------- anything wide scrolls itself, never the page ---------- */
.scroll-x { overflow-x: auto; max-width: 100%; }
img { max-width: 100%; height: auto; }

/* ---------- code ---------- */
pre {
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 1em; overflow-x: auto; margin: 0 0 1.3em;
}
code { font-family: var(--mono); font-size: .75em; line-height: 1.6; }
:not(pre) > code {
  padding: .1rem .35rem; background: var(--code-bg);
  border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, .125);
}

/* ===========================================================
   Research pages
   =========================================================== */

/* ---------- figures ---------- */
figure.fig { margin: 2em 0; }
figure.fig svg { width: 100%; height: auto; display: block; }
figure.fig .frame {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1em;
}
figure.fig figcaption { margin-top: .75em; font-size: .75em; color: var(--muted); }
figure.fig figcaption b { color: var(--text); }

/* SVG diagram tokens */
.dg-ink   { stroke: var(--text); }
.dg-line  { stroke: var(--border); }
.dg-mute  { stroke: var(--faint); }
.dg-acc   { stroke: var(--accent); }
.dg-fill  { fill: var(--accent); }
.dg-soft  { fill: var(--accent-bg); }
.dg-text  { fill: var(--muted); font-family: var(--sans); font-size: 11px; }
.dg-label { fill: var(--text); font-family: var(--sans); font-size: 12px; font-weight: 600; }

/* ---------- generic image slot ---------- */
.imgslot {
  border: 1px dashed var(--border); border-radius: 6px; background: var(--surface);
  min-height: 11rem; display: grid; place-items: center; text-align: center;
  color: var(--faint); font-size: .75em; padding: 1.5rem;
}
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .75em; color: var(--muted); margin-top: .5rem; }
.gallery img { width: 100%; border-radius: 6px; display: block; }

/* ---------- topic cards ---------- */
.topics { display: grid; gap: 1rem; }
.topic {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem;
  padding: 1em 1.25em; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.topic:hover {
  border-color: var(--accent-soft); box-shadow: var(--lift); transform: translateY(-2px);
  text-decoration: none !important;
}
.topic:hover h3 { color: var(--accent); }
.topic h3 { margin: 0; }
.topic.plain { display: block; }   /* a card without the number column */
.topic .idx { padding-top: .15em; font-size: .75em; font-weight: 700; color: var(--accent); }
.topic p { margin: .35em 0 0; font-size: .75em; color: var(--muted); }
.topic .more { display: block; margin-top: .6em; font-size: .75em; color: var(--accent); }
@media (max-width: 34rem) { .topic { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- key-point callouts ---------- */
.keypoints { list-style: none; margin: 1.3em 0; padding: 0; }
.keypoints li { position: relative; padding-left: 1.5em; }
.keypoints li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- next/prev ---------- */
.pager { display: flex; gap: 1rem; margin-top: 3em; }
.pager a {
  flex: 1 1 0; padding: 1em; font-size: .75em; font-weight: 700; text-align: center;
  color: var(--muted); border: 1px solid var(--border-strong); border-radius: 4px;
}
.pager a:hover { color: var(--bg); background: var(--muted); border-color: var(--muted); text-decoration: none; }

/* ---------- definition-ish inline term ---------- */
.term { border-bottom: 1px dotted var(--faint); cursor: help; }

@media print {
  .masthead, .sidebar, .page__footer, .pager, .skip { display: none; }
  main { padding: 0 !important; }
}
