/* =====================================================================
   REmagine Awards — Prototype stylesheet
   Brand palette from Old website-source-materials-wp-content-dump/DESIGN_TOKENS.md
   Decisions log §6 — single palette, no per-theme accents
   ===================================================================== */

:root {
  /* Brand */
  --brand-purple: #7e77e0;
  --brand-purple-deep: #5e57c4;
  --brand-purple-soft: rgba(126,119,224,0.12);
  --brand-lavender: #c3c5fb;
  --brand-pale: #e7ecff;
  --brand-pale-2: #eaefff;

  /* REmagine accent palette from REmagine_Stylesheet.pdf */
  --brand-orange:    #f39325;
  --brand-yellow:    #fcee21;
  --brand-pink:      #ffb3e9;
  --brand-green:     #d1fad2;
  --brand-burgundy:  #530024;

  /* Per-DEB-theme accent (drawn from the REmagine Stylesheet PDF — kept
     consistent across the entire site: cards, news, chips, badges). */
  --theme-sustainable:    var(--brand-purple);     /* #7E77E0 — Sustainable Economy */
  --theme-welfare:        var(--brand-pink);       /* #FFB3E9 — Broad Perspective on Welfare */
  --theme-digital:        var(--brand-orange);     /* #F39325 — Responsible Digital Transformation */
  --theme-health:         var(--brand-green);      /* #D1FAD2 — Future Health and Healthcare */
  --theme-institutional:  var(--brand-burgundy);   /* #530024 — Institutional Adaptability */

  /* Paired foreground (ink) per theme bar — chosen to clear WCAG AA on
     each bar's background colour. Pale tints get dark ink, deep tints
     get white. */
  --theme-sustainable-ink:   #ffffff;
  --theme-welfare-ink:       #4a103c;
  --theme-digital-ink:       #ffffff;
  --theme-health-ink:        #1c4a23;
  --theme-institutional-ink: #ffffff;

  /* Neutrals */
  --ink: #23282f;
  --ink-soft: #4a5464;
  --meta: #728197;
  --line: #e3e7ef;
  --line-soft: #f0f3f8;
  --bg: #ffffff;
  --bg-tint: #fafbff;

  /* Status */
  --winner: #b58200;
  --winner-bg: #fff6e2;
  --finalist: var(--brand-purple-deep);
  --finalist-bg: var(--brand-purple-soft);
  --nominee: var(--meta);
  --nominee-bg: var(--line-soft);

  /* ===== SITE-WIDE TYPOGRAPHY RULE — canonical 6-size scale =====
     Pages should ONLY use these six sizes via the var() tokens. Avoid
     introducing inline font-size overrides; use the semantic class instead.

       H1 / page title    .hero .display   28-44px clamp   weight 700   line-height 1.10
       H2 / section head  --fs-xl          1.875rem (30px) weight 700   line-height 1.20
       H3 / sub-section   --fs-md          1.125rem (18px) weight 700   line-height 1.30
       Body / summary     --fs-base        1rem    (16px)  weight 400   line-height 1.55
       Meta / caption     --fs-sm          0.875rem (14px) weight 400   line-height 1.50
       Eyebrow / pill     --fs-xs          0.78rem (12.5px) weight 600   uppercase

     Lead paragraphs inside the hero may use --fs-md (18px) for emphasis;
     elsewhere body copy stays at --fs-base. Pills, CTAs and tags share --fs-xs.
     The --fs-lg / --fs-2xl / --fs-3xl / --fs-display tokens are kept for legacy
     references (e.g. homepage hero-intro) but should not be used in new sections. */
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.875rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3.5rem;
  --fs-display: clamp(2.5rem, 5vw + 1rem, 5rem);

  /* Spacing */
  --gap-1: 0.25rem;
  --gap-2: 0.5rem;
  --gap-3: 0.75rem;
  --gap-4: 1rem;
  --gap-5: 1.5rem;
  --gap-6: 2rem;
  --gap-7: 3rem;
  --gap-8: 4.5rem;
  --gap-9: 6rem;

  /* Layout */
  --max-content: 1180px;
  --max-text: 70ch;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(35,40,47,0.05), 0 1px 3px rgba(35,40,47,0.04);
  --shadow:    0 4px 14px rgba(35,40,47,0.07), 0 1px 3px rgba(35,40,47,0.04);
  --shadow-lg: 0 12px 32px rgba(35,40,47,0.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-purple-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--brand-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========== Typography ========== */
h1,h2,h3,h4 {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: var(--fs-2xl); margin-bottom: var(--gap-4); }
h2 { font-size: var(--fs-xl); margin-bottom: var(--gap-3); }
h3 { font-size: var(--fs-lg); margin-bottom: var(--gap-2); }
h4 { font-size: var(--fs-md); margin-bottom: var(--gap-2); }
p  { margin-bottom: var(--gap-4); max-width: var(--max-text); }
small, .meta { font-size: var(--fs-sm); color: var(--meta); }

.display {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-purple-deep);
  display: inline-block;
  margin-bottom: var(--gap-3);
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gap-5);
}
section { padding-block: var(--gap-8); }
section.tight { padding-block: var(--gap-6); }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: var(--gap-4);
  margin-bottom: var(--gap-6); flex-wrap: wrap;
}
.section-head .lead { max-width: 56ch; color: var(--ink-soft); margin-top: var(--gap-2); margin-bottom: 0; }

/* ========== Header / Nav ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-5); padding-block: var(--gap-4);
  max-width: var(--max-content); margin-inline: auto; padding-inline: var(--gap-5);
}
.logo {
  display: inline-flex; align-items: center; gap: var(--gap-3);
  font-weight: 700; font-size: var(--fs-md); color: var(--ink);
}
.logo img { height: 30px; width: auto; }
.logo:hover { text-decoration: none; color: var(--brand-purple-deep); }
.logo-text .site-title {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15;
  color: var(--ink); white-space: nowrap;
}
@media (max-width: 960px) {
  .logo-text .site-title { font-size: .9rem; }
}
@media (max-width: 640px) {
  .logo-text .site-title { font-size: .8rem; white-space: normal; max-width: 14ch; line-height: 1.1; }
}

/* ===== Per-theme accent tint backgrounds for winner cards ===== */
/* The card body is uniform white so all five cards share a calm rhythm;
   the theme expression sits in the status pill above the photo and the
   coloured theme bar at the bottom. */
.profile-card.theme-tinted { background: white; border-color: var(--line); position: relative; padding-bottom: 64px; height: 100%; display: flex; flex-direction: column; }
.profile-card.theme-tinted .photo-frame { background: var(--brand-pale); }
/* When a card-link is marked .is-winner-bg (winners on the Awards laureates grid),
   the inner card gets a subtle wash of its DEB theme colour so winners stand out
   among the alphabetical roll. Light enough to keep text contrast on the body copy. */
.card-link.is-winner-bg .profile-card.theme-tinted {
  background: color-mix(in srgb, var(--card-accent, var(--brand-purple)) 14%, white);
  border-color: color-mix(in srgb, var(--card-accent, var(--brand-purple)) 35%, white);
}
.card-link.is-winner-bg .profile-card.theme-tinted .photo-frame {
  background: color-mix(in srgb, var(--card-accent, var(--brand-purple)) 22%, white);
}
.profile-card.theme-tinted h3, .profile-card.theme-tinted .uni { color: var(--ink); }
/* Winner pill (filled): bg = theme accent, text = paired theme-ink so it
   stays readable on light themes like welfare-pink and health-green. */
.profile-card.theme-tinted .status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--card-accent, var(--brand-purple));
  color: var(--card-accent-ink, #ffffff);
  align-self: flex-start; margin-bottom: var(--gap-3);
  box-shadow: 0 1px 2px rgba(35,40,47,0.10);
}
/* Finalist pill (outline): white bg, text + border in the theme's "strong" variant
   (dark mulberry on welfare-pink, dark green on health-green, deeper purple on the
   light sustainable purple, darker orange on digital, bordeaux as-is on institutional)
   so the label is readable on every theme. Falls back to the plain accent when the
   theme has no defined strong variant. */
.profile-card.theme-tinted .status-pill.is-finalist {
  background: white;
  color: var(--card-accent-strong, var(--card-accent, var(--brand-purple)));
  border: 1.5px solid var(--card-accent-strong, var(--card-accent, var(--brand-purple)));
}
.profile-card.theme-tinted .status-pill.is-nominee {
  background: white; color: var(--meta);
  border: 1.5px solid var(--line);
}
.profile-card.theme-tinted h3 { margin-top: var(--gap-3); margin-bottom: 2px; font-size: var(--fs-md); }
.profile-card.theme-tinted .uni { font-size: var(--fs-sm); color: var(--ink-soft); }
.profile-card.theme-tinted .theme-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  /* Fixed height — same across cards regardless of whether the theme name
     fits on one or two lines. Long names wrap inside the bar; short names
     simply centre vertically. */
  height: 52px;
  padding: 8px 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
  background: var(--card-accent, var(--brand-purple));
  color: var(--card-accent-ink, white);
  border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius);
  display: flex; align-items: center; line-height: 1.2;
  overflow: hidden;
}

/* Single-row winner layout (5 across, scales), equal height */
.winners-row {
  display: grid; gap: var(--gap-3);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}
.winners-row > a, .winners-row > a > article { height: 100%; }
@media (max-width: 900px) { .winners-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .winners-row { grid-template-columns: repeat(2, 1fr); } }

/* ===== University logo grid ===== */
.faculty-grid {
  display: grid; gap: var(--gap-4);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center; justify-items: center;
}
.faculty-grid .faculty {
  display: flex; align-items: center; justify-content: center;
  height: 80px; padding: 8px; background: white;
  border-radius: var(--radius-sm); width: 100%;
  transition: transform .2s var(--ease);
}
.faculty-grid .faculty:hover { transform: translateY(-2px); }
.faculty-grid .faculty img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  filter: grayscale(20%); opacity: .9; transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.faculty-grid .faculty:hover img { filter: grayscale(0); opacity: 1; }

/* ===== Funder strip (replaces text "Funded by") ===== */
.funder-strip {
  display: flex; align-items: center; justify-content: center;
  gap: var(--gap-4); flex-wrap: wrap;
  padding: var(--gap-5); background: white; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.funder-strip img { max-height: 90px; width: auto; }

/* ===== Save-the-date invitational section (calendar + Impact Forum merge) ===== */
.forum-invite {
  background: linear-gradient(135deg, #f7f4ff 0%, #ffffff 60%, #fff0f9 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-block: var(--gap-7) var(--gap-7);
  position: relative; overflow: hidden;
}
.forum-invite::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 500px at 8% 20%, rgba(126,119,224,0.10), transparent 70%),
    radial-gradient(circle 400px at 92% 80%, rgba(255,179,233,0.12), transparent 70%);
  pointer-events: none;
}
.forum-invite .container { position: relative; }
.forum-invite .grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap-7);
  align-items: center;
}
.forum-invite .visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--brand-pale);
  box-shadow: 0 18px 40px rgba(35,40,47,0.14), 0 4px 12px rgba(35,40,47,0.06);
}
.forum-invite .visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.forum-invite .date-stamp {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.95);
  padding: 10px 14px 8px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 4px 10px rgba(35,40,47,0.10);
  text-align: center;
}
.forum-invite .date-stamp .day {
  font-size: 1.8rem; font-weight: 700; color: var(--brand-purple-deep); line-height: 1;
}
.forum-invite .date-stamp .mo {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); text-transform: uppercase; margin-top: 2px;
}
.forum-invite .date-stamp .yr {
  font-size: 0.7rem; color: var(--meta); margin-top: 1px;
}
.forum-invite h2 { font-size: var(--fs-xl); line-height: 1.15; margin-bottom: var(--gap-3); }
.forum-invite .lead { font-size: var(--fs-md); color: var(--ink-soft); margin-bottom: var(--gap-5); max-width: 56ch; }
.forum-invite .roadmap {
  display: grid; gap: var(--gap-2);
  margin-bottom: var(--gap-5);
}
.forum-invite .roadmap .stage {
  display: grid; grid-template-columns: 36px auto 1fr; gap: var(--gap-3); align-items: start;
  padding: var(--gap-3) var(--gap-4);
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.forum-invite .roadmap .stage .nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-purple); color: white;
  font-weight: 700; font-size: var(--fs-sm);
}
.forum-invite .roadmap .stage .stage-date {
  font-size: var(--fs-sm); color: var(--brand-purple-deep); font-weight: 700; white-space: nowrap;
  align-self: center;
}
.forum-invite .roadmap .stage .stage-title { font-size: var(--fs-sm); color: var(--ink); line-height: 1.4; }
.forum-invite .roadmap .stage.is-highlight {
  background: var(--brand-purple); border-color: var(--brand-purple);
}
.forum-invite .roadmap .stage.is-highlight .nr { background: white; color: var(--brand-purple); }
.forum-invite .roadmap .stage.is-highlight .stage-date,
.forum-invite .roadmap .stage.is-highlight .stage-title { color: white; }
.forum-invite .cta-row { display: flex; gap: var(--gap-3); flex-wrap: wrap; }
@media (max-width: 900px) {
  .forum-invite .grid { grid-template-columns: 1fr; }
  .forum-invite h2 { font-size: var(--fs-lg); }
}

/* ===== Impact Forum teaser with booklet image ===== */
.impact-forum-teaser {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap-7); align-items: center;
}
.impact-forum-teaser .visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--brand-pale);
  box-shadow: 0 12px 32px rgba(35,40,47,0.10);
}
.impact-forum-teaser .visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.impact-forum-teaser .visual .ed-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.92); color: var(--brand-purple-deep);
  padding: 4px 10px 4px 8px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm);
  display: inline-flex; align-items: center; gap: 6px;
}
.impact-forum-teaser .visual .ed-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-purple);
}
@media (max-width: 900px) {
  .impact-forum-teaser { grid-template-columns: 1fr; }
}

.primary-nav { display: flex; align-items: center; gap: var(--gap-2); }
.primary-nav a {
  color: var(--ink); font-weight: 500; font-size: var(--fs-sm);
  padding: var(--gap-2) var(--gap-3); border-radius: var(--radius-sm);
}
.primary-nav a:hover { background: var(--brand-pale); text-decoration: none; }
.primary-nav a.active { color: var(--brand-purple-deep); background: var(--brand-pale); }

.lang-switch {
  display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--bg);
}
.lang-switch a {
  padding: 4px 10px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--meta); border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}
.lang-switch a.active { background: var(--ink); color: white; }
.lang-switch a:hover:not(.active) { color: var(--ink); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; padding: var(--gap-2); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--brand-lavender) 0%, var(--brand-pale) 60%, var(--bg) 100%);
  padding-block: var(--gap-9) var(--gap-8);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 700px 400px at 90% 10%, rgba(255,255,255,0.6), transparent 70%),
    radial-gradient(ellipse 500px 300px at 10% 90%, rgba(126,119,224,0.18), transparent 70%);
  pointer-events: none;
}
.hero .inner { position: relative; max-width: var(--max-content); margin-inline: auto; padding-inline: var(--gap-5); z-index: 2; }
/* Compact ruler headline — most page titles now fit on a single line.
   Was clamp(2.5rem, 5vw+1rem, 5rem) at max-width 18ch. */
.hero .display {
  color: var(--ink);
  max-width: 32ch;
  font-size: clamp(1.75rem, 2.2vw + 0.8rem, 2.75rem);
  line-height: 1.1;
}
.hero .display em { font-style: normal; color: var(--brand-purple-deep); }
.hero .lead {
  font-size: var(--fs-md); color: var(--ink-soft);
  max-width: 56ch; margin-top: var(--gap-5);
}
.hero .cta-row { display: flex; gap: var(--gap-3); margin-top: var(--gap-6); flex-wrap: wrap; }

/* ========== REmagine wordmark — mandatory typographic rule ==========
   "RE" is always italic + caps; the rest of the word stays upright.
   Weight is INHERITED from the surrounding text: in body copy the "RE"
   appears italic but at normal weight; inside headings, strong tags or
   uppercase contexts (e.g. footer column titles) the entire word — and
   therefore the "RE" — appears bold.
   A small trailing margin keeps the italic "RE" from pressing into "magine". */
.rem-mark { font-style: normal; font-weight: inherit; white-space: nowrap; }
.rem-mark > i {
  font-style: italic;
  font-weight: inherit;
  margin-right: 0.06em;
  letter-spacing: 0.005em;
}

/* ========== Hero v5 — full-bleed bg video + compact copy ========== */
.hero-intro {
  position: relative; overflow: hidden;
  background: var(--brand-lavender);
  min-height: 360px;
  padding-block: var(--gap-7) var(--gap-7);
  isolation: isolate;
  display: flex; align-items: center;
}
.hero-intro .bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.hero-intro::before {
  /* Soft white wash behind the copy so the headline is always readable. */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 100%);
  pointer-events: none;
}
.hero-intro .inner {
  position: relative; z-index: 2;
  max-width: var(--max-content); margin-inline: auto; padding-inline: var(--gap-5);
  width: 100%;
}
.hero-intro .copy { max-width: 100%; }
/* Single-line H1 across the container width; smaller than the old display style. */
.hero-intro .display {
  color: var(--ink);
  max-width: none;
  /* Scales between ~1.5rem on mobile and ~2.4rem on desktop, single-line on wide viewports */
  font-size: clamp(1.5rem, 2.2vw + 0.6rem, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.hero-intro .display em, .hero-intro .display .rem-mark > i { font-style: italic; color: var(--brand-purple-deep); }
.hero-intro .lead {
  font-size: var(--fs-base); color: var(--ink); max-width: 78ch;
  margin-top: var(--gap-3);
  line-height: 1.55;
}
/* When the theme videos sit inside the hero, give them some breathing room
   above and let them share the hero's lavender particle backdrop. */
.hero-intro .themes-row { margin-top: var(--gap-6); }
.hero-intro { min-height: 0; padding-block: var(--gap-6) var(--gap-7); }

@media (prefers-reduced-motion: reduce) {
  .hero-intro .bg-video { display: none; }
  .hero-intro {
    background: center/cover no-repeat
      url("../images/hero/posters/intro.jpg") var(--brand-lavender);
  }
}

@media (max-width: 900px) {
  .hero-intro { min-height: 300px; padding-block: var(--gap-6) var(--gap-6); }
  .hero-intro .display { font-size: 1.4rem; }
}

/* ===== Themes row — 5 auto-playing videos, same column grid as winners ===== */
.themes-row {
  display: grid; gap: var(--gap-3);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}
@media (max-width: 900px) { .themes-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .themes-row { grid-template-columns: repeat(2, 1fr); } }

.themes-row .theme-video-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-pale);
  box-shadow: 0 6px 18px rgba(35,40,47,0.08);
}
/* The source clips are 16:9 — let each video render at its natural aspect
   so the animated letters/shapes are never cropped at the edges. */
.themes-row .theme-video-card video {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; display: block;
}
.themes-row .theme-video-card .theme-bar {
  height: 36px;
  padding: 6px 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
  background: var(--card-accent, var(--brand-purple));
  color: var(--card-accent-ink, white);
  display: flex; align-items: center; line-height: 1.15;
  overflow: hidden;
  flex: 0 0 36px;
}

/* ========== Themes-discovery section (videos as cards) ========== */
.themes-grid {
  display: grid; gap: var(--gap-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.theme-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-pale);
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.theme-card video, .theme-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.theme-card .theme-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255,255,255,0.92);
  padding: 8px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
}
.theme-card .theme-label .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--card-accent, var(--brand-purple));
  flex: 0 0 10px;
}
.theme-card .theme-label .name {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.2;
}

/* ========== Hero rotator v2 (per-theme videos) ========== */
.hero-rotator {
  position: relative; overflow: hidden;
  background: var(--brand-pale);
  min-height: 560px;
  padding-block: var(--gap-9) var(--gap-8);
  isolation: isolate;
  --slide-accent: var(--brand-purple);
  --slide-accent-ink: var(--ink);
  transition: --slide-accent .8s var(--ease);
}
.hero-rotator .hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-rotator .hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
.hero-rotator .hero-slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity 1.2s var(--ease), visibility 0s linear 0s;
}
.hero-rotator .hero-slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-rotator .inner { position: relative; z-index: 3; max-width: var(--max-content); margin-inline: auto; padding-inline: var(--gap-5); }
.hero-rotator::after {
  /* gentle bottom-shadow for legibility */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.3) 100%);
  pointer-events: none;
}

/* Hero text overlay */
.hero-rotator .display { color: var(--ink); max-width: 20ch;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.hero-rotator .display em, .hero-rotator .display .rem-mark > i { font-style: italic; color: var(--brand-purple-deep); }
.hero-rotator .eyebrow {
  background: rgba(255,255,255,0.7); padding: .2rem .6rem; border-radius: 999px;
  color: var(--slide-accent-ink, var(--ink));
}
.hero-rotator .lead {
  font-size: var(--fs-md); color: var(--ink); max-width: 56ch; margin-top: var(--gap-5);
  background: rgba(255,255,255,0.6); padding: .75rem 1rem; border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.hero-rotator .cta-row { display: flex; gap: var(--gap-3); margin-top: var(--gap-6); flex-wrap: wrap; }

/* Caption (theme badge bottom-right) */
.hero-caption {
  position: absolute; bottom: var(--gap-6); right: var(--gap-5);
  z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  max-width: 34ch; text-align: right;
}
.hero-caption .hero-eyebrow {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.6); padding: 4px 10px; border-radius: 999px;
  color: var(--brand-purple-deep);
}
.hero-caption .hero-theme {
  font-size: var(--fs-lg); font-weight: 700; line-height: 1.15;
  color: var(--slide-accent-ink, var(--ink));
  background: rgba(255,255,255,0.85); padding: 6px 14px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(35,40,47,0.08);
}
.hero-caption .hero-tagline {
  font-size: var(--fs-sm); color: var(--ink-soft);
  background: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 8px;
  max-width: 38ch;
}

/* Theme progress strip */
.hero-progress {
  position: absolute; bottom: var(--gap-3); left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 6px; list-style: none; padding: 0; margin: 0;
}
.hero-progress li {
  width: 32px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.hero-progress li.is-past { background: rgba(255,255,255,0.85); }
.hero-progress li.is-active { background: var(--slide-accent, var(--brand-purple)); width: 48px; }

@media (prefers-reduced-motion: reduce) {
  .hero-rotator .hero-slide video { display: none; }
  .hero-rotator .hero-slide.is-active {
    background: center/cover no-repeat var(--reduced-poster, var(--brand-pale));
  }
}

@media (max-width: 720px) {
  .hero-rotator { min-height: 460px; padding-block: var(--gap-7) var(--gap-6); }
  .hero-caption { display: none; }
  .hero-progress li { width: 22px; }
  .hero-progress li.is-active { width: 32px; }
}

/* Waaier hero — full-bleed animated canvas variant (LEGACY) */
.hero-waaier {
  position: relative; overflow: hidden;
  background: var(--brand-lavender);
  min-height: 540px;
  padding-block: var(--gap-9) var(--gap-8);
  isolation: isolate;
}
.hero-waaier::after {
  /* Subtle dim overlay so the text remains readable over the white letters */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(126,119,224,0.0) 0%, rgba(126,119,224,0.10) 70%, rgba(126,119,224,0.18) 100%);
  pointer-events: none; z-index: 1;
}
.hero-waaier .inner {
  position: relative; z-index: 2;
  max-width: var(--max-content); margin-inline: auto; padding-inline: var(--gap-5);
}
.hero-waaier .display { color: var(--ink); max-width: 18ch;
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
}
.hero-waaier .display em { font-style: normal; color: var(--brand-purple-deep); }
.hero-waaier .eyebrow { color: var(--brand-purple-deep); background: rgba(255,255,255,0.55); padding: .2rem .6rem; border-radius: 999px; }
.hero-waaier .lead {
  font-size: var(--fs-md); color: var(--ink); max-width: 56ch; margin-top: var(--gap-5);
  background: rgba(255,255,255,0.55); padding: .75rem 1rem; border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.hero-waaier .cta-row { display: flex; gap: var(--gap-3); margin-top: var(--gap-6); flex-wrap: wrap; }
.hero-waaier .caption {
  position: absolute; bottom: var(--gap-5); right: var(--gap-5);
  z-index: 2; font-size: var(--fs-xs); color: var(--brand-purple-deep);
  background: rgba(255,255,255,0.6); padding: .35rem .7rem; border-radius: 999px;
  max-width: 28ch; text-align: right;
}
@media (max-width: 640px) {
  .hero-waaier { min-height: 440px; padding-block: var(--gap-7) var(--gap-6); }
  .hero-waaier .caption { display: none; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: var(--gap-2);
  padding: 0.75rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-sm);
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--brand-purple); color: white; }
.btn-primary:hover { background: var(--brand-purple-deep); color: white; text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--brand-pale); color: var(--ink); text-decoration: none; border-color: var(--brand-purple); }
.btn-ghost { background: transparent; color: var(--brand-purple-deep); }
.btn-ghost:hover { background: var(--brand-pale); text-decoration: none; }

/* ========== Cards ========== */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--gap-5); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-lavender); }
.card .meta { display: flex; gap: var(--gap-3); align-items: center; margin-bottom: var(--gap-2); }
.card-link { color: inherit; }
.card-link:hover { text-decoration: none; }

.tag {
  display: inline-flex; align-items: center; gap: var(--gap-1);
  font-size: var(--fs-xs); font-weight: 600;
  padding: 2px 10px; border-radius: 999px;
  background: var(--brand-purple-soft); color: var(--brand-purple-deep);
}
.tag-winner { background: var(--winner-bg); color: var(--winner); }
.tag-finalist { background: var(--finalist-bg); color: var(--finalist); }
.tag-nominee { background: var(--nominee-bg); color: var(--nominee); }
.tag-faculty { background: var(--bg-tint); color: var(--ink-soft); border: 1px solid var(--line); }

/* ========== Grids ========== */
.grid { display: grid; gap: var(--gap-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-220 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-auto-180 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ========== Profile / portrait cards ========== */
.portrait {
  aspect-ratio: 1 / 1; width: 100%;
  object-fit: cover; background: var(--brand-pale);
  border-radius: var(--radius); overflow: hidden;
}
.portrait-circle {
  aspect-ratio: 1 / 1; width: 100%;
  border-radius: 50%; object-fit: cover; background: var(--brand-pale);
}
.profile-card { text-align: left; }
.profile-card h3 { font-size: var(--fs-md); margin-top: var(--gap-3); margin-bottom: 2px; }
.profile-card .meta { color: var(--meta); font-size: var(--fs-sm); }
.profile-card .uni { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: 2px; }
.profile-card .photo-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--brand-pale);
}
.profile-card .photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(35,40,47,0.45) 100%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.profile-card:hover .photo-frame::after { opacity: 1; }

/* Jury page section titles + muted count */
.jury-section-title {
  font-size: var(--fs-lg); margin-bottom: var(--gap-4);
  display: flex; align-items: baseline; gap: .5rem;
}
.jury-section-title .muted { color: var(--meta); font-weight: 500; font-size: var(--fs-md); }
.jury-section-former .profile-card { opacity: 0.92; }

/* Placeholder portrait for jury without photo */
.portrait-placeholder {
  aspect-ratio: 1 / 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-pale));
  color: var(--brand-purple-deep); font-size: 2rem; font-weight: 700;
  border-radius: var(--radius);
}

/* ========== Timeline (homepage 2026 calendar) ========== */
.timeline {
  display: grid; gap: var(--gap-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.timeline .step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--gap-5); position: relative;
}
.timeline .step .nr {
  position: absolute; top: -14px; left: var(--gap-5);
  background: var(--brand-purple); color: white;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 700;
}
.timeline .step h4 { margin-top: var(--gap-2); margin-bottom: var(--gap-2); }
.timeline .step .date { color: var(--brand-purple-deep); font-weight: 600; font-size: var(--fs-sm); }
.timeline .step .note { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: 0; }

/* ========== News strip & news page ========== */
.news-strip { display: grid; gap: var(--gap-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  height: 100%;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.news-card .thumb {
  aspect-ratio: 16/9; background: var(--brand-pale);
  background-size: cover; background-position: center;
  overflow: hidden; position: relative;
}
.news-card .thumb > img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  display: block;
}
.news-card .thumb.thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-pale));
}
.news-card .thumb.thumb-fallback img {
  max-width: 70%; max-height: 70%;
  background: white; padding: 6px 10px; border-radius: 4px;
}
.news-card .body {
  padding: var(--gap-4) var(--gap-4) var(--gap-3);
  flex: 1; display: flex; flex-direction: column; gap: var(--gap-2);
}
/* Title sits directly under the visual */
.news-card .title { color: var(--ink); font-weight: 600; line-height: 1.35; font-size: var(--fs-sm); }
.news-card .meta-row {
  display: flex; gap: var(--gap-2); align-items: center; flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--meta);
  margin-top: auto; /* pushes university+date to the bottom of the white area */
}
/* Theme tag at the very bottom of the card, full-width, in the theme colour. Fixed height ensures
   short and long theme names render at the same row height across the grid. */
.news-card .theme-bar {
  height: 48px;
  padding: 8px 14px; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.02em; line-height: 1.2;
  background: var(--card-accent, var(--brand-purple));
  color: var(--card-accent-ink, white);
  display: flex; align-items: center;
  overflow: hidden;
}

/* ===== Homepage news in 5 themed columns (matches the awards/themes grid) ===== */
.news-by-theme {
  display: grid; gap: var(--gap-3);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 900px) { .news-by-theme { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .news-by-theme { grid-template-columns: repeat(2, 1fr); } }

.news-column { display: flex; flex-direction: column; gap: var(--gap-2); min-width: 0; }
.news-column .col-header {
  height: 52px; padding: 10px 12px;
  background: var(--card-accent, var(--brand-purple));
  color: var(--card-accent-ink, white);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; line-height: 1.2;
  display: flex; align-items: center;
}

/* Compact card used inside the 5-theme news columns — locked to a single
   uniform height so every card in the grid aligns perfectly across rows. */
.news-card-mini {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  color: inherit;
  /* Fixed total height: 16:9 thumb (~122 px on the 217 px column) + 96 px body */
  height: 220px;
}
.news-card-mini:hover {
  transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none;
  border-color: var(--card-accent, var(--brand-purple));
}
.news-card-mini .thumb {
  flex: 0 0 auto;
  aspect-ratio: 16/9;
  background: var(--brand-pale);
  background-size: cover; background-position: center;
  overflow: hidden;
  position: relative;
}
.news-card-mini .thumb > img,
.news-card-mini .thumb > a > img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  display: block;
}
/* BMS source (UT Faculty of Behavioural, Management and Social Sciences) ships
   highly compressed AVIFs; the SVG unsharp filter + paired contrast/saturate
   boost compensate for the loss of perceived detail. Matches the policy in
   build_dashboard.py (.is-bms .thumb img). */
.news-card-mini.is-bms .thumb img,
.news-card.is-bms .thumb img {
  filter: url(#bms-sharpen) contrast(1.12) saturate(1.10) brightness(1.02);
  image-rendering: -webkit-optimize-contrast;
}
/* Branded fallback tiles must occupy exactly the same image area as the article
   image so cards line up perfectly in the grid. */
.news-card-mini .thumb.thumb-fallback,
.news-card .thumb.thumb-fallback {
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-lavender), var(--brand-pale));
}
.news-card-mini .thumb.thumb-fallback img {
  max-width: 70%; max-height: 70%; width: auto; height: auto;
  object-fit: contain;
  background: white; padding: 6px 10px; border-radius: 4px;
}
.news-card-mini .body {
  flex: 1 1 auto;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
.news-card-mini .title {
  font-size: 0.78rem; font-weight: 600; line-height: 1.3; color: var(--ink);
  /* Reserve exactly 3 lines so cards line up regardless of title length */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  height: calc(3 * 0.78rem * 1.3); /* 3 lines × font-size × line-height */
}
.news-card-mini .meta-row {
  margin-top: auto;
  font-size: 0.7rem; color: var(--meta); display: flex; gap: 6px; align-items: center; flex-wrap: nowrap;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Date sits on its own line below the title, above the university name */
.news-card-mini .card-date {
  font-size: 0.72rem; color: var(--brand-purple-deep); font-weight: 600;
  line-height: 1.2; margin-top: 2px;
}
.news-card-mini .card-uni {
  margin-top: auto;
  font-size: 0.7rem; color: var(--meta);
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* News page intro (text + donut pie) */
.news-intro {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap-6);
  align-items: center;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--gap-5); margin-bottom: var(--gap-5);
}
.news-intro h2 { font-size: var(--fs-lg); margin-bottom: var(--gap-3); }
.news-intro p { color: var(--ink-soft); margin-bottom: var(--gap-3); max-width: 60ch; }
.news-intro .pie { display: flex; justify-content: center; }
@media (max-width: 900px) { .news-intro { grid-template-columns: 1fr; } }

/* News page filters */
.news-toolbar {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap-3);
  padding: var(--gap-4); background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: var(--gap-5);
}
.news-toolbar input, .news-toolbar select {
  width: 100%; padding: 0.55rem 0.75rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink);
}
.news-toolbar input:focus, .news-toolbar select:focus { outline: none; border-color: var(--brand-purple); }
.news-status { font-size: var(--fs-sm); color: var(--meta); margin-bottom: var(--gap-4); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap-4); }
.news-flat-grid {
  display: grid; gap: var(--gap-3);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 900px) { .news-flat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .news-flat-grid { grid-template-columns: repeat(2, 1fr); } }
.news-column .col-cards { display: flex; flex-direction: column; gap: var(--gap-2); }
.news-column .col-more { margin-top: var(--gap-3); text-align: center; }
.news-column .more-btn { background: white; border: 1px solid var(--line); color: var(--ink); width: 100%; }
.news-column .more-btn:hover { border-color: var(--card-accent, var(--brand-purple)); color: var(--card-accent, var(--brand-purple)); }
/* Default column layout on /news: 5 themes side-by-side (Generic excluded). */
#news-root { display: grid; gap: var(--gap-3); grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
#news-root .grid-more { grid-column: 1 / -1; margin-top: var(--gap-5); display: flex; justify-content: center; }
@media (max-width: 1100px) { #news-root { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { #news-root { grid-template-columns: repeat(2, 1fr); } }
#news-root.is-flat { display: block; }
#news-root.is-flat .news-column { display: none; }
#news-root.is-flat .grid-more { margin-top: var(--gap-5); text-align: center; }
#news-root.is-flat .news-flat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-3); }
@media (max-width: 1100px) { #news-root.is-flat .news-flat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { #news-root.is-flat .news-flat-grid { grid-template-columns: repeat(2, 1fr); } }
.single-theme-header {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--fs-md); letter-spacing: 0.01em;
  margin-bottom: var(--gap-3);
}

/* ========== Tables ========== */
table.data {
  width: 100%; border-collapse: collapse; font-size: var(--fs-sm);
  margin-bottom: var(--gap-5);
}
table.data th, table.data td {
  text-align: left; padding: var(--gap-3) var(--gap-4);
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  background: var(--bg-tint); font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.06em;
}
table.data tbody tr:hover { background: var(--bg-tint); }

/* ========== Filters bar ========== */
.filter-bar {
  display: flex; gap: var(--gap-2); flex-wrap: wrap; margin-bottom: var(--gap-5);
}
.chip {
  padding: 0.4rem 0.9rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-soft);
  cursor: pointer; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand-purple); color: var(--ink); }
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }

/* ========== Footer ========== */
.site-footer {
  background: var(--ink); color: #d0d4dc; padding-block: var(--gap-7);
  margin-top: var(--gap-8);
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--brand-lavender); }
.site-footer .columns {
  display: grid; gap: var(--gap-5);
  /* Condense the 3 nav columns so the partner column can hold both logos side-by-side
     at a readable size. */
  grid-template-columns: 1.4fr 0.85fr 0.7fr 0.7fr 2.5fr;
  align-items: start;
}
/* Condensed footer nav typography — frees horizontal room for the partner cards. */
.site-footer h4 { color: white; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--gap-2); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 4px; font-size: 0.82rem; line-height: 1.4; }
.site-footer ul li a { white-space: nowrap; }
.site-footer .bottom {
  margin-top: var(--gap-6); padding-top: var(--gap-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-3);
  font-size: var(--fs-xs); color: #8893a4;
}
.site-footer .funder-line {
  display: inline-flex; align-items: center; gap: var(--gap-2);
  background: rgba(255,255,255,0.04); padding: var(--gap-3) var(--gap-4);
  border-radius: var(--radius); margin-top: var(--gap-4);
}
/* Goldschmeding panel — rightmost column of the footer top row.
   The "Supported by" wording is already inside the artwork, so the white
   frame is kept minimal. */
/* ========== Footer partners — 5th column, two cards side-by-side ========== */
.site-footer .footer-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-2);
  align-items: stretch;
}
.site-footer .footer-partners .supported-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: white;
  padding: 10px 10px; border-radius: 8px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  /* equal height for both cards */
  min-height: 200px;
}
.site-footer .footer-partners .supported-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.15);
}
.site-footer .footer-partners img {
  width: 100%; max-width: 100%;
  display: block; object-fit: contain;
}
.site-footer .footer-partners .supported-card:not(.supported-card-ssh) img {
  /* Goldschmeding "Supported by" graphic — fill the card so the logo reads clearly */
  height: 130px;
}
.site-footer .footer-partners .supported-card-ssh img {
  height: 72px;
}
.site-footer .footer-partners .supported-caption {
  font-size: 0.62rem; font-weight: 700; color: var(--ink);
  letter-spacing: .3px; text-transform: uppercase; line-height: 1.2;
  text-align: center;
  white-space: nowrap;   /* keep label on a single line */
}
.site-footer .footer-partners .ssh-context {
  display: block;
  font-size: 0.6rem; font-weight: 500; color: var(--ink-soft);
  line-height: 1.35;
  text-align: center;
  text-transform: none; letter-spacing: 0;
  margin-top: 2px;
  max-width: 220px;
}
@media (max-width: 1100px) {
  /* When viewport is just under desktop max, stack the two cards so each remains readable */
  .site-footer .footer-partners { grid-template-columns: 1fr; }
  .site-footer .footer-partners .supported-card { min-height: 160px; }
  .site-footer .footer-partners .supported-card:not(.supported-card-ssh) img { height: 76px; }
  .site-footer .footer-partners .supported-card-ssh img { height: 52px; }
}

/* ========== Utilities ========== */
.tint { background: var(--bg-tint); }
.tint-soft { background: var(--brand-pale); }
.center { text-align: center; }
.mt-2 { margin-top: var(--gap-2); }
.mt-3 { margin-top: var(--gap-3); }
.mt-4 { margin-top: var(--gap-4); }
.mt-5 { margin-top: var(--gap-5); }
.mt-6 { margin-top: var(--gap-6); }
.mb-2 { margin-bottom: var(--gap-2); }
.mb-3 { margin-bottom: var(--gap-3); }
.mb-4 { margin-bottom: var(--gap-4); }
.mb-5 { margin-bottom: var(--gap-5); }
.mb-6 { margin-bottom: var(--gap-6); }

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  :root { --fs-2xl: 2rem; --fs-xl: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-toolbar { grid-template-columns: 1fr 1fr; }
  .site-footer .columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .primary-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--line);
    padding: var(--gap-3) var(--gap-5);
  }
  .site-header.open .primary-nav a { padding-block: var(--gap-3); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .news-strip { grid-template-columns: 1fr; }
  .news-toolbar { grid-template-columns: 1fr; }
  .site-footer .columns { grid-template-columns: 1fr; }
  .hero { padding-block: var(--gap-7) var(--gap-6); }
}

/* Laureate profile link — LinkedIn or research profile, placed beneath the meta row */
.laur-profile-link {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .35rem;
  padding: .35rem .7rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-purple-deep) 22%, transparent);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-purple-deep);
  text-decoration: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.laur-profile-link:hover {
  background: var(--brand-purple-deep);
  border-color: var(--brand-purple-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.laur-profile-link svg { flex: 0 0 auto; }

/* =====================================================================
   Laureate detail page — editorial article layout
   Picks up --laur-accent from the hero <section> (set per laureate to
   their theme colour). Magazine-grade reading rhythm: generous max-width,
   distinct lead/deck, theme-accent H2s, pull-quote support, and the
   Studio Wetenschap credit footer.
   ===================================================================== */
.laur-article {
  padding-block: var(--gap-7);
  background: var(--bg);
}
.laur-article .article-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--gap-4);
}
.laur-article .article-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--brand-purple-deep);
  margin-bottom: var(--gap-3);
}
.laur-article .article-deck {
  font-size: 1.22rem;            /* ~19.5px */
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 var(--gap-5);
  padding-bottom: var(--gap-4);
  border-bottom: 2px solid color-mix(in srgb, var(--laur-accent, var(--brand-purple-deep)) 35%, transparent);
}
.laur-article .article-body {
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.75;
  color: var(--ink);
}
.laur-article .article-body p {
  margin: 0 0 var(--gap-4);
}
.laur-article .article-body p:last-child { margin-bottom: 0; }
.laur-article .article-body h2 {
  font-size: 1.375rem;           /* 22px */
  font-weight: 700;
  color: var(--ink);
  margin: var(--gap-6) 0 var(--gap-3);
  padding-left: var(--gap-3);
  border-left: 4px solid var(--laur-accent, var(--brand-purple-deep));
  line-height: 1.3;
  scroll-margin-top: 100px;
}
.laur-article .article-body h2:first-child { margin-top: 0; }
.laur-article .article-body blockquote {
  margin: var(--gap-5) 0;
  padding: var(--gap-4) var(--gap-5);
  border-left: 4px solid var(--laur-accent, var(--brand-purple-deep));
  background: color-mix(in srgb, var(--laur-accent, var(--brand-purple-deep)) 7%, white);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
}
.laur-article .article-body blockquote p { margin-bottom: 0; }

/* Rich abstract — thesis title + meta line above the abstract deck */
.laur-article .article-thesis-title {
  font-size: 1.5rem;          /* ~24px */
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 var(--gap-2);
}
.laur-article .article-thesis-meta {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 var(--gap-4);
}

/* Editorial notice (when narrative is in other language) */
.laur-article .article-notice {
  margin: var(--gap-3) 0 var(--gap-5);
  padding: var(--gap-3) var(--gap-4);
  background: color-mix(in srgb, var(--laur-accent, var(--brand-purple-deep)) 8%, white);
  border: 1px dashed color-mix(in srgb, var(--laur-accent, var(--brand-purple-deep)) 35%, transparent);
  border-radius: var(--radius-sm, 8px);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.laur-article .article-notice strong { color: var(--ink); }

/* Studio Wetenschap credit footer */
.article-credit {
  margin: var(--gap-7) auto 0;
  max-width: 760px;
  padding: var(--gap-4) var(--gap-5);
  border: 1px solid color-mix(in srgb, var(--laur-accent, var(--brand-purple-deep)) 22%, transparent);
  background: color-mix(in srgb, var(--laur-accent, var(--brand-purple-deep)) 5%, white);
  border-radius: var(--radius, 12px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap-4);
  align-items: center;
}
.article-credit .yicco-mark {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--laur-accent, var(--brand-purple-deep)) 22%, transparent);
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.article-credit .yicco-mark:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,16,60,0.14); text-decoration: none; }
.article-credit .yicco-mark img {
  display: block;
  height: 38px; width: auto;
  max-width: none;
}
.article-credit .credit-body { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.55; }
.article-credit .credit-body strong { color: var(--ink); display: block; font-size: var(--fs-base); margin-bottom: 2px; }
.article-credit .credit-body a { color: var(--brand-purple-deep); font-weight: 600; }
.article-credit .credit-body a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .laur-article .article-wrap { padding-inline: var(--gap-3); }
  .laur-article .article-deck { font-size: 1.125rem; }
  .laur-article .article-body { font-size: 1rem; }
  .article-credit { grid-template-columns: 1fr; text-align: center; }
  .article-credit .sw-mark { justify-self: center; }
}
