/* ==========================================================================
   TMSS Health Research Foundation — public site
   Colours / fonts / radius are overridden at runtime from Admin → Settings → Colours & style.
   ========================================================================== */

:root {
    --primary: #1C5CAB;
    --primary-dark: #0F3F7C;
    --secondary: #4E8AD4;
    --accent: #2E9E6B;
    --tint: #DCE9F9;
    --surface: #F4F4F1;
    --text: #1B2A3D;
    --radius: 10px;
    --container: 1200px;
    --font-heading: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, sans-serif;
    --font-body: 'Inter', 'Hind Siliguri', system-ui, sans-serif;

    --muted: #5d6c80;
    --line: #dfe6ef;
    --white: #fff;
    --shadow-sm: 0 1px 3px rgba(15, 40, 80, .08), 0 1px 2px rgba(15, 40, 80, .06);
    --shadow: 0 10px 30px rgba(15, 50, 100, .10);
    --shadow-lg: 0 18px 50px rgba(15, 50, 100, .16);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text);
    background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; margin: 0 0 .6em; color: var(--text); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--primary-dark); color: #fff; padding: .7rem 1.1rem; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem;
    border-radius: var(--radius); border: 2px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(28, 92, 171, .28); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--secondary { background: var(--tint); color: var(--primary-dark); }
.btn--secondary:hover { background: var(--secondary); color: #fff; }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--tint); color: var(--primary-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--primary-dark); }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.btn--lg { padding: .9rem 1.7rem; font-size: 1.02rem; }
.btn small { opacity: .75; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }
.btn-row--right { justify-content: flex-end; }

/* ----- Top bar ----------------------------------------------------------- */
.topbar { background: var(--primary-dark); color: rgba(255, 255, 255, .92); font-size: .85rem; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar__left a, .topbar__login { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__social { display: inline-flex; opacity: .85; }
.topbar__social:hover { opacity: 1; }
.topbar__login { background: rgba(255, 255, 255, .14); padding: .25rem .8rem; border-radius: 999px; font-weight: 600; }
.topbar__login:hover { background: rgba(255, 255, 255, .26); }
.topbar__note { opacity: .9; }
.topbar__login { white-space: nowrap; }
@media (max-width: 640px) {
    .topbar__left a[href^="mailto"], .topbar__note, .topbar__social { display: none; }
    .topbar__inner { min-height: 36px; }
}

/* ----- Header & navigation ------------------------------------------------ */
.site-header { background: #fff; z-index: 70; }
.site-header.is-sticky { position: sticky; top: 0; }
.has-admin-bar .site-header.is-sticky { top: 0; }
.header-main { background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.is-scrolled .header-main { box-shadow: var(--shadow-sm); }
.topbar__inner, .header-main__inner { max-width: min(1440px, 100%); }
.header-main__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; transition: min-height .2s; }
.is-scrolled .header-main__inner { min-height: 60px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 46px; height: 46px; flex: none; transition: width .2s, height .2s; }
.is-scrolled .brand__mark { width: 38px; height: 38px; }
.brand__logo { height: 54px; width: auto; max-width: 280px; object-fit: contain; transition: height .2s; }
.is-scrolled .brand__logo { height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; color: var(--primary); }
.brand__text small { font-size: .72rem; color: var(--muted); font-weight: 600; max-width: 230px; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: rgba(255, 255, 255, .75); }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); transition: background .2s; }
.icon-btn:hover { background: var(--tint); color: var(--primary); }
.nav-burger { display: none; }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-bar { background: var(--primary); }
.nav-bar__inner { max-width: min(1440px, 100%); }
.nav__list { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; }
.nav-row { display: flex; align-items: stretch; height: 100%; }
.nav-link {
    display: flex; align-items: center; gap: .3rem; padding: .8rem .6rem; color: #fff; font-weight: 600; font-size: .88rem; line-height: 1.25;
    text-decoration: none; background: none; border: 0; text-align: left; transition: background .2s; white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-item > .nav-row > .nav-link:hover, .nav-item.is-active > .nav-row > .nav-link, .nav-item:focus-within > .nav-row > .nav-link { background: rgba(255, 255, 255, .15); }
.nav-item.is-active > .nav-row > .nav-link, .nav-item.level-1.is-active > .nav-link { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-item.level-1 > .nav-link:hover { background: rgba(255, 255, 255, .15); }
.nav-item.level-1 > a.nav-link.is-current, .nav-item.level-1 > a.nav-link[aria-current] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-label { cursor: default; }
button.nav-label { cursor: pointer; }
.sub-toggle { color: inherit; }
.nav-row > .sub-toggle:not(.nav-link) { display: inline-grid; place-items: center; width: 28px; margin-left: -.6rem; padding: 0 .35rem 0 0; background: none; border: 0; color: #fff; }
.nav-row .icon { transition: transform .2s; }
.nav-item.has-sub:hover > .nav-row .icon, .nav-item.open > .nav-row .icon { transform: rotate(180deg); }
.nav-item.is-button > .nav-link, .nav-item.is-button > .nav-row > .nav-link { background: var(--accent); margin: .5rem .35rem; padding: .45rem 1rem; border-radius: var(--radius); box-shadow: none; }

.sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: .5rem 0; background: #fff;
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 80;
}
.nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu, .nav-item.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu .nav-item { display: block; }
.sub-menu .nav-link { color: var(--text); padding: .6rem 1.1rem; font-weight: 500; font-size: .92rem; width: 100%; justify-content: space-between; white-space: normal; }
.nav-item--long > .nav-row > .nav-link, .nav-item--long > .nav-link { white-space: normal; max-width: 10.5rem; }
.sub-menu .nav-row { width: 100%; }
.sub-menu .nav-row > .sub-toggle:not(.nav-link) { color: var(--muted); margin: 0; width: 38px; padding: 0; }
.sub-menu .nav-item > .nav-row > .nav-link:hover, .sub-menu .nav-item.is-active > .nav-row > .nav-link, .sub-menu .nav-item > .nav-link:hover { background: var(--tint); color: var(--primary-dark); box-shadow: none; }
.sub-menu .nav-item.is-active > .nav-link { color: var(--primary); font-weight: 600; background: var(--tint); }
.sub-menu .sub-menu { top: -.5rem; left: 100%; border-radius: var(--radius); border-top-width: 0; border-left: 3px solid var(--accent); }
.sub-menu .nav-row .icon { transform: rotate(-90deg); }
.sub-menu .nav-item.has-sub:hover > .nav-row .icon { transform: rotate(-90deg); }
/* Drop-downs open under their own item; site.js adds .sub-flip only when one would run off the right edge of the screen. */
.nav__list > .nav-item.sub-flip > .sub-menu { left: auto; right: 0; }
.nav__list > .nav-item.sub-flip .sub-menu .sub-menu { left: auto; right: 100%; border-left: 0; border-right: 3px solid var(--accent); }

.search-panel { background: var(--tint); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.search-panel__form { display: flex; gap: .75rem; }
.search-panel input[type="search"] { flex: 1; padding: .8rem 1rem; border: 2px solid transparent; border-radius: var(--radius); background: #fff; font-size: 1rem; }
.search-panel input[type="search"]:focus { border-color: var(--primary); outline: none; }
.nav-backdrop { display: none; }
.nav-brand { display: none; }

@media (max-width: 1239px) {
    .nav-burger { display: inline-grid; }
    .brand__text small { max-width: 160px; }
    .nav-bar {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; z-index: 120; transform: translateX(105%);
        transition: transform .3s var(--ease); overflow-y: auto; padding: 0 0 2rem; box-shadow: var(--shadow-lg);
    }
    /* logo in the strip above the links (the fixed close button sits on the right) */
    .nav-brand { display: flex; align-items: center; gap: .65rem; position: sticky; top: 0; z-index: 2; height: 4.5rem; padding: 0 4.6rem 0 1.25rem; background: #fff; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
    .nav-brand:hover { color: var(--text); }
    .nav-brand__logo { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
    .nav-brand__mark { width: 40px; height: 40px; flex: none; }
    .nav-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
    .nav-brand__text strong { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; color: var(--primary); }
    .nav-brand__text small { font-size: .68rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-open .nav-bar { transform: none; }
    .nav-open { overflow: hidden; }
    .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 25, 50, .55); z-index: 110; }
    .nav-open .nav-burger { position: fixed; top: 12px; right: 14px; z-index: 130; background: var(--tint); }
    .nav-bar__inner { padding-inline: 0; }
    .nav__list { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; }
    .nav-item, .sub-menu .nav-item { display: block; }
    .nav-link, .sub-menu .nav-link { color: var(--text); padding: .85rem 1.25rem; font-size: 1rem; white-space: normal; }
    .nav-item--long > .nav-row > .nav-link, .nav-item--long > .nav-link { max-width: none; }
    .nav-row { border-bottom: 1px solid var(--line); }
    .nav-row .nav-link { flex: 1; }
    .nav-row > .sub-toggle:not(.nav-link) { width: 52px; margin: 0; color: var(--primary); border-left: 1px solid var(--line); }
    button.nav-label.sub-toggle { width: 100%; justify-content: space-between; }
    .nav-item > .nav-row > .nav-link:hover, .nav-item.is-active > .nav-row > .nav-link { background: var(--tint); color: var(--primary-dark); box-shadow: none; }
    .nav-item.has-sub:hover > .nav-row .icon { transform: none; }
    .nav-item.open > .nav-row .icon { transform: rotate(180deg); }
    .sub-menu, .sub-menu .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; border-radius: 0;
        background: var(--surface); padding: 0; min-width: 0;
    }
    .nav-item.open > .sub-menu { display: block; }
    .sub-menu .nav-link { padding-left: 2rem; }
    .sub-menu .sub-menu .nav-link { padding-left: 3rem; }
    .nav__list > .nav-item.sub-flip > .sub-menu { right: auto; }
    .sub-menu .nav-row .icon, .sub-menu .nav-item.has-sub:hover > .nav-row .icon { transform: none; }
    .sub-menu .nav-item.open > .nav-row .icon { transform: rotate(180deg); }
    .nav-item.is-button > .nav-link, .nav-item.is-button > .nav-row > .nav-link { margin: .75rem 1.25rem; color: #fff; justify-content: center; }
}

/* ----- News ticker -------------------------------------------------------- */
.ticker { background: var(--tint); border-bottom: 1px solid var(--line); font-size: .9rem; }
.ticker__inner { display: flex; align-items: center; gap: 1rem; min-height: 44px; }
.ticker__label { flex: none; background: var(--accent); color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .8rem; border-radius: 999px; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__move { display: inline-flex; gap: 3rem; white-space: nowrap; animation: ticker 40s linear infinite; padding-right: 3rem; }
.ticker__track:hover .ticker__move, .ticker__track:focus-within .ticker__move { animation-play-state: paused; }
.ticker__move a, .ticker__text { color: var(--text); font-weight: 500; }
.ticker__move a::before, .ticker__text::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: .7rem; vertical-align: middle; }
.ticker__move a:hover { color: var(--primary); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ----- Page banner -------------------------------------------------------- */
.page-banner {
    position: relative; color: #fff; overflow: hidden; background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 65%, var(--secondary) 130%);
    background-size: cover; background-position: center;
}
.page-banner::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.page-banner::after { content: ''; position: absolute; width: 300px; height: 300px; left: 8%; bottom: -190px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.page-banner.has-image::before { inset: 0; width: auto; height: auto; right: auto; top: 0; border-radius: 0; background: linear-gradient(120deg, rgba(10, 35, 75, .88), rgba(15, 63, 124, .55)); }
.page-banner.has-image::after { display: none; }
.page-banner__inner { position: relative; z-index: 1; padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-banner__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: .3rem 0 0; font-weight: 800; }
.page-banner__sub { margin: .6rem 0 0; font-size: 1.1rem; opacity: .9; max-width: 720px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; font-size: .85rem; opacity: .92; }
.breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: '›'; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.breadcrumb a:hover { text-decoration-color: #fff; }

/* ----- Page body ---------------------------------------------------------- */
.page-body { min-height: 38vh; }
.page-body.is-blank { min-height: 46vh; }
body.is-home .page-body.is-blank { min-height: 56vh; }
.module { padding-block: clamp(2.5rem, 5vw, 4rem); }
.group-title { font-size: 1.35rem; margin: 2.5rem 0 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--tint); }
.group-title:first-child { margin-top: 0; }
.empty-note { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-hint {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 3rem auto; max-width: 720px; padding: 1.1rem 1.4rem;
    border: 2px dashed var(--secondary); border-radius: var(--radius); background: #f5f9ff; color: var(--primary-dark);
}
.empty-hint > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.empty-hint span { color: var(--muted); font-size: .9rem; }
.more-link { margin: 2rem 0 0; text-align: center; }
.not-found { text-align: center; padding-block: 4rem; }
.not-found__code { font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; color: var(--tint); margin: 0; -webkit-text-stroke: 2px var(--secondary); }
.narrow-form { max-width: 620px; margin-inline: auto; }

.draft-bar { background: #fff3cd; color: #664d03; text-align: center; font-size: .88rem; padding: .5rem 1rem; border-bottom: 1px solid #ffe69c; }

/* ----- Rich text ---------------------------------------------------------- */
.rte { font-size: 1.04rem; }
.rte > *:first-child { margin-top: 0; }
.rte > *:last-child { margin-bottom: 0; }
.rte h1, .rte h2, .rte h3, .rte h4 { margin: 1.6em 0 .6em; }
.rte h2 { font-size: 1.7rem; }
.rte h3 { font-size: 1.35rem; }
.rte h4 { font-size: 1.1rem; }
.rte ul, .rte ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.rte li { margin-bottom: .35em; }
.rte a { text-decoration: underline; text-underline-offset: 3px; }
.rte img { border-radius: var(--radius); margin-block: .4rem; }
.rte blockquote { margin: 1.4em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--secondary); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.08rem; }
.rte table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.rte th, .rte td { padding: .65rem .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rte th { background: var(--tint); color: var(--primary-dark); }
.rte tbody tr:nth-child(even) td { background: var(--surface); }
.rte hr { margin: 2em 0; }
.rte pre, .rte code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.rte pre { background: #0f1b2d; color: #e8eefc; padding: 1rem; border-radius: var(--radius); overflow: auto; }
.rte--cols-2 { columns: 2 340px; column-gap: 2.5rem; }
.rte--cols-3 { columns: 3 260px; column-gap: 2.5rem; }
.rte--cols-2 > *, .rte--cols-3 > * { break-inside: avoid-column; }
.rte iframe { max-width: 100%; border: 0; }

/* ----- Blocks: structure -------------------------------------------------- */
.blk { --pad: 4.5rem; position: relative; padding-block: var(--pad); }
.pad-none { --pad: 0rem; }
.pad-sm { --pad: 2rem; }
.pad-md { --pad: 3.25rem; }
.pad-lg { --pad: 4.5rem; }
.pad-xl { --pad: 6.5rem; }
.blk.bg-none + .blk.bg-none:not(.pad-none) { padding-top: calc(var(--pad) * .3); }
/* blocks that share a background read as one section: a section heading sits close to what follows it */
.blk.bg-surface + .blk.bg-surface:not(.pad-none), .blk.bg-tint + .blk.bg-tint:not(.pad-none) { padding-top: calc(var(--pad) * .3); }
.blk--heading.bg-none:has(+ .blk.bg-none), .blk--heading.bg-surface:has(+ .blk.bg-surface), .blk--heading.bg-tint:has(+ .blk.bg-tint) { padding-bottom: calc(var(--pad) * .25); }
.bg-surface { background: var(--surface); }
.bg-tint { background: var(--tint); }
.bg-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.bg-dark { background: #0d1f3a; }
.bg-image { background-size: cover; background-position: center; }
.bg-image::before { content: ''; position: absolute; inset: 0; background: rgba(8, 25, 55, .62); }
.bg-image > * { position: relative; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark .rte, .on-dark .sec-heading__title { color: #fff; }
.on-dark .muted, .on-dark .sec-heading__sub, .on-dark .card__text { color: rgba(255, 255, 255, .82); }
.on-dark a:not(.btn) { color: #cfe3ff; }
.on-dark .card--shadow, .on-dark .card--outline { color: var(--text); }
.on-dark .card--shadow h3, .on-dark .card--outline h3 { color: var(--text); }
.on-dark .card--shadow .card__text, .on-dark .card--outline .card__text { color: var(--muted); }
.on-dark .card--shadow a:not(.btn), .on-dark .card--outline a:not(.btn) { color: var(--primary); }
.ta-left { text-align: left; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

.grid { display: grid; gap: 1.5rem; }
.grid--1 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.sec-heading { margin-bottom: 2rem; }
.sec-heading.ta-center { margin-inline: auto; max-width: 760px; }
.sec-heading__title { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; margin: 0; }
.sec-heading--h3 .sec-heading__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.sec-heading--h4 .sec-heading__title { font-size: 1.15rem; }
.sec-heading__line { display: block; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); margin: .8rem 0 0; }
.ta-center .sec-heading__line, .sec-heading.ta-center .sec-heading__line { margin-inline: auto; }
.sec-heading__sub { margin: .9rem 0 0; font-size: 1.08rem; color: var(--muted); }
.blk .sec-heading:last-child { margin-bottom: 0; }

/* hero */
.hero {
    position: relative; display: flex; align-items: center; color: #fff; overflow: hidden;
    background: linear-gradient(125deg, var(--primary-dark), var(--primary) 55%, var(--secondary));
    background-size: cover; background-position: center;
}
.hero::after { content: ''; position: absolute; width: 640px; height: 640px; right: -180px; bottom: -340px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.hero.has-image::after { display: none; }
.hero.has-image::before { content: ''; position: absolute; inset: 0; }
.overlay-dark::before { background: linear-gradient(90deg, rgba(8, 27, 58, .86), rgba(8, 27, 58, .35)); }
.overlay-light::before { background: rgba(255, 255, 255, .0); background: linear-gradient(90deg, rgba(10, 40, 85, .6), rgba(10, 40, 85, .2)); }
.overlay-brand::before { background: linear-gradient(90deg, rgba(15, 63, 124, .9), rgba(28, 92, 171, .55)); }
.overlay-none::before { display: none; }
.hero--sm { min-height: 320px; }
.hero--md { min-height: 440px; }
.hero--lg { min-height: 580px; }
.hero--full { min-height: 88vh; }
.hero__inner { position: relative; z-index: 1; padding-block: 3.5rem; }
.hero__copy { max-width: 720px; }
.hero--center .hero__copy { margin-inline: auto; text-align: center; }
.hero--center .hero__actions { justify-content: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin: 0 0 .9rem; opacity: .9; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); }
.hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 0 0 1rem; letter-spacing: -.02em; }
.hero__text { font-size: 1.15rem; opacity: .92; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* figure / split / columns */
.figure { margin: 0; }
.figure img { width: 100%; }
.figure--sm { max-width: 320px; } .figure--md { max-width: 560px; } .figure--lg { max-width: 820px; }
.figure--center { margin-inline: auto; } .figure--right { margin-left: auto; }
.figure.is-rounded img { border-radius: var(--radius); }
.figure figcaption, .video figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--third { grid-template-columns: 2fr 3fr; }
.split--right .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 799px) { .split, .split--third { grid-template-columns: 1fr; } .split--right .split__media { order: 0; } }

/* cards */
.card { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.7rem; border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s; height: 100%; }
.card--shadow { background: #fff; box-shadow: var(--shadow); }
.card--outline { background: #fff; border: 1px solid var(--line); }
.card--flat { background: var(--tint); }
.card.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { margin: -1.7rem -1.7rem .3rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.card.is-link:hover .card__media img { transform: scale(1.04); }
.card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--tint); color: var(--primary); }
.ta-center .card__icon { margin-inline: auto; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--primary); }
.card__text { color: var(--muted); margin: .5rem 0 0; font-size: .97rem; }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__more { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 600; font-size: .92rem; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* stats */
.stats { gap: 1.25rem; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.stat__icon { color: var(--secondary); margin-bottom: .3rem; }
.stat__num { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; font-weight: 800; color: var(--primary); }
.stat__label { color: var(--muted); font-weight: 500; }
.stats--boxed .stat { background: #fff; padding: 1.8rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.bg-primary .stat__num, .bg-dark .stat__num, .on-dark .stat__num { color: #fff; }
.on-dark .stat__label { color: rgba(255, 255, 255, .85); }
.on-dark .stat__icon { color: var(--tint); }
.on-dark .stats--boxed .stat { background: rgba(255, 255, 255, .1); box-shadow: none; }

/* accordion */
.accordion { display: grid; gap: .75rem; margin-bottom: 1rem; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.accordion__item[open] { border-color: var(--secondary); box-shadow: var(--shadow-sm); }
.accordion__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; color: var(--text); }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { background: var(--surface); }
.accordion__chev { transition: transform .25s; color: var(--primary); display: inline-flex; }
.accordion__item[open] .accordion__chev { transform: rotate(180deg); }
.accordion__body { padding: .25rem 1.25rem 1.25rem; color: var(--text); }
.on-dark .accordion__item { color: var(--text); }
.on-dark .accordion__item .rte, .on-dark .accordion__item summary { color: var(--text); }

/* timeline */
.timeline { list-style: none; position: relative; margin: 0; padding: 0 0 0 1.75rem; border-left: 3px solid var(--tint); display: grid; gap: 2rem; }
.timeline__item { position: relative; }
.timeline__item::before { content: ''; position: absolute; left: calc(-1.75rem - 9px); top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--tint); }
.timeline__year { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; font-size: .82rem; padding: .15rem .7rem; border-radius: 999px; margin-bottom: .5rem; }
.timeline__body h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.timeline__body p { color: var(--muted); margin: 0; }
.on-dark .timeline { border-color: rgba(255, 255, 255, .25); }
.on-dark .timeline__body p { color: rgba(255, 255, 255, .8); }

/* people */
.person { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.2rem; height: 100%; color: var(--text); }
.person__photo { width: 120px; height: 120px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--tint), #fff); border: 4px solid var(--tint); display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo span { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--primary); }
.person__name { font-size: 1.1rem; margin: 0 0 .15rem; color: var(--text); }
.person__role { color: var(--primary); font-weight: 600; margin: 0 0 .2rem; font-size: .95rem; }
.person__qual { color: var(--muted); font-size: .88rem; margin: 0 0 .5rem; }
.person__bio { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
.person__mail { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; margin-top: .6rem; }

/* gallery, logos, files */
.gallery { gap: 1rem; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); opacity: 0; transition: opacity .25s; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; }
.logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3rem; }
.logos img { height: 64px; width: auto; max-width: 180px; object-fit: contain; transition: filter .25s, opacity .25s; }
.logos.is-gray img { filter: grayscale(1); opacity: .65; }
.logos.is-gray a:hover img, .logos.is-gray li:hover img { filter: none; opacity: 1; }
.file-list { list-style: none; display: grid; gap: .75rem; margin-bottom: 1rem; }
.file-list > li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; color: var(--text); }
.file-list__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--primary); flex: none; }
.file-list__text { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.file-list__text span { color: var(--muted); font-size: .9rem; }

/* cta, callout, video, embed, map */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(1.8rem, 4vw, 3rem); border-radius: calc(var(--radius) + 6px); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; width: 320px; height: 320px; right: -90px; top: -150px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta--primary { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); }
.cta--dark { background: #0d1f3a; }
.cta--accent { background: linear-gradient(120deg, #1b7a50, var(--accent)); }
.cta--tint { background: var(--tint); color: var(--text); }
.cta--tint .cta__title { color: var(--primary-dark); }
.cta--center { flex-direction: column; text-align: center; justify-content: center; }
.cta__copy { max-width: 680px; position: relative; z-index: 1; }
.cta__title { color: inherit; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5rem; }
.cta__text { margin: 0; opacity: .92; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 1; }
.cta--center .cta__actions { justify-content: center; }
.callout { display: flex; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); border-left: 5px solid var(--secondary); background: #eef5ff; color: var(--text); }
.callout__icon { color: var(--primary); flex: none; margin-top: .1rem; }
.callout__title { display: block; margin-bottom: .2rem; }
.callout .rte { font-size: .98rem; }
.callout--success { background: #eaf8f1; border-color: var(--accent); } .callout--success .callout__icon { color: var(--accent); }
.callout--warning { background: #fff8e5; border-color: #e0a800; } .callout--warning .callout__icon { color: #b88600; }
.callout--danger { background: #fdeeee; border-color: #d64545; } .callout--danger .callout__icon { color: #d64545; }
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video--4x3 .video__frame { aspect-ratio: 4 / 3; }
.video__frame iframe, .video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed iframe { width: 100%; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.map--with-info { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: stretch; }
.map__frame iframe { width: 100%; border: 0; border-radius: var(--radius); display: block; }
.map__frame--side iframe { height: 280px; }
.map__frame--side { margin-top: 1.5rem; }
.map__info { list-style: none; display: grid; gap: 1rem; align-content: center; padding: 1.5rem; background: var(--surface); border-radius: var(--radius); }
.map__info li { display: flex; gap: .75rem; align-items: flex-start; }
.map__info .icon { color: var(--primary); margin-top: .25rem; }
@media (max-width: 799px) { .map--with-info { grid-template-columns: 1fr; } }

/* ----- Posts / lists ------------------------------------------------------ */
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; transition: transform .25s var(--ease), box-shadow .25s; color: var(--text); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--muted); margin: 0 0 .5rem; }
.post-card__meta span { display: inline-flex; align-items: center; gap: .25rem; }
.post-card__title { font-size: 1.12rem; margin: 0 0 .5rem; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--primary); }
.post-card__text { color: var(--muted); font-size: .95rem; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; }
.post-rows { list-style: none; display: grid; gap: 1rem; margin-bottom: 1rem; }
.post-row { display: flex; gap: 1.2rem; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.post-row__date { flex: none; width: 66px; text-align: center; background: var(--tint); color: var(--primary-dark); border-radius: 10px; padding: .5rem .2rem; align-self: flex-start; }
.post-row__date b { display: block; font-size: 1.6rem; line-height: 1.1; font-family: var(--font-heading); }
.post-row__date span { font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.post-row__body h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.post-row__body h3 a { color: var(--text); }
.post-row__body h3 a:hover { color: var(--primary); }
.post-row__meta { font-size: .85rem; color: var(--muted); margin: 0 0 .4rem; }
.post-row__body p:last-child { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.post-single__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.post-single__meta span, .post-single__meta time { display: inline-flex; align-items: center; gap: .35rem; }
.post-single__image { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.post-single__back { margin-top: 2.5rem; }
.album-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tint); color: var(--secondary); margin-bottom: .8rem; }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card__media:hover img { transform: scale(1.05); }
.album-card__count { position: absolute; right: .7rem; bottom: .7rem; background: rgba(8, 25, 55, .75); color: #fff; font-size: .78rem; padding: .2rem .65rem; border-radius: 999px; }
.album-card__title { font-size: 1.1rem; margin: 0 0 .3rem; }
.album-card__title a { color: var(--text); }

.pub-list { list-style: none; display: grid; gap: 1rem; margin-bottom: 1rem; }
.pub { display: grid; grid-template-columns: 70px 1fr auto; gap: 1.2rem; align-items: start; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.pub__year { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--primary); background: var(--tint); border-radius: 10px; text-align: center; padding: .55rem .2rem; }
.pub__title { font-size: 1.05rem; margin: 0 0 .25rem; }
.pub__title a { color: var(--text); }
.pub__title a:hover { color: var(--primary); }
.pub__authors { margin: 0 0 .4rem; color: var(--muted); font-size: .93rem; }
.pub__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .84rem; color: var(--muted); margin: 0; }
.pub__summary { margin: .6rem 0 0; font-size: .93rem; color: var(--muted); }
.tag { display: inline-block; background: var(--tint); color: var(--primary-dark); font-size: .74rem; font-weight: 700; padding: .12rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 699px) { .pub { grid-template-columns: 1fr; } .pub__year { width: fit-content; padding-inline: .9rem; } }

.pager { margin-top: 2.5rem; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; }
.pager a, .pager span { display: inline-flex; align-items: center; gap: .25rem; min-width: 40px; height: 40px; justify-content: center; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: .92rem; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .is-disabled, .pager .is-gap { color: #9aa7b8; background: transparent; border-color: transparent; }

.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1rem; align-items: end; padding: 1.2rem; background: var(--surface); border-radius: var(--radius); margin-bottom: 2rem; }
.filter-bar__actions { display: flex; gap: .5rem; }
@media (max-width: 799px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar .field:first-child { grid-column: 1 / -1; } .filter-bar__actions { grid-column: 1 / -1; } }

.search-form { display: flex; gap: .75rem; margin-bottom: 2rem; }
.search-form input { flex: 1; padding: .9rem 1.1rem; border: 2px solid var(--line); border-radius: var(--radius); font-size: 1.05rem; }
.search-form input:focus { border-color: var(--primary); outline: none; }
.results { list-style: none; display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.results li { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.results h3 { font-size: 1.15rem; margin: .4rem 0 .3rem; }
.results p { color: var(--muted); margin: 0; font-size: .95rem; }

.sitemap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.sitemap, .sitemap ul { list-style: none; }
.sitemap > li { margin-bottom: .9rem; font-weight: 600; }
.sitemap ul { margin: .35rem 0 0 .4rem; padding-left: 1.1rem; border-left: 2px solid var(--tint); font-weight: 400; }
.sitemap li li { margin: .3rem 0; }
@media (max-width: 799px) { .sitemap-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.info-cards { list-style: none; display: grid; gap: 1rem; }
.info-cards li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info-cards__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--primary); flex: none; }
.info-cards li > div { display: flex; flex-direction: column; }
.info-cards strong { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } }

/* ----- Forms -------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-card--slim { box-shadow: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.4rem; }
.field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid #cdd7e4; border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(28, 92, 171, .15); }
.field [aria-invalid="true"] { border-color: #d64545; }
.field__error, .form-error { color: #c0392b; font-size: .86rem; margin: 0; }
.req { color: #c0392b; }
.inline-form { display: flex; gap: .6rem; }
.inline-form input { flex: 1; }
.form-flash { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.3rem; border-radius: var(--radius); }
.form-flash--ok { background: #eaf8f1; color: #14573a; border: 1px solid #b8e6cf; }
.rating { margin-bottom: 1.4rem; }
.rating__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.rating__stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating__stars label { cursor: pointer; color: #c3cedd; transition: color .15s, transform .15s; line-height: 0; padding: .15rem; }
.rating__stars label svg { fill: currentColor; stroke: currentColor; }
.rating__stars label:hover, .rating__stars label:hover ~ label, .rating__stars input:checked ~ label { color: #f5b301; }
.rating__stars input:focus-visible + label { outline: 3px solid var(--secondary); border-radius: 6px; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }

/* ----- Newsletter strip + footer ------------------------------------------ */
.newsletter { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; padding-block: 1.1rem; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: .7rem 2rem; flex-wrap: wrap; }
.newsletter__copy h2 { color: #fff; font-size: 1.15rem; line-height: 1.25; margin: 0 0 .1rem; }
.newsletter__copy p { margin: 0; opacity: .88; font-size: .88rem; line-height: 1.4; }
.newsletter__form { display: flex; gap: .5rem; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter__form input[type="email"] { flex: 1; padding: .55rem .9rem; font-size: .95rem; border-radius: var(--radius); border: 2px solid transparent; min-width: 0; }
.newsletter__form .btn { padding: .55rem 1.1rem; font-size: .92rem; }
.newsletter__form input:focus { outline: none; border-color: var(--accent); }
.newsletter .form-error { color: #ffd3cc; flex-basis: 100%; margin: 0; font-size: .85rem; }
.newsletter .form-flash { background: rgba(255, 255, 255, .14); color: #fff; border: 0; margin: 0; padding: .5rem .8rem; }
/* phones + small tablets: the strip stays slim - one short line of text, then the email box and button side by side */
@media (max-width: 767px) {
    .newsletter { padding-block: .8rem; }
    .newsletter__inner { gap: .5rem; }
    .newsletter__copy h2 { font-size: 1rem; }
    .newsletter__copy p { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    .newsletter__form { flex: 1 1 100%; max-width: none; min-width: 0; gap: .4rem; }
    .newsletter__form input[type="email"] { padding: .45rem .75rem; font-size: .9rem; }
    .newsletter__form .btn { padding: .45rem .9rem; font-size: .88rem; }
}

.site-footer { background: radial-gradient(900px 320px at 12% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--primary-dark), #0b1f3a); color: rgba(255, 255, 255, .8); font-size: .94rem; position: relative; }
.site-footer::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary)); }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
/* three equal columns (4 + 4 + 4 of 12): About THRF | Important links | Contact us */
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem; padding-block: 3.75rem 2.75rem; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.footer-logo { display: inline-block; margin-bottom: 1.2rem; }
.footer-logo .brand__logo { height: 56px; background: #fff; border-radius: 12px; padding: 8px 12px; box-sizing: content-box; }
.footer-about { margin: 0; opacity: .88; text-align: justify; line-height: 1.7; }
.footer-title { position: relative; color: #fff; margin: 0 0 1.3rem; padding-bottom: .75rem; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 9px; background: var(--accent); }
.footer-col ul { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.footer-col ul a { display: inline-block; transition: transform .2s; }
.footer-col ul a:hover { transform: translateX(3px); }
.footer-links { max-height: 330px; overflow: auto; padding-right: .5rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.footer-links a { display: inline-flex !important; align-items: flex-start; gap: .45rem; font-size: .92rem; }
.footer-links .icon { flex: none; margin-top: .25rem; color: var(--accent); }
.footer-contact { margin-bottom: 1.1rem !important; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { flex: none; margin-top: .3rem; color: var(--accent); }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-hours { display: flex; gap: .7rem; align-items: flex-start; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.footer-hours .icon { flex: none; margin-top: .2rem; color: var(--accent); }
.footer-map { display: block; border: 0; width: 100%; min-height: 200px; border-radius: 12px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .18); }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.1rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-credit { margin-left: auto; text-align: right; }
.footer-bottom__inner > nav { order: 3; flex-basis: 100%; } /* utility links on their own row, so the credit sits at the right of the copyright line */
.footer-credit a { color: #fff; font-weight: 600; }

/* "Total Visit" counter (Settings → Visit counter) */
.visit-counter { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.visit-counter__num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.visit-counter--footer, .visit-counter--footer-end { padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.visit-counter--footer .visit-counter__num, .visit-counter--footer-end .visit-counter__num { color: #fff; }
.visit-counter--footer-end { order: 2; }
.visit-counter--topbar .visit-counter__num { color: #fff; }
.visit-counter--floating { position: fixed; left: 16px; bottom: 16px; z-index: 80; padding: .45rem .9rem; border-radius: 999px; background: var(--primary-dark); color: rgba(255, 255, 255, .92); box-shadow: var(--shadow-lg); font-size: .82rem; }
.visit-counter--floating .visit-counter__num { color: #fff; }
.visit-counter--raised { bottom: 64px; }
@media (max-width: 640px) {
    .visit-counter--floating { left: 10px; bottom: 10px; font-size: .78rem; padding: .35rem .75rem; }
    .visit-counter--raised { bottom: 60px; }
}
.footer-credit a:hover { color: var(--accent); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; }

/* ----- Floating bits ------------------------------------------------------ */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s, background .2s; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.cookie { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; width: min(640px, calc(100% - 32px)); background: #0d1f3a; color: #fff; padding: 1rem 1.2rem; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; font-size: .9rem; }
.cookie p { margin: 0; flex: 1; min-width: 220px; }
.cookie a { color: #cfe3ff; text-decoration: underline; }
.cookie__actions { display: flex; gap: .5rem; }
.cookie .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cookie .btn--outline:hover { background: #fff; color: var(--primary-dark); }
.has-admin-bar .cookie { bottom: 70px; }
.admin-bar { position: fixed; left: 16px; bottom: 16px; z-index: 95; display: flex; align-items: center; gap: .25rem; padding: .35rem .5rem; background: #0b1f3a; color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .82rem; }
.admin-bar a, .admin-bar__label { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; color: #fff; white-space: nowrap; }
.admin-bar a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.admin-bar__label { opacity: .7; font-weight: 600; }
.nav-open .admin-bar, .nav-open .to-top, .nav-open .cookie { display: none; }
@media (max-width: 599px) { .admin-bar a span { display: none; } .admin-bar__label span { display: inline; } .admin-bar { left: 8px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .ticker__move { animation: none; overflow-x: auto; }
}

/* ----- Lightbox ----------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5, 14, 30, .92); padding: 2rem 4rem; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 1.2rem; text-align: center; color: #fff; font-size: .95rem; padding-inline: 4rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 599px) { .lightbox { padding: 1rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; } .lightbox__cap { bottom: 4.5rem; padding-inline: 1rem; } }

/* ----- Language selector (top bar) ------------------------------------------ */
.lang { position: relative; }
.lang__btn {
    display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08);
    color: inherit; font: inherit; font-weight: 600; padding: .22rem .7rem; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.lang__btn:hover, .lang.is-open .lang__btn { background: rgba(255, 255, 255, .22); color: #fff; }
.lang__current { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang__chev { transition: transform .2s; opacity: .8; }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang.is-busy .lang__btn::after { content: ''; width: 11px; height: 11px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lang-spin .7s linear infinite; }
@keyframes lang-spin { to { transform: rotate(360deg); } }
.lang__panel {
    position: absolute; right: 0; top: calc(100% + 8px); width: 330px; max-width: calc(100vw - 32px); background: #fff; color: var(--text);
    border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 150; overflow: hidden; animation: lang-pop .16s var(--ease);
}
@keyframes lang-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem .5rem; }
.lang__head strong { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--primary-dark); }
.lang__count { font-size: .75rem; color: var(--muted); }
.lang__search { position: relative; display: block; margin: 0 .8rem .5rem; }
.lang__search .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.lang__search input {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem .55rem 2.1rem; font: inherit; font-size: .88rem; color: var(--text); background: #f8fafd;
}
.lang__search input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(78, 138, 212, .2); background: #fff; }
.lang__list { position: relative; max-height: min(55vh, 380px); overflow-y: auto; padding: 0 .45rem .45rem; overscroll-behavior: contain; scrollbar-width: thin; }
.lang__group { margin: .55rem .55rem .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang__list.is-searching .lang__group { display: none; }
.lang__opt {
    display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: .75rem; border: 0; background: none; text-align: left;
    padding: .48rem .6rem; border-radius: 8px; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer;
}
.lang__opt small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.lang__opt:hover, .lang__opt:focus-visible { background: var(--tint); outline: none; }
.lang__opt.is-on { background: var(--primary); color: #fff; }
.lang__opt.is-on small { color: rgba(255, 255, 255, .85); }
.lang__empty { padding: 1rem; text-align: center; color: var(--muted); font-size: .88rem; margin: 0; }
.lang__note { margin: 0; padding: .6rem 1rem .75rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); background: #f8fafd; }
.lang__reset { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) {
    .topbar__right { gap: .7rem; }
    .lang { position: static; }
    .lang__panel { position: absolute; left: 16px; right: 16px; width: auto; max-width: none; top: calc(100% + 4px); }
    .topbar { position: relative; }
    .lang__current { max-width: 6.5rem; }
}

/* ----- Date + digital clock (top bar, visitor's local time) ----------------- */
.tclock { display: inline-flex; align-items: center; gap: .55rem; font-variant-numeric: tabular-nums; white-space: nowrap; padding: .22rem .75rem; border-radius: 999px; background: rgba(0, 0, 0, .18); letter-spacing: .02em; }
.tclock__part { display: inline-flex; align-items: center; gap: .35rem; }
.tclock__part .icon { opacity: .8; }
.tclock__date { font-weight: 500; }
.tclock__time { font-weight: 700; color: #fff; }
.tclock__zone { font-size: .74rem; opacity: .8; }
.tclock__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); }
@media (max-width: 640px) { .tclock__zone, .tclock__sep, .tclock__part:has(.tclock__date) + .tclock__sep { display: none; } .tclock { padding: .2rem .55rem; gap: .4rem; } }
@media (max-width: 420px) { .tclock__part:has(.tclock__date):not(:only-child) { display: none; } }

/* Keep Google Translate's own bar and tooltips out of the design. */
body { top: 0 !important; }
body > .skiptranslate, .goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight, .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none; }
