/* Plain-flow member cards use the same 2rem separation as the member grids. */
#people :not(.team-member-grid) > .team-member-card + .team-member-card {
  margin-block-start: 2rem;
}

@keyframes slow-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.title-gradient {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

    :root {
      /* 三级字号体系（整体比原版放大）：大 / 中 / 小 */
      --fs-small: 1.0625rem;                             /* 小 · 17px（原 10–14px） */
      --fs-medium: 1.5rem;                               /* 中 · 24px（原 16–24px） */
      --fs-large: clamp(3.25rem, 7vw + 1.5rem, 6.5rem);  /* 大 · 52–104px（原 30–96px） */
      --surface-1: #f8fafc;          /* page background */
      --surface-2: #ffffff;          /* cards */
      --surface-3: #f1f5f9;          /* sunken / strips */
      --text-primary: #0f172a;       /* slate-900 */
      --text-muted: #64748b;         /* slate-500 */
      --border: rgba(15, 23, 42, 0.08);
      --accent: #2563eb;             /* blue-600 */
      --accent-soft: rgba(37, 99, 235, 0.12);
      --hero-overlay: rgba(15, 23, 42, 0.60);
      --bg-page-gradient: linear-gradient(180deg, #f8fafc 0%, #eef6ff 45%, #f8fafc 100%);
      /* legacy aliases */
      --bg-color: var(--surface-1);
      --text-main: var(--text-primary);
    }
    html { transition: background-color .4s ease, color .4s ease; }

    body {
      /* 国际化高级字体栈 */
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      transition: background-color .4s ease, color .4s ease;
    }

    /* 极其微妙的科研风网格背景 */
    .tech-grid {
      background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
      background-size: 40px 40px;
    }

    /* 极简卡片 */
    .card-minimal {
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.04);
      box-shadow: 0 4px 24px rgba(15, 23, 42, 0.02);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .card-minimal:hover {
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
      transform: translateY(-4px);
    }

    /* 统一按钮风格 */
    .btn-solid {
      background: var(--text-main);
      color: white;
      transition: all 0.3s ease;
    }
    .btn-solid:hover {
      background: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    }

    .btn-outline {
      border: 1px solid rgba(255,255,255,0.6);
      color: white;
      backdrop-filter: blur(4px);
      transition: all 0.3s ease;
    }
    .btn-outline:hover {
      background: white;
      color: var(--text-main);
    }

    /* 引题标签 */
    .kicker {
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--accent);
      font-size: var(--fs-small);
    }

    /* 导航栏活动状态 */
    .nav-link {
      position: relative;
      opacity: 0.8;
      transition: opacity 0.3s ease;
    }
    .nav-link:hover {
      opacity: 1;
    }
    .nav-link.active {
      opacity: 1;
    }
    .nav-link.active::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 100%;
      height: 2px;
      background: white;
      border-radius: 2px;
    }

    .mobile-nav-link {
      display: block;
      padding: 12px 16px;
      font-size: var(--fs-small);
      font-weight: 600;
      color: var(--text-primary);
      border-radius: 12px;
      transition: background 0.2s;
    }
    .mobile-nav-link:hover {
      background: var(--accent-soft);
    }

    .lang-switch {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      padding: 4px;
      border-radius: 9999px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(15, 23, 42, 0.25);
      backdrop-filter: blur(8px);
    }
    .lang-item {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 52px;
      padding: 6px 12px;
      border-radius: 9999px;
      font-size: var(--fs-small);
      font-weight: 700;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.75);
      text-transform: uppercase;
      transition: all 0.25s ease;
    }
    .lang-item:hover {
      color: white;
    }
    .lang-item.active {
      color: #0f172a;
      background: white;
    }

    /* ============================================================
       Futuristic Tech Sections — Lab Equipment + Live News Feed
       ============================================================ */
    @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

    .font-tech { font-family: 'JetBrains Mono', 'SF Mono', Menlo, ui-monospace, monospace; }

    /* Dark tech container */
    .tech-section {
      background:
        radial-gradient(ellipse 70% 50% at 85% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 15% 100%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #050b1a 0%, #0a142b 50%, #0e1d3d 100%);
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }
    .tech-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: radial-gradient(ellipse 85% 75% at center, black 0%, transparent 92%);
      -webkit-mask-image: radial-gradient(ellipse 85% 75% at center, black 0%, transparent 92%);
      pointer-events: none;
      z-index: -1;
    }
    .tech-section::after {
      content: '';
      position: absolute;
      top: 8%;
      left: 8%;
      width: 84%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
      pointer-events: none;
    }

    /* Dark glass card */
    .tech-card {
      position: relative;
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.38) 100%);
      border: 1px solid rgba(56, 189, 248, 0.16);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .tech-card::before {
      content: '';
      position: absolute;
      top: 0; left: 8%;
      width: 84%;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.6) 50%, transparent 100%);
      opacity: 0.5;
      transition: opacity 0.4s;
    }
    .tech-card:hover {
      border-color: rgba(56, 189, 248, 0.42);
      box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.22),
        0 30px 60px -20px rgba(37, 99, 235, 0.5);
      transform: translateY(-4px);
    }
    .tech-card:hover::before { opacity: 1; }

    /* Corner brackets */
    .tech-bracket > .bracket-tl,
    .tech-bracket > .bracket-br {
      position: absolute;
      width: 18px;
      height: 18px;
      border: 1px solid rgba(56, 189, 248, 0.55);
      transition: all 0.4s ease;
      pointer-events: none;
    }
    .tech-bracket > .bracket-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
    .tech-bracket > .bracket-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
    .tech-bracket:hover > .bracket-tl,
    .tech-bracket:hover > .bracket-br { width: 28px; height: 28px; border-color: rgba(56, 189, 248, 0.95); }

    /* Pulsing live indicator */
    .tech-pulse {
      position: relative;
      display: inline-block;
      width: 8px; height: 8px;
      background: #22d3ee;
      border-radius: 50%;
      box-shadow: 0 0 12px #22d3ee;
      flex-shrink: 0;
    }
    .tech-pulse::before {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 1px solid #22d3ee;
      animation: techPulse 1.8s ease-out infinite;
    }
    @keyframes techPulse {
      0% { transform: scale(0.5); opacity: 1; }
      100% { transform: scale(2.4); opacity: 0; }
    }

    /* Glowing tech stat number */
    .tech-stat-glow {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
      letter-spacing: -0.02em;
    }

    /* Scanlines on image */
    .tech-scanlines { position: relative; }
    .tech-scanlines::after {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        0deg, transparent 0, transparent 3px,
        rgba(56, 189, 248, 0.05) 3px, rgba(56, 189, 248, 0.05) 4px
      );
      pointer-events: none;
      border-radius: inherit;
    }

    /* Vertical scan sweep */
    .tech-sweep { position: relative; overflow: hidden; }
    .tech-sweep > .sweep-line {
      position: absolute;
      top: -20%;
      left: 0;
      width: 100%;
      height: 30%;
      background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.07) 50%, transparent 100%);
      animation: scanlineSweep 7s linear infinite;
      pointer-events: none;
    }
    @keyframes scanlineSweep {
      0% { top: -25%; }
      100% { top: 110%; }
    }

    /* Status badge */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 5px 12px;
      border-radius: 999px;
      background: rgba(34, 211, 238, 0.10);
      border: 1px solid rgba(34, 211, 238, 0.32);
      color: #67e8f9;
      font-family: 'JetBrains Mono', monospace;
      font-size: var(--fs-small);
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    /* Tech metric cell */
    .tech-metric {
      position: relative;
      border-radius: 12px;
      border: 1px solid rgba(56, 189, 248, 0.16);
      background: rgba(8, 15, 32, 0.55);
      padding: 16px;
      transition: all 0.3s ease;
    }
    .tech-metric:hover {
      border-color: rgba(56, 189, 248, 0.42);
      background: rgba(8, 15, 32, 0.78);
    }
    .tech-metric .metric-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: var(--fs-small);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(103, 232, 249, 0.7);
      margin-bottom: 4px;
    }

    /* News tech card (light) */
    .news-tech-card {
      position: relative;
      background: rgba(255, 255, 255, 0.65);
      border: 1px solid rgba(15, 23, 42, 0.07);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
    }
    .news-tech-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 3px;
      height: 100%;
      background: linear-gradient(180deg, #2563eb 0%, #22d3ee 100%);
      transform: scaleY(0);
      transform-origin: top;
      transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .news-tech-card::after {
      content: '';
      position: absolute;
      top: -100%; left: 0;
      width: 100%; height: 100%;
      background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.04) 100%);
      transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
    }
    .news-tech-card:hover {
      border-color: rgba(37, 99, 235, 0.32);
      transform: translateY(-4px);
      box-shadow: 0 25px 50px -15px rgba(37, 99, 235, 0.20);
    }
    .news-tech-card:hover::before { transform: scaleY(1); }
    .news-tech-card:hover::after { top: 0; }

    /* News category chip */
    .news-chip {
      display: inline-flex;
      align-items: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: var(--fs-small);
      font-weight: 600;
      letter-spacing: 0.16em;
      padding: 3px 8px;
      border-radius: 999px;
      text-transform: uppercase;
    }
    .news-chip-honor { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.25); color: #1d4ed8; }
    .news-chip-research { background: rgba(8, 145, 178, 0.08); border: 1px solid rgba(8, 145, 178, 0.25); color: #0e7490; }
    .news-chip-event { background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(124, 58, 237, 0.25); color: #6d28d9; }
    .news-chip-grant { background: rgba(5, 150, 105, 0.08); border: 1px solid rgba(5, 150, 105, 0.25); color: #047857; }

    /* Live tech tick */
    .live-tick {
      width: 8px; height: 8px;
      background: #06b6d4;
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
      animation: liveTick 2s infinite;
    }
    @keyframes liveTick {
      0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.55); }
      70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
      100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
    }

    /* Light tech card */
    .tech-light-card {
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid rgba(15, 23, 42, 0.06);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .tech-light-card:hover {
      border-color: rgba(37, 99, 235, 0.20);
      transform: translateY(-3px);
      box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.18);
    }

    /* Light metric tile */
    .tech-metric-light {
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(241, 245, 249, 0.6) 0%, rgba(239, 246, 255, 0.5) 100%);
      border: 1px solid rgba(15, 23, 42, 0.05);
      padding: 16px;
      transition: all 0.3s ease;
    }
    .tech-metric-light:hover {
      border-color: rgba(37, 99, 235, 0.20);
      background: linear-gradient(135deg, rgba(241, 245, 249, 0.9) 0%, rgba(239, 246, 255, 0.85) 100%);
    }
    .metric-label-light {
      font-family: 'JetBrains Mono', monospace;
      font-size: var(--fs-small);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(37, 99, 235, 0.7);
      margin-bottom: 4px;
    }

    /* Gradient text on light bg */
    .tech-stat-light {
      background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Equipment image / placeholder */
    .equipment-image {
      position: relative;
      width: 100%;
      background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
      overflow: hidden;
    }
    .equipment-image img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .equipment-image-placeholder {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: var(--fs-small);
      letter-spacing: 0.12em;
      color: rgba(37, 99, 235, 0.55);
      background-image:
        linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
      background-size: 24px 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .equipment-image.is-empty .equipment-image-placeholder { opacity: 1; }

    /* ==================================================
       Page background + navbar chrome (light mode only)
       ================================================== */
    body { background-image: var(--bg-page-gradient); background-attachment: fixed; }

    /* Homepage header: keep branding, section links, and language controls distinct. */
    .home-nav-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: clamp(12px, 2.2vw, 40px);
      padding-inline: clamp(16px, 3.7vw, 80px);
    }
    .home-nav-brand {
      display: flex;
      align-items: center;
      gap: clamp(8px, 1.2vw, 20px);
      min-width: 0;
    }
    .home-nav-logo { display: flex; align-items: center; min-width: 0; }
    .home-nav-brand .nav-divider { flex: 0 0 1px; }
    .home-nav-logo img { display: block; object-fit: contain; opacity: 0.9; }
    .home-nav-university { width: clamp(91px, 23vw, 192px); }
    .home-nav-lab { width: clamp(72px, 18vw, 152px); }
    .home-nav-controls { display: flex; align-items: center; flex: none; gap: 10px; }
    .home-nav-links { display: none; }
    #navbar .lang-switch { flex: none; padding: 2px; }
    #navbar .lang-item {
      min-width: 32px;
      min-height: 32px;
      padding: 3px 6px;
      font-size: 0.75rem;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }
    #mobile-menu-btn { flex: none; }
    #mobile-menu { opacity: 0; pointer-events: none; }
    #mobile-menu.is-open { opacity: 1; pointer-events: auto; }
    #mobile-menu-panel {
      max-width: 100%;
      overflow-y: auto;
      overscroll-behavior: contain;
      transform: translateX(100%);
    }
    #mobile-menu.is-open #mobile-menu-panel { transform: translateX(0); }
    @media (min-width: 86rem) {
      .home-nav-row {
        max-width: 106rem;
        margin-inline: auto;
        gap: clamp(24px, 3vw, 52px);
      }
      .home-nav-brand { flex: none; }
      .home-nav-controls { flex: 1; gap: clamp(16px, 2vw, 32px); }
      .home-nav-links {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        gap: clamp(12px, 1.2vw, 20px);
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        white-space: nowrap;
      }
      html[lang="en"] .home-nav-links { font-size: 0.875rem; letter-spacing: 0.1em; }
      #navbar #mobile-menu-btn { margin-inline-start: calc(10px - clamp(16px, 2vw, 32px)); }
    }

    .research-nav-list[hidden] { display: none; }
    .research-nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
    .research-nav-toggle svg { flex: none; }
    .research-nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    .research-nav-desktop { position: relative; display: flex; align-items: center; }
    .research-nav-desktop .research-nav-toggle { padding: 0.45rem 0 0.45rem 0.22rem; }
    .research-nav-desktop .research-nav-list {
      position: absolute; inset: 100% auto auto -0.65rem; z-index: 1;
      border: 1px solid #334155; border-radius: 0.55rem; padding: 0.3rem;
      background: #0f172a; color: #f1f5f9; box-shadow: 0 12px 24px rgba(2, 6, 23, 0.32);
      font-size: 0.875rem; letter-spacing: 0.015em; text-transform: none;
    }
    .research-nav-list a { display: block; padding: 0.55rem 0.7rem; border-radius: 0.3rem; }
    .research-nav-desktop .research-nav-list a:is(:hover, :focus-visible) { background: #334155; }
    .research-nav-drawer .research-nav-toggle { width: 100%; justify-content: space-between; font-size: 1.125rem; font-weight: 600; }
    .research-nav-drawer .research-nav-list { margin: 0.4rem 0 0; border-inline-start: 1px solid #cbd5e1; padding-inline-start: 0.35rem; font-size: 0.875rem; }
    .research-nav-drawer .research-nav-list a:is(:hover, :focus-visible) { text-decoration: underline; }

    /* Shared publication layout for both homepage languages. */
    .publication-row { display: grid; gap: 1rem; }
    .publication-row h3 { min-width: 0; overflow-wrap: anywhere; }
    .publication-number { flex: 0 0 2.25rem; font-variant-numeric: tabular-nums; }
    .publication-action { justify-self: end; white-space: nowrap; }
    @media (min-width: 48rem) {
      .publication-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
      .publication-action { padding-top: 0.25rem; }
    }
    @media (prefers-reduced-motion: reduce) {
      #mobile-menu, #mobile-menu-panel { transition: none; }
    }

    /* Round icon button (mobile menu, etc.) */
    .theme-toggle {
      width: 36px; height: 36px;
      display: inline-flex; align-items: center; justify-content: center;
      border-radius: 9999px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(15, 23, 42, 0.25);
      color: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(8px);
      transition: all 0.25s ease;
      cursor: pointer;
    }
    .theme-toggle:hover { color: #ffffff; background: rgba(15, 23, 42, 0.4); }

    /* Scrolled navbar base — unified dark across light & dark modes */
    #navbar.scrolled {
      background: rgba(6, 11, 24, 0.92);
      backdrop-filter: blur(16px) saturate(180%);
      padding-top: 1rem;
      padding-bottom: 1rem;
      box-shadow: 0 1px 3px rgba(0,0,0,0.3);
      color: #e2e8f0;
    }

    #navbar.scrolled .theme-toggle {
      border-color: rgba(148, 163, 184, 0.25);
      background: rgba(15, 23, 42, 0.55);
      color: #e2e8f0;
    }
    /* Lang switch when navbar is scrolled */
    #navbar.scrolled .lang-switch { background: rgba(15, 23, 42, 0.55); border-color: rgba(148, 163, 184, 0.25); }
    #navbar.scrolled .lang-item { color: rgba(226, 232, 240, 0.75); }
    #navbar.scrolled .lang-item.active { background: #e2e8f0; color: #0f172a; }
    #navbar.scrolled .nav-link { color: #e2e8f0; opacity: 0.7; }
    #navbar.scrolled .nav-link:hover { opacity: 1; }
    #navbar.scrolled .nav-link.active { opacity: 1; }
    #navbar.scrolled .nav-link.active::after { background: #38bdf8; }
    #navbar.scrolled .nav-divider { background: rgba(148, 163, 184, 0.2); }

/* Keep these static member labels out of the publication chip selector. */
.member-role-heading { gap: 0.5rem; }

/* Keep date intervals intact and stack when the card itself narrows. */
.advisor-experience { container-type: inline-size; line-height: 1.625; }
.advisor-experience-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; }
.advisor-experience-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
@container (min-width: 21rem) {
  html[lang^="zh"] .advisor-experience-row {
    grid-template-columns: 9rem minmax(0, 1fr);
    column-gap: 0.75rem;
  }
}
@container (min-width: 27rem) {
  html[lang^="en"] .advisor-experience-row {
    grid-template-columns: 14rem minmax(0, 1fr);
    column-gap: 0.75rem;
  }
}

.teaching-course-title { font-weight: 600; color: #1e293b; }
.dark .teaching-course-title { color: #e2e8f0; }

/* Shared homepage styles: allow translated English text to wrap naturally. */
html[lang="en"] #home h1{
  font-size:clamp(2.4rem,6vw,6rem);white-space:normal;max-width:20ch;
  letter-spacing:-.025em;overflow-wrap:normal;
}
html[lang="en"] section[id] h2{
  font-size:clamp(2.4rem,6vw,6rem);overflow-wrap:normal;
}
html[lang="en"] #people h3{font-size:clamp(1.65rem,4vw,3.4375rem)}
html[lang="en"] #people h4{flex-wrap:wrap;line-height:1.4}
html[lang="en"] #home a{font-size:clamp(1rem,2vw,1.5rem);letter-spacing:.025em;padding:1.1rem 2rem}
html[lang="en"] #research-grid h3{overflow-wrap:normal;line-height:1.25}
