/* DAISLab · quiet academic confidence */
:root {
  color-scheme: light;
  --ink: #172f47;
  --ink-soft: #29445c;
  --teal: #126c63;
  --teal-light: #71c8ba;
  --gold: #b98248;
  --paper: #f5f6f3;
  --white: #fff;
  --muted: #66747e;
  --line: #dfe5e1;
  --pale: #eaf0ed;
  --serif:
    'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC',
    'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --measure: 1220px;
  --header-height: 82px;
  --shadow: 0 18px 48px rgb(23 47 71 / 9%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body:has(.admin-shell),
body:has(.login-page) {
  background: #f1f4f2;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: #c8e3dc;
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid #b98248;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
.container {
  width: min(var(--measure), calc(100% - 64px));
  margin-inline: auto;
}
body:has(.admin-shell) > .site-header,
body:has(.admin-shell) > .site-footer,
body:has(.login-page) > .site-header,
body:has(.login-page) > .site-footer {
  display: none;
}
body:has(.admin-shell) > main,
body:has(.login-page) > main {
  min-height: 100vh;
}

/* Navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid rgb(23 47 71 / 8%);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1380px, calc(100% - 64px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 41px;
  height: 41px;
  object-fit: contain;
}
.brand-copy {
  display: grid;
  line-height: 1.25;
}
.brand-copy strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.36rem;
  letter-spacing: 0.025em;
}
.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.nav a {
  position: relative;
  padding-block: 8px;
  color: #566571;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--teal);
  content: '';
  transition: transform 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--teal);
}
.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}
.header-action {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--teal);
  font-size: 0.8rem;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.header-action:hover {
  border-color: var(--teal);
  background: #eef5f1;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
}

/* Shared editorial elements */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--teal);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 25px;
  height: 1px;
  background: currentColor;
  content: '';
}
.section {
  padding-block: 100px;
}
.section.soft {
  background: #edf1ed;
}
.section.dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.section.dark::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 52px 52px;
  content: '';
  pointer-events: none;
}
.section.dark > .container {
  position: relative;
  z-index: 1;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-title,
.page-title {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.22;
}
.section.dark .section-title {
  color: var(--white);
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
}
.section.dark .section-link {
  color: var(--teal-light);
}
.section-link .arrow,
.arrow {
  transition: transform 0.2s ease;
}
.section-link:hover .arrow,
a:hover .arrow {
  transform: translateX(4px);
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 19px;
  border: 1px solid transparent;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button.primary {
  background: var(--teal);
  color: var(--white);
}
.button.primary:hover {
  background: #0d5c54;
}
.button.secondary {
  border-color: rgb(255 255 255 / 45%);
  color: var(--white);
}
.button.secondary:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 8%);
}
.button.light {
  background: var(--white);
  color: var(--ink);
}
.button.light:hover {
  background: #e7efeb;
}
.button.small {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.76rem;
}
.badge,
.tag,
.status-pill,
.test-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid #d4e4df;
  background: #edf5f1;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.55;
}
.tag {
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
}
.badge.gold {
  border-color: #eadac4;
  background: #f7f0e6;
  color: #855d32;
}
.status-pill {
  border-color: #d3e5da;
  background: #eaf4ed;
  color: #286243;
}
.status-pill.draft {
  border-color: #eadcc8;
  background: #f7f1e6;
  color: #855d32;
}
.test-pill {
  border-color: #edd7b8;
  background: #faf2e7;
  color: #875a29;
}
.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block: 22px 28px;
  padding: 14px 17px;
  border-left: 2px solid var(--gold);
  background: #f7f1e8;
  color: #715b40;
  font-size: 0.83rem;
}

/* Home hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
  background-size: 56px 56px;
  content: '';
  pointer-events: none;
}
.hero::after {
  position: absolute;
  right: 31%;
  bottom: -270px;
  width: 540px;
  height: 540px;
  border: 1px solid rgb(113 200 186 / 12%);
  border-radius: 50%;
  box-shadow:
    0 0 0 64px rgb(113 200 186 / 3%),
    0 0 0 130px rgb(113 200 186 / 2%);
  content: '';
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 625px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(38px, 7vw, 100px);
  padding-block: 78px 86px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgb(113 200 186 / 33%);
  background: rgb(113 200 186 / 8%);
  color: #a5dcd2;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-label::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  content: '';
}
.hero h1 {
  max-width: 670px;
  margin: 30px 0 12px;
  color: var(--white);
  font-size: clamp(2.8rem, 5.8vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.1;
}
.hero-english {
  display: block;
  margin-top: 15px;
  color: var(--teal-light);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.35;
}
.hero-lead {
  max-width: 500px;
  margin: 24px 0 30px;
  color: rgb(255 255 255 / 70%);
  font-size: 0.98rem;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-media {
  position: relative;
  min-height: 390px;
  margin: 0;
}
.hero-media > .hero-index {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border: 1px solid rgb(255 255 255 / 42%);
  background: rgb(23 47 71 / 76%);
  color: var(--white);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}
.hero-media::before {
  position: absolute;
  z-index: 0;
  top: -14px;
  right: -14px;
  width: 56%;
  height: 48%;
  border-top: 1px solid rgb(113 200 186 / 52%);
  border-right: 1px solid rgb(113 200 186 / 52%);
  content: '';
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 785;
  object-fit: contain;
  object-position: center;
}
.hero-media::after {
  position: absolute;
  z-index: 2;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgb(13 29 44 / 55%));
  content: '';
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  font-size: 0.72rem;
}
.hero-caption span:last-child {
  color: rgb(255 255 255 / 64%);
}
.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 50%);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-index {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-index::before {
  width: 30px;
  height: 1px;
  background: var(--gold);
  content: '';
}
.hero-mark {
  color: rgb(255 255 255 / 45%);
  font-family: var(--serif);
  font-style: italic;
}
.quick-strip {
  display: block;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.quick-strip > .container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  flex-wrap: initial !important;
}
.quick-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.quick-item:last-child {
  border-right: 0;
}
.quick-item strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.quick-item span {
  color: var(--muted);
  font-size: 0.73rem;
}

/* Home sections */
.home-news {
  display: grid;
  grid-template-columns: 0.78fr 1.55fr;
  gap: clamp(40px, 8vw, 120px);
}
.home-news .section-head {
  display: block;
  margin: 0;
}
.home-news .section-link {
  margin-top: 20px;
}
.news-list {
  border-top: 1px solid var(--line);
}
.news-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 18px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.18s,
    padding 0.18s;
}
.news-row:hover {
  padding-inline: 12px;
  background: rgb(255 255 255 / 60%);
}
.news-row time,
.news-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.news-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.news-row .arrow {
  color: var(--teal);
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}
.research-card {
  min-height: 230px;
  padding: 28px 25px;
  border-right: 1px solid rgb(255 255 255 / 18%);
  transition: background 0.22s ease;
}
.research-card:last-child {
  border-right: 0;
}
.research-card:hover {
  background: rgb(255 255 255 / 5%);
}
.research-number {
  color: var(--teal-light);
  font-family: var(--serif);
  font-size: 0.9rem;
}
.research-card h3 {
  margin: 37px 0 9px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.research-card p {
  margin: 0;
  color: rgb(255 255 255 / 66%);
  font-size: 0.82rem;
  line-height: 1.8;
}
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.keywords .tag {
  color: var(--teal);
}
.section.dark .keywords .tag {
  color: #a5dcd2;
}
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}
.feature-copy p {
  max-width: 570px;
  color: var(--muted);
}
.feature-copy .button {
  margin-top: 18px;
}
.feature-image {
  position: relative;
}
.feature-image::after {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 56%;
  height: 52%;
  border-right: 1px solid #82bcb0;
  border-bottom: 1px solid #82bcb0;
  content: '';
  pointer-events: none;
}
.feature-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 350px;
  max-height: 480px;
  object-fit: cover;
}
.feature-image .hero-caption {
  padding: 10px 14px;
  background: rgb(10 25 38 / 76%);
  color: var(--white);
  text-shadow: 0 1px 3px rgb(0 0 0 / 48%);
}
.pi-details h3 {
  margin: 2px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.pi-details h3 span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}
.pi-details small {
  color: var(--teal);
  font-size: 0.65rem;
  letter-spacing: 0.045em;
}
.pi-block {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 31px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.pi-monogram {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid #c9ded6;
  background: #eaf1ed;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.pi-details {
  display: grid;
  gap: 2px;
}
.pi-details strong {
  font-size: 0.92rem;
  font-weight: 600;
}
.pi-details span,
.pi-details a {
  color: var(--muted);
  font-size: 0.78rem;
}
.pi-details a:hover {
  color: var(--teal);
}
.life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 10px;
}
.life-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #dfe7e3;
  text-align: left;
}
.life-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.life-tile:hover img {
  transform: scale(1.045);
}
.life-tile::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgb(10 25 38 / 68%));
  content: '';
  pointer-events: none;
}
.life-caption {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 13px;
  left: 17px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--white);
  font-size: 0.79rem;
}
.life-caption span:last-child {
  color: rgb(255 255 255 / 65%);
  font-size: 0.68rem;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 33px 38px;
  background: #e8eeea;
}
.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.23rem;
  font-weight: 600;
}
.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.cta-band .hero-actions {
  flex: 0 0 auto;
}

/* Interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 74px;
  background: #edf1ed;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  position: absolute;
  top: -130px;
  right: 7%;
  width: 330px;
  height: 330px;
  border: 1px solid rgb(18 108 99 / 12%);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgb(18 108 99 / 3%),
    0 0 0 92px rgb(18 108 99 / 2%);
  content: '';
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.74rem;
}
.breadcrumb a:hover {
  color: var(--teal);
}
.breadcrumb span[aria-current='page'] {
  color: var(--ink);
}
.page-title {
  margin-top: 24px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.page-lead {
  max-width: 670px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.page-number {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d4dfd9;
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.8;
}
.page-content {
  min-height: 45vh;
  padding-block: 64px 104px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-bottom: 17px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.filter-bar label {
  display: grid;
  min-width: 170px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.filter-bar input,
.filter-bar select {
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #d5ded9;
  border-radius: 0;
  background: var(--white);
  font-size: 0.84rem;
}
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-left: auto;
}
.result-count {
  margin: 16px 0 23px;
  color: var(--muted);
  font-size: 0.8rem;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 22px;
}
.content-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.75;
  background: #e7ece8;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.content-card:hover .card-image img {
  transform: scale(1.035);
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px 21px 16px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.73rem;
}
.card-title {
  margin: 11px 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
a.card-title:hover {
  color: var(--teal);
}
.card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 15px 21px;
  border-top: 1px solid #edf0ed;
  color: var(--muted);
  font-size: 0.74rem;
}
.card-footer a {
  color: var(--teal);
  font-weight: 600;
}
.empty-state {
  display: grid;
  min-height: 235px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 35px;
  border: 1px dashed #cbd6d0;
  color: var(--muted);
  text-align: center;
}
.empty-state strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}
.empty-state p {
  margin: 0;
  font-size: 0.82rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.pagination a,
.pagination span {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding-inline: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.78rem;
}
.pagination a:hover,
.pagination .active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}
.publication-list {
  border-top: 1px solid var(--line);
}
.publication-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 25px;
  padding: 23px 4px;
  border-bottom: 1px solid var(--line);
}
.publication-year {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.2rem;
}
.publication-body {
  min-width: 0;
}
.publication-body h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}
.publication-authors,
.publication-venue {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.publication-links a {
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 600;
}
.publication-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-group {
  margin-block: 43px 56px;
}
.team-group:first-child {
  margin-top: 0;
}
.team-group > h2 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 23px;
  font-size: 1.2rem;
  font-weight: 600;
}
.team-group > h2::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: '';
}
.member-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  overflow-wrap: anywhere;
}
.member-card > a:first-child {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.member-card > a:first-child > .member-avatar {
  grid-column: 1;
  grid-row: 1 / span 4;
}
.member-card > a:first-child > :not(.member-avatar) {
  grid-column: 2;
}
.member-card > .test-pill {
  align-self: flex-start;
}
.member-card .member-role {
  margin-top: 0;
}
.member-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  background: #e6eeea;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.25rem;
  object-fit: cover;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-card h3 {
  margin: 1px 0 3px;
  font-size: 0.96rem;
  font-weight: 600;
}
.member-role {
  color: var(--muted);
  font-size: 0.76rem;
}
.member-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.73rem;
}
.member-contact a:hover {
  color: var(--teal);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 62px;
}
.detail-main {
  min-width: 0;
}
.detail-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 27px 0 12px;
  object-fit: contain;
}
.detail-main > h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.detail-aside {
  position: sticky;
  top: calc(var(--header-height) + 25px);
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.detail-aside h2 {
  margin: 0 0 13px;
  font-size: 0.94rem;
  font-weight: 600;
}
.detail-aside p,
.detail-aside a {
  color: var(--muted);
  font-size: 0.8rem;
}
.prose {
  max-width: 740px;
  margin-top: 30px;
  color: #465762;
  font-size: 0.95rem;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.info-list {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.info-list dt,
.info-list dd {
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.info-list dt {
  padding-right: 10px;
  color: var(--muted);
}
.info-list dd {
  text-align: right;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-card {
  min-height: 180px;
  padding: 26px;
  background: var(--white);
}
.contact-card > span {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.2rem;
}
.contact-card h2 {
  margin: 17px 0 5px;
  font-size: 0.95rem;
  font-weight: 600;
}
.contact-card p,
.contact-card a {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  overflow-wrap: anywhere;
}
.contact-card .prose {
  margin-top: 16px;
}
.contact-card a:hover {
  color: var(--teal);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.photo-item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.2;
  border: 0;
  padding: 0;
  background: #e6ece8;
  text-align: left;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.photo-item:hover img {
  transform: scale(1.04);
}
.photo-item > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgb(10 25 38 / 75%));
  color: white;
  font-size: 0.75rem;
}
.photo-item .life-caption {
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgb(10 25 38 / 65%));
}
.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px;
  border: 0;
  background: rgb(8 19 29 / 94%);
  color: var(--white);
}
.lightbox[open] {
  display: flex;
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 23px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 30%);
  background: transparent;
  color: var(--white);
  font-size: 1.3rem;
}
.lightbox-caption {
  color: rgb(255 255 255 / 78%);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: #11283d;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-block: 56px 44px;
}
.footer-brand {
  max-width: 360px;
}
.footer-brand > img {
  width: 180px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.footer-brand .brand-copy strong {
  color: var(--white);
}
.footer-brand .brand-copy small {
  color: rgb(255 255 255 / 56%);
}
.footer-brand p {
  margin: 20px 0 0;
  color: rgb(255 255 255 / 64%);
  font-size: 0.82rem;
}
.footer-links {
  display: grid;
  justify-items: start;
  gap: 7px;
}
.footer-grid > div {
  min-width: 0;
}
.footer-grid a {
  overflow-wrap: anywhere;
}
.footer-links h2 {
  margin: 0 0 14px;
  color: #a5dcd2;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.footer-links ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li,
.footer-links a {
  color: rgb(255 255 255 / 67%);
  font-size: 0.79rem;
}
.site-footer .eyebrow {
  color: #a5dcd2;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 18px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  color: rgb(255 255 255 / 48%);
  font-size: 0.7rem;
}

/* Administration */
.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 246px minmax(0, 1fr);
  background: #f1f4f2;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 25px 18px;
  background: var(--ink);
  color: var(--white);
}
.admin-sidebar .brand {
  margin: 0 10px 32px;
}
.admin-sidebar .brand-copy strong {
  color: var(--white);
  font-size: 1.12rem;
}
.admin-sidebar .brand-copy small {
  color: rgb(255 255 255 / 56%);
}
.admin-nav {
  display: grid;
  gap: 3px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: rgb(255 255 255 / 69%);
  font-size: 0.82rem;
  transition:
    color 0.15s,
    background 0.15s;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: rgb(255 255 255 / 10%);
  color: var(--white);
}
.admin-nav a.active {
  box-shadow: inset 2px 0 var(--teal-light);
}
.admin-main {
  min-width: 0;
  padding: 29px clamp(20px, 4vw, 55px) 60px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d9e1dc;
}
.admin-topbar h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.admin-topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-block: 23px 15px;
}
.admin-toolbar .filter-bar {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe3de;
  background: var(--white);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 12px 15px;
  border-bottom: 1px solid #dbe3de;
  background: #f8faf8;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #edf0ed;
  color: #465762;
  font-size: 0.79rem;
  vertical-align: middle;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table tbody tr:hover {
  background: #f8faf8;
}
.admin-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}
.admin-table .table-actions {
  display: flex;
  gap: 7px;
  white-space: nowrap;
}
.admin-form {
  max-width: 900px;
  padding: clamp(20px, 4vw, 35px);
  border: 1px solid #dbe3de;
  background: var(--white);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #d3ddd7;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
}
.field textarea {
  min-height: 125px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  outline: 2px solid rgb(18 108 99 / 12%);
}
.field-hint {
  color: var(--muted);
  font-size: 0.71rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e7ece8;
}
.form-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.button.danger {
  border-color: #dbaaaa;
  background: #fff;
  color: #a54040;
}
.button.danger:hover {
  background: #fff3f1;
}
.notice {
  margin-block: 16px;
  padding: 11px 14px;
  border: 1px solid;
  font-size: 0.82rem;
}
.notice.success {
  border-color: #c7dfcf;
  background: #edf6ef;
  color: #286243;
}
.notice.error {
  border-color: #e6cdca;
  background: #fbf0ee;
  color: #8b413a;
}
.admin-main .empty-state {
  margin-top: 20px;
  background: rgb(255 255 255 / 50%);
}
.admin-main .section-title {
  font-size: 1.35rem;
}
/* D1 admin pages are intentionally rendered without the public shell. */

/* Sign-in */
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: var(--ink);
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 54px 54px;
}
.login-card {
  width: min(100%, 440px);
  padding: 42px clamp(24px, 7vw, 48px);
  background: var(--white);
  box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 31px;
}
.login-brand .brand-copy strong {
  font-size: 1.23rem;
}
.login-card h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.login-card > p {
  margin: 6px 0 24px;
  color: var(--muted);
  font-size: 0.83rem;
}
.login-form {
  display: grid;
  gap: 17px;
}
.login-form .button {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .header-inner {
    position: relative;
    gap: 18px;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .header-action {
    display: none;
  }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -21px;
    left: -21px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 21px 17px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 20px rgb(23 47 71 / 8%);
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .nav a {
    padding: 10px 3px;
    border-bottom: 1px solid #edf0ed;
    font-size: 0.88rem;
  }
  .nav a::after {
    display: none;
  }
  .research-card {
    padding-inline: 20px;
  }
  .life-grid {
    grid-auto-rows: 205px;
  }
}
@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }
  .container,
  .header-inner {
    width: min(100% - 42px, var(--measure));
  }
  .header-inner {
    position: relative;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .header-action {
    display: none;
  }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -21px;
    left: -21px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 21px 17px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 20px rgb(23 47 71 / 8%);
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .nav a {
    padding: 10px 3px;
    border-bottom: 1px solid #edf0ed;
    font-size: 0.88rem;
  }
  .nav a::after {
    display: none;
  }
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 43px;
    padding-block: 66px 79px;
  }
  .hero-copy {
    max-width: 690px;
  }
  .hero h1 {
    max-width: 640px;
    font-size: clamp(2.8rem, 8vw, 4.7rem);
  }
  .hero-media {
    max-width: 680px;
    min-height: 0;
  }
  .hero-media {
    min-height: 0;
  }
  .hero-bottom {
    bottom: 16px;
  }
  .home-news {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-news .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
  }
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .research-card:nth-child(2) {
    border-right: 0;
  }
  .research-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }
  .research-card {
    min-height: 205px;
  }
  .feature-split {
    gap: 34px;
  }
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 32px;
  }
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }
  .footer-grid {
    gap: 30px;
  }
  .admin-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .admin-sidebar {
    padding-inline: 12px;
  }
}
@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }
  body {
    font-size: 15px;
  }
  .container,
  .header-inner {
    width: calc(100% - 36px);
  }
  .site-header {
    height: var(--header-height);
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .brand-copy strong {
    font-size: 1.15rem;
  }
  .brand-copy small {
    max-width: 220px;
    font-size: 0.57rem;
  }
  .nav {
    right: -18px;
    left: -18px;
    padding-inline: 18px;
  }
  .section {
    padding-block: 66px;
  }
  .section-head {
    align-items: start;
    gap: 14px;
    margin-bottom: 26px;
  }
  .section-title {
    font-size: 1.72rem;
  }
  .section-head .section-link {
    margin-top: 19px;
    font-size: 0.74rem;
    white-space: nowrap;
  }
  .hero-inner {
    gap: 30px;
    padding-block: 48px 74px;
  }
  .hero-label {
    font-size: 0.61rem;
    letter-spacing: 0.105em;
  }
  .hero h1 {
    margin-top: 22px;
    font-size: clamp(2.5rem, 11vw, 3.65rem);
  }
  .hero-english {
    max-width: 365px;
    font-size: 1.15rem;
  }
  .hero-lead {
    margin-block: 18px 23px;
    font-size: 0.9rem;
  }
  .hero-actions {
    gap: 9px;
  }
  .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }
  .hero-media {
    min-height: 0;
  }
  .hero-media::before {
    top: -9px;
    right: -9px;
  }
  .hero-caption {
    right: 13px;
    bottom: 12px;
    left: 13px;
    font-size: 0.66rem;
  }
  .hero-bottom {
    bottom: 12px;
    font-size: 0.57rem;
  }
  .quick-strip > .container {
    grid-template-columns: 1fr;
  }
  .quick-item {
    padding: 16px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .quick-item:nth-child(2n) {
    border-right: 0;
  }
  .quick-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .quick-item strong {
    font-size: 1.05rem;
  }
  .quick-item span {
    font-size: 0.69rem;
  }
  .home-news {
    gap: 17px;
  }
  .home-news .section-head {
    align-items: start;
  }
  .news-row {
    grid-template-columns: 74px minmax(0, 1fr) 14px;
    gap: 10px;
    padding-block: 15px;
  }
  .news-row .tag {
    display: none;
  }
  .news-row time {
    font-size: 0.67rem;
  }
  .news-title {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .news-meta {
    display: none;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-card,
  .research-card:nth-child(2) {
    min-height: 0;
    padding: 20px 6px 22px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }
  .research-card:last-child {
    border-bottom: 0;
  }
  .research-card h3 {
    margin: 13px 0 4px;
    font-size: 1.05rem;
  }
  .research-card p {
    font-size: 0.78rem;
  }
  .feature-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-copy p {
    font-size: 0.88rem;
  }
  .feature-image img {
    min-height: 235px;
    max-height: 320px;
  }
  .pi-block {
    gap: 13px;
  }
  .pi-monogram {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 7px;
  }
  .life-caption {
    right: 10px;
    bottom: 9px;
    left: 10px;
    font-size: 0.7rem;
  }
  .life-caption span:last-child {
    display: none;
  }
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
    padding: 25px 21px;
  }
  .cta-band p {
    font-size: 0.8rem;
  }
  .page-hero {
    padding: 48px 0 50px;
  }
  .page-hero::after {
    top: -50px;
    right: -112px;
    width: 240px;
    height: 240px;
  }
  .page-title {
    margin-top: 20px;
    font-size: clamp(2.2rem, 10vw, 3.15rem);
  }
  .page-lead {
    max-width: 90%;
    font-size: 0.87rem;
  }
  .page-number {
    right: 0;
    bottom: 0;
    font-size: 4.3rem;
  }
  .page-content {
    padding-block: 39px 70px;
  }
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }
  .filter-bar label {
    min-width: 0;
  }
  .filter-bar input,
  .filter-bar select {
    min-height: 42px;
  }
  .filter-actions {
    margin-left: 0;
  }
  .result-count {
    margin-block: 13px 16px;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .content-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .content-card:not(:has(.card-image)) {
    display: flex;
  }
  .card-image {
    height: 100%;
    min-height: 133px;
    aspect-ratio: auto;
  }
  .card-body {
    padding: 12px 13px 9px;
  }
  .card-meta {
    gap: 5px 9px;
    font-size: 0.65rem;
  }
  .card-title {
    margin: 5px 0;
    font-size: 0.88rem;
    line-height: 1.42;
  }
  .card-excerpt {
    font-size: 0.73rem;
    line-height: 1.65;
    -webkit-line-clamp: 2;
  }
  .card-footer {
    grid-column: 1 / -1;
    padding: 9px 13px;
    font-size: 0.69rem;
  }
  .content-card .card-footer {
    grid-column: 2;
    margin-top: -1px;
    border-top: 0;
    padding: 2px 13px 12px;
  }
  .publication-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding-block: 17px;
  }
  .publication-year {
    font-size: 1rem;
  }
  .publication-body h2 {
    font-size: 0.88rem;
  }
  .publication-authors,
  .publication-venue {
    font-size: 0.73rem;
    line-height: 1.65;
  }
  .team-group {
    margin-block: 32px 38px;
  }
  .team-group > h2 {
    font-size: 1.05rem;
  }
  .member-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding-block: 14px;
  }
  .member-avatar {
    width: 54px;
    height: 54px;
    font-size: 1rem;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-aside {
    position: static;
    grid-row: auto;
    padding: 17px;
  }
  .detail-main > h1 {
    font-size: 1.8rem;
  }
  .prose {
    margin-top: 23px;
    font-size: 0.89rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    min-height: 0;
    padding: 20px;
  }
  .contact-card h2 {
    margin-top: 10px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .photo-item {
    aspect-ratio: 1.05;
  }
  .lightbox {
    padding: 45px 16px 24px;
  }
  .lightbox img {
    max-height: calc(100vh - 105px);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    padding-block: 38px 29px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: 390px;
    margin-top: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 5px;
    font-size: 0.67rem;
  }
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    position: relative;
    z-index: 20;
    height: auto;
    padding: 12px 17px;
  }
  .admin-sidebar .brand {
    margin: 0;
  }
  .admin-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    margin-top: 11px;
    padding-bottom: 2px;
  }
  .admin-nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 0.74rem;
  }
  .admin-main {
    padding: 20px 18px 40px;
  }
  .admin-topbar {
    align-items: flex-start;
  }
  .admin-topbar h1 {
    font-size: 1.3rem;
  }
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-toolbar .filter-bar {
    flex-direction: row;
  }
  .admin-table {
    min-width: 680px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .field.full {
    grid-column: auto;
  }
  .admin-form {
    padding: 19px 16px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions > div {
    justify-content: flex-start;
  }
  .login-page {
    padding: 18px;
  }
  .login-card {
    padding-block: 32px;
  }
}
@media (max-width: 390px) {
  .life-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 205px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Language controls remain reachable when the main navigation collapses. */
.header-inner {
  gap: 24px;
}
.header-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.language-switch a[aria-current='true'] {
  color: var(--teal);
  font-weight: 700;
}
.language-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
html:lang(en) .nav {
  gap: clamp(12px, 1.25vw, 20px);
}
html:lang(en) .nav a {
  font-size: 0.8rem;
}
html:lang(en) .hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.55vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
}
html:lang(en) .hero-label {
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}
html:lang(en) .hero-english {
  font-family: var(--sans);
  font-size: 0.93rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
html:lang(en) .hero-lead {
  font-size: 0.93rem;
}
html:lang(en) .section-title {
  font-family: var(--serif);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
html:lang(en) .page-title {
  font-family: var(--serif);
  letter-spacing: -0.025em;
}
html:lang(en) .footer-brand p {
  max-width: 330px;
  font-size: 0.98rem;
}
@media (max-width: 1250px) {
  html:lang(en) .menu-toggle {
    display: flex;
  }
  html:lang(en) .header-inner {
    position: relative;
  }
  html:lang(en) .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -21px;
    left: -21px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 21px 17px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 20px rgb(23 47 71 / 8%);
  }
  html:lang(en) .nav.is-open {
    display: flex;
    flex-direction: column;
  }
  html:lang(en) .nav a {
    padding: 11px 4px;
  }
}
@media (max-width: 640px) {
  .header-controls {
    gap: 10px;
  }
  .language-switch {
    gap: 5px;
    font-size: 0.69rem;
  }
  .header-inner {
    gap: 10px;
  }
  .brand-copy small {
    max-width: 148px;
    font-size: 0.49rem;
  }
  html:lang(en) .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.65rem);
  }
  html:lang(en) .hero-label {
    font-size: 0.59rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
  html:lang(en) .hero-english {
    font-size: 0.8rem;
  }
  html:lang(en) .hero-lead {
    font-size: 0.86rem;
  }
  html:lang(en) .nav {
    right: -18px;
    left: -18px;
    padding-inline: 18px;
  }
  html:lang(en) .section-head {
    flex-wrap: wrap;
  }
  html:lang(en) .section-head .section-link {
    margin-top: 0;
  }
  html:lang(en) .page-number {
    opacity: 0.55;
  }
}
@media (max-width: 370px) {
  .brand-copy small {
    max-width: 125px;
  }
  .header-controls {
    gap: 6px;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .brand {
    gap: 6px;
  }
}
