/* =====================================================================
   FTCC — Association des Entrepreneurs Taïwanais en France
   Layout: two-tier header (navy utility bar with Paris/Taipei clocks and the
   FR · EN · 中文 switch at top right, white brand/nav bar), left-aligned
   content on a 72rem grid, white sections alternating with a pale "mist" band.
   Identity comes from the emblem: France blue, star blue, Formosa yellow,
   a touch of tricolour red. Garamond (a Parisian face) meets Ming (明體).
   ===================================================================== */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif TC Sub";
  src: url("../fonts/noto-serif-tc-600.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}


:root {
  /* palette */
  --navy: #13224b;          /* ink navy: utility bar, footer, headings */
  --blue: #1f3a8a;          /* France blue of the emblem: links, marks */
  --star: #2a6fb8;          /* star blue */
  --gold: #f2c84b;          /* Formosa yellow: the island in the emblem */
  --red: #c8312b;           /* tricolour red, used sparingly */
  --bg: #ffffff;
  --surface: #f2f5fa;       /* mist band */
  --surface-2: #e6ecf6;
  --line: #d4dcea;
  --fg: #182136;
  --muted: #55607a;
  --heading: var(--navy);
  --link: var(--blue);
  --link-hover: #142b6e;
  --bar: var(--blue);
  --bar-hover: var(--star);
  --chrome: var(--navy);    /* utility bar + footer */
  --chrome-2: #0e1a3b;
  --on-chrome: #ffffff;
  --on-chrome-muted: #c3cde3;
  --tile: #ffffff;          /* white tiles behind logos */
  --date-tile: #13224b;     /* placeholder tile for events without photos */
  --btn-fg: #13224b;
  --focus: #f2c84b;
  --shadow: 0 1px 2px rgba(19, 34, 75, 0.06), 0 8px 24px rgba(19, 34, 75, 0.07);
  --overlay: rgba(9, 14, 30, 0.94);

  /* type */
  --font-display: "EB Garamond", "Noto Serif TC Sub", "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.55rem, 1.25rem + 1.1vw, 2.15rem);
  --step-3: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);

  /* layout */
  --wrap: 72rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section: clamp(3rem, 2rem + 4vw, 5.5rem);
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1327;
    --surface: #111b35;
    --surface-2: #17244a;
    --line: #283a66;
    --fg: #e7ecf6;
    --muted: #a8b3cb;
    --heading: #f1f4fb;
    --link: #a9c1ff;
    --link-hover: #d3e0ff;
    --bar: #8fb0ff;
    --bar-hover: #c2d4ff;
    --chrome: #080e20;
    --chrome-2: #050a17;
    --on-chrome: #f1f4fb;
    --on-chrome-muted: #aab6d1;
    --tile: #ffffff;
    --date-tile: #1d2c58;
    --btn-fg: #13224b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1327;
  --surface: #111b35;
  --surface-2: #17244a;
  --line: #283a66;
  --fg: #e7ecf6;
  --muted: #a8b3cb;
  --heading: #f1f4fb;
  --link: #a9c1ff;
  --link-hover: #d3e0ff;
  --bar: #8fb0ff;
  --bar-hover: #c2d4ff;
  --chrome: #080e20;
  --chrome-2: #050a17;
  --on-chrome: #f1f4fb;
  --on-chrome-muted: #aab6d1;
  --tile: #ffffff;
  --date-tile: #1d2c58;
  --btn-fg: #13224b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  overflow-wrap: break-word;
}
.lang-zh body, body.lang-zh { line-height: 1.85; letter-spacing: 0.02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); letter-spacing: -0.005em; }
h3 { font-size: var(--step-1); line-height: 1.25; }
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3 { letter-spacing: 0.04em; line-height: 1.3; }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 42rem; }
.prose h3 { margin-top: 1.8em; font-size: var(--step-2); }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--heading); font-weight: 600; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-mist { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.section-head p { color: var(--muted); max-width: 40rem; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: #13224b; padding: 0.6rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 2.9rem; padding: 0.55em 1.3em;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--gold); color: var(--btn-fg); }
.btn-primary:hover { background: #ffd866; color: var(--btn-fg); text-decoration: none; }
.btn-outline { border-color: currentColor; color: var(--heading); background: transparent; }
.btn-outline:hover { background: var(--surface-2); color: var(--heading); text-decoration: none; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.soon-note { font-size: var(--step--1); color: var(--muted); }
.soon-note[hidden] { display: none; }

/* ---------- header ---------- */
.topbar { background: var(--chrome); color: var(--on-chrome); font-size: 0.9375rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.clocks { display: flex; gap: 1.25rem; color: var(--on-chrome-muted); margin: 0; font-variant-numeric: tabular-nums; }
.clocks span { white-space: nowrap; }
.clocks b { color: var(--on-chrome); font-weight: 600; margin-left: 0.35em; }
.lang-switch { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.lang-switch a {
  color: var(--on-chrome); text-decoration: none; font-weight: 600;
  padding: 0.35rem 0.55rem; border-radius: 4px; line-height: 1;
  border-bottom: 2px solid transparent;
}
.lang-switch a:hover { background: rgba(255, 255, 255, 0.1); color: var(--on-chrome); }
.lang-switch a[aria-current="true"] { border-bottom-color: var(--gold); border-radius: 4px 4px 0 0; }
.lang-switch .sep { color: var(--on-chrome-muted); }

.masthead { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; gap: 1rem 2rem; min-height: 4.75rem; flex-wrap: wrap; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand:hover { color: var(--heading); }
.brand img { width: 3rem; height: 3rem; border-radius: 10px; background: var(--tile); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-short { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; letter-spacing: 0.04em; }
.brand-zh { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.18em; color: var(--muted); margin-top: 0.15rem; }
.menu-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: transparent; border: 2px solid var(--line); color: var(--heading);
  border-radius: var(--radius); padding: 0.45rem 0.8rem; font: 600 1rem var(--font-body); cursor: pointer;
}
.menu-toggle svg { width: 1.1rem; height: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: var(--fg); text-decoration: none; font-weight: 600; padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--link); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--gold); }
.site-nav .btn { min-height: 2.6rem; padding-inline: 1.1em; }

@media (max-width: 62rem) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-block: 0.5rem 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .no-js .site-nav { display: flex; }
}
@media (max-width: 30rem) {
  .clocks span + span { display: none; }
  .clocks { gap: 0.75rem; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(1.75rem, 1rem + 2vw, 2.75rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 1rem; font-size: var(--step-1); color: var(--muted); max-width: 44rem; line-height: 1.5; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.hero-sub { font-family: var(--font-display); font-size: var(--step-1); color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.01em; }
.hero h1 { font-size: var(--step-4); }
body.lang-zh .hero h1 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.4rem); letter-spacing: 0.12em; }
.hero-tagline { font-family: var(--font-display); font-size: var(--step-2); color: var(--blue); margin-top: 1.1rem; line-height: 1.25; }
:root[data-theme="dark"] .hero-tagline { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-tagline { color: var(--link); } }
.hero-lead { margin-top: 1.1rem; max-width: 36rem; color: var(--muted); }
.hero .btn-row { margin-top: 2rem; }
.hero-mark { display: flex; align-items: stretch; justify-content: center; gap: clamp(1rem, 0.5rem + 2vw, 2.25rem); }
.hero-emblem {
  width: min(100%, 23rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--tile); padding: 0.4rem; align-self: center;
}
.hero-emblem img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.vertical {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: "Noto Serif TC Sub", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 600; color: var(--heading);
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.25rem); letter-spacing: 0.24em; line-height: 1;
  padding-left: 0.9rem; border-left: 4px solid var(--gold);
  margin: 0; white-space: nowrap; align-self: center;
}
.vertical.is-tagline { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem); letter-spacing: 0.18em; }
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-emblem { width: min(46vw, 13rem); }
  .vertical { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem); }
  .vertical.is-tagline { font-size: clamp(1.4rem, 1rem + 2.4vw, 2rem); }
}

/* ---------- about + missions ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.about-grid h2 { margin-bottom: 1.5rem; }
.missions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.missions li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: center; padding: 1.25rem 1.25rem; background: var(--bg); }
.missions svg { width: 2.75rem; height: 2.75rem; color: var(--blue); }
:root[data-theme="dark"] .missions svg { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .missions svg { color: var(--link); } }
.missions h3 { font-size: var(--step-1); }
.missions-title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-bottom: 0.75rem; letter-spacing: 0.01em; }
.motto { margin-top: 1rem; font-family: var(--font-display); font-size: var(--step-1); color: var(--muted); }
@media (max-width: 52rem) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- people ---------- */
.avatar { width: 4.5rem; height: 4.5rem; flex: none; border-radius: 50%; background: var(--surface-2); }
.avatar-lg { width: 7.5rem; height: 7.5rem; }
.avatar-sm { width: 2.75rem; height: 2.75rem; }
.avatar-xl { width: clamp(7.5rem, 6rem + 5vw, 10rem); height: clamp(7.5rem, 6rem + 5vw, 10rem); }
.avatar.is-photo { object-fit: cover; object-position: center 30%; background: var(--surface-2); }
.person { display: flex; align-items: center; gap: 1rem; }
.nowrap { white-space: nowrap; }
.person-name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--heading); line-height: 1.2; }
.person-zh { font-family: var(--font-display); color: var(--muted); letter-spacing: 0.1em; margin-left: 0.4em; font-weight: 600; }
.person-role { color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem; }
.leaders-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.leaders-grid h2 { margin-bottom: 1.5rem; }
.bureau-card {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); text-decoration: none; color: inherit;
}
.bureau-card:hover { border-color: var(--blue); color: inherit; }
.bureau-card .person-zh { display: block; margin: 0.1rem 0 0.35rem; }
.bureau-card .person-role { font-size: var(--step-0); color: var(--fg); }
.bureau-card .person-term { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 52rem) { .leaders-grid { grid-template-columns: 1fr; } }
/* bureau: team photo + roles */
.bureau-figure { margin: 0 0 1.25rem; }
.bureau-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.bureau-list { margin: 0; display: grid; }
.bureau-list > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.25rem 1rem; align-items: center; padding-block: 0.75rem; border-top: 1px solid var(--line); }
.bureau-list > div:first-child { border-top: 0; }
.bureau-list dt { color: var(--muted); font-size: var(--step--1); }
.bureau-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; }
.bureau-person { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.bureau-person .person-name { font-size: 1.15rem; display: block; }
.bureau-person .person-zh { margin: 0; font-size: 0.95rem; display: block; }
.bureau-person:hover .person-name { color: var(--link); text-decoration: underline; }
.bureau-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.12em; color: var(--heading); }
@media (max-width: 30rem) { .bureau-list > div { grid-template-columns: 1fr; } }

/* honorary presidents: a real sequence of terms */
.terms { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.terms li { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.55rem 0 0.55rem 1.25rem; align-items: baseline; }
.terms li::before {
  content: ""; position: absolute; left: -0.42rem; top: 1.05rem; width: 0.7rem; height: 0.7rem;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--bg);
}
.section-mist .terms li::before { box-shadow: 0 0 0 3px var(--surface); }
.term { font-family: var(--font-display); color: var(--muted); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.terms .who { font-weight: 600; }
.terms .who [lang] { font-family: var(--font-display); font-weight: 600; color: var(--muted); margin-left: 0.4em; letter-spacing: 0.08em; }
.honor-note { color: var(--muted); font-size: var(--step--1); margin: -0.75rem 0 1.25rem; }
@media (max-width: 30rem) { .terms li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- event cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 0.6rem; }
.card-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-date { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a:hover { color: var(--link); text-decoration: underline; }
.card p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 56rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .cards { grid-template-columns: 1fr; } }

/* typographic placeholder for events without photos */
.date-tile {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem 1.1rem; background: var(--date-tile); color: #ffffff;
  background-image: linear-gradient(135deg, transparent 0 62%, rgba(242, 200, 75, 0.16) 62% 64%, transparent 64%);
}
.date-tile .d { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 0.9; font-weight: 600; }
.date-tile .m { color: #f2c84b; font-weight: 600; margin-top: 0.35rem; font-size: 0.95rem; }

/* ---------- join band ---------- */
.band { background: var(--chrome); color: var(--on-chrome); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.band h2 { color: var(--on-chrome); font-size: var(--step-3); }
.band p { color: var(--on-chrome-muted); margin-top: 0.75rem; max-width: 40rem; }
.band .btn-outline { color: var(--on-chrome); }
.band .btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: var(--on-chrome); }
.band .soon-note { color: var(--on-chrome-muted); }
@media (max-width: 52rem) { .band-inner { grid-template-columns: 1fr; } }

/* ---------- partners ---------- */
.partner-strip { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.partner-strip a {
  display: flex; align-items: center; justify-content: center; width: 7.5rem; height: 7.5rem; padding: 0.9rem;
  background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius);
}
.partner-strip a:hover { border-color: var(--blue); }
.partner-strip img { max-height: 100%; width: auto; object-fit: contain; }

/* ---------- events index ---------- */
.year-group { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem 2.5rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.year-group:first-of-type { border-top: 0; padding-top: 0; }
.past-title { font-size: var(--step-2); margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.year-label { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; color: var(--heading); line-height: 1; }
.year-label span { position: sticky; top: 1.5rem; display: block; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.event-row { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.event-row .card-media { aspect-ratio: 4 / 3; }
.event-row h3 { font-size: var(--step-2); }
.event-row h3 a { color: var(--heading); text-decoration: none; }
.event-row h3 a:hover { color: var(--link); text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--muted); font-size: var(--step--1); margin-bottom: 0.4rem; }
.badge { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--surface-2); color: var(--heading); }
.event-row p.summary { margin-top: 0.6rem; color: var(--fg); max-width: 40rem; }
@media (max-width: 52rem) {
  .year-group { grid-template-columns: 1fr; gap: 1.25rem; }
  .year-label span { position: static; }
  .event-row { grid-template-columns: 1fr; }
  .event-row .card-media { max-width: 26rem; }
}

/* ---------- upcoming events: promotion cards (home page + events page) ---------- */
.upcoming .section-head > div { max-width: 46rem; }
.upcoming .section-head p { margin-top: 0.6rem; }
.promos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); }
.promo { display: flex; flex-direction: column; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.promo-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--date-tile); isolation: isolate; }
.promo-backdrop { position: absolute; inset: -10%; z-index: -1; background-size: cover; background-position: center; filter: blur(22px) saturate(1.2); opacity: 0.55; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.promo:hover .promo-media img { transform: scale(1.02); }
.promo-media .date-tile { position: absolute; inset: 0; height: auto; }
.promo-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.promo-line { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
.promo-line .ico { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.12rem; color: var(--blue); }
.promo-when { color: var(--heading); }
.promo-when strong { font-weight: 600; }
.promo-hours { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.promo h3 { font-size: var(--step-1); margin-top: 0.25rem; }
.promo h3 a { color: var(--heading); text-decoration: none; }
.promo h3 a:hover { color: var(--link); text-decoration: underline; }
.promo-tag { align-self: flex-start; font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--heading); background: rgba(242, 200, 75, 0.2); border: 1px solid rgba(242, 200, 75, 0.85); padding: 0.15rem 0.65rem; border-radius: 0.75rem; }
.promo .btn-row { margin-top: auto; padding-top: 0.6rem; gap: 0.5rem; }
.promo .btn { flex: 1 1 auto; min-height: 2.6rem; padding-inline: 1em; font-size: 1rem; }
:root[data-theme="dark"] .promo-line .ico { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .promo-line .ico { color: var(--link); } }
@media (max-width: 60rem) {
  .promos { grid-template-columns: minmax(0, 1fr); }
  .promo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .promo-media { aspect-ratio: auto; min-height: 16rem; }
}
@media (max-width: 36rem) {
  .promo { display: flex; }
  .promo-media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---------- event detail ---------- */
.event-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 1.25rem; }
.event-facts div { display: flex; flex-direction: column; }
.event-facts dt { font-size: var(--step--1); color: var(--muted); }
.event-facts dd { margin: 0; font-weight: 600; color: var(--heading); }
.event-facts .addr { display: block; font-weight: 400; color: var(--fg); }
.event-facts .map-link { display: inline-block; margin-top: 0.1rem; font-size: var(--step--1); }
.page-head .lead + .event-facts { margin-top: 1.5rem; }
.event-cta { margin-top: 1.75rem; }
.badge-upcoming { background: var(--gold); color: #13224b; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.event-layout.no-figure { grid-template-columns: minmax(0, 1fr); }
.event-figure { margin: 0; }
@media (min-width: 56.01rem) { .event-layout .event-figure { position: sticky; top: 1.5rem; } }
.page-head h1.h1-long { font-size: var(--step-3); }
.event-figure a { cursor: zoom-in; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; }
.event-figure img { width: 100%; border-radius: var(--radius); }
@media (max-width: 56rem) { .event-layout { grid-template-columns: 1fr; } .event-figure { order: -1; } }
.program { margin-top: 2.5rem; max-width: 46rem; }
.program h2, .gallery-block h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.program table { width: 100%; border-collapse: collapse; }
.program th, .program td { text-align: left; vertical-align: top; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.program th { width: 9.5rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 1rem; }
@media (max-width: 30rem) { .program th { width: auto; white-space: normal; } .program tr { display: grid; } .program td { border-top: 0; padding-top: 0; } }
.ext-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.gallery-block { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: 0.6rem; }
.gallery a { display: block; width: 100%; background: var(--surface-2); border-radius: 4px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.gallery a:hover img { opacity: 0.85; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 0.2rem; }
.pager a span { color: var(--muted); font-size: var(--step--1); }
.pager a strong { font-family: var(--font-display); font-size: var(--step-1); color: var(--heading); font-weight: 600; line-height: 1.25; }
.pager a:hover strong { color: var(--link); text-decoration: underline; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: var(--overlay); color: #fff; }
.lightbox::backdrop { background: var(--overlay); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; gap: 1rem; }
.lb-count { font-variant-numeric: tabular-nums; color: #c9d2e6; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 0.75rem; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: 0.75rem; padding: 0.75rem 1rem 1.25rem; }
.lb-btn { background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: var(--radius); padding: 0.6rem 1.1rem; font: 600 1rem var(--font-body); cursor: pointer; min-width: 3rem; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- members ---------- */
.profiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.profile-card {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: center; height: 100%;
  padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--bg);
}
.profile-card:hover { border-color: var(--blue); color: inherit; }
.profile-card .avatar { width: 4rem; height: 4rem; }
.profile-card .person-name { font-size: 1.2rem; }
.profile-card .person-zh { display: block; margin: 0.1rem 0 0; font-size: 1rem; }
.profile-card .person-role { margin-top: 0.3rem; line-height: 1.4; }
.chart-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .chart-block { grid-template-columns: 1fr; } }
.bars { width: 100%; border-collapse: separate; border-spacing: 0 2px; position: relative; }
.bars caption { text-align: left; color: var(--muted); font-size: var(--step--1); caption-side: bottom; padding-top: 0.75rem; }
.bars th { text-align: left; font-weight: 600; padding: 0.3rem 1rem 0.3rem 0.5rem; white-space: nowrap; width: 1%; font-size: 1rem; color: var(--fg); border-radius: 4px 0 0 4px; }
.bars td { padding: 0.3rem 0.5rem 0.3rem 0; border-radius: 0 4px 4px 0; }
.bars tr:hover th, .bars tr:hover td, .bars tr:focus-within th, .bars tr:focus-within td, .bars tr.is-active th, .bars tr.is-active td { background: var(--surface); }
.bar-track { display: flex; align-items: center; gap: 0.6rem; outline: none; }
.bar { display: block; height: 1.125rem; min-width: 2px; background: var(--bar); border-radius: 0 4px 4px 0; transition: background-color .15s ease; }
.bars tr.is-other .bar { background: var(--muted); opacity: 0.55; }
.bars tr:hover .bar, .bars tr.is-active .bar { background: var(--bar-hover); }
.bar-value { font-variant-numeric: tabular-nums; color: var(--fg); font-size: 1rem; white-space: nowrap; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--bg); color: var(--fg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.45rem 0.7rem; font-size: 0.95rem; line-height: 1.3; white-space: nowrap;
}
.chart-tip strong { display: block; font-size: 1.05rem; color: var(--heading); }
.chart-wrap { position: relative; overflow-x: auto; }
.name-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.25rem 1rem; }
.name-grid li { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.12em; padding-block: 0.4rem; border-bottom: 1px solid var(--line); color: var(--fg); }
.name-grid a { color: var(--link); }
/* member list: Latin + Mandarin names (Mandarin first on the zh page) */
.name-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 0 1.75rem; }
.name-list li { padding-block: 0.6rem; border-bottom: 1px solid var(--line); line-height: 1.35; }
.name-list .nm-latin { font-weight: 600; color: var(--fg); }
.name-list .nm-zh { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; color: var(--muted); margin-left: 0.55em; white-space: nowrap; }
.name-list.is-zh .nm-zh { margin-left: 0; color: var(--fg); font-size: 1.15rem; }
.name-list.is-zh .nm-latin { margin-left: 0.6em; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.name-list a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.name-list a:hover { text-decoration-thickness: 2px; }
.name-list a .nm-latin, .name-list a .nm-zh { color: inherit; }
/* QR code (e.g. from a business card) */
.qr-code { width: 9rem; height: 9rem; padding: 0.45rem; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); }

/* profile page */
.profile-head { display: flex; align-items: center; gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); flex-wrap: wrap; }
.profile-head h1 { font-size: var(--step-3); }
.profile-head .person-zh { font-size: var(--step-2); display: inline-block; margin: 0.25rem 0 0; letter-spacing: 0.15em; }
.profile-company { margin-top: 0.6rem; color: var(--muted); font-size: var(--step-1); }
.portrait-note { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.facts { margin: 0; display: grid; gap: 1.1rem; }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--heading); }
.facts dd a { font-weight: 600; word-break: break-all; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.roles li { padding-left: 1.1rem; position: relative; }
.roles li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 0.45rem; background: var(--gold); border-radius: 1px; transform: rotate(45deg); }
.block + .block { margin-top: 2.5rem; }
.block h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.letter { border-left: 4px solid var(--gold); padding-left: clamp(1rem, 0.5rem + 2vw, 2rem); }
@media (max-width: 52rem) { .profile-layout { grid-template-columns: 1fr; } }

/* ---------- join: three steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); }
.step { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; padding: 1.5rem 1.4rem 1.6rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--gold); color: #13224b; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.step h3 { font-size: var(--step-1); }
.step .btn-row { margin-top: auto; padding-top: 0.5rem; gap: 0.5rem; }
.step .btn { flex: 1 1 auto; }
.step-note { font-size: var(--step--1); color: var(--muted); }
.join-after { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 1.5rem 3rem; align-items: center; margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.renew { display: grid; gap: 0.75rem; justify-items: start; padding: 1.2rem 1.4rem; background: var(--bg); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.join-question { margin-top: 1.75rem; }
@media (max-width: 60rem) { .steps, .join-after { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FTCCJC ---------- */
.jc-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.jc-logo { background: var(--tile); border-radius: 50%; padding: 1rem; max-width: 18rem; justify-self: center; }
@media (max-width: 52rem) { .jc-intro { grid-template-columns: 1fr; } .jc-logo { order: -1; max-width: 11rem; justify-self: start; } }
/* FTCCJC board: stacked rows on phones, centred cards from 40rem (a short last row stays centred) */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.people li { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.people .avatar { width: 3.5rem; height: 3.5rem; }
.people-text { display: flex; flex-direction: column; min-width: 0; }
.people .person-zh { display: block; margin: 0.1rem 0 0; font-size: 0.95rem; line-height: 1.65; min-height: 1.65em; }
.people .person-role { margin-top: 0.2rem; line-height: 1.35; }
@media (min-width: 40rem) {
  .people { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .people li { flex: 0 1 12.5rem; flex-direction: column; text-align: center; gap: 0.85rem; padding: 1.5rem 1rem 1.35rem; }
  .people .avatar { width: 4.5rem; height: 4.5rem; }
}
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; }
.checklist svg { width: 1.4rem; height: 1.4rem; color: var(--blue); margin-top: 0.2rem; }
:root[data-theme="dark"] .checklist svg { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checklist svg { color: var(--link); } }
.figures { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 0.5rem; padding: 0; list-style: none; }
.figures li { display: flex; align-items: baseline; gap: 0.5rem; }
.figures b { font-family: var(--font-body); font-size: 2.4rem; font-weight: 600; color: var(--heading); line-height: 1; }
.figures span { color: var(--muted); }

/* ---------- links page ---------- */
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.partner-item { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1.25rem 1.75rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.partner-logo { width: 6.5rem; height: 6.5rem; display: flex; align-items: center; justify-content: center; background: var(--tile); border-radius: var(--radius); padding: 0.6rem; border: 1px solid var(--line); }
.partner-logo img { max-height: 100%; width: auto; object-fit: contain; }
.partner-logo.text { font-family: var(--font-display); font-weight: 700; color: #13224b; font-size: 1.05rem; letter-spacing: 0.03em; }
.partner-item h2 { font-size: var(--step-1); line-height: 1.25; }
.partner-item .sub { color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem; }
.partner-item .text { margin-top: 0.4rem; }
@media (max-width: 44rem) { .partner-item { grid-template-columns: 4.5rem minmax(0, 1fr); } .partner-logo { width: 4.5rem; height: 4.5rem; } .partner-item .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- join / contact ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.benefits li { background: var(--bg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.benefits svg { width: 2.5rem; height: 2.5rem; color: var(--blue); }
:root[data-theme="dark"] .benefits svg { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .benefits svg { color: var(--link); } }
.benefits b { font-family: var(--font-display); font-size: var(--step-2); color: var(--heading); font-weight: 600; display: block; line-height: 1.1; }
@media (max-width: 44rem) { .benefits { grid-template-columns: 1fr; } }
.cta-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--surface); }
.cta-panel h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.cta-panel .btn-row { margin-top: 1.25rem; }
.address-block { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.address-block h2 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.address-block address { font-style: normal; font-weight: 600; color: var(--heading); line-height: 1.6; }
.address-block .muted { margin-top: 0.5rem; font-size: var(--step--1); }
.banner-figure { margin: 0; }
.banner-figure img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--chrome); color: var(--on-chrome-muted); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 4.5rem; height: 4.5rem; border-radius: 12px; background: var(--tile); flex: none; }
.footer-names { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-names .n1 { font-family: var(--font-display); color: var(--on-chrome); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.footer-names .n2 { font-family: var(--font-display); color: var(--on-chrome); font-size: 1.1rem; }
.footer-names .is-zh { letter-spacing: 0.15em; }
.footer-names .n3 { font-size: 0.95rem; }
.footer-about { margin-top: 1rem; font-size: 0.95rem; max-width: 26rem; }
.footer-address { margin-top: 0.6rem; font-size: 0.95rem; max-width: 26rem; color: var(--on-chrome); }
.site-footer h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--on-chrome); margin-bottom: 0.75rem; letter-spacing: 0.01em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--on-chrome); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--btn-fg); text-decoration: none; }
.footer-cta { display: grid; gap: 0.9rem; justify-items: start; align-content: start; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.1rem; font-size: 0.9rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(3rem, 2rem + 6vw, 7rem); }
.notfound .langs { display: grid; gap: 2rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.notfound h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.notfound p + p { margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .masthead nav, .menu-toggle, .band, .site-footer, .gallery-block { display: none !important; }
  body { font-size: 11pt; }
}
