/* =========================================================================
   AICHIS — STYLES
   -------------------------------------------------------------------------
   Colour palette blends Chile (blue / red / white) and Sweden (blue / yellow).
   To retheme the whole site, edit the variables in :root below.
   ========================================================================= */

:root {
  --blue:        #0d3b8c;   /* primary — Chilean/Swedish blue          */
  --blue-dark:   #082a66;
  --red:         #d52b1e;   /* Chilean red                             */
  --yellow:      #f8c300;   /* Swedish yellow                          */
  --white:       #ffffff;
  --ink:         #1a2233;   /* body text                               */
  --muted:       #5b6474;
  --bg-alt:      #f4f7fc;   /* soft blue-tinted section background      */
  --border:      #e3e8f2;

  --radius:      14px;
  --shadow:      0 6px 24px rgba(13, 59, 140, 0.08);
  --shadow-lg:   0 12px 40px rgba(13, 59, 140, 0.14);
  --max:         1080px;
  --font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font);
}

/* --------------------------------- base --------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: var(--font-display); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* keyboard focus */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* -------------------------------- header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  max-width: 1240px; /* wider than the page content: 8 nav links need the room */
}

.brand {
  display: flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue);
}

.main-nav { margin-left: auto; }
.nav-links {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.nav-links a:hover {
  color: var(--blue);
  border-color: var(--red);
  text-decoration: none;
}

/* language switch */
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--blue);
  margin: 0 auto;
}

/* --------------------------------- hero --------------------------------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(248, 195, 0, 0.18), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--yellow) 66% 100%);
}
.hero-inner {
  padding: 92px 24px 96px;
  text-align: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.4rem);
  letter-spacing: 2px;
  margin-bottom: .25em;
}
/* wordmark echoes the logo's multicolour letters (light tones for navy bg) */
.hero-title .l-white  { color: #ffffff; }
.hero-title .l-blue   { color: #7db1ff; }
.hero-title .l-red    { color: #ff7a6f; }
.hero-title .l-yellow { color: var(--yellow); }
.hero-subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 1.8em;
}

/* buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(248, 195, 0, 0.35);
}
.btn-primary:hover { background: #ffd21f; }

/* ------------------------------- sections ------------------------------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: var(--blue);
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 54px; height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--red);
}
.section-lead {
  max-width: 720px;
  margin: 18px auto 44px;
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
}

/* about cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--blue); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* members roster */
.members-banner {
  margin: 0 0 40px;
}
.members-banner img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.members-banner figcaption {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 14px 0 0;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--red);
}
.member-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.member-avatar, .member-photo {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--red));
}
.member-name { font-size: 1.05rem; margin: 0; }
.member-name a { color: var(--ink); }
.member-name a:hover { color: var(--blue); }
.member-role { color: var(--red); font-weight: 600; font-size: .85rem; margin: 2px 0 0; }
.member-field { color: var(--ink); font-size: .92rem; margin: 0 0 2px; }
.member-inst { color: var(--muted); font-size: .85rem; margin: 0; }
.member-inst:empty { display: none; }

.member-contact { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.member-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--blue);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex: 0 0 auto;
}
.member-contact-icon:hover { background: var(--bg-alt); }

/* board */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.board-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.board-avatar, .board-photo {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
}
.board-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--red));
  border: 3px solid var(--yellow);
}
.board-name { font-size: 1.05rem; margin-bottom: 4px; }
.board-name a { color: var(--ink); }
.board-role { color: var(--red); font-weight: 600; font-size: .9rem; margin: 0 0 2px; }
.board-field { color: var(--ink); font-size: .85rem; margin: 6px 0 0; }
.board-inst { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.board-field:empty, .board-inst:empty { display: none; }

.board-history { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.board-history-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 22px;
}
.board-history-group + .board-history-group { margin-top: 28px; }
.board-history-year {
  font-weight: 700;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.board-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.board-history-card { padding: 18px 14px; }
.board-history-card .board-avatar,
.board-history-card .board-photo { width: 60px; height: 60px; font-size: 1.1rem; }
.board-history-card .board-name { font-size: .95rem; }
.board-history-card .board-field { font-size: .78rem; }
.board-history-card .board-inst { font-size: .76rem; }

/* explora nobel */
/* the edition under way: status text beside a short vertical clip */
.explora-now {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 36px;
  align-items: center;
}
.explora-status {
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.explora-status-label {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue);
}
.explora-status-text { margin: 0; }
.explora-video { margin: 0; }
.video-frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-frame-vertical { padding-top: 177.78%; /* 9:16, for YouTube Shorts */ }
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 14px 0 0;
}

/* editions — one tab per year, with that year's resources underneath */
.editions {
  margin: 44px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.edition {
  flex: 1 1 200px;
  max-width: 260px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
}
.edition-body {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  opacity: .72;
  transition: transform .15s, box-shadow .15s, opacity .15s, border-color .15s;
}
.edition:hover .edition-body { opacity: 1; transform: translateY(-3px); }
.edition:focus-visible { border-radius: var(--radius); }
/* the open tab */
.edition[aria-selected="true"] .edition-body {
  opacity: 1;
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.edition-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1;
}
.edition-label { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.edition-year::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--red);
}
.edition-panel {
  max-width: 760px;
  margin: 32px auto 0;
}

/* a year's resources, as a timeline (newest first) with preview pictures */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  position: relative;
}
.timeline::before { /* the vertical line */
  content: "";
  position: absolute;
  left: 6px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { /* the dot on the line */
  content: "";
  position: absolute;
  left: -30px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
}
.timeline-card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.timeline-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.timeline-thumb {
  flex: 0 0 200px;
  width: 200px;
  min-height: 132px;
  object-fit: cover;
  background: var(--bg-alt);
}
.timeline-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 50px 18px 22px;
}
.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--blue);
}
.timeline-desc { color: var(--muted); font-size: .93rem; }
.timeline-card:hover .resource-arrow { transform: translateY(-50%) translateX(4px); }
/* upcoming edition — yellow accent instead of blue */
.edition-upcoming .edition-body { border-top-color: var(--yellow); }
.edition-upcoming[aria-selected="true"] .edition-body { border-color: var(--yellow); }
.edition-upcoming .edition-year { color: var(--blue-dark); }
.edition-upcoming .edition-year::after { background: var(--yellow); }
/* on phones the year tabs stay side by side, in a compact form */
@media (max-width: 760px) {
  .editions { flex-wrap: nowrap; gap: 8px; margin-top: 32px; }
  .edition { flex: 1 1 0; min-width: 0; max-width: none; }
  .edition-body { padding: 12px 10px; }
  .edition-year { font-size: 1.15rem; }
  .edition-year::after { width: 6px; height: 6px; margin-left: 5px; }
  .edition-label { font-size: .76rem; line-height: 1.3; margin-top: 6px; }

  /* status first, clip underneath */
  .explora-now { grid-template-columns: 1fr; gap: 28px; }
  .explora-video { width: 100%; max-width: 270px; margin: 0 auto; }

  /* timeline cards stack: picture on top, text below */
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -24px; }
  .timeline-card { flex-direction: column; }
  .timeline-thumb { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .timeline-text { padding: 14px 16px 16px; }
  .timeline-card .resource-arrow { display: none; }
}

/* events — Luma calendar embed */
.events-frame {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.events-frame iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

/* chileans in sweden — map of current and past members */
.member-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.member-map-canvas {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.member-map-canvas svg {
  display: block;
  width: 100%;
  aspect-ratio: 128 / 284;
  max-height: 680px;
  cursor: zoom-in;
}
.map-zoom {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.map-zoom button {
  min-width: 34px; height: 34px;
  padding: 0 10px;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.map-zoom button:hover:not([disabled]) { border-color: var(--blue); }
.map-zoom button[disabled] { opacity: .4; cursor: default; }
.map-zoom .map-zoom-reset { font-size: .82rem; font-weight: 600; }
.map-zoom-hint { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .84rem; }
.map-pin { cursor: pointer; outline: none; }
.map-pin .pin-body { transform: scale(.42); transition: transform .15s; }
.map-pin:hover .pin-body,
.map-pin:focus-visible .pin-body,
.map-pin.is-active .pin-body { transform: scale(.6); }
.pin-bg { fill: var(--white); stroke: var(--blue); stroke-width: 1.6; }
.map-pin.is-active .pin-bg,
.map-pin:focus-visible .pin-bg { stroke: var(--red); stroke-width: 2.4; }
.map-pin.is-past .pin-bg { stroke: var(--muted); stroke-dasharray: 3 2; }
.map-pin.is-past .pin-body > g { filter: grayscale(.7); opacity: .7; }
.map-land { fill: #dfe7f5; stroke: var(--white); stroke-linejoin: round; }
.map-leaders line { stroke: var(--blue-dark); opacity: .45; }
.map-cities circle { fill: var(--blue-dark); }
/* a person's path: shown on hover / tap, other pins fade back */
.has-path .map-pin:not(.is-on-path) { opacity: .3; }
.has-path .map-leaders, .has-path .map-cities, .has-path .map-labels { opacity: .3; }
.map-path-line { stroke: var(--red); fill: none; stroke-linecap: round; }
.map-path-plant > circle { fill: var(--white); stroke: var(--red); stroke-width: 1.4; }
/* a person's journey on a small world map, on their card */
.map-world {
  margin: 4px 0 12px;
  background: #f7f9fd;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.map-world svg { display: block; width: 100%; }
button.map-world {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  cursor: zoom-in;
}
button.map-world:hover { border-color: var(--blue); }
.map-world-open {
  display: block;
  padding: 6px 10px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* the main map as a world viewer, while someone with an international path
   is selected: full width, with their card underneath */
.member-map { scroll-margin-top: 92px; }
.member-map.is-world { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.member-map.is-world .member-map-side { position: static; }
.member-map.is-world .map-filters { display: none; }
.world-view-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.world-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; }
.world-title strong { font-family: var(--font-display); font-size: 1.12rem; color: var(--blue-dark); }
.world-title span { color: var(--muted); font-size: .92rem; }
.world-back {
  padding: 6px 14px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
}
.world-back:hover { color: var(--white); background: var(--blue); }
.member-map-canvas svg.world-big {
  aspect-ratio: auto;
  max-height: 520px;
  background: #f7f9fd;
  border-radius: 10px;
  cursor: default;
}
.world-years { font-size: .88em; font-weight: 500; fill: var(--muted); }
.world-land path { fill: #dfe7f5; stroke: var(--white); stroke-linejoin: round; }
.world-land path.is-visited { fill: #9db5e3; }
.world-arrow { fill: none; stroke: var(--red); stroke-linecap: round; }
.world-arrow-head { fill: var(--red); }
.world-stop > circle { fill: var(--white); stroke: var(--red); stroke-width: 1.6; }
.world-labels text {
  font-family: var(--font);
  font-weight: 600;
  fill: var(--blue-dark);
  paint-order: stroke;
  stroke: var(--white);
  stroke-linejoin: round;
}
.map-what { display: flex; align-items: flex-start; gap: 6px; }
.map-what .plant-icon { flex: none; margin-top: 2px; }
.map-labels text {
  font-family: var(--font);
  font-weight: 600;
  fill: var(--blue-dark);
  paint-order: stroke;
  stroke: var(--white);
  stroke-linejoin: round;
}

.member-map-side { position: sticky; top: 92px; display: grid; gap: 20px; }
.map-filters { display: grid; gap: 10px; }
.map-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.map-filter > svg, .map-filter > .map-dot { flex: none; }
.map-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px 6px 8px;
  text-align: left;
  line-height: 1.3;
  font: inherit;
  font-size: .88rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color .15s, opacity .15s;
}
.map-filter:hover { border-color: var(--blue); }
.map-filter[aria-pressed="true"] {
  border-color: var(--blue);
  background: #e8eefa;
  box-shadow: inset 0 0 0 1px var(--blue);
}
.map-filter[aria-pressed="true"] .map-count { color: var(--white); background: var(--blue); }
.map-show-all {
  justify-self: start;
  padding: 2px 0;
  font: inherit;
  font-size: .88rem;
  color: var(--blue);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.map-show-all:hover { color: var(--red); }
.map-count {
  min-width: 22px;
  padding: 0 6px;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  color: var(--blue);
  background: var(--bg-alt);
  border-radius: 999px;
}
.map-dot {
  width: 12px; height: 12px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.map-dot.is-past { border: 2px dashed var(--muted); }

.map-detail { min-height: 160px; }
.map-hint {
  margin: 0;
  padding: 28px 24px;
  color: var(--muted);
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.map-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.map-card.is-past { border-left-color: var(--muted); }
.map-card .member-head { position: relative; }
.map-stage {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.map-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--bg-alt);
  border-radius: 999px;
}
.map-card.is-past .map-badge { color: var(--muted); }
.map-close {
  position: absolute;
  top: -8px; right: -10px;
  width: 32px; height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.map-close:hover { color: var(--red); background: var(--bg-alt); }
.map-subtitle {
  margin: 16px 0 6px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.map-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--border);
  font-size: .9rem;
}
.map-timeline li { position: relative; display: flex; gap: 10px; padding: 3px 0; }
.map-timeline li::before {
  content: "";
  position: absolute;
  left: -20px; top: 10px;
  width: 10px; height: 10px;
  background: var(--yellow);
  border-radius: 50%;
}
.map-when { flex: none; min-width: 74px; font-weight: 600; color: var(--ink); }
.map-empty { margin: 0; color: var(--muted); font-size: .9rem; font-style: italic; }

@media (max-width: 760px) {
  .member-map { grid-template-columns: 1fr; gap: 20px; }
  .member-map-canvas { padding: 12px; }
  .member-map-canvas svg { max-height: 560px; }
  .member-map-side { position: static; }
  .events-frame iframe { height: 600px; }
}

.section-cta { text-align: center; margin-top: 40px; }
/* quieter text link shown under a section's main button */
.cta-secondary {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-secondary:hover { color: var(--blue); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* resources */
.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.resource-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px 46px 24px 24px;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--red);
  text-decoration: none;
}
.resource-card h3 { color: var(--blue); font-size: 1.12rem; }
.resource-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.resource-arrow {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.3rem;
  transition: transform .15s;
}
.resource-card:hover .resource-arrow { transform: translateY(-50%) translateX(4px); }

/* collaborations — partner cards reuse the member card, with a logo tile */
.partners-grid { margin-bottom: 0; }
.partner-card { display: flex; flex-direction: column; }
.partner-card .member-head { align-items: flex-start; }
.partner-card .member-field { color: var(--muted); }
.partner-card .member-contact { margin-top: auto; }
.partner-card .member-field { margin-bottom: 12px; }
.partner-logo {
  flex: none;
  width: 60px; height: 60px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.empty-note { text-align: center; color: var(--muted); }

/* contact */
.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.contact-email {
  font-size: 1.05rem;
  letter-spacing: .3px;
}
/* social icons on a light background (contact section) */
.social-dark { margin: 0; }
.social-dark a {
  color: var(--blue);
  background: rgba(13, 59, 140, 0.08);
}
.social-dark a:hover {
  color: var(--white);
  background: var(--blue);
}

/* -------------------------------- footer -------------------------------- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 52px 0;
  border-top: 4px solid var(--yellow);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
}
.footer-logo { height: 46px; width: auto; }
.site-footer p { margin: 8px 0; }
.footer-brand p { color: rgba(255, 255, 255, 0.75); margin-top: 14px; }
.footer-meta { color: rgba(255, 255, 255, 0.5); font-size: .85rem; margin-top: 20px; }

/* social links */
.social {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transition: background .15s, color .15s, transform .12s;
}
.social a:hover {
  background: var(--yellow);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* contribute / open-science note */
.footer-contribute {
  padding-left: 56px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-contribute h3 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: .4em;
}
.footer-contribute p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 46ch; }
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 20px;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.footer-link::after { content: "\2192"; font-weight: 700; }
.footer-link:hover { text-decoration: none; transform: translateY(-2px); }

/* primary — high-contrast yellow (report an issue) */
.footer-link.primary {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 6px 16px rgba(248, 195, 0, 0.28);
}
.footer-link.primary:hover { background: #ffd21f; }

/* secondary — solid white (propose a change) */
.footer-link.secondary {
  background: var(--white);
  color: var(--blue-dark);
}
.footer-link.secondary:hover { background: #eef2fa; }

/* ------------------------------ responsive ------------------------------ */
/* nav collapses earlier than the general mobile breakpoint below: with 9
   links + the language switch, it gets crowded well before 760px. */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; order: 3; }
  .lang-switch { order: 2; }
  .main-nav { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 3px solid var(--yellow);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 600px; }
  .nav-links li { width: 100%; border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 24px; border: none; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-contribute {
    padding-left: 0;
    padding-top: 30px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}
