/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  color: #4A4A4A;
  background: #f4f6f8;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: #1F7A95; text-decoration: none; }
a:hover { color: #165e72; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
strong { font-weight: 700; }

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --primary:    #1F7A95;
  --primary-dk: #165e72;
  --primary-lt: #e8f4f8;
  --orange:     #E89B2C;
  --orange-dk:  #c5821f;
  --orange-lt:  #FFF6E6;
  --bg:         #f4f6f8;
  --white:      #ffffff;
  --dark:       #4A4A4A;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --text:       #4A4A4A;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 60px 0; }
.text-center { text-align: center; }

/* ── Header & Navigation ─────────────────────────────────────────────────── */
#site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  /* Dual-color gradient border matching the logo */
  border-bottom: 3px solid transparent;
  background-clip: padding-box;
}
/* Gradient accent line under header using both logo colours */
#site-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 60%, var(--orange) 100%);
}
#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}
#site-logo img { height: 52px; width: auto; }
#site-logo a { display: block; }

/* Navigation */
#top-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
#top-menu > li { position: relative; }
#top-menu > li > a {
  display: block;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
  transition: color 0.2s;
  border-radius: 6px;
}
#top-menu > li > a:hover {
  color: var(--primary);
  background: #f1f5f9;
}
#top-menu > li.active > a {
  color: var(--primary);
  background: var(--primary-lt);
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* Dropdown arrow */
#top-menu > li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.6;
  display: inline-block;
  transition: transform 0.2s;
}
#top-menu > li.menu-item-has-children:hover > a::after { opacity: 1; }

/* Donate button */
#top-menu > li.donar-menu > a {
  background: var(--orange);
  color: #fff;
  border-radius: 7px;
  padding: 8px 16px;
  margin-left: 6px;
}
#top-menu > li.donar-menu > a:hover { background: var(--orange-dk); color: #fff; }

/* Platform button (teal) */
#top-menu > li.platform-menu > a {
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  padding: 8px 16px;
  margin-left: 4px;
}
#top-menu > li.platform-menu > a:hover { background: var(--primary-dk); color: #fff; }

/* Dashboard plain link */
#top-menu > li.plain-dashboard > a { color: var(--dark); }

/* Dropdown */
#top-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  min-width: 230px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-radius: 0 0 8px 8px;
  z-index: 100;
}
#top-menu > li:hover .sub-menu { display: block; }
#top-menu .sub-menu li a {
  display: block;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
#top-menu .sub-menu li:last-child a { border-bottom: none; }
#top-menu .sub-menu li a:hover {
  background: var(--primary-lt);
  color: var(--primary);
}

/* Hamburger */
#menu-toggle { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
#menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--primary-dk);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 760px;
  padding: 80px 40px;
}
.hero-content h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  max-width: 580px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); color: #fff; }
.btn-secondary { background: var(--orange); color: #fff; }
.btn-secondary:hover { background: var(--orange-dk); color: #fff; }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.8); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 10px 22px;
}
.btn-ghost:hover { background: var(--primary-lt); color: var(--primary); border-color: var(--primary); }

/* ── Page Hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  background: var(--primary-dk);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.page-hero h1 {
  position: relative;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero p {
  position: relative;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Section Typography ──────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 600px;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 12px 0 28px;
  border-radius: 2px;
}
.divider.center { margin: 12px auto 28px; }

/* ── Background variants ─────────────────────────────────────────────────── */
.bg-white { background: var(--white); }
.bg-light { background: var(--bg); }
.bg-dark { background: var(--primary-dk); color: #fff; }
.bg-primary { background: var(--primary); color: #fff; }
.bg-dark .section-title, .bg-primary .section-title { color: #fff; }
.bg-dark p, .bg-primary p { color: rgba(255,255,255,0.85); }
.bg-teal-lt { background: var(--primary-lt); }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); transform: translateY(-2px); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.card-text { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* ── Feature Boxes ───────────────────────────────────────────────────────── */
.feature-box {
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-box:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-lt);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.feature-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials { background: var(--primary-lt); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.testimonial-card p {
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter-section { background: var(--primary); color: #fff; padding: 56px 0; }
.newsletter-section .section-title { color: #fff; }
.newsletter-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  padding: 11px 15px;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
}
.newsletter-form input:focus { outline: 2px solid var(--orange); }
.newsletter-form button {
  padding: 11px 22px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.newsletter-form button:hover { background: var(--orange-dk); }
.newsletter-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.newsletter-msg.success { color: #b6ffda; }
.newsletter-msg.error { color: #ffd0d0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
#site-footer { background: #1a3540; color: rgba(255,255,255,0.65); padding: 40px 0 24px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-logo img { height: 46px; opacity: 0.8; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── Partners ─────────────────────────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 28px;
  align-items: center;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.partner-logo:hover { opacity: 1; }
.partner-logo img { max-height: 64px; width: auto; }

/* ── Story Cards ──────────────────────────────────────────────────────────── */
.story-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.story-card-body { padding: 24px; }
.story-card-meta { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.story-card-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.story-card-excerpt { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.story-links { display: flex; gap: 10px; flex-wrap: wrap; }
.story-links a { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: underline; }
.story-links a:hover { color: var(--primary-dk); }

/* ── Partner Detail Blocks ───────────────────────────────────────────────── */
.partner-block { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.partner-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.partner-block-logo { flex: 0 0 110px; }
.partner-block-logo img { width: 100%; }
.partner-block-content h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.partner-block-content h3 a { color: var(--primary); }

/* ── Contact Form ────────────────────────────────────────────────────────── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--dark); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,122,149,0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.form-msg.success { color: #16a34a; }
.form-msg.error { color: #dc2626; }

/* ── Donate ──────────────────────────────────────────────────────────────── */
.donate-option {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.donate-option h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.donate-iban {
  background: var(--primary-lt);
  border: 1px solid #b0dff0;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dk);
  margin: 16px 0;
  letter-spacing: 0.06em;
}

/* ── Module Boxes ────────────────────────────────────────────────────────── */
.module-card {
  background: var(--white);
  border-radius: 10px;
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.module-card h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 7px; }
.module-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Highlight Box ───────────────────────────────────────────────────────── */
.highlight-box {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 28px;
  margin: 28px 0;
}
.highlight-box h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.highlight-box p { color: rgba(255,255,255,0.9); margin: 0; }

/* ── Stats Row ───────────────────────────────────────────────────────────── */
.stat-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.stat-box { text-align: center; padding: 20px 28px; }
.stat-number { font-size: 44px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 6px; }

/* ── Schedule Table ──────────────────────────────────────────────────────── */
.schedule-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.schedule-table th {
  background: var(--primary);
  color: #fff;
  padding: 11px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.schedule-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--primary-lt); }

/* ── Thematic Series specific ─────────────────────────────────────────────── */
.ts-intro-heading {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 28px;
}
.ts-intro-text p { font-size: 16px; line-height: 1.8; color: #4a4a4a; margin-bottom: 18px; }
.ts-sessions-heading { font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.ts-session {
  display: flex;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.ts-session-number {
  flex: 0 0 60px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 20px 0;
  letter-spacing: 0.06em;
}
.ts-session-body { flex: 1; padding: 22px 26px; }
.ts-session-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.ts-session-title { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.45; margin-bottom: 10px; }
.ts-session-body p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
.ts-closing {
  font-size: 16px;
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.8;
  border-left: 4px solid var(--orange);
  padding: 20px 26px;
  background: var(--orange-lt);
  border-radius: 0 8px 8px 0;
  margin-top: 8px;
}
.ts-reg-link {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 40px;
  background: var(--orange);
  color: #fff;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
  word-break: break-word;
}
.ts-reg-link:hover { background: var(--orange-dk); color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #top-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }
  #top-menu.open { display: flex; }
  #top-menu > li > a { padding: 13px 20px; border-bottom: 1px solid var(--border); border-radius: 0; }
  #top-menu > li > a:hover { background: var(--primary-lt); }
  #top-menu > li.donar-menu > a,
  #top-menu > li.platform-menu > a { border-radius: 0; margin: 0; }
  #top-menu .sub-menu { display: none; position: static; border: none; border-top: 1px solid var(--border); box-shadow: none; background: var(--bg); border-radius: 0; }
  #top-menu > li.open .sub-menu { display: block; }
  #top-menu > li.open.menu-item-has-children > a::after { content: ' ▴'; }
  #top-menu .sub-menu li a { padding: 11px 32px; }
  #menu-toggle { display: block; }
  #site-header { position: relative; }
  .hero { min-height: 360px; }
  .hero-content { padding: 48px 20px; }
  .hero-content p { font-size: 15px; }
  .page-hero { padding: 48px 16px; }
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .btn { padding: 11px 22px; font-size: 12px; }
  .newsletter-form { flex-direction: column; align-items: stretch; max-width: 400px; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .newsletter-form button { width: 100%; }
  .donate-option { padding: 22px 18px; }
  .partner-block { flex-direction: column; }
  .partner-block-logo { flex: none; width: 90px; }
  .schedule-table { font-size: 13px; }
  .schedule-table th, .schedule-table td { padding: 9px 12px; }
  .stat-number { font-size: 34px; }
  .stat-box { padding: 14px 18px; }
  .footer-links { gap: 14px; }
  .highlight-box { padding: 22px 18px; }
  .ts-session { flex-direction: column; }
  .ts-session-number { writing-mode: horizontal-tb; flex: none; padding: 10px 18px; font-size: 13px; letter-spacing: 0.05em; }
  .ts-session-body { padding: 16px 18px; }
  .ts-closing { padding: 14px 18px; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  #site-logo img { height: 42px; }
  .hero { min-height: 300px; }
  .hero-content h1 { font-size: 22px; }
  .contact-form { max-width: 100%; }
  .module-card { padding: 16px 14px; }
  .donate-iban { font-size: 13px; letter-spacing: 0.02em; }
  .feature-box { padding: 18px 10px; }
  .story-card-body { padding: 16px; }
  div[style*="display:flex"] .btn { flex: 1 1 auto; text-align: center; }
}

/* ── Stats Widget ─────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 28px 0;
}
.stats-bar .stat-row { gap: 0; }
.stats-bar .stat-box { border-right: 1px solid rgba(255,255,255,0.15); padding: 12px 32px; }
.stats-bar .stat-box:last-child { border-right: none; }
.stats-bar .stat-number { font-size: 36px; color: #fff; }
.stats-bar .stat-label { color: rgba(255,255,255,0.75); font-size: 11px; }

.tc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tc-row:last-child { border-bottom: none; }
.tc-name { flex: 0 0 140px; color: var(--dark); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-bar-wrap { flex: 1; height: 8px; background: var(--primary-lt); border-radius: 4px; overflow: hidden; }
.tc-bar { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.6s ease; }
.tc-count { flex: 0 0 36px; text-align: right; color: var(--muted); font-weight: 700; }

.stats-map { height: 340px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.stats-map-sm { height: 240px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }

/* ── Language switcher ─────────────────────────────────────────────────────── */
#top-menu > li.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}
.lang-btn {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  opacity: 0.55;
}
.lang-btn:hover  { border-color: var(--border); background: var(--primary-lt); opacity: 1; }
.lang-btn.active { border-color: var(--primary); background: var(--primary-lt); opacity: 1; }

/* Suppress the Google Translate toolbar that injects at top of page */
.goog-te-banner-frame,
.goog-te-gadget,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip-content { display: none !important; }
#google_translate_element { display: none !important; }
body { top: 0 !important; }

@media (max-width: 768px) {
  #top-menu > li.lang-switch {
    justify-content: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .stats-bar { padding: 16px 0; }
  .stats-bar .stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stats-bar .stat-box {
    border-right: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 10px 8px;
  }
  .stats-bar .stat-box:nth-child(2n) { border-right: none; }
  .stats-bar .stat-box:last-child { grid-column: 1 / -1; border-right: none; border-bottom: none; }
  .stats-bar .stat-number { font-size: 24px; }
  .stats-bar .stat-label { font-size: 10px; }
  .tc-name { flex: 0 0 110px; }
}
