/* Content-level styling for this personal site; no theme runtime overrides. */
:root {
  --global-theme-color: #245b91;
}
.academic-kicker {
  color: var(--global-theme-color);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 650;
  margin-bottom: 1rem;
}
.post .profile {
  width: 170px;
  max-width: 28%;
  margin-left: 2rem;
}
.post .profile img {
  width: 100%;
}
.academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 1.5rem 0 2.5rem;
}
.academic-links a {
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  padding-bottom: 0.25rem;
  font-size: 0.9rem;
}
.post h2 {
  margin-top: 2.6rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}
.education-list {
  clear: both;
}
.education-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--global-divider-color, #ddd);
}
.education-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
}
.period {
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.education-detail {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.research-card {
  border: 1px solid var(--global-divider-color, #ddd);
  border-top: 3px solid var(--global-theme-color);
  border-radius: 5px;
  padding: 1.2rem;
}
.research-index {
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.research-card h3 {
  font-size: 1.15rem;
  margin: 0.7rem 0;
}
.research-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}
.publication-empty {
  border-left: 3px solid var(--global-theme-color);
  padding: 0.9rem 1.2rem;
  background: color-mix(in srgb, var(--global-theme-color) 5%, transparent);
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .post .profile {
    width: 100px;
    max-width: 26%;
    float: right;
    margin: 0 0 1rem 1rem;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .education-heading {
    flex-direction: column;
    gap: 0.15rem;
  }
  .post table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Match the theme's actual content structure; keep each academic section distinct. */
.post {
  --global-theme-color: #245b91;
}
.post .post-header {
  margin-bottom: 1.8rem;
}
.post h1 {
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.post h2 {
  clear: both;
  margin-top: 3.2rem;
  margin-bottom: 1.35rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--global-divider-color, #e2e7ed);
  font-size: 1.65rem;
  font-weight: 550;
  line-height: 1.3;
}
.post h3 {
  line-height: 1.4;
}
.post p {
  line-height: 1.8;
}
.post > article {
  overflow: visible;
}
.academic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 2.4rem;
  align-items: start;
  margin: 0.6rem 0 2.4rem;
}
.academic-hero-copy {
  min-width: 0;
}
.academic-portrait {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--global-theme-color) 7%, transparent);
  margin-top: 0.4rem;
}
.academic-hero .academic-links {
  margin-bottom: 0;
}
.academic-links a {
  font-weight: 550;
}
.education-item {
  padding: 1.15rem 0;
}
.education-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.education-heading strong {
  font-size: 1.06rem;
}
.education-detail {
  line-height: 1.6;
}
.research-card {
  box-shadow: none;
  border-radius: 8px;
  padding: 1.35rem;
  background: color-mix(in srgb, var(--global-theme-color) 2%, transparent);
}
.research-card h3 {
  margin-top: 0.7rem;
  font-weight: 600;
}
.post table {
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.65;
}
.post th {
  text-align: left;
  font-weight: 600;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--global-theme-color) 6%, transparent);
}
.post td {
  padding: 0.9rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--global-divider-color, #e2e7ed);
}
.post ul {
  padding-left: 1.25rem;
}
.post li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
}
.post .projects .card {
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid var(--global-divider-color, #e2e7ed);
  height: 100%;
}
.post .projects .card-title {
  font-weight: 550;
}
.post .projects .card:hover {
  border-color: var(--global-theme-color);
}
@media (max-width: 640px) {
  .academic-hero {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 1rem;
  }
  .academic-portrait {
    width: 84px;
    height: 84px;
  }
  .academic-hero .academic-kicker {
    font-size: 0.65rem;
    line-height: 1.6;
  }
  .post h2 {
    margin-top: 2.5rem;
    padding-top: 1.1rem;
    font-size: 1.45rem;
  }
  .post h1 {
    font-size: 2rem;
  }
  .post .table-responsive {
    overflow-x: visible;
  }
  .post table {
    display: block;
    overflow-x: auto;
  }
  .academic-links {
    gap: 0.7rem 1rem;
  }
}
@media (max-width: 420px) {
  .academic-hero {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.4rem;
  }
  .academic-portrait {
    width: 88px;
    height: 88px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .post .projects .card {
    transition: border-color 0.18s ease;
  }
}

.career-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--global-divider-color, #e2e7ed);
}
.career-item:last-child {
  border-bottom: 0;
}
.career-item p {
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
}
