* { box-sizing: border-box; }

:root {
  --bg: #f4f7fa;
  --paper: #ffffff;
  --ink: #17212b;
  --muted: #637180;
  --line: #dbe3ea;
  --accent: #174f7a;
  --accent-soft: #eaf3f9;
  --accent-faint: #f5f9fc;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
}

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-name {
  display: block;
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.1;
}

.tagline {
  margin-top: 7px;
  color: var(--muted);
  font-size: .97rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 24px;
}

.main-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--accent);
}

main {
  padding: 48px 0 68px;
}

.hero,
.page-hero {
  background: var(--accent-soft);
  border: 1px solid #d4e5f0;
  border-radius: 15px;
}

.hero {
  padding: 64px 66px;
  margin-bottom: 42px;
}

.page-hero {
  padding: 48px 52px;
  margin-bottom: 32px;
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .76rem;
  margin: 0 0 11px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.07;
  letter-spacing: -.025em;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.5rem);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.45rem);
}

.lead {
  max-width: 820px;
  margin: 19px 0 0;
  color: #425262;
  font-size: 1.11rem;
}

.section {
  margin: 42px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 18px;
}

.section h2,
.section-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.card-link {
  text-decoration: none;
}

.card {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px 27px;
  transition: transform .12s ease, border-color .12s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #aac8dc;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.placeholder {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 32px;
}

.placeholder h2 {
  margin-top: 0;
  color: var(--accent);
}

.placeholder p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-row {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: .9rem;
}

@media (max-width: 800px) {
  .site-header { position: static; }

  .header-row {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 5px 18px;
  }

  .hero { padding: 42px 28px; }
  .page-hero { padding: 36px 28px; }

  .grid { grid-template-columns: 1fr; }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-row {
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

.notice {
  margin: 0 0 34px;
  padding: 18px 22px;
  background: var(--accent-faint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: #425262;
}

.pub-year {
  margin: 42px 0;
}

.pub-year > h2 {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 1.55rem;
}

.pub-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 25px;
  margin: 12px 0;
}

.pub-item h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.pub-meta {
  margin: 0 0 5px;
  color: var(--muted);
}

.pub-item p:last-child {
  margin-bottom: 0;
}

.doi-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.doi-link:hover {
  text-decoration: underline;
}


.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 42px;
}

.year-nav a {
  display: inline-block;
  padding: 8px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.year-nav a:hover {
  border-color: #aac8dc;
  background: var(--accent-faint);
}

.pub-year {
  scroll-margin-top: 135px;
}

.pub-year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.pub-year-head h2 {
  margin: 0;
}

.back-top {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}

.related-publications {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 32px;
}

.related-publications ul {
  margin: 15px 0 0;
  padding-left: 22px;
}

.related-publications li {
  margin: 10px 0;
}

.related-publications a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.related-publications a:hover {
  text-decoration: underline;
}

.small-muted {
  color: var(--muted);
  font-size: .92em;
}


.archive-note {
  margin: -18px 0 30px;
  padding: 15px 19px;
  color: var(--muted);
  font-size: .94rem;
  background: transparent;
  border-left: 3px solid var(--line);
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.button-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button-secondary {
  background: var(--paper);
  color: var(--accent);
}

.pub-tools {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 14px;
  align-items: end;
  margin: 28px 0 38px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pub-tools label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.pub-tools input,
.pub-tools select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.filter-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .92rem;
}

.year-count {
  color: var(--muted);
  font-size: .7em;
  font-weight: 400;
}

.pub-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.pub-compact {
  position: relative;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.pub-compact:last-child {
  border-bottom: 0;
}

.pub-compact h3 {
  margin: 0 150px 6px 0;
  font-size: 1.02rem;
  line-height: 1.42;
}

.pub-compact .pub-meta {
  margin: 0 0 5px;
  font-size: .93rem;
}

.pub-link-row {
  margin: 0;
}

.pub-badges {
  position: absolute;
  top: 19px;
  right: 20px;
  display: flex;
  gap: 6px;
}

.badge {
  display: inline-block;
  min-width: 34px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
}

.badge-light {
  background: var(--accent-faint);
  color: var(--muted);
}

.no-doi {
  color: var(--muted);
  font-size: .9rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .pub-tools {
    grid-template-columns: 1fr 1fr;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .pub-compact h3 {
    margin-right: 0;
    padding-top: 34px;
  }

  .pub-badges {
    left: 20px;
    right: auto;
  }
}

@media (max-width: 520px) {
  .pub-tools {
    grid-template-columns: 1fr;
  }

  .search-box {
    grid-column: auto;
  }
}
