:root {
  --bg: #0b1220;
  --bg-soft: #111b2e;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --ink: #121826;
  --muted: #5c6577;
  --line: #dce2ec;
  --accent: #2c6bed;
  --accent-dark: #184db9;
  --accent-soft: #e9f0ff;
  --hero-ink: #f6f8fc;
  --hero-muted: #b8c3d7;
  --max: 1160px;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(10, 24, 48, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid #8bb4ff; outline-offset: 4px; border-radius: 6px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 999; padding: 10px 14px; background: white; color: black; }
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--bg); font-size: 0.84rem; letter-spacing: 0.06em; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: #d8e0ef; text-decoration: none; font-size: 0.93rem; }
.nav a:hover { color: #fff; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); }
.theme-toggle-icon { font-size: 1.05rem; line-height: 1; }

.hero {
  color: var(--hero-ink);
  background:
    radial-gradient(circle at 78% 15%, rgba(44,107,237,0.28), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(74,144,226,0.18), transparent 28%),
    var(--bg);
  padding: 95px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr); gap: 70px; align-items: center; }
.eyebrow, .section-kicker { margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 800; color: #79a6ff; }
.hero h1 { margin: 0; font-size: clamp(3.4rem, 8vw, 6.5rem); letter-spacing: -0.055em; line-height: 0.94; }
.hero-role { max-width: 760px; margin: 26px 0 0; color: #d4ddec; font-size: 1.1rem; font-weight: 600; }
.hero-lede { max-width: 760px; margin: 22px 0 0; color: var(--hero-muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; text-decoration: none; font-weight: 750; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: #3a78f0; }
.button.secondary { border: 1px solid rgba(255,255,255,0.22); color: #fff; background: rgba(255,255,255,0.04); }
.quick-links { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.quick-links a { color: #cbd7ec; font-size: 0.92rem; text-underline-offset: 4px; }

.profile-card { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.12); padding: 22px; border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,0.18); }
.avatar { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, rgba(44,107,237,0.9), rgba(18,29,53,0.95)); display: grid; place-items: center; }
.avatar span { position: relative; z-index: 2; font-size: clamp(4rem, 10vw, 7rem); font-weight: 850; letter-spacing: -0.07em; }
.avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.avatar path { fill: none; stroke: rgba(255,255,255,0.3); stroke-width: 2; }
.profile-meta { padding: 20px 4px 4px; color: #dbe4f5; font-size: 0.94rem; }
.profile-meta p { margin: 0 0 14px; }
.meta-label { color: #8da0bd; font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 800; margin-bottom: 4px !important; }

.section { padding: 92px 0; }
.section.alt { background: var(--surface-soft); border-top: 1px solid #e9edf4; border-bottom: 1px solid #e9edf4; }
.two-col { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 72px; }
.section h2, .contact-band h2 { margin: 0; font-size: clamp(2.1rem, 4.2vw, 3.65rem); letter-spacing: -0.045em; line-height: 1.05; }
.prose { font-size: 1.08rem; color: #374155; }
.prose p:first-child { margin-top: 3px; }
.prose p:last-child { margin-bottom: 0; }
.section-note { color: var(--muted); max-width: 480px; }
.section-heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 34px; }
.text-link { color: var(--accent-dark); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }

.card-grid { display: grid; gap: 18px; margin-top: 38px; }
.research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 31, 52, 0.04); }
.info-card h3 { margin: 10px 0 8px; font-size: 1.22rem; }
.info-card p { margin: 0; color: var(--muted); }
.card-index { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; }

.publication-list { border-top: 1px solid var(--line); }
.publication { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-year { color: var(--accent); font-weight: 850; letter-spacing: 0.02em; }
.publication h3 { margin: 0 0 8px; line-height: 1.32; font-size: 1.12rem; }
.publication p { margin: 0; color: var(--muted); }
.pub-links { display: flex; gap: 16px; margin-top: 11px; }
.pub-links a { color: var(--accent-dark); font-weight: 760; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.course-card { background: #fff; border: 1px solid var(--line); padding: 24px; border-radius: 18px; }
.course-card span { color: var(--accent); font-weight: 850; font-size: 0.82rem; letter-spacing: 0.06em; }
.course-card h3 { margin: 7px 0 0; font-size: 1.1rem; }

.profile-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.profile-link-card { display: flex; flex-direction: column; min-height: 120px; justify-content: space-between; padding: 22px; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; transition: transform 0.18s ease, border-color 0.18s ease; }
.profile-link-card:hover { transform: translateY(-3px); border-color: #b8c9ec; }
.profile-link-card span { font-weight: 850; }
.profile-link-card small { color: var(--muted); }

.contact-band { padding: 70px 0; background: #101827; color: #fff; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.contact-band p:not(.section-kicker) { color: #aebcd1; max-width: 720px; }
.site-footer { background: #080d16; color: #8d9ab0; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-inner { min-height: 96px; display: flex; justify-content: space-between; gap: 30px; align-items: center; font-size: 0.88rem; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding-top: 70px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 45px; }
  .profile-card { max-width: 460px; }
  .research-grid, .profile-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading-row, .contact-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding: 58px 0 68px; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .section { padding: 70px 0; }
  .research-grid, .profile-links-grid, .course-list { grid-template-columns: 1fr; }
  .publication { grid-template-columns: 1fr; gap: 8px; }
  .publication h3 { font-size: 1.04rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 0; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* Night mode */
html[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0f1726;
  --surface-soft: #141e30;
  --ink: #eef3fb;
  --muted: #aebbd0;
  --line: #2b3a52;
  --accent: #79a6ff;
  --accent-dark: #9abaff;
  --accent-soft: #1c3159;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .section.alt {
  background: var(--surface-soft);
  border-color: var(--line);
}

html[data-theme="dark"] .prose { color: #ccd6e6; }

html[data-theme="dark"] .info-card,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .profile-link-card {
  background: #162135;
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

html[data-theme="dark"] .profile-link-card:hover { border-color: #5375ad; }
html[data-theme="dark"] .contact-band { background: #0b1220; }
html[data-theme="dark"] .site-footer { background: #070c14; }
html[data-theme="dark"] .skip-link { background: #eef3fb; color: #101827; }


/* Publication citation controls */
.pub-content { min-width: 0; }
.pub-links { align-items: center; flex-wrap: wrap; }
.cite-button,
.copy-bibtex {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  padding: 6px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.2;
  cursor: pointer;
}
.cite-button:hover,
.copy-bibtex:hover { border-color: var(--accent); }
.cite-button[aria-expanded="true"] { background: var(--accent-soft); }

.citation-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
}
.citation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}
.citation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.citation-toolbar a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.citation-panel pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: transparent;
  color: var(--ink);
  font: 0.84rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-align: left;
  white-space: pre;
}
.copy-bibtex.copied {
  border-color: var(--accent);
  background: var(--accent-soft);
}

html[data-theme="dark"] .cite-button,
html[data-theme="dark"] .copy-bibtex,
html[data-theme="dark"] .citation-panel {
  background: #162135;
  border-color: var(--line);
}
html[data-theme="dark"] .cite-button[aria-expanded="true"],
html[data-theme="dark"] .copy-bibtex.copied {
  background: var(--accent-soft);
}

@media (max-width: 620px) {
  .citation-toolbar { align-items: flex-start; flex-direction: column; }
  .citation-panel pre { font-size: 0.77rem; }
}


/* Responsive layout and academic platform branding */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
p, h1, h2, h3, small { overflow-wrap: anywhere; hyphens: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}
.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.platform-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  padding: 8px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #e4e8ef;
}
.platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.platform-icon-small {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  padding: 4px;
  border-radius: 7px;
}
.profile-link-head {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 850;
}
.profile-link-card small { margin-top: 18px; }

@media (max-width: 1100px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .nav { gap: 16px; }
  .nav-actions { gap: 12px; }
  .hero-grid { gap: 44px; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
  .hero h1 { font-size: clamp(3.4rem, 7.5vw, 5.7rem); }
  .two-col { gap: 48px; }
}

@media (max-width: 900px) {
  .site-header { overflow: visible; }
  .nav-wrap { position: relative; min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(11,18,32,.98);
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
  }
  .nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.08); }
  .hero { padding: 68px 0 72px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 38px; }
  .profile-card { width: min(100%, 480px); justify-self: start; }
  .research-grid, .profile-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
  .citation-panel { max-width: 100%; }
  .citation-panel pre { max-width: 100%; }
}

@media (max-width: 700px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .nav-actions { gap: 8px; }
  .section-heading-row { gap: 16px; }
  .text-link { white-space: normal; }
  .contact-inner { width: 100%; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding: 54px 0 62px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); line-height: .98; }
  .hero-role { font-size: 1rem; }
  .hero-lede { font-size: 1.04rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .quick-links { gap: 10px 14px; }
  .quick-links li { flex: 1 1 44%; }
  .quick-links a { width: 100%; }
  .section { padding: 64px 0; }
  .section h2, .contact-band h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .research-grid, .profile-links-grid, .course-list { grid-template-columns: 1fr; }
  .publication { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .pub-links { gap: 10px 14px; }
  .citation-toolbar { align-items: flex-start; flex-direction: column; }
  .citation-actions { width: 100%; }
  .citation-panel pre { font-size: .75rem; padding: 13px; }
  .profile-link-card { min-height: 108px; padding: 18px; }
  .contact-band { padding: 58px 0; }
  .contact-inner .button { width: 100%; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 22px, var(--max)); }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .hero h1 { font-size: clamp(2.6rem, 16vw, 3.8rem); }
  .quick-links { display: grid; grid-template-columns: 1fr; }
  .quick-links li { min-width: 0; }
  .info-card, .course-card { padding: 20px; }
  .publication h3 { font-size: 1rem; }
  .citation-actions { align-items: stretch; flex-direction: column; }
  .citation-actions a, .citation-actions button { width: 100%; }
  .profile-link-head { gap: 11px; }
}

@media (min-width: 1400px) {
  :root { --max: 1240px; }
  .hero-grid { gap: 82px; }
}


/* Responsive layout and platform logos */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
p, h1, h2, h3, small { overflow-wrap: anywhere; hyphens: auto; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}
.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.quick-links a { display: inline-flex; align-items: center; gap: 7px; }
.platform-logo-small {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}
.profile-link-head {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 850;
}
.platform-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 8px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #e4e8ef;
  object-fit: contain;
}
.profile-link-card small { margin-top: 18px; }

@media (max-width: 1100px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .nav { gap: 16px; }
  .nav-actions { gap: 12px; }
  .hero-grid { gap: 44px; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
  .hero h1 { font-size: clamp(3.4rem, 7.5vw, 5.7rem); }
  .two-col { gap: 48px; }
}

@media (max-width: 900px) {
  .site-header { overflow: visible; }
  .nav-wrap { position: relative; min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(11,18,32,.98);
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
  }
  .hero { padding: 68px 0 72px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 38px; }
  .profile-card { width: min(100%, 480px); justify-self: start; }
  .research-grid, .profile-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 700px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .nav-actions { gap: 8px; }
  .text-link { white-space: normal; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding: 54px 0 62px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); line-height: .98; }
  .hero-role { font-size: 1rem; }
  .hero-lede { font-size: 1.04rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .quick-links { gap: 10px 14px; }
  .quick-links li { flex: 1 1 44%; }
  .quick-links a { width: 100%; }
  .section { padding: 64px 0; }
  .research-grid, .profile-links-grid, .course-list { grid-template-columns: 1fr; }
  .publication { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .citation-panel pre { font-size: .75rem; padding: 13px; }
  .profile-link-card { min-height: 108px; padding: 18px; }
  .contact-inner .button { width: 100%; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 22px, var(--max)); }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .hero h1 { font-size: clamp(2.6rem, 16vw, 3.8rem); }
  .quick-links { display: grid; grid-template-columns: 1fr; }
  .info-card, .course-card { padding: 20px; }
  .citation-actions { align-items: stretch; flex-direction: column; }
  .citation-actions a, .citation-actions button { width: 100%; }
}

@media (min-width: 1400px) {
  :root { --max: 1240px; }
  .hero-grid { gap: 82px; }
}


/* Official university logos and contact email cards */
.institution-logo {
  object-fit: contain;
  background: #fff;
}

.contact-heading {
  max-width: 780px;
}
.contact-heading p:not(.section-kicker) {
  color: #aebcd1;
  margin-bottom: 0;
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.email-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.email-logo-wrap {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}
.email-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.email-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.email-institution {
  color: #fff;
  font-weight: 800;
}
.email-address {
  color: #c8d4e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.contact-actions {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .email-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .email-card { align-items: flex-start; padding: 16px; }
  .email-logo-wrap { width: 50px; height: 50px; flex-basis: 50px; }
  .email-address { font-size: .82rem; }
}


/* Dynamic interactions */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.nav a.is-active {
  color: #fff;
  background: rgba(255,255,255,.09);
}

.publication-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}
.publication-search {
  position: relative;
  display: block;
}
.publication-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.publication-search input:focus {
  outline: 3px solid rgba(44,107,237,.18);
  border-color: var(--accent);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.15rem;
  pointer-events: none;
}
.year-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.year-filter {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 760;
  cursor: pointer;
}
.year-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.publication-count {
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
}
.publication-empty {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
}
.publication.is-filtered-out { display: none; }

.js .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card,
.course-card,
.profile-link-card,
.publication {
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .info-card:hover,
  .course-card:hover,
  .profile-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20,31,52,.09);
  }
  .publication:not(.is-filtered-out):hover {
    transform: translateX(4px);
  }
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  font: 800 1.2rem/1 system-ui, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

html[data-theme="dark"] .publication-search input,
html[data-theme="dark"] .year-filter:not(.is-active),
html[data-theme="dark"] .back-to-top {
  background: #162135;
  border-color: var(--line);
  color: var(--ink);
}

/* Keep the selected publication-year filter visibly distinct in sunset mode. */
html[data-theme="dark"] .year-filter.is-active {
  background: #2c6bed;
  border-color: #79a6ff;
  color: #fff;
}

@media (max-width: 900px) {
  .publication-tools {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .publication-count { white-space: normal; }
}

@media (max-width: 620px) {
  .year-filters { gap: 7px; }
  .year-filter { min-height: 36px; padding: 0 10px; }
  .back-to-top { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress span,
  .js .reveal-item,
  .info-card,
  .course-card,
  .profile-link-card,
  .publication,
  .back-to-top {
    transition: none !important;
    transform: none !important;
  }
  .js .reveal-item { opacity: 1 !important; }
}


/* Improved visitor interaction controls */
.share-profile-button {
  cursor: pointer;
}

.publication-tools-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.clear-publication-filters {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font: inherit;
  font-size: .78rem;
  font-weight: 760;
  cursor: pointer;
}
.clear-publication-filters:hover {
  border-color: var(--accent);
}

.email-details {
  gap: 8px;
}
.email-copy-button {
  width: fit-content;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 780;
  cursor: pointer;
}
.email-copy-button:hover,
.email-copy-button:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.36);
}
.email-copy-button.is-copied {
  background: rgba(255,255,255,.16);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 120;
  max-width: min(90vw, 520px);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.site-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.site-toast.is-error {
  border-color: #d55;
}

html[data-theme="dark"] .clear-publication-filters,
html[data-theme="dark"] .site-toast {
  background: #162135;
  color: var(--ink);
  border-color: var(--line);
}

@media (max-width: 900px) {
  .publication-tools-meta {
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .publication-tools-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .email-copy-button {
    min-height: 40px;
  }
  .site-toast {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}


/* Advanced desktop header alignment */
.site-header {
  container-type: inline-size;
}
.nav-wrap {
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  min-width: 0;
  justify-self: start;
}
.brand-mark,
.theme-toggle,
.menu-toggle {
  box-sizing: border-box;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.brand-name {
  white-space: nowrap;
}
.nav {
  justify-self: center;
  align-items: center;
  justify-content: center;
}
.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.command-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #eef3fb;
  font: inherit;
  font-size: .82rem;
  font-weight: 720;
  cursor: pointer;
}
.command-button:hover { background: rgba(255,255,255,.10); }
.command-icon { font-size: 1rem; }
.command-shortcut {
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: #aebbd0;
  font-size: .69rem;
  line-height: 1.25;
}
.theme-toggle {
  min-height: 42px;
}
.menu-toggle {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

/* Desktop-visible email actions */
.email-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.email-card-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  visibility: visible !important;
  opacity: 1 !important;
}
.email-copy-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  min-height: 40px;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
}

/* Command palette */
.command-palette {
  width: min(760px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0,0,0,.30);
}
.command-palette::backdrop {
  background: rgba(3,8,18,.58);
  backdrop-filter: blur(6px);
}
.command-palette-shell {
  padding: 20px;
}
.command-palette-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.command-kicker {
  margin: 0 0 4px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .69rem;
  font-weight: 850;
}
.command-palette h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: -.03em;
}
.command-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font: 500 1.45rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.command-search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}
.command-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
}
.command-results {
  display: grid;
  gap: 6px;
  max-height: 430px;
  margin-top: 12px;
  overflow: auto;
}
.command-result {
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.command-result:hover,
.command-result.is-active {
  border-color: var(--line);
  background: var(--surface-soft);
}
.command-result-type {
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.command-result-title {
  min-width: 0;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-result-meta {
  color: var(--muted);
  font-size: .76rem;
}
.command-empty {
  margin: 18px 0;
  color: var(--muted);
  text-align: center;
}
.command-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}
.command-hint kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-soft);
  font: inherit;
  font-size: .7rem;
}

html[data-theme="dark"] .command-palette,
html[data-theme="dark"] .command-close,
html[data-theme="dark"] .command-search,
html[data-theme="dark"] .command-result:hover,
html[data-theme="dark"] .command-result.is-active {
  background: #162135;
  border-color: var(--line);
}

@media (max-width: 1180px) {
  .nav-wrap {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }
  .nav { gap: 13px; }
  .command-label,
  .command-shortcut { display: none; }
  .command-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav {
    justify-self: stretch;
  }
  .header-controls {
    grid-column: 2;
  }
  .email-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }
}

@media (max-width: 620px) {
  .email-card {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
  }
  .email-card-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .email-copy-button {
    min-width: 0;
  }
  .command-palette-shell { padding: 16px; }
  .command-result {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .command-result-meta { display: none; }
}

@media (max-width: 430px) {
  .brand-name { display: none; }
}

.publication.command-highlight {
  border-radius: 12px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(44,107,237,.10);
}


/* Geometric toolbar + hero system */
:root {
  --geo-x: 0px;
  --geo-y: 0px;
  --geo-scroll: 0px;
}

.site-header {
  isolation: isolate;
}
.header-geometry {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: .72;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(121,166,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121,166,255,.045) 1px, transparent 1px);
  background-size:
    32px 32px,
    32px 32px,
    8px 8px,
    8px 8px;
  background-position:
    calc(50% + var(--geo-x)) calc(50% + var(--geo-y)),
    calc(50% + var(--geo-x)) calc(50% + var(--geo-y)),
    calc(50% + var(--geo-x)) calc(50% + var(--geo-y)),
    calc(50% + var(--geo-x)) calc(50% + var(--geo-y));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  transition: opacity .25s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121,166,255,.45), transparent);
  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
}
.hero-geometry {
  position: absolute;
  z-index: 1;
  width: min(1080px, 82vw);
  height: auto;
  right: -180px;
  top: -72px;
  color: rgba(132,172,255,.22);
  pointer-events: none;
  transform:
    translate3d(
      calc(var(--geo-x) * .45),
      calc(var(--geo-y) * .3 + var(--geo-scroll) * .08),
      0
    );
  transform-origin: 70% 30%;
  transition: opacity .25s ease;
}
.hero-geometry pattern path,
.triangle-grid-fill {
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.triangle-grid-accent {
  fill: rgba(44,107,237,.035);
  stroke: rgba(121,166,255,.34);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.triangle-grid-accent-small {
  fill: rgba(255,255,255,.018);
  stroke: rgba(255,255,255,.15);
}
html[data-theme="dark"] .hero-geometry {
  color: rgba(121,166,255,.19);
}

/* Refined interaction surfaces */
.button,
.theme-toggle,
.command-button,
.menu-toggle,
.cite-button,
.copy-bibtex,
.email-copy-button,
.year-filter,
.publication-view-toggle,
.clear-publication-filters {
  transition:
    transform .16s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .theme-toggle:hover,
  .command-button:hover,
  .email-copy-button:hover,
  .publication-view-toggle:hover,
  .clear-publication-filters:hover {
    transform: translateY(-1px);
  }
  .button:active,
  .theme-toggle:active,
  .command-button:active,
  .email-copy-button:active,
  .publication-view-toggle:active {
    transform: translateY(0) scale(.98);
  }
}

.publication-sort select {
  min-height: 36px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 720;
  cursor: pointer;
}
.publication-view-toggle {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font: inherit;
  font-size: .78rem;
  font-weight: 760;
  cursor: pointer;
}
.publication-view-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.publication-list {
  transition: opacity .16s ease;
}
.publication-list.is-reordering {
  opacity: .35;
}
.publication-list.is-compact .publication {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
}
.publication-list.is-compact .publication h3 {
  font-size: 1.01rem;
  margin-bottom: 4px;
}
.publication-list.is-compact .publication p {
  font-size: .9rem;
}
.publication-list.is-compact .pub-links {
  margin-top: 7px;
}
.publication-list.is-compact .citation-panel {
  margin-top: 10px;
}

html[data-theme="dark"] .publication-sort select,
html[data-theme="dark"] .publication-view-toggle {
  background: #162135;
  border-color: var(--line);
  color: var(--ink);
}

@media (max-width: 900px) {
  .header-geometry {
    background-size: 28px 28px, 28px 28px, 7px 7px, 7px 7px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 80%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 80%, transparent 100%);
  }
  .hero-geometry {
    width: 1180px;
    right: -460px;
    top: -40px;
    opacity: .72;
  }
  .publication-tools-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .hero-geometry {
    right: -590px;
    opacity: .52;
  }
  .publication-sort,
  .publication-sort select,
  .publication-view-toggle {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-geometry {
    transform: none !important;
  }
  .header-geometry {
    background-position: 50% 50% !important;
  }
}


/* ========================================================================
   Live geometric header — original triangulated field
   ======================================================================== */
.site-header {
  min-height: 68px;
  background: rgba(6, 10, 20, .74);
  border-bottom: 1px solid rgba(139,180,255,.14);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  overflow: visible;
  isolation: isolate;
}
.toolbar-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .82;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.nav-wrap {
  min-height: 68px;
}
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  letter-spacing: .07em;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(121,166,255,.28);
  transform: rotate(45deg);
  pointer-events: none;
}
.brand-mark::after {
  inset: 11px;
  border-color: rgba(255,255,255,.18);
}
.brand-mark { isolation: isolate; }
.brand-mark > * { position: relative; z-index: 2; }

.nav {
  gap: clamp(.8rem, 1.6vw, 1.35rem);
}
.nav a {
  position: relative;
  padding: .45rem 0;
  color: #aebbd0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: #79a6ff;
  transition: left .18s ease, right .18s ease, box-shadow .18s ease;
}
.nav a:hover::after,
.nav a.is-active::after {
  left: 0;
  right: 0;
  box-shadow: 0 0 12px rgba(121,166,255,.6);
}
.nav a.is-active {
  background: transparent;
  color: #fff;
}
.header-controls > button {
  border-radius: 8px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
}
.header-controls > button:hover {
  border-color: rgba(121,166,255,.42);
  background: rgba(121,166,255,.08);
}

/* Hero wireframe */
.hero {
  min-height: min(790px, calc(100svh - 30px));
  padding: 116px 0 92px;
  background:
    radial-gradient(85% 80% at 72% 8%, rgba(35,70,145,.42) 0%, transparent 62%),
    linear-gradient(180deg, #09101d 0%, #0b1220 55%, #0a111e 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9,16,29,.93) 0%, rgba(9,16,29,.67) 46%, rgba(9,16,29,.08) 78%, rgba(9,16,29,.20) 100%),
    linear-gradient(0deg, rgba(9,16,29,.52) 0%, transparent 38%);
}
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .95;
}
.hero-grid {
  z-index: 2;
}
.hero-copy {
  max-width: 790px;
}
.hero h1 {
  text-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.profile-card {
  background: rgba(9,17,31,.58);
  border-color: rgba(137,171,235,.18);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

/* Journal cover cards */
.publication.has-journal-cover {
  grid-template-columns: 64px 94px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.journal-cover {
  position: relative;
  width: 88px;
  height: 122px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(18,24,38,.12);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(10,24,48,.12);
  text-decoration: none;
  text-align: left;
  line-height: 1.12;
  transform-origin: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.journal-cover:hover {
  transform: translateY(-3px) rotate(-.5deg);
  box-shadow: 0 14px 30px rgba(10,24,48,.18);
}
.journal-cover-publisher {
  font-size: .48rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.journal-cover-title {
  margin-top: 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .69rem;
  font-weight: 700;
}
.journal-cover-title--large {
  margin-top: 18px;
  font-size: 1.45rem;
  letter-spacing: -.04em;
}
.journal-cover-subtitle {
  margin-top: 5px;
  font-size: .44rem;
  line-height: 1.2;
}
.journal-cover-script {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .62rem;
  font-style: italic;
}
.journal-cover-meta {
  margin-top: auto;
  font-size: .45rem;
  font-weight: 700;
  opacity: .76;
}
.journal-cover--nmpde {
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255,255,255,.12), transparent 32%),
    #14365d;
}
.journal-cover--nmpde::after {
  content: "∂";
  position: absolute;
  right: -4px;
  bottom: -20px;
  color: rgba(255,255,255,.07);
  font-family: Georgia, serif;
  font-size: 5.5rem;
  font-style: italic;
}
.journal-cover--zamm {
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(255,255,255,.07) 62% 63%, transparent 63%),
    #284537;
}
.journal-cover--zamm::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 37px;
  height: 1px;
  background: rgba(255,255,255,.24);
}
.journal-cover--jmaa {
  color: #ede7cf;
  background:
    linear-gradient(180deg, #e8e1c8 0 23%, #22204c 23% 60%, #e8e1c8 60% 100%);
}
.journal-cover--jmaa .journal-cover-publisher,
.journal-cover--jmaa .journal-cover-script,
.journal-cover--jmaa .journal-cover-meta {
  color: #28233f;
}
.journal-cover--jmaa .journal-cover-title {
  margin-top: 9px;
  color: #f1ead2;
  font-size: .64rem;
}
.journal-cover--image {
  padding: 0;
  background: #f2f2f2;
}
.journal-cover--image img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 9px;
  color: #191919;
  background: #f5a735;
}
.journal-cover--gmj .journal-cover-title {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
}

html[data-theme="dark"] .journal-cover {
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.publication-list.is-compact .publication.has-journal-cover {
  grid-template-columns: 58px 70px minmax(0,1fr);
  gap: 16px;
}
.publication-list.is-compact .journal-cover {
  width: 66px;
  height: 92px;
}
.publication-list.is-compact .journal-cover-title,
.publication-list.is-compact .journal-cover-subtitle,
.publication-list.is-compact .journal-cover-script {
  transform: scale(.82);
  transform-origin: left top;
}
.publication-list.is-compact .journal-cover-meta {
  font-size: .4rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 96px;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(9,16,29,.55) 0%, rgba(9,16,29,.82) 72%, #0b1220 100%);
  }
  .toolbar-mesh { opacity: .6; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  .nav-wrap { min-height: 64px; }
  .hero { padding-top: 88px; }
  .hero-mesh { opacity: .72; }
  .publication.has-journal-cover {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }
  .publication.has-journal-cover .pub-year {
    grid-column: 1 / -1;
  }
  .journal-cover {
    width: 72px;
    height: 100px;
  }
  .journal-cover-title { font-size: .58rem; }
  .journal-cover-title--large { font-size: 1.1rem; }
  .journal-cover-subtitle { font-size: .38rem; }
  .journal-cover-meta { font-size: .39rem; }
}

@media (prefers-reduced-motion: reduce) {
  .journal-cover { transition: none; }
}


/* ========================================================================
   Fluid journal-cover layout across desktop, tablet and mobile
   ======================================================================== */
.publication.has-journal-cover {
  --cover-width: clamp(78px, 7.2vw, 96px);
  grid-template-columns: minmax(56px, 64px) var(--cover-width) minmax(0, 1fr);
  column-gap: clamp(16px, 2vw, 24px);
  row-gap: 10px;
  align-items: start;
}

.publication.has-journal-cover > .pub-year {
  min-width: 0;
}

.publication.has-journal-cover > .journal-cover {
  width: var(--cover-width);
  height: auto;
  aspect-ratio: 88 / 122;
  max-width: 100%;
  justify-self: start;
}

.publication.has-journal-cover > .pub-content {
  min-width: 0;
  width: 100%;
}

.journal-cover--image img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* Compact view remains fluid rather than forcing a fixed cover width. */
.publication-list.is-compact .publication.has-journal-cover {
  --cover-width: clamp(62px, 5.8vw, 76px);
  grid-template-columns: minmax(50px, 58px) var(--cover-width) minmax(0, 1fr);
  column-gap: clamp(12px, 1.6vw, 18px);
}

.publication-list.is-compact .publication.has-journal-cover > .journal-cover {
  width: var(--cover-width);
  height: auto;
  aspect-ratio: 88 / 122;
}

/* Tablets and small laptops */
@media (min-width: 621px) and (max-width: 900px) {
  .publication.has-journal-cover {
    --cover-width: clamp(72px, 10vw, 86px);
    grid-template-columns: 54px var(--cover-width) minmax(0, 1fr);
    column-gap: 16px;
  }

  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(60px, 8vw, 70px);
    grid-template-columns: 50px var(--cover-width) minmax(0, 1fr);
    column-gap: 13px;
  }

  .journal-cover-title {
    font-size: clamp(.56rem, 1.15vw, .66rem);
  }

  .journal-cover-title--large {
    font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  }
}

/* Phones: stack cover and text so neither is squeezed. */
@media (max-width: 620px) {
  .publication.has-journal-cover,
  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(82px, 27vw, 108px);
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 24px;
  }

  .publication.has-journal-cover > .pub-year,
  .publication.has-journal-cover > .journal-cover,
  .publication.has-journal-cover > .pub-content,
  .publication-list.is-compact .publication.has-journal-cover > .pub-year,
  .publication-list.is-compact .publication.has-journal-cover > .journal-cover,
  .publication-list.is-compact .publication.has-journal-cover > .pub-content {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .publication.has-journal-cover > .journal-cover,
  .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
    width: var(--cover-width);
    max-width: min(36vw, 108px);
    aspect-ratio: 88 / 122;
    justify-self: start;
  }

  .publication-list.is-compact .publication.has-journal-cover {
    padding-block: 18px;
  }

  .publication-list.is-compact .journal-cover-title,
  .publication-list.is-compact .journal-cover-subtitle,
  .publication-list.is-compact .journal-cover-script {
    transform: none;
  }

  .journal-cover-title {
    font-size: clamp(.58rem, 2.6vw, .68rem);
  }

  .journal-cover-title--large {
    font-size: clamp(1.12rem, 5vw, 1.4rem);
  }

  .journal-cover-subtitle {
    font-size: clamp(.39rem, 1.8vw, .46rem);
  }

  .journal-cover-meta {
    font-size: clamp(.39rem, 1.7vw, .45rem);
  }

  .journal-cover-publisher {
    font-size: clamp(.42rem, 1.8vw, .49rem);
  }
}

/* Very narrow phones */
@media (max-width: 390px) {
  .publication.has-journal-cover,
  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(76px, 25vw, 92px);
  }

  .publication.has-journal-cover > .journal-cover,
  .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
    max-width: 92px;
  }
}


/* Non-interactive visual example of the Copy email control */
.copy-email-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 0 3px;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font: inherit;
  font-size: .78em;
  font-weight: 780;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.copy-email-example-icon {
  font-size: .92em;
  line-height: 1;
  opacity: .9;
}

@media (max-width: 430px) {
  .copy-email-example {
    min-height: 26px;
    padding: 2px 7px;
    font-size: .74em;
  }
}


/* ORCID links beside publication co-authors */
.pub-authors {
  line-height: 1.65;
}
.author-orcid {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  margin: 0 .12em 0 .14em;
  vertical-align: -.14em;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.author-orcid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.author-orcid:hover,
.author-orcid:focus-visible {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(166,206,57,.18);
  outline: none;
}
.author-orcid:active {
  transform: scale(1.02);
}

@media (max-width: 620px) {
  .author-orcid {
    width: 1.12em;
    height: 1.12em;
    margin-inline: .14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-orcid {
    transition: none;
  }
}


/* Georgian Mathematical Journal cover: keep all text within the cover bounds */
.journal-cover--gmj .journal-cover-fallback {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 8px 7px 9px;
  overflow: hidden;
}

.journal-cover--gmj .journal-cover-publisher {
  margin: 0;
  font-size: clamp(.36rem, .52vw, .44rem);
  line-height: 1.05;
  letter-spacing: .055em;
  white-space: normal;
}

.journal-cover--gmj .journal-cover-title {
  margin: 9px 0 0;
  max-width: 100%;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.50rem, .70vw, .61rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: .015em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
}

.publication-list.is-compact .journal-cover--gmj .journal-cover-title {
  margin-top: 6px;
  font-size: clamp(.43rem, .58vw, .52rem);
  line-height: 1.05;
  transform: none;
}

@media (min-width: 621px) and (max-width: 900px) {
  .journal-cover--gmj .journal-cover-title {
    font-size: clamp(.48rem, 1.05vw, .56rem);
  }
}

@media (max-width: 620px) {
  .journal-cover--gmj .journal-cover-fallback {
    padding: 7px 6px 8px;
  }

  .journal-cover--gmj .journal-cover-publisher {
    font-size: clamp(.36rem, 1.65vw, .42rem);
  }

  .journal-cover--gmj .journal-cover-title,
  .publication-list.is-compact .journal-cover--gmj .journal-cover-title {
    margin-top: 7px;
    font-size: clamp(.47rem, 2.35vw, .57rem);
    line-height: 1.06;
    transform: none;
  }
}

@media (max-width: 390px) {
  .journal-cover--gmj .journal-cover-title,
  .publication-list.is-compact .journal-cover--gmj .journal-cover-title {
    font-size: clamp(.43rem, 2.25vw, .52rem);
  }
}


/* ========================================================================
   Georgian Mathematical Journal cover — reference-inspired responsive card
   ======================================================================== */
.journal-cover--gmj {
  position: relative;
  overflow: hidden;
  color: #151515;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.055) 0 23%,
      rgba(255,255,255,.012) 23% 66%,
      rgba(255,255,255,.035) 66% 100%),
    #f0a438;
  border-color: rgba(54,35,9,.16);
}

.journal-cover--gmj .journal-cover-fallback.gmj-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: #16181d;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.055) 0 23%,
      rgba(255,255,255,.012) 23% 66%,
      rgba(255,255,255,.035) 66% 100%),
    linear-gradient(180deg, #f2a73b 0%, #efa037 100%);
}

.journal-cover--gmj .gmj-topband {
  position: absolute;
  inset: 0 0 auto 0;
  height: 18%;
  display: grid;
  grid-template-columns: .94fr 1.25fr;
  align-items: start;
  border-bottom: 1px solid rgba(61,38,7,.17);
  box-shadow: 0 1px 3px rgba(82,49,4,.09);
}

.journal-cover--gmj .gmj-imprint,
.journal-cover--gmj .gmj-issue {
  min-width: 0;
  padding: 9% 8% 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.31rem, .43vw, .39rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: .018em;
  text-transform: uppercase;
}

.journal-cover--gmj .gmj-imprint {
  border-right: 1px solid rgba(61,38,7,.14);
  white-space: nowrap;
}

.journal-cover--gmj .gmj-issue {
  text-align: left;
  white-space: normal;
}

.journal-cover--gmj .gmj-title-block {
  position: absolute;
  z-index: 3;
  left: 9%;
  right: 5%;
  top: 23%;
}

.journal-cover--gmj .journal-cover-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .02em;
  width: 100%;
  margin: 0;
  color: #17191f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.60rem, .88vw, .80rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.028em;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.journal-cover--gmj .journal-cover-title > span {
  display: block;
  max-width: 100%;
}

.journal-cover--gmj .gmj-graphic-box {
  position: absolute;
  z-index: 1;
  left: 33%;
  top: 44%;
  width: 70%;
  height: 50%;
  border: clamp(3px, .45vw, 6px) solid rgba(225,118,11,.24);
  box-sizing: border-box;
}

.journal-cover--gmj .gmj-graphic-arc {
  position: absolute;
  z-index: 1;
  left: 22%;
  top: 42%;
  width: 94%;
  height: 73%;
  border: clamp(3px, .45vw, 6px) solid rgba(225,118,11,.17);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-13deg);
  box-sizing: border-box;
}

.journal-cover--gmj .gmj-deg-mark {
  position: absolute;
  z-index: 3;
  left: 9%;
  bottom: 4.5%;
  width: 13%;
  min-width: 15px;
  max-width: 25px;
  aspect-ratio: .62;
  display: grid;
  grid-template-rows: .88fr 1.12fr;
  place-items: center;
  padding: 4% 1%;
  background: #1d1d1f;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.27rem, .40vw, .36rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}

.journal-cover--gmj .gmj-deg-mark span:first-child {
  position: relative;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .83em;
  font-weight: 800;
}

.journal-cover--gmj .gmj-deg-mark span:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.28em;
  width: 1.45em;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.8);
}

.journal-cover--gmj .gmj-footer-url {
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 5.6%;
  max-width: 62%;
  color: #171717;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(.25rem, .35vw, .32rem);
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
}

/* Neutralize older GMJ title rules. */
.publication-list.is-compact .journal-cover--gmj .journal-cover-title {
  margin: 0;
  font-size: clamp(.49rem, .68vw, .62rem);
  line-height: .96;
  transform: none;
}

@media (min-width: 621px) and (max-width: 900px) {
  .journal-cover--gmj .journal-cover-title {
    font-size: clamp(.54rem, 1.18vw, .69rem);
  }

  .journal-cover--gmj .gmj-imprint,
  .journal-cover--gmj .gmj-issue {
    font-size: clamp(.28rem, .68vw, .36rem);
  }
}

@media (max-width: 620px) {
  .journal-cover--gmj .journal-cover-title,
  .publication-list.is-compact .journal-cover--gmj .journal-cover-title {
    font-size: clamp(.57rem, 2.65vw, .74rem);
    line-height: .96;
  }

  .journal-cover--gmj .gmj-imprint,
  .journal-cover--gmj .gmj-issue {
    font-size: clamp(.28rem, 1.35vw, .36rem);
  }

  .journal-cover--gmj .gmj-footer-url {
    font-size: clamp(.23rem, 1.05vw, .30rem);
  }

  .journal-cover--gmj .gmj-deg-mark {
    font-size: clamp(.26rem, 1.2vw, .34rem);
  }
}

@media (max-width: 390px) {
  .journal-cover--gmj .journal-cover-title,
  .publication-list.is-compact .journal-cover--gmj .journal-cover-title {
    font-size: clamp(.52rem, 2.45vw, .66rem);
  }
}


/* Final GMJ text-fit safeguards */
.journal-cover--gmj {
  container-type: inline-size;
}

.journal-cover--gmj .gmj-topband {
  grid-template-columns: .92fr 1.28fr;
  height: 19%;
}

.journal-cover--gmj .gmj-imprint,
.journal-cover--gmj .gmj-issue {
  box-sizing: border-box;
  max-width: 100%;
  padding: 8% 7% 0;
  overflow: hidden;
}

.journal-cover--gmj .gmj-imprint {
  font-size: clamp(.27rem, 5.1cqw, .37rem);
  line-height: 1.02;
}

.journal-cover--gmj .gmj-issue {
  display: flex;
  flex-direction: column;
  gap: .12em;
  font-size: clamp(.245rem, 4.55cqw, .34rem);
  line-height: 1.04;
  letter-spacing: .005em;
  white-space: nowrap;
}

.journal-cover--gmj .gmj-issue > span {
  display: block;
  max-width: 100%;
}

.journal-cover--gmj .gmj-title-block {
  left: 7.5%;
  right: 3.5%;
  top: 24%;
  max-width: 89%;
  overflow: hidden;
}

.journal-cover--gmj .journal-cover-title,
.publication-list.is-compact .journal-cover--gmj .journal-cover-title {
  width: 100%;
  max-width: 100%;
  gap: .015em;
  margin: 0;
  font-size: clamp(.40rem, 8.15cqw, .64rem);
  line-height: .97;
  letter-spacing: -.032em;
  white-space: nowrap;
  overflow: hidden;
  transform: none;
}

.journal-cover--gmj .journal-cover-title > span {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}

.journal-cover--gmj .gmj-footer-url {
  right: 5%;
  max-width: 68%;
  font-size: clamp(.20rem, 3.9cqw, .29rem);
}

.journal-cover--gmj .gmj-deg-mark {
  width: 12%;
  min-width: 13px;
  max-width: 22px;
  font-size: clamp(.22rem, 4.0cqw, .32rem);
}

/* Fallback for browsers without container-query units. */
@supports not (font-size: 1cqw) {
  .journal-cover--gmj .gmj-imprint {
    font-size: .29rem;
  }

  .journal-cover--gmj .gmj-issue {
    font-size: .255rem;
  }

  .journal-cover--gmj .journal-cover-title,
  .publication-list.is-compact .journal-cover--gmj .journal-cover-title {
    font-size: .46rem;
  }

  .journal-cover--gmj .gmj-footer-url {
    font-size: .22rem;
  }
}

@media (max-width: 620px) {
  .journal-cover--gmj .gmj-title-block {
    left: 7%;
    right: 3%;
  }

  .journal-cover--gmj .journal-cover-title,
  .publication-list.is-compact .journal-cover--gmj .journal-cover-title {
    font-size: clamp(.42rem, 8.0cqw, .61rem);
  }
}


/* Journal of Mathematical Analysis and Applications — title contrast fix */
.journal-cover--jmaa .journal-cover-title--jmaa {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .10em;
  width: 100%;
  margin-top: 9px;
  line-height: 1.08;
}

.journal-cover--jmaa .jmaa-title-main,
.journal-cover--jmaa .jmaa-title-sub {
  display: block;
  max-width: 100%;
}

.journal-cover--jmaa .jmaa-title-main {
  color: #f3ecd5;
}

.journal-cover--jmaa .jmaa-title-sub {
  color: #28233f;
  font-weight: 750;
  text-shadow: none;
}

/* Keep the lower title line readable in compact/mobile cover sizes. */
.publication-list.is-compact .journal-cover--jmaa .journal-cover-title--jmaa {
  gap: .06em;
}

@media (max-width: 620px) {
  .journal-cover--jmaa .journal-cover-title--jmaa {
    gap: .06em;
  }
}

html[data-theme="dark"] .journal-cover--jmaa .jmaa-title-main {
  color: #f3ecd5;
}

html[data-theme="dark"] .journal-cover--jmaa .jmaa-title-sub {
  color: #28233f;
}


/* JMAA boundary-safe title treatment */
.journal-cover--jmaa .jmaa-title-sub {
  color: #201d3e;
  font-weight: 800;
  -webkit-text-stroke: .34px rgba(255, 253, 244, .96);
  paint-order: stroke fill;
  text-shadow:
    -.34px 0 rgba(255, 253, 244, .96),
     .34px 0 rgba(255, 253, 244, .96),
     0 -.34px rgba(255, 253, 244, .96),
     0  .34px rgba(255, 253, 244, .96),
     0 0 1.2px rgba(255, 253, 244, .72);
}

.publication-list.is-compact .journal-cover--jmaa .jmaa-title-sub {
  -webkit-text-stroke-width: .28px;
  text-shadow:
    -.28px 0 rgba(255, 253, 244, .96),
     .28px 0 rgba(255, 253, 244, .96),
     0 -.28px rgba(255, 253, 244, .96),
     0  .28px rgba(255, 253, 244, .96),
     0 0 1px rgba(255, 253, 244, .68);
}

@media (max-width: 620px) {
  .journal-cover--jmaa .jmaa-title-sub {
    -webkit-text-stroke-width: .30px;
    text-shadow:
      -.30px 0 rgba(255, 253, 244, .96),
       .30px 0 rgba(255, 253, 244, .96),
       0 -.30px rgba(255, 253, 244, .96),
       0  .30px rgba(255, 253, 244, .96),
       0 0 1px rgba(255, 253, 244, .70);
  }
}

html[data-theme="dark"] .journal-cover--jmaa .jmaa-title-sub {
  color: #201d3e;
  -webkit-text-stroke-color: rgba(255, 253, 244, .96);
}


/* Memoirs on Differential Equations and Mathematical Physics cover */
.journal-cover--mdemp {
  position: relative;
  overflow: hidden;
  padding: 9px 8px;
  color: #f4f5f8;
  background:
    linear-gradient(155deg, rgba(255,255,255,.055), transparent 31%),
    linear-gradient(180deg, #203c63 0%, #172d4d 100%);
  border-color: rgba(20,42,72,.32);
}

.journal-cover--mdemp::before {
  content: "";
  position: absolute;
  inset: auto -24% 13% 27%;
  height: 44%;
  border: 1px solid rgba(185,215,245,.22);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.journal-cover--mdemp::after {
  content: "∫";
  position: absolute;
  right: 3%;
  bottom: -12%;
  color: rgba(255,255,255,.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-style: italic;
  line-height: 1;
}

.journal-cover--mdemp .mdemp-topline,
.journal-cover--mdemp .mdemp-title,
.journal-cover--mdemp .mdemp-volume,
.journal-cover--mdemp .mdemp-year,
.journal-cover--mdemp .mdemp-issn {
  position: relative;
  z-index: 2;
  display: block;
}

.journal-cover--mdemp .mdemp-topline {
  font-size: clamp(.42rem, .58vw, .50rem);
  font-weight: 850;
  letter-spacing: .13em;
}

.journal-cover--mdemp .mdemp-title {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.56rem, .75vw, .68rem);
  font-weight: 700;
  line-height: 1.08;
}

.journal-cover--mdemp .mdemp-rule {
  position: relative;
  z-index: 2;
  display: block;
  width: 58%;
  height: 1px;
  margin-top: 8px;
  background: rgba(255,255,255,.48);
}

.journal-cover--mdemp .mdemp-volume {
  margin-top: 8px;
  font-size: clamp(.40rem, .54vw, .47rem);
  font-weight: 800;
  letter-spacing: .04em;
}

.journal-cover--mdemp .mdemp-year {
  margin-top: 2px;
  font-size: clamp(.36rem, .48vw, .43rem);
  font-weight: 700;
}

.journal-cover--mdemp .mdemp-issn {
  margin-top: auto;
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: clamp(.27rem, .37vw, .33rem);
  font-weight: 700;
  letter-spacing: .035em;
  opacity: .86;
}

.publication-list.is-compact .journal-cover--mdemp .mdemp-title {
  font-size: clamp(.45rem, .62vw, .56rem);
}

@media (max-width: 620px) {
  .journal-cover--mdemp .mdemp-topline {
    font-size: clamp(.40rem, 1.8vw, .49rem);
  }

  .journal-cover--mdemp .mdemp-title {
    font-size: clamp(.54rem, 2.55vw, .67rem);
  }

  .publication-list.is-compact .journal-cover--mdemp .mdemp-title {
    font-size: clamp(.50rem, 2.3vw, .61rem);
  }
}


/* JMAA: improve visibility of the "Journal of" line on the dark band */
.journal-cover--jmaa .journal-cover-script {
  color: #f7f1df;
  font-weight: 700;
  -webkit-text-stroke: .32px rgba(255, 253, 244, .92);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(255, 253, 244, .80),
    0 0 4px rgba(255, 253, 244, .12);
}

.publication-list.is-compact .journal-cover--jmaa .journal-cover-script {
  -webkit-text-stroke-width: .26px;
  text-shadow:
    0 0 .8px rgba(255, 253, 244, .78),
    0 0 3px rgba(255, 253, 244, .10);
}

@media (max-width: 620px) {
  .journal-cover--jmaa .journal-cover-script {
    -webkit-text-stroke-width: .28px;
    text-shadow:
      0 0 .9px rgba(255, 253, 244, .80),
      0 0 3px rgba(255, 253, 244, .10);
  }
}

html[data-theme="dark"] .journal-cover--jmaa .journal-cover-script {
  color: #f7f1df;
  -webkit-text-stroke-color: rgba(255, 253, 244, .92);
}


/* ========================================================================
   JMAA cross-device responsiveness and dual-contrast typography
   ======================================================================== */

/* Keep publication media and tables inside their containers on all devices. */
.publication img,
.publication svg,
.publication video,
.publication canvas {
  max-width: 100%;
  height: auto;
}

.publication table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.publication .table-scroll,
.citation-panel {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Make the JMAA cover fluid instead of relying on fixed dimensions. */
.journal-cover--jmaa {
  --jmaa-cover-width: clamp(76px, 7.2vw, 96px);
  width: var(--jmaa-cover-width);
  height: auto;
  aspect-ratio: 88 / 122;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.publication.has-journal-cover > .journal-cover--jmaa {
  justify-self: start;
}

.publication-list.is-compact .journal-cover--jmaa {
  --jmaa-cover-width: clamp(60px, 5.8vw, 74px);
  width: var(--jmaa-cover-width);
  height: auto;
  aspect-ratio: 88 / 122;
}

/* Dual-contrast title treatment:
   light inner edge + dark outer halo for mixed light/dark backgrounds. */
.journal-cover--jmaa .journal-cover-script,
.journal-cover--jmaa .jmaa-title-main,
.journal-cover--jmaa .jmaa-title-sub {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* "Journal of" — light fill, light inner outline, dark outer separation. */
.journal-cover--jmaa .journal-cover-script {
  color: #fff8e8;
  font-weight: 760;
  -webkit-text-stroke: .30px rgba(255,255,255,.96);
  paint-order: stroke fill;
  text-shadow:
    0 0 .75px rgba(255,255,255,.96),
    0 0 1.8px rgba(20,18,42,.88),
    .55px .55px 0 rgba(20,18,42,.72),
   -.55px -.55px 0 rgba(20,18,42,.58);
}

/* Main title on the dark band: light fill with dark outer halo. */
.journal-cover--jmaa .jmaa-title-main {
  color: #f5eed8;
  -webkit-text-stroke: .28px rgba(255,255,255,.90);
  paint-order: stroke fill;
  text-shadow:
    0 0 .7px rgba(255,255,255,.80),
    0 0 1.7px rgba(25,22,52,.86);
}

/* Lower title crosses the dark/light boundary:
   dark fill + white edge + dark outer halo. */
.journal-cover--jmaa .jmaa-title-sub {
  color: #211e42;
  font-weight: 800;
  -webkit-text-stroke: .34px rgba(255,255,255,.97);
  paint-order: stroke fill;
  text-shadow:
    0 0 .8px rgba(255,255,255,.96),
    0 0 1.9px rgba(24,21,47,.84),
    .50px .50px 0 rgba(24,21,47,.55),
   -.50px -.50px 0 rgba(24,21,47,.45);
}

/* Tablet / small laptop */
@media (min-width: 621px) and (max-width: 900px) {
  .journal-cover--jmaa {
    --jmaa-cover-width: clamp(70px, 10vw, 86px);
  }

  .publication-list.is-compact .journal-cover--jmaa {
    --jmaa-cover-width: clamp(58px, 8vw, 69px);
  }

  .journal-cover--jmaa .journal-cover-script {
    -webkit-text-stroke-width: .27px;
  }

  .journal-cover--jmaa .jmaa-title-main {
    -webkit-text-stroke-width: .26px;
  }

  .journal-cover--jmaa .jmaa-title-sub {
    -webkit-text-stroke-width: .30px;
  }
}

/* Phones: keep the cover comfortably inside the viewport. */
@media (max-width: 620px) {
  .journal-cover--jmaa,
  .publication-list.is-compact .journal-cover--jmaa {
    --jmaa-cover-width: clamp(82px, 27vw, 106px);
    width: var(--jmaa-cover-width);
    max-width: min(36vw, 106px);
    height: auto;
    aspect-ratio: 88 / 122;
  }

  .journal-cover--jmaa .journal-cover-script {
    -webkit-text-stroke-width: .28px;
    text-shadow:
      0 0 .7px rgba(255,255,255,.96),
      0 0 1.6px rgba(20,18,42,.88);
  }

  .journal-cover--jmaa .jmaa-title-main {
    -webkit-text-stroke-width: .25px;
  }

  .journal-cover--jmaa .jmaa-title-sub {
    -webkit-text-stroke-width: .29px;
    text-shadow:
      0 0 .75px rgba(255,255,255,.96),
      0 0 1.6px rgba(24,21,47,.84);
  }

  /* Generic publication tables become horizontally scrollable on phones. */
  .publication table {
    min-width: 520px;
  }
}

/* Very narrow iOS/Android screens */
@media (max-width: 390px) {
  .journal-cover--jmaa,
  .publication-list.is-compact .journal-cover--jmaa {
    --jmaa-cover-width: clamp(76px, 25vw, 92px);
    max-width: 92px;
  }

  .publication table {
    min-width: 480px;
  }
}

html[data-theme="dark"] .journal-cover--jmaa .journal-cover-script {
  color: #fff8e8;
  -webkit-text-stroke-color: rgba(255,255,255,.96);
}

html[data-theme="dark"] .journal-cover--jmaa .jmaa-title-main {
  color: #f5eed8;
  -webkit-text-stroke-color: rgba(255,255,255,.90);
}

html[data-theme="dark"] .journal-cover--jmaa .jmaa-title-sub {
  color: #211e42;
  -webkit-text-stroke-color: rgba(255,255,255,.97);
}


/* ========================================================================
   Memoirs cover — cover-relative typography and cross-device text fitting
   ======================================================================== */
.journal-cover--mdemp {
  container-type: inline-size;
  box-sizing: border-box;
  padding: 8% 7%;
  isolation: isolate;
}

.journal-cover--mdemp .mdemp-topline,
.journal-cover--mdemp .mdemp-title,
.journal-cover--mdemp .mdemp-volume,
.journal-cover--mdemp .mdemp-year,
.journal-cover--mdemp .mdemp-issn {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.journal-cover--mdemp .mdemp-topline {
  margin: 0;
  font-size: clamp(.34rem, 5.4cqw, .50rem);
  line-height: 1;
  letter-spacing: .11em;
  white-space: nowrap;
}

.journal-cover--mdemp .mdemp-title {
  display: block;
  width: 100%;
  margin: clamp(6px, 8cqw, 10px) 0 0;
  color: #f7f8fb;
  font-size: clamp(.46rem, 8.1cqw, .66rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 1px 1px rgba(5,18,35,.42);
}

.journal-cover--mdemp .mdemp-rule {
  width: min(62%, 54px);
  margin-top: clamp(5px, 6.5cqw, 8px);
}

.journal-cover--mdemp .mdemp-volume {
  margin-top: clamp(5px, 6.5cqw, 8px);
  font-size: clamp(.34rem, 5.0cqw, .46rem);
  line-height: 1.05;
  letter-spacing: .025em;
  white-space: nowrap;
}

.journal-cover--mdemp .mdemp-year {
  margin-top: clamp(1px, 2cqw, 3px);
  font-size: clamp(.31rem, 4.5cqw, .41rem);
  line-height: 1.05;
  white-space: nowrap;
}

.journal-cover--mdemp .mdemp-issn {
  left: 7%;
  right: 7%;
  bottom: 6%;
  width: auto;
  font-size: clamp(.235rem, 3.55cqw, .32rem);
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  text-overflow: clip;
}

.journal-cover--mdemp::before {
  z-index: 0;
  inset: auto -22% 12% 26%;
  height: 43%;
}

.journal-cover--mdemp::after {
  z-index: 0;
  right: 2%;
  bottom: -10%;
  font-size: clamp(3.7rem, 72cqw, 5rem);
}

/* Compact view: retain the same proportions, only tighten vertical rhythm. */
.publication-list.is-compact .journal-cover--mdemp .mdemp-title {
  margin-top: clamp(5px, 6.5cqw, 8px);
  font-size: clamp(.43rem, 7.8cqw, .58rem);
  line-height: 1.03;
}

.publication-list.is-compact .journal-cover--mdemp .mdemp-rule,
.publication-list.is-compact .journal-cover--mdemp .mdemp-volume {
  margin-top: clamp(4px, 5.5cqw, 7px);
}

/* Tablet and small-laptop covers get slightly more breathing room. */
@media (min-width: 621px) and (max-width: 900px) {
  .journal-cover--mdemp .mdemp-title {
    font-size: clamp(.44rem, 8cqw, .60rem);
  }

  .journal-cover--mdemp .mdemp-issn {
    font-size: clamp(.23rem, 3.5cqw, .29rem);
  }
}

/* iOS/Android layouts use the larger stacked cover supplied by the
   publication grid; typography continues to scale from the cover width. */
@media (max-width: 620px) {
  .journal-cover--mdemp {
    padding: 8% 7%;
  }

  .journal-cover--mdemp .mdemp-title,
  .publication-list.is-compact .journal-cover--mdemp .mdemp-title {
    margin-top: clamp(6px, 7cqw, 9px);
    font-size: clamp(.48rem, 8.0cqw, .66rem);
    line-height: 1.04;
  }

  .journal-cover--mdemp .mdemp-topline {
    font-size: clamp(.35rem, 5.2cqw, .48rem);
  }

  .journal-cover--mdemp .mdemp-volume {
    font-size: clamp(.35rem, 4.8cqw, .44rem);
  }

  .journal-cover--mdemp .mdemp-year {
    font-size: clamp(.32rem, 4.3cqw, .40rem);
  }

  .journal-cover--mdemp .mdemp-issn {
    bottom: 5.5%;
    font-size: clamp(.25rem, 3.5cqw, .31rem);
  }
}

@media (max-width: 390px) {
  .journal-cover--mdemp .mdemp-title,
  .publication-list.is-compact .journal-cover--mdemp .mdemp-title {
    font-size: clamp(.45rem, 7.8cqw, .60rem);
  }
}

/* Conservative fallback for engines without container-query units. */
@supports not (font-size: 1cqw) {
  .journal-cover--mdemp .mdemp-topline { font-size: .38rem; }
  .journal-cover--mdemp .mdemp-title { font-size: .50rem; }
  .journal-cover--mdemp .mdemp-volume { font-size: .36rem; }
  .journal-cover--mdemp .mdemp-year { font-size: .33rem; }
  .journal-cover--mdemp .mdemp-issn { font-size: .25rem; }
}


/* ========================================================================
   Memoirs cover — mobile clipping fix
   Explicit title lines avoid WebKit/Android balanced-wrap clipping.
   ======================================================================== */
.journal-cover--mdemp .mdemp-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .02em;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  text-wrap: initial;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(.40rem, 7.35cqw, .60rem);
  line-height: 1.01;
  letter-spacing: -.016em;
}

.journal-cover--mdemp .mdemp-title > span {
  display: block;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
}

.publication-list.is-compact .journal-cover--mdemp .mdemp-title {
  font-size: clamp(.38rem, 7.0cqw, .53rem);
  line-height: 1;
}

/* Give the fixed four-line title enough vertical room before metadata. */
.journal-cover--mdemp .mdemp-rule {
  margin-top: clamp(4px, 5cqw, 7px);
}

.journal-cover--mdemp .mdemp-volume {
  margin-top: clamp(4px, 5cqw, 7px);
}

@media (min-width: 621px) and (max-width: 900px) {
  .journal-cover--mdemp .mdemp-title {
    font-size: clamp(.39rem, 7.15cqw, .55rem);
  }
}

@media (max-width: 620px) {
  .journal-cover--mdemp {
    padding-left: 6.5%;
    padding-right: 5.5%;
  }

  .journal-cover--mdemp .mdemp-title,
  .publication-list.is-compact .journal-cover--mdemp .mdemp-title {
    margin-top: clamp(5px, 6cqw, 8px);
    font-size: clamp(.39rem, 7.05cqw, .56rem);
    line-height: 1;
    overflow: visible;
  }

  .journal-cover--mdemp .mdemp-title > span {
    white-space: nowrap;
    overflow: visible;
  }

  .journal-cover--mdemp .mdemp-rule {
    margin-top: clamp(4px, 4.5cqw, 6px);
  }

  .journal-cover--mdemp .mdemp-volume {
    margin-top: clamp(4px, 4.5cqw, 6px);
  }
}

@media (max-width: 390px) {
  .journal-cover--mdemp {
    padding-left: 6%;
    padding-right: 4.5%;
  }

  .journal-cover--mdemp .mdemp-title,
  .publication-list.is-compact .journal-cover--mdemp .mdemp-title {
    font-size: clamp(.37rem, 6.85cqw, .50rem);
    line-height: .99;
  }
}

/* Fallback for browsers that parse the layout but lack cqw sizing. */
@supports not (font-size: 1cqw) {
  .journal-cover--mdemp .mdemp-title,
  .publication-list.is-compact .journal-cover--mdemp .mdemp-title {
    font-size: .43rem;
    line-height: 1;
  }
}


/* ========================================================================
   JMAA tablet-safe title fitting
   Prevents title clipping on iPad/Android tablet widths.
   ======================================================================== */
.journal-cover--jmaa {
  container-type: inline-size;
}

.journal-cover--jmaa .journal-cover-script,
.journal-cover--jmaa .journal-cover-title--jmaa,
.journal-cover--jmaa .journal-cover-meta {
  max-width: 100%;
  box-sizing: border-box;
}

.journal-cover--jmaa .journal-cover-title--jmaa {
  overflow: visible;
}

.journal-cover--jmaa .jmaa-title-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: .22em;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
  font-size: clamp(.44rem, 7.4cqw, .64rem);
  line-height: 1.02;
}

.journal-cover--jmaa .jmaa-main-word {
  display: inline-block;
  max-width: 100%;
}

.journal-cover--jmaa .jmaa-title-sub {
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
  font-size: clamp(.42rem, 7.0cqw, .62rem);
  line-height: 1.02;
}

/* Tablet / small laptop: split only the long main title into two safe lines. */
@media (min-width: 621px) and (max-width: 900px) {
  .journal-cover--jmaa {
    --jmaa-cover-width: clamp(74px, 10vw, 88px);
  }

  .publication-list.is-compact .journal-cover--jmaa {
    --jmaa-cover-width: clamp(62px, 8.5vw, 72px);
  }

  .journal-cover--jmaa .journal-cover-script {
    margin-top: clamp(8px, 12cqw, 11px);
    font-size: clamp(.39rem, 5.9cqw, .48rem);
    line-height: 1;
  }

  .journal-cover--jmaa .journal-cover-title--jmaa {
    margin-top: clamp(5px, 6.5cqw, 8px);
    gap: .04em;
    line-height: 1;
  }

  .journal-cover--jmaa .jmaa-title-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    font-size: clamp(.40rem, 6.6cqw, .53rem);
    line-height: .98;
    white-space: normal;
  }

  .journal-cover--jmaa .jmaa-main-word {
    display: block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .journal-cover--jmaa .jmaa-title-sub {
    margin-top: .04em;
    font-size: clamp(.38rem, 6.15cqw, .50rem);
    line-height: 1;
    white-space: nowrap;
  }

  .journal-cover--jmaa .journal-cover-meta {
    font-size: clamp(.31rem, 4.5cqw, .39rem);
    line-height: 1;
  }
}

/* Compact mode may produce a cover even narrower than a normal tablet card. */
.publication-list.is-compact .journal-cover--jmaa .jmaa-title-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  white-space: normal;
  font-size: clamp(.36rem, 6.5cqw, .48rem);
  line-height: .98;
}

.publication-list.is-compact .journal-cover--jmaa .jmaa-main-word {
  display: block;
  white-space: nowrap;
}

.publication-list.is-compact .journal-cover--jmaa .jmaa-title-sub {
  font-size: clamp(.35rem, 6.0cqw, .46rem);
  line-height: 1;
}

/* Phone cards are wider because the layout stacks; retain two title lines. */
@media (max-width: 620px) {
  .journal-cover--jmaa .jmaa-title-main {
    flex-direction: row;
    gap: .20em;
    white-space: nowrap;
    font-size: clamp(.43rem, 7.0cqw, .60rem);
  }

  .journal-cover--jmaa .jmaa-main-word {
    display: inline-block;
    white-space: nowrap;
  }

  .journal-cover--jmaa .jmaa-title-sub {
    font-size: clamp(.41rem, 6.7cqw, .58rem);
  }

  .publication-list.is-compact .journal-cover--jmaa .jmaa-title-main {
    flex-direction: row;
    gap: .18em;
    white-space: nowrap;
    font-size: clamp(.41rem, 6.8cqw, .56rem);
  }

  .publication-list.is-compact .journal-cover--jmaa .jmaa-main-word {
    display: inline-block;
  }
}

/* Very narrow tablet/phone engines without cqw support. */
@supports not (font-size: 1cqw) {
  @media (min-width: 621px) and (max-width: 900px) {
    .journal-cover--jmaa .jmaa-title-main {
      font-size: .42rem;
    }

    .journal-cover--jmaa .jmaa-title-sub {
      font-size: .40rem;
    }

    .journal-cover--jmaa .journal-cover-script {
      font-size: .40rem;
    }
  }
}


/* ========================================================================
   Cross-platform journal-cover safety layer
   Targets modern and older browsers across Android, iOS, Windows, macOS,
   Linux and embedded/TV Chromium-based browsers.
   ======================================================================== */
.journal-cover {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
}

.journal-cover,
.journal-cover * {
  box-sizing: border-box;
}

.journal-cover > span,
.journal-cover span {
  min-width: 0;
}

.journal-cover .journal-cover-publisher,
.journal-cover .journal-cover-title,
.journal-cover .journal-cover-subtitle,
.journal-cover .journal-cover-script,
.journal-cover .journal-cover-meta {
  max-width: 100%;
}

/* Use the rendered cover width as the preferred sizing reference when
   supported. Unsupported browsers keep the conservative rem fallbacks below. */
.journal-cover--nmpde,
.journal-cover--gmj,
.journal-cover--zamm,
.journal-cover--jmaa,
.journal-cover--mdemp {
  container-type: inline-size;
}

/* ------------------------------------------------------------------------
   NMPDE: four explicit lines keep the longest title safely inside the cover.
   ------------------------------------------------------------------------ */
.journal-cover--nmpde .journal-cover-publisher {
  font-size: .40rem;
  line-height: 1;
  white-space: nowrap;
}

.journal-cover--nmpde .journal-cover-title--nmpde {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .025em;
  margin-top: 11px;
  width: 100%;
  overflow: visible;
  font-size: .48rem;
  line-height: 1.02;
  letter-spacing: -.012em;
}

.journal-cover--nmpde .journal-cover-title--nmpde > span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.journal-cover--nmpde .journal-cover-meta {
  font-size: .36rem;
  line-height: 1;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------
   ZAMM: controlled subtitle lines avoid platform-dependent wrapping.
   ------------------------------------------------------------------------ */
.journal-cover--zamm .journal-cover-publisher {
  font-size: .39rem;
  line-height: 1;
  white-space: nowrap;
}

.journal-cover--zamm .journal-cover-title--large {
  margin-top: 14px;
  font-size: 1.18rem;
  line-height: .96;
  white-space: nowrap;
}

.journal-cover--zamm .journal-cover-subtitle--zamm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .02em;
  margin-top: 5px;
  width: 100%;
  overflow: visible;
  font-size: .34rem;
  line-height: 1.04;
}

.journal-cover--zamm .journal-cover-subtitle--zamm > span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.journal-cover--zamm .journal-cover-meta {
  font-size: .35rem;
  line-height: 1;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------
   JMAA: safe default is the narrow-cover layout. Modern browsers may return
   the main title to one row only when the actual cover is wide enough.
   ------------------------------------------------------------------------ */
.journal-cover--jmaa {
  display: block;
  padding: 0;
}

.journal-cover--jmaa .journal-cover-publisher {
  position: absolute;
  z-index: 2;
  top: 6%;
  left: 8%;
  right: 6%;
  margin: 0;
  font-size: .38rem;
  line-height: 1;
  white-space: nowrap;
}

.journal-cover--jmaa .journal-cover-script {
  position: absolute;
  z-index: 2;
  top: 26%;
  left: 8%;
  right: 6%;
  margin: 0;
  font-size: .42rem;
  line-height: 1;
  white-space: nowrap;
}

.journal-cover--jmaa .journal-cover-title--jmaa {
  position: absolute;
  z-index: 2;
  top: 38%;
  left: 8%;
  right: 4%;
  width: auto;
  margin: 0;
  gap: .04em;
  overflow: visible;
}

.journal-cover--jmaa .jmaa-title-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  font-size: .40rem;
  line-height: .98;
  white-space: normal;
  overflow: visible;
}

.journal-cover--jmaa .jmaa-main-word {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.journal-cover--jmaa .jmaa-title-sub {
  display: block;
  margin-top: .04em;
  max-width: 100%;
  font-size: .39rem;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
}

.journal-cover--jmaa .journal-cover-meta {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 5%;
  bottom: 6%;
  margin: 0;
  font-size: .31rem;
  line-height: 1;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------
   GMJ and Memoirs already use explicit line structures; reinforce boundaries.
   ------------------------------------------------------------------------ */
.journal-cover--gmj .gmj-title-block,
.journal-cover--gmj .gmj-topband,
.journal-cover--gmj .gmj-footer-url,
.journal-cover--mdemp .mdemp-title,
.journal-cover--mdemp .mdemp-volume,
.journal-cover--mdemp .mdemp-year,
.journal-cover--mdemp .mdemp-issn {
  max-width: 100%;
}

.journal-cover--gmj .journal-cover-title > span,
.journal-cover--mdemp .mdemp-title > span {
  max-width: 100%;
  white-space: nowrap;
}

/* Progressive enhancement: scale typography from actual cover width. */
@supports (font-size: 1cqw) {
  .journal-cover--nmpde .journal-cover-publisher {
    font-size: clamp(.36rem, 4.9cqw, .45rem);
  }

  .journal-cover--nmpde .journal-cover-title--nmpde {
    font-size: clamp(.42rem, 7.2cqw, .55rem);
  }

  .journal-cover--nmpde .journal-cover-meta {
    font-size: clamp(.31rem, 4.25cqw, .39rem);
  }

  .journal-cover--zamm .journal-cover-publisher {
    font-size: clamp(.35rem, 4.7cqw, .43rem);
  }

  .journal-cover--zamm .journal-cover-title--large {
    font-size: clamp(.90rem, 18cqw, 1.25rem);
  }

  .journal-cover--zamm .journal-cover-subtitle--zamm {
    font-size: clamp(.30rem, 4.9cqw, .38rem);
  }

  .journal-cover--zamm .journal-cover-meta {
    font-size: clamp(.30rem, 4.15cqw, .38rem);
  }

  .journal-cover--jmaa .journal-cover-publisher {
    font-size: clamp(.32rem, 4.6cqw, .40rem);
  }

  .journal-cover--jmaa .journal-cover-script {
    font-size: clamp(.35rem, 5.3cqw, .45rem);
  }

  .journal-cover--jmaa .jmaa-title-main {
    font-size: clamp(.36rem, 6.4cqw, .48rem);
  }

  .journal-cover--jmaa .jmaa-title-sub {
    font-size: clamp(.35rem, 6.0cqw, .46rem);
  }

  .journal-cover--jmaa .journal-cover-meta {
    font-size: clamp(.27rem, 4.0cqw, .34rem);
  }
}

/* Only widen the JMAA main-title composition when the cover itself is wide.
   Browsers without container queries simply keep the safe stacked version. */
@supports (container-type: inline-size) {
  @container (min-width: 84px) {
    .journal-cover--jmaa .jmaa-title-main {
      flex-direction: row;
      align-items: baseline;
      gap: .18em;
      white-space: nowrap;
    }

    .journal-cover--jmaa .jmaa-main-word {
      display: inline-block;
    }
  }
}

/* Compact mode: no transform scaling. Text is re-sized directly so browser
   font rasterization cannot push glyphs beyond the card edge. */
.publication-list.is-compact .journal-cover--nmpde .journal-cover-title--nmpde,
.publication-list.is-compact .journal-cover--zamm .journal-cover-subtitle--zamm,
.publication-list.is-compact .journal-cover--jmaa .journal-cover-title--jmaa,
.publication-list.is-compact .journal-cover--mdemp .mdemp-title {
  transform: none;
}

/* Tablet range used by common iPad/Android layouts. */
@media (min-width: 621px) and (max-width: 1024px) {
  .journal-cover--nmpde .journal-cover-title--nmpde {
    margin-top: 9px;
  }

  .journal-cover--zamm .journal-cover-title--large {
    margin-top: 12px;
  }

  .journal-cover--jmaa .journal-cover-title--jmaa {
    top: 37%;
  }
}

/* Phones and narrow portrait tablets. */
@media (max-width: 620px) {
  .journal-cover--nmpde .journal-cover-title--nmpde {
    margin-top: 10px;
  }

  .journal-cover--zamm .journal-cover-title--large {
    margin-top: 13px;
  }

  .journal-cover--jmaa .journal-cover-title--jmaa {
    top: 38%;
  }
}

/* Large-screen / TV viewing: covers remain bounded but receive a slightly
   larger base width through the publication variable, improving legibility
   without changing their aspect ratio or allowing text to escape. */
@media (min-width: 1440px) {
  .publication.has-journal-cover {
    --cover-width: clamp(88px, 6vw, 104px);
  }

  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(70px, 4.8vw, 82px);
  }
}

/* Aspect-ratio fallback for older embedded browsers. */
@supports not (aspect-ratio: 1 / 1) {
  .publication.has-journal-cover > .journal-cover {
    width: 88px;
    height: 122px;
  }

  .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
    width: 66px;
    height: 92px;
  }

  @media (max-width: 620px) {
    .publication.has-journal-cover > .journal-cover,
    .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
      width: 88px;
      height: 122px;
    }
  }

  @media (min-width: 1440px) {
    .publication.has-journal-cover > .journal-cover {
      width: 96px;
      height: 133px;
    }
  }
}


/* ========================================================================
   NMPDE Galaxy Tab / tablet text-fit correction
   Keep every title token within the usable cover width on Android tablets.
   ======================================================================== */
.journal-cover--nmpde .journal-cover-title--nmpde {
  margin-top: 8px;
  gap: 0;
  width: 100%;
  max-width: 100%;
  font-size: .44rem;
  line-height: .98;
  letter-spacing: -.01em;
  overflow: visible;
}

.journal-cover--nmpde .journal-cover-title--nmpde > span {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
}

.journal-cover--nmpde .journal-cover-meta {
  margin-top: auto;
}

/* Container-relative sizing keeps the five-line title proportional to the
   actual cover rather than to the Samsung/browser viewport. */
@supports (font-size: 1cqw) {
  .journal-cover--nmpde .journal-cover-title--nmpde {
    font-size: clamp(.39rem, 6.45cqw, .50rem);
  }
}

/* Galaxy Tab S9 FE+ and common Android/iPad tablet viewport range. */
@media (min-width: 621px) and (max-width: 1024px) {
  .journal-cover--nmpde {
    padding-left: 8px;
    padding-right: 7px;
  }

  .journal-cover--nmpde .journal-cover-publisher {
    font-size: clamp(.33rem, 4.5cqw, .40rem);
    line-height: 1;
  }

  .journal-cover--nmpde .journal-cover-title--nmpde {
    margin-top: 7px;
    font-size: clamp(.37rem, 6.15cqw, .47rem);
    line-height: .97;
  }

  .journal-cover--nmpde .journal-cover-meta {
    font-size: clamp(.29rem, 3.9cqw, .35rem);
    line-height: 1;
  }
}

/* Compact tablet cards have the least usable width. */
@media (min-width: 621px) and (max-width: 1024px) {
  .publication-list.is-compact .journal-cover--nmpde .journal-cover-title--nmpde {
    margin-top: 6px;
    font-size: clamp(.35rem, 5.95cqw, .44rem);
    line-height: .96;
  }

  .publication-list.is-compact .journal-cover--nmpde .journal-cover-publisher {
    font-size: clamp(.31rem, 4.25cqw, .37rem);
  }

  .publication-list.is-compact .journal-cover--nmpde .journal-cover-meta {
    font-size: clamp(.27rem, 3.7cqw, .32rem);
  }
}

/* Conservative fallback for embedded/older tablet browsers without cqw. */
@supports not (font-size: 1cqw) {
  @media (min-width: 621px) and (max-width: 1024px) {
    .journal-cover--nmpde .journal-cover-title--nmpde {
      font-size: .39rem;
      line-height: .97;
    }

    .publication-list.is-compact .journal-cover--nmpde .journal-cover-title--nmpde {
      font-size: .36rem;
    }
  }
}


/* ========================================================================
   Research-area mathematical markers
   Replaces ordinal 01–04 labels with topic-appropriate visual symbols.
   ======================================================================== */
.research-symbol {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: .15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-soft) 62%, transparent);
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  speak: none;
  user-select: none;
}

.info-card h3 {
  margin-top: 11px;
}

html[data-theme="dark"] .research-symbol {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 78%, transparent);
  color: var(--accent);
}

/* Fallback for older/embedded browsers without color-mix(). */
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .research-symbol {
    border-color: #b8c9ec;
    background: #eef4ff;
    color: #285ca8;
  }

  html[data-theme="dark"] .research-symbol {
    border-color: #5375ad;
    background: #1c3159;
    color: #79a6ff;
  }
}

@media (max-width: 620px) {
  .research-symbol {
    width: 2rem;
    height: 2rem;
    font-size: 1.04rem;
  }
}


/* ========================================================================
   Canonical publication-cover box
   Final cascade authority: every journal and arXiv cover has the same outer
   dimensions at a given breakpoint. Cover-specific CSS may style only content.
   ======================================================================== */
.publication.has-journal-cover {
  --cover-width: clamp(78px, 7.2vw, 96px);
}

.publication.has-journal-cover > .journal-cover {
  width: var(--cover-width) !important;
  inline-size: var(--cover-width) !important;
  min-width: 0 !important;
  max-width: var(--cover-width) !important;
  height: auto !important;
  block-size: auto !important;
  aspect-ratio: 88 / 122 !important;
  box-sizing: border-box !important;
  justify-self: start;
  flex: none;
}

/* Compact view: one shared size for every cover type. */
.publication-list.is-compact .publication.has-journal-cover {
  --cover-width: clamp(62px, 5.8vw, 76px);
}

.publication-list.is-compact .publication.has-journal-cover > .journal-cover {
  width: var(--cover-width) !important;
  inline-size: var(--cover-width) !important;
  max-width: var(--cover-width) !important;
  height: auto !important;
  aspect-ratio: 88 / 122 !important;
}

/* Tablets / small laptops. */
@media (min-width: 621px) and (max-width: 900px) {
  .publication.has-journal-cover {
    --cover-width: clamp(72px, 10vw, 86px);
  }

  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(60px, 8vw, 70px);
  }
}

/* Phones: stacked layout, but all cover types remain exactly equal. */
@media (max-width: 620px) {
  .publication.has-journal-cover,
  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(82px, 27vw, 108px);
  }

  .publication.has-journal-cover > .journal-cover,
  .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
    width: var(--cover-width) !important;
    inline-size: var(--cover-width) !important;
    max-width: min(36vw, 108px) !important;
    height: auto !important;
    aspect-ratio: 88 / 122 !important;
  }
}

/* Very narrow phones. */
@media (max-width: 390px) {
  .publication.has-journal-cover,
  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(76px, 25vw, 92px);
  }

  .publication.has-journal-cover > .journal-cover,
  .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
    max-width: 92px !important;
  }
}

/* Large desktop / TV view: one shared enlargement for all cover types. */
@media (min-width: 1440px) {
  .publication.has-journal-cover {
    --cover-width: clamp(88px, 6vw, 104px);
  }

  .publication-list.is-compact .publication.has-journal-cover {
    --cover-width: clamp(70px, 4.8vw, 82px);
  }
}

/* Older browsers without aspect-ratio use identical fixed dimensions for all
   cover types, including arXiv. */
@supports not (aspect-ratio: 1 / 1) {
  .publication.has-journal-cover > .journal-cover {
    width: 88px !important;
    inline-size: 88px !important;
    max-width: 88px !important;
    height: 122px !important;
    block-size: 122px !important;
  }

  .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
    width: 66px !important;
    inline-size: 66px !important;
    max-width: 66px !important;
    height: 92px !important;
    block-size: 92px !important;
  }

  @media (min-width: 621px) and (max-width: 900px) {
    .publication.has-journal-cover > .journal-cover {
      width: 80px !important;
      inline-size: 80px !important;
      max-width: 80px !important;
      height: 111px !important;
      block-size: 111px !important;
    }

    .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
      width: 64px !important;
      inline-size: 64px !important;
      max-width: 64px !important;
      height: 89px !important;
      block-size: 89px !important;
    }
  }

  @media (max-width: 620px) {
    .publication.has-journal-cover > .journal-cover,
    .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
      width: 88px !important;
      inline-size: 88px !important;
      max-width: 88px !important;
      height: 122px !important;
      block-size: 122px !important;
    }
  }

  @media (min-width: 1440px) {
    .publication.has-journal-cover > .journal-cover {
      width: 96px !important;
      inline-size: 96px !important;
      max-width: 96px !important;
      height: 133px !important;
      block-size: 133px !important;
    }

    .publication-list.is-compact .publication.has-journal-cover > .journal-cover {
      width: 82px !important;
      inline-size: 82px !important;
      max-width: 82px !important;
      height: 114px !important;
      block-size: 114px !important;
    }
  }
}


/* ========================================================================
   arXiv preprints — NMPDE-derived cover variant
   The arXiv cards intentionally reuse the NMPDE shell and sizing classes.
   No arXiv-specific width, height, aspect-ratio or grid rules are defined.
   ======================================================================== */
.journal-cover--preprint {
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255,255,255,.13), transparent 32%),
    #7c2432;
  border-color: rgba(74,18,29,.28);
}

.journal-cover--preprint::after {
  content: "χ";
  color: rgba(255,255,255,.075);
}

.journal-cover--preprint .journal-cover-publisher {
  color: #fff;
  letter-spacing: .07em;
}

.journal-cover--preprint .journal-cover-title--preprint {
  color: #fff;
}

.journal-cover--preprint .journal-cover-title--preprint > span {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.journal-cover--preprint .journal-cover-title--preprint > span:first-child {
  letter-spacing: .035em;
}

.journal-cover--preprint .journal-cover-title--preprint > span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: .86em;
  letter-spacing: -.02em;
}

.journal-cover--preprint .journal-cover-meta {
  color: rgba(255,255,255,.88);
  opacity: 1;
  white-space: nowrap;
}

/* Compact/tablet/phone behavior is inherited directly from the NMPDE cover.
   These rules only tune internal text density; they never change box size. */
@media (min-width: 621px) and (max-width: 1024px) {
  .journal-cover--preprint .journal-cover-title--preprint > span:last-child {
    font-size: .82em;
  }
}

@media (max-width: 620px) {
  .journal-cover--preprint .journal-cover-title--preprint > span:last-child {
    font-size: .88em;
  }
}

html[data-theme="dark"] .journal-cover--preprint {
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
}


/* ========================================================================
   arXiv preprints — warm-gray interior and contoured official logo
   Outer geometry remains inherited entirely from the NMPDE/shared shell.
   ======================================================================== */
.journal-cover--preprint {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #241b1d;
  background: #afa497;
  border: 2px solid #aa142d;
  box-shadow:
    inset 0 0 0 1px rgba(170,20,45,.34),
    0 8px 20px rgba(10,24,48,.12);
}

/* The official SVG is unchanged. Its warm-gray a/r/i/v shapes match the
   cover interior, so a deep-charcoal #241b1d contour separates the logo. */
.journal-cover--preprint .arxiv-cover-logo-frame {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92%;
  max-width: 100%;
  margin: 0 auto;
  padding: 5px 6px;
  border: 1px solid #241b1d;
  border-radius: 6px;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(246,239,232,.44),
    0 3px 8px rgba(36,27,29,.14);
}

.journal-cover--preprint .arxiv-cover-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  flex: none;
  filter:
    drop-shadow(.55px 0 0 #241b1d)
    drop-shadow(-.55px 0 0 #241b1d)
    drop-shadow(0 .55px 0 #241b1d)
    drop-shadow(0 -.55px 0 #241b1d)
    drop-shadow(0 0 1.2px rgba(36,27,29,.95));
}

.journal-cover--preprint .journal-cover-title--preprint {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .08em;
  width: 100%;
  margin-top: 9px;
  color: #241b1d;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .45rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .045em;
  text-shadow: 0 1px 0 rgba(246,239,232,.28);
}

.journal-cover--preprint .journal-cover-title--preprint > span {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.journal-cover--preprint .journal-cover-title--preprint > span:first-child {
  color: #7f1025;
}

.journal-cover--preprint .journal-cover-title--preprint > span:last-child {
  color: #241b1d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: .90em;
  letter-spacing: -.01em;
}

.journal-cover--preprint .journal-cover-meta {
  position: relative;
  z-index: 3;
  margin-top: auto;
  color: #241b1d;
  opacity: .90;
  font-size: .33rem;
  line-height: 1;
  white-space: nowrap;
}

@supports (font-size: 1cqw) {
  .journal-cover--preprint .arxiv-cover-logo-frame {
    width: 92%;
    padding: clamp(3px, 5.5cqw, 6px) clamp(4px, 6.5cqw, 7px);
    border-radius: clamp(4px, 6cqw, 7px);
  }

  .journal-cover--preprint .journal-cover-title--preprint {
    margin-top: clamp(6px, 8cqw, 9px);
    font-size: clamp(.37rem, 5.9cqw, .47rem);
  }

  .journal-cover--preprint .journal-cover-meta {
    font-size: clamp(.27rem, 4.0cqw, .34rem);
  }
}

.publication-list.is-compact .journal-cover--preprint .arxiv-cover-logo-frame {
  width: 90%;
  padding: 4px 5px;
}

.publication-list.is-compact .journal-cover--preprint .journal-cover-title--preprint {
  margin-top: 5px;
  font-size: clamp(.33rem, 5.6cqw, .42rem);
  transform: none;
}

.publication-list.is-compact .journal-cover--preprint .journal-cover-meta {
  font-size: clamp(.24rem, 3.7cqw, .30rem);
}

@media (min-width: 621px) and (max-width: 1024px) {
  .journal-cover--preprint .arxiv-cover-logo-frame {
    width: 90%;
  }

  .journal-cover--preprint .journal-cover-title--preprint {
    margin-top: clamp(5px, 7cqw, 8px);
    font-size: clamp(.35rem, 5.7cqw, .45rem);
  }
}

@media (max-width: 620px) {
  .journal-cover--preprint .arxiv-cover-logo-frame,
  .publication-list.is-compact .journal-cover--preprint .arxiv-cover-logo-frame {
    width: 92%;
  }

  .journal-cover--preprint .journal-cover-title--preprint,
  .publication-list.is-compact .journal-cover--preprint .journal-cover-title--preprint {
    margin-top: clamp(6px, 7.5cqw, 9px);
    font-size: clamp(.38rem, 5.8cqw, .47rem);
  }

  .journal-cover--preprint .journal-cover-meta,
  .publication-list.is-compact .journal-cover--preprint .journal-cover-meta {
    font-size: clamp(.28rem, 3.9cqw, .34rem);
  }
}

@supports not (font-size: 1cqw) {
  .journal-cover--preprint .journal-cover-title--preprint {
    font-size: .41rem;
  }

  .journal-cover--preprint .journal-cover-meta {
    font-size: .29rem;
  }
}

html[data-theme="dark"] .journal-cover--preprint {
  background: #afa497;
  border-color: #aa142d;
  box-shadow:
    inset 0 0 0 1px rgba(170,20,45,.40),
    0 8px 20px rgba(0,0,0,.24);
}
