/* Academic CV — Solar system clock hero (Nye WebGL mount + orbital HUD palette) */

:root {
  /* Apple system stacks: SF Pro (sans), New York (serif), SF Mono — no webfont downloads */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif:
    ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman",
    serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --font-sans-zh:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  --font-serif-zh: "Songti SC", "STSong", "Kaiti SC", ui-serif, Georgia, serif;
  /* Same base as Nye `hero-webgl-mount` + default Deep Sky tokens */
  --bg-start: #111722;
  --bg-end: #080c14;
  --bg-mid: #020409;
  --ambient-crown: color-mix(in srgb, var(--accent) 11%, transparent);
  --ambient-vignette: rgba(0, 0, 0, 0.38);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(255, 255, 255, 0.065);
  --card-border: rgba(255, 255, 255, 0.17);
  --card-shadow: rgba(0, 0, 0, 0.55);
  /* Neutral copy: warm white tints, no blue-gray */
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.62);
  --highlight: rgba(255, 255, 255, 0.96);
  --accent: #4d8fff;
  --accent-mix: color-mix(in srgb, var(--accent) 26%, transparent);
  --galaxy-cyan: #44ecff;
  --galaxy-blue: #6b8fff;
  --galaxy-violet: #b47eff;
  --galaxy-gold: #f7c940;
  --ring-glow: rgba(77, 143, 255, 0.28);
  --border-radius: 20px;
  --star-opacity: 0.075;
  --nebula-opacity: 0.045;
  --ease-fluid: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: calc(var(--star-opacity) * 0.7);
  }
  50% {
    opacity: calc(var(--star-opacity) * 1.12);
  }
}

@keyframes driftSlow {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(1.2%, -1.5%, 0) rotate(180deg) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(360deg) scale(1);
  }
}

@keyframes driftReverse {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(-1.4%, 1.2%, 0) rotate(-180deg) scale(0.98);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-360deg) scale(1);
  }
}

body.cv-solar {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.58;
  font-optical-sizing: auto;
  color: var(--text);
  /* Mirrors `.hero-webgl-mount` fallback stack in Nye Clock */
  background:
    radial-gradient(ellipse 95% 65% at 50% 18%, var(--ambient-crown), transparent 58%),
    radial-gradient(ellipse 120% 85% at 50% 108%, var(--ambient-vignette), transparent 52%),
    linear-gradient(165deg, var(--bg-start) 0%, var(--bg-mid) 55%, var(--bg-end) 100%);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  padding: calc(52px + env(safe-area-inset-top, 0px)) 1.25rem 3rem;
  overflow-x: hidden;
}

body.cv-solar::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 24% 72%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.5px 1.5px at 38% 34%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 62% 18%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(2px 2px at 78% 66%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 88% 36%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 54% 82%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.5px 1.5px at 16% 54%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: var(--star-opacity);
  animation:
    twinkle 12s ease-in-out infinite,
    driftSlow 300s linear infinite;
}

body.cv-solar::after {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 15% 20%, rgba(126, 88, 255, 0.16), rgba(126, 88, 255, 0) 70%),
    radial-gradient(30% 24% at 78% 24%, rgba(77, 168, 255, 0.18), rgba(77, 168, 255, 0) 72%),
    radial-gradient(34% 26% at 62% 78%, rgba(255, 140, 210, 0.12), rgba(255, 140, 210, 0) 72%),
    radial-gradient(42% 30% at 32% 68%, rgba(86, 203, 255, 0.12), rgba(86, 203, 255, 0) 74%);
  opacity: var(--nebula-opacity);
  filter: blur(18px) saturate(125%);
  animation: driftReverse 240s linear infinite;
}

/* Full Nye Clock WebGL via iframe — disable duplicate CSS sky so the instrument reads clearly */
body.cv-solar--nye-backdrop {
  background: #03050c;
  /* More transparent “speech bubbles” so the WebGL backdrop shows through */
  --card-bg: rgba(255, 255, 255, 0.014);
  --card-border: rgba(255, 255, 255, 0.065);
  --card-shadow: rgba(0, 0, 0, 0.16);
  /* Slightly brighter on glass; still opaque whites, not gray */
  --text: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.66);
  --highlight: rgba(255, 255, 255, 0.98);
}

body.cv-solar--nye-backdrop::before,
body.cv-solar--nye-backdrop::after {
  display: none !important;
}

.cv-nye-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cv-nye-backdrop__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 1;
}

html.locale-zh body.cv-solar {
  font-family: var(--font-sans-zh);
}

html.locale-zh .name,
html.locale-zh .block h2 {
  font-family: var(--font-serif-zh);
}

/* i18n */
.locale-en .i18n-zh {
  display: none !important;
}

.locale-zh .i18n-en {
  display: none !important;
}

/* Fixed chrome (Nye-style) */
.app-chrome {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px
    max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.app-chrome > * {
  pointer-events: auto;
}

.lang-switch {
  display: inline-flex;
  border-radius: 10px;
  padding: 2px;
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-border) 55%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition:
    background 0.25s var(--ease-fluid),
    color 0.25s var(--ease-fluid);
}

.lang-switch__btn--active {
  background: var(--accent-mix);
  color: var(--highlight);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ring-glow) 40%, transparent);
}

.lang-switch__btn:hover:not(.lang-switch__btn--active) {
  color: var(--text);
}

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

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--highlight);
  background: color-mix(in srgb, var(--card-bg) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition:
    background 0.25s var(--ease-fluid),
    border-color 0.25s var(--ease-fluid),
    box-shadow 0.25s var(--ease-fluid);
}

.btn-pdf:hover {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

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

/* Background toggle: label pairs (see body.cv-bg-hidden) */
.btn-bg-toggle .bg-toggle-hidden {
  display: none !important;
}

body.cv-bg-hidden .btn-bg-toggle .bg-toggle-visible {
  display: none !important;
}

body.cv-bg-hidden .btn-bg-toggle .bg-toggle-hidden {
  display: inline !important;
}

/* Strip WebGL + decorative layers — flat page for focus / accessibility */
body.cv-bg-hidden .cv-nye-backdrop {
  display: none !important;
}

body.cv-bg-hidden.cv-solar--nye-backdrop {
  background: #0a0e18;
}

body.cv-bg-hidden.cv-solar::before,
body.cv-bg-hidden.cv-solar::after {
  display: none !important;
}

body.cv-bg-hidden.cv-solar:not(.cv-solar--nye-backdrop) {
  background: #0a0e18;
}

body.cv-bg-hidden .app-shell::before {
  display: none !important;
}

body.cv-bg-hidden.cv-solar--nye-backdrop .site-header {
  text-shadow: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
  border-radius: 8px;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
}

body.cv-solar--nye-backdrop .app-shell::before {
  display: none;
}

/* Concentric orbit rings — visual echo of the solar-system / WebGL dial */
.cv-solar .app-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6%;
  transform: translateX(-50%);
  width: min(130vw, 920px);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 40%, color-mix(in srgb, var(--galaxy-gold) 9%, transparent) 41%, transparent 42%),
    radial-gradient(circle at 50% 50%, transparent 56%, color-mix(in srgb, var(--galaxy-cyan) 7%, transparent) 57%, transparent 58%),
    radial-gradient(circle at 50% 50%, transparent 70%, color-mix(in srgb, var(--galaxy-violet) 6%, transparent) 71%, transparent 72%);
  opacity: 0.5;
  z-index: 0;
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

/* Glass panels (Nye .card family) — sections only; header is not a bubble */
.block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 28px var(--card-shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition:
    border-color 0.45s var(--ease-fluid),
    box-shadow 0.45s var(--ease-fluid);
}

/* Lighter glass over the live WebGL backdrop — higher transparency, gentler blur */
body.cv-solar--nye-backdrop .block {
  background: rgba(4, 10, 20, 0.2);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

/* Name + contact: plain text on the background (no card) */
.site-header {
  padding: 1.75rem 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cv-solar--nye-backdrop .site-header {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 2px 18px rgba(0, 0, 0, 0.35);
}

body.cv-solar:not(.cv-solar--nye-backdrop) .site-header {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
  line-height: 1.12;
  color: var(--highlight);
  text-rendering: optimizeLegibility;
}

/* 中文名：黑体系、特重字重（与英文衬线区分） */
.name-zh {
  font-family: "PingFang SC", "Hiragino Sans GB", "Heiti SC", "STHeiti", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.94);
  margin-left: 0.35rem;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
}

.contact {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.contact a {
  color: var(--galaxy-cyan);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--galaxy-cyan) 40%, transparent);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact a:hover {
  color: var(--galaxy-gold);
  border-bottom-color: color-mix(in srgb, var(--galaxy-gold) 55%, transparent);
}

.contact-label {
  color: var(--muted);
  margin-right: 0.25rem;
  font-family: var(--font-sans);
}

html.locale-zh .contact-label {
  font-family: var(--font-sans-zh);
}

/* Main */
main {
  padding: 0 0 1rem;
}

.block {
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.45rem 1.4rem;
}

.block:last-child {
  margin-bottom: 0;
}

.block h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-rendering: optimizeLegibility;
  color: rgba(255, 255, 255, 0.58);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--card-border));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card-bg) 45%, transparent));
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  padding-top: 0.35rem;
  border-radius: 12px 12px 0 0;
}

html.locale-zh .block h2 {
  letter-spacing: 0.2em;
}

body.cv-solar--nye-backdrop .block h2 {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  border-bottom-color: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.08));
}

/* Education */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  margin-bottom: 1.1rem;
  padding-left: 1rem;
  border-left: 2px solid color-mix(in srgb, var(--galaxy-cyan) 55%, var(--galaxy-gold) 20%);
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.where {
  font-weight: 600;
  color: var(--highlight);
}

.when {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.degree {
  margin: 0;
  color: var(--text);
}

/* Research */
.research-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.research-list > li {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--card-border) 65%, transparent);
}

.research-list > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.4;
  color: var(--highlight);
}

.item-affil {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.research-list p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

/* Publications */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--card-border) 55%, transparent);
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-title {
  font-style: italic;
  font-weight: 500;
}

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

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

.skills {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.footer-note {
  margin: 0;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.04em;
}

/*
 * Print / Save as PDF — avoid blank output:
 * - Drop body isolation (stacking + print engines can omit paint)
 * - Collapse fixed full-screen WebGL iframe (see html.print-prep in cv.js)
 */
html.print-prep .cv-nye-backdrop {
  display: none !important;
  pointer-events: none !important;
}

/*
 * Print / PDF — white page, black type; section cards keep a visible gray “bubble”
 * (explicit fill — glass blur does not print, so without this cards read as plain white).
 */
@media print {
  html {
    color-scheme: light;
  }

  body.cv-solar::before,
  body.cv-solar::after {
    display: none !important;
    animation: none !important;
  }

  .cv-solar .app-shell::before {
    display: none !important;
  }

  .app-shell {
    position: relative !important;
    z-index: auto !important;
    isolation: auto !important;
  }

  .app-shell > * {
    z-index: auto !important;
  }

  .cv-nye-backdrop {
    display: none !important;
  }

  :root {
    --bg-start: #fff;
    --bg-end: #fff;
    --card-bg: #eceef2;
    --card-border: #cfd6e0;
    --card-shadow: transparent;
    --text: #1a1a1a;
    --muted: #555;
    --highlight: #111;
    --accent: #0d47a1;
    --accent-mix: rgba(13, 71, 161, 0.12);
    --galaxy-cyan: #0d47a1;
    --galaxy-gold: #0d47a1;
  }

  .no-print {
    display: none !important;
  }

  body.cv-solar {
    isolation: auto !important;
    overflow: visible !important;
    min-height: auto !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    background: #fff !important;
    color: #1a1a1a !important;
    padding: 0;
    font-size: 10.5pt;
  }

  /* Re-assert i18n (screen !important rules can fail in some print engines) */
  html.locale-en .i18n-zh {
    display: none !important;
  }

  html.locale-zh .i18n-en {
    display: none !important;
  }

  html.locale-en .i18n-en,
  html.locale-zh .i18n-zh {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .app-shell,
  main,
  .site-header,
  .site-footer {
    overflow: visible !important;
    max-height: none !important;
  }

  main,
  #main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }

  .skills,
  .degree,
  .item-title {
    color: #1a1a1a !important;
  }

  .research-list p:last-child {
    color: #1a1a1a !important;
  }

  .where {
    color: #111 !important;
  }

  .when,
  .item-affil,
  .pub-venue,
  .pub-note {
    color: #444 !important;
  }

  .site-header {
    text-shadow: none;
    border: none;
    background: transparent;
    break-inside: avoid;
    display: block !important;
    visibility: visible !important;
  }

  .name {
    color: #111 !important;
  }

  .name-zh {
    color: #000 !important;
  }

  .block {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Solid gray fill so “glass” panels stay visible without backdrop-blur */
    background: #eceef2 !important;
    background-color: #eceef2 !important;
    border: 1px solid #cfd6e0 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    /* avoid: Safari/Chrome can drop block contents when blocks exceed one page */
    break-inside: auto;
    page-break-inside: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #1a1a1a !important;
  }

  .block h2 {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.03)) !important;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    border-bottom-color: #c5cbd6 !important;
    color: #333 !important;
  }

  .contact {
    display: block !important;
    visibility: visible !important;
    color: #1a1a1a !important;
  }

  .contact a {
    color: #0d47a1 !important;
    text-decoration: none;
    border-bottom: none;
  }

  .contact-label {
    color: #555 !important;
  }

  .lang-switch__btn--active {
    background: rgba(13, 71, 161, 0.12);
    color: #111;
  }

  main {
    padding-top: 0;
  }

  .research-list > li {
    break-inside: auto;
    page-break-inside: auto;
  }

  .pub-list li,
  .timeline li {
    color: #1a1a1a !important;
  }

  .pub-title {
    color: #1a1a1a !important;
  }

  .footer-note {
    color: #555 !important;
  }

  .site-footer {
    display: block !important;
    visibility: visible !important;
  }

  @page {
    margin: 1.2cm;
  }
}

@media (min-width: 48rem) {
  :root {
    --max: 44rem;
  }
}

@media (max-width: 36rem) {
  .app-chrome {
    gap: 8px;
  }
}
