/* ==========================================================
   Editorial reset
   A restrained academic system loaded after the legacy theme.
   ========================================================== */

:root,
[data-theme="light"] {
  --site-accent: #2f7380;
  --site-accent-soft: rgba(47, 115, 128, 0.08);
  --site-bg: #ffffff;
  --site-surface: #ffffff;
  --site-text: #24292b;
  --site-muted: #687074;
  --site-border: rgba(36, 41, 43, 0.14);
  --site-radius: 4px;
  --site-shadow: 0 2px 10px rgba(25, 35, 38, 0.055);

  --claude-bg: var(--site-bg);
  --claude-paper: var(--site-surface);
  --claude-paper-rgb: 255, 255, 255;
  --claude-text: var(--site-text);
  --claude-accent: var(--site-accent);
  --claude-jade: var(--site-accent);
  --claude-blue: var(--site-accent);
  --claude-primary: var(--site-accent);
  --claude-teal: var(--site-accent);
  --claude-accent-soft: var(--site-accent-soft);
  --claude-secondary: var(--site-muted);
  --claude-border: var(--site-border);
  --claude-footer-border: var(--site-border);
  --claude-card-shadow: rgba(25, 35, 38, 0.055);
  --claude-social-bg: var(--site-surface);
  --claude-social-text: var(--site-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --site-accent: #88c4cf;
    --site-accent-soft: rgba(136, 196, 207, 0.10);
    --site-bg: #121617;
    --site-surface: #171c1e;
    --site-text: #e9ecec;
    --site-muted: #aab2b4;
    --site-border: rgba(233, 236, 236, 0.14);
    --site-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);

    --claude-bg: var(--site-bg);
    --claude-paper: var(--site-surface);
    --claude-paper-rgb: 23, 28, 30;
    --claude-text: var(--site-text);
    --claude-accent: var(--site-accent);
    --claude-jade: var(--site-accent);
    --claude-blue: var(--site-accent);
    --claude-primary: var(--site-accent);
    --claude-teal: var(--site-accent);
    --claude-accent-soft: var(--site-accent-soft);
    --claude-secondary: var(--site-muted);
    --claude-border: var(--site-border);
    --claude-footer-border: var(--site-border);
    --claude-card-shadow: rgba(0, 0, 0, 0.16);
    --claude-social-bg: var(--site-surface);
    --claude-social-text: var(--site-text);
  }
}

[data-theme="dark"] {
  --site-accent: #88c4cf;
  --site-accent-soft: rgba(136, 196, 207, 0.10);
  --site-bg: #121617;
  --site-surface: #171c1e;
  --site-text: #e9ecec;
  --site-muted: #aab2b4;
  --site-border: rgba(233, 236, 236, 0.14);
  --site-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);

  --claude-bg: var(--site-bg);
  --claude-paper: var(--site-surface);
  --claude-paper-rgb: 23, 28, 30;
  --claude-text: var(--site-text);
  --claude-accent: var(--site-accent);
  --claude-jade: var(--site-accent);
  --claude-blue: var(--site-accent);
  --claude-primary: var(--site-accent);
  --claude-teal: var(--site-accent);
  --claude-accent-soft: var(--site-accent-soft);
  --claude-secondary: var(--site-muted);
  --claude-border: var(--site-border);
  --claude-footer-border: var(--site-border);
  --claude-card-shadow: rgba(0, 0, 0, 0.16);
  --claude-social-bg: var(--site-surface);
  --claude-social-text: var(--site-text);
}

body.theme-claude {
  background: var(--site-bg);
  color: var(--site-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  transition: none;
}

body.theme-claude h1,
body.theme-claude h2,
body.theme-claude h3,
body.theme-claude h4 {
  color: var(--site-text);
}

body.theme-claude :focus-visible {
  border-radius: var(--site-radius);
  outline: 2px solid var(--site-accent);
  outline-offset: 3px;
}

body.theme-claude a {
  transition: color 140ms ease;
}

/* ---------- Navigation ---------- */

body.theme-claude .top-nav {
  background: rgba(var(--claude-paper-rgb), 0.97);
  border-bottom: 1px solid var(--site-border);
  box-shadow: none;
  height: 64px;
}

body.theme-claude .nav-container {
  max-width: 1120px;
  padding: 0 32px;
}

body.theme-claude .nav-left {
  align-items: center;
  display: flex;
  gap: 25px;
}

body.theme-claude .nav-left > a,
body.theme-claude .nav-left > a:not(:first-child),
body.theme-claude .nav-more > summary {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--site-text);
  cursor: pointer;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  padding: 9px 0 8px;
  text-decoration: none;
}

body.theme-claude .nav-left > a::after {
  display: none;
}

body.theme-claude .nav-left > a:hover,
body.theme-claude .nav-left > a:not(:first-child):hover,
body.theme-claude .nav-more > summary:hover {
  background: transparent;
  color: var(--site-accent);
}

body.theme-claude .nav-left > a.nav-active,
body.theme-claude .nav-left > a:not(:first-child).nav-active,
body.theme-claude .nav-more-active > summary {
  background: transparent;
  border-bottom-color: var(--site-accent);
  color: var(--site-accent);
}

body.theme-claude .nav-more {
  position: relative;
}

body.theme-claude .nav-more > summary {
  align-items: center;
  display: flex;
  gap: 6px;
  list-style: none;
}

body.theme-claude .nav-more > summary::-webkit-details-marker {
  display: none;
}

body.theme-claude .nav-more > summary::after {
  content: "⌄";
  font-size: 12px;
  line-height: 1;
}

body.theme-claude .nav-more-menu {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  display: grid;
  gap: 2px;
  left: -14px;
  min-width: 150px;
  padding: 7px;
  position: absolute;
  top: calc(100% + 9px);
}

body.theme-claude .nav-more:not([open]) .nav-more-menu {
  display: none;
}

body.theme-claude .nav-more-menu a,
body.theme-claude .nav-more-menu a.nav-active {
  background: transparent;
  border: 0;
  border-radius: var(--site-radius);
  color: var(--site-text);
  font-size: 13.5px;
  font-weight: 550;
  margin: 0;
  padding: 8px 9px;
  text-decoration: none;
}

body.theme-claude .nav-more-menu a:hover,
body.theme-claude .nav-more-menu a.nav-active {
  background: var(--site-accent-soft);
  color: var(--site-accent);
}

body.theme-claude .language-flag,
body.theme-claude .nav-right .theme-toggle,
body.theme-claude .hamburger {
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
  transform: none;
  transition: color 140ms ease, border-color 140ms ease;
}

body.theme-claude .language-flag:hover,
body.theme-claude .nav-right .theme-toggle:hover,
body.theme-claude .hamburger:hover {
  background: transparent;
  border-color: var(--site-accent);
  color: var(--site-accent);
  transform: none;
}

/* ---------- Homepage ---------- */

body.theme-claude.home-page .wrapper {
  display: block;
  max-width: 1120px;
  min-height: 0;
}

body.theme-claude.home-page .content {
  margin: 0;
  padding: 64px 32px 96px;
}

body.theme-claude .home-hero {
  box-sizing: border-box;
  display: grid;
  isolation: isolate;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  place-items: center;
  position: relative;
  width: 100vw;
}

body.theme-claude .home-hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(44px, 7vw, 80px);
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  width: calc(100% - 64px);
  z-index: 1;
}

body.theme-claude .home-research-canvas {
  height: 100%;
  inset: 0;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

body.theme-claude .home-portrait {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  display: block;
  height: 270px;
  object-fit: cover;
  width: 220px;
}

body.theme-claude .home-hero-copy h1 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 24px;
}

body.theme-claude .home-hero-copy h1 span {
  color: var(--site-muted);
  display: block;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-top: 12px;
}

body.theme-claude .home-hero-copy > p {
  color: var(--site-muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

body.theme-claude .home-email {
  appearance: none;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--site-accent) 42%, transparent);
  color: var(--site-muted);
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 18px;
  padding: 0;
  text-decoration: none;
}

body.theme-claude .home-email:hover {
  color: var(--site-accent);
}

body.theme-claude .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

body.theme-claude .home-scroll-cue {
  align-items: center;
  bottom: 14px;
  color: var(--site-muted);
  display: flex;
  flex-direction: column;
  font-size: 9px;
  font-weight: 600;
  gap: 5px;
  left: 50%;
  letter-spacing: 0.16em;
  position: absolute;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 2;
}

body.theme-claude .home-scroll-cue:hover {
  color: var(--site-accent);
}

body.theme-claude .home-scroll-cue i {
  display: block;
  height: 22px;
  position: relative;
  width: 12px;
}

body.theme-claude .home-scroll-cue i::before {
  animation: home-scroll-cue 1.8s ease-in-out infinite;
  background: currentColor;
  content: "";
  height: 17px;
  left: 50%;
  opacity: 0.65;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
}

body.theme-claude .home-scroll-cue i::after {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  bottom: 1px;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
}

@keyframes home-scroll-cue {
  0%,
  100% {
    opacity: 0.25;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, 4px);
  }
}

body.theme-claude .home-action {
  align-items: center;
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  color: var(--site-text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
  transform: none;
  transition: color 140ms ease, border-color 140ms ease;
}

body.theme-claude .home-action:hover {
  background: transparent;
  border-color: var(--site-accent);
  color: var(--site-accent);
  transform: none;
}

body.theme-claude .home-action-primary,
body.theme-claude .home-action-primary:hover {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-bg);
}

body.theme-claude.home-page .section {
  margin: 0 auto 72px;
  max-width: 820px;
  opacity: 1;
  transform: none;
  transition: none;
}

body.theme-claude.home-page .section:first-of-type {
  padding-top: 18px;
  scroll-margin-top: 82px;
}

body.theme-claude .section-title,
body.theme-claude .section.is-collapsible .section-title {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--site-border);
  color: var(--site-text);
  cursor: default;
  display: block;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding: 0 0 11px;
  text-transform: none;
  transform: none;
}

body.theme-claude .section-title::before,
body.theme-claude .section-title::after {
  display: none;
}

body.theme-claude .section-body {
  color: var(--site-text);
  max-width: none;
}

body.theme-claude .section-body a {
  color: var(--site-text);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--site-accent) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.theme-claude .section-body a:hover {
  color: var(--site-accent);
  filter: none;
}

/* Plain research list: no cards, icons, numbers, or related-essay blocks. */
body.theme-claude #interests .section-title {
  border-bottom: 0;
  margin-bottom: 18px;
  padding-bottom: 0;
}

body.theme-claude .research-list {
  border: 0;
  display: grid;
  gap: 12px;
}

body.theme-claude .research-item {
  border: 0;
  display: block;
  padding: 0;
}

body.theme-claude .research-item h4 {
  display: inline;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
}

body.theme-claude .research-item h4::after {
  color: var(--site-muted);
  content: " — ";
  font-weight: 400;
}

body.theme-claude .research-item p {
  color: var(--site-muted);
  display: inline;
  font-size: 15.5px;
  margin: 0;
}

/* ---------- Restrained content components ---------- */

body.theme-claude .news-list {
  display: block;
}

body.theme-claude .news-card,
body.theme-claude .news-card:first-child,
body.theme-claude .timeline-item {
  background: transparent;
  border: 0 !important;
  border-bottom: 1px solid var(--site-border) !important;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 18px 0;
  transform: none;
  transition: none;
}

body.theme-claude .news-card:hover,
body.theme-claude .timeline-item:hover {
  border-color: var(--site-border) !important;
  box-shadow: none;
  transform: none;
}

body.theme-claude .news-card strong {
  color: var(--site-accent);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: inherit;
  letter-spacing: 0;
}

body.theme-claude .timeline-item {
  margin-left: 0;
}

body.theme-claude .timeline-item::before,
body.theme-claude .timeline-item::after {
  display: none;
}

body.theme-claude .experience-item {
  align-items: flex-start;
  gap: 18px;
}

body.theme-claude .institution-logo {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
}

body.theme-claude .action-links a {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--site-text);
  padding-left: 0;
  padding-right: 0;
  transform: none;
  transition: color 140ms ease;
}

body.theme-claude .action-links a:hover {
  color: var(--site-accent);
  transform: none;
}

body.theme-claude .materials-grid {
  gap: 10px;
}

body.theme-claude .material-link {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  color: var(--site-text);
  transform: none;
  transition: color 140ms ease, border-color 140ms ease;
}

body.theme-claude .material-link::after {
  display: none;
}

body.theme-claude .material-link:hover {
  background: var(--site-surface);
  border-color: var(--site-accent);
  box-shadow: var(--site-shadow);
  color: var(--site-accent);
  transform: none;
}

body.theme-claude .material-link-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--site-accent);
  transform: none;
  transition: none;
}

/* ---------- Interior pages ---------- */

body.theme-claude .page-wrapper {
  max-width: 1040px;
  padding: 112px 32px 72px;
}

body.theme-claude .page-main {
  padding: 0;
}

body.theme-claude .publications-hero-photo img,
body.theme-claude .talks-hero-photo img,
body.theme-claude .teaching-hero-photo img,
body.theme-claude .cv-hero-photo img,
body.theme-claude .essay-hero img,
body.theme-claude .project-card,
body.theme-claude .essay-card,
body.theme-claude .lab-card,
body.theme-claude .photo-card,
body.theme-claude .cv-portrait {
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  transform: none;
  transition: none;
}

body.theme-claude .project-card:hover,
body.theme-claude .essay-card:hover,
body.theme-claude .lab-card:hover,
body.theme-claude .photo-card:hover {
  box-shadow: var(--site-shadow);
  transform: none;
}

/* ---------- PMA pages ---------- */

body.theme-claude.pma-page .pma-breadcrumb,
body.theme-claude.pma-page .pma-hero-label,
body.theme-claude.pma-page .pma-hero-links a,
body.theme-claude.pma-page .info-box,
body.theme-claude.pma-page .alert,
body.theme-claude.pma-page .course-info-card,
body.theme-claude.pma-page [class*="card"],
body.theme-claude.pma-page [class*="badge"] {
  border-radius: var(--site-radius);
}

body.theme-claude.pma-page .pma-hero-label,
body.theme-claude.pma-page .info-box {
  background: var(--site-accent-soft);
}

body.theme-claude.pma-page .pma-hero-links a,
body.theme-claude.pma-page [class*="card"] {
  box-shadow: var(--site-shadow);
  transform: none;
  transition: color 140ms ease, border-color 140ms ease;
}

body.theme-claude.pma-page .pma-hero-links a:hover,
body.theme-claude.pma-page [class*="card"]:hover {
  box-shadow: var(--site-shadow);
  transform: none;
}

/* ---------- Footer and utility controls ---------- */

body.theme-claude .site-footer {
  border-top: 1px solid var(--site-border);
}

body.theme-claude .site-footer p::before {
  display: none;
}

body.theme-claude .footer-links a {
  transition: color 140ms ease;
}

body.theme-claude .back-to-top {
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  transform: none;
  transition: color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

body.theme-claude .back-to-top.is-visible,
body.theme-claude .back-to-top:hover {
  transform: none;
}

/* One component shape and one deliberately faint elevation level. */
body.theme-claude :where(
  button,
  [class*="card"],
  [class*="badge"],
  [class*="chip"],
  [class*="pill"],
  .social-icons a,
  .image.avatar img,
  .pma-breadcrumb,
  .pma-hero-label,
  .info-box,
  .alert
) {
  border-radius: var(--site-radius) !important;
}

body.theme-claude :where([class*="card"]) {
  box-shadow: var(--site-shadow);
}

body.theme-claude :where([class*="card"]):hover {
  box-shadow: var(--site-shadow);
  transform: none;
}

/* Cancel decorative reveal/lift/scale motion from legacy layers. */
.js body.theme-claude .section:not(.visible),
body.theme-claude .section,
body.theme-claude .card,
body.theme-claude .image.avatar img,
body.theme-claude .social-icons a,
body.theme-claude .profile-action,
body.theme-claude .research-direction,
body.theme-claude .research-direction-icon,
body.theme-claude .material-link,
body.theme-claude .timeline-item,
body.theme-claude .news-card {
  animation: none;
  opacity: 1;
  transform: none;
}

body.theme-claude .image.avatar:hover img,
body.theme-claude .social-icons a:hover,
body.theme-claude .profile-action:hover,
body.theme-claude .research-direction:hover,
body.theme-claude .research-direction:hover .research-direction-icon,
body.theme-claude .material-link:hover,
body.theme-claude .timeline-item:hover,
body.theme-claude .news-card:hover {
  transform: none;
}

body.theme-claude .mock-highlight {
  animation: none;
  background: var(--site-accent-soft);
}

/* Links may change colour; decorative components no longer glide, lift or scale. */
body.theme-claude :where(
  button,
  summary,
  .hamburger-line,
  .contact-toast,
  [class*="card"],
  [class*="badge"],
  [class*="chip"],
  [class*="pill"],
  .section,
  .section-body,
  .home-portrait,
  .institution-logo,
  .social-icons a,
  .image.avatar img
) {
  transition: none !important;
}

body.theme-claude a {
  transition: color 140ms ease !important;
}

@media (max-width: 760px) {
  body.theme-claude .nav-container {
    padding: 0 18px;
  }

  body.theme-claude .home-hero-inner {
    gap: 32px;
    grid-template-columns: 150px minmax(0, 1fr);
  }

  body.theme-claude .home-portrait {
    height: 190px;
    width: 150px;
  }

  body.theme-claude .home-hero-copy h1 {
    font-size: clamp(34px, 8vw, 46px);
  }
}

@media (max-width: 640px) {
  body.theme-claude .top-nav {
    height: 56px;
  }

  body.theme-claude .mobile-brand {
    color: var(--site-text);
    display: inline-flex;
    font-family: "Noto Serif SC", Georgia, serif;
  }

  body.theme-claude .mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.28);
    top: 56px;
    transition: none;
  }

  body.theme-claude .mobile-nav-panel {
    border-color: var(--site-border);
    box-shadow: var(--site-shadow);
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.theme-claude .mobile-nav-overlay.is-open .mobile-nav-panel {
    opacity: 1;
    transform: none;
  }

  body.theme-claude .mobile-nav-panel a {
    transition: color 140ms ease;
  }

  body.theme-claude .mobile-nav-panel a:hover,
  body.theme-claude .mobile-nav-panel a:active {
    padding-left: 0;
  }

  body.theme-claude .mobile-nav-more {
    border-bottom: 1px solid var(--site-border);
  }

  body.theme-claude .mobile-nav-more > summary {
    color: var(--site-text);
    cursor: pointer;
    font-size: 15px;
    font-weight: 650;
    list-style: none;
    padding: 13px 0;
  }

  body.theme-claude .mobile-nav-more > summary::-webkit-details-marker {
    display: none;
  }

  body.theme-claude .mobile-nav-more > summary::after {
    color: var(--site-muted);
    content: "⌄";
    float: right;
  }

  body.theme-claude .mobile-nav-more[open] > summary::after {
    content: "⌃";
  }

  body.theme-claude .mobile-nav-more div {
    border-left: 1px solid var(--site-border);
    margin: 0 0 10px 4px;
    padding-left: 14px;
  }

  body.theme-claude .mobile-nav-more div a {
    font-size: 14px;
    padding: 10px 0;
  }

  body.theme-claude.home-page .content {
    padding: 56px 22px 72px;
  }

  body.theme-claude .home-hero-inner {
    align-content: center;
    display: flex;
    flex-direction: column;
    gap: 26px;
    justify-content: center;
    text-align: center;
    width: calc(100% - 44px);
  }

  body.theme-claude .home-hero {
    min-height: calc(100svh - 56px);
  }

  body.theme-claude .home-portrait {
    height: 184px;
    width: 148px;
  }

  body.theme-claude .home-hero-copy h1 {
    font-size: 36px;
    margin-bottom: 18px;
  }

  body.theme-claude .home-hero-copy h1 span {
    margin-top: 9px;
  }

  body.theme-claude .home-hero-copy > p {
    font-size: 17px;
  }

  body.theme-claude .home-hero-actions {
    justify-content: center;
    margin-top: 25px;
  }

  body.theme-claude.home-page .section {
    margin-bottom: 56px;
  }

  body.theme-claude .section-title,
  body.theme-claude .section.is-collapsible .section-title {
    font-size: 22px;
  }

  body.theme-claude .page-wrapper {
    padding: 88px 20px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-claude *,
  body.theme-claude *::before,
  body.theme-claude *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body.theme-claude .home-scroll-cue i::before {
    animation: none;
  }
}

/* ==========================================================
   Interior pages
   One quiet editorial language across the academic site.
   ========================================================== */

body.theme-claude.interior-page .page-wrapper {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1040px;
  min-height: 100svh;
  padding: 112px 32px 88px;
  width: 100%;
}

body.theme-claude.interior-page .page-main {
  margin: 0;
  padding: 0;
  width: 100%;
}

body.theme-claude .publications-page,
body.theme-claude .teaching-page,
body.theme-claude .talks-page,
body.theme-claude .cv-page,
body.theme-claude .mathreader-page {
  margin: 0 auto;
  max-width: 900px;
}

body.theme-claude .notebook-page {
  margin: 0 auto;
  max-width: 960px;
}

/* ---------- Shared page introductions ---------- */

body.theme-claude .publications-hero,
body.theme-claude .teaching-hero,
body.theme-claude .talks-hero,
body.theme-claude .cv-hero {
  align-items: end;
  border-bottom: 1px solid var(--site-border);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 240px;
  margin: 0 0 44px;
  padding: 0 0 34px;
}

body.theme-claude .publications-hero-copy,
body.theme-claude .teaching-hero-copy,
body.theme-claude .talks-hero-copy,
body.theme-claude .cv-hero-copy,
body.theme-claude .notebook-hero-copy,
body.theme-claude .notebook-detail-hero {
  border-left: 0;
  max-width: 680px;
  padding-left: 0;
}

body.theme-claude .publications-kicker,
body.theme-claude .teaching-kicker,
body.theme-claude .talks-kicker,
body.theme-claude .cv-kicker,
body.theme-claude .notebook-kicker,
body.theme-claude .mathreader-kicker {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--site-accent);
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
  margin: 0 0 13px;
  padding: 0;
  text-transform: uppercase;
}

body.theme-claude .publications-hero h1,
body.theme-claude .teaching-hero h1,
body.theme-claude .talks-hero h1,
body.theme-claude .cv-hero h1,
body.theme-claude .notebook-hero h1,
body.theme-claude .notebook-detail-hero h1,
body.theme-claude .mathreader-hero h1 {
  color: var(--site-text);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(36px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 760px;
}

body.theme-claude .publications-lede,
body.theme-claude .teaching-lede,
body.theme-claude .talks-lede,
body.theme-claude .cv-lede,
body.theme-claude .notebook-lede,
body.theme-claude .mathreader-lead {
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 650px;
}

body.theme-claude .publications-hero-photo,
body.theme-claude .teaching-hero-photo,
body.theme-claude .talks-hero-photo {
  justify-self: end;
  margin: 0;
  max-width: 240px;
  width: 100%;
}

body.theme-claude .publications-hero-photo img,
body.theme-claude .teaching-hero-photo img,
body.theme-claude .talks-hero-photo img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
  display: block;
  filter: none;
  object-fit: cover;
  width: 100%;
}

body.theme-claude .cv-hero {
  grid-template-columns: minmax(0, 1fr) 190px;
}

body.theme-claude .talks-page .talks-hero {
  display: block;
}

body.theme-claude .talks-page .talks-hero-copy {
  max-width: 780px;
}

body.theme-claude .cv-hero-photo {
  justify-self: end;
  margin: 0;
  max-width: 190px;
  width: 100%;
}

body.theme-claude .cv-hero-photo img {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
  filter: none;
  object-fit: cover;
  width: 100%;
}

body.theme-claude .publications-hero-photo figcaption,
body.theme-claude .teaching-hero-photo figcaption,
body.theme-claude .talks-hero-photo figcaption,
body.theme-claude .cv-hero-photo figcaption {
  color: var(--site-muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 8px;
  text-align: left;
}

body.theme-claude .cv-hero-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 21px;
}

body.theme-claude .cv-hero-meta span {
  border: 0;
  border-radius: 0;
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
}

body.theme-claude .cv-hero-meta span + span::before {
  color: var(--site-border);
  content: "·";
  margin: 0 9px;
}

body.theme-claude .cv-section-title,
body.theme-claude .teaching-period-title,
body.theme-claude .notebook-section-title,
body.theme-claude .mathreader-section h2 {
  border: 0;
  border-bottom: 1px solid var(--site-border);
  color: var(--site-text);
  display: block;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding: 0 0 10px;
}

/* ---------- Publications, teaching, talks and CV ---------- */

body.theme-claude .empty-state-card {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--site-border);
  border-radius: 0;
  border-top: 1px solid var(--site-border);
  box-shadow: none;
  margin: 0;
  max-width: none;
  padding: 34px 0;
  text-align: left;
}

body.theme-claude .empty-state-card:hover {
  border-color: var(--site-border);
}

body.theme-claude .empty-state-icon {
  color: var(--site-accent);
  font-size: 22px;
  margin-bottom: 13px;
}

body.theme-claude .empty-state-title {
  color: var(--site-text);
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 6px;
}

body.theme-claude .empty-state-desc {
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
}

body.theme-claude .experience-container {
  display: block;
}

body.theme-claude .exp-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--site-border);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 24px 0;
}

body.theme-claude .exp-card:first-child {
  border-top: 1px solid var(--site-border);
}

body.theme-claude .exp-card::before {
  display: none;
}

body.theme-claude .exp-card:hover {
  box-shadow: none;
  transform: none;
}

body.theme-claude .exp-header {
  gap: 16px;
  margin-bottom: 11px;
}

body.theme-claude .exp-role {
  color: var(--site-text);
  font-size: 16px;
  font-weight: 650;
}

body.theme-claude .exp-org {
  color: var(--site-muted);
  font-size: 14px;
  font-weight: 500;
}

body.theme-claude .exp-org .speaker-name {
  color: var(--site-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--site-accent) 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.theme-claude .exp-org a.speaker-name:hover {
  text-decoration-color: var(--site-accent);
}

body.theme-claude .exp-org .speaker-affiliation {
  color: var(--site-muted);
  font-weight: 500;
}

body.theme-claude .exp-date {
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  color: var(--site-muted);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0;
  padding: 4px 7px;
  text-transform: none;
}

body.theme-claude .exp-details {
  gap: 5px;
}

body.theme-claude .exp-details li {
  color: var(--site-muted);
  font-size: 14.5px;
  line-height: 1.65;
  padding-left: 16px;
}

body.theme-claude .exp-details li::before {
  color: var(--site-accent);
  content: "·";
  font-size: 18px;
  font-weight: 700;
  top: -1px;
}

body.theme-claude .cv-page .section-body {
  border-top: 1px solid var(--site-border);
}

body.theme-claude .cv-page .timeline-item {
  background: transparent;
  border: 0 !important;
  border-bottom: 1px solid var(--site-border) !important;
  border-radius: 0;
  box-shadow: none;
  padding: 21px 0;
}

body.theme-claude .cv-page .institution-logo {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
  height: 48px;
  object-fit: contain;
  width: 48px;
}

body.theme-claude .cv-page .exp-title {
  color: var(--site-text);
  font-size: 15.5px;
  margin-bottom: 2px;
}

body.theme-claude .cv-page .exp-detail,
body.theme-claude .cv-page .exp-period,
body.theme-claude .cv-page li {
  color: var(--site-muted);
  font-size: 14px;
}

/* The CV reads as a document, not a collection of profile cards. */
body.theme-claude .cv-document {
  max-width: 820px;
}

body.theme-claude .cv-document-header {
  border-bottom: 1px solid var(--site-border);
  margin-bottom: 46px;
  padding-bottom: 32px;
}

body.theme-claude .cv-document-header h1 {
  color: var(--site-text);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(36px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 14px;
}

body.theme-claude .cv-profile-line {
  align-items: center;
  color: var(--site-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  margin-top: 22px;
}

body.theme-claude .cv-profile-line span + span::before {
  color: var(--site-border);
  content: "·";
  margin: 0 9px;
}

body.theme-claude .cv-document-section h2 {
  border-bottom: 1px solid var(--site-border);
  color: var(--site-text);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0 0 10px;
}

body.theme-claude .cv-entry {
  border-bottom: 1px solid var(--site-border);
  display: grid;
  gap: 34px;
  grid-template-columns: 126px minmax(0, 1fr);
  padding: 24px 0 25px;
}

body.theme-claude .cv-entry time {
  color: var(--site-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.55;
  padding-top: 3px;
}

body.theme-claude .cv-entry-content h3 {
  color: var(--site-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 0 4px;
}

body.theme-claude .cv-entry-content p {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 4px 0 0;
}

body.theme-claude .cv-entry-content .cv-institution {
  color: var(--site-text);
  font-weight: 500;
}

body.theme-claude .cv-status {
  border: 1px solid var(--site-border);
  border-radius: 999px;
  color: var(--site-accent);
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  margin-left: 7px;
  padding: 2px 6px;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ---------- Notebook and related indexes ---------- */

body.theme-claude .notebook-hero {
  border-bottom: 1px solid var(--site-border);
  margin: 0 0 34px;
  padding: 0 0 32px;
}

body.theme-claude .notebook-detail-hero {
  border-bottom: 1px solid var(--site-border);
  margin: 0 0 28px;
  padding: 0 0 28px;
}

body.theme-claude .notebook-grid,
body.theme-claude .lab-grid,
body.theme-claude .photo-journal-grid {
  gap: 12px;
}

body.theme-claude .notebook-card,
body.theme-claude .lab-card,
body.theme-claude .notebook-placeholder,
body.theme-claude .photo-journal-card,
body.theme-claude .essay-card,
body.theme-claude .project-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
}

body.theme-claude .notebook-card,
body.theme-claude .lab-card {
  min-height: 0;
  padding: 21px;
}

body.theme-claude .notebook-card:hover,
body.theme-claude .lab-card:hover,
body.theme-claude .essay-card:hover,
body.theme-claude .project-card:hover {
  border-color: var(--site-accent);
  box-shadow: none;
  transform: none;
}

body.theme-claude .notebook-card-kicker {
  color: var(--site-accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  margin-bottom: 10px;
}

body.theme-claude .notebook-card h2,
body.theme-claude .lab-card h2,
body.theme-claude .notebook-placeholder h2 {
  color: var(--site-text);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 9px;
}

body.theme-claude .notebook-card p,
body.theme-claude .lab-card p,
body.theme-claude .notebook-placeholder p {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
}

body.theme-claude .notebook-card-tags {
  gap: 10px;
  padding-top: 18px;
}

body.theme-claude .notebook-card-tags span {
  border: 0;
  border-radius: 0;
  color: var(--site-muted);
  font-size: 11px;
  padding: 0;
}

body.theme-claude .notebook-card-tags span + span::before {
  color: var(--site-border);
  content: "·";
  margin-right: 10px;
}

body.theme-claude .notebook-card-action {
  color: var(--site-accent);
  font-size: 12px;
  margin-top: 17px;
}

/* ---------- MathReader ---------- */

body.theme-claude .mathreader-hero {
  align-items: center;
  border-bottom: 1px solid var(--site-border);
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
  padding: 0 0 38px;
}

body.theme-claude .mathreader-actions {
  gap: 9px;
  margin-top: 22px;
}

body.theme-claude .mathreader-actions a,
body.theme-claude .mathreader-status a {
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  color: var(--site-text);
  min-height: 39px;
  padding: 0 13px;
}

body.theme-claude .mathreader-actions a:first-child {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-bg);
}

body.theme-claude .mathreader-actions a:hover,
body.theme-claude .mathreader-status a:hover {
  background: transparent;
  border-color: var(--site-accent);
  color: var(--site-accent);
  transform: none;
}

body.theme-claude .mathreader-actions a:first-child:hover {
  background: var(--site-accent);
  color: var(--site-bg);
}

body.theme-claude .mathreader-window {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
}

body.theme-claude .mathreader-window:hover {
  box-shadow: none;
  transform: none;
}

body.theme-claude .mathreader-place-photo {
  margin-top: 34px;
  max-width: 700px;
}

body.theme-claude .mathreader-place-photo img {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
  filter: none;
}

body.theme-claude .mathreader-section {
  margin-top: 46px;
}

body.theme-claude .mathreader-feature-grid,
body.theme-claude .mathreader-detail-grid {
  gap: 10px;
}

body.theme-claude .mathreader-feature,
body.theme-claude .mathreader-detail-grid > div {
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: 18px;
}

body.theme-claude .mathreader-feature:hover,
body.theme-claude .mathreader-detail-grid > div:hover {
  border-color: var(--site-border);
  transform: none;
}

body.theme-claude .mathreader-feature i {
  color: var(--site-accent);
  font-size: 18px;
}

body.theme-claude .mathreader-feature h3,
body.theme-claude .mathreader-detail-grid h3,
body.theme-claude .mathreader-step h3 {
  color: var(--site-text);
  font-size: 15px;
  font-weight: 650;
}

body.theme-claude .mathreader-feature p,
body.theme-claude .mathreader-detail-grid p,
body.theme-claude .mathreader-step p,
body.theme-claude .mathreader-status p {
  color: var(--site-muted);
}

body.theme-claude .mathreader-workflow {
  border-left: 1px solid var(--site-border);
}

body.theme-claude .mathreader-step::before {
  background: var(--site-accent);
  border-color: var(--site-bg);
}

body.theme-claude .mathreader-status {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--site-border);
  border-radius: 0;
  border-top: 1px solid var(--site-border);
  padding: 21px 0;
}

/* ---------- PMA guide ---------- */

body.theme-claude.pma-page .pma-campus-strip {
  height: clamp(120px, 12vw, 170px);
  margin-top: 64px;
}

body.theme-claude.pma-page .pma-campus-strip img {
  filter: saturate(0.78) contrast(0.98);
}

body.theme-claude.pma-page .pma-campus-caption {
  background: rgba(var(--claude-paper-rgb), 0.88);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  color: var(--site-text);
}

body.theme-claude.pma-page .pma-wrapper {
  max-width: 960px;
  padding: 30px 32px 80px;
}

body.theme-claude.pma-page .pma-breadcrumb {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: 34px;
  padding: 0;
}

body.theme-claude.pma-page .pma-hero {
  border-bottom: 1px solid var(--site-border);
  margin-bottom: 48px;
  padding-bottom: 34px;
}

body.theme-claude.pma-page .pma-hero::before {
  display: none;
}

body.theme-claude.pma-page .pma-hero-label {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--site-accent);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  margin-bottom: 13px;
  padding: 0;
}

body.theme-claude.pma-page .pma-hero h1 {
  color: var(--site-text);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.theme-claude.pma-page .pma-hero-links a,
body.theme-claude.pma-page .resource-btn,
body.theme-claude.pma-page .parcours-doc-link {
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
  color: var(--site-text);
  transform: none;
}

body.theme-claude.pma-page .pma-hero-links a:hover,
body.theme-claude.pma-page .resource-btn:hover,
body.theme-claude.pma-page .parcours-doc-link:hover {
  background: transparent;
  border-color: var(--site-accent);
  box-shadow: none;
  color: var(--site-accent);
  transform: none;
}

body.theme-claude.pma-page .pma-hero-links a:hover i,
body.theme-claude.pma-page .resource-btn:hover i {
  color: var(--site-accent);
}

body.theme-claude.pma-page .pma-section {
  margin-bottom: 48px;
}

body.theme-claude.pma-page .pma-section-title {
  border-bottom: 1px solid var(--site-border);
  color: var(--site-text);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  gap: 9px;
  padding-bottom: 10px;
}

body.theme-claude.pma-page .pma-section-title::before {
  display: none;
}

body.theme-claude.pma-page .pma-section-title i {
  color: var(--site-accent);
  font-size: 15px;
}

body.theme-claude.pma-page .info-box {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--site-accent);
  border-radius: 0;
  padding: 4px 0 4px 18px;
}

body.theme-claude.pma-page .alert {
  background: var(--site-accent-soft);
  border: 1px solid var(--site-border);
  border-left: 3px solid var(--site-accent);
  border-radius: var(--site-radius);
  color: var(--site-text);
}

body.theme-claude.pma-page .course-info-card,
body.theme-claude.pma-page .parcours-col,
body.theme-claude.pma-page .ue-item {
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: none;
}

body.theme-claude.pma-page .course-info-card:hover,
body.theme-claude.pma-page .parcours-col:hover,
body.theme-claude.pma-page .ue-item:hover {
  border-color: var(--site-border);
  box-shadow: none;
  transform: none;
}

body.theme-claude.pma-page .parcours-sem-header,
body.theme-claude.pma-page .parcours-sem-s1,
body.theme-claude.pma-page .parcours-sem-s2 {
  background: var(--site-accent-soft);
  border-bottom-color: var(--site-border);
}

body.theme-claude.pma-page .badge,
body.theme-claude.pma-page .pma-hero-label,
body.theme-claude.pma-page [class*="badge"] {
  border-radius: var(--site-radius) !important;
}

@media (max-width: 720px) {
  body.theme-claude.interior-page .page-wrapper {
    padding: 88px 20px 64px;
  }

  body.theme-claude .publications-hero,
  body.theme-claude .teaching-hero,
  body.theme-claude .talks-hero,
  body.theme-claude .cv-hero {
    align-items: start;
    gap: 24px;
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }

  body.theme-claude .publications-hero-photo,
  body.theme-claude .teaching-hero-photo,
  body.theme-claude .talks-hero-photo,
  body.theme-claude .cv-hero-photo {
    justify-self: start;
    max-width: 260px;
  }

  body.theme-claude .cv-entry {
    gap: 7px;
    grid-template-columns: 1fr;
    padding: 21px 0 22px;
  }

  body.theme-claude .cv-entry time {
    padding-top: 0;
  }

  body.theme-claude .cv-profile-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  body.theme-claude .cv-profile-line span + span::before {
    content: none;
  }

  body.theme-claude .mathreader-hero {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  body.theme-claude .mathreader-feature-grid,
  body.theme-claude .mathreader-detail-grid {
    grid-template-columns: 1fr;
  }

  body.theme-claude.pma-page .pma-campus-strip {
    height: 110px;
    margin-top: 56px;
  }

  body.theme-claude.pma-page .pma-wrapper {
    padding: 24px 20px 64px;
  }
}
