@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
}

.content-card p,
.content-card li,
.page-content-card p,
.page-content-card li,
.profile-role,
.profile-affiliation {
  font-weight: 400;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--muted-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-size: 1.35rem;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #167f82;
  outline-offset: 3px;
  border-radius: 4px;
}

.pub-chip,
.pub-year-toggle,
.research-card-toggle,
.quick-nav-links a,
.profile-icons a {
  min-height: 44px;
}

.pub-year-toggle[aria-expanded="true"]::after,
.research-card-toggle[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 820px) {
  .top-nav-inner {
    min-height: 68px;
    height: auto;
    padding: 12px 18px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-brand {
    max-width: calc(100% - 60px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a[aria-current="page"] {
    background: #eef5f5;
    font-weight: 600;
  }

  .page-header h1 {
    font-size: 2.35rem;
  }

  .page-content-card {
    padding: 24px 22px;
  }

  .pub-filter-panel {
    padding: 18px;
  }

  .pub-chip-row {
    gap: 8px;
  }

  .pub-chip {
    padding: 9px 14px;
  }

  .pub-year-toggle {
    padding: 16px 50px 16px 18px;
    font-size: 1.3rem;
  }

  .publication-entry {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  html,
  body {
    font-size: 15px;
  }

  .site-shell {
    padding: 20px 12px 30px;
  }

  .profile-card,
  .content-card,
  .page-content-card {
    padding: 18px;
  }

  .breadcrumb {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .quick-nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .quick-nav-links a {
    width: 100%;
    box-sizing: border-box;
  }

  .publication-entry,
  .research-card,
  .tool-card {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}