  :root {
    --accent: #0057b8;
    --accent-hover: #003d82;
    --accent-soft: rgba(0, 87, 184, 0.10);
    --surface: rgba(255, 255, 255, 0.78);
    --bg: #ffffff;
    --bg-sidebar: #f5f6f8;
    --bg-section: #fafafa;
    --text: #1a1a2e;
    --text-muted: #5a6476;
    --text-light: #8892a4;
    --border: #e2e6ed;
    --nav-bg: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(12, 20, 35, 0.08);
    --shadow-lg: 0 18px 50px rgba(12, 20, 35, 0.12);
  }
  [data-theme="dark"] {
    --accent: #4d9fff;
    --accent-hover: #7ab8ff;
    --accent-soft: rgba(77, 159, 255, 0.14);
    --surface: rgba(15, 17, 23, 0.78);
    --bg: #0f1117;
    --bg-sidebar: #171a22;
    --bg-section: #13161e;
    --text: #e8ecf2;
    --text-muted: #9aa3b2;
    --text-light: #636e82;
    --border: #252a36;
    --nav-bg: #0f1117;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.28);
    --shadow-lg: 0 18px 50px rgba(0,0,0,0.38);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; color-scheme: light dark; }
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    background-image:
      radial-gradient(circle at top left, rgba(0, 87, 184, 0.06), transparent 28%),
      radial-gradient(circle at 85% 15%, rgba(0, 87, 184, 0.04), transparent 18%),
      linear-gradient(180deg, rgba(245, 248, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 18%, var(--bg) 100%);
  }
  [data-theme="dark"] body {
    background-image:
      radial-gradient(circle at top left, rgba(77, 159, 255, 0.10), transparent 28%),
      radial-gradient(circle at 85% 15%, rgba(77, 159, 255, 0.06), transparent 18%),
      linear-gradient(180deg, rgba(10, 12, 18, 0.95) 0%, rgba(15, 17, 23, 0.98) 18%, var(--bg) 100%);
  }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; transition: background 0.3s;
  }
  .nav-brand { font-weight: 650; font-size: 15px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
  .nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
  .nav-links a { display: block; padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: 999px; transition: color 0.2s, background 0.2s, transform 0.2s; }
  .nav-links a:hover { color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
  .dark-toggle { background: none; border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; cursor: pointer; font-size: 13px; color: var(--text-muted); margin-left: 10px; transition: border-color 0.2s, color 0.2s; }
  .dark-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .toggle-icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; fill: currentColor; }
  .toggle-icon--light { display: none; }
  [data-theme="dark"] .toggle-icon--dark { display: none; }
  [data-theme="dark"] .toggle-icon--light { display: inline-block; }
  .page-wrapper {
    max-width: 1240px; margin: 0 auto; padding: 2.2rem 1.5rem 2.8rem;
    display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; align-items: start;
  }
  .sidebar {
    position: sticky; top: 72px;
    background: linear-gradient(180deg, var(--surface), var(--bg-sidebar));
    border: 1px solid var(--border); border-radius: 20px;
    padding: 1.85rem 1.5rem; text-align: center; transition: background 0.3s;
    box-shadow: var(--shadow-md);
    overflow: hidden;
  }
  .sidebar::before {
    content: "";
    display: block;
    height: 3px;
    margin: -1.85rem -1.5rem 1.35rem;
    background: linear-gradient(90deg, var(--accent), rgba(0,87,184,0.3));
  }
  .avatar-wrap {
    width: 144px; height: 144px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.85); overflow: hidden;
    margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
    background: #c7d8f5;
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  }
  .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .sidebar-name { font-size: 18px; font-weight: 650; color: var(--text); line-height: 1.25; margin-bottom: 0.25rem; }
  .sidebar-title { font-size: 13px; color: var(--text-muted); margin-bottom: 0.2rem; }
  .sidebar-inst { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 0.95rem; }
  .sidebar-meta { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; color: var(--text-light); margin-bottom: 1rem; }
  .meta-icon { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }
  .btn-contact { display: inline-block; padding: 8px 20px; background: linear-gradient(180deg, var(--accent), var(--accent-hover)); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 1.25rem; transition: transform 0.2s, filter 0.2s; box-shadow: 0 8px 18px rgba(0,87,184,0.22); }
  .btn-contact:hover { transform: translateY(-1px); filter: brightness(1.04); }
  .btn-contact:hover { text-decoration: none; color: #fff; }
  .btn-icon { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }
  .btn-contact .btn-icon { margin-right: 6px; vertical-align: -2px; }
  .sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
  .social-links { display: flex; flex-direction: column; gap: 4px; text-align: left; max-height: 360px; overflow: auto; padding-right: 2px; }
  .social-link { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-muted); text-decoration: none; padding: 6px 9px; border-radius: 10px; transition: color 0.2s, background 0.2s, transform 0.2s; }
  .social-link:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; transform: translateX(2px); }
  .social-icon { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
  .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1rem; }
  .stat-box { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 0.75rem 0.5rem; font-size: 11.5px; color: var(--text-muted); text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
  .stat-box .stat-num { display: block; font-size: 20px; font-weight: 600; color: var(--accent); line-height: 1.2; }
  .ids-block { margin-top: 0.5rem; text-align: left; font-size: 12px; color: var(--text-muted); }
  .ids-block a { color: var(--accent); font-weight: 500; font-family: monospace; }
  .ids-block .id-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
  .ids-block .id-row:last-child { border-bottom: none; }
  .main-content { min-width: 0; }
  .section { margin-bottom: 2.75rem; }
  .js .section { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .section.visible { opacity: 1; transform: translateY(0); }
  .main-content > .section {
    background: linear-gradient(180deg, var(--surface), var(--bg-section));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.55rem 1.55rem 1.45rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }
  .main-content > .section::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
  }
  .section-title {
    font-size: clamp(18px, 1rem + 0.35vw, 20px);
    font-weight: 650;
    color: var(--text);
    margin-bottom: 1.1rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .about-text p { margin-bottom: 1rem; color: var(--text); font-size: 15px; max-width: 72ch; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.9rem; }
  .tag { background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(0,87,184,0.16); }
  [data-theme="dark"] .tag { background: rgba(77,159,255,0.12); border-color: rgba(77,159,255,0.25); }

  /* PUBLICATIONS TABLE */
  .pub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
  .pub-filter-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; color: var(--text-muted); cursor: pointer; transition: all 0.2s; font-family: inherit; }
  .pub-filter-btn.active, .pub-filter-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 18px rgba(0,87,184,0.18); }
  .pub-list { list-style: none; }
  .pub-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .pub-item:last-child { border-bottom: none; }
  .pub-item.hidden { display: none; }
  .pub-title { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.45; max-width: 72ch; text-wrap: balance; }
  .pub-title a { color: var(--text); }
  .pub-title a:hover { color: var(--accent); }
  .pub-meta { font-size: 13px; color: var(--text-muted); line-height: 1.55; max-width: 72ch; }
  .pub-meta em { font-style: italic; }
  .pub-badges { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
  .pub-year { display: inline-block; font-size: 11px; font-weight: 700; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; color: var(--text-light); font-family: monospace; }
  .pub-type { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
  .type-journal { background: #e6f0ff; color: #0057b8; }
  .type-conf { background: #e6f9f0; color: #0a7a5c; }
  .type-intl { background: #fff0e0; color: #b05a00; }
  [data-theme="dark"] .type-journal { background: #0d2a4d; color: #7ab8ff; }
  [data-theme="dark"] .type-conf { background: #0d2e24; color: #5fd9b6; }
  [data-theme="dark"] .type-intl { background: #331a00; color: #ffaa5e; }

  /* MEMBERS SECTION */
  .group-description { 
    background: var(--bg); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 1.2rem; 
    margin-bottom: 1.8rem;
  }
  .group-description h3 {
    font-size: 16px;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 0.6rem;
  }
  .group-description p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .members-category {
    margin-bottom: 2rem;
  }
  .category-title {
    font-size: 15px;
    font-weight: 650;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .member-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
  }
  .member-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .member-name {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 0.35rem;
  }

  .member-title {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .member-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
  }

  .member-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .member-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .member-link {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(0, 87, 184, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    transition: all 0.2s;
  }
  .member-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .members-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .member-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    transition: all 0.2s;
  }
  .member-item:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .member-item .member-name {
    font-size: 14px;
    margin-bottom: 0.3rem;
  }

  .member-item .member-title {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
  }

  /* CONTACT BUTTON */
  .btn-contact {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.2);
  }
  .btn-contact:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(0, 87, 184, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
  }

  /* SERVICES */
  .services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .service-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem; transition: border-color 0.2s, transform 0.2s; box-shadow: var(--shadow-sm); }
  .service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .service-card-title { font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
  .service-list { list-style: none; }
  .service-list li { font-size: 13.5px; color: var(--text-muted); padding: 4px 0 4px 12px; position: relative; max-width: 36ch; }
  .service-list li::before { content: "–"; position: absolute; left: 0; color: var(--text-light); }

  /* AWARDS */
  .awards-list { list-style: none; }
  .award-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
  .award-item:last-child { border-bottom: none; }
  .award-year { font-size: 12px; color: var(--text-light); font-weight: 600; min-width: 44px; margin-top: 2px; font-family: monospace; }
  .award-name { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
  .award-org { font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; max-width: 48ch; }
  .trophy-icon { font-size: 17px; margin-top: 2px; }

  footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-sidebar), var(--bg)); padding: 1.5rem 2rem; text-align: center; font-size: 12.5px; color: var(--text-light); transition: background 0.3s; }
  footer a { color: var(--text-light); }
  footer a:hover { color: var(--accent); }
  .footer-links { display: flex; justify-content: center; gap: 1rem; margin-top: 0.6rem; flex-wrap: wrap; }

  /* ORCID badge */
  .orcid-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: #a6ce39; color: #fff; border-radius: 4px; padding: 2px 6px; font-weight: 600; text-decoration: none; margin-top: 4px; }
  .orcid-icon { width: 12px; height: 12px; flex: 0 0 12px; fill: currentColor; }
  .orcid-badge:hover { background: #8ab530; text-decoration: none; color: #fff; }

  .award-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    fill: currentColor;
    color: var(--accent);
  }

  @media (max-width: 768px) {
    nav { padding: 0 0.85rem; }
    .nav-brand { font-size: 14px; }
    .dark-toggle { margin-left: 8px; }
    .nav-links { display: none; }
    .page-wrapper { grid-template-columns: 1fr; padding: 1.1rem 0.85rem 1.75rem; gap: 1rem; }
    .sidebar { position: static; border-radius: 18px; padding: 1.45rem 1.1rem; }
    .sidebar::before { margin: -1.45rem -1.1rem 1rem; }
    .main-content > .section { border-radius: 18px; padding: 1.15rem 1rem 1rem; }
    .section-title { margin-bottom: 0.95rem; }
    .about-text p, .pub-title, .pub-meta { max-width: none; }
    .service-list li, .award-org { max-width: none; }
    .services-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .pub-filter { gap: 6px; }
    .pub-filter-btn { padding: 6px 11px; }
    .social-links { max-height: none; }
    .footer-links { gap: 0.7rem; }
    
    /* Members responsive */
    .members-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .group-description { padding: 1rem; margin-bottom: 1.5rem; }
    .group-description h3 { font-size: 15px; margin-bottom: 0.5rem; }
    .group-description p { font-size: 13px; }
    .members-category { margin-bottom: 1.5rem; }
    .category-title { font-size: 14px; margin-bottom: 0.85rem; }
    .member-card { padding: 1rem; }
    .member-name { font-size: 14px; }
    .member-title { font-size: 12.5px; }
    .member-subtitle { font-size: 12px; }
    .member-links { gap: 6px; }
    .member-link { font-size: 11px; padding: 3px 8px; }
    .members-list { gap: 0.7rem; }
    .member-item { padding: 0.8rem 0.9rem; }
  }
