/* ==========================================================================
   Research Group Schaper — site stylesheet
   Light, content-first design with a Université de Montréal blue accent.
   ========================================================================== */

:root {
  --blue: #0057ac;
  --blue-dark: #00407f;
  --blue-deep: #0a2547;
  --sky: #e9f2fc;
  --sky-2: #f4f8fd;
  --ink: #16212e;
  --muted: #536274;
  --line: #dbe4ee;
  --bg: #ffffff;
  --accent: #d9480f;
  --accent-soft: #fff1e8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 37, 71, .06), 0 6px 20px rgba(10, 37, 71, .06);
  --shadow-lg: 0 2px 4px rgba(10, 37, 71, .08), 0 14px 40px rgba(10, 37, 71, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --max: 1140px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #4d9cf0; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--blue-deep); }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.005em; }
h3 { font-size: 1.2rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 1em; }
sub, sup { line-height: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: #fff; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section.tint { background: var(--sky-2); border-block: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .9rem; margin-right: auto; }
.brand > a:first-child { flex: none; display: block; }
.brand-logo { height: 54px; width: auto; max-width: none; display: block; }
.brand-name { white-space: nowrap; text-decoration: none; color: var(--blue-deep); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.005em; }
.brand-name:hover { color: var(--blue-deep); }
.brand-name small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .72rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--sky); color: var(--blue-dark); }
.site-nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.site-nav a.ext::after { content: "\2197"; font-size: .8em; margin-left: .25em; opacity: .6; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff;
  font-size: .82rem; font-weight: 650; letter-spacing: .04em;
}
.lang-switch a, .lang-switch span {
  padding: .3rem .7rem; border-radius: 999px; text-decoration: none; line-height: 1.2;
}
.lang-switch span { background: var(--blue-deep); color: #fff; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--blue); background: var(--sky); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  width: 44px; height: 44px; cursor: pointer; color: var(--blue-deep);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1320px) { .brand-name small { display: none; } }
@media (max-width: 1200px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; padding: .75rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: .1rem; }
  .site-nav a { border-radius: var(--radius-sm); padding: .75rem .9rem; }
  .header-inner { gap: .75rem; }
}
@media (max-width: 520px) {
  .brand-name:hover { color: var(--blue-deep); }
.brand-name small { display: none; }
  .brand-logo { height: 36px; }
  .brand { gap: .5rem; min-width: 0; }
  .brand-name { white-space: normal; font-size: .95rem; line-height: 1.12; }
  .header-inner { gap: .5rem; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(77, 156, 240, .45), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(0, 87, 172, .55), transparent 60%),
    linear-gradient(160deg, var(--blue-deep), #0b3a73 60%, var(--blue));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 22px 22px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: #bcd9fb; margin-bottom: 1rem;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4rem); margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #dbe9fa; max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, .92); background: #fff;
  max-width: 360px; justify-self: end; width: 100%;
  transform: rotate(1.6deg);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 22%; }
.hero-photo.wide { max-width: 520px; }
.hero-photo.wide img { aspect-ratio: auto; height: auto; display: block; }
.hero-inner:has(.hero-photo.wide) { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 860px) {
  .hero-inner, .hero-inner:has(.hero-photo.wide) { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 280px; transform: none; }
  .hero-photo.wide { max-width: 100%; }
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--blue-deep); }
.btn-primary:hover { background: var(--sky); color: var(--blue-deep); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Page heading band ---------- */
.page-head {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
}
.page-head h1 { margin: 0; }
.page-head .sub { margin: .75rem 0 0; color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}
.card h3 { margin-bottom: .6rem; }
.info-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: .8rem; }
.info-card p { margin: 0 0 .25rem; }
.info-card address p { margin: 0; line-height: 1.6; }
.info-card address { font-style: normal; }

.cta-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--accent-soft); border: 1px solid #ffd2b8; border-left: 6px solid var(--accent);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.cta-banner h2 { font-size: 1.4rem; margin: 0; color: #7a2a05; }
.cta-banner .btn { background: var(--accent); color: #fff; }
.cta-banner .btn:hover { background: #b83b09; color: #fff; }

.calendar-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.calendar-wrap iframe { display: block; width: 100%; height: 620px; border: 0; }

/* ---------- Research ---------- */
.topic { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2.5rem; align-items: start; }
.topic.has-figure { grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); }
.topic.figure-left.has-figure { grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); }
.topic.figure-left .figure { order: -1; }
.topic.wide-figure.has-figure { grid-template-columns: 1fr; }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; background: #fff; }
.figure.contain img { object-fit: contain; }
@media (max-width: 860px) {
  .topic.has-figure, .topic.figure-left.has-figure { grid-template-columns: 1fr; }
  .topic.figure-left .figure { order: 0; }
}
.topic-block { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--line); }
.topic-block:last-child { border-bottom: 0; }
.subtopics { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.subtopic { background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.subtopic h3 { color: var(--blue); }
.subtopic .num { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: .5em; border-radius: 50%; background: var(--blue); color: #fff; font-size: .85em; font-weight: 700; }
.kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.25rem 0 .5rem; }

/* ---------- Publications ---------- */
.pubs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .1rem; }
.pub { display: grid; grid-template-columns: 2.6rem 1fr; gap: .25rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.pubs.compact .pub { padding: .6rem 0; }
.pub:last-child { border-bottom: 0; }
.pub-num {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem; color: var(--blue);
  background: var(--sky); border-radius: 6px; height: fit-content; text-align: center; padding: .15rem 0; margin-top: .15rem;
}
.pub-num.empty { display: none; }
.pub:has(> .pub-num.empty) { grid-template-columns: 1fr; }
.pub-title { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.45; }
.pubs.compact .pub-title { font-weight: 500; }
.pub-meta { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.pub-meta i, .pub-meta em { color: var(--ink); }
.pdf-link {
  display: inline-block; margin-left: .35rem; padding: .02rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--blue); color: #fff !important; text-decoration: none; letter-spacing: .03em; vertical-align: .08em;
}
.pdf-link:hover { background: var(--blue-dark); }
.pub-tag { display: inline-block; margin-right: .35rem; padding: 0 .5rem; border-radius: 999px; background: var(--accent-soft); color: #7a2a05; font-size: .75rem; font-weight: 700; }

.year-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.year-nav a, .chip {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.year-nav a:hover, a.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--sky); }
.filter-bar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.filter-bar input {
  flex: 1 1 280px; padding: .75rem 1rem .75rem 2.6rem; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23536274' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 1rem 50% no-repeat;
}
.filter-bar .count { color: var(--muted); font-size: .9rem; }
.pub-year { margin-top: 2.5rem; }
.pub-year > h2 { display: flex; align-items: baseline; gap: .75rem; border-bottom: 2px solid var(--blue); padding-bottom: .35rem; margin-bottom: .5rem; }
.pub-year > h2 small { font-family: var(--font); font-size: .85rem; color: var(--muted); font-weight: 500; }
.pub[hidden], .pub-year[hidden] { display: none; }
.data-list { display: grid; gap: .6rem; margin: 0; }
.data-list dd { margin: 0; color: var(--muted); font-size: .95rem; border-left: 3px solid var(--sky); padding-left: 1rem; }

/* ---------- Positions ---------- */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; background: #fff; box-shadow: var(--shadow); }
.facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--blue-deep); }
.facts dd { margin: 0; }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: .25rem; } }
.callout { background: var(--sky); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.callout h2 { font-size: 1.35rem; }
.note-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
@media (max-width: 760px) { .note-grid { grid-template-columns: 1fr; } }

/* ---------- Group ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.subnav a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.subnav a:hover { border-color: var(--blue); color: var(--blue); }
.subnav a[aria-current="page"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.member { text-align: center; padding: 1.5rem 1.25rem; }
.member a { text-decoration: none; color: inherit; }
.member h3 { margin: .9rem 0 .2rem; font-size: 1.1rem; }
.member a:hover h3 { color: var(--blue); }
.member p { margin: 0; color: var(--muted); font-size: .95rem; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-inline: auto; background: var(--sky);
  border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.avatar.initials { display: grid; place-items: center; font-weight: 700; font-size: 1.9rem; color: var(--blue); background: linear-gradient(135deg, var(--sky), #cfe3fa); }

.photo-year { margin-block: 2.75rem; }
.photo-year > h2 { border-bottom: 2px solid var(--blue); padding-bottom: .35rem; display: inline-block; padding-right: 2rem; }
.photo-caption { color: var(--muted); max-width: 70ch; margin: .9rem 0 0; }
.photo-frame { margin: 1rem 0 0; }
.photo-map { position: relative; display: inline-block; max-width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; background: #fff; }
.photo-map img { max-width: 100%; width: auto; max-height: 82vh; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid transparent; transition: border-color .15s, background .15s; z-index: 2;
}
.hotspot:hover, .hotspot:focus-visible { border-color: #fff; background: rgba(0, 87, 172, .22); box-shadow: 0 0 0 2px var(--blue); outline: none; }
.hotspot::after {
  content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: var(--blue-deep); color: #fff; font-size: .8rem; line-height: 1.3; padding: .3rem .6rem; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s;
}
.hotspot:hover::after, .hotspot:focus-visible::after { opacity: 1; }
span.hotspot { cursor: default; }
.in-photo { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.in-photo li { font-size: .88rem; }
.in-photo span.label { color: var(--muted); margin-right: .25rem; font-size: .88rem; }

.people { display: grid; gap: 1.25rem; }
.person {
  display: grid; grid-template-columns: 112px 1fr; gap: 1.25rem 1.5rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.person:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 172, .25), var(--shadow); }
.person-photo { width: 112px; height: 112px; border-radius: var(--radius-sm); object-fit: cover; background: var(--sky); }
.person-photo.initials { display: grid; place-items: center; font-weight: 700; font-size: 1.8rem; color: var(--blue); background: linear-gradient(135deg, var(--sky), #cfe3fa); }
.person h3 { margin: 0 0 .15rem; }
.person .affil { color: var(--muted); margin: 0 0 .6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; padding: 0; list-style: none; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: var(--sky); color: var(--blue-dark); }
.tag.when { background: var(--blue-deep); color: #fff; }
.tag.now { background: #e6f6ec; color: #17623a; }
.person .topic-line { margin: .25rem 0 .4rem; font-style: italic; }
.person .contact { margin: .4rem 0 0; font-size: .95rem; }
.person .contact a { margin-right: 1rem; }
.person details { margin-top: .8rem; }
.person summary { cursor: pointer; font-weight: 650; color: var(--blue); font-size: .95rem; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } }

/* Member profile pages */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 2rem 3rem; align-items: start; }
.profile-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.profile-photo.initials { aspect-ratio: 1; display: grid; place-items: center; font-size: 3.4rem; font-weight: 700; color: var(--blue); background: linear-gradient(135deg, var(--sky), #cfe3fa); }
.timeline { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 0 0 1.75rem; }
.timeline dt { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: 0; padding: 1.1rem 1.3rem; background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list dt { color: var(--muted); font-size: .9rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.interest-list { padding-left: 1.2rem; }
.interest-list > li { margin: 1.5rem 0 .5rem; font-weight: 650; font-size: 1.05rem; }
.interest-list > li::marker { color: var(--blue); }
.interest-pubs { margin-top: .75rem; font-weight: 400; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile-photo { max-width: 220px; } }

/* ---------- Teaching ---------- */
.course { margin-bottom: 2rem; }
.course h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.course h2 .code { font-family: var(--font); font-size: .9rem; font-weight: 700; background: var(--blue); color: #fff; padding: .2rem .7rem; border-radius: 6px; letter-spacing: .04em; }
.course .meta { color: var(--muted); font-style: italic; margin-bottom: .75rem; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.file-list a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: #fff; font-weight: 550; }
.file-list a:hover { border-color: var(--blue); background: var(--sky); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #c9d9ee; margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer h2 { font-family: var(--font); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb6e6; margin-bottom: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: #fff; margin: 0 0 .75rem; }
.footer-logo { height: 60px; width: auto; border-radius: 8px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.1rem; font-size: .85rem; color: #8fa8c8; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Index (language chooser) ---------- */
.chooser { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; background: linear-gradient(160deg, var(--blue-deep), var(--blue)); color: #fff; }
.chooser h1 { color: #fff; }
.chooser .btn { margin: .4rem; }

/* ---------- Print & motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .filter-bar, .year-nav, .subnav, .calendar-wrap, .hero::after { display: none !important; }
  body { font-size: 11pt; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
  a { color: #000; text-decoration: none; }
  .card, .person, .subtopic { box-shadow: none; }
}

/* ---- News on the home page (filled in by js/news.js; hidden when there is nothing to show) ---- */
[hidden] { display: none !important; }
.news-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 11rem 1fr; gap: .2rem 1.5rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item time { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; } }
