
/* ============================================
   MATTHIAS KLATT — Main Stylesheet
   Font:    Brioso Pro (loaded via Adobe Fonts; see functions.php).
            Cormorant Garamond is the automatic fallback until the
            Adobe Fonts Kit ID is set under Theme Settings.
   Colours: GJ-Rot #a50023 · GJ-Creme #F9F7F3
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --r: #a50023;
  /* GJ-Rot */
  --c: #F9F7F3;
  /* GJ-Creme */
  --d: #1a1612;
  /* Dark */
  --g: #4a4540;
  /* Grey */
  --l: #ddd8d0;
  /* Line */
  --bg2: #e8e2d9;
  /* Warm grey */
  --vol-2: #7a6858;
  /* Volume spine — taupe (RNA) */
  --vol-3: #5c1a2a;
  /* Volume spine — deep maroon (ACO) */
  --font: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;

  /* Type scale */
  --fs-3xs: 0.55rem;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.85rem;
  --fs-sm: 0.92rem;
  --fs-md: 0.95rem;
  --fs-base: 1rem;
  --fs-lg: 1.05rem;
  --fs-xl: 1.1rem;
  --fs-2xl: 1.15rem;
  --fs-3xl: 1.25rem;
  --fs-lead: 1.35rem;
  --fs-h7: 1.5rem;
  --fs-h6: 1.6rem;
  --fs-h5: 1.7rem;
  --fs-h4: 1.8rem;
  --fs-h3: 2rem;
  --fs-h2: 2.6rem;
  --fs-h1: 3rem;
  --fs-disp-4: clamp(1.6rem, 2.2vw, 2.1rem);
  --fs-disp-3: clamp(2rem, 3vw, 2.8rem);
  --fs-disp-2: clamp(2.4rem, 4vw, 3.2rem);
  --fs-disp: clamp(3rem, 5vw, 4.5rem);
  --fs-hero: clamp(4rem, 6vw, 5.8rem);

  /* Spacing scale (px labels @20px base) */
  --sp-2: 0.1rem;
  --sp-4: 0.2rem;
  --sp-5: 0.25rem;
  --sp-6: 0.3rem;
  --sp-8: 0.4rem;
  --sp-10: 0.5rem;
  --sp-12: 0.6rem;
  --sp-13: 0.65rem;
  --sp-15: 0.75rem;
  --sp-18: 0.9rem;
  --sp-20: 1rem;
  --sp-22: 1.1rem;
  --sp-25: 1.25rem;
  --sp-28: 1.4rem;
  --sp-30: 1.5rem;
  --sp-32: 1.6rem;
  --sp-36: 1.8rem;
  --sp-40: 2rem;
  --sp-44: 2.2rem;
  --sp-48: 2.4rem;
  --sp-50: 2.5rem;
  --sp-56: 2.8rem;
  --sp-60: 3rem;
  --gutter: 3.5rem;
  --sp-80: 4rem;
  --sp-90: 4.5rem;
  --sp-100: 5rem;
  --sp-110: 5.5rem;
  --sp-160: 8rem;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--c);
  color: var(--d);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* ── Shared: Navigation ─────────────── */
#site-nav {
  background: var(--r);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo a {
  font-size: var(--fs-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--c);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: var(--sp-48);
  list-style: none;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-size: var(--fs-sm);
  color: var(--c);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-links > li > a:hover,
.nav-links > li:hover > a,
.nav-links > li > a.current-menu-item,
.nav-links > li > a.current_page_item {
  color: var(--c);
}

.nav-arr {
  font-size: var(--fs-3xs);
  opacity: 0.6;
  transition: transform 0.2s;
}
.nav-links > li:hover > a .nav-arr {
  transform: rotate(180deg);
}

/* Dropdown */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c);
  border: 1px solid var(--l);
  min-width: 230px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(26,22,18,0.10);
  list-style: none;
  padding: 8px 0 0 0;
  /* invisible top buffer keeps hover connected */;
}

.nav-links > li:hover .sub-menu {
  display: block;
}

.sub-menu li a {
  display: block;
  padding: var(--sp-18) var(--sp-30);
  font-size: var(--fs-sm);
  color: var(--g);
  text-decoration: none;
  border-bottom: 1px solid var(--l);
  font-style: italic;
  transition: background 0.15s, color 0.15s;
}

.sub-menu li:last-child a {
  border-bottom: none;
}
.sub-menu li a:hover {
  background: #f0ebe3;
  color: var(--r);
}

/* ── Shared: Footer ─────────────────── */
/* footer layout now at bottom of file */

.footer-name {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--d);
  display: block;
  margin-bottom: 0.35rem;
}

.footer-affil {
  font-size: var(--fs-sm);
  color: var(--g);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: var(--sp-40);
  list-style: none;
  margin-bottom: 0.5rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--r);
}

.footer-legal {
  font-size: var(--fs-xs);
  color: #5e5852;
  font-style: italic;
  text-align: right;
  display: block;
}

/* ── Shared: Utilities ──────────────── */
.feat-link {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid var(--r);
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity 0.2s;
}
.feat-link:hover {
  opacity: 0.6;
}

.section-head {
  padding: var(--sp-60) var(--gutter) var(--sp-40);
  border-bottom: 1px solid var(--l);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-head h2 {
  font-size: var(--fs-3xl);
  font-weight: 400;
  font-style: italic;
  color: var(--r);
}

/* ── Homepage ───────────────────────── */

/* Hero portrait placeholder (shown until a portrait is uploaded) */
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-placeholder span {
  font-family: var(--font);
  font-style: italic;
  color: var(--g);
  font-size: var(--fs-sm);
}

/* Featured project — volume spines (LTN / RNA / ACO) */
.feat-spines {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 340px;
}
.feat-spine-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feat-spine-acr {
  color: var(--r);
  font-family: var(--font);
  font-size: var(--fs-md);
  font-style: normal;
  font-weight: 400;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
.feat-spine {
  height: 108px;
  flex: 1;
  box-shadow: 4px 5px 18px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-25);
}
.feat-spine--1 { background: var(--r); }
.feat-spine--2 { background: var(--vol-2); }
.feat-spine--3 { background: var(--vol-3); }
.feat-spine-title {
  color: var(--c);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-style: italic;
  opacity: 0.92;
  line-height: 1.3;
}
.feat-spines-note {
  text-align: center;
  width: 100%;
  max-width: 340px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--sp-50) var(--sp-90) var(--sp-60) var(--gutter);
  border-right: 1px solid var(--l);
}

.hero-affiliation {
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.hero-affiliation span {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--r);
  line-height: 1.4;
}

.hero-name {
  font-size: var(--fs-hero);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 2.8rem;
}

.hero-quote {
  font-size: var(--fs-lead);
  font-weight: 300;
  font-style: italic;
  color: var(--g);
  line-height: 1.6;
  max-width: 34ch;
  padding-left: 1.5rem;
  border-left: 2px solid var(--r);
}

.hero-photo {
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Research strip */
.research-strip {
  border-bottom: 1px solid var(--l);
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
}

.research-label {
  padding: var(--sp-44) var(--sp-40) var(--sp-44) var(--gutter);
  border-right: 1px solid var(--l);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.research-label h2 {
  font-size: var(--fs-base);
  font-weight: 400;
  font-style: italic;
  color: var(--g);
  line-height: 1.4;
}

.research-label a {
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid var(--r);
  padding-bottom: 1px;
  display: inline-block;
  transition: opacity 0.2s;
}

.research-label a:hover {
  opacity: 0.6;
}

.research-group {
  padding: var(--sp-44) var(--sp-50);
  border-right: 1px solid var(--l);
}

.research-group:last-child {
  border-right: none;
}

.group-heading {
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--r);
  margin-bottom: 1.1rem;
  display: block;
}

.field-list {
  list-style: none;
}

.field-list li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-15);
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--l);
  cursor: pointer;
}

.field-list li:last-child {
  border-bottom: none;
}
.field-list li:hover .fn {
  color: var(--r);
}

.fi {
  font-size: var(--fs-2xs);
  color: var(--r);
  flex-shrink: 0;
  width: 1.1rem;
  opacity: 0.7;
}
.fn {
  font-size: var(--fs-md);
  color: var(--d);
  line-height: 1.3;
  transition: color 0.15s;
}

/* Featured section (LIC on homepage) */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--l);
  min-height: 52vh;
}

.feat-text {
  padding: var(--sp-110) var(--sp-90) var(--sp-110) var(--gutter);
  border-right: 1px solid var(--l);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-label {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--r);
  margin-bottom: 2.5rem;
}

.feat-title {
  font-size: var(--fs-disp-2);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.feat-desc {
  font-size: var(--fs-xl);
  color: var(--g);
  line-height: 1.7;
  margin-bottom: 2.8rem;
  max-width: 38ch;
}

.feat-cover {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-40);
}

/* Stats line (talks page) */
.stats-line {
  padding: var(--sp-32) var(--gutter);
  border-bottom: 1px solid var(--l);
  display: flex;
  align-items: baseline;
  gap: var(--sp-50);
  flex-wrap: wrap;
}

.stat {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--g);
}
.stat strong {
  font-style: normal;
  font-weight: 400;
  color: var(--r);
  font-size: var(--fs-3xl);
  margin-right: 0.35rem;
}
.stat-sep {
  color: var(--l);
  margin: 0 var(--sp-5);
}

/* ── Publications ───────────────────── */
.top-bar {
  padding: var(--sp-32) var(--gutter);
  border-bottom: 1px solid var(--l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-20);
}

.dl-pub {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-15) var(--sp-25);
  border: 1px solid var(--l);
  background: transparent;
  color: var(--d);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-style: italic;
  transition: border-color 0.2s, color 0.2s;
}

.dl-pub:hover {
  border-color: var(--r);
  color: var(--r);
}

.lang-filter {
  padding: var(--sp-28) var(--gutter);
  border-bottom: 1px solid var(--l);
  display: flex;
  align-items: center;
  gap: var(--sp-15);
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  background: var(--c);
  z-index: 50;
}

.filter-label {
  font-size: var(--fs-xs);
  font-style: italic;
  color: #5e5852;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.dl-pub-inline {
  margin-left: auto;
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--r);
  text-decoration: none;
  border: 1px solid var(--r);
  padding: 0.3em 0.9em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dl-pub-inline:hover {
  background: var(--r);
  color: var(--c);
}

.lang-btn {
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-style: italic;
  padding: 0.3em 0.9em;
  border: 1px solid var(--l);
  background: transparent;
  color: var(--g);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover {
  border-color: var(--r);
  color: var(--r);
}
.lang-btn.active {
  background: var(--r);
  border-color: var(--r);
  color: var(--c);
}

/* Publication entries */
.pub {
  padding: var(--sp-22) var(--gutter);
  border-bottom: 1px solid var(--l);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}

.pub:hover {
  background: #f8f5f0;
}
.pub.hidden {
  display: none;
}

.pub.is-featured {
  border-left: 6px solid var(--r);
  background: #fdf8f5;
  padding-left: calc(3.5rem - 3px);
}

.pub.is-featured:hover {
  background: #f8ede7;
}

.pub-title {
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--d);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.pub-title a {
  color: var(--d);
  text-decoration: none;
  border-bottom: 1px solid var(--l);
  transition: color 0.15s, border-color 0.15s;
}
.pub-title a:hover {
  color: var(--r);
  border-color: var(--r);
}
.pub-ref {
  font-size: var(--fs-xs);
  color: var(--g);
  line-height: 1.5;
  margin-bottom: 0.1rem;
}

.sub-items {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.sub-item {
  font-size: var(--fs-sm);
  color: var(--g);
  font-style: italic;
  line-height: 1.55;
  display: flex;
  gap: var(--sp-10);
  align-items: baseline;
}
.sub-item--active-lang {
  color: var(--r);
  font-style: italic;
}
.sub-item--active-lang .si {
  color: var(--r);
}
.sub-item--active-lang .lang-tag {
  border-color: var(--r);
  color: var(--r);
  font-weight: 500;
}
.si {
  font-size: var(--fs-2xs);
  color: var(--r);
  flex-shrink: 0;
  font-style: normal;
  width: 0.9rem;
}

.doi-link {
  font-size: var(--fs-sm);
  color: var(--r);
  text-decoration: none;
  font-style: italic;
  font-weight: 400;
  border-bottom: 1px solid rgba(165,0,35,0.3);
  transition: border-color 0.15s;
  display: inline-block;
  margin-top: 0.4rem;
}
.doi-link:hover {
  border-bottom-color: var(--r);
}

/* Featured section (publications) */
.featured-section {
  border-bottom: 2px solid var(--l);
}
.featured-head {
  padding: var(--sp-50) var(--gutter) var(--sp-40);
  border-bottom: 1px solid var(--l);
}
.featured-head h2 {
  font-size: var(--fs-h6);
  font-weight: 300;
  font-style: italic;
  color: var(--d);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fw-item {
  padding: var(--sp-44) var(--sp-60);
  border-right: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
  position: relative;
  transition: background 0.15s;
}

.fw-item:nth-child(even) {
  border-right: none;
}
.fw-item:nth-child(3), .fw-item:nth-child(4) {
  border-bottom: none;
}
.fw-item:hover {
  background: #f5f0eb;
}

.fw-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--r);
  opacity: 0.9;
}

.fw-type {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--r);
  margin-bottom: 0.8rem;
  display: block;
}
.fw-title {
  font-size: var(--fs-h7);
  font-weight: 300;
  font-style: italic;
  color: var(--d);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.fw-title a {
  color: var(--d);
  text-decoration: none;
  border-bottom: 1px solid var(--l);
  transition: color 0.15s, border-color 0.15s;
}
.fw-title a:hover {
  color: var(--r);
  border-color: var(--r);
}
.fw-ref {
  font-size: var(--fs-sm);
  color: var(--g);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.fw-langs {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.fw-lang {
  font-size: var(--fs-2xs);
  font-style: italic;
  border: 1px solid #9e9890;
  padding: 0.1em 0.55em;
  color: #5e5852;
}


.sec-head {
  padding: var(--sp-36) var(--gutter) var(--sp-28);
  border-bottom: 1px solid var(--l);
  border-top: 4px solid var(--r);
  background: linear-gradient(to right, rgba(165,0,35,0.04), transparent);
}
.sec-head h2 {
  font-size: var(--fs-h6);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
}

/* ── Talks page ─────────────────────── */
.year-group {
  border-bottom: 1px solid var(--l);
}

.year-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--l);
  border-top: 4px solid var(--r);
  background: linear-gradient(to right, rgba(165,0,35,0.04), transparent);
  position: sticky;
  top: 64px;
  z-index: 10;
}


.talk:last-child {
  border-bottom: none;
}
.talk:hover {
  background: #f8f5f0;
}


.talk-content {
  padding: var(--sp-2) var(--sp-60) var(--sp-2) 0;
}


/* ── Contact page ───────────────────── */
.contact-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--l);
}


.info-block {
  margin-bottom: 2.5rem;
}
.info-block:last-child {
  margin-bottom: 0;
}

.info-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-15);
  margin-bottom: 0.4rem;
}
.info-row:last-child {
  margin-bottom: 0;
}
.info-icon {
  font-size: var(--fs-xs);
  color: var(--r);
  flex-shrink: 0;
  width: 1.1rem;
  font-style: normal;
}

.info-text a {
  color: var(--d);
  text-decoration: none;
  border-bottom: 1px solid var(--l);
  transition: color 0.15s, border-color 0.15s;
}
.info-text a:hover {
  color: var(--r);
  border-color: var(--r);
}

.centre-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--l);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  line-height: 1.6;
}
.centre-link a {
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid var(--r);
  transition: opacity 0.15s;
}
.centre-link a:hover {
  opacity: 0.65;
}


/* Contact Form 7 overrides */
.wpcf7 .field {
  margin-bottom: 1.8rem;
}
.wpcf7 label {
  display: block;
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--g);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  font-family: var(--font);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  font-family: var(--font);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--d);
  background: var(--c);
  border: 1px solid var(--l);
  padding: var(--sp-15) var(--sp-20);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  line-height: 1.6;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  border-color: var(--r);
}
.wpcf7 input[type="submit"] {
  font-family: var(--font);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--c);
  background: var(--r);
  border: none;
  padding: var(--sp-18) var(--sp-50);
  cursor: pointer;
  transition: opacity 0.2s;
}
.wpcf7 input[type="submit"]:hover {
  opacity: 0.85;
}

/* ── Research overview ──────────────── */
.page-header {
  padding: var(--gutter) var(--gutter) var(--sp-60);
  border-bottom: 1px solid var(--l);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.page-header h1 {
  font-size: var(--fs-h2);
  font-weight: 300;
  font-style: italic;
  color: var(--d);
}
.page-header p {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--g);
  max-width: 38ch;
  text-align: right;
  line-height: 1.6;
}

/* Research landing: right-side subtitle */
.page-header p.page-header-sub,
.page-header-sub {
  font-size: var(--fs-h3);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  text-align: right;
  line-height: 1.2;
  max-width: 24ch;
  margin-top: 0.3rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: calc(100vh - 64px - 88px);
}
.panel {
  position: relative;
  padding: var(--sp-80) var(--sp-80) var(--sp-80) var(--gutter);
  border-right: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
  text-decoration: none;
  color: var(--d);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s;
  overflow: hidden;
}
.panel:nth-child(even) {
  border-right: none;
}
.panel:nth-child(3), .panel:nth-child(4) {
  border-bottom: none;
}
.panel-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--r);
  opacity: 0.4;
  transition: opacity 0.2s, height 0.2s;
}
.panel:hover .panel-accent {
  height: 4px;
  opacity: 1;
}
.panel:nth-child(1) {
  background: var(--c);
}
.panel:nth-child(2) {
  background: var(--bg2);
}
.panel:nth-child(3) {
  background: var(--bg2);
}
.panel:nth-child(4) {
  background: var(--c);
}
.panel:nth-child(1):hover, .panel:nth-child(4):hover {
  background: #f0ebe3;
}
.panel:nth-child(2):hover, .panel:nth-child(3):hover {
  background: #e0d9cf;
}
.panel-label {
  font-size: var(--fs-h7);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  display: block;
  margin-bottom: 1.2rem;
}
.panel-title {
  font-size: var(--fs-disp-3);
  font-weight: 300;
  font-style: italic;
  color: var(--d);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.panel-desc {
  font-size: var(--fs-base);
  font-weight: 300;
  font-style: italic;
  color: var(--g);
  line-height: 1.65;
  max-width: 36ch;
  margin-bottom: 2.5rem;
}
.panel-link {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  border-bottom: 1px solid var(--l);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.15s, border-color 0.15s;
}
.panel:hover .panel-link {
  color: var(--r);
  border-color: var(--r);
}

/* ── Research areas ─────────────────── */

.intro-label {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--r);
  margin-bottom: 1.8rem;
  display: block;
}

.intro-desc {
  font-size: var(--fs-xl);
  font-weight: 300;
  font-style: italic;
  color: var(--g);
  line-height: 1.75;
  max-width: 60ch;
  padding-left: 1.5rem;
  border-left: 2px solid var(--r);
}


.field:nth-child(odd) {
  background: var(--c);
}
.field:nth-child(even) {
  background: var(--bg2);
}


.field-body {
  padding-top: 0.35rem;
}

.field-desc em {
  font-style: italic;
}

/* ── Biography ──────────────────────── */
.photo-banner {
  width: 100%;
  height: 58vh;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--l);
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.photo-caption {
  position: absolute;
  bottom: 1.75rem;
  left: 2rem;
  font-size: var(--fs-xs);
  font-style: italic;
  color: rgba(249,247,243,0.9);
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(26,22,18,0.6);
}

.bio-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  border-bottom: 1px solid var(--l);
}
.bio-text-col {
  padding: var(--sp-100) var(--sp-40) var(--sp-100) var(--gutter);
  border-right: 1px solid var(--l);
}
.bio-page-label {
  font-size: var(--fs-h1);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  margin-bottom: 2.5rem;
  display: block;
  line-height: 1;
}

.bio-text p:last-child {
  margin-bottom: 0;
}
.bio-text em {
  font-style: italic;
}
.bio-side {
  padding: var(--sp-100) var(--sp-60);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--sp-50);
}
.side-name {
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--d);
  display: block;
  margin-bottom: 0.3rem;
}
.side-affil {
  font-size: var(--fs-sm);
  color: var(--g);
  line-height: 1.7;
}

.downloads {
  display: flex;
  flex-direction: column;
  gap: var(--sp-15);
  min-width: 0;
  width: 100%;
}
.dl-btn {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-15);
  padding: var(--sp-18) var(--sp-25);
  border: 1px solid var(--l);
  background: transparent;
  color: var(--d);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-style: italic;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  box-sizing: border-box;
  width: 100%;
}
.dl-btn:hover {
  border-color: var(--r);
  color: var(--r);
}
.dl-icon {
  font-size: var(--fs-base);
  color: var(--r);
  flex-shrink: 0;
}
.dl-label {
  flex: 1;
  min-width: 8ch;
}
.dl-format {
  font-size: var(--fs-2xs);
  color: var(--g);
  font-style: normal;
  flex-shrink: 0;
  white-space: nowrap;
}

.timeline {
  border-bottom: 1px solid var(--l);
}
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.timeline-col {
  padding: var(--sp-50) var(--gutter);
  border-right: 1px solid var(--l);
}
.timeline-col:last-child {
  border-right: none;
}
.timeline-col h3 {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--r);
  margin-bottom: 1.5rem;
}
.tl-item {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 0 var(--sp-30);
  padding: var(--sp-15) 0;
  border-bottom: 1px solid var(--l);
  align-items: baseline;
}
.tl-item:last-child {
  border-bottom: none;
}
.tl-year {
  font-size: var(--fs-base);
  color: var(--r);
  font-style: italic;
  line-height: 1.5;
}
.tl-role {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--d);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.tl-inst {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--g);
  line-height: 1.4;
}
.tl-note {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--r);
  margin-top: 0.3rem;
}

.awards {
  border-bottom: 1px solid var(--l);
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.award-item {
  padding: var(--sp-50) var(--sp-50) var(--sp-50) var(--gutter);
  border-right: 1px solid var(--l);
}
.award-item:last-child {
  border-right: none;
}
.award-year {
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--r);
  display: block;
  margin-bottom: 0.5rem;
}
.award-name {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--d);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.award-body {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--g);
  line-height: 1.5;
}

.phd {
  border-bottom: 1px solid var(--l);
}
.phd-intro {
  padding: var(--sp-40) var(--gutter) var(--sp-30);
  border-bottom: 1px solid var(--l);
  display: flex;
  align-items: baseline;
  gap: var(--sp-40);
}
.phd-count {
  font-size: var(--fs-h1);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  line-height: 1;
  flex-shrink: 0;
}
.phd-intro-text {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--g);
  line-height: 1.5;
  max-width: 50ch;
}
.phd-list {
  list-style: none;
}
.phd-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0 var(--sp-40);
  align-items: baseline;
  padding: var(--sp-22) var(--gutter);
  border-bottom: 1px solid var(--l);
  transition: background 0.15s;
}
.phd-item:last-child {
  border-bottom: none;
}
.phd-item:hover {
  background: #f5f1eb;
}
.phd-year {
  font-size: var(--fs-base);
  color: var(--r);
  font-style: italic;
}
.phd-name {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--d);
  margin-bottom: 0.15rem;
}
.phd-title {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--g);
  line-height: 1.4;
}
.phd-pub {
  font-size: var(--fs-2xs);
  font-style: italic;
  color: var(--r);
  text-align: right;
  white-space: nowrap;
  border: 1px solid var(--l);
  padding: 0.15em 0.65em;
  align-self: center;
  text-decoration: none;
  transition: border-color 0.15s;
}
.phd-pub:hover {
  border-color: var(--r);
}

/* ── LIC page ───────────────────────── */


.lic-title {
  font-size: var(--fs-disp);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--d);
}


.visual-note {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  text-align: center;
  line-height: 1.55;
  margin-left: 60px;
  margin-top: 0.5rem;
}

.desc-col {
  padding: var(--sp-100) var(--sp-90) var(--sp-100) var(--gutter);
  border-right: 1px solid var(--l);
}
.desc-col:last-child {
  border-right: none;
}
.desc-col p {
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.85;
  color: var(--d);
  margin-bottom: 1.8rem;
}
.desc-col p:last-child {
  margin-bottom: 0;
}
.desc-col em {
  font-style: italic;
}
.quote-block {
  background: var(--bg2);
  padding: var(--sp-80) var(--sp-90) var(--sp-80) var(--gutter);
  border-top: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
}


/* ── Hart Studies page ──────────────── */

.banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 24px rgba(26,22,18,0.10);
}


.inv-body em {
  font-style: italic;
}
.inv-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-13);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid var(--r);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.inv-link:hover {
  opacity: 0.65;
}

.bl-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-15);
  padding: var(--sp-20) var(--sp-36);
  border: 1px solid var(--l);
  color: var(--d);
  text-decoration: none;
  font-size: var(--fs-md);
  font-style: italic;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.bl-link:hover {
  border-color: var(--r);
  color: var(--r);
}
.bl-note {
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--g);
  line-height: 1.65;
  max-width: 34ch;
}
.board {
  border-bottom: 1px solid var(--l);
}
.board-head {
  padding: var(--sp-30) var(--gutter) var(--sp-25);
  border-bottom: 1px solid var(--l);
}
.board-head h2 {
  font-size: var(--fs-h7);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
}

.board-list-wrap {
  padding: var(--sp-40) var(--gutter) var(--sp-60);
  background: var(--c);
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 64ch;
  border-top: 1px solid var(--l);
}

.board-list li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: var(--sp-18) 0;
  border-bottom: 1px solid var(--l);
  transition: background 0.15s;
}

.board-list li:last-child {
  border-bottom: none;
}
.board-list li:hover .bl-name {
  color: var(--r);
}

.bl-name {
  font-size: var(--fs-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--d);
  white-space: nowrap;
  transition: color 0.15s;
  flex-shrink: 0;
}

.bl-sep {
  color: var(--r);
  font-size: var(--fs-sm);
  flex-shrink: 0;
  opacity: 0.5;
  padding: 0 var(--sp-22);
}

.bl-inst {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  line-height: 1.4;
}

/* Editors grid (Hart Studies) */

.editors-head h2 {
  font-size: var(--fs-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--g);
}
.editors-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.editor:last-child {
  border-right: none;
}
.editor.is-klatt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--r);
}
.editor-name {
  font-size: var(--fs-3xl);
  font-weight: 300;
  font-style: italic;
  color: var(--d);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.editor-inst {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  line-height: 1.5;
}

/* Profiles strip (contact) */
.profiles {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--l);
}
.profile-item {
  padding: var(--sp-50) var(--gutter);
  border-right: 1px solid var(--l);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.profile-item:last-child {
  border-right: none;
}


.profile-link:hover {
  color: var(--r);
  border-color: var(--r);
}


/* Contact page — personal contact details */


.contact-personal-block {
  margin-bottom: 1.4rem;
}
.contact-personal-block:last-child {
  margin-bottom: 0;
}
.contact-personal-block-label {
  font-size: var(--fs-2xs);
  font-style: italic;
  color: var(--g);
  display: block;
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}

.contact-personal-text a {
  color: var(--d);
  text-decoration: none;
  border-bottom: 1px solid var(--l);
  transition: color 0.15s, border-color 0.15s;
}
.contact-personal-text a:hover {
  color: var(--r);
  border-color: var(--r);
}

/* Contact page — profile boxes (ORCID / LinkedIn / GJC) */


.contact-profile-box:hover {
  border-color: var(--r);
}
.cp-icon {
  margin-bottom: 0.6rem;
}


.cp-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid var(--r);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.cp-link:hover {
  opacity: 0.65;
}
.cp-gjc-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Hero affiliation — third line (location) */
.hero-affil-location {
  font-size: var(--fs-xs);
  color: var(--g);
  font-style: italic;
  margin-top: 0.2rem;
}

/* Footer location line */
.footer-location {
  font-size: var(--fs-sm);
  color: var(--g);
  display: inline;
}

/* Research prose section */
.research-prose-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  border-bottom: 1px solid var(--l);
  border-top: 1px solid var(--l);
}

.rp-label {
  padding: var(--sp-60) var(--gutter) var(--sp-60) var(--gutter);
  border-right: 1px solid var(--l);
  display: flex;
  flex-direction: column;
  gap: var(--sp-25);
  justify-content: center;
}

.rp-heading {
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--r);
  display: block;
}

.rp-groups {
  font-size: var(--fs-h6);
  font-weight: 300;
  font-style: italic;
  color: var(--d);
  line-height: 1.45;
}

.rp-groups-and {
  display: block;
  font-size: var(--fs-md);
  font-weight: 300;
  font-style: italic;
  color: var(--g);
  margin: var(--sp-2) 0;
}

.rp-text {
  padding: var(--sp-50) var(--sp-80) var(--sp-50) var(--sp-80);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-30);
  background: var(--bg2);
}

/* Card style — identical to .contact-profile-box */
.rp-card {
  background: var(--c);
  border: 1px solid var(--l);
  padding: var(--sp-36) var(--sp-40);
  display: flex;
  flex-direction: column;
  gap: var(--sp-25);
  transition: border-color 0.2s;
}

.rp-card:hover {
  border-color: var(--r);
}

.rp-card p {
  font-size: var(--fs-lg);
  font-weight: 300;
  font-style: italic;
  color: var(--g);
  line-height: 1.8;
  margin: 0;
}

.rp-link {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid var(--r);
  padding-bottom: 1px;
  display: inline-block;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.rp-link:hover {
  opacity: 0.65;
}

.side-location {
  font-size: var(--fs-xs);
  color: var(--g);
  font-style: italic;
  display: block;
  margin-top: 0.3rem;
}

/* DOI block — shown when DOI is available */
.pub-doi {
  margin-top: 0.5rem;
  display: block;
}

.pub-doi a {
  font-size: var(--fs-sm);
  color: var(--r);
  text-decoration: none;
  font-style: italic;
  border-bottom: 1px solid rgba(165,0,35,0.35);
  transition: border-color 0.15s;
  padding-bottom: 1px;
}

.pub-doi a:hover {
  border-color: var(--r);
}

/* Lang tag larger */
.lang-tag {
  font-size: var(--fs-2xs);
  padding: 0.12em 0.55em;
  display: inline-block;
  font-style: normal;
  border: 1px solid #9e9890;
  color: #5e5852;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ── LIC page overrides ─────────────────
   Must override WordPress default h1/h2 styles */

.lic-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-bottom: 1px solid var(--l);
  align-items: stretch;
}

.lic-hero-text {
  padding: var(--sp-100) var(--sp-80) var(--sp-100) var(--gutter);
  border-right: 1px solid var(--l);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Override WP default h1 */
.lic-hero-text h1.lic-title,
h1.lic-title {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-disp);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: var(--sp-30) 0 var(--sp-40);
  color: var(--d);
}

.lic-label {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--r);
  display: block;
  margin-bottom: 0;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
}

.lic-desc {
  font-size: var(--fs-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--g);
  line-height: 1.65;
  max-width: 38ch;
  padding-left: 1.5rem;
  border-left: 2px solid var(--r);
  margin: 0;
}

/* Right visual column */
.lic-visual {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-80) var(--sp-60);
  gap: var(--sp-40);
}

/* Book rows with acronym to the left */
.lic-books {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 340px;
}

.lic-book-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lic-acronym {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-md);
  font-style: normal;
  font-weight: 400;
  color: var(--r);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.lic-book {
  justify-content: center;
  height: 100px;
  flex: 1;
  position: relative;
  box-shadow: 4px 5px 18px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  padding-left: 1.4rem;
  padding-right: 1rem;
}

.lic-book-title {
  text-align: center;
  color: #F9F7F3;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-base);
  font-style: italic;
  opacity: 0.92;
  line-height: 1.3;
}

/* Description body */
.lic-body {
  border-bottom: 1px solid var(--l);
}

.lic-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-100) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-60);
  align-items: start;
}

.lic-col-main {
  padding-top: 2.5rem;
}


.lic-col-main p:last-child {
  margin-bottom: 0;
}

.lic-col-quote {
  background: var(--bg2);
  padding: var(--sp-50) var(--sp-56);
}

.lic-col-quote p:last-child {
  margin-bottom: 0;
}

.lic-description {
  display: block;
  max-width: 72ch;
  margin: 0 auto;
  padding: var(--sp-80) var(--gutter);
  border-bottom: 1px solid var(--l);
}

.lic-description .desc-col {
  padding: var(--gutter) var(--gutter);
}

.lic-description .desc-col p {
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1.8;
  color: var(--d);
  margin: 0;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-style: normal;
}


.quote-block p {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: var(--d);
  max-width: 72ch;
}

/* ── Hart Studies overrides ─────────────── */

/* Banner wrap: less padding */
.banner-wrap {
  padding: var(--sp-36) var(--sp-60);
  background: var(--c);
  border-bottom: 1px solid var(--l);
}

/* Invitation section: less padding, larger text */
.invitation {
  min-height: 30vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--l);
}

.inv-text {
  padding: var(--gutter) var(--gutter) var(--gutter) var(--gutter);
  border-right: 1px solid var(--l);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inv-body {
  font-size: var(--fs-3xl);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--d);
  max-width: 50ch;
}

.inv-label {
  font-size: var(--fs-h3);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
}

.inv-bloomsbury {
  padding: var(--gutter) var(--sp-60) var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-40);
}

/* Editors section: less padding */
.editors-head {
  padding: var(--sp-36) var(--gutter) var(--sp-30);
  border-bottom: 1px solid var(--l);
}

.editor {
  padding: var(--sp-50) var(--sp-60);
  border-right: 1px solid var(--l);
  position: relative;
}

/* ── Research Areas overrides ───────────── */

/* Group banners: less padding */
.group-banner {
  padding: var(--sp-40) var(--gutter);
  background: var(--r);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.group-banner-title {
  font-size: var(--fs-h5);
  margin-bottom: 0.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--c);
  line-height: 1.1;
}

.group-banner-desc {
  font-size: var(--fs-sm);
  color: var(--c);
  font-style: italic;
  max-width: 64ch;
  line-height: 1.6;
}
.group-banner-desc p {
  font-size: var(--fs-sm);
  color: var(--c);
  margin: 0;
}

/* Page intro: tighter */
.page-intro {
  padding: var(--gutter) var(--gutter) var(--sp-60);
  border-bottom: 1px solid var(--l);
  max-width: 72ch;
}

.intro-title {
  font-size: var(--fs-disp-2);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: var(--d);
}

/* Field rows: much less padding */
.field {
  padding: var(--sp-56) var(--gutter);
  gap: 0 var(--sp-80);
  border-bottom: 1px solid var(--l);
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
}

/* Field label (Jurisprudence · 1 etc.): much larger */
.field-num {
  font-size: var(--fs-base);
  margin-bottom: 0.8rem;
  letter-spacing: 0;
  font-style: italic;
  color: var(--r);
  display: block;
}

/* Field name: slightly tighter */
.field-name {
  font-size: var(--fs-disp-4);
  line-height: 1.1;
  font-weight: 300;
  font-style: italic;
  color: var(--d);
}

/* Field description: tighter line height */
.field-desc {
  font-size: var(--fs-lg);
  line-height: 1.7;
  max-width: 60ch;
  text-align: justify;
  hyphens: auto;
  font-weight: 300;
  color: var(--d);
}

/* Field meta column: narrower */
.field-meta {
  min-width: 220px;
  max-width: 280px;
  padding-top: 0.25rem;
}

/* Research Areas page heading */
.ra-page-heading {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-disp);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  padding: var(--sp-60) var(--gutter) var(--sp-30);
  border-bottom: 1px solid var(--l);
  line-height: 1;
}

/* ── Talks page overrides ───────────────── */

/* Fix overlapping date/city columns */
.talk {
  display: grid;
  grid-template-columns: 180px 120px 160px 1fr;
  border-bottom: 1px solid var(--l);
  transition: background 0.15s;
  align-items: baseline;
  padding: var(--sp-18) 0;
}

.talk-date {
  padding: var(--sp-2) var(--sp-20) var(--sp-2) var(--gutter);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--r);
  white-space: nowrap;
}

.talk-city {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--g);
  padding: var(--sp-2) var(--sp-18) var(--sp-2) 0;
  white-space: nowrap;
}

.talk-country {
  font-size: var(--fs-sm);
  font-style: italic;
  color: #5e5852;
  padding: var(--sp-2) var(--sp-18) var(--sp-2) 0;
  white-space: nowrap;
}

.talk-title {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--d);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.talk-inst {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  line-height: 1.4;
}

.year-num {
  font-size: var(--fs-h5);
  padding: var(--sp-18) var(--sp-40) var(--sp-18) var(--gutter);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  line-height: 1;
  display: flex;
  align-items: center;
}

.year-count {
  display: none;
}

/* ── Contact page overrides ─────────────── */

/* Large red page heading */
.contact-page-heading {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-disp);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  padding: var(--sp-60) var(--gutter) var(--sp-40);
  border-bottom: 1px solid var(--l);
  line-height: 1;
}

/* Swap columns: form left, photo+info right */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-bottom: 1px solid var(--l);
}

.contact-form-col {
  padding: var(--sp-60) var(--sp-80) var(--sp-60) var(--gutter);
  border-right: 1px solid var(--l);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  order: 1;
}

.contact-info {
  padding: var(--sp-60) var(--gutter) var(--sp-60) var(--sp-80);
  border-right: none;
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* "Send a message" larger */
.form-label-top {
  font-size: var(--fs-h7);
  font-weight: 300;
  color: var(--d);
  margin-bottom: 1rem;
  font-style: italic;
  display: block;
}

/* Form note larger */
.form-note {
  font-size: var(--fs-lg);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--g);
  line-height: 1.7;
  max-width: 38ch;
}

/* Admin note: prominent box before form */
.contact-admin-note {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--g);
  line-height: 1.6;
  padding: var(--sp-20) var(--sp-28);
  border-left: 3px solid var(--l);
  background: var(--bg2);
  margin-bottom: 2rem;
}

.contact-admin-note a {
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid var(--r);
  padding-bottom: 1px;
}

/* Info section: larger text */
.info-name {
  font-size: var(--fs-h4);
  font-weight: 300;
  font-style: italic;
  color: var(--d);
  margin-bottom: 0.5rem;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  line-height: 1.1;
}

.info-title {
  font-size: var(--fs-base);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--g);
}

.info-address {
  font-size: var(--fs-base);
  line-height: 2;
  font-style: italic;
  color: var(--g);
}

.info-text {
  font-size: var(--fs-base);
  color: var(--d);
  font-style: italic;
  line-height: 1.5;
}

.info-block-label {
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--r);
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.info-label {
  font-size: var(--fs-sm);
  margin-bottom: 1.2rem;
  font-style: italic;
  color: var(--r);
  display: block;
}

/* Profile strip larger */
.profile-link {
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--d);
  text-decoration: none;
  border-bottom: 1px solid var(--l);
  transition: color 0.15s, border-color 0.15s;
  display: inline-block;
}

.profile-desc {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
}

.profile-type {
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--r);
}

/* Contact personal details */
.contact-personal {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--l);
}

.contact-personal-label {
  font-size: var(--fs-xs);
  margin-bottom: 1.4rem;
  font-style: italic;
  color: var(--r);
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-personal-text {
  font-size: var(--fs-base);
  line-height: 1.5;
  font-style: italic;
  color: var(--d);
  margin: 0;
}

/* Contact profile boxes */
.contact-profiles {
  padding: var(--sp-40) var(--gutter);
  gap: var(--sp-30);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
  background: var(--bg2);
}

.contact-profile-box {
  padding: var(--sp-36) var(--sp-40);
  border: 1px solid var(--l);
  background: var(--c);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  transition: border-color 0.2s;
}

.cp-label {
  font-size: var(--fs-base);
  font-weight: 400;
  font-style: italic;
  color: var(--d);
  line-height: 1.2;
}

.cp-desc {
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--g);
  line-height: 1.4;
}


/* LIC editable content area — single column, full width */
/* LIC columns via the_content / ACF wysiwyg */
.lic-col-main p,
.lic-col-quote p {
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1.8;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
}
.lic-col-main p {
  color: var(--d);
  font-style: normal;
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 var(--sp-32) 0;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
}
.lic-col-quote p {
  color: var(--d);
  font-style: italic;
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 var(--sp-28) 0;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
}

/* Bio text via the_content() */
.bio-text p {
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.65;
  color: var(--d);
  margin-bottom: 1.4rem;
  max-width: 68ch;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
}

/* Hart Studies inv-body via the_content() */
.inv-body p {
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.85;
  color: var(--d);
  max-width: 50ch;
  margin-bottom: 0;
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
}

/* ── Footer: three-column layout ───────────────────── */
#site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 var(--sp-60);
  padding: var(--sp-50) var(--gutter);
}


.footer-col-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.footer-gj-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-18);
  text-decoration: none;
}
.footer-gj-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.footer-gj-label {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--g);
  text-align: left;
  line-height: 1.55;
}
.footer-gj-link:hover .footer-gj-label {
  color: var(--r);
}

/* ── Simple pages (Imprint, Privacy) ─── */

/* Override any WordPress default styles that constrain width */
.simple-page .wp-block,
.simple-page .wp-block-group,
.simple-page .wp-block-group__inner-container,
.simple-page figure,
.simple-page p,
.simple-page h1,
.simple-page h2,
.simple-page h3 {
  max-width: none;
}

.simple-page {
  width: 100%;
  padding: 0;
}

.simple-page-header {
  border-bottom: 1px solid var(--l);
  padding: var(--sp-100) var(--gutter) var(--sp-50);
  margin-bottom: 0;
}

.simple-page-title {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-disp-2);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  line-height: 1.1;
  margin: 0;
}

.simple-page-body {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  max-width: 780px;
  padding: var(--sp-80) var(--gutter) var(--sp-160);
}

.simple-page-body p {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.8;
  color: var(--d);
  margin: 0 0 var(--sp-30) 0;
}

.simple-page-body p:last-child {
  margin-bottom: 0;
}

/* Suppress any h1 WordPress may inject into the_content() */
.simple-page-body h1 {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.simple-page-body h2 {
  font-size: var(--fs-3xl);
  font-weight: 400;
  font-style: italic;
  color: var(--d);
  margin: var(--sp-50) 0 var(--sp-15);
  line-height: 1.25;
}

.simple-page-body h3 {
  font-size: var(--fs-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--g);
  margin: var(--sp-40) 0 var(--sp-10);
}

.simple-page-body a {
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid rgba(165,0,35,0.25);
  transition: border-color 0.15s;
}

.simple-page-body a:hover {
  border-color: var(--r);
}

.simple-page-body ul,
.simple-page-body ol {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.8;
  color: var(--d);
  padding-left: 1.5rem;
  margin: 0 0 var(--sp-30) 0;
}

/* ── sp- classes for Imprint/Privacy (fresh names, no cache conflict) ── */
.sp-header {
  border-bottom: 1px solid var(--l);
  padding: var(--sp-100) var(--gutter) var(--sp-50);
}

.sp-title {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  font-size: var(--fs-disp-2);
  font-weight: 300;
  font-style: italic;
  color: var(--r);
  line-height: 1.1;
  margin: 0;
}

.sp-body {
  font-family: 'brioso-pro', 'Cormorant Garamond', Georgia, serif;
  padding: var(--sp-80) var(--gutter) var(--sp-160);
}

.sp-body h1 {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

.sp-body p {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.8;
  color: var(--d);
  margin: 0 0 var(--sp-30) 0;
}

.sp-body p:last-child {
  margin-bottom: 0;
}

.sp-body h2 {
  font-size: var(--fs-3xl);
  font-weight: 400;
  font-style: italic;
  color: var(--d);
  margin: var(--sp-50) 0 var(--sp-15);
  line-height: 1.25;
}

.sp-body h3 {
  font-size: var(--fs-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--g);
  margin: var(--sp-40) 0 var(--sp-10);
}

.sp-body a {
  color: var(--r);
  text-decoration: none;
  border-bottom: 1px solid rgba(165,0,35,0.25);
  transition: border-color 0.15s;
}

.sp-body a:hover {
  border-color: var(--r);
}

.sp-body ul,
.sp-body ol {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.8;
  color: var(--d);
  padding-left: 1.5rem;
  margin: 0 0 var(--sp-30) 0;
}


/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE LAYER
   Pure max-width overrides, appended after all base styles.
   Anything above 1024px inherits the approved desktop design unchanged.
   Breakpoints: 1024 (tablet/iPad) · 768 (tablet portrait, mobile nav) · 480 (phone)
   ════════════════════════════════════════════════════════════════════ */

/* Mobile menu toggle — present in DOM, hidden on desktop (no desktop change) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
#site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
#site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── ≤1024px : tablets (incl. iPad both orientations) ───────────────── */
@media (max-width: 1024px) {

  /* Talks — stack each entry into a card.
     Fixes the fixed-column overlap caused by white-space:nowrap on long
     city/country names at tablet widths. */
  .year-header { grid-template-columns: 1fr; }
  .year-num { padding: var(--sp-25) var(--gutter); }
  .talk {
    display: block;
    padding: var(--sp-25) var(--gutter);
  }
  .talk-date {
    display: block;
    padding: 0 0 var(--sp-4) 0;
    white-space: normal;
  }
  .talk-city,
  .talk-country {
    display: inline;
    padding: 0;
    white-space: normal;
  }
  .talk-country::before { content: "\00B7\00A0"; color: var(--g); }
  .talk-content { padding: var(--sp-6) 0 0 0; }

  /* Awards: 4 → 2 columns */
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ≤768px : tablet portrait & mobile (hamburger nav) ──────────────── */
@media (max-width: 768px) {

  :root { --gutter: 1.5rem; }

  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--r);
    padding: var(--sp-10) 0 var(--sp-20);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  #site-nav.nav-open .nav-links { display: flex; }
  .nav-links > li { width: 100%; position: static; }
  .nav-links > li > a {
    padding: var(--sp-18) var(--gutter);
    font-size: var(--fs-base);
  }
  .nav-arr { display: none; }
  .sub-menu {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0;
  }
  .sub-menu li a {
    color: rgba(255, 255, 255, 0.82);
    border-bottom: none;
    padding: var(--sp-10) var(--gutter) var(--sp-10) calc(var(--gutter) + 1.1rem);
    font-size: var(--fs-sm);
  }
  .sub-menu li a:hover { background: rgba(0, 0, 0, 0.12); color: var(--c); }

  /* Multi-column layouts → single column */
  .hero,
  .research-strip,
  .featured,
  .featured-grid,
  .panel-grid,
  .bio-content,
  .timeline-grid,
  .research-prose-section,
  .lic-hero,
  .lic-columns,
  .invitation,
  .field,
  .contact-main,
  .editors-grid,
  .profiles,
  .contact-profiles {
    grid-template-columns: 1fr;
  }

  /* Drop vertical dividers once stacked */
  .hero > *,
  .research-strip > *,
  .featured > *,
  .featured-grid > *,
  .panel-grid > *,
  .bio-content > *,
  .timeline-grid > *,
  .research-prose-section > *,
  .lic-hero > *,
  .lic-columns > *,
  .invitation > *,
  .field > *,
  .contact-main > * {
    border-right: none;
  }

  /* Neutralise desktop full-height columns when stacked */
  .hero { min-height: 0; }
  .feat-text,
  .lic-hero-text,
  .contact-form-col,
  .inv-text { min-height: 0; }

  /* Hero */
  .hero-text {
    padding: var(--sp-40) var(--gutter);
    border-bottom: 1px solid var(--l);
  }
  .hero-photo { height: 68vh; min-height: 360px; }

  /* Banners */
  .photo-banner { height: 42vh; min-height: 240px; }

  /* Field meta column full width when stacked */
  .field-meta { min-width: 0; max-width: none; }

  /* Footer → stacked & centred */
  #site-footer {
    grid-template-columns: 1fr;
    gap: var(--sp-40);
    text-align: center;
  }
  .footer-col-left,
  .footer-col-centre,
  .footer-col-right {
    align-items: center;
    justify-content: center;
  }
  .footer-gj-link { justify-content: center; }

  /* Doctoral supervision: move the publisher box below the entry text,
     full remaining width, so long labels (e.g. "Hart Studies") no longer
     overflow the right edge on narrow screens. */
  .phd-item { grid-template-columns: 60px 1fr; }
  .phd-pub {
    grid-column: 2 / -1;
    justify-self: start;
    align-self: start;
    text-align: left;
    white-space: normal;
    margin-top: var(--sp-10);
  }
}

/* ── ≤480px : phones ────────────────────────────────────────────────── */
@media (max-width: 480px) {

  :root {
    --gutter: 1.1rem;

    /* Display headings: phone-appropriate fluid sizes */
    --fs-hero: clamp(2.6rem, 11vw, 4rem);
    --fs-disp: clamp(2.1rem, 9vw, 3.2rem);
    --fs-disp-2: clamp(1.9rem, 8vw, 2.6rem);

    /* Fixed headings stepped down */
    --fs-h1: 2.3rem;
    --fs-h2: 2rem;
    --fs-h3: 1.7rem;

    /* Trim oversized section padding on phones */
    --sp-160: 4.5rem;
    --sp-110: 3.5rem;
    --sp-100: 3rem;
  }

  .hero-name { margin-bottom: var(--sp-40); }
  .hero-photo { height: 56vh; min-height: 300px; }

  /* Awards & 3-col strips → single column */
  .awards-grid { grid-template-columns: 1fr; }
}
