/* ==========================================================================
   College Website Template — core.css
   Structure + components shared by every theme. Themes (themes/<slug>/theme.css)
   only set design tokens and add their signature styling on top of this file.
   ========================================================================== */

/* ---------- 1. Design tokens (defaults; themes override) ---------- */
:root {
  --t-primary: #0f4c75;
  --t-accent: #f59e0b;
  --t-highlight: #ffcd50;
  --t-on-primary: #fff;
  --t-on-accent: #111827;

  --t-primary-dark: color-mix(in srgb, var(--t-primary) 72%, #000);
  --t-primary-light: color-mix(in srgb, var(--t-primary) 10%, #fff);
  --t-accent-dark: color-mix(in srgb, var(--t-accent) 80%, #000);
  --t-accent-light: color-mix(in srgb, var(--t-accent) 14%, #fff);

  --t-bg: #f6f8fb;
  --t-surface: #ffffff;
  --t-soft: #f1f4f9;
  --t-border: #e3e8ef;
  --t-text: #334155;
  --t-heading: #0f172a;
  --t-muted: #64748b;

  --t-topbar-bg: var(--t-primary-dark);
  --t-topbar-text: rgba(255,255,255,.85);
  --t-header-bg: #ffffff;
  --t-header-text: var(--t-heading);
  --t-nav-bg: var(--t-primary);
  --t-nav-text: var(--t-on-primary);
  --t-nav-hover: rgba(255,255,255,.12);
  --t-footer-bg: #0b1220;
  --t-footer-text: rgba(255,255,255,.72);
  --t-footer-head: #fff;
  --t-hero-bg: var(--t-primary-dark);
  --t-hero-text: #fff;

  --t-font-head: 'Poppins', system-ui, sans-serif;
  --t-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-head-weight: 700;
  --t-head-transform: none;
  --t-head-spacing: -0.01em;
  --t-body-size: 16px;

  --t-radius: 10px;
  --t-radius-lg: 18px;
  --t-radius-btn: 10px;
  --t-shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.06);
  --t-shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --t-container: 1200px;
  --t-section-y: clamp(56px, 7vw, 96px);
  --t-header-h: 76px;
  --t-ease: cubic-bezier(.4,0,.2,1);

  /* Legacy aliases — older inner pages use these names */
  --tp: var(--t-primary); --ta: var(--t-accent); --th: var(--t-header-bg);
  --primary: var(--t-primary); --accent: var(--t-accent); --dark: var(--t-primary-dark);
  --p: var(--t-primary); --a: var(--t-accent); --gold: var(--t-highlight); --yl: var(--t-highlight);
  --bg: var(--t-bg); --sf: var(--t-surface); --bd: var(--t-border); --tx: var(--t-text); --mu: var(--t-muted);
  --light-base: var(--t-bg); --navy: var(--t-primary-dark); --t-bg-alt: var(--t-soft);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--t-font-body); font-size: var(--t-body-size); line-height: 1.7; color: var(--t-text); background: var(--t-bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--t-font-head); font-weight: var(--t-head-weight); color: var(--t-heading); line-height: 1.2; letter-spacing: var(--t-head-spacing); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--t-primary); text-decoration: none; transition: color .2s var(--t-ease); }
a:hover { color: var(--t-accent-dark); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 2px; border-radius: 4px; }
main { display: block; }
main:focus { outline: none; }
.container { width: 100%; max-width: var(--t-container); margin: 0 auto; padding: 0 20px; }
html[lang="bn"] body { font-family: 'Hind Siliguri', var(--t-font-body); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100000; background: var(--t-primary); color: var(--t-on-primary); padding: 10px 16px; border-radius: 0 0 8px 8px; font-weight: 700; }
.skip-link:focus { top: 0; color: var(--t-on-primary); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .hide-md { display: none !important; } }
@media (max-width: 600px) { .hide-sm { display: none !important; } }

/* Unclassed sections on inner pages get consistent spacing */
main > section:not([class]) { padding: clamp(40px, 6vw, 72px) 0; }

/* ---------- 3. Buttons ---------- */
.btn { --btn-bg: var(--t-primary); --btn-fg: var(--t-on-primary); display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.4em; border-radius: var(--t-radius-btn); border: 2px solid transparent; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; transition: transform .2s var(--t-ease), box-shadow .2s var(--t-ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.btn--primary { --btn-bg: var(--t-primary); --btn-fg: var(--t-on-primary); }
.btn--accent { --btn-bg: var(--t-accent); --btn-fg: var(--t-on-accent); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--t-primary-dark); }
.btn--outline { background: transparent; color: var(--t-primary); border-color: currentColor; }
.btn--outline:hover { background: var(--t-primary); color: var(--t-on-primary); border-color: var(--t-primary); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--t-primary-dark); }
.btn--ghost-dark { background: transparent; color: var(--t-muted); border-color: var(--t-border); }
.btn--sm { padding: .55em 1em; font-size: .85rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
/* legacy */
.btn-primary { background: var(--t-primary); color: var(--t-on-primary); }

/* ---------- 4. Tricolor + Top bar ---------- */
.tricolor { height: 4px; background: linear-gradient(90deg, #ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); }
.topbar { background: var(--t-topbar-bg); color: var(--t-topbar-text); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.topbar__info span, .topbar__info a { color: inherit; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__info a:hover { color: #fff; }
.topbar__info i { opacity: .7; font-size: 12px; }
.topbar__tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.tool-btn { background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; min-width: 28px; height: 26px; padding: 0 7px; font-size: 12px; font-weight: 700; line-height: 1; }
.tool-btn--md { font-size: 13px; } .tool-btn--xl { font-size: 14px; }
.tool-btn[aria-pressed="true"] { background: rgba(255,255,255,.3); }
.tool-btn--lang { padding: 0 10px; font-weight: 600; }
.tool-btn:hover { background: rgba(255,255,255,.22); }
.topbar--slim .topbar__inner { min-height: 32px; }
@media (max-width: 600px) { .topbar__info { gap: 10px; } .tool-btn--md, .tool-btn--xl { display: none; } }

/* ---------- 5. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--t-header-bg); color: var(--t-header-text); transition: box-shadow .25s var(--t-ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.10); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--t-header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; flex-shrink: 1; }
.brand:hover { color: inherit; }
.brand__logo { flex-shrink: 0; width: 52px; height: 52px; border-radius: calc(var(--t-radius) * .8); display: grid; place-items: center; overflow: hidden; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__mono { width: 100%; height: 100%; display: grid; place-items: center; background: var(--t-primary); color: var(--t-on-primary); font-family: var(--t-font-head); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--t-font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--t-header-text); }
.brand__tag { font-size: .76rem; color: var(--t-muted); line-height: 1.3; margin-top: 2px; }
.brand--lg .brand__logo { width: 72px; height: 72px; }
.brand--lg .brand__name { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.brand--lg .brand__tag { font-size: .85rem; }

.main-nav { margin-left: auto; }
.menu { list-style: none; display: flex; align-items: center; gap: 2px; }
.menu__item { position: relative; }
.menu__link { display: flex; align-items: center; gap: 5px; padding: 10px 11px; font-size: .9rem; font-weight: 600; color: var(--t-header-text); border-radius: 8px; white-space: nowrap; }
.menu__link:hover, .menu__item.is-open > .menu__link { color: var(--t-primary); background: var(--t-primary-light); }
.menu__item.is-active > .menu__link { color: var(--t-primary); }
.menu__caret { font-size: 9px; opacity: .55; transition: transform .2s; }
.menu__item.is-open .menu__caret { transform: rotate(180deg); }
.submenu { list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); box-shadow: var(--t-shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 50; max-height: 70vh; overflow-y: auto; }
.menu__item:last-child .submenu, .menu__item:nth-last-child(2) .submenu { left: auto; right: 0; }
.menu__item.is-open > .submenu, .menu__item:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; font-size: .88rem; color: var(--t-text); font-weight: 500; }
.submenu a i { width: 16px; text-align: center; color: var(--t-accent); opacity: .85; font-size: .85em; }
.submenu a:hover, .submenu a[aria-current] { background: var(--t-soft); color: var(--t-primary); }
.site-header__cta { margin-left: 4px; flex-shrink: 0; }
.site-header__bar .brand { flex: 0 0 auto; max-width: 330px; }
.site-header__bar .brand__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.site-header__bar .brand__tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header__bar .main-nav { min-width: 0; }
.site-header__bar .menu { flex-wrap: nowrap; }

/* Stacked + centered headers: brand row + nav bar */
.site-header--stacked, .site-header--centered { position: relative; }
.site-header__brandrow { background: var(--t-header-bg); }
.site-header__brandinner { display: flex; align-items: center; gap: 24px; min-height: 96px; padding-top: 10px; padding-bottom: 10px; }
.site-header__aside { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.aside-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--t-muted); max-width: 260px; line-height: 1.35; }
.aside-badge i { color: var(--t-accent); font-size: 1.3rem; }
.aside-help { display: flex; align-items: center; gap: 10px; color: var(--t-heading); font-weight: 700; }
.aside-help i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--t-primary-light); color: var(--t-primary); }
.aside-help small { display: block; font-size: .72rem; font-weight: 600; color: var(--t-muted); text-transform: uppercase; letter-spacing: .06em; }
.site-header__navrow { background: var(--t-nav-bg); position: sticky; top: 0; z-index: 899; }
.site-header--stacked, .site-header--centered { position: static; }
.site-header__navrow .main-nav { margin: 0; }
.site-header__navrow .menu { flex-wrap: wrap; }
.site-header__navrow .menu__link { color: var(--t-nav-text); border-radius: 0; padding: 13px 14px; }
.site-header__navrow .menu__link:hover, .site-header__navrow .menu__item.is-open > .menu__link, .site-header__navrow .menu__item.is-active > .menu__link { background: var(--t-nav-hover); color: var(--t-nav-text); }
.site-header--centered .site-header__brandinner { justify-content: center; text-align: center; }
.site-header--centered .brand { flex-direction: column; gap: 8px; }
.site-header--centered .brand__text { align-items: center; }
.site-header--centered .site-header__navrow .menu { justify-content: center; }
.site-header--centered .nav-toggle { position: absolute; right: 20px; }
.site-header--centered .site-header__brandinner { position: relative; }

/* Hamburger */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--t-border); background: var(--t-surface); border-radius: 10px; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; flex-shrink: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--t-heading); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1320px) {
  .site-header__bar .menu__link { padding: 9px 8px; font-size: .84rem; }
  .site-header__bar .brand__tag { display: none; }
}
@media (max-width: 1240px) { .site-header__cta { display: none; } }
.site-header.cta-hidden .site-header__cta { display: none; }
.site-header.nav-collapsed .main-nav { display: none; }
.site-header.nav-collapsed .nav-toggle { display: flex; }
.site-header.nav-collapsed .site-header__cta { display: inline-flex; margin-left: auto; }
.site-header.nav-collapsed .site-header__cta + .nav-toggle { margin-left: 12px; }
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .site-header__navrow { display: none; }
  .nav-toggle { display: flex; }
  .site-header__cta { display: none; }
  .site-header--stacked, .site-header--centered { position: sticky; top: 0; }
  .site-header__brandinner { min-height: 72px; }
  .brand--lg .brand__logo { width: 52px; height: 52px; }
  .site-header__aside .aside-badge, .site-header__aside .aside-help { display: none; }
  .site-header--centered .brand { flex-direction: row; text-align: left; }
  .site-header--centered .brand__text { align-items: flex-start; }
  .site-header--centered .site-header__brandinner { justify-content: flex-start; }
  .site-header--centered .nav-toggle { position: static; }
}
@media (max-width: 600px) {
  .site-header__aside { display: none; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 1rem; }
  .brand__tag { display: none; }
}

/* Mobile drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.55); z-index: 9998; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); background: var(--t-surface); z-index: 9999; transform: translateX(-105%); transition: transform .3s var(--t-ease); overflow-y: auto; display: flex; flex-direction: column; box-shadow: var(--t-shadow-lg); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: var(--t-primary); color: var(--t-on-primary); }
.drawer__title { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.drawer__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: inherit; font-size: 18px; flex-shrink: 0; }
.drawer__menu { list-style: none; padding: 6px 0; flex: 1; }
.drawer__link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border: 0; background: none; color: var(--t-heading); font-weight: 600; font-size: .98rem; text-align: left; border-bottom: 1px solid var(--t-border); }
.drawer__link span { display: flex; align-items: center; gap: 12px; }
.drawer__link span i { width: 18px; color: var(--t-accent); text-align: center; }
.drawer__link > i { font-size: 11px; opacity: .5; transition: transform .25s; }
.drawer__link[aria-expanded="true"] > i { transform: rotate(180deg); }
.drawer__link[aria-expanded="true"] { color: var(--t-primary); background: var(--t-soft); }
.drawer__sub { list-style: none; max-height: 0; overflow: hidden; transition: max-height .3s var(--t-ease); background: var(--t-soft); }
.drawer__sub a { display: flex; align-items: center; gap: 10px; padding: 11px 20px 11px 50px; font-size: .9rem; color: var(--t-text); border-bottom: 1px solid var(--t-border); }
.drawer__sub a i { width: 14px; font-size: .8em; color: var(--t-muted); }
.drawer__cta { padding: 16px 18px 28px; }

/* Notice ticker */
.ticker { background: var(--t-surface); border-bottom: 1px solid var(--t-border); font-size: .88rem; }
.ticker__wrap { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker__label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--t-accent); color: var(--t-on-accent); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: 6px; }
.ticker__track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__inner { display: inline-flex; white-space: nowrap; will-change: transform; }
.ticker__dup { display: inline-flex; }
.ticker__item { color: var(--t-heading); font-weight: 500; padding: 0 28px 0 0; position: relative; }
.ticker__item::after { content: '◆'; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 8px; color: var(--t-accent); }
.ticker__item:hover { color: var(--t-primary); text-decoration: underline; }
.ticker__all { flex-shrink: 0; font-weight: 700; font-size: .8rem; color: var(--t-primary); }
@media (max-width: 600px) { .ticker__all { display: none; } }

/* Theme preview bar (admins only) */
.preview-bar { background: #111827; color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; }
.preview-bar a { color: #fde68a; font-weight: 700; }

/* ---------- 6. Sections & headings ---------- */
.section { padding: var(--t-section-y) 0; }
.section--alt { background: var(--t-soft); }
.section--tight { padding: calc(var(--t-section-y) * .65) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.sec-head--center { justify-content: center; text-align: center; }
.sec-head--center .sec-head__text { max-width: 720px; margin: 0 auto; }
.sec-head__eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-accent-dark); margin-bottom: 10px; }
.sec-head__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); text-transform: var(--t-head-transform); margin: 0; }
.sec-head__sub { color: var(--t-muted); margin: 12px 0 0; font-size: 1.02rem; }
.sec-foot { margin-top: 32px; text-align: center; }
.card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius-lg); box-shadow: var(--t-shadow); overflow: hidden; }
.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0 26px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--t-heading); }
.checklist i { color: var(--t-accent); margin-top: 5px; }
@media (max-width: 700px) { .sec-head { flex-direction: column; align-items: flex-start; } .sec-head--center { align-items: center; } }

/* Reveal animation (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--t-ease), transform .6s var(--t-ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.fade-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- 7. Hero (shared bits) ---------- */
.hero { position: relative; overflow: hidden; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; background: var(--t-accent-light); color: var(--t-accent-dark); margin-bottom: 18px; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-accent) 25%, transparent); }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; text-transform: var(--t-head-transform); }
.hero__title em { font-style: normal; color: var(--t-accent); display: inline; }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 600px; color: var(--t-muted); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: .88rem; font-weight: 600; color: var(--t-heading); }
.hero__chips i { color: var(--t-accent); margin-right: 4px; }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--t-font-head); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--t-primary); }
.stat__label { display: block; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--t-muted); margin-top: 6px; }

/* split */
.hero--split { padding: clamp(48px, 7vw, 96px) 0; background: var(--t-surface); }
.hero--split .hero__bg { position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 20%, var(--t-primary-light), transparent 70%), radial-gradient(600px 300px at 0% 100%, var(--t-accent-light), transparent 70%); pointer-events: none; }
.hero--split .hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero--split .hero__media { position: relative; }
.hero__figure { margin: 0; border-radius: var(--t-radius-lg); overflow: hidden; box-shadow: var(--t-shadow-lg); aspect-ratio: 4/3; background: var(--t-soft); }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius-lg); box-shadow: var(--t-shadow-lg); overflow: hidden; }
.hero__stats .stat { padding: 26px 16px; border-right: 1px solid var(--t-border); border-bottom: 1px solid var(--t-border); }
.hero__stats .stat:nth-child(2n) { border-right: 0; }
.hero__stats .stat:nth-last-child(-n+2) { border-bottom: 0; }
.hero__stats.is-floating { position: absolute; left: -28px; bottom: -28px; width: 72%; }
.hero__stats.is-floating .stat { padding: 16px 10px; }
.hero__stats.is-floating .stat__num { font-size: 1.6rem; }
.hero__art { aspect-ratio: 1; max-width: 380px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--t-accent-light), var(--t-primary-light)); color: var(--t-primary); font-size: 120px; }
.hero--split .btn--ghost, .hero--editorial .btn--ghost { background: var(--t-surface); color: var(--t-heading); border-color: var(--t-border); }
.hero--split .btn--ghost:hover, .hero--editorial .btn--ghost:hover { border-color: var(--t-primary); color: var(--t-primary); background: var(--t-surface); }
@media (max-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero__stats.is-floating { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -40px; }
}

/* fullbleed + centered */
.hero--fullbleed, .hero--centered { color: var(--t-hero-text); background: var(--t-hero-bg); }
.hero--fullbleed .hero__bg, .hero--centered .hero__bg { position: absolute; inset: 0; background:
  linear-gradient(110deg, color-mix(in srgb, var(--t-primary-dark) 94%, transparent) 0%, color-mix(in srgb, var(--t-primary) 80%, transparent) 55%, color-mix(in srgb, var(--t-primary) 35%, transparent) 100%),
  var(--hero-img, linear-gradient(135deg, var(--t-primary-dark), var(--t-primary))) center/cover no-repeat; }
.hero--fullbleed .hero__bg::after, .hero--centered .hero__bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero--fullbleed .hero__inner, .hero--centered .hero__inner { position: relative; padding: clamp(72px, 11vw, 150px) 20px; }
.hero--fullbleed .hero__content { max-width: 720px; }
.hero--fullbleed .hero__title, .hero--centered .hero__title { color: #fff; }
.hero--fullbleed .hero__text, .hero--centered .hero__text { color: rgba(255,255,255,.82); }
.hero--fullbleed .hero__badge, .hero--centered .hero__badge { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.hero--centered { text-align: center; }
.hero--centered .hero__content { max-width: 820px; margin: 0 auto; }
.hero--centered .hero__text { margin-left: auto; margin-right: auto; }
.hero--centered .hero__actions { justify-content: center; }
.hero__strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--t-surface); border-radius: var(--t-radius-lg) var(--t-radius-lg) 0 0; box-shadow: var(--t-shadow-lg); }
.hero__strip .stat { padding: 22px 12px; border-right: 1px solid var(--t-border); }
.hero__strip .stat:last-child { border-right: 0; }
@media (max-width: 700px) { .hero__strip { grid-template-columns: 1fr 1fr; } .hero__strip .stat:nth-child(2) { border-right: 0; } }

/* editorial */
.hero--editorial { padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 6vw, 80px); background: var(--t-bg); }
.hero--editorial .hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t-accent-dark); border-bottom: 2px solid var(--t-accent); padding-bottom: 6px; margin-bottom: 22px; }
.hero--editorial .hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero--editorial .hero__figure { position: relative; overflow: visible; box-shadow: none; aspect-ratio: 4/5; background: transparent; }
.hero--editorial .hero__figure img { border-radius: var(--t-radius-lg); position: relative; z-index: 1; }
.hero--editorial .hero__figure::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--t-accent); border-radius: var(--t-radius-lg); }
.hero--editorial .hero__figure.is-placeholder { background: var(--t-primary); border-radius: var(--t-radius-lg); display: grid; place-items: center; }
.hero__mono { font-size: 110px; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.hero__figcap { position: absolute; z-index: 2; right: -18px; bottom: 32px; background: var(--t-accent); color: var(--t-on-accent); padding: 14px 20px; border-radius: var(--t-radius); box-shadow: var(--t-shadow-lg); display: flex; align-items: baseline; gap: 8px; }
.hero__figcap .stat__num { color: inherit; font-size: 1.8rem; }
.hero__figcap span:last-child { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 600px) { .hero--editorial .hero__figure::before { inset: 12px -8px -12px 8px; } }
@media (max-width: 900px) { .hero--editorial .hero__grid { grid-template-columns: 1fr; } .hero--editorial .hero__figure { max-width: 420px; aspect-ratio: 4/3; } .hero__figcap { right: 10px; } }

/* slider (with notice box) */
.hero--slider { padding: 24px 0; background: var(--t-soft); }
.hero--slider .hero__grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: stretch; }
.slider { position: relative; border-radius: var(--t-radius); overflow: hidden; min-height: 420px; background: var(--t-primary-dark); box-shadow: var(--t-shadow); }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; background:
  linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.08) 65%), var(--slide-img, linear-gradient(135deg, var(--t-primary), var(--t-primary-dark))) center/cover; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__caption { padding: clamp(24px, 4vw, 44px); max-width: 760px; color: #fff; }
.slide__caption .hero__title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.slide__caption .hero__text { color: rgba(255,255,255,.86); margin-bottom: 20px; }
.slide__caption .hero__badge { background: var(--t-accent); color: var(--t-on-accent); }
.slider__nav { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.slider__btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
.slider__btn:hover { background: rgba(255,255,255,.35); }
.slider__dots { display: flex; gap: 6px; }
.slider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); padding: 0; }
.slider__dot.is-active { background: var(--t-accent); width: 24px; border-radius: 5px; }
.hero__notices { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--t-shadow); max-height: 420px; }
.hero__notices-head { background: var(--t-primary); color: var(--t-on-primary); font-weight: 700; padding: 12px 16px; display: flex; gap: 8px; align-items: center; }
.vticker { list-style: none; flex: 1; overflow: hidden; }
.vticker li a { display: block; padding: 11px 16px; border-bottom: 1px dashed var(--t-border); color: var(--t-heading); font-size: .88rem; line-height: 1.45; }
.vticker li a:hover { background: var(--t-soft); color: var(--t-primary); }
.vticker__date { display: block; font-size: .72rem; font-weight: 700; color: var(--t-accent-dark); margin-bottom: 2px; }
.hero__notices-more { display: block; text-align: center; padding: 10px; font-weight: 700; font-size: .85rem; background: var(--t-soft); border-top: 1px solid var(--t-border); }
@media (max-width: 960px) { .hero--slider .hero__grid { grid-template-columns: 1fr; } .slider { min-height: 400px; } .slide__caption { padding-bottom: 76px; } .hero__notices { max-height: 340px; } }

/* ---------- 8. Homepage blocks ---------- */
/* quick links */
.quicklinks { padding: 28px 0; background: var(--t-surface); border-bottom: 1px solid var(--t-border); }
.quicklinks__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.qlink { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--t-radius); border: 1px solid var(--t-border); background: var(--t-surface); color: var(--t-heading); height: 100%; transition: border-color .2s, transform .2s, box-shadow .2s; }
.qlink:hover { border-color: var(--t-accent); transform: translateY(-3px); box-shadow: var(--t-shadow); color: var(--t-heading); }
.qlink__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--t-primary-light); color: var(--t-primary); font-size: 18px; transition: background .2s, color .2s; }
.qlink:hover .qlink__icon { background: var(--t-accent); color: var(--t-on-accent); }
.qlink__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.qlink__text b { font-size: .92rem; }
.qlink__text small { font-size: .76rem; color: var(--t-muted); margin-top: 2px; }

/* stats band */
.stats-band { padding: 44px 0; background: var(--t-primary); color: var(--t-on-primary); }
.stats-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stats-band .stat__num { color: var(--t-on-primary); }
.stats-band .stat__label { color: color-mix(in srgb, var(--t-on-primary) 75%, transparent); }

/* about + notices */
.about-notices__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-block__text { font-size: 1.04rem; color: var(--t-text); }
@media (max-width: 900px) { .about-notices__grid { grid-template-columns: 1fr; } }

/* notice board */
.nb__tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--t-border); background: var(--t-soft); padding: 6px 6px 0; scrollbar-width: thin; }
.nb__tab { border: 0; background: transparent; padding: 10px 14px; font-size: .85rem; font-weight: 600; color: var(--t-muted); border-radius: 8px 8px 0 0; white-space: nowrap; }
.nb__tab:hover { color: var(--t-primary); }
.nb__tab.is-active { background: var(--t-surface); color: var(--t-primary); box-shadow: 0 -2px 0 var(--t-accent) inset; }
.nb__list { list-style: none; }
.nb__item { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--t-border); align-items: flex-start; }
.nb__item:hover { background: var(--t-soft); }
.nb__date { flex-shrink: 0; width: 48px; text-align: center; border-radius: 8px; background: var(--t-primary-light); color: var(--t-primary); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 6px 0; line-height: 1.1; }
.nb__date b { display: block; font-size: 1.15rem; font-family: var(--t-font-head); }
.nb__body { min-width: 0; flex: 1; }
.nb__title { display: block; font-weight: 600; color: var(--t-heading); line-height: 1.45; }
.nb__title:hover { color: var(--t-primary); }
.nb__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; align-items: center; font-size: .74rem; }
.nb__badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-weight: 700; color: var(--b, #6b7280); background: color-mix(in srgb, var(--b, #6b7280) 12%, transparent); }
.nb__badge--imp { --b: #dc2626; }
.nb__file { color: var(--t-muted); }
.nb__new { display: inline-block; background: #dc2626; color: #fff; font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.nb__empty { padding: 28px 18px; color: var(--t-muted); text-align: center; margin: 0; }
.nb__more { display: block; text-align: center; padding: 12px; font-weight: 700; font-size: .88rem; background: var(--t-soft); }

/* course cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.course-card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--t-ease), box-shadow .25s var(--t-ease), border-color .25s; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--t-shadow-lg); border-color: transparent; }
.course-card__media { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--t-primary), var(--t-primary-dark)); position: relative; overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--t-ease); }
.course-card:hover .course-card__media img { transform: scale(1.05); }
.course-card__icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; color: rgba(255,255,255,.9); }
.course-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-card__title { font-size: 1.1rem; margin: 0 0 8px; }
.course-card__title a { color: var(--t-heading); }
.course-card__title a:hover { color: var(--t-primary); }
.course-card__meta { list-style: none; display: flex; gap: 14px; font-size: .8rem; color: var(--t-muted); font-weight: 600; margin-bottom: 10px; }
.course-card__meta i { color: var(--t-accent); margin-right: 3px; }
.course-card__desc { font-size: .9rem; color: var(--t-muted); margin-bottom: 14px; }
.course-card__link { margin-top: auto; font-weight: 700; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.course-card__link i { transition: transform .2s; }
.course-card:hover .course-card__link i { transform: translateX(4px); }

/* messages */
.messages__grid { display: grid; gap: 24px; }
.messages__grid--2 { grid-template-columns: 1fr 1fr; }
.messages__grid--1 { max-width: 900px; margin: 0 auto; }
.message-card { margin: 0; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius-lg); padding: 28px; box-shadow: var(--t-shadow); display: grid; grid-template-columns: 110px 1fr; grid-template-areas: "photo quote" "photo who" "photo more"; gap: 6px 24px; align-items: start; }
.message-card__photo { grid-area: photo; width: 110px; height: 130px; border-radius: var(--t-radius); overflow: hidden; background: var(--t-primary-light); display: grid; place-items: center; color: var(--t-primary); font-size: 42px; }
.message-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.message-card__quote { grid-area: quote; margin: 0; position: relative; color: var(--t-text); font-size: .98rem; }
.message-card__quote::before { content: '“'; position: absolute; left: -6px; top: -26px; font-size: 64px; line-height: 1; color: var(--t-accent); opacity: .35; font-family: Georgia, serif; }
.message-card__who { grid-area: who; display: flex; flex-direction: column; }
.message-card__who b { color: var(--t-heading); font-family: var(--t-font-head); font-size: 1.05rem; }
.message-card__who span { font-size: .84rem; color: var(--t-muted); }
.message-card__more { grid-area: more; font-weight: 700; font-size: .85rem; margin-top: 6px; }
@media (max-width: 900px) { .messages__grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .message-card { grid-template-columns: 1fr; grid-template-areas: "photo" "quote" "who" "more"; } .message-card__photo { width: 90px; height: 90px; border-radius: 50%; } }

/* recruiters marquee */
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__dup { display: flex; }
.logo-chip { flex-shrink: 0; height: 72px; min-width: 170px; margin-right: 16px; padding: 0 22px; display: grid; place-items: center; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); font-weight: 700; color: var(--t-heading); font-size: .92rem; }
.logo-chip img { max-height: 44px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-chip:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px; } .logo-marquee__dup { display: none; } }

/* success stories */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.story-card { margin: 0; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius-lg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.story-card blockquote { margin: 0; color: var(--t-text); font-style: italic; }
.story-card figcaption { display: flex; gap: 12px; align-items: center; }
.story-card figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.story-card b { color: var(--t-heading); }
.story-card small { color: var(--t-muted); font-size: .8rem; }
.story-card__photo { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--t-primary-light); color: var(--t-primary); display: grid; place-items: center; }
.story-card__photo img { width: 100%; height: 100%; object-fit: cover; }

/* events + news */
.events-news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.events-news__grid.is-single { grid-template-columns: 1fr; max-width: 820px; }
.event-list { list-style: none; display: grid; gap: 12px; }
.event-item { display: flex; gap: 16px; padding: 16px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); align-items: center; }
.event-item__date { flex-shrink: 0; width: 62px; text-align: center; background: var(--t-accent); color: var(--t-on-accent); border-radius: var(--t-radius); padding: 8px 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.event-item__date b { display: block; font-size: 1.5rem; font-family: var(--t-font-head); }
.event-item__title { font-size: 1rem; margin: 0 0 4px; }
.event-item__meta { font-size: .8rem; color: var(--t-muted); }
.event-item__meta i { color: var(--t-accent); margin: 0 3px 0 0; }
.news-list { display: grid; gap: 12px; }
.news-item { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); color: var(--t-heading); }
.news-item:hover { border-color: var(--t-accent); color: var(--t-primary); }
.news-item__img { width: 84px; height: 64px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--t-primary-light); display: grid; place-items: center; color: var(--t-primary); }
.news-item__img img { width: 100%; height: 100%; object-fit: cover; }
.news-item > span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.news-item small { color: var(--t-muted); font-size: .78rem; margin-top: 2px; }
@media (max-width: 900px) { .events-news__grid { grid-template-columns: 1fr; } }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; }
.gallery-grid__item { position: relative; padding: 0; border: 0; border-radius: var(--t-radius); overflow: hidden; background: var(--t-soft); cursor: zoom-in; }
.gallery-grid__item.is-wide { grid-column: span 2; grid-row: span 2; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--t-ease); }
.gallery-grid__item:hover img { transform: scale(1.06); }
.gallery-grid__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: .82rem; font-weight: 600; text-align: left; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transition: opacity .25s; }
.gallery-grid__item:hover .gallery-grid__cap, .gallery-grid__item:focus-visible .gallery-grid__cap { opacity: 1; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* CTA band */
.cta-band { padding: clamp(48px, 7vw, 80px) 0; background: linear-gradient(120deg, var(--t-primary-dark), var(--t-primary)); color: var(--t-on-primary); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--t-accent) 45%, transparent), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 8px; }
.cta-band__text { margin: 0; color: rgba(255,255,255,.82); max-width: 620px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* contact */
.contact-sec__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.contact-sec__grid.is-single { grid-template-columns: 1fr; max-width: 760px; }
.contact-cards { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; }
.contact-cards li { display: flex; gap: 14px; padding: 14px 16px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.contact-cards i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--t-primary-light); color: var(--t-primary); }
.contact-cards span { display: flex; flex-direction: column; line-height: 1.45; word-break: break-word; }
.contact-cards b { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--t-muted); }
.map-frame { border-radius: var(--t-radius-lg); overflow: hidden; border: 1px solid var(--t-border); min-height: 360px; box-shadow: var(--t-shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 900px) { .contact-sec__grid { grid-template-columns: 1fr; } }

/* ---------- 9. Inner page banner ---------- */
.page-hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--t-primary-dark), var(--t-primary)); overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; padding: clamp(36px, 5vw, 60px) 20px; }
.page-hero__title { color: inherit; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0; text-transform: var(--t-head-transform); }
.page-hero__sub { margin: 10px 0 0; opacity: .85; max-width: 680px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; margin-bottom: 10px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; opacity: .9; }
.breadcrumb li + li::before { content: '/'; opacity: .5; }
.breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.breadcrumb a:hover { color: var(--t-highlight); }
.page-hero--band::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent 40%, #000); }
.page-hero--centered { text-align: center; }
.page-hero--centered .breadcrumb ol { justify-content: center; }
.page-hero--centered .page-hero__sub { margin-left: auto; margin-right: auto; }
.page-hero--minimal { background: var(--t-surface); color: var(--t-heading); border-bottom: 1px solid var(--t-border); }
.page-hero--minimal .breadcrumb a { text-decoration-color: var(--t-border); }
.page-hero--minimal .breadcrumb a:hover { color: var(--t-primary); }
.page-hero--minimal .page-hero__title { color: var(--t-heading); }
.page-hero--image { background: linear-gradient(110deg, color-mix(in srgb, var(--t-primary-dark) 92%, transparent), color-mix(in srgb, var(--t-primary) 70%, transparent)), var(--ph-img, linear-gradient(120deg, var(--t-primary-dark), var(--t-primary))) center/cover; }
.page-hero--diagonal { clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.page-hero--diagonal .page-hero__inner { padding-bottom: clamp(52px, 7vw, 84px); }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--t-footer-bg); color: var(--t-footer-text); font-size: .92rem; }
.site-footer a { color: var(--t-footer-text); }
.site-footer a:hover { color: var(--t-footer-head); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--t-footer-head) !important; font-family: var(--t-font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin-bottom: 14px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; background: rgba(255,255,255,.08); border-radius: 8px; padding: 4px; }
.site-footer__about { line-height: 1.75; margin-bottom: 14px; }
.site-footer__affil { font-size: .82rem; opacity: .85; }
.site-footer__affil i { color: var(--t-accent); margin-right: 4px; }
.site-footer__h { color: var(--t-footer-head); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; font-family: var(--t-font-head); }
.site-footer__list { list-style: none; display: grid; gap: 9px; }
.site-footer__list a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__list a i { font-size: .7em; opacity: .55; }
.site-footer__list a:hover { transform: translateX(3px); }
.site-footer__contact { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; word-break: break-word; }
.site-footer__contact i { color: var(--t-accent); margin-top: 4px; width: 16px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-on-accent); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.site-footer__bottominner { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.site-footer__meta { display: flex; gap: 16px; flex-wrap: wrap; opacity: .8; }
.site-footer__centered { text-align: center; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-footer__centered .site-footer__about { max-width: 640px; }
.site-footer__inline { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 600; }
.site-footer__contactline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .88rem; }
.site-footer__contactline i { color: var(--t-accent); margin-right: 4px; }
.site-footer--centered .social { justify-content: center; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__bottominner { flex-direction: column; } }

/* ---------- 11. Floating bits, popup, lightbox ---------- */
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--t-primary); color: var(--t-on-primary); box-shadow: var(--t-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 800; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--t-on-primary); background: var(--t-accent-dark); }
.wa-float { position: fixed; left: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 26px; box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 800; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.site-popup { position: fixed; inset: 0; z-index: 99990; background: rgba(2,6,23,.6); display: grid; place-items: center; padding: 20px; }
.site-popup[hidden] { display: none; }
.site-popup__box { background: #fff; color: #334155; border-radius: 16px; max-width: 480px; width: 100%; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.35); animation: popIn .3s ease; }
.site-popup__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: #fff; font-weight: 700; }
.site-popup__head span { flex: 1; }
.site-popup__head button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.22); color: #fff; font-size: 18px; line-height: 1; }
.site-popup__img { width: 100%; max-height: 220px; object-fit: cover; }
.site-popup__body { padding: 20px 22px; font-size: .95rem; line-height: 1.75; }
.site-popup__foot { padding: 0 22px 20px; display: flex; gap: 10px; align-items: center; }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }
.lightbox { position: fixed; inset: 0; z-index: 99995; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 0 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 36px; border-radius: 8px; }
.lightbox__prev { left: 14px; } .lightbox__next { right: 14px; }

/* ---------- 12. Generic content helpers used by inner pages ---------- */
.alert { padding: 13px 16px; border-radius: var(--t-radius); margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-danger, .alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.cms-content, .post-content { color: var(--t-text); font-size: 1rem; line-height: 1.85; }
.cms-content h2, .post-content h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.cms-content h3, .post-content h3 { font-size: 1.2rem; margin: 1.3em 0 .5em; }
.cms-content ul, .cms-content ol, .post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.cms-content a, .post-content a { text-decoration: underline; text-underline-offset: 3px; }
.cms-content img, .post-content img { border-radius: var(--t-radius); margin: 1em 0; }
.cms-content table, .post-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.cms-content th, .cms-content td, .post-content th, .post-content td { border: 1px solid var(--t-border); padding: 9px 12px; text-align: left; }
.cms-content th, .post-content th { background: var(--t-soft); color: var(--t-heading); }
.cms-content blockquote, .post-content blockquote { border-left: 4px solid var(--t-accent); margin: 1em 0; padding: .4em 1.2em; background: var(--t-soft); border-radius: 0 var(--t-radius) var(--t-radius) 0; }
.section-header, .sec-center { text-align: center; margin-bottom: 32px; }
.section-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-accent-dark); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.section-line { width: 60px; height: 3px; background: var(--t-accent); margin: 10px auto 0; border-radius: 3px; }
/* Inline-styled inner pages: soften hard white cards in tinted themes */
main input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), main select, main textarea { border-color: var(--t-border); }
main input:focus, main select:focus, main textarea:focus { outline: none; border-color: var(--t-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-primary) 18%, transparent); }

/* ---------- 13. Accessibility modes ---------- */
html.fs-md { font-size: 112.5%; } html.fs-md body { --t-body-size: 17.5px; }
html.fs-xl { font-size: 125%; } html.fs-xl body { --t-body-size: 19px; }
html.high-contrast { --t-text: #000; --t-heading: #000; --t-muted: #1f2937; --t-border: #4b5563; --t-bg: #fff; --t-soft: #f3f4f6; }
html.high-contrast body { filter: contrast(1.15); }
html.high-contrast a { text-decoration: underline; }

/* ---------- 14. Print ---------- */
@media print {
  .topbar, .tricolor, .ticker, .site-header, .drawer, .drawer-overlay, .back-to-top, .wa-float, .site-popup, .site-footer, .preview-bar { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero { background: none !important; color: #000; clip-path: none; }
  .page-hero__title { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}

/* Grid children must be allowed to shrink (prevents mobile horizontal overflow from wide tab rows) */
.about-notices__grid > *, .events-news__grid > *, .contact-sec__grid > *, .hero__grid > *, .messages__grid > *, .site-footer__grid > * { min-width: 0; }

/* Older inner pages use inline fixed-column grids (e.g. "1fr 320px"); stack them on phones */
@media (max-width: 760px) {
  main [style*="display:grid"][style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]),
  main [style*="display: grid"][style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) { grid-template-columns: 1fr !important; }
  main [style*="display:grid"] > *, main [style*="display: grid"] > * { min-width: 0; }
  main [style*="flex-direction:column"] > * { max-width: 100%; min-width: 0; align-self: stretch; }
  main [style*="position:sticky"] { position: static !important; }
  main table { display: block; overflow-x: auto; max-width: 100%; }
}

/* Compact inline menu (set by main.js before falling back to the hamburger) */
.site-header.nav-compact .site-header__bar .menu__link { padding: 8px 7px; font-size: .8rem; letter-spacing: 0; }
.site-header.nav-compact .site-header__bar .menu__caret { display: none; }
.site-header.nav-compact .site-header__bar .brand__tag { display: none; }
.site-header.nav-compact .site-header__bar { gap: 14px; }

/* ═════════════ CMS blocks (includes/cms.php) ═════════════ */
.cms-page { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.cms-page--narrow .cms-page__wrap { max-width: 820px; }
.cms-page--default .cms-page__main { max-width: 1040px; margin-inline: auto; }
.cms-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.cms-page__side { position: sticky; top: 90px; display: grid; gap: 18px; }
.cms-page__main > .cb + .cb { margin-top: clamp(22px, 3vw, 34px); }
.cms-page__main > .cb-heading + .cb { margin-top: 14px; }
@media (max-width: 960px) { .cms-page__grid { grid-template-columns: 1fr; } .cms-page__side { position: static; } }
.cb { min-width: 0; }
.cb-title { font-size: 1.15rem; margin: 0 0 12px; color: var(--t-heading); }
.cb-heading--center { text-align: center; }
.cb-heading--center .cb-heading__sub { margin-inline: auto; }
.cb-heading__title { margin: 4px 0 0; color: var(--t-heading); }
.cb-heading__sub { color: var(--t-muted); margin: 8px 0 0; max-width: 70ch; }
.cb-text { font-size: 1rem; line-height: 1.85; color: var(--t-text); }
.cms-content img { max-width: 100%; height: auto; border-radius: var(--t-radius-sm, 8px); }
.cms-content blockquote { border-left: 4px solid var(--t-accent); margin: 1rem 0; padding: .4rem 1rem; color: var(--t-muted); background: var(--t-soft); border-radius: 0 8px 8px 0; }
.cms-content > :first-child { margin-top: 0; } .cms-content > :last-child { margin-bottom: 0; }
.cb-image { margin: 0; } .cb-image img, .cb-image picture { display: block; width: 100%; height: auto; border-radius: var(--t-radius); }
.cb-image--medium { max-width: 680px; } .cb-image--small { max-width: 380px; }
.cb-image--center { margin-inline: auto; } .cb-image--right { margin-left: auto; }
.cb-image figcaption, .cb-video figcaption { font-size: .85rem; color: var(--t-muted); margin-top: 8px; text-align: center; }
.cb-imgtext { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.cb-imgtext--right .cb-imgtext__media { order: 2; }
.cb-imgtext__media img, .cb-imgtext__media picture { display: block; width: 100%; height: auto; border-radius: var(--t-radius); box-shadow: var(--t-shadow); }
.cb-imgtext__title { margin: 6px 0 12px; color: var(--t-heading); }
.cb-imgtext__body .btn { margin-top: 16px; }
@media (max-width: 760px) { .cb-imgtext { grid-template-columns: 1fr; } .cb-imgtext--right .cb-imgtext__media { order: 0; } }
.cb-gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.cb-gallery__item { position: relative; padding: 0; border: 0; background: var(--t-soft); border-radius: var(--t-radius-sm, 8px); overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; }
.cb-gallery__item img, .cb-gallery__item picture { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--t-ease); }
.cb-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .cb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cb-slider.slider { min-height: 420px; } .cb-slider--sm.slider { min-height: 300px; } .cb-slider--lg.slider { min-height: 540px; }
.cb-slider .slide__caption { color: #fff; } .cb-slider .hero__title { color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.cb-video__frame { position: relative; aspect-ratio: 16/9; border-radius: var(--t-radius); overflow: hidden; background: #000; }
.cb-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cb-video { margin: 0; }
.cb-buttons { display: flex; flex-wrap: wrap; gap: 10px; } .cb-buttons--center { justify-content: center; }
.cb-columns { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
@media (max-width: 760px) { .cb-columns { grid-template-columns: 1fr; } }
.cb-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .cb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-cards { grid-template-columns: 1fr; } }
.cb-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); color: var(--t-text); text-decoration: none; transition: transform .2s var(--t-ease), box-shadow .2s, border-color .2s; }
a.cb-card:hover { transform: translateY(-3px); box-shadow: var(--t-shadow); border-color: var(--t-primary); color: var(--t-text); }
.cb-cards--plain .cb-card { background: transparent; border-color: transparent; padding: 6px 0; }
.cb-cards--icon .cb-card { flex-direction: row; align-items: flex-start; }
.cb-card__icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--t-primary) 12%, transparent); color: var(--t-primary); font-size: 1.2rem; }
.cb-card__img { display: block; margin: -22px -22px 4px; } .cb-card__img img, .cb-card__img picture { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--t-radius) var(--t-radius) 0 0; }
.cb-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cb-card__title { color: var(--t-heading); font-size: 1.02rem; }
.cb-card__text { color: var(--t-muted); font-size: .92rem; line-height: 1.7; }
.cb-card__more { color: var(--t-primary); font-weight: 600; font-size: .88rem; margin-top: 4px; }
.cb-accordion { display: grid; gap: 10px; }
.cb-acc { border: 1px solid var(--t-border); border-radius: var(--t-radius-sm, 8px); background: var(--t-surface); }
.cb-acc summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; color: var(--t-heading); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cb-acc summary::-webkit-details-marker { display: none; }
.cb-acc summary i { transition: transform .2s; color: var(--t-muted); font-size: .8rem; }
.cb-acc[open] summary i { transform: rotate(180deg); }
.cb-acc__body { padding: 0 18px 16px; color: var(--t-text); line-height: 1.8; }
.cb-table { overflow-x: auto; }
.cb-table table { width: 100%; border-collapse: collapse; background: var(--t-surface); font-size: .95rem; }
.cb-table caption { text-align: left; font-weight: 600; padding: 0 0 8px; color: var(--t-heading); }
.cb-table th, .cb-table td { border: 1px solid var(--t-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.cb-table th { background: var(--t-primary); color: var(--t-on-primary); font-weight: 600; }
.cb-table .is-striped tbody tr:nth-child(even) td { background: var(--t-soft); }
.cb-callout { --c: #2563eb; display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--t-radius-sm, 8px); background: color-mix(in srgb, var(--c) 8%, var(--t-surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left-width: 4px; }
.cb-callout > i { color: var(--c); font-size: 1.15rem; margin-top: 3px; }
.cb-callout--success { --c: #15803d; } .cb-callout--warning { --c: #b45309; } .cb-callout--danger { --c: #b91c1c; } .cb-callout--brand { --c: var(--t-primary); }
.cb-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: clamp(22px, 4vw, 36px); border-radius: var(--t-radius); background: var(--t-primary); color: var(--t-on-primary); }
.cb-cta--accent { background: var(--t-accent); color: var(--t-on-accent); } .cb-cta--dark { background: var(--t-primary-dark); color: #fff; }
.cb-cta--light { background: var(--t-soft); color: var(--t-text); border: 1px solid var(--t-border); }
.cb-cta__title { margin: 0 0 6px; color: inherit; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.cb-cta p { margin: 0; opacity: .9; max-width: 60ch; }
.cb-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cb-quote { margin: 0; padding: clamp(20px, 4vw, 32px); border-radius: var(--t-radius); background: var(--t-soft); display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; }
.cb-quote__photo { grid-row: span 2; } .cb-quote__photo img, .cb-quote__photo picture { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; }
.cb-quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.8; color: var(--t-heading); font-style: italic; }
.cb-quote:not(:has(.cb-quote__photo)) { grid-template-columns: 1fr; }
.cb-quote figcaption b { display: block; color: var(--t-heading); } .cb-quote figcaption span { color: var(--t-muted); font-size: .9rem; }
.cb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cb-stats .stat { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 18px; text-align: center; }
.cb-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cb-links a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--t-text); text-decoration: none; font-weight: 500; }
.cb-links a:hover { background: var(--t-soft); color: var(--t-primary); }
.cb-links a i { color: var(--t-accent); font-size: .8rem; width: 16px; text-align: center; }
.cms-page__side .cb-links, .cms-page__side .cb-notices, .cms-page__side .cb-events { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: 16px; }
.cms-page__side .cb-buttons .btn { width: 100%; }
.cb-downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cb-downloads a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--t-border); border-radius: var(--t-radius-sm, 8px); background: var(--t-surface); color: var(--t-text); text-decoration: none; }
.cb-downloads a:hover { border-color: var(--t-primary); }
.cb-dl__ext { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #fee2e2; color: #b91c1c; font-weight: 700; font-size: .72rem; }
.cb-dl__t { flex: 1; min-width: 0; } .cb-dl__t b { display: block; color: var(--t-heading); } .cb-dl__t small { color: var(--t-muted); }
.cb-downloads a > i { color: var(--t-primary); }
.cb-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cb-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 16px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.cb-person__photo { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--t-soft); color: var(--t-muted); font-size: 2rem; margin-bottom: 8px; }
.cb-person__photo img, .cb-person__photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-person b { color: var(--t-heading); } .cb-person span, .cb-person small { color: var(--t-muted); font-size: .88rem; }
.cb-person a { font-size: .85rem; color: var(--t-primary); text-decoration: none; word-break: break-all; }
.cb-contact .contact-cards { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cb-contact .contact-cards li { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--t-border); border-radius: var(--t-radius); background: var(--t-surface); }
.cb-contact .contact-cards i { color: var(--t-primary); margin-top: 4px; } .cb-contact .contact-cards b { display: block; color: var(--t-heading); }
.cb-map iframe { width: 100%; border: 0; display: block; border-radius: var(--t-radius); }
.cb-spacer--sm { height: 8px; } .cb-spacer--md { height: 24px; } .cb-spacer--lg { height: 56px; }
.cb-spacer.has-line { height: auto; border-top: 1px solid var(--t-border); margin-block: 14px; }
.cb-form, .cb-subscribe { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius); padding: clamp(18px, 3vw, 28px); }
.cms-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cms-form .ff { display: flex; flex-direction: column; gap: 6px; } .cms-form .ff--full { grid-column: 1 / -1; }
.cms-form label { font-weight: 600; font-size: .9rem; color: var(--t-heading); } .cms-form label .req { color: #b91c1c; }
.cms-form input, .cms-form select, .cms-form textarea { width: 100%; padding: .7em .9em; border: 1px solid var(--t-border); border-radius: 8px; font: inherit; background: var(--t-bg, #fff); color: var(--t-text); }
.cms-form input:focus, .cms-form select:focus, .cms-form textarea:focus { outline: 2px solid var(--t-primary); outline-offset: 1px; }
.cms-form .ff-check { flex-direction: row; align-items: center; gap: 8px; } .cms-form .ff-check input { width: auto; }
.cms-form .ff-help { font-size: .8rem; color: var(--t-muted); }
.cms-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; } .form-msg--ok { background: #dcfce7; color: #14532d; } .form-msg--err { background: #fee2e2; color: #7f1d1d; }
@media (max-width: 640px) { .cms-form { grid-template-columns: 1fr; } }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .subscribe-form input[type=email] { flex: 1 1 240px; padding: .7em .9em; border: 1px solid var(--t-border); border-radius: 8px; font: inherit; }
.widget-strip { padding: 28px 0; background: var(--t-soft); border-top: 1px solid var(--t-border); }
.widget-area { display: grid; gap: 18px; }
/* Footer policy row + visitor counter */
.site-footer__policy { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__policy ul { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: .85rem; }
.site-footer__policy a { color: inherit; opacity: .85; text-decoration: none; } .site-footer__policy a:hover { opacity: 1; text-decoration: underline; }
.visit-count { white-space: nowrap; }
/* Front-end admin bar (logged-in admins only) */
.admin-bar { position: relative; z-index: 1000; display: flex; gap: 2px; align-items: center; padding: 0 10px; background: #111827; color: #e5e7eb; font: 500 13px/1 system-ui, sans-serif; overflow-x: auto; }
.admin-bar a { color: #e5e7eb; text-decoration: none; padding: 10px 12px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.admin-bar a:hover { background: #374151; color: #fff; }
.admin-bar__end { margin-left: auto; }
@media (max-width: 600px) { .admin-bar a span { display: none; } }

/* ---------- Full-width photo slideshow hero (hero: "slideshow") ---------- */
.hero--slideshow { position: relative; padding: 0; background: var(--t-soft); }
.slideshow { position: relative; height: clamp(440px, 76vh, 720px); overflow: hidden; background: var(--t-primary-dark, #0b1b33); color: #fff; touch-action: pan-y; }
.ss-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; background: linear-gradient(135deg, var(--t-primary), var(--t-primary-dark, #0b1b33)); }
.ss-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ss-slide__img { position: absolute; inset: 0; background: center/cover no-repeat; transform: scale(1.06); transition: transform 7s linear; will-change: transform; }
.ss-slide.is-active .ss-slide__img { transform: scale(1); }
.ss-slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,12,28,.82) 0%, rgba(5,12,28,.55) 38%, rgba(5,12,28,.08) 72%), linear-gradient(0deg, rgba(5,12,28,.55) 0%, transparent 35%); }
.ss-slide:not(.has-img) .ss-slide__shade { background: radial-gradient(900px 500px at 85% 10%, rgba(255,255,255,.10), transparent 60%); }
.ss-slide__inner { position: relative; z-index: 1; width: 100%; padding-bottom: 90px; }
.hero--slideshow.has-dock .ss-controls { bottom: 78px; }
.hero--slideshow.has-dock .ss-slide__inner { padding-bottom: 130px; }
.ss-slide__caption { max-width: 640px; }
.ss-slide.is-active .ss-slide__caption > * { animation: ssUp .8s cubic-bezier(.2,.7,.2,1) both; }
.ss-slide.is-active .ss-slide__caption > *:nth-child(2) { animation-delay: .08s; }
.ss-slide.is-active .ss-slide__caption > *:nth-child(3) { animation-delay: .16s; }
.ss-slide.is-active .ss-slide__caption > *:nth-child(4) { animation-delay: .24s; }
@keyframes ssUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ss-slide .hero__badge { background: var(--t-accent); color: var(--t-on-accent, #111); border: 0; }
.ss-slide .hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 14px 0 16px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.ss-slide .hero__title em { display: block; font-style: normal; color: var(--t-highlight, var(--t-accent)); font-size: .62em; margin-top: 8px; }
.ss-slide .hero__text { color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 560px; margin-bottom: 26px; }
.ss-slide .btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.ss-slide .btn--ghost:hover { background: #fff; color: var(--t-primary); border-color: #fff; }
.ss-controls { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.ss-controls > * { pointer-events: auto; }
.ss-dots { gap: 18px; }
.ss-dot { width: auto; height: auto; background: none; border-radius: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: rgba(255,255,255,.6); font: 700 .78rem/1 var(--t-font-head); letter-spacing: .08em; cursor: pointer; }
.ss-dot i { display: block; width: 42px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.ss-dot i::after { content: ''; position: absolute; inset: 0; width: 0; background: var(--t-accent); }
.ss-dot.is-active { color: #fff; width: auto; background: none; }
.ss-dot.is-active i::after { animation: ssBar 6s linear forwards; }
.slideshow:hover .ss-dot.is-active i::after { animation-play-state: paused; }
@keyframes ssBar { to { width: 100%; } }
.ss-arrows { display: flex; gap: 10px; }
.ss-arrows .slider__btn { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.ss-arrows .slider__btn:hover { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-on-accent, #111); }
.ss-dock-wrap { position: relative; z-index: 4; margin-top: -46px; }
.ss-dock { display: flex; align-items: stretch; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--t-radius-lg, 14px); box-shadow: var(--t-shadow-lg); overflow: hidden; }
.ss-dock__label { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 22px; background: var(--t-primary); color: var(--t-on-primary, #fff); font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; }
.ss-dock__item { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-right: 1px solid var(--t-border); color: var(--t-heading); transition: background .2s; }
.ss-dock__item:hover { background: var(--t-soft); color: var(--t-primary); }
.ss-dock__date { flex-shrink: 0; width: 46px; text-align: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--t-muted); line-height: 1.1; }
.ss-dock__date b { display: block; font-size: 1.35rem; color: var(--t-accent-dark, var(--t-accent)); font-family: var(--t-font-head); }
.ss-dock__t { font-size: .9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-dock__more { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 20px; font-weight: 700; font-size: .85rem; color: var(--t-primary); }
.ss-dock .stat { flex: 1; padding: 20px 14px; text-align: center; border-right: 1px solid var(--t-border); }
.ss-dock .stat:last-child, .ss-dock__item:nth-last-child(2) { border-right: 0; }
@media (max-width: 960px) {
  .ss-dock { flex-wrap: wrap; }
  .ss-dock__label { width: 100%; padding: 12px 18px; }
  .ss-dock__item { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--t-border); padding: 12px 18px; }
  .ss-dock__more { width: 100%; justify-content: center; padding: 12px; background: var(--t-soft); }
  .ss-dock .stat { flex: 1 1 50%; }
}
@media (max-width: 640px) {
  .slideshow { height: clamp(480px, 88vh, 600px); }
  .ss-slide { align-items: flex-end; }
  .ss-slide__shade { background: linear-gradient(0deg, rgba(5,12,28,.9) 0%, rgba(5,12,28,.55) 50%, rgba(5,12,28,.15) 100%); }
  .ss-dots { gap: 10px; } .ss-dot span { display: none; } .ss-dot i { width: 26px; }
  .ss-arrows .slider__btn { width: 40px; height: 40px; }
  .ss-controls, .hero--slideshow.has-dock .ss-controls { bottom: 24px; }
  .hero--slideshow.has-dock .ss-controls { bottom: 58px; }
  .ss-slide__inner, .hero--slideshow.has-dock .ss-slide__inner { padding-bottom: 92px; }
  .hero--slideshow.has-dock .ss-slide__inner { padding-bottom: 120px; }
  .ss-dock-wrap { margin-top: -36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-slide, .ss-slide__img { transition: none; } .ss-slide__img { transform: none; }
  .ss-slide.is-active .ss-slide__caption > *, .ss-dot.is-active i::after { animation: none; }
  .ss-dot.is-active i::after { width: 100%; }
}

/* ---------- Title helpers used by some themes ---------- */
.accent-word { color: var(--t-accent); }
.tricolor-word { display: inline-block; font-style: normal; background: linear-gradient(135deg, #ff9933 0%, #ff9933 30%, #f0f0f0 42%, #f0f0f0 58%, #138808 70%, #138808 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(.5px .5px 0 rgba(0,0,0,.35)) drop-shadow(-.5px -.5px 0 rgba(0,0,0,.35)) drop-shadow(-.5px .5px 0 rgba(0,0,0,.35)) drop-shadow(.5px -.5px 0 rgba(0,0,0,.35)); }
@media (forced-colors: active) { .tricolor-word { -webkit-text-fill-color: currentColor; background: none; filter: none; } }

/* Ticker placed above the header (layout.ticker_position: "above") */
.ticker--above { border-bottom: 0; }

/* Key-numbers card badge (Customize → hero_stats_badge) */
.hero__stats[data-badge] { position: relative; overflow: visible; }
.hero__stats[data-badge]::before { content: attr(data-badge); position: absolute; top: -14px; right: -10px; z-index: 2; max-width: 150px; background: linear-gradient(135deg, var(--t-accent), var(--t-accent-dark, var(--t-accent))); color: var(--t-on-accent, #fff); padding: 9px 14px; border-radius: 10px; font-size: .7rem; font-weight: 700; line-height: 1.35; text-align: center; box-shadow: var(--t-shadow); }

/* Banner photo behind the split hero (Customize → "Banner photo behind the text") */
.hero.has-photo-bg { isolation: isolate; }
.hero__photo { position: absolute; inset: -40px; z-index: -2; background: center/cover no-repeat; filter: blur(14px) saturate(1.05); transform: scale(1.04); }
.photo-bg--soft .hero__photo { filter: blur(5px); }
.photo-bg--clear .hero__photo { filter: none; inset: 0; transform: none; }
.hero.has-photo-bg::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.80) 45%, rgba(255,255,255,.55) 100%); }
.photo-bg--clear.has-photo-bg::before { background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 50%, rgba(255,255,255,.62) 100%); }
.hero.has-photo-bg .hero__bg { opacity: .6; }
@media (max-width: 960px) { .hero.has-photo-bg::before { background: rgba(255,255,255,.84); } }
@media print { .hero__photo { display: none; } }
