/* Gram Panchayat portal - public site. Self-hosted, no web fonts, no frameworks: fast first paint. */
:root {
    --primary: #0b3a6f; --primary-dark: #072a52; --primary-soft: #e8eff8;
    --accent: #f28c0f; --green: #138808;
    --bg: #f3f6fb; --surface: #fff; --text: #17202e; --muted: #556275; --line: #dbe3ee;
    --radius: 12px; --shadow: 0 1px 2px rgba(11,58,111,.06), 0 6px 18px rgba(11,58,111,.08);
    --font: Hind, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { font-size: var(--base, 16px); }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; } .skip:focus { left: .5rem; top: .5rem; background: #fff; padding: .6rem 1rem; z-index: 99; border-radius: 6px; box-shadow: var(--shadow); }

/* tricolour strip */
.tricolour { height: 5px; background: linear-gradient(90deg, #ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); border-bottom: 1px solid #0001; }

/* utility bar */
/* Its drop-in animation leaves a transform, which makes the bar a stacking context: lift it above the sticky nav so the tools panel isn't buried. */
.utility { position: relative; z-index: 50; background: var(--primary-dark); color: #fff; font-size: .85rem; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: flex-end; padding-top: .35rem; padding-bottom: .35rem; }
.utility a { color: #fff; opacity: .92; } .utility a:hover { opacity: 1; }
.utility form { display: flex; gap: .25rem; margin-right: auto; }
.utility input[type=search] { padding: .3rem .7rem; border-radius: 999px; border: 0; width: 11rem; font: inherit; }
.utility button, .utility select { font: inherit; border-radius: 999px; border: 0; padding: .3rem .8rem; cursor: pointer; }
.utility form button { background: var(--accent); color: #111; font-weight: 600; }
details.tools { position: relative; } details.tools summary { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; padding: .2rem .6rem .2rem .45rem; border: 1px solid #fff5; border-radius: 999px; list-style: none; }
details.tools summary::-webkit-details-marker { display: none; } details.tools .a11y-ico { width: 16px; height: 16px; flex: none; }
details.tools .panel-tools { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; background: #fff; color: var(--text); border-radius: var(--radius); padding: .9rem; width: 19rem; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.panel-tools h3 { margin: .5rem 0 .25rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.panel-tools button { margin: .15rem .15rem 0 0; font-size: .8rem; background: var(--primary-soft); color: var(--primary); padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--line); }
.panel-tools button:hover { background: var(--primary); color: #fff; }

/* masthead */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand img, .masthead .right-logo { height: 4rem; width: auto; }
.brand h1 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.2; color: var(--primary); letter-spacing: -.01em; }
.brand h1 a { color: inherit; text-decoration: none; }
.brand small { display: block; color: var(--muted); font-size: .9rem; }
.brand .local-name { font-weight: 600; color: var(--accent); }
.gov-label { margin-top: .25rem; font-size: .78rem; color: var(--green); font-weight: 600; } .gov-label span + span { margin-left: .75rem; }

/* navigation */
nav.main { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
nav.main li { position: relative; }
nav.main a { display: block; color: #fff; padding: .85rem 1.05rem; font-weight: 500; transition: background .15s; }
nav.main a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
nav.main ul ul { display: none; position: absolute; left: 0; top: 100%; background: #fff; min-width: 15rem; z-index: 25; box-shadow: 0 12px 28px rgba(0,0,0,.2); flex-direction: column; border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px; overflow: visible; }
nav.main li:hover > ul, nav.main li:focus-within > ul { display: flex; }
nav.main ul ul a { color: var(--text); padding: .6rem 1rem; font-weight: 400; } nav.main ul ul a:hover { background: var(--primary-soft); color: var(--primary); }
nav.main ul ul ul { left: 100%; top: 0; border-radius: 10px; }
.has-sub > a::after { content: " \25BE"; font-size: .7em; } nav.main ul ul .has-sub > a::after { content: " \25B8"; }
.menu-toggle { display: none; width: 100%; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; padding: .85rem 1rem; text-align: left; cursor: pointer; }

/* ticker */
.ticker { background: #fff7e8; border-bottom: 1px solid #f3dcae; color: #4a3200; font-size: .95rem; }
.ticker .wrap { display: flex; gap: .75rem; align-items: center; padding-top: .45rem; padding-bottom: .45rem; }
.ticker b { background: var(--accent); color: #111; padding: .1rem .7rem; border-radius: 999px; font-size: .8rem; white-space: nowrap; }

/* content */
main { padding-top: 1.25rem; padding-bottom: 1rem; min-height: 50vh; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 0 0 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 .8rem; font-size: 1.08rem; color: var(--primary); position: relative; padding-bottom: .55rem; }
.card h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.75rem; height: 3px; background: var(--accent); border-radius: 3px; }
.card ul { margin: 0; padding: 0; list-style: none; } .card li { padding: .45rem 0; border-bottom: 1px dashed var(--line); } .card li:last-child { border-bottom: 0; }
.card li a::before { content: "\203A"; color: var(--accent); font-weight: 700; margin-right: .5rem; }
.card small { color: var(--muted); } .wide { grid-column: 1 / -1; }
.page-card { margin: 0 0 1.25rem; } .page-card .body { max-width: 62rem; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tabs button { border: 1px solid var(--line); background: var(--primary-soft); color: var(--primary); padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; }
.tabs button[aria-selected=true] { background: var(--primary); color: #fff; border-color: var(--primary); }
.panel[hidden] { display: none; }

.glance { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; } .glance img { max-width: 9rem; border-radius: 8px; }
.person-photo { width: 100%; max-width: 12rem; border-radius: 10px; margin-bottom: .6rem; }
.social-links a { margin-right: .8rem; font-size: .9rem; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; } .thumbs figure { margin: 0; } .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: transform .2s; } .thumbs a:hover img { transform: scale(1.03); } .thumbs figcaption { font-size: .75rem; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0 0 1rem; } .logos a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .9rem; } .logos img { height: 2.5rem; width: auto; }

/* footer */
footer { background: var(--primary-dark); color: #d6e0ee; margin-top: 2rem; padding: 1.75rem 0 2rem; font-size: .92rem; border-top: 4px solid var(--accent); }
footer a { color: #fff; margin-right: 1.1rem; } footer p { margin: .4rem 0; }
.badge { display: inline-block; border: 1px solid #7fd07f; color: #b9f0b9; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; }
.footer-logos { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: .75rem 0; } .footer-logos img { height: 2.4rem; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.to-top { background: none; border: 1px solid #fff5; color: #fff; padding: .3rem .9rem; border-radius: 999px; cursor: pointer; font: inherit; }

/* accessibility modes (toggled by site.js) */
body.contrast { --primary: #000; --primary-dark: #000; --bg: #000; --surface: #111; --text: #fff; --muted: #ddd; --line: #fff; --accent: #ff0; }
body.contrast a, body.contrast .card h2 { color: #ff0; } body.contrast nav.main ul ul, body.contrast .masthead { background: #111; } body.contrast nav.main ul ul a { color: #ff0; }
body.contrast .ticker { background: #111; color: #fff; }
body.hl-links a { background: #ff0; color: #000 !important; }
/* Filters go on <html>: on <body> they'd re-anchor the fixed dock/arrow to the page, and invert + saturate must combine, not override. */
html:has(> body.invert) { filter: invert(1) hue-rotate(180deg); } html:has(> body.saturate) { filter: saturate(2.2); }
html:has(> body.invert.saturate) { filter: invert(1) hue-rotate(180deg) saturate(2.2); }
body.invert img, body.invert video, body.invert iframe { filter: invert(1) hue-rotate(180deg); }
body.big-cursor, body.big-cursor * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><path d='M2 2l10 26 4-10 10-4z' fill='black' stroke='white' stroke-width='2'/></svg>") 2 2, auto; }
body.hide-img img { visibility: hidden; } body.spacing, body.spacing * { letter-spacing: .12em !important; word-spacing: .2em !important; } body.lineh, body.lineh main * { line-height: 2 !important; }

@media (max-width: 768px) {
    /* App-style header: one slim bar (search, language, accessibility) that scrolls away, then a sticky
       app bar with the emblem and name. Social links and the site map move into the menu drawer. */
    .site-header { position: sticky; top: -3.2rem; z-index: 45; }
    .utility { font-size: .8rem; }
    .utility .wrap { flex-wrap: nowrap; height: 3.2rem; gap: .45rem; padding-top: 0; padding-bottom: 0; }
    .utility .u-link { display: none; }
    .utility form { order: -2; margin-right: 0; flex: 1 1 0; min-width: 0; } .utility input[type=search] { flex: 1; width: auto; min-width: 0; }
    .utility form button { padding: .3rem .65rem; }
    .utility .lang-toggle { order: -1; flex: none; } .lang-toggle button { padding: .28rem .55rem; font-size: .82rem; }
    details.tools summary { width: 2.2rem; height: 2.2rem; padding: 0; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.14); }
    details.tools .t-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    details.tools .a11y-ico { width: 20px; height: 20px; }
    .masthead { box-shadow: 0 3px 12px rgba(7,42,82,.14); }
    .masthead .wrap { flex-direction: row; text-align: left; flex-wrap: nowrap; gap: .55rem; padding-top: .4rem; padding-bottom: .4rem; }
    .brand { flex-direction: row; gap: .55rem; min-width: 0; flex: 1; } .brand > div { min-width: 0; } .brand img { height: 2.6rem; }
    .brand .site-name + small { display: none; }
    .site-name, .brand .local-name, .gov-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .site-name { font-size: 1.05rem; } .brand .local-name { font-size: .7rem; line-height: 1.2; }
    .masthead .right-logo { height: 2rem; max-width: 22vw; object-fit: contain; flex: none; }
    .gov-label { margin-top: .05rem; font-size: .64rem; line-height: 1.3; } .gov-label span + span { margin-left: .5rem; }
    main, [id^=blk-] { scroll-margin-top: 5.5rem; }
    .ticker { font-size: .85rem; }
    .menu-toggle { display: block; }
    nav.main .wrap { padding: 0; } nav.main ul.menu { display: none; flex-direction: column; } nav.main ul.menu.open { display: flex; }
    nav.main a { padding: .85rem 1.1rem; border-top: 1px solid rgba(255,255,255,.12); }
    nav.main ul ul, nav.main ul ul ul { position: static; display: none; box-shadow: none; background: rgba(0,0,0,.22); min-width: 0; border: 0; border-radius: 0; }
    nav.main li:hover > ul { display: none; } nav.main li.open > ul { display: flex; }
    nav.main ul ul a { color: #fff; padding-left: 2rem; } nav.main ul ul ul a { padding-left: 3rem; } nav.main ul ul a:hover { background: rgba(255,255,255,.12); color: #fff; }
    .has-sub > a::after { float: right; }
    .ticker .wrap { gap: .5rem; padding-top: .35rem; padding-bottom: .35rem; } .ticker b { font-size: .72rem; padding: .05rem .55rem; }
    .glance { grid-template-columns: 1fr; } .utility .wrap { position: relative; } details.tools { position: static; } details.tools .panel-tools { left: 1rem; right: 1rem; width: auto; max-height: 75vh; overflow-y: auto; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; } .tabs button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .utility, nav.main, .ticker, .to-top, .tricolour { display: none; } body { background: #fff; } .card { box-shadow: none; } }

/* ---- Home: hero (slideshow + officials) ---- */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.1rem; margin-bottom: 1.1rem; }
.hero-single { grid-template-columns: 1fr; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b1f38; aspect-ratio: 12 / 5; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.2rem .9rem 1.2rem; color: #fff; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.slider-ui button { position: absolute; border: 0; cursor: pointer; background: rgba(0,0,0,.45); color: #fff; font: inherit; line-height: 1; }
.slider-ui button:hover { background: rgba(0,0,0,.7); }
.s-prev, .s-next { top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.s-prev { left: .6rem; } .s-next { right: .6rem; }
.s-play { top: .6rem; right: .6rem; padding: .4rem .6rem; border-radius: 8px; font-size: .7rem !important; letter-spacing: -.1em; }
.dots { position: absolute; right: 1rem; bottom: .8rem; display: flex; gap: .4rem; }
.dots button { position: static !important; width: .8rem; height: .8rem; border-radius: 50%; padding: 0; background: rgba(255,255,255,.5) !important; }
.dots button[aria-current=true] { background: var(--accent) !important; transform: scale(1.25); }
.officials { display: grid; gap: 1.1rem; grid-auto-rows: 1fr; }
.official { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; gap: .9rem; align-items: center; }
.official img { width: 6rem; height: 7.25rem; object-fit: cover; border-radius: 10px; flex: none; border: 2px solid var(--primary-soft); }
.official h2 { margin: 0; font-size: 1.05rem; color: var(--primary); line-height: 1.3; }
.official .designation { margin: .15rem 0 .4rem; color: var(--muted); font-size: .9rem; line-height: 1.35; } .official .social-links { margin: 0; }


/* ---- Home: gallery and events ---- */
.block { margin-bottom: 1.25rem; } .block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; } .block-head h2 { margin-bottom: 0; } .block-head a { font-weight: 600; font-size: .9rem; }
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); } .gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: transform .2s, box-shadow .2s; display: block; } .gallery a:hover img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(11,58,111,.25); }
.gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.events { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); } .events li { display: flex; align-items: center; gap: .8rem; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.card .events li a::before { content: none; }
.events .date { flex: none; width: 3.4rem; text-align: center; background: var(--primary); color: #fff; border-radius: 8px; padding: .3rem 0; font-size: .75rem; text-transform: uppercase; line-height: 1.2; } .events .date b { display: block; font-size: 1.3rem; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .officials { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); } }
@media (max-width: 640px) {
    /* Phones: a short 16:9 banner; officials stack one below another as compact cards (no sideways scrolling) */
    .slider { aspect-ratio: 2 / 1; border-radius: 16px; } .sbody { height: 13rem; }
    .slide figcaption { padding: 1.6rem .9rem .6rem; font-size: .92rem; }
    .s-prev, .s-next { width: 2.1rem; height: 2.1rem; }
    .hero { gap: .8rem; }
    .officials, .official-row { display: grid; grid-template-columns: 1fr; gap: .6rem; }
    .official { padding: .65rem .8rem; gap: .8rem; }
    .official img { width: 4.2rem; height: 5rem; } .official h2 { font-size: .98rem; } .official .designation { font-size: .85rem; margin-bottom: .25rem; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .gallery figcaption { font-size: .78rem; }
}
@media print { .m-toggle, .slider-ui { display: none; } }

/* ---- Home: animated update cards (vertical auto-scroll) ---- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-bottom: 1.25rem; }
.scard { --c1: var(--primary); --c2: #1e6bb8; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.scard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,58,111,.18); }
.sc-alert { --c1: #b3261e; --c2: #f2711c; } .sc-whats_new { --c1: var(--primary); --c2: #1e6bb8; } .sc-recruitment { --c1: #0f7a0a; --c2: #3fae2a; }
.scard header { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; color: #fff; background: linear-gradient(110deg, var(--c1), var(--c2)); background-size: 200% 100%; }
.scard header h2 { margin: 0; flex: 1; font-size: 1.05rem; color: #fff; padding: 0; } .scard header h2::after { content: none; }
.scard .count { background: rgba(255,255,255,.22); border-radius: 999px; padding: .05rem .6rem; font-size: .8rem; font-weight: 700; }
.scard .m-toggle { border: 0; background: rgba(255,255,255,.22); color: #fff; border-radius: 6px; padding: .25rem .5rem; cursor: pointer; font-size: .65rem; letter-spacing: -.1em; } .scard .m-toggle:hover { background: rgba(255,255,255,.4); }
.scard, .card { scroll-margin-top: 1rem; }
.sbody { position: relative; height: 15rem; overflow: hidden; padding: 0 1rem; }
.vtrack { list-style: none; margin: 0; padding: 0; }
.vtrack li { padding: .7rem 0 .7rem 1.1rem; border-bottom: 1px dashed var(--line); position: relative; line-height: 1.4; }
.vtrack li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c1); }
.vtrack li[data-clone] { display: none; } .vtrack small { display: block; color: var(--muted); font-size: .78rem; }
.new { display: inline-block; background: var(--accent); color: #111; font-size: .62rem; font-weight: 800; padding: 0 .4rem; border-radius: 4px; margin-left: .35rem; vertical-align: middle; }
.scard.scrolling .sbody { -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.scard.scrolling .vtrack { animation: v-scroll 20s linear infinite; } .scard.scrolling .vtrack li[data-clone] { display: block; }
.scard:hover .vtrack, .scard:focus-within .vtrack, .scard.paused .vtrack { animation-play-state: paused; }
.scard:not(.scrolling) .sbody { overflow-y: auto; }
@keyframes v-scroll { to { transform: translateY(-50%); } }

/* ---- Slider progress bar, officials row ---- */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); } .progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.progress.run i { animation: fill var(--iv, 5s) linear forwards; } @keyframes fill { to { width: 100%; } }
.official-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-bottom: 1.25rem; }
.official { transition: transform .25s, box-shadow .25s; } .official:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,58,111,.18); }
.official img { transition: transform .3s; } .official:hover img { transform: scale(1.05) rotate(-1deg); }

/* ---- Animations (on unless the site owner or the visitor's system turns them off) ---- */
body.anim-on .reveal { opacity: 0; transform: translateY(22px); }
body.anim-on .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
body.anim-on .scard.reveal.in:hover { transform: translateY(-4px); transition-delay: 0ms; }
body.anim-on .card h2::after { width: 0; transition: width .8s ease .3s; } body.anim-on .in .card h2::after, body.anim-on .card.in h2::after, body.anim-on .in > h2::after { width: 2.75rem; }
body.anim-on .slide.active img { animation: kenburns 9s ease-out forwards; } @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
body.anim-on .slide.active figcaption { animation: caption .8s ease .2s both; } @keyframes caption { from { opacity: 0; transform: translateY(14px); } }
body.anim-on .scard header { animation: sheen 6s ease-in-out infinite alternate; } @keyframes sheen { to { background-position: 100% 0; } }
body.anim-on .new { animation: blink 1.2s ease-in-out infinite; } @keyframes blink { 50% { opacity: .35; } }
body.anim-on .tricolour { animation: sheen 8s linear infinite alternate; background-size: 200% 100%; }
@media (prefers-reduced-motion: reduce) { body.anim-on .reveal { opacity: 1; transform: none; } .scard.scrolling .vtrack, .slide.active img, .scard header, .new { animation: none !important; } }
body.contrast .scard header { background: #000; border-bottom: 2px solid #ff0; } body.contrast .vtrack li::before { background: #ff0; }
@media print { .scard .m-toggle, .progress { display: none; } .sbody { height: auto; } }

/* ---- Daily Alerts: attention-grabbing card + animated content ---- */
.sc-alert { border: 2px solid #e0453a; background: linear-gradient(#fff, #fff4f2); }
.sc-alert header { background: linear-gradient(110deg, #9e1b14, #e0453a 55%, #f2711c); background-size: 200% 100%; }
.siren { position: relative; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.siren i { width: .95rem; height: .95rem; border-radius: 50% 50% 20% 20%; background: #e0453a; display: block; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(224,69,58,.45); }
.live { background: #fff; color: #b3261e; font-size: .62rem; font-weight: 800; letter-spacing: .08em; padding: .08rem .45rem; border-radius: 4px; }
.hazard { height: 5px; background: repeating-linear-gradient(-45deg, #ffc61a 0 10px, #222 10px 20px); background-size: 28.3px 100%; }
.sc-alert .vtrack li { padding-left: 1.5rem; border-bottom: 1px solid #f3c9c4; transition: background .2s, padding-left .2s; }
.sc-alert .vtrack li::before { width: .65rem; height: .65rem; top: 1.1rem; background: #e0453a; box-shadow: 0 0 0 0 rgba(224,69,58,.6); }
.sc-alert .vtrack li:hover { background: #ffe9e6; padding-left: 1.8rem; }
.sc-alert .count { background: #fff; color: #b3261e; }

body.anim-on .sc-alert.in { animation: alert-glow 2.4s ease-in-out infinite; }
body.anim-on .siren { animation: siren-ring 1.6s ease-out infinite; }
body.anim-on .siren i { animation: siren-spin 2.4s ease-in-out infinite; }
body.anim-on .live { animation: blink 1s steps(2, jump-none) infinite; }
body.anim-on .hazard { animation: hazard-run 1s linear infinite; }
body.anim-on .sc-alert .vtrack li::before { animation: dot-ping 1.8s ease-out infinite; animation-delay: calc(var(--i, 0) * 220ms); }
body.anim-on .sc-alert .count { animation: pop 1.6s ease-in-out infinite; }

/* All three cards: items glide in one after another once the card is visible */
body.anim-on .scard .vtrack li { opacity: 0; transform: translateX(26px); }
body.anim-on .scard.in .vtrack li { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
body.anim-on .scard.in .vtrack li:hover { transition-delay: 0ms; }
body.anim-on .scard .vtrack li a { background-image: linear-gradient(var(--c1), var(--c1)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; text-decoration: none; }
body.anim-on .scard .vtrack li a:hover { background-size: 100% 2px; }

@keyframes alert-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,69,58,.0), 0 6px 18px rgba(224,69,58,.18); } 50% { box-shadow: 0 0 0 6px rgba(224,69,58,.18), 0 10px 28px rgba(224,69,58,.35); } }
@keyframes siren-ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 .9rem rgba(255,255,255,0); } }
@keyframes siren-spin { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(14deg) scale(1.12); } }
@keyframes hazard-run { to { background-position: 28.3px 0; } }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 rgba(224,69,58,.65); } 70%, 100% { box-shadow: 0 0 0 .55rem rgba(224,69,58,0); } }
@keyframes pop { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
    body.anim-on .sc-alert.in, body.anim-on .siren, body.anim-on .siren i, body.anim-on .live, body.anim-on .hazard, body.anim-on .sc-alert .vtrack li::before, body.anim-on .sc-alert .count { animation: none; }
    body.anim-on .scard .vtrack li { opacity: 1; transform: none; }
}
body.contrast .sc-alert { background: #111; border-color: #ff0; } body.contrast .sc-alert .vtrack li { border-color: #555; } body.contrast .sc-alert .vtrack li:hover { background: #222; }


/* ---- Scroll progress ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; } .scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #ff9933, #fff, #138808); }

/* ---- Whole-site animation ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both vt-out; } ::view-transition-new(root) { animation: .4s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } } @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

body.anim-on .dock-arrow:not(.up) svg { animation: nudge 1.6s ease-in-out infinite; } @keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
body.anim-on .utility { animation: drop-in .6s ease both; } body.anim-on .masthead { animation: drop-in .7s ease .05s both; } @keyframes drop-in { from { opacity: 0; transform: translateY(-14px); } }
body.anim-on nav.main li { animation: nav-in .5s ease both; } body.anim-on nav.main ul ul li { animation: none; }
body.anim-on nav.main .menu > li:nth-child(1) { animation-delay: .10s; } body.anim-on nav.main .menu > li:nth-child(2) { animation-delay: .16s; } body.anim-on nav.main .menu > li:nth-child(3) { animation-delay: .22s; } body.anim-on nav.main .menu > li:nth-child(4) { animation-delay: .28s; } body.anim-on nav.main .menu > li:nth-child(5) { animation-delay: .34s; } body.anim-on nav.main .menu > li:nth-child(6) { animation-delay: .40s; } body.anim-on nav.main .menu > li:nth-child(7) { animation-delay: .46s; } body.anim-on nav.main .menu > li:nth-child(n+8) { animation-delay: .52s; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-10px); } }
body.anim-on nav.main a { position: relative; } body.anim-on nav.main .menu > li > a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s; } body.anim-on nav.main .menu > li:hover > a::after, body.anim-on nav.main .menu > li:focus-within > a::after { transform: scaleX(1); }
body.anim-on nav.main li:hover > ul, body.anim-on nav.main li:focus-within > ul { animation: drop-down .25s ease both; } @keyframes drop-down { from { opacity: 0; transform: translateY(-8px); } }
body.anim-on .ticker b { animation: pop 2.4s ease-in-out infinite; }
body.anim-on .brand img { animation: float 5s ease-in-out infinite; } @keyframes float { 50% { transform: translateY(-4px); } }
body.anim-on a, body.anim-on button { transition-property: color, background-color, transform, box-shadow, opacity; transition-duration: .2s; }
body.anim-on .card { transition: transform .25s, box-shadow .25s; } body.anim-on .card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,58,111,.16); }
body.anim-on .page-card:hover { transform: none; box-shadow: var(--shadow); }
body.anim-on .tabs button:active, body.anim-on .utility button:active, body.anim-on .to-top:active { transform: scale(.94); }
body.anim-on footer { background-image: linear-gradient(120deg, var(--primary-dark), #0b3a6f, var(--primary-dark)); background-size: 200% 100%; animation: sheen 12s ease-in-out infinite alternate; }
body.anim-on .logos a { transition: transform .25s, box-shadow .25s; } body.anim-on .logos a:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow); }
body.anim-on .badge { animation: pop 3s ease-in-out infinite; }
body.anim-on img { animation: img-in .6s ease both; } @keyframes img-in { from { opacity: 0; } }
body.anim-on .slide.active img, body.anim-on .brand img { animation-fill-mode: both; }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    body.anim-on * { animation: none !important; transition: none !important; }
    body.anim-on .reveal, body.anim-on .scard .vtrack li { opacity: 1 !important; transform: none !important; }
    body.anim-on .scard.scrolling .vtrack { animation: v-scroll 20s linear infinite !important; }
}
@media print { .dock, .scroll-progress { display: none; } }

/* ---- Phones: bottom tab bar + side drawer with the full menu (the top menu bar is hidden) ---- */
.dock, .drawer, .drawer-backdrop { display: none; }
@media (max-width: 768px) {
    body:has(.dock) nav.main { display: none; }
    .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border-radius: 22px 22px 0 0; padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom)); background: linear-gradient(135deg, rgba(7,42,82,.97), rgba(11,58,111,.97)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 26px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.18), 0 -3px 0 var(--accent); }
    .dock ul { list-style: none; margin: 0; padding: 0; display: flex; }
    .dock li { flex: 1 1 0; min-width: 0; }
    .dock .dock-btn { appearance: none; -webkit-appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; width: 100%; margin: 0; padding: .4rem .1rem; border: 0; border-radius: 14px; background: transparent; color: #fff; font-family: inherit; font-size: .68rem; font-weight: 600; line-height: 1.15; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s, color .2s; }
    .dock .dock-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dock .dock-btn:hover { background: rgba(255,255,255,.12); text-decoration: none; }
    .dock .dock-btn[aria-current=page] { background: rgba(255,255,255,.16); color: var(--accent); }
    .dock .ico { flex: none; width: 1.45rem; height: 1.45rem; }
    .dock .dock-menu { background: linear-gradient(145deg, #ffb13b, var(--accent)); color: #111; box-shadow: 0 4px 12px rgba(242,140,15,.45); } .dock .dock-menu:hover { background: linear-gradient(145deg, #ffc060, #f5981f); }
    body:has(.dock) { padding-bottom: 4.8rem; }

    /* side drawer */
    .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(5,20,40,.55); opacity: 0; transition: opacity .3s; } .drawer-backdrop[hidden] { display: none; } .drawer-backdrop.open { opacity: 1; }
    .drawer { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 71; width: min(86vw, 22rem); background: #fff; color: var(--text); transform: translateX(-102%); transition: transform .32s cubic-bezier(.2,.8,.2,1); box-shadow: 8px 0 40px rgba(0,0,0,.35); } .drawer[hidden] { display: none; } .drawer.open { transform: none; }
    .drawer-head { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-bottom: 4px solid var(--accent); }
    .drawer-head strong { flex: 1; font-size: 1.02rem; line-height: 1.25; }
    .drawer-close { appearance: none; border: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; } .drawer-close:hover { background: rgba(255,255,255,.3); }
    .drawer-menu { list-style: none; margin: 0; padding: .4rem 0 1.5rem; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
    .drawer-menu ul { list-style: none; margin: 0; padding: 0; }
    .drawer .d-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
    .drawer .d-row a { flex: 1; padding: .8rem 1rem; color: var(--text); font-weight: 600; text-decoration: none; } .drawer .d-row a:hover { background: var(--primary-soft); color: var(--primary); }
    .drawer .d-toggle { appearance: none; border: 0; border-left: 1px solid var(--line); width: 3rem; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--primary); }
    .drawer .d-toggle i { width: .55rem; height: .55rem; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; } .drawer .d-toggle[aria-expanded=true] i { transform: rotate(-135deg) translate(-1px, -1px); }
    .drawer .d-sub { background: var(--primary-soft); } .drawer .d-sub[hidden] { display: none; }
    .drawer .d-sub .d-row a { font-weight: 500; padding-left: 1.6rem; font-size: .95rem; } .drawer .d-sub .d-sub .d-row a { padding-left: 2.4rem; font-size: .9rem; }
    .drawer .d-sub .d-row { border-bottom-color: #fff; }
    body.drawer-open { overflow: hidden; }
    .drawer-foot { border-top: 1px solid var(--line); padding: .5rem .5rem calc(.8rem + env(safe-area-inset-bottom)); background: var(--bg); }
    .drawer-foot > a { display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem; color: var(--text); font-weight: 600; text-decoration: none; border-radius: 8px; } .drawer-foot > a:hover { background: var(--primary-soft); }
    .drawer-foot .ico { width: 18px; height: 18px; color: var(--accent); }
    .drawer-social { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem .5rem 0; } .drawer-social a { padding: .25rem .7rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .85rem; font-weight: 600; }
    body.contrast .drawer-foot { background: #000; } body.contrast .drawer-foot > a { color: #ff0; }
    body.anim-on .dock { animation: dock-in-m .7s cubic-bezier(.2,.9,.3,1.1) .5s both; }
    body.anim-on .dock .dock-btn:active { transform: scale(.92); }
    body.anim-on .drawer.open .drawer-menu > li { animation: d-item .45s ease both; } body.anim-on .drawer.open .drawer-menu > li:nth-child(1) { animation-delay: .12s; } body.anim-on .drawer.open .drawer-menu > li:nth-child(2) { animation-delay: .17s; } body.anim-on .drawer.open .drawer-menu > li:nth-child(3) { animation-delay: .22s; } body.anim-on .drawer.open .drawer-menu > li:nth-child(4) { animation-delay: .27s; } body.anim-on .drawer.open .drawer-menu > li:nth-child(5) { animation-delay: .32s; } body.anim-on .drawer.open .drawer-menu > li:nth-child(n+6) { animation-delay: .37s; }
    body.contrast .dock { background: #000; box-shadow: 0 0 0 2px #ff0; } body.contrast .dock .dock-btn { color: #ff0; } body.contrast .dock .dock-menu { background: #ff0; color: #000; }
    body.contrast .drawer { background: #111; color: #fff; } body.contrast .drawer .d-row a, body.contrast .drawer .d-toggle { color: #ff0; } body.contrast .drawer .d-sub { background: #000; }
}
@keyframes dock-in-m { from { opacity: 0; transform: translateY(100%); } } @keyframes d-item { from { opacity: 0; transform: translateX(-18px); } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }

/* ---- One up/down arrow (separate from the menu bar) ---- */
.scroll-fab { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 39; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: linear-gradient(145deg, #ffb13b, var(--accent)); color: #111; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(242,140,15,.5), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .25s; }
.scroll-fab svg { transition: transform .45s cubic-bezier(.3,1.4,.5,1); } .scroll-fab.up svg { transform: rotate(180deg); }
.scroll-fab:hover { transform: scale(1.1); } .scroll-fab:active { transform: scale(.92); } .scroll-fab[hidden] { display: none; }
body.anim-on .scroll-fab:not(.up) svg { animation: nudge 1.6s ease-in-out infinite; }
body.contrast .scroll-fab { background: #ff0; }
@media (max-width: 768px) { .scroll-fab { bottom: calc(4.9rem + env(safe-area-inset-bottom)); right: .8rem; width: 2.7rem; height: 2.7rem; } }
@media print { .dock, .scroll-fab { display: none; } }

/* ---- Partner logos: one row, scrolling continuously ---- */
.logo-marquee { position: relative; display: flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; padding: .7rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.logo-viewport { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.logo-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; width: max-content; }
.logo-track li { flex: none; } .logo-track a { display: flex; align-items: center; justify-content: center; min-height: 4rem; padding: .5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.logo-track a:hover, .logo-track a:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 18px rgba(11,58,111,.2); border-color: var(--accent); text-decoration: none; }
.logo-track img { height: 2.5rem; width: auto; display: block; }
.logo-marquee.running .logo-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.logo-marquee.running .logo-track { animation: logo-scroll var(--dur, 30s) linear infinite; }
.logo-marquee.running:hover .logo-track, .logo-marquee.running:focus-within .logo-track, .logo-marquee.paused .logo-track { animation-play-state: paused; }
.logo-toggle { flex: none; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; background: var(--primary-soft); color: var(--primary); cursor: pointer; font-size: .6rem; letter-spacing: -.1em; }
@keyframes logo-scroll { to { transform: translateX(calc(-1 * var(--shift, 50%))); } }
body.contrast .logo-marquee { background: #111; } body.contrast .logo-track a { background: #fff; }
@media (prefers-reduced-motion: reduce) { .logo-marquee.running .logo-track { animation: none; } .logo-toggle { display: none; } }
@media print { .logo-toggle { display: none; } .logo-viewport { overflow: visible; } .logo-track { flex-wrap: wrap; width: auto; } }

/* ---- Language switcher and translation notice ---- */
/* Language toggle: equal segments; a white pill slides under the language in use. */
.lang-toggle { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.lang-toggle::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 3)); border-radius: 999px; background: linear-gradient(180deg, #fff, #eef3fb); box-shadow: 0 2px 8px rgba(0,0,0,.25); transform: translateX(calc(100% * var(--i, 0))); transition: transform .3s cubic-bezier(.3,.8,.3,1); }
.utility .lang-toggle button, .lang-toggle button { position: relative; z-index: 1; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 600; font-size: .88rem; padding: .3rem .85rem; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .25s; }
.lang-toggle button[aria-pressed="true"] { color: var(--primary-dark); }
.lang-toggle button:hover:not([aria-pressed="true"]) { color: #ffe9a8; }
.lang-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .lang-toggle::before { transition: none; } }
body.contrast .lang-toggle::before { background: #ff0; } body.contrast .lang-toggle button[aria-pressed="true"] { color: #000; }
.tr-notice { background: #fff3cd; color: #4a3200; text-align: center; font-size: .9rem; padding: .4rem 1rem; border-bottom: 1px solid #f1d98a; }
.tr-notice button { margin-left: .5rem; border: 1px solid #c9a227; background: #fff; color: #4a3200; border-radius: 999px; padding: .1rem .8rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; } .tr-notice button:hover { background: #ffe9a8; }
/* Keep Google's own toolbar and tooltips out of the design */
.goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .goog-te-gadget-icon, iframe.skiptranslate { display: none !important; }
body { top: 0 !important; } .goog-text-highlight { background: none !important; box-shadow: none !important; }
.gt-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Partner logo cards ---- */
.logo-marquee { background: linear-gradient(135deg, #fff, var(--primary-soft)); padding: 1rem .9rem; }
.logo-track { gap: 1.1rem; }
.logo-track a { position: relative; flex-direction: column; gap: .55rem; min-width: 11.5rem; min-height: 7.2rem; padding: 1.1rem 1.2rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 6px rgba(11,58,111,.08); overflow: hidden; text-align: center; }
.logo-track a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #ff9933, var(--primary), #138808); transform: scaleX(.35); transform-origin: 0 50%; transition: transform .35s; }
.logo-track a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(242,140,15,.14) 50%, transparent 65%); transform: translateX(-100%); transition: transform .6s; pointer-events: none; }
.logo-track a:hover, .logo-track a:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(11,58,111,.22); border-color: var(--accent); }
.logo-track a:hover::before, .logo-track a:focus-visible::before { transform: scaleX(1); } .logo-track a:hover::after, .logo-track a:focus-visible::after { transform: translateX(100%); }
.logo-track img { height: 2.8rem; max-width: 9rem; object-fit: contain; transition: transform .3s; } .logo-track a:hover img { transform: scale(1.08); }
.logo-track .lname { font-size: .8rem; font-weight: 600; color: var(--primary); line-height: 1.25; }
body.contrast .logo-track .lname { color: #000; }

/* ---- Accessibility and standards (WCAG 2.2 AA / GIGW) ---- */
html { scroll-padding-top: 5rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-links { position: relative; z-index: 100; } .skip:focus { left: .5rem; top: .5rem; } .skip + .skip:focus { left: 16rem; }
.brand .local-name { color: #9a4a00; } body.contrast .brand .local-name { color: #ff0; }
.site-name { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.2; color: var(--primary); letter-spacing: -.01em; font-weight: 700; } .site-name a { color: inherit; text-decoration: none; } body.contrast .site-name { color: #ff0; }
.tool-title { margin: .5rem 0 .25rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.panel-tools button[aria-pressed=true] { background: var(--primary); color: #fff; }
.breadcrumb { margin: 0 0 .8rem; } .breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "\203A"; margin-right: .35rem; } .breadcrumb [aria-current=page] { color: var(--text); font-weight: 600; }
.page-title { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.3; color: var(--primary); position: relative; padding-bottom: .6rem; } .page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3rem; height: 3px; background: var(--accent); border-radius: 3px; }
body.contrast .page-title { color: #ff0; }
.sitemap-list, .sitemap-list ul { list-style: none; margin: 0; padding-left: 1.2rem; } .sitemap-list { padding-left: 0; margin-bottom: 1rem; } .sitemap-list li { padding: .25rem 0; } .sitemap-list > li > a, .sitemap-list > li > span { font-weight: 700; }
.transcript { margin-left: .5rem; font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 .55rem; }
a[data-ext]:not(.logo-track a):not(.dock-btn)::after { content: " \2197"; font-size: .8em; }
a[data-file]::after { content: " [" attr(data-file) "]"; font-size: .78em; color: var(--muted); }

/* slideshow dots: 24px touch target around a smaller dot */
.slide figure { position: absolute; inset: 0; margin: 0; }
.slider .dots button { position: relative !important; width: 1.5rem !important; height: 1.5rem !important; background: none !important; display: grid; place-items: center; transform: none !important; border-radius: 50%; }
.slider .dots button::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: rgba(255,255,255,.65); transition: transform .2s, background .2s; }
.slider .dots button[aria-current=true]::before { background: var(--accent); transform: scale(1.3); }
.slider .dots { right: .6rem; bottom: .5rem; }

/* visitor chose "Stop animations" (also respected automatically when the system asks for reduced motion) */
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body.no-motion .reveal, body.no-motion .scard .vtrack li { opacity: 1 !important; transform: none !important; }
body.no-motion .vtrack li[data-clone], body.no-motion .logo-track [data-clone] { display: none !important; }
body.no-motion .scard.scrolling .sbody { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
body.no-motion .logo-marquee.running .logo-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
body.no-motion .slide { transition: none; }
@keyframes blink { 50% { transform: scale(1.14); } }

/* Card headers: every point of the gradient keeps white text at 4.5:1 or better (checked by calculation) */
.sc-alert header { background: linear-gradient(110deg, #8f1710, #b3261e 55%, #c4421a); background-size: 200% 100%; }
.sc-recruitment { --c1: #0a6406; --c2: #17800f; }
.sc-whats_new { --c2: #1b62a8; }
.scard .count { background: #fff; color: var(--c1); font-weight: 800; }
.scard .m-toggle { background: rgba(0,0,0,.3); } .scard .m-toggle:hover { background: rgba(0,0,0,.5); }
.sc-alert .count { color: #b3261e; }

/* ===== Citizen services: "What do you need?", services/schemes, documents, contact, complaints, help ===== */
.utility .u-contact { display: inline-flex; align-items: center; gap: .3rem; } .utility .u-contact .ico { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 0; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.6rem; padding: .5rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .15s; }
.btn-primary { background: var(--accent); color: #111; border: 0; } .btn-primary:hover { background: #ffa531; transform: translateY(-1px); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--line); } .btn-ghost:hover { background: var(--primary); color: #fff; }
.card .btn-row a::before, .svc-list a::before, .info-grid a::before, .contact-list a::before, .help-pop a::before, .search-hits a::before { content: none !important; }

/* What do you need? */
.need { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin: 0 0 1.25rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 100% 0, rgba(242,140,15,.35), transparent 45%), linear-gradient(120deg, var(--primary-dark), var(--primary)); box-shadow: var(--shadow); }
.need h2 { margin: 0 0 .75rem; font-size: 1.35rem; color: #fff; }
.need-search { display: flex; align-items: center; gap: .4rem; background: #fff; border-radius: 999px; padding: .3rem .3rem .3rem .9rem; color: var(--muted); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.need-search input { flex: 1; min-width: 0; border: 0; outline-offset: 4px; font: inherit; font-size: 1rem; padding: .45rem .2rem; background: transparent; color: var(--text); }
.need-search button { border: 0; border-radius: 999px; background: var(--accent); color: #111; font: inherit; font-weight: 700; padding: .55rem 1.2rem; cursor: pointer; }
.need-search.in-page { border: 1px solid var(--line); box-shadow: none; margin: 0 0 1rem; max-width: 40rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .85rem 0 0; font-size: .88rem; } .chips span { opacity: .85; margin-right: .2rem; }
.chips a { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .2rem .75rem; text-decoration: none; } .chips a:hover { background: #fff; color: var(--primary); }
.need-text { max-width: 46rem; }
/* Quick tiles: a row of app-style icons (4 per row on phones) */
.need-actions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .6rem; }
.need-actions .act { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; padding: .85rem .5rem; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 600; font-size: .86rem; line-height: 1.25; text-decoration: none; transition: background .15s, transform .15s; }
.need-actions .act-ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,.18); } .need-actions .act-ico .ico { width: 21px; height: 21px; }
.need-actions .act:hover { background: #fff; color: var(--primary); transform: translateY(-2px); text-decoration: none; } .need-actions .act:hover .act-ico { background: var(--accent); color: #111; }

/* Services / schemes / documents / online services */
.svc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.1rem; margin: 0 0 1.25rem; } .svc-row .block { margin: 0; }
.svc-list li { padding: 0 !important; } .svc-list a { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .4rem; border-radius: 10px; color: var(--text); text-decoration: none; } .svc-list a:hover { background: var(--primary-soft); }
.svc-list b { display: block; color: var(--primary); font-weight: 600; } .svc-list small { display: block; font-size: .82rem; line-height: 1.4; }
.info-ico { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--primary-soft); color: var(--primary); } .info-ico .ico { width: 20px; height: 20px; }
.info-grid { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.info-grid.compact { grid-template-columns: 1fr; gap: 0; margin: 0; }
.info-item { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.info-grid.compact .info-item { border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; box-shadow: none; padding: .6rem 0; } .info-grid.compact .info-item:last-child { border-bottom: 0; }
.info-item a b { color: var(--primary); } .info-item p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.file-tag { display: inline-flex; align-items: center; gap: .25rem; margin-top: .3rem; font-size: .75rem; font-weight: 700; color: #b3261e !important; } .file-tag .ico { width: 14px; height: 14px; }

/* Contact card */
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0 !important; } .contact-list .ico { flex: none; color: var(--accent); margin-top: .15rem; }
.contact-list div { display: flex; flex-direction: column; } .contact-list b { font-size: .82rem; color: var(--muted); font-weight: 600; } .contact-list a { font-weight: 600; }
.cta-box { margin-top: .9rem; padding: .9rem 1rem; border-radius: 12px; background: #fff7e8; border: 1px solid #f3dcae; }
.home-contact { margin: 0 0 1.25rem; } .home-contact .contact-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 1.5rem; align-items: start; } .home-contact .contact-card h2 { grid-column: 1 / -1; }
.home-contact .contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; } .home-contact .cta-box { margin-top: .3rem; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; align-items: start; } .form-layout .page-card { margin: 0; }
.contact-page { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.cform .frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; }
.cform .field { margin: 0 0 .9rem; } .cform label, .cform legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.cform input[type=text], .cform input[type=tel], .cform input[type=email], .cform select, .cform textarea { width: 100%; padding: .65rem .8rem; border: 1px solid #b9c4d3; border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--primary); outline: 3px solid rgba(242,140,15,.45); outline-offset: 1px; }
.cform .choice { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; } .cform .choice legend { width: 100%; }
.cform .choice label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--primary-soft); cursor: pointer; }
.cform .choice label:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.cform .bad input, .cform .bad select, .cform .bad textarea { border-color: #b3261e; background: #fff6f5; } .ferr { color: #b3261e; font-size: .88rem; font-weight: 600; margin: .3rem 0 0; }
.form-alert { background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bd; border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1.1rem; font-weight: 600; }
.fnote { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-card { text-align: center; max-width: 40rem; margin: 1rem auto; } .done-card .page-title::after { left: 50%; transform: translateX(-50%); } .done-card .btn-row { justify-content: center; }
.done-tick { width: 4rem; height: 4rem; margin: .5rem auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--green); box-shadow: 0 0 0 8px rgba(19,136,8,.15); }
.ref-no { display: inline-block; font-size: 1.8rem; font-weight: 800; letter-spacing: .06em; color: var(--primary); background: var(--primary-soft); border: 2px dashed var(--primary); border-radius: 12px; padding: .3rem 1.2rem; margin: .2rem 0 .8rem; }
.track-result { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); } .track-result h2 { font-size: 1.1rem; color: var(--primary); margin: 0 0 1rem; }
.steps { list-style: none; display: flex; margin: 0 0 1.2rem; padding: 0; counter-reset: s; }
.steps li { flex: 1; position: relative; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 2.1rem; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-weight: 700; z-index: 1; }
.steps li + li::after { content: ""; position: absolute; top: .9rem; right: 50%; width: 100%; height: 3px; background: var(--line); }
.steps li.done::before, .steps li.now::before { background: var(--green); color: #fff; } .steps li.done + li::after, .steps li.now::after { background: var(--green); } .steps li.now { color: var(--text); font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
.track-result h3 { font-size: 1rem; margin: 0 0 .4rem; } .reply { background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 6px; padding: .7rem 1rem; }
.search-hits li { padding: .55rem 0; } .search-hits a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; } .search-hits small { margin-left: .4rem; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 0 .5rem; font-size: .72rem; font-weight: 600; } .search-hits span { color: var(--muted); font-size: .88rem; }
.page-card h2 { font-size: 1.05rem; color: var(--primary); margin: 1.2rem 0 .3rem; }

/* Footer columns */
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 2rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.foot-cols h2 { font-size: 1rem; color: #fff; margin: 0 0 .5rem; } .foot-links { list-style: none; margin: 0; padding: 0; } .foot-links li { padding: .15rem 0; }

/* Floating "Need help?" */
.help-fab { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 39; }
.help-fab summary { list-style: none; display: flex; align-items: center; gap: .35rem; padding: .6rem 1rem .6rem .75rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(11,58,111,.4); }
.help-fab summary::-webkit-details-marker { display: none; } .help-fab summary:hover { background: var(--primary-dark); }
.help-pop { position: absolute; left: 0; bottom: calc(100% + .6rem); width: 17rem; background: var(--surface); color: var(--text); border-radius: var(--radius); padding: .9rem; box-shadow: 0 12px 32px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: .2rem; }
.help-pop b { margin-bottom: .3rem; } .help-pop a { display: flex; align-items: center; gap: .55rem; padding: .5rem .55rem; border-radius: 8px; color: var(--text); text-decoration: none; } .help-pop a:hover { background: var(--primary-soft); color: var(--primary); } .help-pop .ico { color: var(--accent); flex: none; }

body.contrast .need, body.contrast .cta-box, body.contrast .info-item, body.contrast .help-pop, body.contrast .reply { background: #111; border-color: #ff0; color: #fff; }
body.contrast .chips a, body.contrast .need-actions .act { color: #ff0; border-color: #ff0; background: #000; } body.contrast .btn-primary, body.contrast .need-search button { background: #ff0; color: #000; }
body.contrast .help-fab summary { background: #ff0; color: #000; } body.contrast .info-ico { background: #000; color: #ff0; }

@media (max-width: 900px) { .need { grid-template-columns: 1fr; } .form-layout { grid-template-columns: 1fr; } .home-contact .contact-card { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .utility .u-contact { display: none; }
    .need { padding: 1.1rem 1rem; } .need h2 { font-size: 1.15rem; } .need-search button { padding: .5rem .9rem; }
    .need-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
    .need-actions .act { padding: .55rem .15rem; font-size: .7rem; font-weight: 600; background: transparent; border-color: transparent; gap: .35rem; }
    .need-actions .act-ico { width: 3rem; height: 3rem; border-radius: 16px; }
    .help-fab { bottom: calc(4.9rem + env(safe-area-inset-bottom)); left: .8rem; } .help-fab summary { padding: .55rem; } .help-fab summary span { display: none; }
    .ref-no { font-size: 1.4rem; } .steps li { font-size: .75rem; }
}
@media print { .help-fab, .need-actions { display: none; } }

/* Desktop/tablet: when the slideshow spans the full width (officials below it), keep it a banner, not a full screen.
   The vh cap keeps it under half the screen even when a visitor has enlarged the text. */
@media (min-width: 641px) {
    .hero .slider { width: 100%; max-height: min(26rem, 52vh); }
    /* An explicit height (not aspect-ratio + max-height) so it fills the full width in every browser, Firefox included */
    .hero-single .slider { aspect-ratio: auto; height: clamp(14rem, 28vw, min(23rem, 44vh)); max-height: none; }
}

/* ---- Slideshow: animated, with previews ---- */
.slide { transform: scale(1.06); filter: saturate(.7) blur(2px); transition: opacity .9s ease, visibility .9s, transform 1.4s cubic-bezier(.2,.7,.2,1), filter .9s ease; }
.slide.active { transform: none; filter: none; }
body.anim-on .slide.active img { animation: kenburns-a 10s ease-out both; }
body.anim-on .slide:nth-child(even).active img { animation-name: kenburns-b; }
@keyframes kenburns-a { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes kenburns-b { from { transform: scale(1.12) translate(2%, -1%); } to { transform: scale(1.02) translate(0, 0); } }
.slide figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 3rem 1.4rem 1.1rem; padding-right: 45%; background: linear-gradient(transparent, rgba(4,20,40,.55) 40%, rgba(4,20,40,.85)); }
.s-count { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); } .s-count small { color: rgba(255,255,255,.7); font-size: 1em; }
.s-title { position: relative; padding-left: .8rem; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.s-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 4px; background: var(--accent); }
body.anim-on .slide.active figcaption { animation: none; }
body.anim-on .slide.active .s-count { animation: cap-in .6s ease .25s both; }
body.anim-on .slide.active .s-title { animation: cap-in .7s cubic-bezier(.2,.8,.2,1) .4s both; }
body.anim-on .slide.active .s-title::before { animation: bar-in .6s ease .4s both; transform-origin: 50% 100%; }
@keyframes cap-in { from { opacity: 0; transform: translateX(-24px); } } @keyframes bar-in { from { transform: scaleY(0); } }
.s-prev, .s-next { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.35) !important; transition: background .2s, transform .2s; }
.s-prev:hover, .s-next:hover { background: var(--accent) !important; color: #111 !important; transform: translateY(-50%) scale(1.08); }
.slider .dots img, .slider .dots i { display: none; }
.s-peek { display: none; }

@media (min-width: 769px) {
    /* Thumbnail strip instead of dots: each shows its slide; the active one fills with the timer */
    .slider .dots { right: 1rem; bottom: 1rem; gap: .5rem; }
    .slider .dots button { width: 5.2rem !important; height: 2.9rem !important; border-radius: 8px; overflow: hidden; padding: 0; border: 2px solid rgba(255,255,255,.55) !important; background: #0b1f38 !important; opacity: .7; transition: opacity .2s, transform .2s, border-color .2s; }
    .slider .dots button::before { display: none; }
    .slider .dots img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .slider .dots i { display: block; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
    .slider .dots button:hover { opacity: 1; transform: translateY(-3px) !important; }
    .slider .dots button[aria-current=true] { opacity: 1; border-color: var(--accent) !important; transform: translateY(-3px) !important; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
    .slider:has(.progress.run) .dots button[aria-current=true] i { animation: fill var(--iv, 5s) linear forwards; }
    .slider .progress { display: none; }
    .slider .progress.run { display: block; opacity: 0; }   /* keeps its timer for the thumbnail fill */
    .slide figcaption { padding-right: calc(4 * 5.7rem + 2rem); }
    /* Arrow hover preview */
    .s-peek { display: block; position: absolute; top: 50%; left: 4rem; z-index: 3; width: 13rem; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 14px 32px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform: translate(-10px, -50%) scale(.96); transition: opacity .2s, transform .25s; }
    .s-peek.right { left: auto; right: 4rem; transform: translate(10px, -50%) scale(.96); }
    .s-peek.show { opacity: 1; transform: translate(0, -50%) scale(1); }
    .s-peek img { display: block; width: 100%; height: 6rem; object-fit: cover; }
    .s-peek span { display: block; padding: .5rem .7rem; color: var(--text); font-size: .85rem; font-weight: 600; line-height: 1.3; }
}
@media (max-width: 768px) { .slide figcaption { padding-right: 5.5rem; } }
@media (prefers-reduced-motion: reduce) { .slide { transform: none; filter: none; transition: opacity .3s; } }
body.no-motion .slide { transform: none; filter: none; } body.no-motion .slide.active img, body.no-motion .slide.active .s-title, body.no-motion .slide.active .s-count { animation: none !important; }

/* Desktop: slimmer header and a one-row menu (entries that do not fit go under "More", see site.js) */
@media (min-width: 769px) {
    .utility .wrap { padding-top: .25rem; padding-bottom: .25rem; }
    .masthead .wrap { padding-top: .55rem; padding-bottom: .55rem; }
    .brand { gap: .8rem; } .brand img { height: 3.4rem; } .masthead .right-logo { height: 3rem; }
    .site-name { font-size: clamp(1.2rem, 2vw, 1.6rem); } .brand small { font-size: .82rem; line-height: 1.35; } .brand .local-name { font-size: .8rem; }
    .gov-label { margin-top: .1rem; font-size: .72rem; }
    nav.main ul.menu { flex-wrap: nowrap; align-items: stretch; }
    nav.main .menu > li { flex: none; }
    nav.main .menu > li > a { padding: .72rem .85rem; font-weight: 600; font-size: .95rem; white-space: nowrap; }
    nav.main .menu > li > a:hover, nav.main .menu > li:focus-within > a { background: rgba(255,255,255,.14); }
    nav.main .menu > li > a[aria-current=page] { background: rgba(255,255,255,.16); box-shadow: inset 0 -3px 0 var(--accent); }
    nav.main .menu > li.more { margin-left: auto; }
    nav.main .menu > li.more > a { background: rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.15); }
    nav.main li.more > ul { left: auto; right: 0; }
    nav.main li.more ul ul { left: auto; right: 100%; border-radius: 10px; }
    nav.main li.more .has-sub > a::after { content: " \25C2"; }
    body.anim-on nav.main .menu.settled > li { animation: none; }
}

/* Gram Panchayat members */
.block-head h2 .m-count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: #111; font-size: .8rem; vertical-align: middle; }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.card .members li { border: 0; padding: 0; }
.member { text-align: center; background: linear-gradient(180deg, var(--primary-soft) 0 3.2rem, var(--surface) 3.2rem); border: 1px solid var(--line) !important; border-radius: 14px; padding: .9rem .7rem 1rem !important; transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(11,58,111,.15); }
.m-photo { width: 5.4rem; height: 5.4rem; margin: 0 auto .55rem; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 6px 14px rgba(0,0,0,.12); background: var(--primary); display: grid; place-items: center; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; } .m-photo span { color: #fff; font-size: 2rem; font-weight: 700; }
.member .m-name { margin: 0; font-size: .98rem; line-height: 1.3; color: var(--primary); }
.m-role { display: inline-block; margin: .35rem 0 0; padding: .1rem .65rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700; }
.m-role.lead { background: var(--accent); color: #111; }
.m-ward { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); }
.m-phone { display: inline-flex; align-items: center; gap: .25rem; margin-top: .35rem; font-size: .85rem; font-weight: 600; } .m-phone .ico { width: 15px; height: 15px; } .card .m-phone::before { content: none; }
.members-page { margin-bottom: 1.25rem; }
body.contrast .member { background: #111; border-color: #ff0 !important; } body.contrast .member .m-name { color: #ff0; } body.contrast .m-role { background: #000; color: #ff0; border: 1px solid #ff0; }
@media (max-width: 640px) {
    .members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .member { padding: .75rem .5rem .85rem !important; background: linear-gradient(180deg, var(--primary-soft) 0 2.6rem, var(--surface) 2.6rem); }
    .m-photo { width: 4.4rem; height: 4.4rem; } .member .m-name { font-size: .88rem; }
}

/* ---- Latest ticker: auto-scrolling news strip (desktop: under the menu bar; phones: glued to the bottom tab bar) ---- */
.ticker .tk-view { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 1.2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 1.2rem), transparent); }
.ticker .tk-track { display: flex; width: max-content; animation: tk-scroll calc(var(--tk-n, 6) * 7s) linear infinite; }
.ticker .tk-list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker .tk-list li { flex: none; padding: 0 1.4rem 0 0; white-space: nowrap; }
.ticker .tk-list li::before { content: "\25C6"; color: var(--accent); font-size: .6em; margin-right: .6rem; vertical-align: .15em; }
.ticker .tk-list a { color: inherit; text-decoration: none; } .ticker .tk-list a:hover, .ticker .tk-list a:focus-visible { text-decoration: underline; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track, .ticker.paused .tk-track { animation-play-state: paused; }
@keyframes tk-scroll { to { transform: translateX(-50%); } }
.ticker .tk-pause { flex: none; appearance: none; -webkit-appearance: none; border: 1px solid #0003; background: #fff8; color: inherit; border-radius: 999px; width: 1.7rem; height: 1.7rem; padding: 0; font-size: .6rem; line-height: 1; cursor: pointer; }
.ticker.paused .tk-pause span { font-size: .75rem; }
@media (prefers-reduced-motion: reduce) { .ticker .tk-track { animation: none; } .ticker .tk-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .ticker .tk-list[aria-hidden] { display: none; } .ticker .tk-pause { display: none; } }
@media print { .dock-ticker { display: none; } }
.dock .dock-ticker { display: none; }
@media (max-width: 768px) {
    /* The bottom tab bar replaces the menu; its ticker rides on top of it, the page-top one is hidden. */
    body:has(.dock) > .ticker { display: none; }
    .dock { padding-top: 0; overflow: hidden; }
    .dock .dock-ticker { display: block; margin: 0 0 .35rem; background: rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .82rem; border-radius: 22px 22px 0 0; }
    .dock .dock-ticker .wrap { padding: .3rem .8rem; gap: .5rem; max-width: none; }
    .dock .dock-ticker b { background: var(--accent); color: #111; font-size: .68rem; padding: .05rem .5rem; border-radius: 999px; }
    .dock .dock-ticker .tk-pause { width: 1.5rem; height: 1.5rem; border-color: #fff5; background: #fff2; color: #fff; }
    body:has(.dock-ticker) { padding-bottom: 7.1rem; }
    body:has(.dock-ticker) .scroll-fab, body:has(.dock-ticker) .help-fab { bottom: calc(7.2rem + env(safe-area-inset-bottom)); }
}
body.contrast .dock .dock-ticker { background: #000; color: #ff0; }

/* Test mode banner (development and demo servers only) */
.test-banner { background:#B91C1C; color:#fff; text-align:center; font-weight:700; padding:.45rem 1rem; font-size:.9rem; position:relative; z-index:60; }

/* ---- Motion level (Admin > Appearance) and per-effect switches ----
   UI transitions stay within 150-400 ms and use only transform and opacity. */
body.anim-on .reveal.in { transition-duration: .4s, .4s; }
body.anim-on .scard.in .vtrack li { transition-duration: .35s, .35s; transition-delay: calc(var(--i, 0) * 60ms + 120ms); }

/* Subtle: short fades, no ambient loops (zoom, sheen, blinking) */
body[data-motion="subtle"].anim-on .reveal { transform: translateY(8px); }
body[data-motion="subtle"].anim-on .scard .vtrack li { transform: translateX(8px); }
body[data-motion="subtle"].anim-on .slide.active img,
body[data-motion="subtle"].anim-on .scard header,
body[data-motion="subtle"].anim-on .tricolour,
body[data-motion="subtle"].anim-on .new,
body[data-motion="subtle"].anim-on .sc-alert.in,
body[data-motion="subtle"].anim-on .siren,
body[data-motion="subtle"].anim-on .siren i,
body[data-motion="subtle"].anim-on .live,
body[data-motion="subtle"].anim-on .hazard,
body[data-motion="subtle"].anim-on .sc-alert .vtrack li::before,
body[data-motion="subtle"].anim-on .sc-alert .count { animation: none; }

/* Effects switched off one by one */
body[data-fx-off~="entrance"].anim-on .reveal, body[data-fx-off~="entrance"].anim-on .scard .vtrack li { opacity: 1; transform: none; }
body[data-fx-off~="hover"] .scard:hover, body[data-fx-off~="hover"].anim-on .scard.reveal.in:hover, body[data-fx-off~="hover"] .official:hover,
body[data-fx-off~="hover"] .official:hover img, body[data-fx-off~="hover"] .gallery a:hover img, body[data-fx-off~="hover"] .logo-track a:hover { transform: none; }
body[data-fx-off~="slider"].anim-on .slide.active img, body[data-fx-off~="slider"].anim-on .slide.active figcaption { animation: none; }
body[data-fx-off~="live"].anim-on .new, body[data-fx-off~="live"].anim-on .sc-alert.in, body[data-fx-off~="live"].anim-on .siren, body[data-fx-off~="live"].anim-on .siren i,
body[data-fx-off~="live"].anim-on .live, body[data-fx-off~="live"].anim-on .hazard, body[data-fx-off~="live"].anim-on .sc-alert .vtrack li::before, body[data-fx-off~="live"].anim-on .sc-alert .count { animation: none; }

/* Official government grievance portals on the complaint pages */
.gov-grievance { margin: 0 0 1.4rem; padding: 1rem 1.1rem 1.1rem; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--line); border-left: 4px solid var(--primary); }
.gov-grievance h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; font-size: 1.1rem; color: var(--primary); }
.gov-grievance > p { margin: 0 0 .8rem; color: var(--text); font-size: .95rem; }
.gov-grievance .info-grid { margin: 0; }
.gov-grievance .gov-grievance-local { margin: .9rem 0 0; font-weight: 600; }
body.contrast .gov-grievance { background: #000; border-color: #ff0; } body.contrast .gov-grievance h2 { color: #ff0; }

/* Members page: Sarpanch and Upsarpanch first, larger, then all members */
.members-group { margin: 0 0 1.6rem; }
.members-heading { font-size: 1.15rem; color: var(--primary); margin: 0 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.members-leaders { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); max-width: 32rem; }
.members-leaders .m-photo { width: 7rem; height: 7rem; }
.members-leaders .m-name { font-size: 1.15rem; }
@media (max-width: 600px) { .members-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } .members-leaders .m-photo { width: 5.6rem; height: 5.6rem; } }

/* ---- Photo gallery: an endless row of photo cards ----
   Without JavaScript, with reduced motion or with animation off it is a row you swipe or scroll. */
.photo-marquee { position: relative; }
.marquee-view { overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.1rem; }
.photo-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; width: max-content; }
.photo-track li { flex: none; scroll-snap-align: start; }
.photo-card { margin: 0; width: 17.5rem; }
.photo-card a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--primary-soft); box-shadow: 0 4px 14px rgba(15,42,74,.14); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
/* Light sweep across the photo on hover */
.photo-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s ease; pointer-events: none; }
.photo-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .95rem .75rem; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3; background: linear-gradient(180deg, transparent, rgba(7,20,40,.82)); }
.photo-card figcaption::before { content: ""; display: block; width: 1.8rem; height: 3px; border-radius: 3px; margin-bottom: .4rem; background: var(--accent); transform: scaleX(.5); transform-origin: 0 50%; transition: transform .35s ease; }
.photo-card a:hover, .photo-card a:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(15,42,74,.28); text-decoration: none; }
.photo-card a:hover img, .photo-card a:focus-visible img { transform: scale(1.1); }
.photo-card a:hover::after, .photo-card a:focus-visible::after { transform: translateX(120%); }
.photo-card a:hover figcaption::before, .photo-card a:focus-visible figcaption::before { transform: scaleX(1); }

.photo-marquee.running .marquee-view { overflow: hidden; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.photo-marquee.running .marquee-track { animation: logo-scroll var(--dur, 40s) linear infinite; }
.photo-marquee.running:hover .marquee-track, .photo-marquee.running:focus-within .marquee-track, .photo-marquee.paused .marquee-track { animation-play-state: paused; }
.photo-toggle { position: absolute; right: .6rem; bottom: 1.7rem; z-index: 2; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,.25); cursor: pointer; font-size: .6rem; letter-spacing: -1px; }
.photo-toggle:hover { background: #fff; }
.photo-marquee:not(.running) .photo-toggle { display: none; }
@media (max-width: 600px) { .photo-card { width: 14rem; } }
@media (prefers-reduced-motion: reduce) { .photo-marquee.running .marquee-track { animation: none; } .photo-card a, .photo-card img, .photo-card a::after { transition: none; } }
body[data-fx-off~="hover"] .photo-card a:hover, body[data-fx-off~="hover"] .photo-card a:hover img { transform: none; }
body.no-motion .marquee-track [data-clone] { display: none !important; }
body.no-motion .photo-marquee.running .marquee-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
body.no-motion .photo-marquee.running .marquee-track { animation: none; }
body.contrast .photo-card figcaption { background: #000; color: #ff0; }
@media print { .photo-toggle { display: none; } .marquee-view { overflow: visible; } .photo-track { flex-wrap: wrap; width: auto; } }
/* The photo row lives inside a content card: drop the card's list bullets and separators for it. */
.card .photo-track li { padding: 0; border: 0; }
.card .photo-track li a::before { content: none; }

/* ---- Information cards: News, Helpline numbers, Forms & Downloads ----
   Equal width and equal height in one row; each card has an icon badge in its category colour. */
.info-cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.25rem; align-items: stretch; }
.info-card { --c1: var(--primary); display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; border-top: 4px solid var(--c1); transition: transform .25s, box-shadow .25s; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(11,58,111,.14); }
.ic-head { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem .75rem; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 7%, #fff), #fff); }
.ic-head h2 { margin: 0; padding: 0; font-size: 1.08rem; color: var(--text); flex: 1; } .ic-head h2::after { content: none; }
.ic-badge { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c1) 80%, #fff), var(--c1)); box-shadow: 0 6px 14px color-mix(in srgb, var(--c1) 35%, transparent); }
.ic-badge .ico { width: 20px; height: 20px; }
.ic-count { flex: none; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--c1); background: color-mix(in srgb, var(--c1) 12%, #fff); }
.card .ic-list { flex: 1; margin: 0; padding: .2rem 1.1rem .6rem; }
.card .ic-list li { padding: .55rem 0; border-bottom: 1px dashed var(--line); line-height: 1.4; }
.card .ic-list li:last-child { border-bottom: 0; }
.card .ic-list li a::before { color: var(--c1); }
.card .ic-list li.ic-phone { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.card .ic-list li.ic-phone a::before, .card .ic-list li.ic-doc a::before { content: none; }
.ic-phone a { white-space: nowrap; text-decoration: none; } .ic-phone a b { color: var(--c1); }
.ic-doc small { display: block; color: var(--muted); font-size: .8rem; } .ic-doc .file-tag { display: inline-flex; gap: .25rem; align-items: center; color: #b3261e; font-weight: 700; }
.ic-more { display: block; margin-top: auto; padding: .65rem 1.1rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; background: var(--bg); }
.ic-more:hover { background: var(--primary-soft); text-decoration: none; }
@media (max-width: 900px) { .info-cards { grid-template-columns: 1fr; } }
body[data-fx-off~="hover"] .info-card:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .info-card { transition: none; } }
body.contrast .info-card, body.contrast .ic-head { background: #111; } body.contrast .ic-head h2 { color: #ff0; }

/* ---- At a Glance + map: facts on a map-style panel (left), the village map (right) ---- */
.mapbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 0 0 1.25rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.mapbox-info { position: relative; padding: 1.4rem 1.5rem; color: #fff; overflow: hidden;
    background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12) 0 18%, transparent 19%), linear-gradient(135deg, var(--primary-dark), var(--primary)); }
/* Faint map grid and route lines behind the facts */
.mapbox-info::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px), radial-gradient(circle at 20% 80%, transparent 0 38%, rgba(255,255,255,.08) 39% 40%, transparent 41%);
    background-size: 28px 28px, 28px 28px, 100% 100%; }
.mapbox-info > * { position: relative; }
.mapbox-info h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: 1.2rem; color: #fff; } .mapbox-info h2 .ico { width: 22px; height: 22px; color: var(--accent); }
.glance-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.glance-tiles li { padding: .7rem .8rem; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .25s, background-color .25s; }
.glance-tiles li:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); }
.glance-tiles b { display: block; font-size: 1.25rem; line-height: 1.2; color: #fff; }
.glance-tiles span { display: block; font-size: .82rem; color: rgba(255,255,255,.8); margin-top: .15rem; }
.mapbox-map { position: relative; min-height: 19rem; display: flex; flex-direction: column; }
.mapbox-map iframe { flex: 1; width: 100%; min-height: 19rem; border: 0; display: block; }
.map-fallback { flex: 1; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 1.2rem; text-align: center; color: var(--muted); background: var(--primary-soft); }
.map-fallback img { max-width: 70%; max-height: 13rem; object-fit: contain; border-radius: 12px; }
.map-fallback p { margin: 0; font-size: .9rem; }
.map-pin .ico { width: 3rem; height: 3rem; color: var(--primary); }
.map-open { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .9rem; border-radius: 999px; background: #fff; color: var(--primary); font-weight: 600; font-size: .88rem; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.map-open:hover { text-decoration: none; background: var(--primary); color: #fff; }
@media (max-width: 760px) { .mapbox { grid-template-columns: 1fr; } .mapbox-map, .mapbox-map iframe { min-height: 15rem; } }
body[data-fx-off~="hover"] .glance-tiles li:hover { transform: none; }
body.contrast .mapbox-info { background: #000; } body.contrast .glance-tiles li { border-color: #ff0; }


/* ---- Officials: an endless row of profile cards (same script as the photo gallery) ---- */
.official-marquee { display: block; position: relative; }
.official-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; width: max-content; }
.official-track > li { flex: none; width: 21rem; scroll-snap-align: start; }
.official-track .official { height: 100%; margin: 0; position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 60%, var(--primary-soft)); }
/* Soft light sweep across the card on hover */
.official-track .official::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s ease; pointer-events: none; }
.official-track .official:hover::after { transform: translateX(120%); }
.official-photo { flex: none; display: block; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.official-photo img { display: block; }
.official-marquee.running .marquee-view { overflow: hidden; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.official-marquee.running .marquee-track { animation: logo-scroll var(--dur, 40s) linear infinite; }
.official-marquee.running:hover .marquee-track, .official-marquee.running:focus-within .marquee-track, .official-marquee.paused .marquee-track { animation-play-state: paused; }
.official-marquee .official-toggle { bottom: auto; top: 50%; right: .3rem; transform: translateY(-50%); }
.official-marquee:not(.running) .official-toggle { display: none; }
@media (max-width: 600px) { .official-track > li { width: 17rem; } }
@media (prefers-reduced-motion: reduce) { .official-marquee.running .marquee-track { animation: none; } }
body.no-motion .official-marquee.running .marquee-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
body.no-motion .official-marquee.running .marquee-track { animation: none; }

/* ---- Citizen services and Schemes: the list scrolls upwards when it is longer than the card ---- */
.vscroll .block-tools { display: flex; align-items: center; gap: .6rem; }
.vscroll .sbody { height: 19rem; padding: 0; }
.vscroll .vtrack li[data-clone] { display: none; }
.vscroll.scrolling .sbody { -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); }
.vscroll.scrolling .vtrack { animation: v-scroll 20s linear infinite; }
.vscroll.scrolling .vtrack li[data-clone] { display: block; }
.vscroll:hover .vtrack, .vscroll:focus-within .vtrack, .vscroll.paused .vtrack { animation-play-state: paused; }
.vscroll:not(.scrolling) .sbody { overflow-y: auto; }
.vscroll:not(.scrolling) .vs-toggle { display: none; }
.vs-toggle { border: 1px solid var(--line); background: var(--primary-soft); color: var(--primary); border-radius: 50%; width: 2rem; height: 2rem; cursor: pointer; font-size: .55rem; letter-spacing: -1px; }
@media (prefers-reduced-motion: reduce) { .vscroll.scrolling .vtrack { animation: none; } .vscroll.scrolling .sbody { overflow-y: auto; } }
body.no-motion .vscroll.scrolling .vtrack { animation: none; } body.no-motion .vscroll.scrolling .sbody { overflow-y: auto; -webkit-mask-image: none; mask-image: none; } body.no-motion .vscroll .vtrack li[data-clone] { display: none; }

/* ---- Voice search button inside the "What do you need?" search box ---- */
.need-search .mic { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-right: .35rem; border: 0; border-radius: 50%; background: var(--primary-soft); color: var(--primary); cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.need-search .mic:hover { background: var(--primary); color: #fff; }
.need-search .mic .ico { width: 20px; height: 20px; }
.need-search .mic.listening { background: #b3261e; color: #fff; animation: mic-pulse 1.2s ease-out infinite; }
@keyframes mic-pulse { 0% { box-shadow: 0 0 0 0 rgba(179,38,30,.55); } 100% { box-shadow: 0 0 0 14px rgba(179,38,30,0); } }
.voice-status { margin: .5rem 0 0; color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .need-search .mic.listening { animation: none; } }

/* ---- Photo viewer (lightbox) ---- */
html.lb-lock { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 3.5rem 4rem; background: rgba(5,12,25,.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb.open { display: grid; animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .7rem; overflow: hidden; }
.lb-stage img { max-width: min(92vw, 1100px); max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-in; transition: transform .3s ease; animation: lb-zoom-in .3s ease; }
@keyframes lb-zoom-in { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb.zoomed .lb-stage img { transform: scale(2); cursor: zoom-out; }
.lb-stage figcaption { color: #fff; font-weight: 600; text-align: center; max-width: 60ch; }
.lb button { position: absolute; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .2s, transform .2s; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.3); transform: scale(1.06); }
.lb .lb-close { top: 1rem; right: 1rem; background: #fff; color: #0f2a4a; font-size: 1.2rem; }
.lb .lb-close:hover, .lb .lb-close:focus-visible { background: #fff; }
.lb .lb-zoom { top: 1rem; right: 4.6rem; font-size: 1.15rem; }
.lb .lb-prev { left: 1rem; top: 50%; margin-top: -1.45rem; font-size: 2rem; }
.lb .lb-next { right: 1rem; top: 50%; margin-top: -1.45rem; font-size: 2rem; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
.lb-count { position: absolute; top: 1.4rem; left: 1.2rem; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; }
@media (max-width: 600px) { .lb { padding: 3.8rem .6rem 4.5rem; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 1rem; margin-top: 0; } .lb .lb-prev { left: calc(50% - 3.5rem); } .lb .lb-next { right: calc(50% - 3.5rem); } }
@media (prefers-reduced-motion: reduce) { .lb.open, .lb-stage img { animation: none; transition: none; } }
.photo-card a[data-lightbox] { cursor: zoom-in; }

/* ---- Motion layer: things arrive, respond and settle ----
   Transform and opacity only. Nothing runs with Animation "Off" (body without .anim-on), reduced motion,
   or the visitor's "Stop animations" tool (body.no-motion). */

/* Main menu drops in item by item when the page opens */
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.anim-on nav.main .menu > li { animation: drop-in .35s cubic-bezier(.2,.7,.2,1) both; }
body.anim-on nav.main .menu > li:nth-child(2) { animation-delay: 40ms; } body.anim-on nav.main .menu > li:nth-child(3) { animation-delay: 80ms; }
body.anim-on nav.main .menu > li:nth-child(4) { animation-delay: 120ms; } body.anim-on nav.main .menu > li:nth-child(5) { animation-delay: 160ms; }
body.anim-on nav.main .menu > li:nth-child(6) { animation-delay: 200ms; } body.anim-on nav.main .menu > li:nth-child(7) { animation-delay: 240ms; }
body.anim-on nav.main .menu > li:nth-child(8) { animation-delay: 280ms; } body.anim-on nav.main .menu > li:nth-child(n+9) { animation-delay: 320ms; }

/* Sections rise and settle (a touch of scale makes them feel alive) */
body[data-motion="rich"].anim-on .reveal { transform: translateY(24px) scale(.98); }
body[data-motion="rich"].anim-on .reveal.in { transform: none; }

/* Light sweep across call-to-action buttons and the quick tiles on hover */
.btn-primary, .need-search button[type=submit], .need-actions .act, .ic-more { position: relative; overflow: hidden; }
.btn-primary::after, .need-search button[type=submit]::after, .need-actions .act::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transition: transform .6s ease; }
.btn-primary:hover::after, .need-search button[type=submit]:hover::after, .need-actions .act:hover::after,
.btn-primary:focus-visible::after, .need-actions .act:focus-visible::after { transform: translateX(120%); }

/* Quick tiles: the icon hops and the tile lifts */
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px) scale(1.08); } 70% { transform: translateY(1px); } }
.need-actions .act { transition: transform .25s, background-color .25s, box-shadow .25s; }
.need-actions .act:hover, .need-actions .act:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
body.anim-on .need-actions .act:hover .act-ico, body.anim-on .need-actions .act:focus-visible .act-ico { animation: hop .5s ease; }
/* Tiles arrive one after another */
body.anim-on .need-actions li { animation: drop-in .4s cubic-bezier(.2,.7,.2,1) both; }
body.anim-on .need-actions li:nth-child(2) { animation-delay: 50ms; } body.anim-on .need-actions li:nth-child(3) { animation-delay: 100ms; }
body.anim-on .need-actions li:nth-child(4) { animation-delay: 150ms; } body.anim-on .need-actions li:nth-child(5) { animation-delay: 200ms; }
body.anim-on .need-actions li:nth-child(6) { animation-delay: 250ms; } body.anim-on .need-actions li:nth-child(7) { animation-delay: 300ms; }
body.anim-on .need-actions li:nth-child(n+8) { animation-delay: 350ms; }

/* Info cards: the icon badge tilts towards you on hover */
.ic-badge { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.info-card:hover .ic-badge { transform: rotate(-8deg) scale(1.1); }

/* At a Glance: tiles pop in one by one; the map pin bounces gently */
body.anim-on .mapbox.in .glance-tiles li { animation: pop-in .4s cubic-bezier(.3,1.4,.5,1) both; }
body.anim-on .mapbox.in .glance-tiles li:nth-child(2) { animation-delay: 70ms; } body.anim-on .mapbox.in .glance-tiles li:nth-child(3) { animation-delay: 140ms; }
body.anim-on .mapbox.in .glance-tiles li:nth-child(4) { animation-delay: 210ms; } body.anim-on .mapbox.in .glance-tiles li:nth-child(5) { animation-delay: 280ms; }
body.anim-on .mapbox.in .glance-tiles li:nth-child(n+6) { animation-delay: 350ms; }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes pin-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
body[data-motion="rich"].anim-on .map-pin .ico, body[data-motion="rich"].anim-on .mapbox-info h2 .ico { animation: pin-bounce 2s ease-in-out infinite; }

/* Numbers that count up are fixed-width digits, so the text does not jiggle while counting */
[data-counting] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    body.anim-on nav.main .menu > li, body.anim-on .need-actions li, body.anim-on .mapbox.in .glance-tiles li { animation: none; }
    .btn-primary::after, .need-search button[type=submit]::after, .need-actions .act::after { display: none; }
    .map-pin .ico, .mapbox-info h2 .ico { animation: none !important; }
}
body.no-motion nav.main .menu > li, body.no-motion .need-actions li, body.no-motion .glance-tiles li, body.no-motion .act-ico, body.no-motion .map-pin .ico, body.no-motion .mapbox-info h2 .ico { animation: none !important; }
body[data-fx-off~="hover"] .need-actions .act:hover, body[data-fx-off~="hover"] .info-card:hover .ic-badge { transform: none; }

/* Heading position chosen in the admin (Appearance): left (default), middle or right. */
html[data-halign="center"] .card h2, html[data-halign="center"] .page-title, html[data-halign="center"] .block-head { text-align: center; }
html[data-halign="right"] .card h2, html[data-halign="right"] .page-title, html[data-halign="right"] .block-head { text-align: right; }
html[data-halign="center"] .card h2::after, html[data-halign="center"] .page-title::after { left: 50%; transform: translateX(-50%); }
html[data-halign="right"] .card h2::after, html[data-halign="right"] .page-title::after { left: auto; right: 0; }
html[data-halign="center"] .block-head { justify-content: center; flex-wrap: wrap; } html[data-halign="right"] .block-head { justify-content: flex-end; flex-wrap: wrap; }
html[data-halign="center"] .scard header h2, html[data-halign="right"] .scard header h2, html[data-halign="center"] .ic-head h2, html[data-halign="right"] .ic-head h2 { text-align: inherit; }
/* Backstage links in the phone drawer (shown only to a signed-in admin) */
.drawer-admin { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f5f8fd; padding: .3rem .5rem; max-height: 38vh; overflow-y: auto; }
.drawer-admin .da-grp > summary { cursor: pointer; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); padding: .5rem .4rem; list-style: none; }
.drawer-admin .da-grp > summary::-webkit-details-marker { display: none; } .drawer-admin .da-grp > summary::after { content: "+"; float: right; font-weight: 800; } .drawer-admin .da-grp[open] > summary::after { content: "\2212"; }
.drawer-admin a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .8rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.drawer-admin a:hover, .drawer-admin a:focus-visible { background: #e6eefb; } .da-badge { background: var(--accent); color: #3a2200; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 800; }
/* Complaint and track pages: accent bar on the card, softer reply bubble, full-width send button on phones */
.form-layout .page-card { border-top: 4px solid var(--accent); }
.cform .btn-primary { min-width: 11rem; box-shadow: 0 6px 16px rgba(242,140,15,.35); }
.track-result .reply { border-radius: 4px 14px 14px 14px; box-shadow: 0 2px 8px rgba(11,58,111,.08); }
@media (max-width: 600px) { .cform .btn-primary { width: 100%; } }
