/* ===== Xia Lab — The University of Texas at Austin ===== */

:root {
  --ut-orange: #bf5700;
  --ut-orange-dark: #a54800;
  --ut-charcoal: #333f48;
  --ut-slate: #5c6670;
  --ut-gray: #d8dadc;
  --ut-surface: #f6f7f7;
  --ut-line: #e4e6e7;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ut-charcoal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: #111;
  background: #e7eaeb;
  box-shadow: 0 0 0 2px #e7eaeb;   /* widens the highlight without shifting layout */
  text-decoration-thickness: 2px;
}

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

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

/* -- White identity band: lab wordmark + institution -- */
.ut-brand {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.ut-brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--ut-charcoal);
  text-decoration: none;
}

.ut-brand-link:hover {
  color: var(--ut-charcoal);
  text-decoration: none;
  background: none;
  box-shadow: none;
}

.ut-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

/* Lab name leads; the institution sits secondary */
.ut-brand-unit {
  font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ut-slate);
}

.ut-brand-name {
  font-weight: 700;
  color: var(--ut-charcoal);
}

.ut-brand-sep {
  color: var(--ut-gray);
  padding: 0 4px;
}

/* strapline sits above the lab name, carrying the old hero treatment */
.ut-brand-tagline {
  margin-bottom: 11px;
  font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ut-charcoal);
}

/* -- Burnt orange navigation band -- */
.ut-navbar {
  background: var(--ut-orange);
  border-bottom: 4px solid var(--ut-orange-dark);
}

.ut-navbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: -18px;   /* first link's text lines up with the content column */
}

.site-nav a {
  display: inline-block;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--ut-orange-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}

.site-nav a.active {
  background: var(--ut-orange-dark);
  color: #fff;
  font-weight: 700;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== Hero / Page Banner ===== */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--ut-line);
  padding: 56px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--ut-charcoal);
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--ut-slate);
  font-weight: 400;
}

/* Kept for screen readers / SEO when a page title is not shown visually */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Home page research imagery */
.hero-media {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.hero-media img {
  display: block;
  width: 100%;
  border: 1px solid var(--ut-line);
  border-radius: 6px;
}

.hero-media-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ut-slate);
  text-align: center;
}

/* Page title: sits in the content column, no separate banner band */
.page-banner {
  background: #fff;
  padding: 34px 0 0;
}

.page-banner-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-banner h1 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  color: var(--ut-charcoal);
  margin-bottom: 4px;
}

/* the title already provides the top spacing */
.page-banner + .content-narrow,
.page-banner + .content {
  padding-top: 22px;
}

.page-banner .breadcrumb-text {
  font-size: 14px;
  color: var(--ut-slate);
}

/* ===== Main Content Container ===== */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.content-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ===== Section Headings ===== */
.section-title {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ut-charcoal);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ut-charcoal);
  display: inline-block;
}

/* breathing room when one section follows another */
.news-link + .section-title,
.project-list + .section-title,
.news-list + .section-title {
  margin-top: 44px;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--ut-charcoal);
  margin-top: 32px;
  margin-bottom: 16px;
}

/* ===== Home Page ===== */
.home-intro {
  font-size: 17px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Affiliations in the opening statement: primary ones in burnt orange,
   no default underline — it appears on hover */
.home-intro a {
  color: var(--ut-orange);
  font-weight: 600;
  text-decoration: none;
}

.home-intro a:hover {
  color: var(--ut-orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  box-shadow: none;
}

.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 16px;
  color: #444;
  border-left: 3px solid var(--ut-gray);
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.project-list li:hover {
  border-left-color: var(--ut-orange);
}

/* ===== Publications ===== */
.pub-legend {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--ut-surface);
  border-radius: 8px;
  border: 1px solid var(--ut-line);
}

.pub-legend a {
  font-weight: 600;
}

.pub-year {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ut-charcoal);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ut-line);
}

.pub-list {
  list-style: none;
  counter-reset: none;
  padding: 0;
}

.pub-item {
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid #f0f1f1;
  transition: background 0.15s ease;
}

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

.pub-item:hover {
  background: var(--ut-surface);
}

.pub-number {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--ut-charcoal);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  margin-left: -38px;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: top;
}

.pub-title {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  line-height: 1.5;
}

.pub-authors {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  line-height: 1.6;
}

.member {
  font-weight: 700;
  text-decoration: underline;
}

.pub-authors sup {
  font-size: 10px;
}

.pub-journal {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: #222;
  margin-top: 4px;
}

.pub-doi,
.pub-code,
.pub-web {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: var(--ut-charcoal);
  background: #fff;
  border: 1px solid var(--ut-gray);
  padding: 0 8px;
  border-radius: 3px;
  margin-left: 8px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  vertical-align: middle;
}

.pub-code {
  padding: 0 7px;
  line-height: 1;
}

.pub-code svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  vertical-align: -3px;
}

.pub-doi:hover,
.pub-code:hover,
.pub-web:hover {
  color: var(--ut-orange);
  border-color: var(--ut-orange);
  background: #fff;
  box-shadow: none;
  text-decoration: none;
}

/* Press coverage under a publication */
.pub-press {
  font-size: 13px;
  font-weight: 600;
  color: var(--ut-gray);
  margin-top: 6px;
}

.pub-press a {
  color: var(--ut-orange);
  text-decoration: none;
}

.pub-press a:hover {
  color: var(--ut-orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  box-shadow: none;
}

/* Publication highlight (e.g. NIH research spotlight) */
.pub-item-highlight {
  background: var(--ut-surface);
  border: 1px solid var(--ut-line);
  border-left: 4px solid var(--ut-charcoal);
  border-radius: 8px;
  padding: 18px 20px 18px 58px;
  margin-left: -24px;
  margin-bottom: 4px;
}

.pub-item-highlight:hover {
  background: #eff1f1;
}

/* ===== People ===== */
.people-quote {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  color: var(--ut-slate);
  border-left: 3px solid var(--ut-gray);
  padding-left: 16px;
  margin-bottom: 40px;
  font-size: 17px;
}

.people-section-title {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ut-charcoal);
  margin-top: 40px;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ut-line);
}

.person-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f1f1;
  align-items: flex-start;
}

.person-card:last-child {
  border-bottom: none;
}

.person-photo {
  width: 110px;
  height: 135px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--ut-surface);
}

.person-info {
  flex: 1;
}

.person-name {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.person-role {
  font-size: 14px;
  color: var(--ut-charcoal);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Alumni page: past positions read as plain text, not active-member accents */
.page-alumni .person-role {
  color: #222;
}

.person-honor {
  font-size: 14px;
  font-weight: 600;
  color: var(--ut-charcoal);
  margin-bottom: 6px;
}

.person-role a {
  color: inherit;
  text-decoration: none;
}

.person-role a:hover {
  color: var(--ut-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  box-shadow: none;
}

.person-education {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Affiliation links match the opening statement on the home page */
.person-education a {
  color: var(--ut-orange);
  font-weight: 600;
  text-decoration: none;
}

.person-education a:hover {
  color: var(--ut-orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  box-shadow: none;
}

.person-subsequent {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

/* Link to a related page (e.g. People -> Alumni) */
.page-link {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
}

/* Alumni without photo */
.alumni-text {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f1;
}

.alumni-text .person-name {
  display: inline;
}

.alumni-text .person-education {
  display: inline;
}

/* ===== Software / Tools ===== */
.tool-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--ut-line);
}

.tool-card:last-child {
  border-bottom: none;
}

.tool-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-name a {
  color: var(--ut-charcoal);
  text-decoration: none;
}

.tool-name a:hover {
  color: var(--ut-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  box-shadow: none;
}

.tool-description {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tool-image {
  max-width: 500px;
  border-radius: 8px;
  margin-top: 8px;
}

.tool-image-wide {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}

/* ===== Join Us ===== */
.position-date {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ut-charcoal);
  margin-bottom: 16px;
}

.requirements-list {
  list-style: none;
  padding: 0;
}

.requirements-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 15px;
  color: #444;
}

.requirements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--ut-charcoal);
  border-radius: 2px;
}

.position-info {
  margin-top: 20px;
  font-size: 15px;
  color: #555;
}

.building-image {
  max-width: 600px;
  border-radius: 8px;
  margin-top: 24px;
}

.building-caption {
  font-size: 14px;
  font-style: italic;
  color: var(--ut-slate);
  margin-top: 8px;
}

/* ===== Contact ===== */
.contact-info {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}

.contact-info strong {
  color: var(--ut-charcoal);
}

/* Email in UT burnt orange, the one accent left in body copy */
.email-link {
  color: var(--ut-orange);
  font-weight: 600;
}

.contact-image {
  max-width: 600px;
  border-radius: 8px;
  margin-top: 24px;
}

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

.news-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f1;
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

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

.news-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ut-charcoal);
  min-width: 80px;
  margin-right: 8px;
}

/* Inline references in news items: quiet until hovered, then burnt orange */
.news-item a {
  color: var(--ut-charcoal);
  font-weight: 700;
  text-decoration: none;
}

.news-item a:hover {
  color: var(--ut-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  box-shadow: none;
}

.ut-name {
  color: var(--ut-orange);
}

.news-sep {
  color: var(--ut-gray);
  padding: 0 2px;
}

.news-link {
  margin-top: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ut-charcoal);
  color: #fff;
  margin-top: 56px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-unit {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 22px;
  color: #fff;
}

.footer-university {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 15px;
  color: #c9ced1;
  margin-top: 2px;
}

.footer-address {
  font-size: 13px;
  color: #b9c1c7;
  margin-top: 8px;
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: #c9ced1;
  text-decoration: underline;
  background: none;
  box-shadow: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: #a8b1b8;
}

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

  .ut-navbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

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

  .site-nav a {
    padding: 12px 0;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .ut-brand-tagline {
    font-size: 21px;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: transparent;
    text-decoration: underline;
  }

  .site-header {
    position: static;
  }

  .ut-brand {
    padding: 14px 20px 12px;
  }

  .ut-brand-unit {
    font-size: 17px;
  }


  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .page-banner {
    padding: 24px 0 0;
  }

  .page-banner-inner {
    padding: 0 20px;
  }

  .page-banner h1 {
    font-size: 22px;
  }

  .page-banner + .content-narrow,
  .page-banner + .content {
    padding-top: 16px;
  }

  .content,
  .content-narrow {
    padding: 32px 16px;
  }

  .person-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .person-photo {
    width: 100px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 21px;
  }

  .ut-brand-unit {
    font-size: 16px;
  }
}
