/* Roberto Cerbino - personal site
   Palette from fluorescence microscopy: nuclei blue and actin red on paper. */
:root {
  --paper: #fafbfc;
  --ink: #18202b;
  --muted: #5a6472;
  --rule: #dde2e8;
  --accent: #2f45c5;      /* nuclei (DAPI) blue: links, focus */
  --accent-2: #b8233f;    /* actin red: badges only */
  --speckle-ink: 47, 69, 197;
  --tint: #eef1fb;
  /* publication types: text colour on a light tint */
  --t-preprint: #8a4f00;    --t-preprint-bg: #fcefd6;
  --t-article: #2f45c5;     --t-article-bg: #e6eafb;
  --t-review: #0a6f63;      --t-review-bg: #dcf2ee;
  --t-chapter: #7a35b5;     --t-chapter-bg: #f0e6fa;
  --t-book: #3b6e17;        --t-book-bg: #e5f2da;
  --t-proceedings: #8c3a5b; --t-proceedings-bg: #f8e4ec;
  --t-other: #4f5966;       --t-other-bg: #e9edf1;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --wide: 68rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1119;
    --ink: #e4e8ee;
    --muted: #98a2b3;
    --rule: #283040;
    --accent: #93a1ff;
    --accent-2: #ff7a90;
    --speckle-ink: 147, 161, 255;
    --tint: #161c2a;
    --t-preprint: #f2b75c; --t-preprint-bg: #3a2a10;
    --t-article: #9eabff; --t-article-bg: #1f2650;
    --t-review: #5fd3c2; --t-review-bg: #10302c;
    --t-chapter: #c9a0f2; --t-chapter-bg: #2c1d40;
    --t-book: #9fd47a; --t-book-bg: #1d2f12;
    --t-proceedings: #f09ab8; --t-proceedings-bg: #3a1a27;
    --t-other: #b4bdc8; --t-other-bg: #262c36;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1119; --ink: #e4e8ee; --muted: #98a2b3; --rule: #283040;
  --accent: #93a1ff; --accent-2: #ff7a90; --speckle-ink: 147, 161, 255; --tint: #161c2a;
  --t-preprint: #f2b75c; --t-preprint-bg: #3a2a10;
  --t-article: #9eabff; --t-article-bg: #1f2650;
  --t-review: #5fd3c2; --t-review-bg: #10302c;
  --t-chapter: #c9a0f2; --t-chapter-bg: #2c1d40;
  --t-book: #9fd47a; --t-book-bg: #1d2f12;
  --t-proceedings: #f09ab8; --t-proceedings-bg: #3a1a27;
  --t-other: #b4bdc8; --t-other-bg: #262c36;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; padding-top: 1.1rem; padding-bottom: 1rem; }
.site-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: 0.005em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.site-nav a { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Speckle band: the one bold element */
.speckle-band { height: clamp(140px, 22vw, 260px); border-bottom: 1px solid var(--rule); background: var(--tint); overflow: hidden; }
.speckle-band canvas { display: block; width: 100%; height: 100%; }
.speckle-caption { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); max-width: var(--measure); margin: 0.5rem 0 0; }

/* Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
h4 { font-size: 1rem; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.25rem; line-height: 1.6; max-width: var(--measure); }
.prose { max-width: var(--measure); }
.quiet { color: var(--muted); font-size: 0.92em; }
.more { font-family: var(--sans); font-size: 0.95rem; margin-top: 1rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
ul.plain li:last-child { border-bottom: 0; }

/* Home */
.intro { display: grid; gap: 2rem; align-items: start; margin-top: 0.5rem; }
@media (min-width: 52rem) { .intro { grid-template-columns: minmax(0, 1fr) 15rem; gap: 3.5rem; } }
.intro h1 { margin-top: 2rem; margin-bottom: 0.25rem; }
.role { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-bottom: 1.4rem; }
.intro-links { font-family: var(--sans); font-size: 0.98rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; max-width: 15rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (min-width: 52rem) { .portrait { margin-top: 2.6rem; } }
.home-grid { display: grid; gap: 0 3.5rem; margin-top: 1rem; }
@media (min-width: 52rem) { .home-grid { grid-template-columns: 1fr 1fr; } }
.home-roles li { font-size: 1rem; }

/* News lists */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.news-list .when { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); padding-top: 0.15rem; }
.news-list.long li { grid-template-columns: 6.5rem 1fr; }
.news-cols { display: grid; gap: 0 4rem; }
@media (min-width: 56rem) { .news-cols { grid-template-columns: 1.1fr 1fr; } }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.feed .when { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0; }
.feed-title { margin: 0.1rem 0 0.25rem; font-weight: 500; }
.feed-sum { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Publications */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.pub p { margin: 0; }
.pub-title { font-size: 1.05rem; line-height: 1.4; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--accent); text-decoration: underline; }
.pub-authors, .pub-venue { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.pub-authors .me { color: var(--ink); font-weight: 600; }
.journal { font-style: italic; }
.badge { display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--accent-2); border: 1px solid currentColor; border-radius: 3px; padding: 0 0.35rem; margin-left: 0.4rem; vertical-align: 1px; }
.pub-meta { font-family: var(--sans); font-size: 0.82rem; margin-top: 0.25rem !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.9rem; }
.pub-meta a { color: var(--accent); text-decoration: none; }
.pub-meta a:hover { text-decoration: underline; }
.pub-meta .cites { color: var(--ink); font-variant-numeric: tabular-nums; }
.pub-meta a.cites { color: var(--ink); }
.pub-meta .altmetric-embed { line-height: 0; }
.pub-meta .altmetric-embed:empty { display: none; }
[hidden] { display: none !important; }
.pub.compact { padding: 0.4rem 0; font-size: 0.98rem; line-height: 1.4; }
.pub.compact a { color: var(--ink); }
.pub.compact .pub-venue { display: block; }
.page-head p { max-width: var(--measure); }
.pub-filter { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 0.8rem 0 0.6rem; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 0.92rem; }
.pub-filter > label { display: block; color: var(--muted); margin-bottom: 0.25rem; }
.pub-filter input[type="search"] { width: 100%; max-width: 28rem; font: inherit; font-size: 1rem; padding: 0.45rem 0.6rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
.pub-filter fieldset { border: 0; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.pub-filter legend { float: left; margin-right: 0.6rem; color: var(--muted); }
.pub-filter .n { color: var(--muted); }
.pub-count { margin: 0.4rem 0 0; color: var(--muted); }
.pub-group h3 { font-size: 1.4rem; margin-top: 2.5rem; }
.year { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 1.4rem 0 0; padding-bottom: 0.2rem; border-bottom: 1px solid var(--ink); }
.pub.hidden, .pub-group.hidden, .year.hidden { display: none; }

/* Research */
.toc ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-family: var(--sans); font-size: 0.95rem; }
.theme { border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.theme h2 { margin-top: 1.6rem; }
.theme-body { display: grid; gap: 1rem 3.5rem; }
@media (min-width: 56rem) { .theme-body { grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); } }
.key-papers h3 { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 0.3rem 0 0.2rem; }
.grants { list-style: none; padding: 0; margin: 0; max-width: 52rem; }
.grants li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.grants p { margin: 0; }
.grant-meta { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

/* CV */
.timeline { display: grid; grid-template-columns: 7rem 1fr; gap: 0; margin: 0; max-width: 52rem; }
.timeline dt, .timeline dd { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.timeline dt { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); padding-top: 0.62rem; }
.timeline dd strong { font-weight: 500; }
.figures-intro { margin-bottom: 0.4rem; }
.figures-intro + .figures { margin-top: 0.4rem; }
.figures { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.figures li { display: flex; flex-direction: column; }
.figures .num { font-size: 2.2rem; line-height: 1.1; font-weight: 500; }
.figures .lbl { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); max-width: 11rem; }
.shortbio { max-width: var(--measure); padding: 1rem 1.2rem; background: var(--tint); border-radius: 4px; }

/* Teaching */
.courses { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 3rem; }
@media (min-width: 52rem) { .courses { grid-template-columns: 1fr 1fr; } }
.courses li { border-top: 1px solid var(--rule); padding-top: 0.2rem; }
.courses h3 { margin-top: 0.8rem; margin-bottom: 0.2rem; }
.course-meta { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.people-cols { display: grid; gap: 0 3rem; max-width: 52rem; }
@media (min-width: 44rem) { .people-cols { grid-template-columns: 1fr 1fr; } }
.people-cols .quiet { margin-left: 0.4rem; }

/* Contact */
.contact-grid { display: grid; gap: 0 4rem; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid h2 { font-size: 1.15rem; margin: 1.8rem 0 0.3rem; font-family: var(--sans); font-weight: 600; }
address { font-style: normal; }
.ids { display: grid; grid-template-columns: 9rem 1fr; margin: 0; }
.ids dt, .ids dd { margin: 0; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.ids dt { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 5rem; padding: 1.5rem 0 2.5rem; font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }
.site-footer p { margin: 0.2rem 0; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .site-nav, .speckle-band, .speckle-caption, .pub-filter, .site-footer { display: none; }
  body { font-size: 11pt; }
}

/* Publication type labels */
.ptype { display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; font-style: normal; line-height: 1.5; padding: 0 0.45rem; border-radius: 3px; margin-right: 0.5rem; vertical-align: 1px; white-space: nowrap; }
.ptype-dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.5rem; vertical-align: 0.12em; }
.ptype-preprint { color: var(--t-preprint); background: var(--t-preprint-bg); }
.ptype-article { color: var(--t-article); background: var(--t-article-bg); }
.ptype-review { color: var(--t-review); background: var(--t-review-bg); }
.ptype-chapter { color: var(--t-chapter); background: var(--t-chapter-bg); }
.ptype-book { color: var(--t-book); background: var(--t-book-bg); }
.ptype-proceedings { color: var(--t-proceedings); background: var(--t-proceedings-bg); }
.ptype-other { color: var(--t-other); background: var(--t-other-bg); }
.ptype-dot.ptype-preprint { background: var(--t-preprint); }
.ptype-dot.ptype-article { background: var(--t-article); }
.ptype-dot.ptype-review { background: var(--t-review); }
.ptype-dot.ptype-chapter { background: var(--t-chapter); }
.ptype-dot.ptype-book { background: var(--t-book); }
.ptype-dot.ptype-proceedings { background: var(--t-proceedings); }
.ptype-dot.ptype-other { background: var(--t-other); }
.pub-filter .ptype { margin-right: 0.15rem; }

/* Mentoring */
.people-groups { display: grid; gap: 0.5rem 3rem; max-width: 60rem; }
@media (min-width: 48rem) { .people-groups { grid-template-columns: 1fr 1fr; } }
.people-group h3 { margin-bottom: 0.3rem; }
.people-group h4 { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--muted); margin: 0.8rem 0 0.2rem; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { padding: 0.3rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.4; }
.people li:last-child { border-bottom: 0; }
.people a { color: var(--ink); text-decoration: none; }
.people a:hover { color: var(--accent); text-decoration: underline; }
.person-meta { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.mentoring-other { margin-top: 1.5rem; }

/* Approach page */
.conviction { border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.conviction h2 { margin-top: 1.6rem; }
.contact-grid .social { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font-family: var(--sans); }
.conviction .more { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.review-chart { margin: 1.2rem 0 0.6rem; max-width: 52rem; }
.chart-scroll { overflow-x: auto; }
.review-chart svg { display: block; width: 100%; min-width: 34rem; height: auto; }
.review-chart .grid { stroke: var(--rule); stroke-width: 1; }
.review-chart .tick { font-family: var(--sans); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.review-chart .bar-reviews { fill: var(--accent); }
.review-chart .bar-papers { fill: var(--muted); opacity: 0.55; }
.review-chart figcaption { font-family: var(--sans); font-size: 0.88rem; margin-top: 0.4rem; }
.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; vertical-align: -1px; margin: 0 0.3rem 0 0.8rem; }
.swatch:first-child { margin-left: 0; }
.swatch-reviews { background: var(--accent); }
.swatch-papers { background: var(--muted); opacity: 0.55; }
.review-chart .bar-ratio { fill: var(--accent); opacity: 0.8; }
.review-chart .avg { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.review-chart .marker { stroke: var(--ink); stroke-width: 1; opacity: 0.55; }
.review-chart .marker-label { font-family: var(--sans); font-size: 11px; fill: var(--ink); opacity: 0.75; }
.review-chart .avg-label { font-family: var(--sans); font-size: 11px; fill: var(--accent-2); }
.review-chart + .review-chart { margin-top: 1.8rem; }

/* ---- Inner-page visuals --------------------------------------------------
   Each inner page opens with a round "view down the microscope" holding a lab
   image or a live speckle pattern. Inside pages, photos sit as plain plates
   with a caption. Charts reuse the review-chart look. */
:root { --field: #0b1220; --milan: #2f45c5; --fribourg: #0a8a78; --vienna: #b8233f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --field: #05080f; --milan: #93a1ff; --fribourg: #5fd3c2; --vienna: #ff7a90; } }
:root[data-theme="dark"] { --field: #05080f; --milan: #93a1ff; --fribourg: #5fd3c2; --vienna: #ff7a90; }

.page-head { display: grid; gap: 1.2rem 3.5rem; align-items: start; margin: 0 0 1rem; }
.page-head h1 { margin-bottom: 0.6rem; }
.page-head-text > :last-child { margin-bottom: 0; }
@media (min-width: 52rem) {
  .page-head { grid-template-columns: minmax(0, 1fr) 15rem; }
  .page-head .eyepiece { margin-top: 2.6rem; }
}
.eyepiece { margin: 0; max-width: 15rem; }
.eyepiece-field {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--field);
  box-shadow: 0 0 0 1px var(--rule), 0 0 0 7px var(--paper), 0 0 0 8px var(--rule);
}
.eyepiece-field img, .eyepiece-field canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the soft dark rim you see looking into an eyepiece */
.eyepiece-field::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(5, 8, 15, 0.55) 100%);
}
.eyepiece canvas.speckle { background: var(--tint); }
.eyepiece figcaption, .plate figcaption, .pub-strip figcaption, .career-map figcaption {
  font-family: var(--sans); font-size: 0.82rem; line-height: 1.45; color: var(--muted); margin-top: 0.9rem;
}
@media (max-width: 51.99rem) {
  .page-head .eyepiece { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: center; max-width: 26rem; order: -1; margin-top: 1.5rem; }
  .page-head .eyepiece figcaption { margin: 0; }
  .page-head h1 { margin-top: 1rem; }
}

.plate { margin: 1.4rem 0 0; }
.plate img, .plate-speckle { display: block; width: 100%; border-radius: 3px; }
.plate img { aspect-ratio: var(--aspect, 2.2 / 1); object-fit: cover; background: var(--field); }
.plate-speckle { aspect-ratio: var(--aspect, 2.2 / 1); overflow: hidden; background: var(--tint); }
.plate-speckle canvas { display: block; width: 100%; height: 100%; }
.plate.wide { max-width: var(--wide); margin: 1.2rem 0 1.6rem; }
.plate.wide img { aspect-ratio: auto; }
.theme-text { max-width: var(--measure); }
.lab-body { display: grid; gap: 0 3.5rem; }
@media (min-width: 56rem) { .lab-body { grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); align-items: start; } .lab-body .plate { margin-top: 0.3rem; } }

/* Publications per year */
.pub-strip { margin: 1.6rem 0 0.4rem; max-width: 52rem; }
.pub-strip svg, .career-map svg { display: block; width: 100%; min-width: 34rem; height: auto; }
.pub-strip .grid { stroke: var(--rule); stroke-width: 1; }
.pub-strip .tick, .career-map .tick { font-family: var(--sans); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.pub-strip .seg { stroke: var(--paper); stroke-width: 0.8; }
.seg-preprint { fill: var(--t-preprint); } .seg-article { fill: var(--t-article); }
.seg-review { fill: var(--t-review); } .seg-chapter { fill: var(--t-chapter); }
.seg-book { fill: var(--t-book); } .seg-proceedings { fill: var(--t-proceedings); }
.seg-other { fill: var(--t-other); }

/* Career map */
.career-map { margin: 2rem 0 0.5rem; max-width: 52rem; }
.career-map .place-milan { fill: var(--milan); } .career-map .place-fribourg { fill: var(--fribourg); }
.career-map .place-vienna { fill: var(--vienna); }
.career-map .place-label { font-family: var(--sans); font-size: 11.5px; font-weight: 600; }
.career-map .place-label.milan { fill: var(--milan); } .career-map .place-label.fribourg { fill: var(--fribourg); } .career-map .place-label.vienna { fill: var(--vienna); }
.career-map .ms-year, .career-map .stay-year { fill: var(--muted); }
.career-map .ms-line { stroke: var(--muted); stroke-width: 1; opacity: 0.5; }
.career-map .ms-label { font-family: var(--sans); font-size: 11.5px; fill: var(--ink); }
.career-map .stay { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.career-map .stay-label { font-family: var(--sans); font-size: 11px; fill: var(--muted); }

/* Group news with pictures */
.feed li.has-image { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 1rem; }
.feed li.has-image > * { grid-column: 2; }
.feed li.has-image .feed-img { grid-column: 1; grid-row: 1 / span 3; }
.feed-img img { display: block; width: 6.5rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; background: var(--field); }

.plate.native img { aspect-ratio: auto; width: auto; max-width: 100%; max-height: 24rem; object-fit: contain; background: #fff; padding: 0.6rem; border: 1px solid var(--rule); }
.plate .credit { display: block; margin-top: 0.15rem; }
.plate .credit a { color: inherit; }
.approach .plate { max-width: var(--measure); }
@media print { .eyepiece, .plate, .pub-strip, .career-map { display: none; } }

/* Cookie consent banner (only when Google Analytics is configured) */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 20;
  max-width: 34rem; margin-left: auto;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 6px; box-shadow: 0 6px 24px rgba(10, 15, 30, 0.12);
  padding: 0.9rem 1.1rem; font-family: var(--sans); font-size: 0.92rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent-buttons { display: flex; gap: 0.6rem; margin-top: 0.7rem !important; }
.consent button {
  font: inherit; font-weight: 500; padding: 0.4rem 1rem; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--paper);
}
.consent button[data-consent="denied"] { background: transparent; color: var(--accent); }
.linklike { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
@media print { .consent { display: none; } }

/* Links inside CV lists: quiet until hovered, so the lists stay readable */
.cv .timeline a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
.cv .timeline a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Talks: one colour per group (conferences, seminars, schools, public),
   taken from the publication palette. */
.tdot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.45rem; vertical-align: 0.08em; }
.tdot-conference, .tseg-conference { background: var(--t-article); fill: var(--t-article); }
.tdot-seminar, .tseg-seminar { background: var(--t-review); fill: var(--t-review); }
.tdot-lecture, .tseg-lecture { background: var(--t-chapter); fill: var(--t-chapter); }
.tdot-public, .tseg-public { background: var(--t-preprint); fill: var(--t-preprint); }
.talk .what { display: block; }
.talk-title { display: block; line-height: 1.4; }
.talk-event { display: block; font-family: var(--sans); font-size: 0.86rem; color: var(--muted); line-height: 1.45; margin-top: 0.1rem; }
.talk.hidden { display: none; }
.talk-strip figcaption .tdot { margin-left: 0.15rem; margin-right: 0.25rem; }
.talk-list + .year { margin-top: 1.6rem; }
