/* =====================================================================
   Kho Kho Uganda — design layer (loads AFTER site.css and overrides it)

   Idea: the court is the identity. A Kho Kho court is a flat rectangle
   with one central lane, a pole at each end and eight cross lanes where
   the chasers sit. Those lines become the page's only decoration (hero,
   page headers, section rules); everything else stays quiet.

   Palette  Official colours: light blue, yellow, black (Kho Kho Uganda vision document).
            Sky #4db6e8 (accents) · Sky ink #0a6ea6 (text, buttons) · Yellow #ffd400 · Black #0a0a0a · Chalk #f7f9fa
   Type     Bricolage Grotesque (headings, numerals) + Figtree (text)
   Dark     [data-bs-theme="dark"] on <html>, toggled in the header
   ===================================================================== */

:root {
    --kku-blue: #0a6ea6;
    --kku-blue-dark: #0a0a0a;          /* "ink" — used by site.css for headings and dark panels */
    --kku-gold: #ffd400;
    --kku-sky: #4db6e8;
    --kku-red: #0a6ea6;                /* legacy alias: site.css still reads this token; it is now the brand sky-ink, never red */
    --kku-black: #0a0a0a;
    --kku-ink: #161616;
    --kku-muted: #5a5f66;
    --kku-bg-alt: #f2f6f8;

    --bg: #f7f9fa;
    --surface: #ffffff;
    --line: #dde3e8;
    --text: #161616;
    --link: #0a6ea6;
    --heading: #0a0a0a;

    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;

    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 1px 2px rgba(10, 10, 10, .06);
    --shadow-med: 0 6px 20px rgba(10, 10, 10, .08);
    --shadow-strong: 0 12px 30px rgba(10, 10, 10, .12);
    --shadow-blue: 0 6px 16px rgba(10, 110, 166, .25);
    --shadow-gold: 0 6px 16px rgba(255, 212, 0, .3);
    --gradient-brand: #0a6ea6;
    --gradient-gold: #ffd400;

    --court-line: rgba(255, 255, 255, .09);
    --bs-body-font-family: var(--font-body);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-link-color: var(--link);
}

[data-bs-theme="dark"] {
    --bg: #0a0c0e;
    --surface: #14181c;
    --line: #262c33;
    --text: #eef2f5;
    --link: #6cc4f0;
    --heading: #f5f7f8;
    --kku-ink: #eef2f5;
    --kku-muted: #a3adb8;
    --kku-bg-alt: #0f1316;
    --kku-blue-dark: #f5f7f8;           /* headings that used the dark ink flip to near-white */
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-med: 0 6px 20px rgba(0, 0, 0, .35);
    --shadow-strong: 0 12px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: none;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .brand-text { font-family: var(--font-display); letter-spacing: -.012em; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--kku-gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--kku-gold); color: #0a0a0a; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--kku-gold); color: #0a0a0a;
    padding: .6rem 1rem; border-radius: 8px; font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #0a0a0a; }

/* Removes site.css decoration that doesn't carry information */
.section-blob, .hero-glow, .hero-overlay, .wave-divider { display: none !important; }
.btn::after { display: none; }
.glow-border::before { display: none; }
.reveal { opacity: 1; transform: none; transition: none; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 700; letter-spacing: 0; }
.btn-primary { background: var(--kku-blue); color: #fff; box-shadow: none; }
.btn-primary:hover, .btn-primary:focus-visible { background: #08577f; transform: none; box-shadow: none; color: #fff; }
.btn-warning { background: var(--kku-gold); color: #0a0a0a !important; box-shadow: none; }
.btn-warning:hover { background: #ffd23d; transform: none; box-shadow: none; }
.btn-outline-primary { border-width: 2px; color: var(--link); border-color: var(--link); }
.btn-outline-primary:hover { background: var(--kku-blue); border-color: var(--kku-blue); color: #fff; }
.btn-outline-light { border-width: 2px; }
.hero-actions .btn, .join-cta .btn { border-radius: 10px; padding: .8rem 1.5rem; }

/* ---------- topbar + navigation ---------- */
.topbar { background: #050505; font-size: .8rem; padding: .35rem 0; }
.main-nav {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    box-shadow: 0 1px 0 var(--line);
    padding: .4rem 0;
}
.brand-text { color: var(--heading); font-size: 1rem; }
.brand-text strong { color: var(--kku-blue); }
[data-bs-theme="dark"] .brand-text strong { color: var(--kku-sky); }
.brand-text small { color: var(--kku-muted); letter-spacing: .02em; font-size: .7rem; }
.main-nav .nav-link { color: var(--text); font-weight: 600; padding: .55rem .8rem; border-radius: 8px; position: relative; }
.main-nav .nav-link:hover { color: var(--link); background: transparent; }
.main-nav .nav-link.active::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 3px; background: var(--kku-gold); border-radius: 2px;
}
.main-nav .btn.nav-link { background: var(--kku-blue); color: #fff !important; border-radius: 10px; padding: .55rem 1.1rem; }
.main-nav .btn.nav-link::after { display: none; }
.main-nav .btn.nav-link:hover { background: #08577f; }
.dropdown-menu { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-strong); padding: .4rem; }
.dropdown-item { border-radius: 8px; color: var(--text); font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--kku-bg-alt); color: var(--link); }
.navbar-toggler { border-color: var(--line); }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

.nav-tools { display: flex; align-items: center; gap: .25rem; margin-left: .5rem; }
.icon-btn {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--text); border-radius: 10px; font-size: 1.1rem; cursor: pointer;
}
.icon-btn:hover { background: var(--kku-bg-alt); color: var(--link); }
.theme-icon-dark { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: inline; }
[data-bs-theme="dark"] .theme-icon-light { display: none; }

/* search panel */
.search-panel { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.search-panel[hidden] { display: none; }
.search-panel form { display: flex; gap: .6rem; padding: .9rem 0; }
.search-panel input {
    flex: 1; min-width: 0; font: inherit; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 10px;
    background: var(--bg); color: var(--text);
}
.search-panel input:focus { border-color: var(--kku-blue); outline: none; }
.search-suggest { list-style: none; margin: 0; padding: 0 0 .9rem; display: grid; gap: .15rem; }
.search-suggest a { display: flex; gap: .7rem; padding: .45rem .6rem; border-radius: 8px; color: var(--text); font-weight: 500; }
.search-suggest a:hover { background: var(--kku-bg-alt); }
.search-suggest .kind { flex: 0 0 3.8rem; font-size: .78rem; font-weight: 700; color: var(--kku-red); }

/* ---------- hero: the court ---------- */
.hero {
    background-color: #0a0a0a;
    background-image:
        linear-gradient(90deg, var(--court-line) 1px, transparent 1px),
        linear-gradient(0deg, transparent calc(50% - 1px), var(--court-line) calc(50% - 1px), var(--court-line) calc(50% + 1px), transparent calc(50% + 1px));
    background-size: 72px 100%, 100% 100%;
    padding: 4.5rem 0 4rem;
    color: #fff;
}
.hero::after { display: none; }
.badge-pill {
    background: transparent; border: 0; border-left: 4px solid var(--kku-gold); border-radius: 0; color: #ffe27a;
    padding: .1rem 0 .1rem .8rem; font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; margin-bottom: 1.4rem;
}
.hero-title {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    line-height: 1.02; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 1.4rem;
}
.hero-title span { color: inherit; }
.hero-lead { font-size: 1.15rem; max-width: 34rem; opacity: .9; line-height: 1.6; }

.next-up {
    display: inline-flex; align-items: center; gap: .9rem; margin-top: 2rem; padding: .7rem 1rem .7rem .8rem;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; color: #fff; max-width: 100%;
}
.next-up:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.next-up .count { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--kku-gold); min-width: 2.2ch; text-align: center; }
.next-up .count small { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 600; color: #ffe9a0; }
.next-up .what { font-weight: 600; line-height: 1.3; }
.next-up .what small { display: block; font-weight: 400; opacity: .8; }

.court-wrap { position: relative; }
.court { width: 100%; height: auto; display: block; }
.court .c-floor { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.court .c-line { stroke: rgba(255, 255, 255, .45); stroke-width: 2; }
.court .c-lane { stroke: rgba(255, 255, 255, .8); stroke-width: 3; }
.court .c-pole { fill: var(--kku-gold); }
.court .c-chaser { fill: #fff; }
.court .c-chaser-nose { fill: var(--kku-sky); }
.court .c-zone { fill: rgba(255, 212, 0, .07); }
.court-caption { font-size: .85rem; color: rgba(255, 255, 255, .72); margin: .8rem 0 0; max-width: 34rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- stats ---------- */
.stats-strip { background: #050505; padding: 2.2rem 0; color: #fff; border-top: 4px solid var(--kku-gold); }
.stat-icon { display: none; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat-label { margin-top: .35rem; font-size: .95rem; text-transform: none; letter-spacing: 0; opacity: .75; }
.stats-strip .col-6, .stats-strip .col-lg-3 { text-align: left; }
.stats-strip .row { text-align: left !important; }

/* ---------- sections ---------- */
.section-pad { padding: 4.5rem 0; }
.bg-light-alt { background: var(--kku-bg-alt); }
.eyebrow {
    text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 700; color: var(--kku-red);
    padding-left: 0; display: block;
}
.eyebrow::before { display: none; }
.section-title { font-family: var(--font-display); font-weight: 800; color: var(--heading); letter-spacing: -.025em; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.section-text { color: var(--kku-muted); max-width: 62ch; font-size: 1.05rem; }
.text-muted { color: var(--kku-muted) !important; }
[data-bs-theme="dark"] .text-primary { color: var(--link) !important; }
.container.text-center .section-text, .section-text.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- cards (one quiet treatment shared by all) ---------- */
.news-card, .event-card, .event-card-lg, .step-chip, .achievement-showcase-card, .benefit-card, .leader-card, .sb-card,
.sidebar-card, .reg-steps-card, .reg-benefits-card, .news-mag-item, .news-lead-card, .fixture-row, .publication-list .list-group-item,
.flag-chip, .filter-chip, .reg-type-card, .reg-form-inner, .status-check-card, .quote-card {
    background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none;
}
.news-card, .event-card, .event-card-lg, .achievement-showcase-card, .benefit-card, .leader-card, .step-chip, .news-mag-item {
    border-radius: var(--radius-md);
}
.news-card:hover, .event-card:hover, .event-card-lg:hover, .achievement-showcase-card:hover, .benefit-card:hover,
.leader-card:hover, .step-chip:hover, .news-mag-item:hover, .news-lead-card:hover {
    transform: none; box-shadow: var(--shadow-med); border-color: var(--kku-blue); color: var(--text);
}
.news-card:hover .news-card-img { transform: none; }
.news-card-img { height: 180px; }
.news-card-img::after { background: linear-gradient(0deg, rgba(10, 10, 10, .55), transparent 55%); }
.news-card-body { border-top: 0; padding: 1.1rem 1.2rem 1.3rem; }
.news-card-body h5 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--heading); }
.news-date { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; color: var(--kku-muted); }
.cat-tag { background: var(--kku-gold); color: #0a0a0a; box-shadow: none; border-radius: 6px; font-size: .78rem; }
.news-card-featured .news-card-body h5 { font-size: 1.6rem; letter-spacing: -.02em; }
.news-lead-body { border-top: 0; }
.news-lead-card { border-radius: var(--radius-lg); }
.news-lead-body h2 { color: var(--heading); font-family: var(--font-display); }
.news-lead-meta { text-transform: none; letter-spacing: 0; }
.news-mag-body h5, .related-item, .sb-trending-title { color: var(--heading); }

.achievement-showcase-card { text-align: left; padding: 1.6rem; }
.achievement-showcase-card .medal-badge {
    margin: 0 0 1rem; width: 56px; height: 56px; border-radius: 12px; background: var(--kku-gold); box-shadow: none; font-size: 1.6rem;
}
.achievement-showcase-card h5 { color: var(--heading); font-size: 1.1rem; }
.achievement-card { background: #0a0a0a; border: 0; border-left: 6px solid var(--kku-gold); border-radius: var(--radius-lg); box-shadow: none; }
.achievement-card::before { display: none; }
.achievement-card h4 { font-family: var(--font-display); font-weight: 800; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list i { color: var(--kku-blue); margin-top: .2rem; }
[data-bs-theme="dark"] .check-list i { color: var(--kku-gold); }

.step-chip .sc-icon { background: var(--kku-bg-alt); }
.step-chip .sc-title { color: var(--heading); font-size: 1rem; }
.step-chip .sc-text { color: var(--kku-muted); font-size: .9rem; }

.profile-mini-card, .profile-card-full { border-radius: var(--radius-md); box-shadow: none; }
.profile-mini-card:hover, .profile-card-full:hover { transform: none; box-shadow: var(--shadow-strong); }
.profile-mini-card .pm-role, .profile-card-full .pcf-role { background: var(--kku-gold); }
.profile-mini-card img { background: var(--kku-bg-alt); }

.event-card { border-left: 1px solid var(--line); padding: 1.3rem; }
.event-card:hover { border-left-color: var(--kku-blue); }
.event-card h6 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--heading); }
.event-date-badge { background: #0a0a0a; box-shadow: none; border-radius: 8px; border-bottom: 3px solid var(--kku-gold); padding: .45rem .8rem; }
[data-bs-theme="dark"] .event-date-badge { background: #1b2a4a; }
.event-date-badge .m { font-size: .75rem; text-transform: none; letter-spacing: .04em; }
.badge-type { background: var(--kku-bg-alt); color: var(--heading); }

.global-strip { background: var(--kku-bg-alt); }
.flag-chip { border-radius: 8px; box-shadow: none; }
.flag-chip:hover { transform: none; border-color: var(--kku-blue); }
.flag-chip-highlight { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
[data-bs-theme="dark"] .flag-chip-highlight { background: var(--kku-gold); color: #0a0a0a; border-color: var(--kku-gold); }

.quote-card { border: 0; background: transparent; }
.quote-card p { font-family: var(--font-display); color: var(--heading); font-weight: 600; letter-spacing: -.01em; }
.quote-author { color: var(--kku-muted); }
[data-bs-theme="dark"] #voicesCarousel .carousel-control-prev-icon,
[data-bs-theme="dark"] #voicesCarousel .carousel-control-next-icon { filter: none; }

.join-cta { background: #0a0a0a; border-top: 4px solid var(--kku-gold);
    background-image: linear-gradient(90deg, var(--court-line) 1px, transparent 1px); background-size: 72px 100%; }
.join-cta h2 { font-family: var(--font-display); letter-spacing: -.02em; }
.join-cta .btn { border-radius: 10px; }

/* ---------- inner-page headers: court lines instead of dots/blobs ---------- */
.page-hero, .page-header, .news-masthead {
    background-color: #0a0a0a;
    background-image: linear-gradient(90deg, var(--court-line) 1px, transparent 1px);
    background-size: 72px 100%;
    border-bottom: 4px solid var(--kku-gold);
}
.page-hero::before, .page-hero::after, .page-header::after, .news-masthead-pattern { display: none; }
.page-hero h1, .masthead-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero-stats .chip { background: rgba(255, 255, 255, .08); border-radius: 8px; backdrop-filter: none; }
.masthead-ticker { border-radius: 12px; backdrop-filter: none; background: rgba(255, 255, 255, .06); }
.news-search-form { border-radius: 12px; backdrop-filter: none; }
.news-search-form button { border-radius: 8px; }

/* filters */
.filter-chip { border-radius: 8px; box-shadow: none; color: var(--text); }
.filter-chip.active, .filter-chip:hover { background: #0a0a0a; border-color: #0a0a0a; color: #fff; transform: none; }
[data-bs-theme="dark"] .filter-chip.active, [data-bs-theme="dark"] .filter-chip:hover { background: var(--kku-gold); border-color: var(--kku-gold); color: #0a0a0a; }
.sb-tag { background: var(--kku-bg-alt); color: var(--text); border-radius: 8px; }
.sb-tag.active, .sb-tag:hover { background: #0a0a0a; color: #fff; }
.sb-newsletter { background: #0a0a0a; border-color: #0a0a0a; }
.sb-card h6, .sidebar-card h6 { color: var(--heading); font-family: var(--font-display); }
.sb-newsletter h6 { color: #fff; }
.sb-cta { border: 2px solid var(--kku-gold); }
.cta-card { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.cta-card h6 { color: #fff; }
.news-pagination .page-link { background: var(--surface); color: var(--text); border-color: var(--line); border-radius: 8px; }
.news-pagination .page-item.active .page-link { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }

/* forms */
.form-control, .form-select { background-color: var(--surface); color: var(--text); border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--kku-blue); box-shadow: 0 0 0 .2rem rgba(10, 110, 166, .2); background-color: var(--surface); color: var(--text); }
.form-label { font-weight: 600; }
.reg-type-card { border-radius: 12px; border-width: 2px; }
.reg-type-card.active { border-color: var(--kku-gold); background: var(--surface); box-shadow: none; }
.reg-form.framed { background: var(--line); border: 0; }
.reg-form-inner { border-radius: 14px; }
.reg-help-card { background: #0a0a0a; }
.framed { background: var(--line) !important; border: 0; padding: 1px; border-radius: 14px; }

/* article */
.article-body { font-size: 1.1rem; line-height: 1.8; max-width: 68ch; }
.article-body blockquote { background: var(--kku-bg-alt); border-left-color: var(--kku-gold); color: var(--heading); font-style: normal; font-family: var(--font-display); font-size: 1.15rem; }
.article-hero-overlay { background: linear-gradient(0deg, rgba(10, 10, 10, .9), rgba(10, 10, 10, .25)); }
.article-hero h1 { font-family: var(--font-display); letter-spacing: -.03em; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; }
.article-inline-img { border-radius: 12px; box-shadow: none; }
.sidebar-card { background: var(--surface); }
.share-row a, .share-row button { width: 40px; height: 40px; border-radius: 10px; background: var(--kku-bg-alt); color: var(--text); border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.share-row a:hover, .share-row button:hover { background: var(--kku-blue); color: #fff; }
.read-meta { display: inline-flex; gap: 1rem; flex-wrap: wrap; }

/* tables, timelines, leaders */
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); color: var(--text); }
.timeline-item .year, .milestone-title, .leader-card h6, .benefit-card h5 { color: var(--heading); }
.milestone-item::before { border-color: var(--bg); }
.leader-avatar { background: #0a0a0a; box-shadow: none; outline-color: var(--kku-gold); }
.benefit-card i { background: #0a0a0a; box-shadow: none; border-radius: 10px; color: var(--kku-gold); }
.publication-list .list-group-item { border-radius: var(--radius-md) !important; }
.publication-list .list-group-item:hover { transform: none; border-color: var(--kku-blue) !important; }
.publication-list .bi-download { background: var(--kku-bg-alt); color: var(--link); }
.album-card h6 { color: var(--heading); }
.album-cover { box-shadow: none; }
.album-card:hover .album-cover { transform: none; box-shadow: var(--shadow-med); }
.masonry-item { box-shadow: none; }
.accordion { --bs-accordion-bg: var(--surface); --bs-accordion-color: var(--text); --bs-accordion-border-color: var(--line);
    --bs-accordion-btn-bg: var(--surface); --bs-accordion-btn-color: var(--heading); --bs-accordion-active-bg: var(--kku-bg-alt); --bs-accordion-active-color: var(--heading); }
.accordion-button { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1); }

/* footer */
.site-footer { background: #050505; border-top: 4px solid var(--kku-gold); }
.footer-brand { font-family: var(--font-display); color: var(--kku-gold); }
.footer-links a { color: rgba(255, 255, 255, .72); }
.social-row a { border-radius: 10px; }
.newsletter-form .form-control { border-radius: 10px 0 0 10px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter-form .btn { border-radius: 0 10px 10px 0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.back-to-top { background: #0a0a0a; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); }

/* lazy video widget */
.floating-video-body .fv-poster {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat;
}
.floating-video-body .fv-poster span {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; color: #fff;
    background: rgba(10, 10, 10, .35);
}
.floating-video-body .fv-poster:hover span { background: rgba(10, 10, 10, .15); }
.floating-video-header { background: #0a0a0a; }

/* new pages */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--kku-muted); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: .6rem; color: var(--line); }
.result-group h2 { font-size: 1.25rem; font-weight: 800; margin: 2rem 0 .8rem; color: var(--heading); }
.result-item { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); margin-bottom: .6rem; }
.result-item:hover { border-color: var(--kku-blue); color: var(--text); }
.result-item strong { display: block; font-family: var(--font-display); color: var(--heading); }
.result-item span { color: var(--kku-muted); font-size: .92rem; }
.dir-table { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dir-table .table { margin: 0; }
.dir-table th { font-size: .85rem; color: var(--kku-muted); font-weight: 700; background: var(--kku-bg-alt); border-bottom: 1px solid var(--line); }
.status-page { min-height: 55vh; display: flex; align-items: center; }
.status-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; letter-spacing: -.05em; color: var(--heading); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; }
.contact-card i { color: var(--kku-blue); font-size: 1.3rem; }
[data-bs-theme="dark"] .contact-card i { color: var(--kku-gold); }
.add-to-cal { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; position: relative; z-index: 2; }

/* offline notice shown by the service worker fallback */
.offline-note { background: var(--kku-gold); color: #0a0a0a; text-align: center; padding: .4rem; font-weight: 700; font-size: .9rem; }

@media (max-width: 991.98px) {
    .hero { padding: 3rem 0 2.5rem; }
    .nav-tools { margin: .5rem 0; }
    .main-nav .nav-link.active::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
    .topbar, .main-nav, .site-footer, .back-to-top, .floating-video, .floating-video-reopen, .search-panel { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ---------- official palette: light blue on dark surfaces ---------- */
[data-bs-theme="dark"] .eyebrow,
[data-bs-theme="dark"] .milestone-year,
[data-bs-theme="dark"] .search-suggest .kind { color: var(--kku-sky); }
.hero, .page-hero, .page-header { --kku-red: var(--kku-sky); }
.stat-number { text-shadow: none; }


/* ===== Photo grid, lightbox, videos (photos update) ===== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.photo-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e8f4fb; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-tile:hover img, .photo-tile:focus-visible img { transform: scale(1.05); }
.photo-tile:focus-visible { outline: 3px solid var(--kku-yellow, #ffd400); outline-offset: 2px; }
.photo-cap { position: absolute; inset: auto 0 0 0; padding: 1.4rem .7rem .55rem; color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.3;
    background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); opacity: 0; transition: opacity .25s; }
.photo-tile:hover .photo-cap, .photo-tile:focus-visible .photo-cap { opacity: 1; }
@media (hover: none) { .photo-cap { display: none; } }

.chip-link { text-decoration: none; }
.chip-link:hover { background: #ffd400; color: #0a0a0a; }

.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.93); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(94vw, 1400px); text-align: center; }
.lb-fig img { max-width: 100%; max-height: 80vh; border-radius: 6px; }
.lb-fig figcaption { color: #fff; padding: .8rem 1rem 0; font-size: .95rem; min-height: 2.6rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: #ffd400; color: #0a0a0a; outline: none; }
.lb-close { top: 14px; right: 14px; font-size: 1.8rem; line-height: 1; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 20px; left: 20px; color: #fff; opacity: .75; font-size: .85rem; }
@media (max-width: 576px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

.video-card { background: var(--kku-surface, #fff); border: 1px solid rgba(10,110,166,.18); border-radius: 14px; overflow: hidden; height: 100%; }
.video-card video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #0a0a0a; object-fit: contain; }
.video-body { padding: 1rem 1.15rem 1.2rem; }
.video-body h2 { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.video-body p { margin: 0; color: var(--kku-muted, #4a5a66); }
.video-kind { font-size: .8rem; font-weight: 700; color: var(--kku-blue); }

.leader-feature { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 2rem; align-items: center; margin-bottom: 3rem; }
.leader-feature img, .org-chart img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(10,110,166,.2); }
.org-chart { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 2rem; align-items: center; margin-top: 3rem; }
@media (max-width: 768px) { .leader-feature, .org-chart { grid-template-columns: 1fr; } }

.photo-band { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; height: clamp(260px, 36vw, 440px); }
.photo-band a { position: relative; overflow: hidden; border-radius: 12px; display: block; }
.photo-band a:first-child { grid-row: 1 / 3; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-band a:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .photo-band { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 120px 120px; height: auto; } .photo-band a:first-child { grid-column: 1 / 3; grid-row: 1; } }
.home-video { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #0a0a0a; }
.home-video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .85; display: block; }
.home-video .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: #ffd400; color: #0a0a0a; display: grid; place-items: center; font-size: 1.8rem; }
.home-video .t { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem; color: #fff; font-weight: 700; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
