/* Uses the same variables from style.css. Adds page-specific styles. */
:root{
  /* fallbacks in case style.css variables are missing */
  --accent-100: #ede9fe;
  --accent-300: #c4b5fd;
  --accent-600: #7c3aed;
  --accent-700: #6d28d9;
  --surface: #fff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --text: #1f2937;
}

/* Page hero tweaks for Research */
.page-hero { padding: 44px 0 8px; }
.page-hero h1 { margin: 0 0 6px; }
.page-hero p  { margin: 0; color: var(--muted); font-weight: 500; }

/* Year divider */
.year-heading {
  margin: 26px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* Publication card */
.pub.card { padding: 18px; margin-bottom: 16px; }
.pub-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
}
.pub-title a { color: #0f172a; text-decoration: none; }
.pub-title a:hover { color: var(--accent-700); text-decoration: underline; }

.pub-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.98rem;
}
.pub-meta .dot { margin: 0 8px; opacity: .6; }

/* Badges (reuse site style, with slight spacing) */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 6px; }
.badge {
  display: inline-block;
  background: var(--accent-100);
  color: var(--accent-700);
  border: 1px solid var(--accent-300);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Abstract accordion */
.abstract { margin-top: 8px; }
.abstract > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-700);
  list-style: none;      /* remove default disclosure triangle on Safari */
}
.abstract > summary::-webkit-details-marker { display: none; } /* Chrome/Safari marker */
.abstract[open] > summary { color: var(--accent-600); }
.abstract p { margin: 8px 0 0; }

/* Links row */
.pub-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 12px;
}
.btn {
  display: inline-block;
  background: var(--accent-600);
  color: #fff;
  border: 1px solid var(--accent-600);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--accent-700); border-color: var(--accent-700); }

.btn.ghost {
  background: transparent;
  color: var(--accent-700);
  border-color: var(--accent-300);
}
.btn.ghost:hover {
  background: var(--accent-100);
  border-color: var(--accent-600);
  color: var(--accent-700);
}

/* Small screens */
@media (max-width: 640px){
  .pub.card { padding: 16px; }
  .pub-links { gap: 8px; }
}
/* Hero background image (behind the title area only) */
.page-hero {
  position: relative;
  overflow: hidden;                 /* trims any edges of the image */
}

.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("abm.png") center / cover no-repeat;
  opacity: 0.18;                    /* tweak 0.10–0.35 for stronger/softer */
  z-index: -1;                      /* sits behind the text */
}
