/* Modernized styles layered on top of Lanyon */

/* Typography and base */
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --text: #e5e7eb;
    --muted: #9aa4b2;
    --primary: #60a5fa;
    --surface: #0f172a;
    --border: #1f2937;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  }
}

html,
body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Header tweaks */
.masthead {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent);
}

.masthead-title a {
  color: var(--text);
}

.masthead small {
  color: var(--muted);
}

.masthead-nav-item {
  color: var(--muted);
}

.masthead-nav-item:hover {
  color: var(--primary);
}

/* Links */
a {
  color: var(--primary);
}

a:hover {
  opacity: .9;
}

/* Section separators */
.content hr,
.content .hr,
.content .section-sep {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* News & Highlights */
/* Minimal news list */
/* Align to About's left padding (2.5%) but span full width */
.about-align-full {
  margin-left: 2.5%;
  width: calc(100% - 2.5%);
}

@media (max-width: 900px) {
  .about-align-full {
    margin-left: 0;
    width: 100%;
  }
}

.news-minimal {
  list-style-type: disc !important;
  padding-left: 1.25rem;
  margin: 16px 0;
  font-size: 0.9rem;
}

.news-minimal li {
  display: list-item !important;
  margin: 6px 0;
  line-height: 1.4;
}

.news-date {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9em;
}

.news-text {
  font-weight: 400;
  color: var(--text);
}

/* Publications visuals */
.content h3 {
  margin-top: 26px;
}

.content ul {
  list-style: none;
  padding-left: 0;
}

.content li {
  margin-bottom: 10px;
}

/* Make images and tables inside publication entries look cleaner */
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

td {
  border: 0 !important;
}

/* Links row under avatar: keep as plain text links (no rounded boxes) */
p[style*="text-align:center"] a {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
}

p[style*="text-align:center"] a:hover {
  transform: none;
  border-color: transparent;
  text-decoration: underline;
}

/* Outreach slider nav buttons */
.slider-container .nav-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: var(--shadow);
}

/* Fine-tune images in pubs */
.responsive-image {
  filter: saturate(1.05);
}

/* Shrink publication entry titles */
.pubs strong {
  font-size: 0.95rem;
}
