@charset "UTF-8";

:root {
  --ink: #17312d;
  --ink-2: #2e4944;
  --forest: #0e3933;
  --forest-deep: #082923;
  --moss: #a8c66c;
  --lime: #d9ef8b;
  --coral: #ee795d;
  --cream: #f6f3e9;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --mist: #e8efea;
  --line: rgba(23, 49, 45, 0.14);
  --line-strong: rgba(23, 49, 45, 0.22);
  --muted: #657671;
  --shadow: 0 24px 70px rgba(20, 47, 42, 0.1);
  --shadow-soft: 0 12px 35px rgba(20, 47, 42, 0.07);
  --shadow-card: 0 8px 24px rgba(20, 47, 42, 0.055);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --measure: 72ch;
  --orange: var(--coral);
  --sans: "Manrope", "Noto Sans Sinhala", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body.home-page,
body.article-page {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(217, 239, 139, 0.28), transparent 28rem),
    radial-gradient(circle at 92% 48%, rgba(238, 121, 93, 0.12), transparent 26rem),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}

body.home-page {
  padding: 0;
}

body.home-page a,
body.article-page a {
  color: #176f61;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

body.home-page a:hover,
body.article-page a:hover {
  color: #b84f38;
}

.source-language-note {
  margin-inline-start: 0.38em;
  font-size: 0.78em;
  font-weight: 650;
  opacity: 0.72;
  white-space: nowrap;
}

body.home-page :focus-visible,
body.article-page :focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--forest-deep);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 41, 35, 0.94);
  color: #fff;
  backdrop-filter: blur(18px);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: #fff !important;
  text-decoration: none !important;
}

.brand-copy {
  display: grid;
  line-height: 1.28;
}

.brand-copy strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color 180ms ease;
  white-space: nowrap;
}

.site-nav a span {
  display: block;
  font-size: inherit;
  font-weight: 700;
}

.site-nav a span[lang="en"] {
  color: #fff;
  font-weight: 800;
}

.site-nav .nav-separator {
  color: var(--lime);
  font-weight: 900;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a:hover span[lang="en"],
.site-nav a:focus-visible span[lang="en"] {
  color: var(--lime) !important;
}

.topbar-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.page-language-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.page-language-switch a,
.page-language-switch span {
  display: block;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.page-language-switch a:hover,
.page-language-switch a:focus-visible {
  color: var(--lime) !important;
}

.page-language-switch [aria-current="page"] {
  background: var(--lime);
  color: var(--forest-deep) !important;
}

.language-menu {
  position: relative;
  font-family: var(--sans);
}

.language-menu summary {
  display: inline-flex;
  min-width: 172px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--paper-strong);
  color: var(--forest-deep);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.language-menu-label {
  color: var(--coral);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

.language-menu-current {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.language-kanbun .language-menu-current {
  overflow: visible;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

body.language-kanbun .language-menu summary {
  min-width: 198px;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  color: var(--coral);
  content: "▾";
  font-size: 0.72rem;
  transition: transform 160ms ease;
}

.language-menu[open] summary::after {
  transform: rotate(180deg);
}

.language-menu-panel {
  position: absolute;
  z-index: 300;
  display: grid;
  width: min(250px, calc(100vw - 28px));
  max-height: min(68vh, 520px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px;
  background: var(--paper-strong);
  right: 0;
  top: calc(100% + 8px);
  box-shadow: var(--shadow);
}

.language-menu-panel a,
.language-menu-panel span {
  display: block;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink) !important;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  white-space: normal;
}

.language-menu-panel a:hover,
.language-menu-panel a:focus-visible {
  background: var(--mist);
  color: var(--forest) !important;
}

.language-menu-panel [aria-current="page"] {
  background: var(--forest);
  color: #fff !important;
}

.language-menu-topbar summary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-menu-topbar summary::after {
  color: var(--lime);
}

.language-menu-topbar .language-menu-label {
  color: var(--lime);
}

.translation-review-notice {
  width: min(1180px, calc(100% - 40px));
  margin: -17px auto 0;
  border: 0;
  padding: 0 0 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
}

.language-switch > .language-menu {
  border: 0;
  padding: 0;
  background: transparent;
}

body.language-my {
  font-family: "Noto Sans Myanmar", "Manrope", sans-serif;
}

body.language-te {
  font-family: "Noto Sans Telugu", "Manrope", sans-serif;
}

body.language-ta {
  font-family: "Noto Sans Tamil", "Manrope", sans-serif;
}

body.language-hi {
  font-family: "Noto Sans Devanagari", "Manrope", sans-serif;
}

body.language-bn {
  font-family: "Noto Sans Bengali", "Nirmala UI", "Manrope", sans-serif;
}

body.language-ne {
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Manrope", sans-serif;
}

body.language-mr {
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Manrope", sans-serif;
}

body.language-zh-cn {
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body.language-zh-tw,
body.language-yue {
  font-family: "Noto Sans TC", "Manrope", sans-serif;
}

body.language-kanbun,
body.language-kundoku {
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Segoe UI", sans-serif;
}

/* Keep the Simplified Chinese laboratory name in one Windows UI sans family.
   The generic English hero rule otherwise falls back to mixed CJK glyph sets. */
.language-zh-cn header.site-header h1 .title-en {
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body.language-ko {
  font-family: "Noto Sans KR", "Manrope", sans-serif;
}

body.language-th {
  font-family: "Noto Sans Thai", "Manrope", sans-serif;
}

body.language-km {
  font-family: "Noto Sans Khmer", "Khmer UI", "Leelawadee UI", "Manrope", sans-serif;
}

body.language-mn {
  font-family: "Noto Sans", "Manrope", "Segoe UI", sans-serif;
}

body.language-tr {
  font-family: "Noto Sans", "Manrope", "Segoe UI", sans-serif;
}

body.language-uz,
body.language-ru,
body.language-de {
  font-family: "Noto Sans", "Manrope", "Segoe UI", sans-serif;
}

body.language-ar {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

body.language-fa {
  font-family: "Vazirmatn", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

body.language-ar .brand,
body.language-ar .brand-copy,
body.language-ar .research-orbit,
body.language-fa .brand,
body.language-fa .brand-copy,
body.language-fa .research-orbit {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .language-menu-panel {
  right: auto;
  left: 0;
  text-align: right;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

header.site-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(24px, 3vw, 40px) 20px clamp(28px, 3.4vw, 44px);
  background: var(--forest-deep);
  color: #fff;
  text-align: left;
  box-shadow: none;
}

header.site-header::before {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(217, 239, 139, 0.14);
  border-radius: 50%;
  content: "";
  right: -160px;
  top: -170px;
  box-shadow:
    0 0 0 86px rgba(217, 239, 139, 0.035),
    0 0 0 174px rgba(217, 239, 139, 0.025);
}

header.site-header::after {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(238, 121, 93, 0.12);
  content: "";
  filter: blur(4px);
  left: -90px;
  bottom: -150px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: clamp(48px, 7vw, 100px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

header.site-header h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: inherit;
  text-align: left;
}

header.site-header h1 .title-en {
  display: block;
  max-width: 880px;
  margin-top: 28px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
}

.language-en header.site-header h1 .title-en,
.language-si header.site-header h1 .title-en {
  margin-top: 0;
}

.title-en-main {
  display: block;
  font-size: clamp(1.7rem, 2.8vw, 2.55rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  white-space: nowrap;
}

.title-en-faculty {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  white-space: nowrap;
}

header.site-header h1 .title-ja {
  display: block;
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.hero-lede {
  max-width: 690px;
  margin: 46px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-lede .lede-ja,
.hero-lede .lede-en {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-weight: 700;
  line-height: 1.65;
}

.hero-lede .lede-ja {
  font-family: var(--sans);
}

.hero-lede .lede-en {
  margin-top: 8px;
  font-family: var(--sans);
}

.language-en .hero-lede .lede-en,
.language-si .hero-lede .lede-en {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0 22px;
  color: #fff !important;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--forest-deep) !important;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 34px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.hero-tags span::before {
  width: 14px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--lime);
  content: "";
}

.hero-visual {
  display: grid;
  min-height: 470px;
  place-items: center;
}

.research-orbit {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.research-orbit::before,
.research-orbit::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  inset: 16%;
}

.research-orbit::after {
  border-style: dashed;
  inset: 31%;
  animation: orbit-spin 24s linear infinite;
}

.orbit-motion {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 50%;
  inset: 0;
  animation: orbit-spin 42s linear infinite;
}

.orbit-core {
  position: absolute;
  display: grid;
  width: 132px;
  height: 132px;
  place-content: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest-deep);
  left: 50%;
  top: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 18px rgba(217, 239, 139, 0.06);
}

.orbit-core b {
  font-size: 1.08rem;
  letter-spacing: 0.12em;
}

.orbit-core small {
  margin-top: 2px;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  display: flex;
  min-width: 166px;
  min-height: 70px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(14, 57, 51, 0.85);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: orbit-counter-spin 42s linear infinite;
}

.orbit-subject {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
}

.orbit-art {
  display: block;
  width: 54px;
  height: 54px;
  background-image: url("illustrations/orbit-science-icons-v1.png");
  background-repeat: no-repeat;
  background-size: 300% auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.26));
}

.orbit-art-dna {
  background-position: 0 50%;
}

.orbit-art-protein {
  background-position: 47% 50%;
}

.orbit-art-molecule {
  background-position: 100% 50%;
}

.orbit-node-copy {
  display: grid;
  place-items: center;
}

.orbit-node-copy b {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.orbit-node-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.node-genome {
  left: -2%;
  top: 13%;
  border-color: rgba(217, 239, 139, 0.58);
}

.node-protein {
  right: -2%;
  top: 13%;
}

.node-chemical {
  left: calc(50% - 83px);
  bottom: 5%;
  border-color: rgba(238, 121, 93, 0.58);
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--forest-deep);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.dot-a {
  left: 48%;
  bottom: -7px;
}

.dot-b {
  right: 16%;
  top: 9%;
  background: var(--lime);
}

.dot-c {
  left: 48%;
  top: -7px;
  background: #fff;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-counter-spin {
  to {
    transform: rotate(-360deg);
  }
}

main {
  display: block;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 0 110px;
}

body.home-page section {
  max-width: none;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(34px, 4.5vw, 64px);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-card);
}

body.home-page section[id] {
  scroll-margin-top: 100px;
}

body.home-page section > h2 {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  margin: 0 0 clamp(28px, 3.6vw, 44px);
  border: 0;
  padding: 0 0 18px;
  gap: 0.24em;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.35;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  text-wrap: balance;
}

body.home-page #prospective-students-link > h2 {
  border-bottom: 0;
}

@media (min-width: 801px) {
  body.home-page section > h2 {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: clamp(1.35rem, 2.4vw, 2.3rem);
  }
}

.heading-separator {
  color: var(--coral);
  font-family: var(--sans);
  font-weight: 500;
}

.heading-en {
  color: var(--ink);
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: inherit;
}

body.home-page p {
  margin: 0 0 1.4em;
}

#about {
  display: block;
}

#about h2 {
  width: 100%;
}

.about-vision {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  gap: 28px;
  background: var(--mist);
}

.about-vision > div + div {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.about-vision strong {
  display: block;
}

.about-vision strong {
  color: var(--forest);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  line-height: 1.65;
}

.about-vision [lang="en"] strong {
  font-family: var(--sans);
}

#philosophy .about-vision {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
  text-align: center;
}

.about-topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.language-page .about-topic {
  grid-template-columns: minmax(0, 1fr);
}

.about-topic + .about-topic {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.about-topic-ja,
.about-topic-en {
  min-width: 0;
}

.language-page .about-topic-en {
  border-left: 0;
  padding-left: 0;
  color: var(--ink);
}

.about-topic-en {
  border-left: 0;
  padding-left: 0;
  color: var(--ink);
}

#about .about-topic p {
  margin-bottom: 0;
  padding: 3px 0;
}

.about-mini-visual {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 290px);
  margin: 0;
  justify-self: end;
}

.about-mini-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
}

#members h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
  border: 0;
  padding: 0;
  color: var(--forest);
  font-family: var(--sans);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

#members h3::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

#members > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

#members > ul > li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: var(--paper-strong);
  box-shadow: 0 5px 16px rgba(20, 47, 42, 0.035);
  list-style: none;
}

#members > ul > li > b,
.member-name-row > b {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.45;
}

#members > ul > li > b {
  display: block;
  padding-right: 24px;
}

.member-name-reading {
  margin-left: 0.45em;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 650;
}

.member-name-row {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding-right: 24px;
  gap: 10px;
}

.member-name-row > b {
  min-width: 0;
}

.portrait-trigger {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.member-portrait {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 2px;
  background: var(--cream);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(8, 41, 35, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portrait-trigger:hover .member-portrait {
  transform: scale(1.06);
  box-shadow: 0 7px 18px rgba(8, 41, 35, 0.18);
}

.portrait-trigger:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.portrait-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(5, 30, 26, 0.35);
}

.portrait-dialog::backdrop {
  background: rgba(5, 30, 26, 0.76);
  backdrop-filter: blur(5px);
}

.portrait-dialog-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 44px);
}

.portrait-dialog img {
  display: block;
  width: min(560px, 100%);
  max-height: 72dvh;
  border-radius: 20px;
  background: #fff;
  object-fit: contain;
}

.portrait-dialog p {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.portrait-dialog-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 700 1.65rem/1 var(--sans);
  cursor: pointer;
  place-items: center;
}

.portrait-dialog-close:hover,
.portrait-dialog-close:focus-visible {
  background: var(--cream);
}

.student-year {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

#members > ul > li > ul {
  margin: 15px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.83rem;
  list-style: none;
}

#members > ul > li > ul li {
  margin: 7px 0;
  padding-left: 14px;
}

#members > ul > li > ul li::before {
  margin-left: -14px;
  margin-right: 8px;
  color: var(--moss);
  content: "—";
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 20px;
  counter-reset: research;
  list-style: none;
}

.research-grid > li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--paper-strong);
  box-shadow: 0 5px 16px rgba(20, 47, 42, 0.035);
  counter-increment: research;
}

.research-grid > li::after {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(14, 57, 51, 0.16);
  content: "0" counter(research);
  font-size: 2.45rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.research-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 28px;
  padding-right: 58px;
  color: var(--coral);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-featured {
  grid-column: 1 / -1;
  min-height: 0 !important;
  padding: clamp(30px, 4vw, 52px) !important;
}

.research-featured .research-label {
  margin-bottom: 20px;
}

.research-featured-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
}

.research-date {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-grid .research-featured h3 {
  max-width: 760px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.5;
}

.research-paper-title {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
}

.research-featured a {
  color: var(--lime) !important;
}

.research-journal {
  display: grid;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.75);
  gap: 5px;
}

.research-journal > span {
  color: var(--coral);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-journal > a {
  font-size: 1.05rem;
}

.research-journal > strong {
  margin-top: 8px;
  color: #fff;
  font-size: 0.84rem;
}

.research-journal > small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
}

.research-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 30px;
  gap: 0;
}

.research-summary-grid > div {
  padding-right: clamp(24px, 4vw, 48px);
}

.research-summary-grid > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 0;
  padding-left: clamp(24px, 4vw, 48px);
}

.language-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-summary-grid p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  line-height: 1.85;
}

.research-summary-grid .research-coverage {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}

.research-summary-grid .research-coverage strong {
  color: #fff;
}

.research-grid h3 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  color: inherit;
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.65;
}

.research-grid .research-title-en {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.55;
}

.research-card-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: auto 0 0;
  padding-top: 18px;
}

.research-card-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
  object-fit: cover;
}

.research-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 270px);
  align-items: center;
  max-width: 820px;
  margin: 0 auto 36px;
  gap: clamp(20px, 4vw, 36px);
}

.research-intro .article-lead {
  max-width: none;
  margin: 0;
  text-align: left;
}

.research-hero-figure {
  width: 100%;
  margin: 0;
}

.research-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
}

.research-grid h3 a,
.research-grid .research-title-en a {
  color: #176f61;
  text-decoration: none;
  transition: color 0.2s ease;
}

.research-grid h3 a:hover,
.research-grid .research-title-en a:hover {
  color: #b84f38;
}

.press-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 0 clamp(28px, 4vw, 44px);
  list-style: none;
}

.press-list[hidden] {
  display: none;
}

.press-list li {
  position: relative;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 22px 4px;
  gap: 22px;
  font-size: 0.88rem;
}

.press-list li:nth-child(-n + 2) {
  border-top: 0;
}

.press-list time {
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.press-date-ja,
.press-date-en {
  display: block;
}

.language-en .press-date-en,
.language-si .press-date-en {
  margin-top: 0;
  color: var(--forest);
  font-size: 1em;
}

body.language-si {
  font-family: "Noto Sans Sinhala", "Manrope", sans-serif;
}
.press-date-en {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92em;
}

.press-titles {
  display: grid;
  gap: 10px;
}

.press-titles > * {
  display: block;
  color: var(--ink) !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.65;
}

html[dir="rtl"] .press-titles > [dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

.press-titles > * + * {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

#collaboration {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: var(--line);
  color: var(--ink-2);
  gap: 0 56px;
}

#collaboration > h2 {
  grid-column: 1 / -1;
  color: var(--ink);
  border-color: var(--line);
}

#collaboration .heading-en {
  color: var(--ink);
}

#collaboration p {
  max-width: 900px;
}

#collaboration > p[lang="en"] {
  border-left: 2px solid var(--line);
  padding-left: clamp(18px, 2.5vw, 28px);
  color: var(--muted);
}

#events table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

#events tbody {
  display: block;
}

#events tr {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border: 0;
  border-top: 1px solid var(--line);
  transition: background-color 180ms ease;
}

#events tr:hover {
  background: rgba(232, 239, 234, 0.28);
}

#events tr:first-child {
  border-top: 0;
}

#events td {
  display: block;
  width: auto !important;
  padding: 24px 0;
  color: var(--ink-2);
  font-size: 0.88rem;
  vertical-align: top;
}

#events td:first-child {
  position: relative;
  align-self: start;
  margin: 24px 28px 24px 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--mist);
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.45;
  white-space: normal;
}

.event-date-ja,
.event-date-en {
  display: block;
}

.event-date-en {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92em;
}

#events td:nth-child(2) {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.event-text-en {
  display: block;
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-family: var(--sans);
}

#events tr.is-hidden {
  display: none;
}

.events-toggle {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font: 800 0.78rem/1 var(--sans);
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease;
}

.events-toggle[hidden] {
  display: none;
}

.events-toggle:hover {
  background: var(--forest);
  color: #fff;
}

.site-footer {
  overflow: hidden;
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
  gap: 32px;
}

.footer-inner strong {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  margin-bottom: 7px;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.12rem;
  gap: 10px 24px;
}

.footer-inner strong span[lang="en"] {
  font-family: var(--sans);
}

.footer-inner a {
  color: var(--lime) !important;
}

.back-to-top {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff !important;
  font-size: 1.1rem;
  text-decoration: none;
}

/* Linked research and publication pages */
body.article-page {
  padding: clamp(18px, 3vw, 30px) 20px clamp(54px, 7vw, 82px);
}

.article-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px max(0px, calc((100% - 960px) / 2));
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 253, 248, 0.94);
  font-size: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20, 47, 42, 0.04);
}

body.article-page .container,
body.article-page > section,
body.article-page > header + section {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 68px);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
}

body.article-page .container h1,
body.article-page > header h1 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.35;
  text-wrap: balance;
}

body.article-page .container h2,
body.article-page > section h2 {
  margin: 52px 0 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--forest);
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.2vw, 1.52rem);
  line-height: 1.5;
  text-wrap: balance;
}

body.article-page .source-info {
  margin-bottom: 40px;
  border: 0;
  border-left: 5px solid var(--coral);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3.5vw, 32px);
  background: var(--mist);
}

body.article-page .source-info h2 {
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--forest);
  font-size: 1.25rem;
}

body.article-page .source-info p {
  margin: 8px 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.75;
}

body.article-page .research-article > p,
body.article-page .research-article > ul,
body.article-page .research-article > ol {
  max-width: var(--measure);
  margin-right: auto;
  margin-left: auto;
}

body.article-page img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.article-figure {
  width: min(100%, 520px);
  margin: 34px auto 42px;
}

.article-figure img {
  display: block;
  width: 100%;
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 801px) and (max-width: 1100px) {
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.article-page > header {
  max-width: 960px;
  margin: 0 auto 20px;
  border-radius: var(--radius-xl);
  background: var(--forest);
  box-shadow: none;
}

body.article-page > header h1 {
  color: #fff;
}

body.article-page .research-article > h1 {
  max-width: 780px;
  margin: 0 auto 24px;
  font-size: clamp(1.22rem, 1.8vw, 1.58rem);
  line-height: 1.5;
  text-align: center;
}

body.article-page .research-article.has-language-switch {
  position: relative;
  padding-top: clamp(88px, 9vw, 104px);
}

.research-article.has-language-switch .article-language-control {
  position: absolute;
  top: 18px;
  right: clamp(20px, 4vw, 38px);
  z-index: 2;
  display: flex;
  width: min(580px, calc(100% - 40px));
  align-items: flex-end;
  flex-direction: column;
  margin: 0;
}

.research-article.has-language-switch .article-language-control .language-switch {
  position: static;
  margin: 0;
}

.article-language-control .translation-review-notice {
  width: auto;
  max-width: 100%;
  margin: 4px 0 0;
  padding: 0;
  color: var(--muted);
  text-align: right;
}

.article-lead {
  max-width: 760px;
  margin: 0 auto 36px;
  color: var(--ink-2);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.9;
  text-align: center;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
  gap: 8px;
}

.language-switch > * {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switch [aria-current="page"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.research-highlight {
  margin: 34px 0 46px;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  background: var(--forest);
  color: rgba(255, 255, 255, 0.88);
}

.research-highlight > strong {
  display: block;
  margin-bottom: 16px;
  color: var(--lime);
  font-family: var(--sans);
  font-size: 1.25rem;
}

.research-highlight ul {
  margin: 0;
  padding-left: 22px;
}

.research-highlight li {
  margin: 10px 0;
}

.article-links {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.article-links li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 42px 14px 16px;
  background: var(--paper-strong);
  box-shadow: 0 4px 12px rgba(20, 47, 42, 0.035);
}

.article-links li::after {
  position: absolute;
  color: var(--coral);
  content: "↗";
  right: 16px;
  top: 13px;
}

.article-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 12px;
}

.article-footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  text-decoration: none;
  background: var(--paper-strong);
  font-family: inherit;
}

/* Major publications */
.publication-page {
  width: min(1060px, 100%);
  max-width: 1060px;
  margin: 0 auto;
}

.publication-page > .publication-header {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: clamp(34px, 5vw, 54px);
  background: var(--forest);
  box-shadow: none;
  text-align: left;
}

.publication-page > .publication-header h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.35;
  text-align: left;
  text-wrap: balance;
}

.publication-page > .publication-header .language-switch {
  margin-bottom: 12px;
}

.publication-page > .publication-header .translation-review-notice {
  width: auto;
  margin: 0 0 22px;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
}

.publication-page > .publication-content {
  max-width: none;
  margin: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
}

.publication-page .scholar-summary {
  margin: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  background: var(--mist);
}

.publication-page .scholar-summary > p {
  margin: 0 0 18px;
  color: var(--forest);
  font-weight: 800;
}

.publication-page .scholar-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 14px;
}

.publication-page .scholar-metrics > div {
  border: 1px solid rgba(23, 49, 45, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--paper-strong);
}

.publication-page .scholar-metrics dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.publication-page .scholar-metrics dd {
  margin: 7px 0 0;
  color: var(--forest);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
}

.publication-page .scholar-metrics small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.publication-page table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-spacing: 0;
  overflow: hidden;
}

.publication-page th {
  border-bottom: 1px solid var(--line-strong);
  padding: 15px 16px;
  background: var(--mist);
  color: var(--forest);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
  white-space: nowrap;
}

.publication-page td {
  border-bottom: 1px solid var(--line);
  padding: 18px 16px;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.7;
}

.publication-page tbody tr:last-child td {
  border-bottom: 0;
}

.publication-page tbody td:nth-child(2) {
  color: var(--forest);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.publication-page tbody td:nth-child(3) span[lang="en"] {
  display: block;
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  border-color: var(--line);
  color: var(--muted);
}

.publication-page .note {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
  }

  .hero-visual {
    min-height: 380px;
  }

  #about {
    display: block;
  }

  .about-topic {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 250px);
    gap: 34px;
  }
}

/* The bilingual navigation needs more room than a conventional single-language
   menu. Switch to the compact menu before it can overflow at tablet widths. */
@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    display: none;
    align-items: stretch;
    flex-direction: column;
    width: min(360px, calc(100% - 24px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 18px;
    background: var(--forest);
    gap: 0;
    right: 12px;
    top: 58px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 13px 8px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 800px) {
  .topbar-inner {
    min-height: 66px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-visual {
    min-height: 360px;
  }

  .research-orbit {
    width: min(360px, 90vw);
  }

  .about-topic {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.home-page section > h2 {
    flex-wrap: wrap;
    gap: 0.18em 0.28em;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    white-space: normal;
  }

  body.home-page section > h2 > span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .about-vision {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-vision > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }

  .about-topic-en {
    margin-top: 0;
    border-left: 2px solid var(--line);
    padding-left: 18px;
  }

  .about-mini-visual {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    margin-top: 20px;
  }

  #members > ul,
  .research-grid,
  .press-list {
    grid-template-columns: 1fr;
  }

  .research-featured-head,
  .research-summary-grid {
    grid-template-columns: 1fr;
  }

  .research-journal {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
    padding-top: 22px;
    padding-left: 0;
  }

  .research-summary-grid > div {
    padding-right: 0;
  }

  .research-summary-grid > div + div {
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
    padding-top: 26px;
    padding-left: 0;
  }

  .press-list li:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  #collaboration {
    grid-template-columns: 1fr;
  }

  #collaboration > h2 {
    grid-column: auto;
  }

  #collaboration > p[lang="en"] {
    margin-top: -6px;
  }

  .publication-page > .publication-header {
    border-radius: 24px 24px 0 0;
    padding: 30px 24px;
  }

  .publication-page > .publication-content {
    border-radius: 0 0 24px 24px;
    padding: 28px 24px;
  }

  .publication-page table,
  .publication-page tbody,
  .publication-page tr,
  .publication-page td {
    display: block;
    width: 100%;
  }

  .publication-page table {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .publication-page thead {
    display: none;
  }

  .publication-page tbody tr {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper-strong);
    box-shadow: 0 5px 16px rgba(20, 47, 42, 0.04);
  }

  .publication-page td {
    border-bottom: 1px solid var(--line);
    padding: 15px 16px;
  }

  .publication-page tbody td:nth-child(1) {
    background: var(--mist);
    color: var(--ink);
    font-weight: 600;
  }

  .publication-page tbody td:nth-child(2) {
    text-align: left;
  }

  .publication-page tbody td:nth-child(2)::before {
    color: var(--muted);
    font-size: 0.75rem;
  }

  html[lang="ja"] .publication-page tbody td:nth-child(2)::before {
    content: "被引用数：";
  }

  html[lang="en"] .publication-page tbody td:nth-child(2)::before {
    content: "Citations: ";
  }

  html[lang="lzh-Jpan"] .publication-page tbody td:nth-child(2)::before {
    content: "被引用数：";
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .topbar-controls {
    gap: 8px;
  }

  .brand-copy small {
    display: none;
  }

  .page-language-switch a,
  .page-language-switch span {
    padding: 5px 7px;
    font-size: 0.6rem;
  }

  .language-menu summary {
    min-width: 146px;
    padding: 6px 9px;
    font-size: 0.64rem;
  }

  body.language-kanbun .language-menu summary {
    min-width: 146px;
  }

  body.language-kanbun .language-menu-current {
    max-width: 78px;
    font-size: 0.58rem;
  }

  .language-menu-label {
    font-size: 0.48rem;
  }

  .translation-review-notice {
    width: calc(100% - 24px);
    margin-top: -12px;
    padding: 0 0 6px;
    font-size: 0.5rem;
    line-height: 1.35;
  }

  .language-en .brand-copy strong,
  .language-si .brand-copy strong,
  body.language-machine .brand-copy strong {
    max-width: 120px;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .member-name-reading {
    display: block;
    margin: 2px 0 0;
  }
}

@media (max-width: 600px) {
  .topbar-inner,
  main,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .research-intro {
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: start;
    margin-bottom: 26px;
    gap: 14px;
  }

  .research-intro .article-lead {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .research-hero-figure img {
    border-radius: 0;
    box-shadow: none;
  }

  .brand-copy strong,
  .brand-copy small {
    font-size: 0.68rem;
  }

  header.site-header {
    padding: 24px 14px 30px;
  }

  .hero {
    gap: 20px;
  }

  .title-en-main {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }

  header.site-header h1 .title-en {
    margin-top: 22px;
  }

  .title-en-faculty {
    margin-top: 16px;
    font-size: clamp(0.88rem, 3.8vw, 1rem);
  }

  .hero-lede {
    margin-top: 38px;
    padding-top: 24px;
  }

  .hero-tags {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  header.site-header h1 .title-ja {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 320px;
  }

  .research-orbit {
    width: 290px;
  }

  .orbit-node {
    min-width: 126px;
    min-height: 58px;
    gap: 5px;
    padding: 6px 8px;
  }

  .orbit-subject {
    flex-basis: 50px;
  }

  .orbit-node-copy b {
    font-size: 0.58rem;
  }

  .orbit-node-copy small {
    font-size: 0.45rem;
    letter-spacing: 0.03em;
  }

  .node-chemical {
    left: calc(50% - 63px);
  }

  .orbit-core {
    width: 112px;
    height: 112px;
  }

  body.home-page section {
    border-radius: 24px;
    padding: 30px 20px;
  }

  body.home-page section > h2 {
    font-size: clamp(1rem, 4.8vw, 1.25rem);
  }

  #press > *,
  #collaboration > * {
    min-width: 0;
  }

  #members > ul > li,
  .research-grid > li {
    padding: 22px;
  }

  #members h3 {
    gap: 8px;
    font-size: clamp(0.94rem, 4.2vw, 1.04rem);
    letter-spacing: 0.01em;
    white-space: normal;
  }

  .portrait-trigger {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .portrait-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .portrait-dialog-inner {
    padding: 42px 14px 20px;
  }

  .portrait-dialog img {
    max-height: 70dvh;
    border-radius: 14px;
  }

  #events tr {
    display: block;
    padding: 24px 0;
  }

  #events td {
    padding: 0;
  }

  #events td:first-child {
    display: inline-block;
    margin: 0 0 15px;
  }

  #events td:nth-child(2) {
    border-left: 0;
    padding-left: 0;
  }

  .press-list li {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .press-list time {
    padding-right: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    padding: 42px 0;
  }

  .footer-inner strong {
    grid-template-columns: 1fr;
  }

  body.article-page {
    padding: 14px 10px 48px;
  }

  .article-home {
    margin-bottom: 14px;
    padding: 8px 13px;
  }

  body.article-page .container,
  body.article-page > section,
  body.article-page > header + section {
    border-radius: 24px;
    padding: 24px 20px;
  }

  body.article-page .research-article.has-language-switch {
    padding-top: 104px;
  }

  .research-article.has-language-switch .article-language-control {
    top: 14px;
    right: 18px;
    width: calc(100% - 36px);
  }

  .article-language-control .translation-review-notice {
    width: auto;
    margin-top: 4px;
    padding: 0;
    font-size: 0.48rem;
  }

  .publication-page .scholar-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
