/* ===== Variables ===== */
:root {
  --color-bg: #f8f7f4;
  --color-grid: rgba(90, 80, 70, 0.14);
  --dot-grid-bg: radial-gradient(circle, var(--color-grid) 1px, transparent 1px);
  --color-bg-alt: #f8f7f4;
  --color-surface: #f8f7f4;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a72;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e2e8f0;
  --color-highlight: #fef3c7;
  --color-new: #dc2626;
  --color-header-bg: rgba(248, 247, 244, 0.92);
  --color-tag-bg: #eff6ff;
  --color-card-media-bg: #f8f7f4;
  --color-map-bg: #f8f7f4;
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 900px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --color-bg: #0f1117;
  --color-grid: rgba(210, 220, 235, 0.08);
  --color-bg-alt: #0f1117;
  --color-surface: #0f1117;
  --color-text: #e8eaf0;
  --color-text-muted: #9aa3b5;
  --color-accent: #60a5fa;
  --color-accent-hover: #93c5fd;
  --color-border: #2d3548;
  --color-highlight: #3d3520;
  --color-new: #f87171;
  --color-header-bg: rgba(15, 17, 23, 0.92);
  --color-tag-bg: #1e3a5f;
  --color-card-media-bg: #0f1117;
  --color-map-bg: #0f1117;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: var(--dot-grid-bg);
  background-size: 24px 24px;
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

.site-header,
.theme-toggle,
.hero,
.hero-social-link,
.research-interests,
.section-alt,
.card,
.card-media,
img.card-thumb,
.site-footer,
.visitor-map {
  background-image: var(--dot-grid-bg);
  background-size: 24px 24px;
  background-position: 0 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Justified body text */
.prose p,
.card p,
.news-content,
.service-content,
.award-content p,
.timeline-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
}

.nav-logo {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 48px 0 40px;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-photo {
  width: 180px;
}

.hero-content {
  min-width: 0;
}

.hero-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avatar-placeholder {
  display: none;
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: var(--color-accent);
  font-size: 3rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.name-cn-paren {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92em;
  color: var(--color-text-muted);
}

.name-cn-text {
  font-family: KaiTi, "Kaiti SC", "STKaiti", "SimKai", "AR PL UKai CN", "楷体", serif;
  font-weight: normal;
  font-size: 0.98em;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.bio-contact {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: left !important;
}

.bio-contact a {
  font-style: italic;
}

.bio-highlight {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.95rem;
  text-align: left !important;
}

.bio-highlight strong {
  color: #c41e3a;
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-red {
  color: #c41e3a;
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-location::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.5 7-11a7 7 0 1 0-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.5 7-11a7 7 0 1 0-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-role,
.hero-location,
.hero-email {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-role-wrap {
  white-space: normal;
}

.hero-role-primary {
  color: var(--color-text);
  font-size: 0.88rem;
}

.hero-role-detail {
  font-size: 0.82rem;
}

.hero-role-detail a {
  color: var(--color-accent);
}

.hero-role-focus {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.hero-role-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.hero-role-muted {
  color: var(--color-text-muted);
}

.hero-role-muted.hero-role-primary {
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.hero-meta-divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

.hero-email a {
  color: var(--color-accent);
}

.hero-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 4px 0 0;
  width: 100%;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.hero-social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.hero-social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-social-icon--scholar {
  width: 20px;
  height: 20px;
}

.hero-social-link--scholar:hover {
  color: #4285f4;
  border-color: #4285f4;
}

.hero-bio {
  margin-top: 0;
}

.hero-bio p:first-child {
  margin-top: 0;
}

.hero-bio p {
  margin-bottom: 12px;
  color: var(--color-text);
}

.rep-project-list {
  margin: 0 0 12px;
  padding-left: 1.4em;
  list-style: disc;
  font-size: 0.95rem;
  color: var(--color-text);
}

.rep-project-list li {
  margin-bottom: 6px;
  padding-left: 0.25em;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}

.rep-project-list li:last-child {
  margin-bottom: 0;
}

.research-interests {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
}

/* ===== Sections ===== */
.section {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.section-subtitle {
  margin-top: -16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.publications-intro {
  max-width: 720px;
  margin: 0;
}

.publications-intro a {
  font-weight: 600;
}

.section-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ===== News ===== */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  width: 90px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.news-content {
  flex: 1;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-new);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

.news-new .news-content {
  background: var(--color-highlight);
  padding: 4px 8px;
  border-radius: 4px;
  margin: -4px -8px;
}

/* ===== Project Cards ===== */
.card-grid {
  display: grid;
  gap: 20px;
}

.card {
  display: grid;
  grid-template-columns: min(280px, 36%) minmax(0, 1fr);
  grid-template-areas: "media body";
  gap: 20px;
  align-items: start;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-media {
  grid-area: media;
  align-self: start;
  background-color: var(--color-card-media-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px;
  line-height: 0;
}

img.card-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 4px;
  background-color: var(--color-card-media-bg);
}

.card--stretch-media {
  align-items: stretch;
}

.card--stretch-media .card-media {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--stretch-media img.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.card-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-tag-bg);
  padding: 2px 10px;
  border-radius: 20px;
}

.card p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.card-links {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== Publications ===== */
.pub-group {
  margin-bottom: 32px;
}

.pub-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.pub-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-size: 0.98rem;
  margin-bottom: 4px;
  line-height: 1.5;
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.pub-authors-note {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.pub-authors-note-inline {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.author-me {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
}

.pub-venue {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.pub-award {
  margin-left: 8px;
  font-style: normal;
  font-weight: 600;
  color: #b45309;
}

.pub-links {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pub-links a {
  padding: 2px 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.pub-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-tag-bg);
}

/* ===== Page utilities ===== */
.page-back {
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.page-back a {
  color: var(--color-accent);
  font-weight: 500;
}

.page-back a:hover {
  text-decoration: underline;
}

.nav-links a.nav-current {
  color: var(--color-accent);
}

/* ===== Academic Service ===== */
.service-group {
  margin-bottom: 28px;
}

.service-group:last-child {
  margin-bottom: 0;
}

.service-category {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
}

.service-list {
  list-style: none;
}

.service-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item--full {
  display: block;
}

.service-item--full .service-content {
  line-height: 1.55;
}

.service-year {
  flex-shrink: 0;
  width: 110px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.service-content {
  flex: 1;
  font-size: 0.93rem;
}

/* ===== Awards ===== */
.awards-group + .awards-group {
  margin-top: 48px;
}

.awards-list {
  list-style: none;
}

.award-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.award-item:last-child {
  border-bottom: none;
}

.award-year {
  flex-shrink: 0;
  width: 56px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-tag-bg);
  padding: 4px 0;
  text-align: center;
  border-radius: 6px;
}

.award-content strong {
  font-size: 0.98rem;
  display: block;
  margin-bottom: 2px;
}

.award-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Timeline ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.timeline {
  list-style: none;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-meta {
  flex-shrink: 0;
  width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.timeline-date {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.4;
  text-align: center;
}

.timeline-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.timeline-logo--wide {
  width: 96px;
  height: 44px;
}

.timeline-content {
  flex: 1;
  font-size: 0.93rem;
}

.timeline-content p {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.footer-note {
  margin-top: 6px;
  font-size: 0.8rem;
}

.footer-stats {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.footer-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-stats-row:first-child {
  margin-top: 0;
}

.footer-stats-row strong {
  color: var(--color-text);
  font-weight: 600;
}

.footer-stats-sep {
  opacity: 0.45;
}

.footer-stats-countries {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

#stat-countries-list {
  margin-left: 4px;
}

.visitor-map-wrap {
  margin-top: 16px;
}

.visitor-map-title {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.visitor-map {
  width: min(100%, 720px);
  height: 260px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-map-bg);
}

.visitor-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.visitor-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visitor-map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.visitor-map-dot--region {
  background: rgba(37, 99, 235, 0.75);
  border: 1px solid #1d4ed8;
}

.visitor-map-dot--you {
  background: #dc2626;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px #dc2626;
}

.visitor-map .leaflet-control-attribution {
  font-size: 0.65rem;
}

.site-header,
.theme-toggle,
.hero,
.hero-social-link,
.research-interests,
.section-alt,
.card,
.card-media,
img.card-thumb,
.site-footer,
.visitor-map,
.nav-links {
  background-image: var(--dot-grid-bg);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-surface);
    background-image: var(--dot-grid-bg);
    background-size: 24px 24px;
    background-position: 0 0;
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    box-shadow: var(--shadow);
  }

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

  .nav-links li a {
    display: block;
    padding: 10px 24px;
  }

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

  .hero-sidebar {
    width: 100%;
    min-width: 0;
    max-width: 280px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    overflow: visible;
  }

  .hero-meta {
    align-items: center;
    width: 100%;
  }

  .hero-role,
  .hero-location,
  .hero-email {
    white-space: normal;
    text-align: center;
  }

  .hero-content {
    width: 100%;
    text-align: left;
  }

  .hero-content h1 {
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-links {
    justify-content: center;
    gap: 12px;
  }

  .research-interests {
    text-align: justify;
  }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  .news-date {
    width: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 4px;
  }

  .timeline-meta {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .timeline-date {
    width: auto;
    text-align: left;
  }

  .timeline-logo {
    width: 56px;
    height: 56px;
  }

  .timeline-logo--wide {
    width: 80px;
    height: 36px;
  }

  .service-item {
    flex-direction: column;
    gap: 4px;
  }

  .service-year {
    width: auto;
  }

  .award-item {
    flex-direction: column;
    gap: 8px;
  }

  .award-year {
    width: fit-content;
    padding: 4px 10px;
  }

  .visitor-map {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .card-media {
    max-width: 100%;
  }

  .card--stretch-media {
    align-items: start;
  }

  .card--stretch-media .card-media {
    align-self: start;
    display: block;
  }

  .card--stretch-media img.card-thumb {
    height: auto;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 36px 0;
  }
}
