/* CIAA – modern public website. Brand: deep navy (trust) + Nepal crimson (action). */
:root {
    --navy: #0a2463;
    --navy-900: #061847;
    --navy-700: #12348a;
    --blue: #1d4ed8;
    --blue-600: #1a44b8;
    --blue-50: #eef3ff;
    --crimson: #c8102e;
    --crimson-700: #a10c24;
    --crimson-50: #fdecef;
    --gold: #f4b400;
    --bg: #fff;
    --surface: #f4f6fb;
    --card: #fff;
    --ink: #0b1630;
    --text: #1f2a44;
    --muted: #5d6781;
    --line: #e3e7f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(10, 36, 99, .06), 0 1px 3px rgba(10, 36, 99, .05);
    --shadow: 0 10px 30px -12px rgba(10, 36, 99, .22);
    --shadow-lg: 0 24px 60px -20px rgba(6, 24, 71, .35);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --fs: 16px;
    /* Names used by the accessibility tools, chatbot and complaint portal styles */
    --blue-dark: var(--navy);
    --red: var(--crimson);
    --red-dark: var(--crimson-700);
    --band: var(--surface);
}
body.hc {
    --navy: #000; --navy-900: #000; --navy-700: #000; --blue: #ffea00; --blue-600: #ffea00; --blue-50: #000; --surface: #000;
    --crimson: #ffea00; --crimson-700: #ffea00; --crimson-50: #000; --bg: #000; --card: #000; --ink: #fff; --text: #fff; --muted: #ddd; --line: #fff;
    --shadow-sm: none; --shadow: none; --shadow-lg: none;
}
body.hc a { color: #ffea00; }
body.hc .btn { background: #ffea00; color: #000; }
body.hc .topbar, body.hc .mainbar, body.hc .navbar, body.hc .ticker-bar, body.hc .footer, body.hc .band-dark, body.hc .pagehead { background: #000; }

* { box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; }
body { margin: 0; font-family: 'Mukta', 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--crimson); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.sr { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; background: var(--blue-600); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); }
.mt { margin-top: 2.5rem; }
.mt-sm { margin-top: 1.6rem !important; }
.center { text-align: center; }
.chev { width: .62em; height: .4em; margin-left: .35em; vertical-align: middle; opacity: .6; transition: transform .2s; }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 60; }
/* The top bar stays stuck to the top of the window; the menu bar below sticks under it (--topbar-h is measured in site.js). */
.topbar { position: sticky; top: 0; z-index: 70; background: var(--navy-900); color: #cfd8ee; font-size: .86rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; min-height: 38px; padding: .3rem 0; }
.topbar a { color: #e6ecfa; }
.topbar a:hover { color: var(--gold); }
.topbar strong { color: #fff; font-weight: 600; }
.tb-date, .tb-links { display: flex; align-items: center; gap: .5rem 1.1rem; flex-wrap: wrap; }
.tb-sep { padding-left: 1.1rem; border-left: 1px solid rgba(255,255,255,.2); }
.tb-hot { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: #fff !important; background: var(--crimson); padding: .1rem .7rem; border-radius: 99px; }
.tb-social { display: inline-flex; gap: .8rem; }
.tb-social a { display: inline-grid; place-items: center; }
.tb-lang { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 99px; padding: 2px; }
.tb-lang a { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 99px; font-size: .82rem; }
.tb-lang a[aria-current] { background: #fff; color: var(--navy); font-weight: 700; }
.lang-flag { display: block; width: auto; height: 18px; flex-shrink: 0; }
.pt-lang a { display: inline-flex; align-items: center; gap: .35rem; }

.mainbar { background: #fff; box-shadow: 0 1px 0 var(--line); }
.mainbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 88px; flex-shrink: 0; }
.brand > span { display: flex; flex: 1; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; min-width: 0; }
.brand strong { font-family: 'Karma', 'Mukta', 'Noto Sans Devanagari', serif; font-size: 3.1rem; font-weight: 700; color: var(--navy); }
/* The English name is long: one line on tablets and up, sized to the space between the emblem and the logo */
html[lang="en"] .brand strong { font-size: clamp(1rem, calc(3.7vw - 11px), 2.3rem); white-space: nowrap; }
.brand-slogan { margin-top: .5rem; font-size: 1.1rem; font-weight: 600; color: var(--crimson); }
.head-actions { display: none; align-items: center; gap: .6rem; }
.site-search { display: flex; align-items: center; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.site-search:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.site-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .5rem 1rem; font: inherit; color: var(--text); background: transparent; }
.site-search button { flex-shrink: 0; width: 42px; height: 40px; border: 0; display: grid; place-items: center; color: var(--navy); background: transparent; cursor: pointer; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }

.navbar { position: sticky; top: var(--topbar-h, 38px); z-index: 60; background: var(--navy); box-shadow: 0 6px 18px -10px rgba(10, 36, 99, .5); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a { display: flex; align-items: center; padding: .8rem 1rem; color: #e8eefc; font-size: 1.02rem; font-weight: 500; }
.menu > li:hover > a, .menu > li:focus-within > a { color: #fff; background: rgba(255,255,255,.08); }
.menu > li.active > a { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.menu-home svg { display: block; }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 5; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > a .chev { transform: rotate(180deg); }
.sub a { display: block; padding: .5rem .8rem; color: var(--text); font-size: .96rem; border-radius: 8px; }
.sub a:hover { color: var(--blue-600); background: var(--blue-50); }
/* Desktop dropdowns grow to fit their longest item, so each item (e.g. an office's full name) stays on one line */
.sub:not(.mega) { width: max-content; max-width: calc(100vw - 2rem); }
.sub:not(.mega) a { white-space: nowrap; }
.mega-host { position: static; }
.navbar .container { position: relative; }
.navbar .container { display: flex; align-items: center; gap: 1rem; }
/* The menu bar's search grows to show its whole placeholder, and shrinks only if the menu needs the room */
.navbar .site-search { flex: 0 1 auto; margin-left: auto; }
.navbar .site-search input { field-sizing: content; box-sizing: content-box; min-width: 10rem; max-width: 22rem; }
@supports not (field-sizing: content) {
    html[lang="ne"] .navbar .site-search input { width: 14rem; }
    html[lang="en"] .navbar .site-search input { width: 20rem; }
}
.sub.mega { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; left: 0; width: 520px; padding: 1.4rem 1.6rem; }
.mega > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.mega h3 { margin: 0 0 .4rem .8rem; font-size: .8rem; text-transform: uppercase; color: var(--crimson); }
.mega ul { list-style: none; margin: 0; padding: 0; }

/* Slogan + latest ticker */
.ticker-bar { background: linear-gradient(90deg, var(--crimson-50), #fff 60%); border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; gap: 1.2rem; min-height: 46px; }
.ticker { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 0; }
.ticker > strong { flex-shrink: 0; background: var(--navy); color: #fff; font-size: .82rem; padding: .15rem .7rem; border-radius: 99px; }
.ticker a { color: var(--text); }
.ticker a:hover { color: var(--crimson); }
.marquee { overflow: hidden; flex: 1; min-width: 0; }
.marquee.run { mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 3rem; width: max-content; white-space: nowrap; }
.marquee li::before { content: "•"; color: var(--crimson); margin-right: .6rem; }
.marquee.run ul { animation: marquee var(--dur, 30s) linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Accessibility tools (same look as the GoN template widget). Sized in px so the tools don't resize themselves. */
.a11y { font: 400 16px/1.2 Arial, 'Noto Sans Devanagari', sans-serif; letter-spacing: normal; word-spacing: normal; text-align: left; }
.a11y-btn { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9999; width: 55px; height: 55px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.6px solid #fff; background: #0066cc; color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, .2); cursor: pointer; transition: transform .2s; }
.a11y-btn:hover { transform: translateX(-50%) scale(1.06); }
.a11y-menu { position: fixed; top: 0; left: 0; bottom: 0; z-index: 10000; width: 400px; max-width: 100%; overflow-y: auto; background: #e2e2e2; box-shadow: 4px 0 18px rgba(0, 0, 0, .25); color: #333; }
.a11y-menu[hidden] { display: none; }
#identity[hidden] { display: none; }
.a11y-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; height: 70px; padding: 10px 10px 10px 20px; background: #0066cc; color: #fff; }
.a11y-head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.a11y-head button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.a11y-head button:hover { background: rgba(255, 255, 255, .15); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px; }
.a11y-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 105px; padding: 5px; border: 2.4px solid #fff; border-radius: 8px; background: #fff; color: #333; font: inherit; font-weight: 700; cursor: pointer; }
.a11y-opt:hover { border-color: #b9cbe0; }
.a11y-opt.on { border-color: #1372d0; }
.a11y-ic { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a11y-steps { display: flex; gap: 4px; margin-top: 4px; }
.a11y-steps i { width: 30px; height: 6px; border-radius: 3px; background: #d0d0d0; }
.a11y-steps i.on { background: #106ecc; }
.a11y-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.a11y :focus-visible { outline: 3px solid #f2c25b; outline-offset: 2px; }

/* Settings, applied to the page (everything except the tools themselves) */
html[data-a11y-size="1"] { --fs: 18px; }
html[data-a11y-size="2"] { --fs: 20px; }
html[data-a11y-size="3"] { --fs: 22px; }
html.a11y-filtered body > :not(.a11y) { filter: var(--a11y-filter); }
html[data-a11y-align="1"] body > :not(.a11y) * { text-align: left !important; }
html[data-a11y-align="2"] body > :not(.a11y) * { text-align: center !important; }
html[data-a11y-align="3"] body > :not(.a11y) * { text-align: right !important; }
html[data-a11y-spacing="1"] body > :not(.a11y) * { letter-spacing: .05em !important; word-spacing: .1em !important; }
html[data-a11y-spacing="2"] body > :not(.a11y) * { letter-spacing: .1em !important; word-spacing: .2em !important; }
html[data-a11y-spacing="3"] body > :not(.a11y) * { letter-spacing: .15em !important; word-spacing: .3em !important; }
html[data-a11y-line="1"] body > :not(.a11y) * { line-height: 1.8 !important; }
html[data-a11y-line="2"] body > :not(.a11y) * { line-height: 2.1 !important; }
html[data-a11y-line="3"] body > :not(.a11y) * { line-height: 2.4 !important; }
html[data-a11y-font="1"] body > :not(.a11y) * { font-family: Arial, 'Noto Sans Devanagari', sans-serif !important; }
html[data-a11y-font="2"] body > :not(.a11y) * { font-family: Georgia, 'Noto Serif Devanagari', serif !important; }
html[data-a11y-font="3"] body > :not(.a11y) * { font-family: 'Courier New', monospace !important; }
html[data-a11y-dyslexia] body > :not(.a11y) * { font-family: 'Comic Sans MS', Verdana, 'Noto Sans Devanagari', sans-serif !important; letter-spacing: .06em !important; word-spacing: .16em !important; }
html[data-a11y-cursor], html[data-a11y-cursor] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5l14 8.8-6.3 1.3 3.7 7.3-2.8 1.4-3.6-7.3L5 18.6z' fill='%23000' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 10 5, auto !important; }
html[data-a11y-images] body > :not(.a11y) :is(img, video, iframe) { visibility: hidden !important; }
html[data-a11y-motion] *, html[data-a11y-motion] *::before, html[data-a11y-motion] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Online complaint button (middle right of every website page) */
.cta-complaint { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 9000; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 16px 10px; border: 2px solid #fff; border-right: 0; border-radius: 16px 0 0 16px; background: var(--red); color: var(--red); box-shadow: -4px 6px 18px rgba(120, 0, 20, .35); text-align: center; transition: background .2s, padding .2s var(--ease); }
.cta-complaint span { color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.cta-complaint:hover, .cta-complaint:focus-visible { background: var(--red-dark); color: var(--red-dark); padding-right: 18px; }
.cta-complaint:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
body.hc .cta-complaint { background: #ffea00; color: #000; border-color: #000; }
body.hc .cta-complaint span { color: #000; }
@media (max-width: 700px) {
    .cta-complaint { width: 76px; padding: 10px 6px; gap: 3px; }
    .cta-complaint svg { width: 24px; height: 24px; }
    .cta-complaint span { font-size: .85rem; }
}

/* ---------- Online complaint portal (standalone layout: resources/views/complaint/layout.blade.php) ---------- */
body.portal { background: #f4f6fa; }
.pt-head { background: var(--blue-dark); color: #fff; }
.pt-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 1rem 1.5rem; max-width: 900px; margin: 0 auto; padding: 14px 1rem; }
.pt-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.pt-brand:hover { color: #fff; }
.pt-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.pt-brand small { font-size: .92rem; opacity: .9; }
.pt-brand strong { font-size: 1.5rem; font-weight: 700; }
.pt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; font-size: .95rem; }
.pt-tools a { color: #fff; }
.pt-tools a:hover { color: var(--gold); }
.pt-hotline { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--red); font-weight: 700; }
.pt-lang { display: flex; gap: .8rem; }
.pt-lang a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pt-back { order: -1; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border: 2px solid rgba(255, 255, 255, .6); border-radius: 99px; color: #fff; font-size: 1.05rem; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s; }
.pt-back:hover, .pt-back:focus-visible { background: #fff; border-color: #fff; color: var(--blue-dark); }
.pt-head-in > .pt-brand { margin-right: auto; }
/* Wide screens: the back button sits at the header's far left, and the logo lines up with the form's left edge */
@media (min-width: 1280px) {
    .pt-head-in { position: relative; }
    /* From the centred row, out to 24px from the window's left edge, centred on the row */
    .pt-back { position: absolute; left: calc(50% - 50vw + 24px); top: 50%; transform: translateY(-50%); }
}
.pt-tabs { display: flex; justify-content: center; gap: .5rem; background: #fff; border-bottom: 1px solid var(--line); }
.pt-tabs a { padding: 14px 22px; color: #333; font-weight: 600; font-size: 1.05rem; border-bottom: 3px solid transparent; }
.pt-tabs a:hover { color: var(--blue-600); }
.pt-tabs a[aria-current] { color: var(--blue-600); border-bottom-color: var(--red); }
.pt-main { max-width: 900px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.pt-title { margin: 0 0 1.2rem; font-size: 1.7rem; color: var(--blue-600); }
.pt-foot { padding: 1.6rem 1rem 5.5rem; border-top: 1px solid var(--line); background: #fff; text-align: center; font-size: .92rem; color: var(--muted); }
.pt-foot p { margin: .3rem 0; }
body.hc .pt-head, body.hc .pt-tabs, body.hc .pt-foot, body.hc.portal { background: #000; }
@media (max-width: 700px) {
    .pt-head-in { padding: 12px 16px; }
    .pt-brand img { width: auto; height: 48px; }
    .pt-brand strong { font-size: 1.2rem; }
    .pt-tabs a { padding: 12px 12px; font-size: .98rem; }
    .pt-title { font-size: 1.35rem; }
}

/* Help chatbot (bottom right, like the GoN template's chat widget) */
.cb { --cb: #6c6cf0; --cb-dark: #5656d6; }
.cb-bubble { position: fixed; right: 36px; bottom: 24px; z-index: 9000; width: 64px; height: 64px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--cb); color: var(--cb); box-shadow: 0 6px 16px rgba(60, 60, 160, .35); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.cb-bubble:hover { background: var(--cb-dark); transform: scale(1.06); }
.cb-bubble[hidden] { display: none; }
.cb-window { position: fixed; right: 36px; bottom: 24px; z-index: 10000; width: 360px; height: min(520px, calc(100vh - 48px)); display: flex; flex-direction: column; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 12px 36px rgba(16, 24, 40, .28); color: #222; }
.cb-window[hidden] { display: none; }
.cb-head { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 10px; background: var(--cb); color: #fff; }
.cb-head img { width: 40px; height: 40px; flex-shrink: 0; padding: 3px; border-radius: 50%; background: #fff; object-fit: contain; }
.cb-head-text { flex: 1; min-width: 0; }
.cb-head h2 { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-head p { margin: 0; font-size: .8rem; line-height: 1.3; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-head button { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; }
.cb-head button:hover { background: rgba(255, 255, 255, .18); }
.cb-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 4px; }
.cb-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.cb-msg p { margin: 0; white-space: pre-line; }
.cb-bot { align-self: flex-start; background: #f0f0f7; border-top-left-radius: 4px; }
.cb-user { align-self: flex-end; background: var(--cb); color: #fff; border-top-right-radius: 4px; }
.cb-msg a { display: block; margin-top: 6px; padding: 5px 10px; border-radius: 8px; background: #fff; color: var(--cb-dark); font-weight: 600; font-size: .88rem; }
.cb-msg a:hover { background: var(--cb); color: #fff; }
.cb-typing { display: flex; gap: 4px; padding: 12px 14px; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a9ad0; animation: cb-dot 1s infinite ease-in-out; }
.cb-typing span:nth-child(2) { animation-delay: .15s; } .cb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cb-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 8px; }
.cb-quick:empty { display: none; }
.cb-quick button { padding: 4px 10px; border: 1px solid var(--cb); border-radius: 99px; background: #fff; color: var(--cb-dark); font: inherit; font-size: .83rem; cursor: pointer; }
.cb-quick button:hover { background: var(--cb); color: #fff; }
.cb-form { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid #ececf3; }
.cb-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #d8d8e6; border-radius: 99px; font: inherit; font-size: .93rem; }
.cb-form input:focus { outline: 2px solid var(--cb); outline-offset: 0; border-color: transparent; }
.cb-form button { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: var(--cb); color: #fff; cursor: pointer; }
.cb-form button:hover { background: var(--cb-dark); }
@media (max-width: 520px) {
    .cb-bubble { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .cb-window { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
}


/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--navy); color: #fff; border: 0; padding: .62rem 1.3rem; border-radius: 99px; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-red { background: var(--crimson); }
.btn-red:hover { background: var(--crimson-700); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-50); color: var(--navy); }
.btn-ghost { background: var(--blue-50); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .3rem .9rem; font-size: .88rem; white-space: nowrap; }
.btn-block { display: flex; width: 100%; }

/* ---------- Sections ---------- */
.band { padding: 2.5rem 0; }
.band-alt { background: var(--surface); }
.band.band-last { padding-bottom: 7rem; }
.band-dark { background: var(--navy-900); color: #dfe6f7; }
.band-dark .sec-title, .band-dark h3 { color: #fff; }
.band-dark .more { color: #fff; }
.section { margin-top: 1.25rem; margin-bottom: 4rem; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.sec-tools { display: flex; align-items: center; gap: 1rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; color: var(--crimson); margin-bottom: .2rem; }
.sec-title { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; color: var(--ink); }
.sec-title-link { color: inherit; }
.sec-title-link:hover { color: var(--blue-600); }
.sub-title { margin: 0 0 .8rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.more-spacer { visibility: hidden; }
.more, .link-arrow { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .95rem; }
.more { margin-top: .8rem; }
.sec-head .more, .sec-tools .more { margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card h2 { margin-top: 0; font-size: 1.15rem; color: var(--ink); font-weight: 700; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .table tbody tr:last-child td { border-bottom: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.two-eq, .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.col-side > * + * { margin-top: 1.25rem; }
.badge { display: inline-block; background: var(--blue-50); color: var(--blue-600); padding: .1rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.chips a { background: #fff; border: 1px solid var(--line); color: var(--text); padding: .25rem .95rem; border-radius: 99px; font-size: .9rem; }
.chips a:hover, .chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Press release categories: one colour each, used on badges, cards, table rows and filter chips. */
.cat-charge_sheet { --cat: #b3122d; --cat-bg: #fdecef; }
.cat-sting { --cat: #a84300; --cat-bg: #fff1e6; }
.cat-special { --cat: #6b21a8; --cat-bg: #f5edfd; }
.cat-appeal { --cat: #1a44b8; --cat-bg: #eaf0ff; }
.cat-review { --cat: #0f6e78; --cat-bg: #e3f6f7; }
.cat-suggestion { --cat: #1b7036; --cat-bg: #e8f6ec; }
.cat-other { --cat: #4b5563; --cat-bg: #eef0f3; }
.badge[class*="cat-"] { background: var(--cat-bg); color: var(--cat); }
.chips a[class*="cat-"]::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .4em; border-radius: 50%; background: var(--cat); }
.chips a[class*="cat-"]:hover, .chips a[class*="cat-"].on { background: var(--cat); border-color: var(--cat); color: #fff; }
.chips a[class*="cat-"]:hover::before, .chips a[class*="cat-"].on::before { background: #fff; }
tr[class*="cat-"] > td:first-child { box-shadow: inset 4px 0 0 var(--cat); }

/* ---------- Carousels ---------- */
/* Hero: cross-fading slides */
.hero { position: relative; min-height: clamp(460px, 44vw, 620px); background: var(--navy); overflow: hidden; color: #fff; }
.hero-slides, .slide { position: absolute; inset: 0; }
.slide { margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.slide.on img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,24,71,.8) 0%, rgba(6,24,71,.4) 25%, transparent 50%); }
.slide figcaption { position: absolute; z-index: 1; left: max(1rem, calc((100% - 1240px) / 2)); bottom: 2rem; width: min(760px, 62%); }
.slide h2 { margin: .3rem 0 .8rem; color: #fff; font-size: clamp(1.35rem, 2.7vw, 2.25rem); font-weight: 700; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide .eyebrow { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.slide h2 a { color: #fff; }
.slide h2 a:hover { color: var(--gold); }
.slide p { margin: 0; font-size: .84rem; color: #dbe3f6; }
.slide-default { background: radial-gradient(circle at 80% 20%, #1c3f9c 0, transparent 45%), linear-gradient(120deg, var(--navy-900), var(--navy) 60%, #183b94); }
.slide-default::before { content: ""; position: absolute; right: 8%; top: 50%; width: 340px; height: 340px; transform: translateY(-50%); background: url("../images/logo-ciaa.png") center / contain no-repeat; opacity: .08; }
.slide-default::after { background: url("../images/skyline.svg") center bottom / auto 40% repeat-x; opacity: .18; }
.hero-ui { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; justify-content: flex-end; padding: 2.5rem 0 4.5rem; pointer-events: none; }
.hero-ui > * { pointer-events: auto; }
.hero-ctrl { position: absolute; right: 0; bottom: 2rem; display: flex; align-items: center; gap: .8rem; }
.hero-ctrl button.prev, .hero-ctrl button.next { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero-ctrl button.prev:hover, .hero-ctrl button.next:hover { background: #fff; color: var(--navy); }
.dots { display: flex; gap: .4rem; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.dot.on { width: 30px; background: var(--gold); }

/* Rails: horizontally scrolling, snapping card rows with prev/next buttons */
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .3rem .1rem 1rem; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; min-width: 0; }
.rail-btns { display: flex; gap: .5rem; }
.rail-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.rail-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rail-btn:disabled { opacity: .35; cursor: default; background: #fff; color: var(--navy); }
.band-dark .rail-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.band-dark .rail-btn:hover { background: #fff; color: var(--navy); }


/* ---------- Home: the commission ---------- */
.band.leaders-band { padding-bottom: .5rem; }
.leaders-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.leaders-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.commission-side { flex: 1; padding: 1.25rem; border: 2px dashed rgba(200, 16, 46, .3); border-radius: var(--radius); }
.commission-side .sec-head { justify-content: center; text-align: center; }
.home-tiles { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1rem; }
.home-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .7rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; font-size: 1.08rem; text-align: center; }
.home-tile-teal { --tile: #0f6e78; --tile-bg: #e3f6f7; }
.home-tile-red { --tile: #b3122d; --tile-bg: #fdecef; }
.home-tile-blue { --tile: #1a44b8; --tile-bg: #eaf0ff; }
.home-tile-amber { --tile: #a84300; --tile-bg: #fff1e6; }
body.hc .home-tile { --tile: #ffea00; --tile-bg: #000; }
a.home-tile, .home-tile:has(a) { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.home-tile:hover, .home-tile:has(a):hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--tile); }
.home-tile-ic { width: 56px; height: 56px; margin-bottom: .15rem; border-radius: 14px; background: var(--tile-bg); display: grid; place-items: center; }
.home-tile-ic svg { width: 36px; height: 36px; fill: var(--tile); }
.home-tile-figures { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; }
.home-tile-figures > span { display: flex; align-items: baseline; gap: .3rem; line-height: 1.25; }
.home-tile-figures strong { color: var(--tile); font-size: 1.45rem; font-weight: 800; }
.home-tile-figures small { color: var(--muted); font-size: .86rem; font-weight: 500; }
.home-tile:has(a) { position: relative; }
.home-tile-title > a { color: inherit; }
.home-tile-title > a::after { content: ""; position: absolute; inset: 0; }
.home-tile-title > a:hover { color: var(--tile); }
.home-tile-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .3rem; }
.home-tile-links a { padding: .2rem .75rem; border: 1px solid var(--tile); border-radius: 99px; color: var(--tile); font-size: .92rem; font-weight: 600; }
.home-tile-links a:hover { background: var(--tile); color: #fff; }
body.hc .home-tile-links a:hover { color: #000; }
.home-tile-period { color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.2; }
.home-tile-lines { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: .8rem; line-height: 1.3; text-align: center; }
.home-tile-lines strong { margin-bottom: .25rem; color: var(--tile); font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.home-tile-more { color: var(--tile); font-size: .82rem; font-weight: 600; }
/* This fiscal year against last year's same period: neutral, since more complaints is not simply good or bad */
.complaint-change { display: inline-block; padding: .05rem .45rem; border-radius: 99px; background: var(--surface); color: var(--navy); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.commission { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.commission-rest { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.people-grid, .chief-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.people-grid .person-card, .chief-row .person-card { width: calc((100% - 2.4rem) / 4); }
.person-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-align: center; padding-bottom: 1rem; transition: transform .25s var(--ease), box-shadow .25s; }
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.person-card img { width: 100%; aspect-ratio: 5 / 5.6; object-fit: cover; object-position: top; background: var(--surface); margin-bottom: .8rem; }
.person-card strong { font-size: .95rem; padding: 0 .5rem; }
.person-card span { color: var(--crimson); font-size: .82rem; font-weight: 500; padding: 0 .5rem; }
.staff-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.staff-card { display: flex; align-items: center; gap: .9rem; background: var(--surface); border-radius: var(--radius-sm); padding: .8rem; color: var(--ink); min-width: 0; }
.staff-card img { width: 72px; height: 86px; object-fit: cover; object-position: top; border-radius: 8px; flex-shrink: 0; }
.staff-card > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.staff-card strong { font-size: 1rem; color: var(--navy); }
.staff-card em { font-style: normal; color: var(--muted); font-size: .88rem; }
.staff-card a { font-size: .9rem; }
.staff-main { grid-column: 1 / -1; background: #dfe8f8; color: var(--ink); }
.staff-main:hover { color: var(--ink); background: #d3dff5; }
.staff-main img { width: 96px; height: 114px; }
body.hc .staff-main, body.hc .staff-main:hover { background: #000; }
body.hc .staff-card strong { color: #fff; }

/* ---------- Home: complaint band ---------- */

/* ---------- Home: press releases ---------- */
.pr-card { display: flex; flex-direction: column; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; border-top: 4px solid var(--navy); transition: transform .25s var(--ease), box-shadow .25s; }
.pr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pr-card[class*="cat-"] { border-top-color: var(--cat); }
.pr-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.pr-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pr-card h3 a { color: var(--ink); }
.pr-card h3 a:hover { color: var(--blue-600); }
.pr-facts { margin: 0; display: grid; gap: .3rem; font-size: .88rem; background: var(--surface); border-radius: 8px; padding: .6rem .8rem; }
.pr-facts div { display: flex; gap: .4rem; }
.pr-facts dt { color: var(--muted); flex-shrink: 0; }
.pr-facts dt::after { content: ":"; }
.pr-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pr-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.file-tag { font-size: .78rem; font-weight: 700; color: var(--crimson); background: var(--crimson-50); padding: .1rem .55rem; border-radius: 6px; }
.file-tag.file-word { color: #1a44b8; background: #eaf0ff; }
.file-tag.file-pdf, .file-tag.file-word { display: inline-flex; padding: .25rem; line-height: 0; }
.file-tag.file-pdf:hover, .file-tag.file-word:hover { filter: brightness(.92); }

/* ---------- Home: updates ---------- */
.tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.tablist { display: flex; justify-content: space-between; gap: .1rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; margin-bottom: 1rem; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.tablist button { background: transparent; border: 0; padding: .5rem .45rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; border-radius: 8px 8px 0 0; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.tablist button:hover { color: var(--navy); }
.tablist button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--crimson); }
.ulist { list-style: none; height: 19.8rem; margin: 0; padding: 0; overflow: hidden; }
.ulist li { display: flex; align-items: center; gap: 1rem; height: 3.3rem; border-bottom: 1px dashed var(--line); }
.ulist li:last-child { border-bottom: 0; }
.ulist li > a:not(.pl-dl) { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.ulist li > .pl-dl { flex-shrink: 0; }
.ulist li > a:not(.pl-dl):hover { color: var(--blue-600); }
.date-chip { flex-shrink: 0; min-width: 6.5rem; font-size: .82rem; color: var(--navy); background: var(--blue-50); border-radius: 6px; padding: .2rem .5rem; text-align: center; }

/* ---------- Lists ---------- */
.plist { list-style: none; padding: 0; margin: 0; }
.pl-item { display: flex; gap: .85rem; padding: .7rem .1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pl-item:last-child { border-bottom: 0; }
/* Stacked variant: the date sits on its own line, with the title beneath it. */
.pl-stacked { row-gap: .3rem; }
.pl-stacked > .pl-date { flex: 1 0 100%; min-width: 0; }
.pl-date { color: var(--crimson); font-size: .84rem; min-width: 6rem; align-self: flex-start; font-weight: 500; }
.pl-item > a:not(.pl-dl) { flex: 1; min-width: 55%; color: var(--text); font-weight: 500; }
.pl-item > a:not(.pl-dl):hover { color: var(--blue-600); }
.pl-dl { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; color: var(--crimson); background: var(--crimson-50); transition: background .2s var(--ease), color .2s var(--ease); }
.pl-dl:hover { color: #fff; background: var(--crimson); }
body.hc .pl-dl:hover { color: #000; }
.pl-empty { color: var(--muted); padding: .8rem 0; }

/* ---------- Publications, albums, videos ---------- */
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.album-card:hover img { transform: scale(1.06); }
.album-cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(transparent, rgba(6,24,71,.85)); color: #fff; display: flex; flex-direction: column; }
.album-cap strong { line-height: 1.35; }
.album-cap span { font-size: .85rem; color: #cdd7f0; }
.video-card { display: flex; flex-direction: column; gap: .7rem; color: var(--ink); }
.video-card:hover { color: var(--crimson); }
.media-tabs { position: relative; }
.media-tabs .tablist { justify-content: flex-start; gap: .6rem; margin-bottom: 1.1rem; min-height: 3.2rem; }
.media-tabs .tablist button { padding: .6rem .9rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.media-tabs .sec-tools { position: absolute; top: .3rem; right: 0; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s var(--ease); }
.video-card:hover .vthumb img { opacity: 1; transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--crimson); color: #fff; display: grid; place-items: center; font-size: 1.2rem; padding-left: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.video-card strong { font-weight: 600; line-height: 1.4; }

/* Mission */

/* Offices */
.office-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-left: 4px solid var(--navy); color: var(--text); transition: transform .25s var(--ease), box-shadow .25s; }
a.office-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.office-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.office-card h3 a { color: inherit; }
.office-card p { margin: .15rem 0; font-size: .93rem; color: var(--muted); overflow-wrap: anywhere; }
.office-card .office-desc { margin-top: .5rem; color: var(--text); }

/* Popup notices */
.popup { width: min(560px, calc(100% - 2rem)); max-height: 85vh; padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.popup::backdrop { background: rgba(6, 24, 71, .6); backdrop-filter: blur(2px); }

/* Fade and lift in on open, fade out on close. Browsers without @starting-style
   or allow-discrete simply show/hide the dialog with no animation. */
.popup { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .28s ease, transform .28s cubic-bezier(.2, .8, .3, 1), overlay .28s allow-discrete, display .28s allow-discrete; }
.popup[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .popup[open] { opacity: 0; transform: translateY(14px) scale(.97); } }
.popup::backdrop { opacity: 0; transition: opacity .28s ease, overlay .28s allow-discrete, display .28s allow-discrete; }
.popup[open]::backdrop { opacity: 1; }
@starting-style { .popup[open]::backdrop { opacity: 0; } }
.popup-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.2rem; background: var(--navy); color: #fff; }
.popup-head h2 { margin: 0; color: #fff; font-size: 1.15rem; }
.popup-x { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.popup-body { padding: 1.2rem; overflow-y: auto; max-height: calc(85vh - 60px); display: grid; gap: 1rem; }
/* Photo lightbox (site.js): one photo at a time, with previous/next */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(4, 12, 36, .92); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: .8rem; width: 100%; height: 100%; margin: 0; padding: 3.5rem 4.5rem; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox figcaption { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; font-size: .95rem; }
.lb-count { color: #b9c4e4; font-variant-numeric: tabular-nums; }
.lb-x, .lb-nav { position: absolute; z-index: 1; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-x:focus-visible, .lb-nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-x { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.8rem; }
.lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 2.2rem; padding-bottom: 4px; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-single .lb-nav, .lb-single .lb-count { display: none; }
@media (max-width: 700px) {
    .lightbox figure { padding: 3.5rem .75rem 4.5rem; }
    .lb-nav { top: auto; bottom: 1rem; margin-top: 0; }
}
.popup-item img { border-radius: 8px; margin-bottom: .5rem; }
.popup-item h3 { margin: 0; font-size: 1.05rem; }
.popup-item .meta { font-size: .85rem; color: var(--muted); }

/* ---------- Inner pages ---------- */
.pagehead { color: #fff; background: linear-gradient(120deg, var(--navy-900), var(--navy)); }
.pagehead-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .1rem 1.2rem; padding: .5rem 0; }
.pagehead h2 { margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 700; color: #fff; }
.crumbs { font-size: .84rem; display: flex; flex-wrap: wrap; gap: .4rem; color: #b9c5e6; }
.crumbs a { color: #e3e9f8; }
.crumbs a:hover { color: var(--gold); }
.prose { overflow-wrap: anywhere; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--navy); }
.prose h3 { margin: 2.2rem 0 .8rem; padding-bottom: .45rem; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
.prose h4 { margin: 1.8rem 0 .6rem; font-size: 1.04rem; }
.prose p { margin: 0 0 1rem; text-align: justify; }
.prose li { text-align: justify; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .3rem; }
.prose li::marker { color: var(--crimson); }
.prose-lead { font-size: 1.1rem; color: var(--ink); padding-left: 1rem; border-left: 4px solid var(--crimson); }
.prose-kicker { color: var(--muted); font-weight: 600; }
.prose .legal p { margin: 0 0 .6rem; padding-left: 2rem; text-indent: -2rem; }
.prose .legal .sub { padding-left: 3.5rem; text-indent: -1.5rem; }
.prose .legal .proviso { margin: .2rem 0 .9rem 2rem; padding: .1rem 0 .1rem .9rem; text-indent: 0; color: var(--muted); border-left: 2px solid var(--line); }
.prose .legal:not(:last-child) { margin-bottom: 1.4rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose figure { margin: 1rem 0; }
.prose figure img { max-width: 100%; height: auto; }
.prose figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.prose td, .prose th { padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); color: var(--navy); font-size: .88rem; font-weight: 700; text-align: left; }
.prose tbody tr:hover { background: #fafbfe; }
.prose-img { border-radius: var(--radius-sm); margin-bottom: 1rem; }
.post-title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--navy); }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.pdf { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 1rem; }
/* A post's title and date share one row, the date on the right; what follows starts right under it */
.post-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1.5rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.post-head .post-title { flex: 1 1 22rem; margin: 0; }
.post-head .meta { flex: none; margin: 0; white-space: nowrap; }
.post-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.prose .post-attachments h3 { margin: 0; padding: 0; border: 0; font-size: 1.05rem; }
.post-attachments .downloads { margin: 0; }
.prose .post-attachments + .pdf { margin-top: 0; }
.pdf-open { text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.pdf-open[hidden] { display: none; }
.prose .pdf-open p { margin: 0 0 .8rem; color: var(--muted); }
.row-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-body { flex: 1; min-width: 0; }
.row-body h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.row-body h3 a { color: var(--ink); }
.row-body h3 a:hover { color: var(--blue-600); }
.row-body .meta { margin: 0; }
.filters + .chips { margin-bottom: .4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .5rem; }
.filters.card { padding: .7rem; }
.filters input, .filters select { padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: var(--text); }
.filters input:focus, .filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); outline: none; }
.filters input { flex: 1; min-width: 200px; }
.date-field { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.date-field .bsdp { white-space: normal; color: var(--text); }
.filters .date-field input { flex: none; width: 9.5rem; min-width: 0; padding-right: 2.2rem; }
/* Filter dropdown: the list always opens below the field and scrolls, where a native select's popup may open upwards. */
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.dd-btn:hover { border-color: var(--blue); }
.dd-btn .chev { margin: 0 0 0 auto; }
.dd-pop { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 100%; max-width: min(22rem, calc(100vw - 2rem)); max-height: 15rem; overflow-y: auto; margin: 0; padding: .25rem; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.dd-pop button { display: block; width: 100%; padding: .4rem .6rem; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.dd-pop button:hover { background: var(--surface); }
.dd-pop [aria-selected="true"] { background: var(--blue-50); color: var(--navy); font-weight: 700; }
.filters .date-field .bsdp-head select { padding: .3rem .4rem; }
.bsdp-open { position: absolute; top: 0; right: 0; width: 2.2rem; height: 2.7rem; display: grid; place-items: center; color: var(--navy); }
:where(.date-field .bsdp button) { border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.result-count { margin: 0 0 .4rem; color: var(--muted); font-weight: 700; }
.form-note-error { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 8px; color: var(--crimson-700); background: var(--crimson-50); }
.chip-count { font-size: .78rem; font-weight: 700; opacity: .75; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--surface); color: var(--navy); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.table tbody tr:hover { background: #fafbfe; }
/* Every table's text, headers and figures included, reads from the left */
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .sn { width: 5rem; }
.file-links { display: flex; flex-wrap: wrap; gap: .3rem; }
.file-groups { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .84rem; color: var(--muted); }
td > .file-groups { display: grid; grid-template-columns: repeat(auto-fill, 7.5rem); gap: .5rem .8rem; }
.file-groups > div { display: flex; flex-direction: column; gap: .25rem; }
td > .file-groups:has(> div + div) { min-width: 15.8rem; }
/* Resource and press release lists: rows centred top to bottom */
.posts-table td { vertical-align: middle; }
.downloads { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.downloads a { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem .2rem .25rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: .85rem; font-weight: 500; line-height: 1.4; }
.downloads .file-tag { padding: .1rem; }
.downloads svg { display: block; width: 20px; height: 20px; }
.downloads a:hover { border-color: var(--navy); color: var(--navy); background: var(--blue-50); }
.subpages { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.subpages a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--text); }
.subpages a:hover, .subpages a[aria-current] { background: var(--blue-50); color: var(--navy); font-weight: 600; }

/* Leaders */
.officer { display: flex; gap: 1rem; align-items: center; }
.officer img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--blue-50); flex-shrink: 0; }
.officer small { display: block; color: var(--crimson); font-size: .8rem; font-weight: 700; }
.officer strong { display: block; color: var(--ink); font-size: 1.1rem; }
.person-mini { display: flex; gap: .8rem; align-items: center; }
.person-mini img { width: 64px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface); }
.person-mini small { display: block; color: var(--crimson); font-weight: 700; font-size: .78rem; }

/* Grids */
.leader-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.leader-row { display: flex; gap: 1.25rem; padding: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.leader-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.leader-row img { flex-shrink: 0; width: 120px; height: 144px; object-fit: cover; object-position: top; border-radius: var(--radius-sm); background: var(--surface); }
.leader-row-lead { grid-column: 1 / -1; }
.leader-row-lead img { width: 150px; height: 180px; }
.leader-row-body { display: flex; flex-direction: column; min-width: 0; gap: .25rem; }
.leader-row-body strong { color: var(--navy); font-size: 1.15rem; font-weight: 700; }
.leader-row-role { color: var(--crimson); font-size: .92rem; font-weight: 500; }
.leader-row-text { margin-top: .35rem; font-size: .94rem; line-height: 1.6; }
.leader-row-more { margin-top: auto; padding-top: .5rem; color: var(--blue-600); font-size: .9rem; font-weight: 600; }
.profile { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.profile-side img { display: block; width: 100%; aspect-ratio: 14 / 17; object-fit: cover; object-position: top; border-radius: var(--radius-sm); background: var(--surface); }
.profile-side .role { margin: .9rem 0 0; color: var(--crimson); font-size: 1rem; font-weight: 600; text-align: center; }
.profile-facts { margin: 1rem 0 0; font-size: .93rem; }
.profile-facts > div { padding: .55rem 0; border-top: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: .84rem; }
.profile-facts dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.profile-lead { margin: 0 0 1rem; color: var(--ink); font-size: 1.08rem; font-weight: 500; line-height: 1.7; }
.profile-main .prose img { height: auto; }
.table .table-photo { width: 5.5rem; }
.table-photo img { display: block; width: 64px; height: 78px; object-fit: cover; object-position: top; border-radius: 8px; background: var(--surface); }
.table tr:has(.table-photo) > td { vertical-align: middle; }

/* ---------- An office's own website ---------- */
.office-site { background: var(--card); }
.os-head { position: sticky; top: var(--topbar-h, 38px); z-index: 50; background: var(--card); box-shadow: var(--shadow-sm); }
.os-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding-block: .8rem; }
.os-brand { display: flex; align-items: center; gap: .9rem; min-width: 0; color: var(--navy); }
.os-brand:hover { color: var(--navy); }
.os-brand img { flex-shrink: 0; width: auto; height: 64px; }
.os-brand strong { font-family: 'Karma', 'Mukta', 'Noto Sans Devanagari', serif; font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; }
.os-nav { background: var(--navy); }
.os-nav .container { display: flex; flex-wrap: wrap; gap: .2rem; }
.os-nav a { padding: .65rem 1rem; color: #e8eefc; font-weight: 500; }
.os-nav a:hover { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.os-nav a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
/* "Main website" button before the office menu: the complaint portal's .pt-back pill, sized for the menu bar */
.os-nav .container { align-items: center; }
.os-nav a.os-back { display: inline-flex; align-items: center; gap: .4rem; margin: .3rem .6rem .3rem 0; padding: .3rem .95rem; border: 2px solid rgba(255, 255, 255, .6); border-radius: 99px; color: #fff; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s; }
.os-nav a.os-back:hover, .os-nav a.os-back:focus-visible { background: #fff; border-color: #fff; color: var(--navy); box-shadow: none; }
.os-section { padding: 2.5rem 0; scroll-margin-top: 9rem; }
.os-section-alt { background: var(--surface); }
.os-section h1, .os-section h2 { margin: 0 0 1rem; color: var(--ink); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
.os-about .prose { max-width: 62rem; }
/* Office sites: running text is justified, like the main site's pages (.prose p). */
.os-about, .os-notice-body, .os-section p { text-align: justify; }
.os-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.5rem 2.5rem; align-items: start; }
.os-intro > :only-child { grid-column: 1 / -1; }
.os-intro aside h2 { margin-top: 0; }
.os-people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.os-person { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.os-person img { flex-shrink: 0; width: 96px; height: 116px; object-fit: cover; object-position: top; border-radius: var(--radius-sm); background: var(--surface); }
.os-person > div { display: flex; flex-direction: column; min-width: 0; gap: .15rem; overflow-wrap: anywhere; }
.os-person small { color: var(--crimson); font-size: .84rem; font-weight: 600; }
.os-person strong { color: var(--navy); font-size: 1.08rem; }
.os-districts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem 1.6rem; margin: 0; padding-left: 1.6rem; }
.os-districts li { padding: .25rem 0; }
html[lang="ne"] .os-districts { list-style-type: devanagari; }
.os-notices { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.os-notices li { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.os-notices time { flex-shrink: 0; color: var(--crimson); font-size: .84rem; font-weight: 600; }
.os-notices span { flex: 1; min-width: 0; overflow: hidden; color: var(--navy); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.os-section h2:not(:first-child) { margin-top: 2.2rem; }
.os-info { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.os-info li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.os-info span { flex-shrink: 0; color: var(--muted); }
.os-map { align-self: start; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-sm); background: var(--navy); }
.os-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.os-foot { margin-top: 3rem; padding: 0 0 5.5rem; background: var(--navy-900); color: #dfe6f7; font-size: .95rem; scroll-margin-top: 9rem; }
.os-foot a { color: #fff; }
.os-foot a:hover { color: var(--gold); }
.os-foot h2 { margin: 0 0 .7rem; color: #fff; font-size: 1.1rem; font-weight: 700; }
.os-foot p { margin: 0 0 .5rem; }
.os-foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 15rem); gap: 2rem; padding-top: 1.5rem; }
.os-contact { list-style: none; margin: 0; padding: 0; }
.os-contact li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.1); overflow-wrap: anywhere; }
.os-contact span { color: #cdd7f0; flex-shrink: 0; }
body.hc.office-site, body.hc .os-head { background: #000; }
.album-grid, .photo-grid, .office-grid, .division-grid, .video-grid { display: grid; gap: 1.4rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; align-items: start; }
.sitemap-grid h2 { margin: 0 0 .6rem; color: var(--navy); font-size: 1.15rem; }
.sitemap-grid ul { list-style: none; margin: 0; padding: 0; }
.sitemap-grid li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.sitemap-grid li:last-child { border-bottom: 0; }
.album-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 1.8rem; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.slide-info-photo { display: block; width: 100%; max-height: 620px; object-fit: contain; margin-bottom: 1.2rem; }
.office-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.division-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4/3; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: .95rem; }
.office-info { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.office-info strong { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.division { position: relative; padding-left: 4rem; }
.division-no { position: absolute; left: 1.1rem; top: 1.4rem; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.division h3 { margin: 0 0 .2rem; font-size: 1.05rem; color: var(--navy); }
.video { overflow: hidden; }
.video h3 { font-size: 1rem; margin: .8rem 0 0; }
.ratio { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
audio { width: 100%; margin-top: .5rem; }

/* Statistics */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
/* Compact: the fiscal year on top, the figure on the left, what it counts (and the change) beside it */
.stat-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .05rem .8rem; padding: .65rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-tile > .stat-lbl:first-child { grid-column: 1 / -1; font-weight: 600; }
.stat-tile .stat-num { grid-row: span 2; }
.stat-tile.accent { background: var(--navy); border-color: var(--navy); }
.stat-tile.accent .stat-num { color: #fff; }
.stat-tile.accent .stat-lbl { color: #c9d4f0; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--ink); line-height: 1.1; font-family: 'Inter', 'Mukta', sans-serif; }
.stat-lbl { color: var(--muted); font-size: .84rem; line-height: 1.3; }
.stat-tile .complaint-change { justify-self: start; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 90px; gap: .9rem; align-items: center; margin: .8rem 0; }
.bar { background: var(--blue-50); border-radius: 99px; height: 14px; overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; background: var(--navy); }
.bar-val { font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }

/* Statistics charts (ECharts; see public/js/charts.js). Each chart keeps a table of the same
   figures beneath it, open until the chart is drawn, so nothing depends on JavaScript. */
.chart-note { margin: -.3rem 0 1.1rem; color: var(--muted); font-size: .9rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chart-legend li { display: flex; align-items: center; gap: .4rem; color: var(--text); font-size: .86rem; line-height: 1.4; }
.chart-key { flex: none; width: 11px; height: 11px; border-radius: 3px; }
/* Two fiscal years side by side: the legend gets a row for the sources and a row for the years */
.chart-legend .chart-legend-head { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.chart-legend-break { flex-basis: 100%; height: 0; }
.chart-legend-year { font-weight: 600; }
.chart-key-year { flex: none; width: 10px; height: 18px; border-radius: 3px 3px 0 0; }
.chart-key-year.is-pale { opacity: .42; }
.ec-tip { min-width: 10rem; }
.ec-tip-head { padding: .4rem .65rem .2rem; color: var(--ink); font-weight: 700; font-size: .82rem; }
.ec-tip-table { border-collapse: collapse; margin: 0 .65rem .4rem; font-size: .78rem; line-height: 1.25; }
.ec-tip-table th { padding: 0 0 .2rem .7rem; color: var(--muted); font-size: .72rem; font-weight: 600; text-align: right; white-space: nowrap; }
.ec-tip-table td { padding: .03rem 0 .03rem .7rem; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-tip-table td:first-child { display: flex; align-items: center; gap: .4rem; padding-left: 0; color: var(--muted); font-weight: 400; text-align: left; }
.ec-tip-table tfoot td { padding-top: .25rem; border-top: 1px solid var(--line); }
.ec-tip-table tfoot td:first-child { color: var(--ink); font-weight: 600; }
.ec-tip-row { display: flex; align-items: center; gap: .5rem; padding: .08rem .65rem; font-size: .8rem; }
.ec-tip-key { flex: none; width: 9px; height: 9px; border-radius: 2px; }
.ec-tip-name { color: var(--muted); }
.ec-tip-val { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ec-tip-total { margin-top: .15rem; padding-top: .25rem; padding-bottom: .4rem; border-top: 1px solid var(--line); }
.ec-tip-total .ec-tip-name { color: var(--ink); font-weight: 600; }
.chart-canvas { width: 100%; }
.chart-box details { margin-top: 1rem; }
.chart-box.is-drawn details { border-top: 1px solid var(--line); padding-top: .9rem; }
.chart-box summary { cursor: pointer; width: fit-content; color: var(--navy); font-size: .9rem; font-weight: 600; }
.chart-box summary:hover { color: var(--blue-600); }
.chart-box details[open] summary { margin-bottom: .9rem; }
/* The figures as a table: compact rows, so a month-by-office table takes little more room than its chart */
.chart-box .table { font-size: .82rem; }
.chart-box .table th, .chart-box .table td { padding: .3rem .55rem; }
.chart-box .table th { font-size: .78rem; }

/* Pagination */
.pager { margin-top: 1.5rem; }
.os-notice-body { margin-top: .25rem; color: var(--muted); font-size: .92rem; }
.os-album + .os-album { margin-top: 2.2rem; }
.os-media { margin-top: 2.2rem; }
.os-album .muted { margin-top: -.4rem; }
.pagination { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 2.4rem; text-align: center; padding: .4rem .75rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled { color: #aab; }

/* Forms */
/* Forms */
.form fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.4rem; padding: 1.2rem 1.3rem; background: var(--card); }
.form legend { padding: 0 .5rem; font-weight: 600; color: var(--blue-600); font-size: 1.05rem; }
.form label { display: block; font-weight: 500; margin-bottom: .9rem; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form textarea, .form select { display: block; width: 100%; margin-top: .3rem; padding: .6rem .85rem; border: 1px solid #cdd5e4; border-radius: var(--radius-sm); font: inherit; background: #fff; color: #000; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 96, 185, .15); outline: none; }
.form .check { display: flex; gap: .5rem; align-items: flex-start; }
.form .check input { flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin: .3rem 0 0; accent-color: var(--blue-600); }
.form input[type=file] { display: block; width: 100%; min-width: 0; margin-top: .4rem; font: inherit; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.span-2 { grid-column: span 2; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.pow { margin: 0 0 1.2rem; --altcha-max-width: 320px; }
.note { color: var(--muted); }
.note-req { color: var(--red); }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-error { background: #fdecef; border: 1px solid #f3b3c0; color: #8a0c25; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.refno { display: inline-block; font-size: 2rem; font-weight: 700; letter-spacing: .1em; color: var(--blue-600); margin: .6rem 0 1.2rem; padding: .3rem 1.2rem; background: var(--blue-50); border: 2px dashed #9db7e3; border-radius: var(--radius); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.1rem; }
.radio-group { margin-bottom: .9rem; }
.radio-group > span { display: block; font-weight: 500; margin-bottom: .3rem; }
.radio-group .check { margin-bottom: .3rem; font-weight: 400; }
.alert-ok { background: #e6f6ec; border: 1px solid #a9dcbc; color: #0f5a2f; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 0; color: #c4cfec; background: var(--navy-900); }
.footer a { color: #e3e9f8; }
.footer a:hover { color: var(--gold); }
.footer h2, .footer h3 { color: #fff; }
.f-cta { position: relative; top: -3rem; margin-bottom: -1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; padding: 2rem 2.2rem; border-radius: var(--radius); background: linear-gradient(110deg, var(--crimson), #8f0a20); box-shadow: var(--shadow-lg); color: #fde4e8; }
.f-cta h2 { margin: 0 0 .2rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.f-cta p { margin: 0; }
.f-cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.f-cta .btn-red { background: #fff; color: var(--crimson); }
.f-cta .btn-red:hover { background: var(--crimson-50); color: var(--crimson-700); }
.f-cta .btn-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.f-cta .btn-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 1fr; gap: 2.5rem; padding: 1.5rem 0 3rem; }
.f-brand img { width: auto; height: 72px; }
.f-brand h2 { margin: .8rem 0 .2rem; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.f-brand p { margin: 0 0 1rem; font-size: .92rem; }
.footer h3 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; }
.social { display: flex; gap: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--crimson); color: #fff; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.5rem; font-size: .93rem; }
.f-links-single { grid-template-columns: 1fr; }
.f-visitors { display: flex; gap: 1.8rem; margin: 1.2rem 0 0; font-size: .86rem; }
.f-visitors dt { color: #cdd7f0; }
.f-visitors dd { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 800; }
.f-links a::before { content: "›"; margin-right: .4rem; color: var(--gold); }
.f-season { margin: 0 0 .3rem; font-weight: 600; color: #fff; font-size: .93rem; }
.f-hours { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.f-hours:last-child { border-bottom: 0; }
.f-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .93rem; }
.f-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.f-contact svg { flex-shrink: 0; margin-top: .25rem; color: var(--gold); }
.f-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0 5.5rem; font-size: .86rem; }
.f-bottom .container { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .brand img { height: 72px; }
    .mainbar-in { flex-wrap: wrap; }
    .brand { flex: 1 1 100%; }
    .brand strong { font-size: 2.3rem; }
    .head-actions { display: flex; flex: 1 1 100%; }
    .head-actions .site-search { flex: 1; }
    .navbar .container { display: block; }
    .navbar .site-search { display: none; }
    .nav-toggle { display: grid; }
    .navbar { display: none; position: static; }
    .navbar.open { display: block; }
    .menu { flex-direction: column; padding: .4rem 0 .8rem; }
    .menu > li > a { padding: .7rem .4rem; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
    .menu > li.active > a { box-shadow: inset 3px 0 0 var(--gold); }
    .sub, .sub.mega { position: static; display: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; min-width: 0; border-radius: var(--radius-sm); margin: .3rem 0 .6rem; grid-template-columns: 1fr; padding: .6rem; }
    .sub.mega { width: auto; }
    .sub:not(.mega) { width: auto; max-width: none; }
    .sub:not(.mega) a { white-space: normal; }
    .has-sub.open > .sub { display: block; }
    .has-sub.open > .sub.mega { display: grid; }
    .has-sub:hover > .sub { display: none; }
    .has-sub.open:hover > .sub { display: block; }
    .has-sub.open:hover > .sub.mega { display: grid; }
    .leaders-split { gap: 2rem; }
}
@media (max-width: 1000px) {
    .two-col, .cols-2, .two-eq, .leaders-split { grid-template-columns: minmax(0, 1fr); }
    .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rail-track { grid-auto-columns: calc((100% - 1.25rem) / 2.2); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .os-foot-grid { grid-template-columns: 1fr 1fr; }
    .hero-ui { justify-content: flex-start; align-items: flex-end; padding-top: 14rem; }
    .slide figcaption { bottom: 4.75rem; width: auto; right: 1rem; }
}
@media (max-width: 700px) {
    .date-field .bsdp-pop { left: -3.4rem; }
    .tb-hide-sm { display: none !important; }
    .brand img { width: auto; height: 48px; }
    .brand strong { font-size: 1.35rem; }
    html[lang="en"] .brand strong { font-size: 1.1rem; white-space: normal; }
    .brand-slogan { font-size: .82rem; line-height: 1.25; }
    .ticker-in { flex-direction: column; align-items: stretch; gap: .2rem; padding: .5rem 0; }
    .band { padding: 2rem 0; }
    .hero { min-height: 0; }
    .office-grid { grid-template-columns: minmax(0, 1fr); }
    .media-tabs .sec-tools { position: static; justify-content: flex-end; margin-bottom: .8rem; }
    .people-grid .person-card, .chief-row .person-card { width: calc((100% - .8rem) / 2); }
    .hero-ui { padding: 13rem 0 1.5rem; flex-direction: column; align-items: stretch; gap: 1rem; }
    .hero-ctrl { position: static; order: -1; }
    .rail-track { grid-auto-columns: 82%; }
    .staff-row, .grid-2, .grid-3, .profile, .f-links, .footer-grid, .leader-list, .os-people, .os-intro, .os-foot-grid { grid-template-columns: 1fr; }
    .os-head { position: static; }
    .os-districts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .os-brand img { height: 48px; }
    .os-section, .os-foot { scroll-margin-top: 0; }
    .leader-row img, .leader-row-lead img { width: 96px; height: 116px; }
    .f-cta { padding: 1.5rem; }
    .span-2 { grid-column: auto; }
    .bar-row { grid-template-columns: 1fr auto; gap: .2rem .8rem; }
    .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
    .profile-side { max-width: 300px; margin-inline: auto; width: 100%; }
    .ulist li { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } .rail-track { scroll-behavior: auto; } }
@media print { .topbar, .navbar, .ticker-bar, .head-actions, .a11y, .cb, .footer, .cta-complaint, .hero-ctrl { display: none; } .mainbar { position: static; box-shadow: none; } }
