/* ================================================
   Glanceyes-style redesign (reference)
   Inter-based, CSS-variable-driven design system
   ================================================ */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* Variables */
:root {
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-mid: #52596b;
  --text-light: #8e96a8;
  --accent: #1d4ed8;
  --accent-light: #eff4ff;
  --border: #e5e8ef;
  --hero-bg: #0f1b2d;
  --radius: 8px;
  --career: #dcfce7;
  --paper: #dbeafe;
  --award: #fef3c7;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hero-bg);
  height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  transition: color 0.15s;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.08);
}

/* Home Hero */
.hero {
  position: relative;
  padding: 72px 28px 68px;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  filter: brightness(0.42) saturate(0.9);
}

.hero-bg--cover {
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 44px;
}

.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-text {
  flex: 1;
}

.hero-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-position {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-bio {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 18px;
}

.hero-bio a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.hero-bio a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.hero-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 11px;
  font-weight: 500;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 5px 14px;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.hero-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Page Hero (Research, Projects with featured image) */
.page-hero {
  position: relative;
  padding: 64px 28px 56px;
  overflow: hidden;
  background: var(--hero-bg);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.42) saturate(0.8);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.page-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

/* Simple page header (no featured image) */
.page-header-simple {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 28px 16px;
  border-bottom: 1px solid var(--border);
}

.page-header-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-header-subtitle {
  margin: 0.4rem 0 0;
  color: var(--text-mid);
  font-size: 15px;
}

/* Project Detail Hero (optional use in templates) */
.proj-hero {
  background: var(--hero-bg);
  padding: 44px 28px 40px;
}

.proj-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.proj-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.proj-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.proj-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.proj-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.proj-links-hero {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.proj-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.proj-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Main */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 52px 28px 80px;
}

.main--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 28px 80px;
}

.main--page {
  padding-top: 40px;
}

.main--project {
  max-width: 760px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.main a:not([class]),
.main--narrow a:not([class]) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  font-weight: 500;
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}

.main a:not([class]):hover,
.main--narrow a:not([class]):hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

/* Section titles */
.section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0px;
}

section {
  margin-bottom: 56px;
}

section:last-child {
  margin-bottom: 0;
}

/* Home index: sections inside container — flat, no card box */
.main .container > section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* News */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  font-size: 13.5px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--text-light);
  font-size: 12.5px;
  min-width: 80px;
  flex-shrink: 0;
  font-weight: 500;
}

.news-text,
.news-content {
  color: var(--text-mid);
  flex: 1;
  line-height: 1.6;
}

.news-text a,
.news-content a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}

.news-text a:hover,
.news-content a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.more-news-btn {
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.more-news-btn:hover {
  color: #1e40af;
}

.more-news-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-style: normal;
  line-height: 1;
}

.more-news-btn.open .more-news-arrow {
  transform: rotate(90deg);
}

.more-news-body {
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.more-news-body.open {
  max-height: 400px;
  opacity: 1;
}

.news-tag {
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 2px;
}

.news-tag.paper {
  background: var(--paper);
  color: #1d4ed8;
}

.news-tag.award {
  background: var(--award);
  color: #92400e;
}

.news-tag.career {
  background: var(--career);
  color: #166534;
}

/* Publications */
.pub-legend {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
  font-style: italic;
}

.pub-legend-full {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pub-legend-full span {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 10px;
}

.pub-list {
  display: flex;
  flex-direction: column;
}

.pub-entry {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  scroll-margin-top: 80px;
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.pub-entry:last-child {
  border-bottom: none;
}

.pub-entry:target {
  border-radius: 8px;
  padding: 16px 14px;
  margin: 0 -14px;
  animation: highlight-fade 2.5s ease-out forwards;
}

.project-card:target {
  animation: highlight-fade 2.5s ease-out forwards;
}

@keyframes highlight-fade {
  0% {
    background: #eff6ff;
  }
  60% {
    background: #eff6ff;
  }
  100% {
    background: transparent;
  }
}

.pub-index {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.02em;
  min-width: 34px;
  text-align: center;
}

.pub-thumb {
  width: 108px;
  height: 76px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
}

.pub-body {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 5px;
}

.pub-title a {
  color: var(--text);
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pub-note {
  font-size: 12px;
  color: #b45309;
  margin-bottom: 5px;
  font-weight: 500;
}

.pub-note a,
.main .pub-note a {
  color: inherit;
  text-decoration: none;
}

.pub-note a:hover,
.main .pub-note a:hover {
  text-decoration: none;
}

.pub-authors {
  font-size: 12.5px;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.5;
}

.pub-authors strong {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.pub-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.venue-badge {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 8px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
}

.venue-badge.conf {
  background: var(--accent-light);
  color: var(--accent);
}

.venue-badge.conf:hover {
  background: #dbeafe;
}

.venue-badge.workshop {
  background: #f0fdf4;
  color: #15803d;
}

.venue-badge.workshop:hover {
  background: #dcfce7;
}

.venue-badge.preprint {
  background: #f3f4f6;
  color: #6b7280;
}

.pub-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pub-link {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 9px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.pub-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-all {
  display: inline-block;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-all:hover {
  background: #dbeafe;
}

/* Work Experience */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-entry {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.exp-entry:last-child {
  border-bottom: none;
}

.exp-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px;
}

.exp-body {
  flex: 1;
}

.exp-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.exp-role {
  font-size: 13.5px;
  color: var(--text-mid);
  margin-bottom: 2px;
}

.exp-meta {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.exp-bullets {
  list-style: none;
}

.exp-bullets a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.exp-bullets a:hover {
  text-decoration-color: var(--text-mid);
}

.exp-bullets li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 2px 0 2px 14px;
  position: relative;
}

.exp-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* Projects grid */
.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0;
}

.section-header-row .section-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
  flex: 1;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0 16px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--surface);
}

.project-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 12px rgba(29, 78, 216, 0.07);
}

.project-card.has-thumb {
  padding: 20px 24px;
}

.project-card-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.project-thumb {
  width: 108px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.project-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project-org {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.project-subtitle {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 10px;
  font-style: italic;
}

.project-bullets {
  list-style: none;
  margin-bottom: 12px;
}

.project-bullets li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 2px 0 2px 16px;
  position: relative;
  line-height: 1.55;
}

.project-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-light);
}

.project-bullets a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.project-bullets a:hover {
  text-decoration-color: var(--text-mid);
}

.project-keywords {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.project-keywords span {
  font-weight: 500;
  color: var(--text-mid);
}

.project-meta-row,
.project-meta {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-meta-dot {
  color: var(--text-light);
}

.project-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.project-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 12px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Education */
.edu-list {
  display: flex;
  flex-direction: column;
}

.edu-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.edu-entry:last-child {
  border-bottom: none;
}

.edu-school {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.edu-school a,
.main .edu-school a {
  color: inherit;
  text-decoration: none;
}

.edu-degree {
  font-size: 13.5px;
  color: var(--text-mid);
  margin-bottom: 3px;
}

.edu-degree a,
.main .edu-degree a {
  color: inherit;
  text-decoration: none;
}

.edu-meta {
  font-size: 12.5px;
  color: var(--text-light);
}

.edu-detail {
  font-size: 12.5px;
  color: var(--text-light);
}

.edu-detail a,
.main .edu-detail a {
  color: var(--text-mid);
  text-decoration: none;
}

/* Honors */
.honor-list {
  display: flex;
  flex-direction: column;
}

.honor-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.honor-entry:last-child {
  border-bottom: none;
}

.honor-body {
  flex: 1;
}

.honor-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.honor-title a,
.main .honor-title a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.honor-title a:hover,
.main .honor-title a:hover {
  text-decoration: none;
}

.honor-sub {
  font-size: 12.5px;
  color: var(--text-mid);
  margin-top: 2px;
}

.honor-sub a,
.main .honor-sub a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.honor-sub a:hover,
.main .honor-sub a:hover {
  text-decoration-color: var(--text-mid);
}

.honor-date {
  font-size: 12.5px;
  color: var(--text-light);
  flex-shrink: 0;
  font-weight: 500;
}

/* Project / post detail typography */
.main--narrow h2,
.main--project .project-page-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.main--narrow h3,
.main--project .project-page-body h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}

.main--narrow h4,
.main--project .project-page-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin: 20px 0 8px;
}

.main--narrow p,
.main--project .project-page-body p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.main--narrow img,
.main--project .project-page-body img {
  border-radius: 8px;
  margin: 16px 0;
}

.main--narrow ul,
.main--narrow ol,
.main--project .project-page-body ul,
.main--project .project-page-body ol {
  color: var(--text-mid);
  padding-left: 20px;
  margin-bottom: 16px;
}

.main--narrow li,
.main--project .project-page-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.main--narrow table,
.main--project .project-page-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
}

.main--narrow th,
.main--project .project-page-body th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.main--narrow td,
.main--project .project-page-body td {
  color: var(--text-mid);
  padding: 9px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.main--narrow a,
.main--project .project-page-body a {
  color: var(--accent);
}

.project-page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.project-page-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.project-page-meta,
.project-page-summary {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.post-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.post-meta {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.archive-header {
  margin-bottom: 1.5rem;
}

.archive-title {
  margin: 0;
  font-size: 1.75rem;
}

.archive-description {
  margin: 0.5rem 0 0;
  color: var(--text-mid);
}

.pub-kw {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-style: italic;
}

.pub-kw a {
  color: var(--text-mid);
}

.project-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-tags span {
  font-size: 11.5px;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 9px;
  font-weight: 500;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.exp-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.exp-title a {
  color: inherit;
  text-decoration: none;
}

.exp-title a:hover {
  text-decoration: underline;
}

.exp-sub {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: var(--hero-bg);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 12.5px;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: 48px 20px 52px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .hero-text {
    width: 100%;
    text-align: left;
  }

  .hero-photo {
    width: 96px;
    height: 96px;
  }

  .hero-name {
    font-size: 21px;
  }

  .hero-position {
    margin-bottom: 10px;
  }

  .hero-bio {
    max-width: 100%;
  }

  .hero-links {
    justify-content: flex-start;
  }

  .main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .page-header-simple {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-item {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .pub-entry {
    flex-direction: column;
  }

  .pub-thumb {
    width: 100%;
    max-width: 200px;
    height: auto;
    min-height: 76px;
  }

  .honor-entry {
    flex-direction: column;
  }
}
