/* ============================================================
   publications.css
   Page-specific styles for the /publications/ index page.

   REQUIRES theme.css to be loaded FIRST.
   ============================================================ */

/* ── Hero (matching people-index gradient hero) ──────────── */
.hero { position: relative; padding: 160px 0 80px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
}
.hero .container { position: relative; z-index: 2; }
.hero-label {
  font-family: var(--font-display); font-weight: 800;
  font-size: 12px; letter-spacing: 1.71px; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 48px; line-height: 52px; color: #fff;
  letter-spacing: -.02em; max-width: 700px;
  margin-bottom: 18px;
}
.hero p {
  font-family: var(--font-display); font-weight: 300;
  font-size: 21px; line-height: 28px;
  color: rgba(255,255,255,.6);
  max-width: 620px;
}
@media (max-width: 991px) {
  .hero { padding: 140px 0 60px; }
  .hero h1 { font-size: 36px; line-height: 42px; }
  .hero p { font-size: 18px; line-height: 26px; }
}

/* ── Layout (sticky year nav + content) ──────────────────── */
.pubs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  min-height: 60vh;
}
@media (max-width: 991px) { .pubs-layout { grid-template-columns: 1fr; } }

/* ── Year nav (matches press) ────────────────────────────── */
.year-nav {
  position: sticky;
  top: 92px;
  height: calc(100vh - 92px);
  padding: 40px 0 40px 40px;
  overflow-y: auto;
  border-right: 1px solid var(--color-neutral-30);
  scrollbar-width: none;
}
.year-nav::-webkit-scrollbar { display: none; }
.year-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--color-neutral-60);
  padding: 8px 20px 8px 0;
  transition: all .25s;
  border-right: 2px solid transparent;
  margin-right: -1px;
}
.year-nav a:hover { color: var(--color-neutral-100); }
.year-nav a.active {
  color: var(--color-accent);
  font-weight: 700;
  border-right-color: var(--color-accent);
}
.year-nav a .yr-count {
  font-weight: 400; font-size: 12px; color: var(--color-neutral-60);
  margin-left: 8px;
}
.year-nav a.active .yr-count { color: var(--color-accent-light); }
@media (max-width: 991px) {
  .year-nav {
    position: sticky;
    top: 92px;
    height: auto;
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid var(--color-neutral-30);
    display: flex; gap: 6px;
    overflow-x: auto;
    z-index: 30;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
  }
  .year-nav a {
    white-space: nowrap;
    padding: 6px 14px;
    border-right: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    flex-shrink: 0;
  }
  .year-nav a.active { border-bottom-color: var(--color-accent); border-right-color: transparent; }
}

/* ── Publications content ────────────────────────────────── */
.pubs-content { padding: 40px 0 80px 48px; }
@media (max-width: 991px) { .pubs-content { padding: 32px 20px 60px; } }

.year-section { margin-bottom: 72px; scroll-margin-top: 120px; }
.year-section:last-child { margin-bottom: 20px; }
.year-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 1;
  color: var(--color-neutral-100);
  margin-bottom: 28px;
  letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 14px;
}
.year-title .yr-count {
  font-family: var(--font-display); font-weight: 400; font-size: 16px;
  color: var(--color-neutral-60); letter-spacing: 0;
}
@media (max-width: 767px) { .year-title { font-size: 32px; } }

/* ── Publication items ───────────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 0; }

.pub-item {
  padding: 24px 0;
  border-top: 1px solid var(--color-neutral-30);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.pub-item:last-child { border-bottom: 1px solid var(--color-neutral-30); }
.pub-item .pub-body { min-width: 0; }
.pub-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; line-height: 1.35;
  color: var(--color-neutral-100);
  margin-bottom: 8px;
}
.pub-citation {
  font-family: var(--font-text); font-size: 14px; line-height: 22px;
  color: var(--color-neutral-70);
  margin-bottom: 10px;
}
.pub-award {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(97,0,255,.08);
  padding: 4px 10px; border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.pub-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.pub-link {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--color-accent);
  padding: 6px 12px;
  border: 1px solid var(--color-neutral-30);
  border-radius: var(--radius-sm);
  transition: all .25s;
}
.pub-link:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

@media (max-width: 767px) {
  .pub-item { grid-template-columns: 1fr; padding: 20px 0; }
  .pub-title { font-size: 17px; }
}