/* ============================================================
   ROMY ESKENS — editorial layout, "Salon" design system
   (Direction A from the Claude Design handoff)
   ============================================================ */

/* Colours & fonts are injected as a <style> block after this file by
   src/lib/theme.ts (driven by data/theme.json / the CMS Appearance panel),
   so the :root values below are just fallbacks. */

/* ---- Tokens (fallbacks; theme.ts overrides) ---- */
:root {
  --paper:       #EDEAE2;
  --paper-2:     #F6F4EE;
  --paper-sunk:  #E4E0D6;
  --ink:         #211C16;
  --fg-1:        #211C16;
  --fg-2:        #544C42;
  --fg-3:        #897F70;
  --rule:        #DBD6CA;
  --rule-strong: #C7C1B2;
  --accent:      #9A3B24;
  --accent-deep: #7A2A18;
  --second:      #A9762E;
  --link:        #2E6A66;
  --link-deep:   #1F4D4A;
  --selection:   #E3D4CE;

  --display: 'Cormorant Garamond', Georgia, serif;
  --serif:   'Newsreader', Georgia, serif;
  --sans:    'Archivo', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  --max-w:  1080px;
  --nav-h:  66px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --dur:    200ms;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--selection); }
img { max-width: 100%; display: block; }

html { font-size: 15px; scrollbar-gutter: stable; }

/* ---- Page transitions (View Transitions API) ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.15s ease out both fade-out; }
::view-transition-new(root) { animation: 0.15s ease in both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---- Base ---- */
body {
  background: var(--paper);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a:hover { border-bottom-color: var(--link); }

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.site-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  border-bottom: none;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}
.site-title:hover { border-bottom: none; color: var(--ink); }
.site-title b { color: var(--accent); font-weight: 600; }

/* ---- Nav ---- */
nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  line-height: 1;
  flex-wrap: wrap;
  justify-content: center;
}

nav > a,
.nav-dropdown-trigger {
  font-family: var(--sans);
  font-size: 0.8666rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--fg-3);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0;
  margin: 0;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
nav > a:hover,
.nav-dropdown-trigger:hover { color: var(--ink); }

nav > a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-dropdown.active .nav-dropdown-trigger { color: var(--accent); }

/* ---- Dropdown ---- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform var(--dur) var(--ease);
  position: relative;
  top: 1px;
}
.nav-dropdown.open .nav-dropdown-trigger::after { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(33,28,22,0.12);
  list-style: none;
  padding: 0.35rem 0;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.8666rem;
  font-weight: 500;
  color: var(--fg-2);
  border-bottom: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-dropdown-menu li a:hover { background: var(--paper-sunk); color: var(--ink); }

/* ---- Masthead: page title + nav share the top line ---- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.6rem 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  padding-bottom: 1.3rem;
  border-bottom: 2px solid var(--ink);
}
.masthead-titles { min-width: 0; }
.masthead .eyebrow { margin-bottom: 0.5rem; }
.masthead-h2 { margin: 0; padding: 0; border: none; }
.site-nav { flex-shrink: 0; padding-bottom: 0.4rem; }
.site-nav nav { justify-content: flex-end; gap: 1.1rem 1.4rem; }

/* ---- Layout ---- */
.container,
.narrow {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2.5rem 7.5rem;
}

/* ---- Page eyebrow ---- */
.page-eyebrow,
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---- Page titles ---- */
h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink);
}

/* ---- Subsection labels ---- */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--second);
  display: block;
  margin: 3rem 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}
.section-label:first-child,
.section-label--first { margin-top: 0; }

/* ---- Publication / entry list ---- */
.pub-list { list-style: none; }

.pub {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
}

.yr {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-3);
  line-height: 1.5;
  padding-top: 0.15rem;
}

.pub h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.32;
  margin: 0 0 0.3rem;
}
.pub h3 a { color: var(--ink); border-bottom: none; }
.pub h3 a:hover { color: var(--accent); }

.venue {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--fg-2);
  margin: 0 0 0.25rem;
  line-height: 1.5;
}
.venue em { font-style: italic; }

.award-inline {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--second);
  letter-spacing: 0.02em;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.2rem;
  margin-top: 0.6rem;
}
.pub-links a,
.pub-links button {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--link);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  line-height: 1.6;
}
.pub-links a:hover,
.pub-links button:hover { border-bottom-color: var(--link); color: var(--link-deep); }

.pub-abstract {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, margin-top 0.25s ease, padding-top 0.25s ease;
  overflow: hidden;
  margin-top: 0;
}
.pub-abstract.open {
  grid-template-rows: 1fr;
  margin-top: 0.75rem;
}
.pub-abstract-inner {
  overflow: hidden;
  min-height: 0;
  font-family: var(--serif);
  font-size: 0.97rem;
  color: var(--fg-2);
  line-height: 1.7;
  text-align: justify;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rule-strong);
}

.research-bio-wrap { margin: 1.75rem 0 0.5rem; }
.research-bio {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.78;
}
.research-bio p {
  padding-bottom: 1.1rem;
}
.research-bio p:last-child { padding-bottom: 0; }

/* Collapsible bio: clamp to a few lines with a fade, reveal on click */
.bio-clamp {
  position: relative;
  max-height: 10.5em;
  overflow: hidden;
}
.bio-clamp::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4em;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.bio-clamp.open { max-height: none; }
.bio-clamp.open::after { display: none; }
.bio-toggle {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.6rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.bio-toggle:hover { border-bottom-color: var(--accent); }

.coauthor {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fg-3);
}

/* ---- WIP ---- */
.pub--wip {
  padding: 0.7rem 0;
}
.wip-group-label {
  margin-top: 2.5rem;
}
#wip { margin-top: 2.5rem; }

.pub h3.wip-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-2);
  line-height: 1.45;
  margin: 0;
}
.pub--wip .pub-links a,
.pub--wip .pub-links button { font-size: 0.78rem; }

/* ---- Page description ---- */
.page-description {
  color: var(--fg-2);
  margin-top: -0.5rem;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Talks ---- */
.talks-legend {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin: 1.25rem 0 0.5rem;
  white-space: nowrap;
}

.talk-item {
  list-style: none;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.talk-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.55rem;
}

.talk-pres-list { display: flex; flex-direction: column; gap: 0.3rem; }
.talk-pres-list .talk-row-detail { padding-left: 1.25rem; }

.talk-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.talk-yr {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-3);
  line-height: 1.5;
}

.talk-row-detail {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.5;
}
.talk-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--second);
  margin-left: 0.6rem;
  white-space: nowrap;
}
.talk-comment {
  color: var(--fg-3);
  font-size: 0.875rem;
}

/* ---- Veni meta row ---- */
.veni-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 2rem 0 2.4rem;
}
.veni-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }
.veni-meta-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.veni-meta-val {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

/* ---- Workshop / project description ---- */
.section-subtitle {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.workshop-description {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.75;
}
.workshop-description p { margin-bottom: 1.25rem; }
.workshop-description a { color: var(--link); }

.teaching-levels {
  font-size: 0.8rem;
  color: var(--fg-3);
  margin-left: 0.4em;
  font-style: italic;
}

/* ---- Teaching resources (legacy, unused but kept) ---- */
.resource-intro { margin-bottom: 2rem; color: var(--fg-2); }
.resource-note { color: var(--fg-3); font-style: italic; font-size: 0.85rem; }
.resource-author { font-family: var(--sans); font-size: 0.875rem; color: var(--fg-2); }
.resource-group-heading {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--second);
  margin: 3rem 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}
.resource-group-heading:first-child { margin-top: 0; }
.resource-item-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}
.resource-item-title a { font-weight: 500; color: var(--ink); }
.resource-item-title a:hover { color: var(--accent); border-bottom-color: transparent; }

/* ---- About / home ---- */
.about-body {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.78;
  color: var(--ink);
  text-align: justify;
}
.about-body p {
  margin-bottom: 1.05rem;
}
.about-body p:last-child { margin-bottom: 0; }

.about-portrait {
  float: right;
  width: 300px;
  margin: 0.4rem 0 1.5rem 3rem;
  shape-outside: circle();
}
/* Portrait is a pre-cropped circular PNG (transparent corners); drop-shadow
   follows the alpha so the shadow stays circular. */
.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(33,28,22,0.16));
}
.about-portrait .photo-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--paper-sunk);
}

/* Quick links: full-width row beneath the bio, with a hairline above */
.about-links {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-top: 1.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}
.about-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: none;
}
.about-links a:hover { color: var(--accent); border-bottom: none; }

/* ---- CV ---- */
.cv-section { margin-bottom: 2.2rem; }
.cv-section > .eyebrow,
.cv-section .cv-eyebrow-row {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.75rem;
}
.cv-eyebrow-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.cv-eyebrow-row .eyebrow { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.cv-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 0.45rem 0;
  align-items: baseline;
}
.cv-year { font-family: var(--mono); font-size: 0.8rem; color: var(--fg-3); line-height: 1.5; }
.cv-area-label { color: var(--fg-2); font-size: 0.75rem; letter-spacing: 0.04em; }
.cv-detail { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.cv-detail-sub { display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--fg-2); margin-top: 3px; line-height: 1.5; }
.cv-pub-title { font-weight: 400; }
.cv-detail-inline { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.cv-detail-vol { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--fg-2); }
.cv-coauthor { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--fg-3); }
.cv-contact-addr { display: block; margin-top: 0.15rem; }
.cv-prize { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--second); margin-top: 2px; }
#cv-talks .talk-item h3 { font-size: 1.05rem; }
#cv-talks .talk-item { padding: 0.3rem 0; border-bottom: none; }
#cv-talks .talk-pres-list { padding-left: 0; }
#cv-talks .talk-pres-list .talk-row-detail { padding-left: 1.25rem; }
.cv-subsection-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin: 1.25rem 0 0;
  padding-bottom: 0;
  border-bottom: none;
}
.cv-subsection-label:first-child { margin-top: 0; }
.cv-references-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 0.5rem;
  padding-left: 6rem;
}
.cv-ref-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-bottom: 0.2rem; }
.cv-ref-detail { font-size: 0.9rem; color: var(--fg-2); line-height: 1.5; }
.cv-actions { display: flex; justify-content: flex-end; margin: 0 0 0.75rem; }
.cv-download {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  padding: 0.5rem 1rem; color: var(--ink); text-decoration: none;
  background: var(--paper-2); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cv-download:hover { background: var(--paper-sunk); border-color: var(--fg-3); }

.cv-contact {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--fg-2);
  margin: 0.9rem 0 2.2rem;
}
.cv-contact a { color: var(--link); }
.cv-contact a:hover { color: var(--link-deep); }
.cv-contact-sep { color: var(--fg-3); margin: 0 0.6rem; }
.cv-award-amount {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-3);
}

/* ---- Print: clean CV as PDF ---- */
@page { margin: 2cm 1.9cm; }
@media print {
  /* The nav (and any .no-print element) must never appear in the CV PDF */
  .no-print, .site-nav, header, footer, .cv-download, .nav-dropdown-menu { display: none !important; }
  html { font-size: 11pt; }
  body { background: #fff; color: #000; }
  main { padding: 0; }
  .narrow { max-width: 100%; padding: 0; }
  a { color: #000 !important; border: none !important; }
  .masthead { border-bottom-color: #000; margin-bottom: 1.2rem; padding-bottom: 0.9rem; }
  h2 { border-bottom-color: #000; }
  .cv-item, .talk-item, .pub { break-inside: avoid; }
  .cv-section { margin-bottom: 1.2rem; }
  .eyebrow { color: #000 !important; }
}

/* ---- Footer ---- */
footer {
  clear: both;
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0;
  margin-top: 1.25rem;
}
.foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}
.foot-fine { font-family: var(--mono); font-size: 0.7rem; color: var(--fg-3); letter-spacing: 0.1em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: none;
}
.foot-links a:hover { color: var(--accent); border-bottom: none; }

/* Courses page: course name styled like an entry title */
#teaching .talk-row-detail {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}
#teaching .teaching-levels,
#teaching .talk-comment {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fg-3);
  font-style: normal;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .header-inner { padding: 0 1.1rem; gap: 0.9rem; }
  .container, .narrow { padding: 2.25rem 1.1rem 4rem; }

  .site-title { font-size: 1.2rem; }
  nav { gap: 0.75rem; }
  nav > a, .nav-dropdown-trigger { font-size: 0.8rem; }

  /* Masthead stacks: title, then nav below */
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .site-nav { padding-bottom: 0; }
  .site-nav nav { justify-content: flex-start; }

  h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .pub h3, .talk-item h3 { font-size: 1.1rem; }
  .about-body, .workshop-description { font-size: 1.18rem; text-align: left; }

  /* Portrait: stop floating, centre above text */
  .about-portrait {
    float: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 1.75rem;
  }
  .about-links { justify-content: flex-start; }

  /* Publications & CV: collapse to single column (year above content) */
  .pub, .cv-item { grid-template-columns: 1fr; gap: 0.15rem; align-items: start; }
  .yr, .cv-year { font-size: 0.72rem; opacity: 0.8; padding-top: 0; }
  .pub { padding: 0.95rem 0; }

  /* Talks */
  .talk-row { grid-template-columns: 3.5rem 1fr; gap: 0.75rem; align-items: start; }
  .talk-item { padding: 0.9rem 0; }
  .talk-pres-list .talk-row-detail { padding-left: 1rem; }
  #cv-talks .talk-pres-list .talk-row-detail { padding-left: 1rem; }
  .talk-comment { white-space: normal; display: inline; }

  /* CV head name+button: stack vertically */
  h2[style*="justify-content"] { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  #cv-contact { overflow-wrap: break-word; word-break: break-word; }
  .cv-download { display: none; }
  .cv-references-grid { grid-template-columns: 1fr; padding-left: 0; }

  #teaching .talk-row { grid-template-columns: 1fr; gap: 0.15rem; }
  #cv-teaching .cv-item { grid-template-columns: 1fr; gap: 0.15rem; }

  .veni-meta-row { gap: 1.4rem 2.4rem; }
}
