/* =========================================================
   RESEARCH & TEACHING PAGE
   Builds on home.css (hero, headings, buttons, CTA) and
   speaking.css (about block, video cards).
   Loaded on pages/research.html only.
   ========================================================= */

/* ---------- Hero ---------- */
.rt-hero__title {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 1.08;
  max-width: 12ch;
}
.rt-hero .h-arch img { object-position: center 20%; }
@media (max-width: 860px) {
  .rt-hero__title { font-size: clamp(2.125rem, 9vw, 2.75rem); max-width: none; }
}

/* ---------- Research ---------- */
.rt-research {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.rt-research__text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
}
.rt-research__text .rt-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: var(--space-xl);
}
.rt-research__side { display: grid; gap: var(--space-xl); }

/* Cards (research side, teaching, honours) */
.rt-card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 24px 48px -36px rgba(61, 26, 43, 0.45);
}
.rt-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 3px solid #D97706;
  display: inline-block;
}
.rt-card p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}
.rt-card .h-textlink { margin-top: var(--space-md); }

.rt-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rt-tags li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--plum);
  background: var(--blush-light, #F5ECEC);
  border: 1px solid rgba(94, 42, 65, 0.15);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.rt-software li,
.rt-list li {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.9875rem;
  padding: 0.65rem 0;
}
.rt-software li + li,
.rt-list li + li { border-top: 1px dashed var(--hair); }
.rt-software a,
.rt-card a:not(.h-textlink) {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.6);
  text-underline-offset: 3px;
}
.rt-software a:hover,
.rt-card a:not(.h-textlink):hover { color: var(--amber-text, #B45309); }
.rt-list strong { color: var(--ink); font-weight: 600; }
.rt-list--marks li { position: relative; padding-left: 1.5rem; }
.rt-list--marks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D97706;
}
.rt-note {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--blush-light, #F5ECEC);
  border-left: 3px solid #D97706;
  border-radius: 0 6px 6px 0;
  font-size: 0.9375rem;
}

/* ---------- Publications ---------- */
.rt-highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.55;
  color: var(--plum);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.rt-pubs { border-top: 1px solid var(--hair); }
.rt-pub {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--hair);
  transition: background 0.4s ease;
}
.rt-pub__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--amber-text, #B45309);
  padding-top: 0.1rem;
}
.rt-pub__title {
  display: inline;
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: var(--ink);
}
a.rt-pub__title {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
a.rt-pub__title:hover { color: var(--plum); text-decoration-color: #D97706; }
.rt-pub__authors { margin-top: 0.45rem; font-size: 0.9375rem; color: var(--ink-soft); }
.rt-pub__venue {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--plum);
}

/* ---------- Two-column cards (teaching, honours) ---------- */
.rt-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rt-research { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .rt-two { grid-template-columns: 1fr; }
  .rt-pub { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Large screens: "Publications ↓" sits on the same row, right after "Download my CV" */
@media (min-width: 1200px) {
  .rt-hero .h-hero__cta { flex-wrap: nowrap; column-gap: 1.5rem; }
  .rt-hero .h-hero__cta .h-textlink { white-space: nowrap; }
  .rt-hero .h-hero__actions { flex: 0 0 auto; flex-wrap: nowrap; }
}

/* ---------- Corrections (Nov 2026) ---------- */
/* Elsevier line: a statement rather than a quotation */
.rt-highlight--plain { max-width: 60ch; }
.rt-highlight a { color: inherit; text-decoration: underline; text-decoration-color: rgba(217, 119, 6, 0.6); text-underline-offset: 3px; }
.rt-highlight a:hover { text-decoration-color: #D97706; }

/* Email shown as plain text (not a mailto link, so bots can't harvest it) */
.rt-email {
  font-weight: 600;
  color: var(--plum) !important;
  overflow-wrap: anywhere;
  margin-bottom: 0 !important;
}
.rt-address {
  font-style: normal;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Workshop video hosted on the BIRS site: a titled frame that opens their page */
.rt-video--link {
  display: grid;
  place-items: end start;
  background: var(--plum, #5E2A41);
  text-decoration: none;
}
.rt-video--link::after { background: transparent; }
.rt-video__label {
  position: relative;
  z-index: 1;
  padding: 1rem 1.15rem;
  max-width: 70%;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.3;
  color: #FCF8F5;
}
.rt-video--link:hover .sp-video__play { transform: translate(-50%, -50%) scale(1.1); }
