:root {
  --bg: #e2e8f0;
  --panel-bg: #f8fafc;
  --ink: #2f3e56;
  --muted: #506078;
  --accent: #425c85;
  --accent-strong: #37465f;
  --accent-deep: #2f3e56;
  --accent-soft: #d8e1ee;
  --line: #c9d4e2;
  --shadow: 0 14px 32px rgba(47, 62, 86, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  background:
    radial-gradient(circle at 20% 0%, #eef3f8, transparent 48%),
    radial-gradient(circle at 95% 10%, #d7dfeb, transparent 42%),
    var(--bg);
  color: var(--ink);
  line-height: 1.72;
}

body.citation-modal-open,
body.news-image-modal-open,
body.publication-image-modal-open {
  overflow: hidden;
}

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

.site-shell {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  gap: 30px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px;
}

.sidebar {
  position: relative;
  min-width: 0;
}

.content-area {
  min-width: 0;
}

.sidebar-inner {
  position: sticky;
  top: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.brand-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.brand-name {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
}

.name-text {
  white-space: nowrap;
}

.name-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
}

.brand-role {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.brand-role-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: inherit;
}

.brand-role-link:hover {
  color: inherit;
  text-decoration: none;
}

.brand-role-link:focus-visible {
  outline: none;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-nav-item {
  min-width: 0;
}

.section-nav-item .section-link {
  display: block;
}

.section-link {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.section-link:hover {
  background: #dde5ef;
  transform: translateX(3px);
  text-decoration: none;
}

.section-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent) 100%);
}

.publication-nav-zone.is-open .section-link:not(.active) {
  background: #dde5ef;
  transform: translateX(3px);
  text-decoration: none;
}

.area-nav-block {
  margin: 0 0 0 12px;
}

.publication-area-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: max-height 0.18s ease, opacity 0.16s ease, transform 0.16s ease, padding-top 0.16s ease;
}

.publication-area-panel.is-open {
  max-height: 430px;
  padding-top: 7px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.area-nav-title {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 7px;
}

.area-nav {
  display: grid;
  gap: 2px;
  margin-left: 3px;
  padding-left: 13px;
  border-left: 1px solid rgba(80, 96, 120, 0.32);
}

.area-nav-link {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px 0 2px 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: color 0.16s ease, transform 0.16s ease;
}

.area-nav-link::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 9px;
  border-top: 1px solid rgba(80, 96, 120, 0.28);
  transform: translateY(-50%);
}

.area-nav-link.active,
.area-nav-link:hover {
  color: var(--accent-deep);
  transform: translateX(2px);
}

.area-nav-link.active {
  font-weight: 700;
}

.area-nav-link.active::before,
.area-nav-link:hover::before {
  border-color: var(--accent);
}

.area-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sidebar-meta {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 6px;
}

.sidebar-meta a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.content-area {
  display: grid;
  gap: 24px;
  max-width: 1180px;
}

.hero,
.panel {
  background: var(--panel-bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.hero-content h2 {
  margin: 0;
  font-size: 1.4rem;
}

.research-constellation {
  margin: 24px 0 26px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.research-map-heading h3 {
  margin: 0 0 3px;
  color: var(--accent-deep);
  font-family: "Merriweather", serif;
  font-size: 1.2rem;
}

.research-map-heading p,
.research-map-focus {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.research-map-focus {
  min-height: 30px;
  margin-bottom: 10px;
  font-weight: 600;
}

.research-map-focus strong {
  color: var(--accent-deep);
}

.research-map-focus .research-path-separator {
  padding: 0 5px;
  color: #8a99ac;
}

.research-map-layout {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.research-map-axis {
  /* Same six layer colors, positioned at each layer's centre so the axis
     gradient lines up with the stack beside it. */
  --axis-stops:
    #007aff 0%, #007aff 8.33%, #32ade6 25%, #30b0c7 41.67%,
    #00c7be 58.33%, #34c759 75%, #ff9500 91.67%, #ff9500 100%;
  --axis-top: #007aff;
  --axis-bottom: #ff9500;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 680px;
}

.research-axis-arrow {
  position: relative;
  min-width: 0;
  color: #1d1d1f;
}

.research-axis-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  bottom: 20px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg in oklch, var(--axis-stops));
  transform: translateX(-50%);
}

.research-axis-up::before {
  left: 50%;
}

.research-axis-down::before {
  left: 50%;
}

.research-axis-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  transform: translateX(-50%);
}

.research-axis-up::after {
  left: 50%;
  top: 2px;
  border-bottom: 0;
  border-top: 0;
  border-right-width: 11px;
  border-left-width: 11px;
  border-bottom: 18px solid var(--axis-top);
}

.research-axis-down::after {
  left: 50%;
  bottom: 2px;
  border-top: 18px solid var(--axis-bottom);
}

.research-axis-arrow span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 104px;
  padding: 4px 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

/* Opaque panel-colored labels cut the line into segments: it stops before
   each word and picks up again after it. */
.research-axis-arrow span b {
  position: relative;
  display: block;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--panel-bg);
  font: inherit;
  text-align: center;
}

/* Apple's accessible light-mode variants of the same four layer hues. */
.research-axis-arrow span b:nth-child(1) { color: #0040dd; }
.research-axis-arrow span b:nth-child(2) { color: #0071a4; }
.research-axis-arrow span b:nth-child(3) { color: #248a3d; }
.research-axis-arrow span b:nth-child(4) { color: #c93400; }

.research-axis-up span,
.research-axis-down span {
  transform: translate(-50%, -50%);
}

.research-map-canvas {
  --map-accent: #007aff;
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.4fr) minmax(0, 0.6fr);
  min-width: 0;
  min-height: 680px;
  overflow: hidden;
  border-block: 1px solid #d2d2d7;
  background: #ffffff;
}

.research-map-links {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.research-map-path-shadow,
.research-map-path {
  fill: none;
  stroke-linecap: round;
}

.research-map-path-shadow {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 9;
}

.research-map-path {
  stroke: #007aff;
  stroke-width: 3.5;
  stroke-dasharray: 9 7;
  animation: research-path-flow 1.7s linear infinite;
}

.research-map-layers {
  position: relative;
  z-index: 2;
  grid-column: 1;
  min-width: 0;
}

/* Apple HIG system colors (systemBlue -> Cyan -> Teal -> Mint -> Green ->
   Orange). Each layer blends toward its neighbours so the whole column reads
   as one continuous gradient. */
.research-map-layer {
  --layer-color: #007aff;
  --layer-prev: var(--layer-color);
  --layer-next: var(--layer-color);
  display: flex;
  flex-direction: column;
  min-height: 113.33px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(
    180deg in oklch,
    color-mix(in oklch, var(--layer-prev), var(--layer-color)),
    var(--layer-color) 50%,
    color-mix(in oklch, var(--layer-color), var(--layer-next))
  );
}

.research-map-layer:first-child {
  border-top: 0;
}

.research-map-layer[data-layer="applications"] { --layer-color: #007aff; --layer-next: #32ade6; }
.research-map-layer[data-layer="models"] { --layer-color: #32ade6; --layer-prev: #007aff; --layer-next: #30b0c7; }
.research-map-layer[data-layer="networks"] { --layer-color: #30b0c7; --layer-prev: #32ade6; --layer-next: #00c7be; }
.research-map-layer[data-layer="sensing"] { --layer-color: #00c7be; --layer-prev: #30b0c7; --layer-next: #34c759; }
.research-map-layer[data-layer="signals"] { --layer-color: #34c759; --layer-prev: #00c7be; --layer-next: #ff9500; }
.research-map-layer[data-layer="physical"] { --layer-color: #ff9500; --layer-prev: #34c759; }

.research-map-layer h4 {
  margin: 0;
  padding: 10px 8px 3px;
  color: #ffffff;
  font-family: "Merriweather", serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  transition: opacity 0.22s ease, color 0.22s ease;
}

.research-map-layer[data-layer="physical"] h4 {
  font-size: 0.75rem;
}

.research-map-network {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding: 3px 10px 9px;
}

.research-map-concepts {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.research-concept-node {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  max-width: none;
  min-height: 26px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1d1d1f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.18;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease, color 0.2s ease, scale 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.research-concept-node:hover,
.research-concept-node:focus-visible {
  background: #ffffff;
  color: var(--layer-color);
  scale: 1.04;
}

.research-map-papers {
  display: none;
}

.research-paper-cloud {
  position: relative;
  z-index: 2;
  grid-column: 2;
  min-width: 0;
  min-height: 680px;
  background: #ffffff;
}

.research-paper-node {
  --paper-color: #007aff;
  --paper-x: 50%;
  --paper-y: 50%;
  --paper-drift-x: 8px;
  --paper-drift-y: 5px;
  position: absolute;
  left: var(--paper-x);
  top: var(--paper-y);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--paper-size, 72px);
  height: var(--paper-size, 72px);
  min-height: 0;
  translate: -50% -50%;
  appearance: none;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--paper-color);
  padding: 7px;
  color: #ffffff;
  font: inherit;
  font-size: var(--paper-font-size, 0.62rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--paper-color) 32%, transparent);
  transition: opacity 0.25s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, scale 0.2s ease, box-shadow 0.2s ease;
  animation: research-paper-float var(--paper-duration, 8s) ease-in-out var(--paper-delay, 0s) infinite alternate;
}

.research-paper-venue {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.9);
  font-size: max(0.5rem, calc(var(--paper-font-size, 0.62rem) - 0.08rem));
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease;
}

.research-paper-node:hover,
.research-paper-node:focus-visible {
  z-index: 8;
  scale: 1.1;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--paper-color), 0 10px 26px color-mix(in srgb, var(--paper-color) 40%, transparent);
}

.research-paper-node:focus-visible,
.research-concept-node:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.research-map-canvas.has-selection .research-paper-node,
.research-map-canvas.has-selection .research-concept-node,
.research-map-canvas.has-concept-selection .research-paper-node,
.research-map-canvas.has-concept-selection .research-concept-node {
  opacity: 0.18;
}

.research-map-canvas.has-selection .research-map-layer h4 {
  opacity: 0.08;
}

.research-map-canvas.has-selection .research-map-layer.is-layer-active h4 {
  opacity: 1;
  color: #ffffff;
}

.research-map-canvas.has-selection .research-paper-node.is-active,
.research-map-canvas.has-selection .research-concept-node.is-active,
.research-map-canvas.has-concept-selection .research-paper-node.is-related,
.research-map-canvas.has-concept-selection .research-concept-node.is-active {
  opacity: 1;
}

.research-map-canvas.has-concept-selection .research-paper-node.is-related {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--paper-color), 0 8px 22px color-mix(in srgb, var(--paper-color) 36%, transparent);
}

.research-paper-node.is-active {
  z-index: 9;
  border-color: var(--paper-color);
  background: #ffffff;
  color: var(--paper-color);
  text-shadow: none;
  scale: 1.16;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--paper-color) 22%, transparent), 0 12px 30px color-mix(in srgb, var(--paper-color) 38%, transparent);
}

.research-paper-node.is-active .research-paper-venue {
  color: color-mix(in srgb, var(--paper-color) 72%, #1d1d1f);
}

.research-concept-node.is-active {
  color: var(--layer-color);
  scale: 1.08;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 6px 16px rgba(0, 0, 0, 0.16);
}

.research-map-canvas.has-selection .research-paper-node {
  animation-play-state: paused;
}

.research-paper-preview {
  --preview-x: 16px;
  --preview-y: 16px;
  position: absolute;
  left: var(--preview-x);
  top: var(--preview-y);
  z-index: 12;
  width: min(280px, calc(100% - 20px));
  padding: 13px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, white);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 36px rgba(38, 53, 76, 0.18);
  color: var(--ink);
}

.research-paper-preview::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, white);
  border-left: 1px solid color-mix(in srgb, var(--accent) 28%, white);
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}

.research-paper-preview[data-side="left"]::before {
  right: -7px;
  left: auto;
  border-right: 1px solid color-mix(in srgb, var(--accent) 28%, white);
  border-left: 0;
  transform: translateY(-50%) rotate(-45deg);
}

.research-preview-title {
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
}

.research-preview-authors {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.research-preview-venue {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.research-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.research-preview-action {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, white);
  border-radius: 4px;
  background: #f7fafc;
  color: var(--accent-deep);
  padding: 4px 7px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.research-preview-action:hover,
.research-preview-action:focus-visible {
  border-color: var(--accent);
  background: #eef3f8;
  color: var(--accent-deep);
}

@keyframes research-path-flow {
  to { stroke-dashoffset: -32; }
}

@keyframes research-paper-float {
  0% { transform: translate(calc(var(--paper-drift-x) * -0.45), calc(var(--paper-drift-y) * -0.35)) rotate(-1.5deg); }
  45% { transform: translate(var(--paper-drift-x), calc(var(--paper-drift-y) * -1)) rotate(1.2deg); }
  100% { transform: translate(calc(var(--paper-drift-x) * -0.85), var(--paper-drift-y)) rotate(-0.8deg); }
}

.xl-stack-figure[hidden] {
  display: none;
}

.xl-stack-figure {
  margin: 24px 0 26px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.xl-stack-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.xl-stack-heading h3 {
  margin: 0 0 4px;
  color: var(--accent-deep);
  font-family: "Merriweather", serif;
  font-size: 1.2rem;
}

.xl-stack-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.xl-stack-objectives {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 14px;
  max-width: 300px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.xl-stack-objectives span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xl-stack-objectives span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #6f819b;
}

.xl-stack-diagram {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: stretch;
}

.xl-stack-core {
  overflow: hidden;
  border: 2px solid #8798ad;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(47, 62, 86, 0.13);
}

.xl-stack-band {
  --stack-color: #007aff;
  --stack-prev: var(--stack-color);
  --stack-next: var(--stack-color);
  --stack-accent: var(--stack-color);
  padding: 15px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 0;
  background: linear-gradient(
    180deg in oklch,
    color-mix(in oklch, var(--stack-prev), var(--stack-color)),
    var(--stack-color) 50%,
    color-mix(in oklch, var(--stack-color), var(--stack-next))
  );
  transition: filter 0.18s ease;
}

.xl-stack-band:last-child {
  border-bottom: 0;
}

.xl-stack-band:hover,
.xl-stack-band:focus-within {
  position: relative;
  z-index: 1;
  filter: saturate(1.12);
}

.xl-stack-layer-6 { --stack-color: #007aff; --stack-next: #32ade6; }
.xl-stack-layer-5 { --stack-color: #32ade6; --stack-prev: #007aff; --stack-next: #30b0c7; }
.xl-stack-layer-4 { --stack-color: #30b0c7; --stack-prev: #32ade6; --stack-next: #00c7be; }
.xl-stack-layer-3 { --stack-color: #00c7be; --stack-prev: #30b0c7; --stack-next: #34c759; }
.xl-stack-layer-2 { --stack-color: #34c759; --stack-prev: #00c7be; --stack-next: #ff9500; }
.xl-stack-layer-1 { --stack-color: #ff9500; --stack-prev: #34c759; }

.xl-stack-band > h4 {
  margin: 0 0 11px;
  color: #ffffff;
  font-family: "Merriweather", serif;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.xl-stack-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xl-stack-topic {
  min-width: 0;
  padding: 9px 10px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.xl-stack-topic > strong {
  display: block;
  margin-bottom: 6px;
  color: #1d1d1f;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
}

.xl-stack-work-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.stack-paper-link,
.stack-paper-entry {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.stack-paper-link::before,
.stack-paper-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 5px;
  height: 5px;
  background: var(--stack-color);
}

.stack-paper-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.stack-paper-link:hover {
  color: var(--stack-accent);
  text-decoration: underline;
}

.stack-paper-link:focus-visible {
  outline: 2px solid var(--stack-accent);
  outline-offset: 2px;
}

.stack-paper-link small,
.stack-paper-entry small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 600;
}

.xl-stack-flow {
  position: relative;
  min-width: 0;
  min-height: 1050px;
  color: var(--accent);
}

.xl-stack-flow-down {
  color: #009b7a;
}

.xl-stack-flow svg {
  position: absolute;
  inset: 68px 0 68px;
  width: 100%;
  height: calc(100% - 136px);
  overflow: visible;
}

.xl-flow-track,
.xl-flow-motion {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.xl-flow-track {
  stroke-width: 14;
  opacity: 0.18;
}

.xl-flow-motion {
  stroke-width: 4;
  stroke-dasharray: 10 13;
  animation: xl-flow-up 2.2s linear infinite;
}

.xl-flow-leaf-tail,
.xl-flow-arrowhead {
  fill: currentColor;
  opacity: 0.82;
  vector-effect: non-scaling-stroke;
}

.xl-stack-flow-down .xl-flow-motion {
  animation-name: xl-flow-down;
}

.xl-flow-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 126px;
  padding: 9px 4px;
  background: var(--panel-bg);
  transform: translate(-50%, -50%);
  text-align: center;
}

.xl-flow-copy strong,
.xl-flow-end strong {
  display: block;
  color: var(--accent-deep);
  font-size: 0.95rem;
  line-height: 1.3;
}

.xl-flow-copy span,
.xl-flow-end span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.35;
}

.xl-flow-end {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
}

.xl-flow-end-top {
  top: 0;
}

.xl-flow-end-bottom {
  bottom: 0;
}

@keyframes xl-flow-up {
  to { stroke-dashoffset: -40; }
}

@keyframes xl-flow-down {
  to { stroke-dashoffset: 40; }
}

@media (prefers-reduced-motion: reduce) {
  .research-map-path,
  .research-concept-node,
  .research-paper-node {
    animation: none;
  }

  .xl-flow-motion {
    animation: none;
  }

  .xl-stack-band {
    transition: none;
  }
}

.pronunciation {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
}

.audio-btn {
  margin: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  background: #eef3f8;
  color: var(--accent-deep);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.audio-btn:hover {
  background: var(--accent-soft);
}

.audio-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.audio-btn svg {
  width: 12px;
  height: 12px;
}

.hero-lead {
  margin: 0 0 16px;
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--accent-deep);
  max-width: 64ch;
}

.hero-actions {
  margin: 0 0 16px;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.cv-btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.contact-wide {
  grid-column: 1 / -1;
}

.contact-label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  padding: 24px 26px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-head h2 {
  font-family: "Merriweather", serif;
  margin: 0;
  font-size: 1.62rem;
  color: var(--accent-deep);
}

.panel p,
.timeline-item,
.pub-authors,
.pub-venue,
.eval-links,
.student-list {
  font-size: 1.03rem;
}

.timeline {
  display: grid;
  gap: 12px;
}

.news-panel {
  --news-visible-height: 760px;
}

.news-panel .panel-head {
  margin-bottom: 10px;
}

.news-scroll {
  max-height: var(--news-visible-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.news-scroll::after {
  content: "";
  position: sticky;
  bottom: -1px;
  display: block;
  height: 18px;
  margin-top: -18px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--panel-bg));
}

.news-scroll::-webkit-scrollbar {
  width: 9px;
}

.news-scroll::-webkit-scrollbar-track {
  background: #edf2f7;
  border-radius: 999px;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: #b6c3d4;
  border-radius: 999px;
  border: 2px solid #edf2f7;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
  background: #8fa2bb;
}

.news-media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.news-media-grid img {
  width: 260px;
  height: 156px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #edf2f7;
}

.news-media-button {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.news-media-button:hover img {
  border-color: #8fa2bb;
  box-shadow: 0 10px 24px rgba(47, 62, 86, 0.16);
}

.news-media-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.timeline-item {
  border-left: 3px solid #bcc9da;
  padding-left: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.news-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.news-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-copy {
  min-width: 0;
}

.timeline-item strong {
  color: var(--accent-strong);
}

.pub-controls {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  background: #edf2f8;
}

.pub-filter-title {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-filter-btn {
  border: 1px solid #b9c8da;
  background: #f9fbfd;
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pub-filter-btn.active,
.pub-filter-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.pub-result-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-groups {
  display: grid;
  gap: 16px;
}

.pub-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #f9fbfd;
}

.pub-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pub-group-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent-deep);
}

.pub-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.pub-list {
  display: grid;
  gap: 12px;
}

.pub-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.pub-item-map-focus {
  animation: pub-map-focus 1.8s ease;
}

@keyframes pub-map-focus {
  0%,
  100% {
    box-shadow: none;
  }
  18%,
  72% {
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.16);
  }
}

.pub-thumb {
  width: 160px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.pub-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pub-thumb-button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.pub-thumb-button:hover img {
  transform: scale(1.035);
}

.pub-thumb-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.pub-thumb-button img {
  transition: transform 160ms ease;
}

.pub-content {
  min-width: 0;
}

.pub-title {
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.pub-authors,
.pub-venue {
  color: #3b4b63;
  font-weight: 400;
  font-style: normal;
}

.author-self {
  font-weight: 700;
  color: #2f3e56;
}

.pub-authors {
  margin-bottom: 6px;
}

.pub-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.pub-citation-open {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  cursor: pointer;
}

.pub-citation-open:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.pub-citation-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.citation-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.citation-modal.is-open {
  display: block;
}

.citation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 48, 68, 0.42);
}

.citation-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  transform: translate(-50%, -50%);
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-bg);
  box-shadow: 0 24px 70px rgba(35, 48, 68, 0.28);
  padding: 18px;
}

.citation-modal-head,
.citation-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.citation-modal-head h3 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 1.2rem;
}

.citation-modal-format {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.citation-modal-close,
.citation-modal-actions button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent-deep);
  border-radius: 6px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.citation-modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.25rem;
}

.citation-modal-close:hover,
.citation-modal-actions button:hover:not(:disabled) {
  background: #edf2f8;
}

.citation-modal-close:focus-visible,
.citation-modal-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.citation-modal-actions {
  justify-content: flex-start;
}

.citation-modal-actions button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.citation-modal-body {
  margin: 0;
  max-height: min(52vh, 460px);
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f7fb;
  padding: 12px;
  white-space: pre;
}

.citation-modal-body code {
  color: #233044;
  font-size: 0.82rem;
  line-height: 1.45;
}

.news-image-modal,
.publication-image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.news-image-modal.is-open,
.publication-image-modal.is-open {
  display: block;
}

.news-image-modal-backdrop,
.publication-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 48, 68, 0.78);
}

.news-image-modal-dialog,
.publication-image-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  transform: translate(-50%, -50%);
}

.news-image-modal-img,
.publication-image-modal-img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 24px 80px rgba(8, 13, 24, 0.48);
}

.news-image-modal-close,
.publication-image-modal-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-deep);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(8, 13, 24, 0.28);
}

.news-image-modal-close:hover,
.publication-image-modal-close:hover {
  background: #edf2f8;
}

.news-image-modal-close:focus-visible,
.publication-image-modal-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.pub-group.all-view .pub-group-head {
  display: none;
}

.pub-group.all-view .pub-list {
  gap: 10px;
}

.pub-group.all-view .pub-item {
  border-radius: 8px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.9rem;
  margin-left: 20px;
}

.award-label {
  color: #b3261e;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.pub-award-row {
  margin-top: 5px;
}

.pub-award-row .award-label {
  display: inline-block;
  text-decoration: none;
}

.pub-award-row .award-label:hover {
  text-decoration: underline;
}

.award-official-link {
  margin-left: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.pub-links a,
.pub-link-placeholder,
.pub-citation-open {
  white-space: nowrap;
}

.pub-link-placeholder {
  color: var(--muted);
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.badge-row img {
  width: auto;
  height: 28px;
  border: none;
}

.teaching-list {
  display: grid;
  gap: 10px;
}

.teaching-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f3f7fb;
}

.teaching-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eval-links {
  color: var(--muted);
  font-size: 0.95rem;
}

.eval-label {
  font-weight: 700;
}

.student-list {
  --student-name-width: max-content;
  --student-role-width: max-content;
  --student-period-width: max-content;
  --student-publications-width: minmax(22rem, 1fr);
  --student-initial-width: max-content;
  --student-column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns:
    var(--student-name-width)
    var(--student-role-width)
    var(--student-period-width)
    var(--student-publications-width)
    var(--student-initial-width);
  column-gap: var(--student-column-gap);
  row-gap: 10px;
  align-items: start;
  overflow-x: auto;
}

.student-row {
  display: contents;
}

.student-alumni-heading {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 4px;
}

.student-cell {
  min-width: 0;
  color: #3b4b63;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-name {
  color: var(--accent-deep);
  font-weight: 700;
}

.student-name-link {
  color: var(--accent-deep);
  text-decoration: none;
}

.student-name-link:hover {
  color: var(--accent-deep);
  text-decoration: none;
}

.student-publications {
  display: flex;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.student-publication {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-publication-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.05;
}

.student-publication-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-publication-sublinks {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1.05;
}

.student-publication-sublink {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.student-publication-sublink:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .site-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .sidebar-inner {
    position: static;
    max-height: none;
  }

  .section-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 6px;
  }

  .section-link {
    white-space: nowrap;
  }

  .publication-area-panel {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-photo-wrap {
    max-width: 220px;
  }

  .panel {
    padding: 18px;
  }

  .news-panel {
    --news-visible-height: 600px;
  }
}

@media (max-width: 850px) {
  .research-map-layout {
    grid-template-columns: 1fr;
  }

  .research-map-axis {
    grid-template-columns: 1fr 1fr;
    min-height: 58px;
  }

  .research-axis-arrow::before {
    left: 16px;
    right: 16px;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 4px;
    background: linear-gradient(90deg in oklch, var(--axis-stops));
    transform: translateY(-50%);
  }

  .research-axis-arrow::after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .research-axis-up::after {
    left: 2px;
    border-top: 9px solid transparent;
    border-right: 15px solid var(--axis-top);
    border-bottom: 9px solid transparent;
    border-left: 0;
  }

  .research-axis-down::after {
    right: 2px;
    left: auto;
    border-top: 9px solid transparent;
    border-right: 0;
    border-bottom: 9px solid transparent;
    border-left: 15px solid var(--axis-bottom);
  }

  .research-axis-arrow span,
  .research-axis-up span,
  .research-axis-down span {
    left: 50%;
    flex-direction: row;
    width: auto;
    gap: 14px;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
  }

  .xl-stack-diagram {
    grid-template-columns: 1fr;
  }

  .xl-stack-flow {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    padding: 10px 0;
  }

  .xl-stack-flow svg {
    display: none;
  }

  .xl-flow-copy,
  .xl-flow-end {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    transform: none;
  }

  .xl-stack-flow-up .xl-flow-end-bottom,
  .xl-stack-flow-down .xl-flow-end-top {
    order: 1;
  }

  .xl-flow-copy {
    order: 2;
  }

  .xl-stack-flow-up .xl-flow-end-top,
  .xl-stack-flow-down .xl-flow-end-bottom {
    order: 3;
  }

  .xl-flow-copy strong,
  .xl-flow-end strong {
    font-size: 0.88rem;
  }
}

@media (max-width: 700px) {
  .research-map-heading {
    align-items: center;
  }

  .research-map-layer {
    min-height: 0;
  }

  .research-map-layer h4 {
    padding: 12px 13px 4px;
    white-space: normal;
  }

  .research-map-network {
    padding: 7px 12px 12px;
  }

  .research-map-concepts {
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }

  .research-map-canvas {
    grid-template-columns: 1fr;
  }

  .research-map-layers {
    grid-column: 1;
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid #d6dee8;
  }

  .research-paper-cloud {
    grid-column: 1;
    grid-row: 2;
    min-height: 700px;
  }

  .research-concept-node {
    font-size: 0.7rem;
  }

  .research-axis-arrow span,
  .research-axis-up span,
  .research-axis-down span {
    max-width: 150px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .xl-stack-heading {
    display: block;
  }

  .xl-stack-objectives {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .xl-stack-topic-grid {
    grid-template-columns: 1fr;
  }

  .xl-stack-band {
    padding: 13px;
  }

  .xl-stack-band > h4 {
    font-size: 1rem;
  }

  .xl-stack-flow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .xl-stack-flow-up .xl-flow-end-bottom,
  .xl-stack-flow-down .xl-flow-end-top,
  .xl-flow-copy,
  .xl-stack-flow-up .xl-flow-end-top,
  .xl-stack-flow-down .xl-flow-end-bottom {
    order: initial;
  }

  .citation-modal-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .citation-modal-body {
    max-height: 50vh;
  }

  .pub-item {
    grid-template-columns: 1fr;
  }

  .pub-thumb {
    width: 100%;
    max-width: 220px;
    height: 140px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .student-list {
    --student-name-width: max-content;
    --student-role-width: max-content;
    --student-period-width: max-content;
    --student-publications-width: minmax(16rem, 1fr);
    --student-initial-width: max-content;
    --student-column-gap: 10px;
    row-gap: 12px;
  }
}

@media (max-width: 420px) {
  .area-nav-link {
    white-space: normal;
  }
}
