/* =========================================================
   ISAP — Uluslararası Öğrenci Kuruluşları Platformu
   Style: Swiss Modernism 2.0 · grid-driven, rational, warm accent
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand (measured from the official ISAP logo vector file) */
  --brand-blue: #65BDC6;     /* logo teal (right figure), decorative only */
  --brand-green: #62A27B;    /* logo green (left figure), decorative only */
  --brand-red: #93233B;      /* logo burgundy (open book), 8:1 on white */
  --brand-black: #0F2E33;    /* deep teal ink */

  /* Color — light */
  --c-bg: #F4F8F8;
  --c-surface: #FFFFFF;
  --c-surface-2: #E6F3F4;
  --c-fg: #10242A;
  --c-fg-muted: #4A5F64;
  --c-border: #D3E3E5;
  --c-primary: #146B74;      /* deep logo teal, 6.2:1 on white */
  --c-primary-hover: #0E5259;
  --c-on-primary: #FFFFFF;
  --c-accent: #93233B;       /* logo burgundy */
  --c-on-accent: #FFFFFF;
  --c-green: #2E6B4A;        /* deep logo green, secondary text 6.3:1 */
  --c-highlight: #65BDC6;
  --c-on-highlight: #0F2E33;
  --c-alert-bg: #FBEFF1;
  --c-alert-border: #E3B3BE;
  --c-error: #B42318;
  --c-success: #2E7A48;
  --c-ink: #0F2E33;          /* dark band */
  --c-ink-2: #164047;
  --c-on-ink: #EAF5F6;
  --c-on-ink-muted: #A9C6CA;
  --c-ring: #93233B;
  --c-input-border: #6E8589;    /* ≥3:1 against page and card backgrounds (WCAG 1.4.11) */

  /* Type */
  --f-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

  /* Space (8pt) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  /* Shape & depth */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgb(15 46 51 / .06), 0 1px 1px rgb(15 46 51 / .04);
  --sh-2: 0 10px 30px -12px rgb(15 46 51 / .18);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t-med: 260ms;

  /* Layers */
  --z-header: 40;
  --z-menu: 50;

  --header-h: 72px;
  --seq-1: #CFEBEE; --seq-2: #7FC7CF; --seq-3: #2A8F99; --seq-4: #0F5E66;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #071416;
    --c-surface: #0D2124;
    --c-surface-2: #133034;
    --c-fg: #E8F3F4;
    --c-fg-muted: #A3BDC1;
    --c-border: #21434A;
    --c-primary: #65BDC6;
    --c-primary-hover: #8BD3DA;
    --c-on-primary: #06191C;
    --c-accent: #E58FA2;
    --c-on-accent: #06191C;
    --c-green: #8FCFA8;
    --c-alert-bg: #2A1218;
    --c-alert-border: #6B2A3A;
    --c-error: #FF8A80;
    --c-success: #7DD39C;
    --c-ink: #041012;
    --c-ink-2: #0D2124;
    --c-ring: #65BDC6;
    --c-input-border: #557A80;
    --sh-1: 0 1px 2px rgb(0 0 0 / .4);
    --sh-2: 0 14px 34px -14px rgb(0 0 0 / .6);
    --seq-1: #164A50; --seq-2: #2A7F88; --seq-3: #5FB7C1; --seq-4: #BFE6EA;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-primary); color: var(--c-on-primary);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; letter-spacing: .005em;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-primary .icon { transition: transform var(--t-fast) var(--ease-out); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost { border-color: var(--c-border); background: var(--c-surface); color: var(--c-fg); }
.btn-ghost:hover { border-color: var(--c-fg); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--c-bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med);
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }

.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; margin-right: auto; min-width: 0; }
.site-header .container { max-width: 1440px; }
.brand-mark { flex: none; display: block; }
.brand-mark img { width: auto; height: 44px; }
.brand-sub {
  flex: none; padding-left: var(--s-3); border-left: 1.5px solid var(--c-border);
  font-size: .8125rem; font-weight: 600; line-height: 1.3; color: var(--c-fg-muted);
}
@media (min-width: 1361px) { .brand-sub { display: none; } }
@media (max-width: 640px) { .brand-mark img { height: 34px; } .brand-sub { display: none; } }

.main-nav { display: flex; align-items: center; gap: var(--s-4); }
.nav-cta { white-space: nowrap; }
.main-nav ul { display: flex; list-style: none; gap: var(--s-1); }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--c-fg-muted); white-space: nowrap;
  border-radius: var(--r-sm); position: relative; transition: color var(--t-fast);
}
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"]:not(.btn) { color: var(--c-fg); }
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-primary); }
.main-nav a[aria-current="page"]:not(.btn) { font-weight: 600; }
.main-nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px; height: 2px;
  background: var(--c-accent); border-radius: 2px;
}

.header-tools { display: flex; align-items: center; gap: var(--s-2); }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-surface); }
.lang-switch button {
  min-width: 44px; min-height: 38px; border: 0; background: transparent; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--c-fg-muted); cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lang-switch button[aria-pressed="true"] { background: var(--c-fg); color: var(--c-bg); }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-surface); cursor: pointer;
}


@media (max-width: 1360px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: var(--s-4);
    padding: var(--s-4) clamp(16px, 4vw, 40px) var(--s-6);
    background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: var(--sh-2);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { display: flex; font-size: var(--fs-lg); color: var(--c-fg); min-height: 52px; border-bottom: 1px solid var(--c-border); border-radius: 0; padding: 0; }
  .main-nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .main-nav a[aria-current="page"]:not(.btn) { color: var(--c-primary); }
  .nav-cta { min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; }

/* ---------- Home hero: fixed intro + Türkiye map ---------- */
.hero--home { padding-top: clamp(var(--s-6), 5vw, var(--s-8)); padding-bottom: clamp(var(--s-6), 4vw, var(--s-7)); isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 360px at 88% 18%, color-mix(in srgb, var(--brand-blue) 22%, transparent), transparent 70%),
    radial-gradient(420px 320px at 70% 85%, color-mix(in srgb, var(--brand-green) 16%, transparent), transparent 70%),
    radial-gradient(380px 260px at 5% 0%, color-mix(in srgb, var(--brand-red) 7%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--c-fg) 9%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-title { font-size: clamp(2rem, 1.1rem + 2.2vw, 3.125rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero-title em {
  font-style: normal; white-space: nowrap; color: var(--c-primary);
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--c-highlight) 45%, transparent) 64%, color-mix(in srgb, var(--c-highlight) 45%, transparent) 92%, transparent 92%);
}
.hero--home > .hero-grid { max-width: 1360px; }
.hero--home .hero-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(var(--s-5), 3vw, var(--s-7)); align-items: center; }
.hero--home .lead { max-width: 52ch; font-size: var(--fs-md); }
.hero--home .hero-actions { flex-wrap: nowrap; gap: var(--s-2); }
.hero--home .hero-actions .btn-lg { min-height: 48px; padding: 0 var(--s-5); font-size: var(--fs-sm); white-space: nowrap; }
.hero-map { margin: 0; position: relative; }
.map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-2); }
.map-title-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); font-weight: 700; font-size: var(--fs-md); }
.map-live { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-red) 50%, transparent); animation: live 2s var(--ease-out) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-red) 50%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.map-period { color: var(--c-fg-muted); font-weight: 600; }
.map-legend { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); }
.map-legend-bar { width: 140px; height: 10px; border-radius: var(--r-pill); background: linear-gradient(90deg, color-mix(in srgb, var(--brand-green) 14%, var(--c-surface)), var(--c-primary)); }
.map-tip {
  position: absolute; z-index: 5; transform: translate(-50%, -100%); pointer-events: none;
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; white-space: nowrap;
  background: var(--c-fg); color: var(--c-bg); box-shadow: var(--sh-2); font-size: var(--fs-sm);
}
.map-tip strong { font-weight: 800; }
.map-tip span { opacity: .85; font-variant-numeric: tabular-nums; }
.map-tip[hidden] { display: none; }
.tr-map { display: block; width: 100%; height: auto; overflow: visible; }
.tr-provinces path {
  fill: color-mix(in srgb, var(--c-primary) calc(var(--t, 0) * var(--t, 0) * 100%), color-mix(in srgb, var(--brand-green) 14%, var(--c-surface)));
  stroke: var(--c-bg); stroke-width: 1; stroke-linejoin: round; cursor: pointer;
  transition: fill var(--t-fast), stroke var(--t-fast);
}
.tr-provinces path.is-hover { stroke: var(--brand-red); stroke-width: 2.2; paint-order: stroke; }
.tr-halo { fill: color-mix(in srgb, var(--brand-red) 22%, transparent); stroke: var(--brand-red); stroke-width: 1.5; }
.tr-core { fill: var(--brand-red); stroke: var(--c-surface); stroke-width: 2; }
.tr-pulse { fill: none; stroke: var(--brand-red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tr-pulse 2.6s var(--ease-out) infinite; pointer-events: none; }
.tr-city { pointer-events: none; }
@keyframes tr-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.tr-label { fill: var(--c-surface); stroke: var(--c-border); stroke-width: 1; filter: drop-shadow(0 6px 14px rgb(15 46 51 / .12)); }
.tr-name { font-family: var(--f-body); font-size: 11px; font-weight: 600; fill: var(--c-fg-muted); }
.tr-num { font-family: var(--f-body); font-size: 14px; font-weight: 800; fill: var(--c-fg); font-variant-numeric: tabular-nums; }
.tr-city--top .tr-num { fill: var(--c-primary); }

/* ---------- Home highlights (cards under the hero) ---------- */
.highlights { margin-top: clamp(var(--s-6), 5vw, var(--s-8)); }
.hl-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.hl-title { font-size: var(--fs-xl); font-weight: 800; }
.hl-nav { display: flex; gap: var(--s-2); }
.hl-nav[hidden] { display: none; }
.hl-track {
  list-style: none; display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 2px 2px var(--s-3); scrollbar-width: none;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-card {
  position: relative; flex: 0 0 calc((100% - 2 * var(--s-5)) / 3); scroll-snap-align: start;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: start;
  padding: var(--s-4); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.hl-card:hover { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); box-shadow: var(--sh-2); transform: translateY(-3px); }
.hl-card:focus-within { border-color: var(--c-primary); }
.hl-media { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface-2); }
.hl-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hl-media--stat .blog-cover-stat { flex-direction: column; gap: var(--s-2); font-size: 1.125rem; }
.hl-media--stat .blog-cover-icon { width: 28px; height: 28px; }
.hl-body { min-width: 0; padding-top: 2px; }
.hl-body .event-badge { margin-bottom: var(--s-2); }
.hl-card-title { font-size: var(--fs-md); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.hl-card-title a { text-decoration: none; }
.hl-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hl-card .stretched::after { border-radius: var(--r-lg); }
.hl-facts { list-style: none; display: grid; gap: 4px; margin-top: var(--s-2); font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); }
.hl-facts li { display: flex; gap: 6px; align-items: flex-start; }
.hl-facts .icon { color: var(--c-accent); flex: none; margin-top: 1px; }
.hl-text { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-fg-muted); line-height: 1.5; }
.event-badge--blog { background: color-mix(in srgb, var(--c-green) 14%, transparent); color: var(--c-green); }

/* ---------- Social icons ---------- */
.social-icons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-primary);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
a.social-icon:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); transform: translateY(-2px); }
.social-icon.is-off { opacity: .4; cursor: not-allowed; }
.social-icons--footer { justify-content: flex-start; }
.social-icons--footer .social-icon.is-off { opacity: .35; }
.social-icons--footer .social-icon { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .16); color: var(--c-on-ink); }
.social-icons--footer a.social-icon:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--c-on-highlight); }

.slider-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-fg);
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.slider-btn:hover { border-color: var(--c-fg); }
.slider-btn:active { transform: scale(.94); }

/* ---------- Events ---------- */
.event-badge {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4);
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c-accent) 10%, transparent); color: var(--c-accent);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.event-badge--notice { background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary); }
.event-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s var(--ease-out) infinite; }
.event-badge.is-past { background: var(--c-surface-2); color: var(--c-fg-muted); }
.event-badge.is-past .event-dot { animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.event-kicker { display: block; font-family: var(--f-display); font-weight: 700; color: var(--c-accent); font-size: var(--fs-xl); line-height: 1.2; margin-bottom: var(--s-2); }
.event-facts { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.event-facts li { display: flex; align-items: flex-start; gap: var(--s-3); font-weight: 600; }
.event-facts .icon { color: var(--c-accent); margin-top: 2px; }
.event-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

.event-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-6); align-items: center;
  padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
}
.event-poster img { border-radius: var(--r-sm); border: 1px solid var(--c-border); box-shadow: var(--sh-1); background: #fff; }
.event-title { font-size: var(--fs-xl); line-height: 1.25; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section--upcoming { padding-bottom: 0; }

.page-hero--event h1 { max-width: 24ch; }
.page-hero--event .event-kicker { font-size: .5em; margin-bottom: var(--s-2); }
.event-detail { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: start; }
.event-detail-poster { margin: 0; }
.event-detail-poster a { display: block; border-radius: var(--r-md); }
.event-detail-poster img { border-radius: var(--r-md); border: 1px solid var(--c-border); box-shadow: var(--sh-2); background: #fff; }
.event-detail-poster figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-fg-muted); text-align: center; }
.event-dl { margin: 0; display: grid; border-top: 1px solid var(--c-border); }
.event-dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.event-dl dt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 700; color: var(--c-fg-muted); align-self: start; }
.event-dl dt .icon { color: var(--c-accent); }
.event-dl dd { margin: 0; font-size: var(--fs-lg); line-height: 1.5; }
.event-actions--stack { margin-top: var(--s-6); }
.event-note { margin-top: var(--s-5); color: var(--c-fg-muted); max-width: 60ch; }
.event-note a { color: var(--c-primary); font-weight: 600; }
.eyebrow {
  display: inline-flex; align-items: baseline; gap: var(--s-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-green);
  margin-bottom: var(--s-5);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 25%, transparent); }
.lead { font-size: var(--fs-lg); color: var(--c-fg-muted); margin-top: var(--s-5); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }




/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--s-8), 8vw, 7.5rem); }
.section-alt { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.section-head { margin-bottom: clamp(var(--s-6), 4vw, var(--s-7)); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; }
.section h2 { font-size: var(--fs-2xl); }
.kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-2); }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.section-lead { color: var(--c-fg-muted); font-size: var(--fs-lg); max-width: 60ch; }

.text-link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 600; text-decoration: none; color: var(--c-primary); }
.text-link:hover span:not(.sr-only) { text-decoration: underline; text-underline-offset: 3px; }

/* About body */
.about-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; margin-bottom: clamp(var(--s-7), 6vw, var(--s-8)); }
.about-text { display: grid; gap: var(--s-4); font-size: var(--fs-lg); max-width: 62ch; align-content: start; }
.about-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--sh-1); }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about-photo figcaption { padding: var(--s-3) var(--s-4); font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); }

/* Process */
.process-title { font-size: var(--fs-xl); margin-bottom: var(--s-5); }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); counter-reset: none; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.news-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.news-card:hover { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); box-shadow: var(--sh-2); transform: translateY(-3px); }
.news-card:focus-within { border-color: var(--c-primary); }
.news-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); margin: 0; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-tag { position: absolute; left: var(--s-3); top: var(--s-3); box-shadow: var(--sh-1); }
.news-media .tag { background: var(--c-surface); }
.news-body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-5); }
.news-date { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); }
.news-date .icon { color: var(--c-accent); }
.news-card h3 { font-size: var(--fs-lg); line-height: 1.3; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news-excerpt { color: var(--c-fg-muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; padding-top: var(--s-2); display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary); }
.news-card:hover .news-more .icon { transform: translateX(3px); }
.news-more .icon { transition: transform var(--t-fast); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }

/* Members */
.members-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); align-items: center; margin-bottom: var(--s-6); }
.members-stat {
  display: grid; justify-items: center; align-content: center; min-width: 168px; padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg); background: var(--c-primary); color: var(--c-on-primary); text-align: center;
}
.members-stat-n { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.members-stat-l { font-size: var(--fs-sm); font-weight: 600; margin-top: var(--s-1); }
.members-head-text .section-lead { margin-top: var(--s-2); }

.members-search { position: relative; max-width: 440px; margin-bottom: var(--s-5); }
.members-search-icon { position: absolute; left: 16px; top: 14px; color: var(--c-fg-muted); pointer-events: none; }
.members-search input {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4) var(--s-3) 46px; font-size: var(--fs-md);
  background: var(--c-surface); border: 1.5px solid var(--c-input-border); border-radius: var(--r-pill);
}
.members-search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent); }
.members-search-status { font-size: var(--fs-xs); color: var(--c-fg-muted); margin-top: var(--s-2); min-height: 1em; }

.member-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); }
.member-card {
  display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
}
.member-card-top { display: flex; gap: var(--s-4); align-items: flex-start; }
.member-name { font-size: var(--fs-lg); line-height: 1.25; }
.member-full { font-size: var(--fs-xs); color: var(--c-fg-muted); line-height: 1.45; margin-top: var(--s-1); }
.member-info { font-size: var(--fs-sm); color: var(--c-fg-muted); }
.member-meta { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.member-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-surface-2); font-size: var(--fs-xs); font-weight: 600; }
.member-meta .icon { color: var(--c-primary); }
.member-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.member-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--c-primary); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.member-links a:hover span:not(.sr-only) { text-decoration: underline; text-underline-offset: 3px; }
.member-logo { width: auto; min-width: 56px; max-width: 132px; height: 56px; flex: none; object-fit: contain; padding: 5px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--c-border); }
.member-empty { grid-column: 1 / -1; padding: var(--s-6); text-align: center; color: var(--c-fg-muted); border: 1.5px dashed var(--c-border); border-radius: var(--r-md); }

.members-home h2 { font-size: var(--fs-2xl); }
.members-home-n { color: var(--c-primary); font-variant-numeric: tabular-nums; }
.members-home .section-lead { margin-block: var(--s-4) var(--s-2); }
.member-chip {
  display: inline-flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 6px 18px 6px 6px;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm);
}
.member-chip a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; color: var(--c-primary); text-decoration: none; }
.member-chip--more, .member-chip--add { padding-left: 18px; }
.member-chip--add { border-style: dashed; }
.member-chip a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.member-mono.member-mono--sm, .member-logo.member-mono--sm { width: 40px; height: 40px; border-radius: 50%; font-size: .8125rem; }

.member, .member-add-link {
  display: flex; gap: var(--s-4); align-items: flex-start; height: 100%;
  padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
}
.member--add { display: block; padding: 0; border: 0; background: none; }
.member-add-link { text-decoration: none; border-style: dashed; border-width: 1.5px; background: transparent; transition: border-color var(--t-fast), background-color var(--t-fast); }
.member-add-link:hover { border-color: var(--c-primary); background: var(--c-surface); }
.member-mono {
  width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  background: var(--c-primary); color: var(--c-on-primary);
}
.member-mono--b { background: var(--c-green); color: var(--c-on-primary); }
.member-mono--c { background: var(--c-accent); color: var(--c-on-accent); }
.member-mono--add { background: var(--c-surface-2); color: var(--c-primary); }
.member h3, .member-add-title { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-md); line-height: 1.3; margin-bottom: var(--s-1); }
.member p, .member-add-sub { display: block; font-size: var(--fs-xs); color: var(--c-fg-muted); line-height: 1.5; }

/* Guide (dark band) */
.section-ink { background: var(--c-ink); color: var(--c-on-ink); }
.section-ink .section-lead { color: var(--c-on-ink-muted); }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.guide-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); border-radius: var(--r-md);
  background: var(--c-ink-2); border: 1px solid rgb(255 255 255 / .09);
}
.guide-card--highlight { background: var(--brand-blue); color: var(--c-on-highlight); border-color: transparent; }
.guide-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: var(--brand-blue); }
.guide-card--highlight .guide-icon { background: rgb(31 36 34 / .1); color: var(--c-on-highlight); }
.guide-card--highlight .guide-legal { font-size: var(--fs-xs); color: var(--c-on-highlight); opacity: .85; }
.guide-card h3 { font-size: var(--fs-lg); }
.guide-card p { font-size: var(--fs-sm); color: var(--c-on-ink-muted); }
.guide-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--c-on-ink);
}
.guide-link:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.guide-card--highlight .guide-link { color: var(--c-on-highlight); }
.deadlines { margin: var(--s-2) 0 0; display: grid; gap: var(--s-3); }
.deadlines div { padding-top: var(--s-3); border-top: 1px solid rgb(31 36 34 / .2); }
.guide-legal a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.guide-card { scroll-margin-top: calc(var(--header-h) + 24px); }
.guide-card:target { outline: 3px solid var(--c-on-ink); outline-offset: 4px; }
.deadlines dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.deadlines dd { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.4; }
.deadlines strong { display: block; font-family: var(--f-display); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Join */
.join-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: start; }
.join-copy .section-lead { margin-top: var(--s-4); }
.form-title { font-size: var(--fs-xl); }
.form-required-note { font-size: var(--fs-xs); color: var(--c-fg-muted); margin-top: calc(-1 * var(--s-2)); }
.steps { list-style: none; margin-top: var(--s-2); display: grid; gap: var(--s-3); counter-reset: none; }
.steps li { position: relative; display: flex; align-items: center; gap: var(--s-4); font-weight: 600; padding: var(--s-3) var(--s-4); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.step-n { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: var(--fs-sm); background: linear-gradient(135deg, var(--c-primary), var(--brand-green)); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--c-primary) 70%, transparent); }

.join-form {
  padding: clamp(var(--s-5), 3vw, var(--s-6)); background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  display: grid; gap: var(--s-4);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.req { color: var(--c-error); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  font-size: var(--fs-md); background: var(--c-bg); border: 1.5px solid var(--c-input-border); border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:hover, .field textarea:hover { border-color: var(--c-fg-muted); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: var(--s-3); }
.field--check input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--c-primary); cursor: pointer;
}
.field--check label { font-weight: 500; line-height: 1.5; cursor: pointer; }
.field--check label a { color: var(--c-primary); font-weight: 600; text-underline-offset: 3px; }
.field--check .field-error { grid-column: 2; }
.field--check input[aria-invalid="true"] { outline: 2px solid var(--c-error); outline-offset: 2px; }
.draft-note { border-left: 4px solid var(--c-accent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: var(--fs-xs); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field-error::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--c-error); color: #fff; font-size: 11px; display: grid; place-items: center; flex: none; }
.field-help { font-size: var(--fs-xs); color: var(--c-fg-muted); }
.form-summary { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-error) 10%, transparent); color: var(--c-error); font-size: var(--fs-sm); font-weight: 600; }
.form-note { font-size: var(--fs-xs); color: var(--c-fg-muted); text-align: center; }
.form-success { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-success) 12%, transparent); color: var(--c-success); font-weight: 600; font-size: var(--fs-sm); }
.form-success[hidden], .form-summary[hidden], .field-error[hidden] { display: none; }

/* Contact */
.contact-list { list-style: none; display: grid; gap: var(--s-3); }
.contact-item {
  display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); min-height: 72px;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); text-decoration: none;
  transition: border-color var(--t-fast);
}
a.contact-item:hover { border-color: var(--c-primary); }
.contact-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-primary); }
.contact-label { display: block; font-size: var(--fs-xs); color: var(--c-fg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-value { display: block; font-weight: 600; font-size: var(--fs-lg); word-break: break-word; }

.contact-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.map-section { padding-top: 0; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-4); }
.map-head .process-title { margin: 0; }
.map-embed { position: relative; aspect-ratio: 16 / 6; min-height: 280px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface-2); box-shadow: var(--sh-1); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 5; min-height: 0; } }
.contact-list--grid .contact-item { height: 100%; background: var(--c-surface); }

/* Page hero (sub-pages) */
.page-hero { padding-block: clamp(var(--s-6), 5vw, var(--s-8)) clamp(var(--s-5), 4vw, var(--s-7)); border-bottom: 1px solid var(--c-border); background:
  radial-gradient(600px 240px at 100% 0%, color-mix(in srgb, var(--brand-blue) 16%, transparent), transparent 70%),
  radial-gradient(500px 220px at 0% 100%, color-mix(in srgb, var(--brand-green) 12%, transparent), transparent 70%); }
.page-hero h1 { font-size: var(--fs-3xl); letter-spacing: -.025em; max-width: 20ch; }
.page-hero .lead { max-width: 70ch; }
.page-hero--center { text-align: center; border-bottom: 0; padding-block: var(--s-9); }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .hero-actions { justify-content: center; }
.nf-code { font-family: var(--f-display); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--brand-blue); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-fg-muted); margin-bottom: var(--s-4); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); opacity: .6; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-primary); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section--tight { padding-block: clamp(var(--s-7), 6vw, var(--s-8)); }
.section-ink .process-title { color: var(--c-on-ink); }
.visually-h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-6); }
.section-head .text-link { margin-top: var(--s-3); }
.section-head .process-title { margin-bottom: 0; }
.section-head.row { row-gap: var(--s-2); }

/* CTA band */
.cta-band { background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--brand-blue) 22%, transparent), transparent 70%), var(--c-primary); color: var(--c-on-primary); padding-block: clamp(var(--s-7), 6vw, var(--s-8)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.cta-band p { max-width: 56ch; opacity: .92; }
.btn-on-primary { background: var(--c-on-primary); color: var(--c-primary); }
.btn-on-primary:hover { background: color-mix(in srgb, var(--c-on-primary) 88%, var(--c-primary)); }
.cta-band :focus-visible { outline-color: var(--c-on-primary); }

/* ---------- Statistics (home) ---------- */
.stats-section { background: linear-gradient(180deg, var(--c-surface-2), var(--c-bg)); border-block: 1px solid var(--c-border); }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.stats-grid > .stat-card--total { grid-row: span 2; }
.stat-card {
  display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.stat-card--total {
  justify-content: center; color: #fff; border: 0;
  background: radial-gradient(260px 200px at 100% 0%, color-mix(in srgb, var(--brand-blue) 55%, transparent), transparent 70%),
              linear-gradient(140deg, var(--c-ink-2), var(--c-ink));
}
.stat-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgb(255 255 255 / .14); color: #fff; }
.stat-icon--sm { width: 32px; height: 32px; border-radius: 10px; background: var(--c-surface-2); color: var(--c-primary); }
.stat-icon--sm .icon { width: 17px; height: 17px; }
.stat-label { font-size: var(--fs-sm); font-weight: 600; opacity: .9; }
.stats-number { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.5rem, 4.5vw, 3.5rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 7ch; }
.stat-card--total .stats-meta { font-size: var(--fs-sm); opacity: .85; margin-top: var(--s-2); }
.stats-grid > .stat-card--total { justify-content: space-between; gap: var(--s-5); padding: var(--s-6); }
.stat-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: 0; }
.stat-facts > div { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .1); display: flex; flex-direction: column-reverse; gap: 2px; }
.stat-facts dt { font-size: var(--fs-xs); font-weight: 600; opacity: .8; }
.stat-facts dd { margin: 0; font-family: var(--f-display); font-size: 1.625rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gender-split { display: grid; gap: var(--s-2); }
.bar-list--compact .bar-name { font-size: var(--fs-sm); }
.gender-bar { display: flex; gap: 2px; height: 10px; border-radius: var(--r-pill); overflow: hidden; }
.gender-seg { min-width: 4px; cursor: default; }
.gender-seg--0 { background: var(--brand-blue); }
.gender-seg--1 { background: var(--brand-green); }
.gender-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); font-size: var(--fs-sm); }
.gender-legend li { display: grid; gap: 2px; min-width: 0; }
.gender-legend li:last-child { text-align: right; justify-items: end; }
.gender-name { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; opacity: .9; }
.gender-num { display: inline-flex; align-items: baseline; gap: var(--s-2); font-variant-numeric: tabular-nums; }
.gender-num strong { font-family: var(--f-display); font-size: var(--fs-md); font-weight: 800; }
.gender-num span { font-size: var(--fs-xs); font-weight: 600; opacity: .8; }
.gender-sw { width: 10px; height: 10px; border-radius: 3px; }
.stat-period--pill { padding: 1px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--brand-red) 10%, var(--c-surface)); color: var(--brand-red); white-space: nowrap; }
.stat-note { margin-top: auto; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--c-surface-2); font-size: var(--fs-xs); line-height: 1.45; color: var(--c-fg-muted); }
.stats-grid > .stat-card--unis { grid-column: 1 / -1; }
.stat-card--unis .bar-list { columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: var(--s-6); }
@media (max-width: 640px) { .stat-card--unis .bar-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.donut--row { grid-template-columns: 128px minmax(0, 1fr); align-items: center; justify-items: stretch; }
.donut--row .donut-fig { width: 128px; }
.donut--row .donut-total { font-size: 1.125rem; }
.donut--row .donut-legend { gap: 4px; }
.donut--row .donut-legend li { grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "sw name pct" ". val val"; row-gap: 0; padding-block: 3px; }
.donut--row .donut-sw { grid-area: sw; }
.donut--row .donut-name { grid-area: name; white-space: normal; overflow: visible; font-size: var(--fs-sm); line-height: 1.25; }
.donut--row .donut-pct { grid-area: pct; font-size: var(--fs-sm); font-weight: 800; color: var(--c-fg); }
.donut--row .donut-val { grid-area: val; font-weight: 600; color: var(--c-fg-muted); }
.stat-title { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-md); font-weight: 700; }
.stats-source { font-size: var(--fs-xs); color: var(--c-fg-muted); }
.stats-source a { color: var(--c-primary); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Member logo wall (home) ---------- */
.wall-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.wall-head h2 { font-size: var(--fs-2xl); }
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-3); }
.wall-tile a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); height: 100%; min-height: 150px;
  padding: var(--s-5) var(--s-4); text-align: center; text-decoration: none;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.wall-tile a:hover { border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border)); box-shadow: var(--sh-2); transform: translateY(-2px); }
.wall-tile--add a { border-style: dashed; border-width: 1.5px; background: transparent; }
.wall-logo { max-width: 140px; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter var(--t-med), opacity var(--t-med); }
.wall-tile a:hover .wall-logo { filter: none; opacity: 1; }
.wall-mono { width: 64px; height: 64px; border-radius: 16px; font-size: 1.25rem; }
.wall-name { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; color: var(--c-fg); }

/* ---------- Governance chart ---------- */
.orgchart { display: grid; justify-items: center; }
.org-node { width: min(100%, 620px); text-align: center; padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.org-node--top { width: min(100%, 420px); border-top: 4px solid var(--brand-red); box-shadow: var(--sh-2); }
.org-node--mid { width: min(100%, 620px); }
.org-icon.org-icon--lead { width: 56px; height: 56px; color: #fff; background: linear-gradient(135deg, var(--brand-red), var(--c-primary)); }
.org-node--group { width: min(100%, 920px); }
.org-icon { width: 48px; height: 48px; margin: 0 auto var(--s-3); border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-primary); }
.org-role { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-xl); }
.org-count { color: var(--c-fg-muted); font-weight: 600; }
.org-person { display: grid; gap: 2px; margin: var(--s-4) auto 0; padding: var(--s-3) var(--s-5); width: fit-content; border-radius: var(--r-md); background: var(--c-surface-2); }
.org-person-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); }
.org-node--top .org-person-name { display: block; font-size: var(--fs-xl); font-weight: 800; margin-top: var(--s-1); }
.org-person-name { font-family: var(--f-display); font-size: var(--fs-lg); }
.org-desc { color: var(--c-fg-muted); font-size: var(--fs-sm); margin-top: var(--s-3); max-width: 60ch; margin-inline: auto; }
.org-line { width: 2px; height: 48px; background: linear-gradient(var(--brand-red), var(--c-primary)); }
.org-members { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
.org-member { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 16px 6px 6px; border-radius: var(--r-pill); background: var(--c-bg); border: 1px solid var(--c-border); font-weight: 600; font-size: var(--fs-sm); }

/* ---------- Instagram grid ---------- */
.ig-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.ig-item a { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); color: #fff; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease-out); }
.ig-overlay {
  position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: var(--s-6) var(--s-4) var(--s-4);
  background: linear-gradient(transparent, rgb(10 17 16 / .85)); font-size: var(--fs-sm);
}
.ig-title { font-weight: 600; line-height: 1.35; }
.ig-overlay time { font-size: var(--fs-xs); opacity: .85; }
.ig-item a:hover img { transform: scale(1.04); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-5); }
.blog-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.blog-card:hover { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); box-shadow: var(--sh-2); transform: translateY(-2px); }
.blog-card:focus-within { border-color: var(--c-primary); }
.blog-cover { margin: 0; aspect-ratio: 16 / 8; overflow: hidden; background: var(--c-surface-2); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover-stat {
  height: 100%; display: flex; align-items: center; justify-content: center; gap: var(--s-4);
  background: radial-gradient(400px 200px at 80% 20%, color-mix(in srgb, var(--brand-blue) 45%, transparent), transparent 70%), var(--c-ink);
  color: #fff; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); font-variant-numeric: tabular-nums;
}
.blog-cover-icon { width: 40px; height: 40px; color: var(--brand-blue); }
.blog-body { padding: var(--s-5); }
.blog-body h3 { font-size: var(--fs-lg); line-height: 1.3; margin-bottom: var(--s-2); }
.blog-body h3 a { text-decoration: none; }
.blog-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-body p { color: var(--c-fg-muted); font-size: var(--fs-sm); }
.blog-card .stretched::after { border-radius: var(--r-lg); }

.container--narrow { max-width: 820px; }
.page-hero--article h1 { font-size: var(--fs-2xl); max-width: none; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-fg-muted); }
.article-lang-note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--c-accent); font-weight: 600; }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: var(--s-4); }
.prose > .article-body > * + *, .prose > [data-detail-body] > * + * { margin-top: var(--s-4); }
.prose ol { padding-left: 1.4em; display: grid; gap: var(--s-2); }
.prose > .article-body > h2, .prose > [data-detail-body] > h2 { margin-top: var(--s-7); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-7); }
.prose ul { padding-left: 1.25em; display: grid; gap: var(--s-2); }
.prose a { color: var(--c-primary); text-underline-offset: 3px; }
.prose-lead { font-size: var(--fs-lg); color: var(--c-fg); }
.prose-note { padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface-2); font-size: var(--fs-sm); color: var(--c-fg-muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--c-surface); }
.prose caption { text-align: left; padding: var(--s-3) var(--s-4); font-weight: 600; color: var(--c-fg-muted); caption-side: top; }
.prose th, .prose td { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--c-border); text-align: left; }
.prose .num { text-align: right; font-variant-numeric: tabular-nums; }
.prose tfoot th, .prose tfoot td { font-weight: 700; }
.deadline-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.deadline-card { padding: var(--s-5); border-radius: var(--r-md); background: var(--brand-blue); color: var(--c-on-highlight); }
.deadline-card strong { display: block; font-family: var(--f-display); font-size: 2.25rem; line-height: 1.1; }
.deadline-card p { margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.5; }
.deadline-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sources { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-border); }
.sources h2 { font-size: var(--fs-lg); margin-top: 0; }
.sources ul { font-size: var(--fs-sm); }
.contact-value--sm { font-size: var(--fs-md); line-height: 1.5; }

/* Footer */
.site-footer { position: relative; background: #0A2226; color: var(--c-on-ink-muted); padding-block: 0 var(--s-5); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 520px; height: 360px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-blue) 14%, transparent), transparent); transform: translate(30%, -40%); }
@media (prefers-color-scheme: dark) { .site-footer { background: var(--c-ink); } }
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--brand-green) 0 33.3%, var(--brand-blue) 33.3% 66.6%, var(--brand-red) 66.6%); }
.footer-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.2fr); gap: var(--s-6); padding-block: var(--s-7) var(--s-6); }
.footer-brand { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.footer-logo { width: 200px; height: auto; }
.footer-tagline { max-width: 34ch; font-size: var(--fs-sm); line-height: 1.6; }
.footer-h { margin-bottom: var(--s-3); font-family: var(--f-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-blue); }
.site-footer :focus-visible { outline-color: var(--c-on-ink); }
.footer-links { list-style: none; display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: var(--fs-sm); color: var(--c-on-ink); transition: color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.footer-links a:hover { color: var(--brand-blue); transform: translateX(3px); }
.footer-contact { list-style: none; display: grid; gap: 2px; font-size: var(--fs-sm); }
.footer-contact a, .footer-contact-city { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; color: var(--c-on-ink); text-decoration: none; }
.footer-contact .icon { color: var(--brand-blue); }
.footer-contact a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.footer-cta { margin-top: var(--s-4); min-height: 44px; background: var(--brand-blue); color: var(--c-on-highlight, #0F2E33); font-weight: 700; }
.footer-cta:hover { background: color-mix(in srgb, var(--brand-blue) 85%, #fff); }
.footer-cta .icon { transition: transform var(--t-fast) var(--ease-out); }
.footer-cta:hover .icon { transform: translateX(3px); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .1); font-size: var(--fs-xs); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-bottom a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 32px; color: var(--c-on-ink); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-totop .icon { transform: rotate(-90deg); }
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--s-6); }
  .footer-brand .social-icons--footer { grid-column: 2; }
  .footer-tagline { grid-column: 2; grid-row: 1; }
  .footer-logo { grid-row: 1 / span 2; width: 170px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); padding-top: var(--s-6); }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-brand .social-icons--footer, .footer-tagline, .footer-logo { grid-column: auto; grid-row: auto; }
  .footer-logo { width: 170px; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hl-card { flex-basis: calc((100% - var(--s-5)) / 2); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list--grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 820px) {
  .hero--home .hero-grid { grid-template-columns: 1fr; }
  .hero--home .hero-actions { flex-wrap: wrap; }
  .hero-map { max-width: 640px; margin-inline: auto; width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .event-detail { grid-template-columns: 1fr; }
  .event-detail-poster { max-width: 420px; }
  .section-head.split, .join-grid, .about-body { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .section-head.split { gap: var(--s-4); }
}

@media (max-width: 640px) {
  .hl-card { flex-basis: 84%; grid-template-columns: 1fr; gap: var(--s-3); }
  .hl-media { aspect-ratio: 16 / 9; }
  .hl-media--stat .blog-cover-stat { flex-direction: row; font-size: 1.5rem; }
  .hero-title em { white-space: normal; }
  :root { --header-h: 64px; }
  .hero-actions .btn, .event-actions .btn { flex: 1 1 100%; }
  .event-card { grid-template-columns: 1fr; gap: var(--s-4); }
  .event-poster { max-width: 150px; }
  .event-dl > div { grid-template-columns: 1fr; gap: var(--s-1); }
  .guide-grid, .news-grid, .member-grid { grid-template-columns: 1fr; }
  .members-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .members-stat { justify-self: start; grid-auto-flow: column; align-items: baseline; gap: var(--s-3); padding: var(--s-4) var(--s-5); min-width: 0; }
  .member-chip { font-size: var(--fs-xs); }
  .about-text { font-size: var(--fs-md); }
  .field-row { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-tile a { min-height: 130px; }
  .deadline-cards { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-node { padding: var(--s-5); }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.map-period { white-space: nowrap; }

/* ---------- Load more, related news, article figure ---------- */
.more-wrap { display: flex; justify-content: center; margin-top: var(--s-6); }
.more-wrap[hidden] { display: none; }
.more-news { list-style: none; padding: 0 !important; display: grid; gap: var(--s-2); }
.more-news li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-border); }
.more-news a { font-weight: 600; text-decoration: none; }
.more-news a:hover { text-decoration: underline; }
.more-news time { font-size: var(--fs-xs); color: var(--c-fg-muted); }
.article-figure { margin: 0 0 var(--s-5); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; }
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > .stat-card--total { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 420px) { .donut--row { grid-template-columns: 1fr; justify-items: center; } }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Tags and meta rows (blog cards, article pages) ---------- */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-3); font-size: var(--fs-xs); color: var(--c-fg-muted); }
.tag { display: inline-flex; align-items: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-primary); }
.tag--alert { background: var(--c-alert-bg); color: var(--c-accent); border: 1px solid var(--c-alert-border); }


.stat-period { display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); }
@media (max-width: 640px) {
  .hero--home .hero-actions { flex-wrap: wrap; }
  .map-legend-bar { width: 90px; }
}

@media (max-width: 640px) {
  .tr-label, .tr-name, .tr-num { display: none; }
}

/* ============================================================
   v7 — charts, steps, topics, equal card text, carousels
   ============================================================ */

/* ---------- Ranked bars (provinces, countries) ---------- */
.bar-list { list-style: none; display: grid; gap: var(--s-3); counter-reset: none; }
.bar-row {
  position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 6px var(--s-2); align-items: center;
  margin: 0 calc(-1 * var(--s-2)); padding: 6px var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-sm);
  transition: background-color var(--t-fast);
}
.bar-row:hover, .bar-row:focus-visible { background: var(--c-surface-2); }
.bar-rank {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px;
  background: var(--c-surface-2); color: var(--c-fg-muted); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.bar-row:first-child .bar-rank { background: var(--c-primary); color: var(--c-on-primary); }
.bar-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { grid-column: 2 / -1; height: 10px; border-radius: 4px; background: var(--c-surface-2); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: var(--w, 0%); border-radius: 4px; background: var(--c-primary);
  transform-origin: left; transition: width .9s var(--ease-out);
}
.bar-row:hover .bar-fill { background: var(--c-primary-hover, var(--c-primary)); }
.bar-share { grid-column: 2 / -1; margin-top: -2px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); font-variant-numeric: tabular-nums; }

/* ---------- Donut (education level) ---------- */
.donut { display: grid; gap: var(--s-4); justify-items: center; }
.donut-fig { position: relative; width: min(100%, 176px); aspect-ratio: 1; }
.donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut-seg { fill: none; stroke-width: 22; cursor: pointer; transition: stroke-width var(--t-fast), opacity var(--t-fast); }
.donut-seg.is-dim { opacity: .35; }
.donut-seg.is-on { stroke-width: 28; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-total { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.donut-sub { font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); }
.donut-legend { list-style: none; width: 100%; display: grid; gap: 2px; }
.donut-legend li {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 6px; align-items: center;
  padding: 4px var(--s-2); margin: 0 calc(-1 * var(--s-2)); border-radius: var(--r-sm); font-size: var(--fs-xs); cursor: default;
  transition: background-color var(--t-fast);
}
.donut-legend li.is-on, .donut-legend li:hover { background: var(--c-surface-2); }
.donut-sw { width: 10px; height: 10px; border-radius: 3px; }
.donut-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.donut-pct { min-width: 4ch; text-align: right; font-size: var(--fs-xs); font-weight: 600; color: var(--c-fg-muted); font-variant-numeric: tabular-nums; }

/* shared chart tooltip */
.chart-tip {
  position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  background: var(--c-fg); color: var(--c-bg); box-shadow: var(--sh-2); font-size: var(--fs-sm);
}
.chart-tip strong { font-weight: 800; }
.chart-tip span { opacity: .85; font-variant-numeric: tabular-nums; }

/* ---------- Steps ("Nasıl çalışıyoruz?") ---------- */
.pillar {
  position: relative; display: flex; flex-direction: column; padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease-out);
}
.pillar:hover { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border)); box-shadow: var(--sh-2); }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.pillar-icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px;
  background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface)); color: var(--c-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-primary) 18%, transparent);
}
.pillar-icon .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.pillar-n { font-family: var(--f-display); font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: color-mix(in srgb, var(--c-fg-muted) 35%, transparent); font-variant-numeric: tabular-nums; }
.pillar h3 { font-family: var(--f-display); font-size: var(--fs-xl); line-height: 1.25; font-weight: 700; margin: 0 0 var(--s-2); }
.pillar p { color: var(--c-fg-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(4 * 1.6em); }

/* ---------- Hakkımızda: topics row ---------- */
.about-body { align-items: stretch; margin-bottom: clamp(var(--s-6), 5vw, var(--s-7)); }
.about-photo { align-self: start; }
.topics { margin-bottom: clamp(var(--s-7), 6vw, var(--s-8)); }
.topics-title { font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-fg-muted); margin-bottom: var(--s-4); }
.topic-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.topic {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); min-height: 132px; padding: var(--s-5) var(--s-4);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  font-weight: 700; font-size: var(--fs-md); line-height: 1.3;
}
.topic-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface)); color: var(--c-primary);
}
.topic-icon .icon { width: 22px; height: 22px; }

/* ---------- Equal text lengths on cards ---------- */
.news-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em); }
.news-excerpt { min-height: calc(3 * 1.6em); }
.blog-card { grid-template-rows: auto 1fr; }
.blog-body { display: flex; flex-direction: column; }
.blog-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em); }
.blog-body p:not(.news-meta) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.6em); }
.guide-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.15em); }
.guide-card > p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(4 * 1.6em); }
.hl-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.35em); }
.hl-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.member p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.5em); }
.wall-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em); }

/* ---------- Card carousels (news, blog, guide) ---------- */
.section-tools { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.section-head .section-tools .text-link { margin-top: 0; }
.carousel-nav { display: flex; gap: var(--s-2); }
.slider-btn:disabled { opacity: .4; cursor: default; transform: none; }
.slider-btn:disabled:hover { border-color: var(--c-border); }
.carousel-track {
  display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 6px 2px var(--s-4); margin: -6px -2px calc(-1 * var(--s-4)); scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 calc((100% - 2 * var(--s-5)) / 3); min-width: 0; scroll-snap-align: start; }
.guide-grid.carousel-track { gap: var(--s-4); }
.guide-grid.carousel-track > * { flex-basis: calc((100% - 2 * var(--s-4)) / 3); }
.section-ink .slider-btn { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .2); color: var(--c-on-ink); }
.section-ink .slider-btn:hover { border-color: var(--c-on-ink); }
.section-ink .slider-btn:disabled:hover { border-color: rgb(255 255 255 / .2); }
.section-ink .section-head .process-title { color: inherit; }

@media (max-width: 1024px) {
  .carousel-track > *, .guide-grid.carousel-track > * { flex-basis: calc((100% - var(--s-5)) / 2); }
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .about-photo { max-width: 640px; }
}
@media (max-width: 640px) {
  .carousel-track > *, .guide-grid.carousel-track > * { flex-basis: 86%; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic { min-height: 0; padding: var(--s-4); font-size: var(--fs-sm); }
  .pillar p { min-height: 0; -webkit-line-clamp: unset; }
  .section-tools { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none; }
}

/* ---------- Content pages driven by the admin panel ---------- */
.event-list { display: grid; gap: var(--s-5); }
.article-place { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-fg-muted); }
.prose blockquote { margin: 0; padding: var(--s-3) var(--s-5); border-left: 3px solid var(--c-primary); background: var(--c-surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.preview-bar {
  position: sticky; top: 0; z-index: 200; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2) var(--s-4);
  padding: 8px var(--s-4); background: var(--brand-red); color: #fff; font-size: var(--fs-sm);
}
.preview-actions { display: inline-flex; gap: var(--s-3); align-items: center; }
.preview-bar a, .preview-bar button { color: #fff; font-weight: 700; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* ---------- Statistics page (/istatistikler) ---------- */
.stats-page { padding-top: var(--s-7); }
.stats-page .section-head.row { align-items: center; }
.year-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.year-tab {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-fg);
  font-weight: 700; font-size: var(--fs-sm); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.year-tab:hover { border-color: var(--c-primary); }
.year-tab[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.year-tab-badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, currentColor 16%, transparent); }
.stp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s-4); }
.stp-grid .stat-card--total { min-height: 240px; }
.stat-card--wide { grid-column: 1 / -1; }
.stat-card--wide .bar-list { columns: 2 320px; column-gap: var(--s-6); }
.stat-card--wide .bar-row { break-inside: avoid; }
.bar-sub { font-size: var(--fs-xs); color: var(--c-fg-muted); font-weight: 500; }
.stp-all { margin-top: var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.stp-all > summary { cursor: pointer; padding: var(--s-4) var(--s-5); font-weight: 700; }
.stp-all[open] > summary { border-bottom: 1px solid var(--c-border); }
.stp-all .table-wrap { border: 0; border-radius: 0; max-height: 520px; overflow: auto; }
.stp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.stp-table th, .stp-table td { padding: 8px var(--s-4); border-bottom: 1px solid var(--c-border); text-align: left; }
.stp-table thead th { position: sticky; top: 0; background: var(--c-surface-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--c-fg-muted); }
.stp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.stp-table tbody th { font-weight: 600; }
.stp-source { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-fg-muted); }
.stp-source a { color: var(--c-primary); }
.stats-trend-section { padding-top: 0; }
.stp-trend { max-width: 760px; }
.stp-trend .bar-rank { display: none; }
