/* ==========================================================================
   Site refresh — design tokens, header, footer, home page and CV
   Loaded after the theme CSS (main.css) and the legacy enhancement sheets,
   so rules here take precedence. New components use the `lc-` prefix.
   ========================================================================== */

:root {
  --lc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --lc-ink: #0f172a;
  --lc-text: #334155;
  --lc-muted: #64748b;
  --lc-faint: #94a3b8;
  --lc-line: #e2e8f0;
  --lc-line-strong: #cbd5e1;
  --lc-bg: #ffffff;
  --lc-bg-soft: #f8fafc;
  --lc-bg-muted: #f1f5f9;

  --lc-accent: #1d4ed8;
  --lc-accent-hover: #1e3a8a;
  --lc-accent-soft: #eff6ff;
  --lc-accent-line: #bfdbfe;
  --lc-gold-bg: #fef3c7;
  --lc-gold-fg: #92400e;

  --lc-radius-lg: 20px;
  --lc-radius: 16px;
  --lc-radius-md: 12px;
  --lc-radius-sm: 8px;
  --lc-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --lc-shadow-lg: 0 18px 40px -18px rgba(15, 23, 42, 0.28);

  --lc-header-h: 64px;
  --lc-max: 1120px;
  --lc-gutter: 24px;
}

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

html {
  scroll-padding-top: calc(var(--lc-header-h) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--lc-font);
  color: var(--lc-text);
  background: var(--lc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lc-font);
  color: var(--lc-ink);
  letter-spacing: -0.011em;
}

a { color: var(--lc-accent); }
a:hover { color: var(--lc-accent-hover); }

::selection { background: #dbeafe; color: var(--lc-ink); }

/* The theme fades every region in with staggered delays; render immediately. */
.masthead,
#main,
.page__footer { animation: none; }

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

.masthead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--lc-line);
}

.masthead__inner-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(var(--lc-max) + 2 * var(--lc-gutter));
  height: var(--lc-header-h);
  padding: 0 var(--lc-gutter);
  font-family: var(--lc-font);
}

.lc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--lc-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.lc-brand:hover { color: var(--lc-ink); }

.lc-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--lc-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.masthead__menu {
  flex: 1 1 auto;
  min-width: 0;
}

.greedy-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* The theme's collapsing-menu script recurses forever if the nav is squeezed below the
     menu button's width, so keep a floor (the theme itself used 250px). */
  min-width: 150px;
  background: transparent;
}

.greedy-nav .visible-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.greedy-nav .visible-links li {
  display: block;
}

.greedy-nav a {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--lc-radius-sm);
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.greedy-nav a:hover {
  color: var(--lc-ink);
  background: var(--lc-bg-muted);
}

.greedy-nav .visible-links li:first-child a { margin-left: 0; }
.greedy-nav .visible-links a:before { display: none; }

.greedy-nav .is-active > a,
.greedy-nav .is-active > a:hover {
  color: var(--lc-accent);
  background: var(--lc-accent-soft);
}

.greedy-nav .lc-ext {
  margin-left: 4px;
  font-size: 0.7em;
  opacity: 0.55;
}

.greedy-nav button {
  top: 50%;
  height: 40px;
  width: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  background: #fff;
}

.greedy-nav button:not(.hidden) + .visible-links { margin-right: 56px; }

.greedy-nav .navicon,
.greedy-nav .navicon:before,
.greedy-nav .navicon:after {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--lc-ink);
}

.greedy-nav .navicon:before { top: -6px; }
.greedy-nav .navicon:after { bottom: -6px; }
.greedy-nav button.close .navicon { background: transparent; }

.greedy-nav .hidden-links {
  min-width: 220px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-md);
  box-shadow: var(--lc-shadow-lg);
}

.greedy-nav .hidden-links:before,
.greedy-nav .hidden-links:after { display: none; }

.greedy-nav .hidden-links li { border-bottom: 0; }

.greedy-nav .hidden-links a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
}

.greedy-nav .hidden-links a:hover { background: var(--lc-bg-muted); }

/* --------------------------------------------------------------------------
   Sidebar profile (pages that still use it)
   -------------------------------------------------------------------------- */

.sidebar.sticky { top: calc(var(--lc-header-h) + 24px); }

.author__avatar img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sidebar .author__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--lc-ink);
}

.author__bio { color: var(--lc-muted); }

.author__urls a { color: var(--lc-text); font-size: 15px; }
.author__urls a:hover { color: var(--lc-accent); text-decoration: none; }
.author__urls .fa,
.author__urls .fas,
.author__urls .fab,
.author__urls .ai { color: var(--lc-faint); }

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

.page__footer {
  margin-top: 80px;
  background: var(--lc-bg-soft);
  border-top: 1px solid var(--lc-line);
  color: var(--lc-muted);
}

.page__footer footer {
  max-width: calc(var(--lc-max) + 2 * var(--lc-gutter));
  margin-top: 0;
  padding: 36px var(--lc-gutter) 32px;
}

.page__footer a { color: var(--lc-text); }
.page__footer a:hover { color: var(--lc-accent); text-decoration: none; }

.lc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lc-line);
}

.lc-footer__name {
  display: block;
  color: var(--lc-ink);
  font-size: 16px;
  font-weight: 700;
}

.lc-footer__tag {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.lc-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-footer__links li { margin: 0; }

.lc-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
}

.page__footer .lc-footer__links i { color: var(--lc-faint); }

.lc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  font-size: 13px;
}

.lc-footer__legal a { color: var(--lc-muted); text-decoration: underline; text-underline-offset: 2px; }

/* Back-to-top button injected by custom.js */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lc-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--lc-shadow-lg);
  color: var(--lc-ink);
  font-size: 18px;
  text-decoration: none;
}

.back-to-top:hover { color: var(--lc-accent); border-color: var(--lc-accent-line); }

/* --------------------------------------------------------------------------
   Page shell + shared components
   -------------------------------------------------------------------------- */

#main.lc-page {
  max-width: calc(var(--lc-max) + 2 * var(--lc-gutter));
  margin-top: 0;
  padding: 0 var(--lc-gutter);
  font-size: 16px;
  line-height: 1.65;
}

/* Resets inside new pages. :where() keeps their specificity at the level of the theme's
   element selectors, so single-class component rules below always win. */
:where(.lc-page) p,
:where(.lc-page) h1,
:where(.lc-page) h2,
:where(.lc-page) h3,
:where(.lc-page) h4 { margin: 0; }

:where(.lc-page) h1,
:where(.lc-page) h2,
:where(.lc-page) h3,
:where(.lc-page) h4 { line-height: 1.25; }

:where(.lc-page) ul,
:where(.lc-page) ol { margin: 0; padding: 0; list-style: none; }

:where(.lc-page) ul li,
:where(.lc-page) ol li,
:where(.lc-page) li ul,
:where(.lc-page) li ol { margin: 0; }

:where(.lc-page) a { text-decoration: none; }

.lc-eyebrow {
  color: var(--lc-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lc-section {
  padding-top: 72px;
}

.lc-section__head {
  margin-bottom: 28px;
}

.lc-section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
}

.lc-section__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lc-section__title::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: var(--lc-accent);
}

.lc-section__intro {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--lc-muted);
  font-size: 16.5px;
}

.lc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.lc-more i { font-size: 0.8em; transition: transform 0.15s ease; }
.lc-more:hover i { transform: translateX(3px); }

.lc-card {
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: #fff;
  box-shadow: var(--lc-shadow);
}

.lc-grid {
  display: grid;
  gap: 20px;
}

/* Buttons */
.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--lc-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--lc-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lc-page a.lc-btn:hover {
  border-color: var(--lc-ink);
  color: var(--lc-ink);
}

.lc-page a.lc-btn--primary {
  border-color: var(--lc-accent);
  background: var(--lc-accent);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(29, 78, 216, 0.7);
}

.lc-page a.lc-btn--primary:hover {
  border-color: var(--lc-accent-hover);
  background: var(--lc-accent-hover);
  color: #fff;
}

.lc-btn:focus-visible,
.lc-contact a:focus-visible,
.lc-linkpill:focus-visible,
.lc-cvnav a:focus-visible {
  outline: 2px solid var(--lc-accent);
  outline-offset: 2px;
}

/* Contact links: icon buttons (hero) or labelled chips (CV header) */
.lc-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lc-text);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lc-contact--icons a {
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lc-line);
  border-radius: 50%;
  background: #fff;
  font-size: 17px;
}

.lc-contact--icons span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.lc-contact--chips a {
  padding: 6px 12px;
  border: 1px solid var(--lc-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.lc-contact--chips i { color: var(--lc-muted); }

.lc-page .lc-contact a:hover {
  border-color: var(--lc-accent-line);
  background: var(--lc-accent-soft);
  color: var(--lc-accent);
}

.lc-page .lc-contact a:hover i { color: var(--lc-accent); }

/* Chips, badges and link pills */
.lc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--lc-bg-muted);
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.lc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--lc-bg-muted);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.lc-badge--metric { background: var(--lc-accent-soft); color: var(--lc-accent); }
.lc-badge--award { background: var(--lc-gold-bg); color: var(--lc-gold-fg); }
.lc-badge--oa { background: #fff7ed; color: #c2410c; }

.lc-linkpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--lc-line);
  border-radius: 6px;
  background: #fff;
  color: var(--lc-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.lc-linkpill i { color: var(--lc-faint); font-size: 0.95em; }

.lc-page a.lc-linkpill:hover {
  border-color: var(--lc-accent-line);
  background: var(--lc-accent-soft);
  color: var(--lc-accent);
}

.lc-page a.lc-linkpill:hover i { color: var(--lc-accent); }

/* --------------------------------------------------------------------------
   Home: intro (name, bio, links, photo) and expertise
   -------------------------------------------------------------------------- */

.lc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  align-items: start;
  gap: 56px;
  padding: 56px 0 0;
}

.lc-intro__name {
  font-size: clamp(34px, 1.6vw + 24px, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lc-intro__role {
  margin-top: 10px;
  color: var(--lc-text);
  font-size: 18px;
  font-weight: 500;
}

.lc-intro__role strong { color: var(--lc-ink); font-weight: 700; }

.lc-intro__bio { margin-top: 22px; }

.lc-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.lc-intro__photo {
  display: block;
  width: 232px;
  height: 232px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--lc-line), var(--lc-shadow-lg);
}

/* Prose (bio) */
.lc-prose {
  max-width: 70ch;
  color: var(--lc-text);
  font-size: 16.5px;
  line-height: 1.75;
}

.lc-prose p + p { margin-top: 1em; }
.lc-prose strong { color: var(--lc-ink); font-weight: 600; }
.lc-prose a { text-decoration: underline; text-underline-offset: 3px; }

.lc-home .lc-section { padding-top: 56px; }

/* Expertise cards */
.lc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Line up the title and list rows across the three cards */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1024px) {
    .lc-grid--3 { row-gap: 0; }

    .lc-grid--3 .lc-expertise {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-content: start;
    }
  }
}

.lc-expertise {
  padding: 20px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lc-expertise:hover {
  border-color: var(--lc-accent-line);
  box-shadow: var(--lc-shadow-lg);
}

.lc-expertise__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lc-expertise__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lc-accent-soft);
  color: var(--lc-accent);
  font-size: 15px;
}

.lc-checklist {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 14px;
}

.lc-checklist li {
  position: relative;
  padding-left: 16px;
  color: var(--lc-text);
  font-size: 14.5px;
  line-height: 1.55;
}

.lc-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lc-accent);
}

/* --------------------------------------------------------------------------
   Timeline (home: compact, CV: detailed)
   -------------------------------------------------------------------------- */

.lc-timeline {
  position: relative;
  display: grid;
  gap: 8px;
}

.lc-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--lc-line);
}

.lc-tl-item {
  position: relative;
  padding: 0 0 20px 36px;
}

.lc-tl-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--lc-accent);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.lc-tl-item.is-current::before {
  background: var(--lc-accent);
  box-shadow: 0 0 0 4px var(--lc-accent-soft);
}

.lc-tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 24px;
}

.lc-tl-main { min-width: 0; }

.lc-tl-title {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.lc-tl-org {
  margin-top: 2px;
  color: var(--lc-accent);
  font-size: 15.5px;
  font-weight: 500;
}

.lc-tl-org .lc-muted { color: var(--lc-muted); font-weight: 400; }

.lc-tl-date {
  flex: 0 0 auto;
  color: var(--lc-muted);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lc-tl-sub {
  margin-top: 6px;
  color: var(--lc-muted);
  font-size: 15px;
}

.lc-tl-bullets {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lc-tl-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--lc-text);
  font-size: 15.5px;
  line-height: 1.65;
}

.lc-tl-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lc-faint);
}

.lc-tl-bullets strong { color: var(--lc-ink); font-weight: 600; }
.lc-tl-bullets a { text-decoration: underline; text-underline-offset: 2px; }

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

.lc-pubs {
  display: grid;
  counter-reset: none;
}

.lc-pub {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 20px 0;
  border-top: 1px solid var(--lc-line);
}

.lc-pub:last-child { border-bottom: 1px solid var(--lc-line); }

.lc-pub__label {
  padding-top: 2px;
  color: var(--lc-faint);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lc-pub__title {
  color: var(--lc-ink);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.lc-pub__title a { color: inherit; }
.lc-page .lc-pub__title a:hover { color: var(--lc-accent); }

.lc-pub__authors {
  margin-top: 6px;
  color: var(--lc-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.lc-pub__authors .lc-me {
  color: var(--lc-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lc-accent-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.lc-pub__authors sup { font-size: 0.75em; margin-left: 1px; }

.lc-pub__venue {
  margin-top: 4px;
  color: var(--lc-text);
  font-size: 14.5px;
}

.lc-pub__venue em { font-style: italic; }

.lc-pub__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.lc-selpubs {
  display: grid;
  gap: 14px;
  margin: 16px 0 12px;
}

.lc-selpub {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 16px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lc-selpub:hover {
  border-color: var(--lc-accent-line);
  box-shadow: var(--lc-shadow-lg);
}

.lc-selpub__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  background: #fff;
}

.lc-selpub__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lc-selpub:hover .lc-selpub__thumb img { transform: scale(1.04); }

.lc-selpub__venue {
  color: var(--lc-accent);
  font-size: 13px;
  font-weight: 600;
}

.lc-selpub__title {
  margin-top: 4px;
  color: var(--lc-ink);
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.lc-selpub__title a { color: inherit; }
.lc-page .lc-selpub__title a:hover { color: var(--lc-accent); }

.lc-badge--cites { background: #ecfdf5; color: #047857; }

.lc-pub__sep {
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: var(--lc-line);
}

/* --------------------------------------------------------------------------
   Visitors
   -------------------------------------------------------------------------- */

.lc-visitors__card {
  padding: 24px;
  background: var(--lc-bg-soft);
}

.lc-visitors__map {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--lc-radius-md);
  overflow: hidden;
}

.lc-visitors__map img {
  display: block;
  width: 100%;
  height: auto;
}

.lc-visitors__map #mapmyvisitors-widget { display: block; margin: 0 auto; }

.lc-visitors__note {
  margin-top: 14px;
  color: var(--lc-muted);
  font-size: 13.5px;
  text-align: center;
}

.lc-visitors__todo {
  padding: 20px;
  border: 1px dashed var(--lc-line-strong);
  border-radius: var(--lc-radius-md);
  color: var(--lc-muted);
  font-size: 14.5px;
  text-align: center;
}

.lc-visitors__todo code { font-size: 13px; }

/* --------------------------------------------------------------------------
   CV page
   -------------------------------------------------------------------------- */

.lc-cvhead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-lg);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0)),
    linear-gradient(180deg, #ffffff 0%, var(--lc-bg-soft) 100%);
}

.lc-cvhead__photo {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--lc-line), var(--lc-shadow);
}

.lc-cvhead__name {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lc-cvhead__role {
  margin-top: 6px;
  color: var(--lc-text);
  font-size: 16.5px;
  font-weight: 500;
}

.lc-cvhead .lc-contact { margin-top: 16px; }

.lc-cvhead__actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  align-self: start;
}

.lc-cvhead__updated {
  color: var(--lc-muted);
  font-size: 13px;
}

.lc-cvbody {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  margin-top: 40px;
}

.lc-cvnav {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--lc-header-h) + 28px);
  align-self: start;
}

.lc-cvnav__title {
  margin-bottom: 10px;
  padding-left: 14px;
  color: var(--lc-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lc-cvnav ul {
  display: grid;
  gap: 2px;
  border-left: 2px solid var(--lc-line);
}

.lc-cvnav a {
  display: block;
  margin-left: -2px;
  padding: 7px 14px;
  border-left: 2px solid transparent;
  color: var(--lc-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lc-page .lc-cvnav a:hover { color: var(--lc-ink); }

.lc-page .lc-cvnav a.is-active {
  border-left-color: var(--lc-accent);
  color: var(--lc-accent);
  font-weight: 600;
}

.lc-cvnav__pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-left: 14px;
  font-size: 14px;
  font-weight: 600;
}

.lc-cv-section + .lc-cv-section {
  margin-top: 64px;
}

.lc-cv-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lc-line);
}

.lc-cv-section__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--lc-accent-soft);
  color: var(--lc-accent);
  font-size: 16px;
}

.lc-cv-section__title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lc-cv-section__count {
  margin-left: auto;
  color: var(--lc-faint);
  font-size: 14px;
  font-weight: 500;
}

.lc-subhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 36px 0 4px;
  color: var(--lc-ink);
  font-size: 17px;
  font-weight: 650;
}

.lc-subhead span { color: var(--lc-faint); font-size: 14px; font-weight: 500; }

/* Skills */
.lc-skilltable { overflow: hidden; }

.lc-skillrow {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px 20px;
  padding: 18px 24px;
}

.lc-skillrow + .lc-skillrow { border-top: 1px solid var(--lc-line); }

.lc-skillrow__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
}

.lc-skillrow__title i { width: 18px; color: var(--lc-accent); text-align: center; }

/* Awards (compact two-column list) */
.lc-awards {
  display: block;
  columns: 2 320px;
  column-gap: 40px;
}

.lc-award {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  break-inside: avoid;
}

.lc-award__year {
  padding-top: 2px;
  color: var(--lc-faint);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lc-award__text {
  color: var(--lc-text);
  font-size: 14.5px;
  line-height: 1.5;
}

.lc-award__title {
  color: var(--lc-ink);
  font-weight: 600;
}

.lc-award__meta {
  display: block;
  color: var(--lc-muted);
  font-size: 13px;
}

.lc-award__link {
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.lc-award__meta > .lc-award__link:first-child { margin-left: 0; }
.lc-award__link i { margin-left: 4px; font-size: 0.75em; }

/* Publication summary */
.lc-pubstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lc-pubstat {
  padding: 14px 16px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-md);
  background: var(--lc-bg-soft);
}

.lc-pubstat strong {
  display: block;
  color: var(--lc-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lc-pubstat span {
  display: block;
  margin-top: 2px;
  color: var(--lc-muted);
  font-size: 13px;
  font-weight: 500;
}

.lc-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 14px;
  color: var(--lc-muted);
  font-size: 13.5px;
}

.lc-legend .lc-me {
  color: var(--lc-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lc-accent-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.lc-legend a { font-weight: 600; }

/* Inventions */
.lc-numbered { display: grid; gap: 12px; }

.lc-numbered li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.lc-numbered__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lc-bg-muted);
  color: var(--lc-muted);
  font-size: 13px;
  font-weight: 700;
}

.lc-numbered__title {
  color: var(--lc-ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
}

.lc-numbered__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* Service */
.lc-grid--service { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }

.lc-service-card { padding: 22px 24px; }

.lc-plainlist.lc-plainlist--cols {
  display: block;
  columns: 3 220px;
  column-gap: 32px;
}

.lc-plainlist.lc-plainlist--cols li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.lc-service-card h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15.5px;
  font-weight: 650;
}

.lc-plainlist { display: grid; gap: 8px; }

.lc-plainlist li {
  position: relative;
  padding-left: 16px;
  color: var(--lc-text);
  font-size: 15px;
}

.lc-plainlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lc-faint);
}

/* Press */
.lc-press { display: grid; gap: 12px; }

.lc-press a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius-md);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lc-page .lc-press a:hover { border-color: var(--lc-accent-line); box-shadow: var(--lc-shadow); }

.lc-press__src {
  display: block;
  color: var(--lc-muted);
  font-size: 13px;
  font-weight: 600;
}

.lc-press__title {
  display: block;
  margin-top: 3px;
  color: var(--lc-ink);
  font-size: 15.5px;
  font-weight: 500;
}

.lc-press i { color: var(--lc-faint); }

.lc-note {
  margin-top: 40px;
  color: var(--lc-faint);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  #main.lc-page { font-size: 17px; }
}

@media (max-width: 1023px) {
  .lc-intro { grid-template-columns: minmax(0, 1fr) 180px; gap: 36px; }
  .lc-intro__photo { width: 180px; height: 180px; }
  .lc-grid--3 { grid-template-columns: minmax(0, 1fr); }

  .lc-cvbody { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }

  /* Section nav becomes a sticky, horizontally scrollable bar under the header */
  .lc-cvnav {
    top: var(--lc-header-h);
    z-index: 100;
    margin: 0 calc(-1 * var(--lc-gutter)) 28px;
    padding: 10px var(--lc-gutter);
    border-bottom: 1px solid var(--lc-line);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .lc-cvnav .lc-cvnav__title,
  .lc-cvnav .lc-cvnav__pdf { display: none; }

  .lc-cvnav ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-left: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lc-cvnav ul::-webkit-scrollbar { display: none; }

  .lc-cvnav a {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--lc-line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
  }

  .lc-page .lc-cvnav a.is-active {
    border-color: var(--lc-accent);
    background: var(--lc-accent);
    color: #fff;
  }

  html { scroll-padding-top: calc(var(--lc-header-h) + 76px); }
}

@media (max-width: 767px) {
  :root { --lc-gutter: 18px; }

  .lc-brand__mark { display: none; }

  .lc-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 32px;
  }

  .lc-intro__media { grid-row: 1; }
  .lc-intro__photo { width: 112px; height: 112px; border-width: 4px; }
  .lc-intro__role { font-size: 16.5px; }
  .lc-intro__actions .lc-btn { flex: 1 1 auto; }
  .lc-intro__actions .lc-contact { width: 100%; }

  .lc-section,
  .lc-home .lc-section { padding-top: 48px; }
  .lc-section__title { font-size: 23px; }
  .lc-prose { font-size: 16px; line-height: 1.75; }

  .lc-tl-item { padding-left: 30px; }
  .lc-tl-head { flex-direction: column; }
  .lc-tl-date { order: -1; margin-bottom: 2px; font-size: 13px; }

  .lc-pub { grid-template-columns: minmax(0, 1fr); }
  .lc-selpub { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  .lc-pub__label { padding-top: 0; }

  /* Photo beside the name; contact chips and the PDF button span the full width below */
  .lc-cvhead {
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 0;
    align-items: start;
    margin-top: 24px;
    padding: 22px 20px;
  }

  .lc-cvhead__main { display: contents; }
  .lc-cvhead__photo { grid-row: 1 / span 3; align-self: center; width: 68px; height: 68px; border-width: 3px; }
  .lc-cvhead .lc-eyebrow,
  .lc-cvhead__name,
  .lc-cvhead__role { grid-column: 2; }
  .lc-cvhead .lc-eyebrow { font-size: 12px; }
  .lc-cvhead__name { margin-top: 2px; font-size: 24px; }
  .lc-cvhead__role { margin-top: 2px; font-size: 14.5px; }
  .lc-cvhead .lc-contact { grid-column: 1 / -1; margin-top: 18px; gap: 6px; }
  .lc-cvhead .lc-contact--chips a { padding: 5px 10px; font-size: 13px; }
  .lc-cvhead__actions { grid-column: 1 / -1; justify-items: start; margin-top: 16px; }
  .lc-cvhead__actions .lc-btn { width: 100%; }

  .lc-skillrow { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
  .lc-grid--service { grid-template-columns: minmax(0, 1fr); }
  .lc-service-card { padding: 20px; }

  .lc-pubstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .lc-award { grid-template-columns: 54px minmax(0, 1fr); }

  .lc-cv-section__title { font-size: 21px; }

  .back-to-top { right: 16px; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   Print (CV prints cleanly; the PDF remains the canonical version)
   -------------------------------------------------------------------------- */

@media print {
  .masthead,
  .page__footer,
  .lc-cvnav,
  .lc-cvhead__actions,
  .back-to-top,
  .lc-visitors { display: none !important; }

  #main.lc-page { max-width: none; padding: 0; font-size: 11pt; }
  .lc-cvhead { margin-top: 0; padding: 0 0 12pt; border: 0; border-radius: 0; background: none; }
  .lc-cvbody { display: block; margin-top: 12pt; }
  .lc-card { box-shadow: none; }
  .lc-cv-section { break-inside: auto; }
  .lc-tl-item,
  .lc-pub,
  .lc-award { break-inside: avoid; }
  .lc-page a { color: inherit; }
}
