/* Nepzaa Home. Plain CSS, no framework.
   Theme: Nepal's flag. Crimson #C8102E, deep blue #003893 / navy, white, plus a few supporting hues that only appear inside icon tiles.
   Order: tokens, base, header, hero, ticker, app grid, services, news, account, footer, pages, breakpoints. */
:root {
  --red: #c8102e;
  --red-2: #e0334f;
  --blue: #003893;
  --blue-2: #2b63d6;
  --navy: #0b1f4d;
  --navy-deep: #07163a;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0e1a3a;
  --muted: #566283;
  --line: #e2e7f3;
  --focus: #2563eb;
  --ok: #067a4a;
  --ok-bg: #d6f3e5;
  --wash-blue: rgb(0 56 147 / .07);
  --wash-red: rgb(200 16 46 / .06);
  --band-1: #ffffff;
  --band-2: #ffffff;
  --shadow-sm: 0 1px 2px rgb(11 31 77 / .06), 0 1px 1px rgb(11 31 77 / .04);
  --shadow-md: 0 14px 30px -16px rgb(11 31 77 / .4);
  --shadow-lg: 0 22px 48px -20px rgb(11 31 77 / .45), 0 6px 14px -8px rgb(11 31 77 / .25);
  --wrap: 1160px;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Noto Serif Devanagari", serif;
  color-scheme: only light;
}
/* Home is always light, on phones too: the phone's own dark mode no longer changes it (an explicit data-theme="dark" still works). */
:root[data-theme="dark"] {
  --bg: #060d24; --surface: #0e1836; --ink: #eef2ff; --muted: #9eabcc; --line: #1c2a56; --focus: #7aa2ff;
  --ok: #5fe0a4; --ok-bg: #0f3a29; --wash-blue: rgb(60 110 230 / .16); --wash-red: rgb(224 51 79 / .12);
  --band-1: #0a1330; --band-2: #0c1738;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .45); --shadow-md: 0 14px 30px -14px rgb(0 0 0 / .75);
  --shadow-lg: 0 22px 48px -18px rgb(0 0 0 / .8), 0 6px 14px -8px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* icon-tile colours: each service gets its own pair */
.c-blue { --g1: #003893; --g2: #4f86f0; }
.c-crimson { --g1: #b50e2a; --g2: #ff5c7a; }
.c-violet { --g1: #0b1f4d; --g2: #4a6fc4; }
.c-sky { --g1: #0369a1; --g2: #38bdf8; }
.c-emerald { --g1: #8e0b24; --g2: #e0334f; }
.c-magenta { --g1: #b50e2a; --g2: #ff8aa0; }
.c-amber { --g1: #b45309; --g2: #fbbf24; }
.c-sunset { --g1: #dc143c; --g2: #ff7a93; }
.c-teal { --g1: #1e3a8a; --g2: #60a5fa; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow-lg); }
.skip:focus { top: 10px; }
.i { width: 22px; height: 22px; flex: none; }
.i.sm { width: 18px; height: 18px; }
.i.xs { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- colourful app-icon tile ---------- */
.ico {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(145deg, var(--g1), var(--g2));
  box-shadow: 0 10px 20px -10px var(--g1), inset 0 1px 0 rgb(255 255 255 / .4), inset 0 -8px 12px rgb(0 0 0 / .1);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.ico::after { content: ""; position: absolute; width: 70%; height: 70%; left: -18%; top: -26%; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .38), transparent 70%); pointer-events: none; }
.ico .i { width: 54%; height: 54%; fill: rgb(255 255 255 / .24); stroke-width: 1.9; position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .18)); }
.ico.lg { width: 64px; height: 64px; border-radius: 20px; }
.ico.xs { width: 30px; height: 30px; border-radius: 10px; box-shadow: 0 6px 12px -8px var(--g1), inset 0 1px 0 rgb(255 255 255 / .35); }

/* ---------- Header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); border-top: 3px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, var(--red), #fff 50%, var(--blue)) border-box;
  background-color: var(--surface);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
@supports (background: color-mix(in srgb, red, blue)) {
  .bar { background: linear-gradient(color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface) 90%, transparent)) padding-box, linear-gradient(90deg, var(--red), #fff 50%, var(--blue)) border-box; }
}
.bar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; min-height: 62px;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "logo nav search actions"; align-items: center; gap: 10px 18px;
}
.logo { grid-area: logo; display: flex; align-items: center; min-width: 0; flex: none; min-height: 40px; }
.logo img { height: 40px; width: auto; max-width: none; flex: none; }
.nav { grid-area: nav; display: none; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15.5px; color: var(--muted); transition: background .15s, color .15s; }
.nav a:hover { background: color-mix(in srgb, var(--blue) 9%, transparent); color: var(--ink); }
.search { grid-area: search; position: relative; max-width: 560px; width: 100%; justify-self: center; display: flex; align-items: center; }
.search-i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; width: 18px; height: 18px; }
.search input {
  width: 100%; height: 44px; padding: 0 124px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, var(--surface));
  transition: border-color .15s, background .15s, box-shadow .15s; min-width: 0;
}
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.search input:focus { outline: none; background: var(--surface); border-color: var(--blue-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-2) 20%, transparent); }
.scope-wrap { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.scope-wrap select {
  appearance: none; -webkit-appearance: none; height: 34px; border: 0; border-radius: 999px; padding: 0 28px 0 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; cursor: pointer;
}
.scope-wrap .i { position: absolute; right: 9px; pointer-events: none; color: var(--muted); }
.actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); border-color: var(--line); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.badge[hidden] { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-weight: 700; font-size: 15px; }
.signin {
  height: 40px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap;
  box-shadow: 0 8px 16px -8px var(--red); transition: transform .15s, box-shadow .15s, filter .15s;
}
.signin:hover { filter: brightness(1.06); box-shadow: 0 10px 20px -8px var(--red); }
.signin:active { transform: scale(.97); }
.signin.light { background: #fff; color: var(--navy); box-shadow: 0 10px 20px -10px rgb(0 0 0 / .6); }
.menu { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; visibility: hidden;
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.pop[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.pop h2 { margin: 6px 10px 4px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pop p { margin: 6px 10px 10px; color: var(--muted); font-size: 15px; }
.pop-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 12px; font-size: 16px; cursor: pointer; width: 100%; background: none; border: 0; text-align: left; }
.pop-link:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.pop-link small { color: var(--muted); font-size: 13px; }
.pop-link .row { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.pop-link .count { background: var(--red); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 2px 8px; }
.pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop .who b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop .who span { font-size: 13.5px; color: var(--muted); }
.pop .cta { display: flex; margin: 4px 6px 6px; }

/* ---------- Slim date and time bar (like Saathi's): Nepali date on the left, Nepal time and your time on the right ---------- */
.datebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px max(16px, calc((100% - var(--wrap)) / 2 + 16px)); color: #fff; background: linear-gradient(100deg, #0b1f4d 0%, #0a2a78 55%, #8d0a20 135%); border-bottom: 1px solid rgb(255 255 255 / .1); }
.db-date { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.db-date b { font-size: 1.02rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-date small { font-size: .8rem; color: rgb(255 255 255 / .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-date:hover b { text-decoration: underline; text-underline-offset: 3px; }
.db-time { display: flex; gap: 18px; text-align: right; flex: none; }
.db-time span { display: flex; flex-direction: column; line-height: 1.2; }
.db-time small { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: rgb(255 255 255 / .72); white-space: nowrap; }
.db-time b { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .datebar { padding: 6px 14px; gap: 8px; }
  .db-date b { font-size: .92rem; }
  .db-date small { font-size: .72rem; }
  .db-time { gap: 10px; }
  .db-time b { font-size: .92rem; }
  .db-time small { font-size: .62rem; }
}

/* ---------- 1-2. Hero banner: picture, words and compact clocks. Settings arrive as CSS variables on .hero ---------- */
.hero {
  --hero-overlay: #07163a; --ov-a: 78%; --hero-heading: #ffffff; --hero-subtitle: #ffffff; --hero-text: #dbe4ff; --hero-accent: #ff7a90;
  --hero-pos: 72% 42%; --hero-pos-m: 68% 50%;
  position: relative; isolation: isolate; overflow: hidden; color: var(--hero-text); background: var(--navy-deep);
  min-height: clamp(280px, 26vw, 350px); display: flex; align-items: center; padding: 30px 0 72px; border-radius: 0 0 36px 36px;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--hero-pos); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hero-overlay) var(--ov-a), transparent) 0%, color-mix(in srgb, var(--hero-overlay) calc(var(--ov-a) * .7), transparent) 34%, color-mix(in srgb, var(--hero-overlay) calc(var(--ov-a) * .12), transparent) 68%, transparent 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--hero-overlay) 60%, transparent) 0%, transparent 36%);
}
.hero[data-text-side="right"] .hero-scrim {
  background:
    linear-gradient(270deg, color-mix(in srgb, var(--hero-overlay) var(--ov-a), transparent) 0%, color-mix(in srgb, var(--hero-overlay) calc(var(--ov-a) * .7), transparent) 34%, color-mix(in srgb, var(--hero-overlay) calc(var(--ov-a) * .12), transparent) 68%, transparent 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--hero-overlay) 60%, transparent) 0%, transparent 36%);
}
.hero-grid { position: absolute; inset: 0; opacity: .55; pointer-events: none; background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 56%); mask-image: linear-gradient(90deg, #000, transparent 56%); }
.hero[data-text-side="right"] .hero-grid { -webkit-mask-image: linear-gradient(270deg, #000, transparent 56%); mask-image: linear-gradient(270deg, #000, transparent 56%); }
.hero-in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 590px) 1fr; align-items: start; gap: 0 24px; }
.hero[data-text-side="right"] .hero-in { grid-template-columns: 1fr minmax(0, 590px); }
.hero[data-text-side="right"] .hero-copy, .hero[data-text-side="right"] .clocks { grid-column: 2; }
.hero-copy { grid-column: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 15px 6px 11px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .09); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; color: var(--hero-text); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hero-accent); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--hero-accent); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 10px; color: var(--hero-heading); text-shadow: 0 6px 34px rgb(0 0 0 / .4); text-wrap: balance; font-variation-settings: "opsz" 144; }
.hero h1 .hl { font-style: normal; background: linear-gradient(100deg, var(--hero-heading) 0%, var(--hero-accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 4px 22px rgb(0 0 0 / .35)); }
.flagwrap { display: inline-block; margin-left: .2em; vertical-align: -.04em; }
.flagwrap[hidden] { display: none; }
.flag { display: inline-block; height: .72em; width: auto; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .4)); transform-origin: 20% 50%; animation: flutter 5s ease-in-out infinite; }
@keyframes flutter { 0%, 100% { transform: rotate(-2deg) skewY(0); } 50% { transform: rotate(2.5deg) skewY(-2deg); } }
.hero-lede { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.7vw, 1.8rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--hero-subtitle); }
.hero-lede::after { content: ""; display: block; width: 92px; height: 3px; margin-top: 16px; border-radius: 3px; background: linear-gradient(90deg, var(--red-2), #fff 55%, var(--blue-2)); box-shadow: 0 0 16px rgb(224 51 79 / .55); }
.hero-lede[hidden], .hero-sub[hidden], .hero-eyebrow[hidden] { display: none; }
.hero-sub { margin-top: 12px; max-width: 46ch; font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.55; color: var(--hero-text); text-wrap: pretty; text-shadow: 0 1px 14px rgb(0 0 0 / .35); }

/* compact glass clock panel; where it sits comes from data-clock-pos */
.clocks { position: relative; grid-column: 1; margin-top: 22px; justify-self: start; display: grid; grid-template-columns: auto auto; width: max-content; max-width: 100%; border-radius: 16px; color: #fff; padding: 9px 0 8px; background: linear-gradient(160deg, rgb(255 255 255 / .18), rgb(255 255 255 / .06)); border: 1px solid rgb(255 255 255 / .3); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 18px 36px -20px rgb(0 0 0 / .75), inset 0 1px 0 rgb(255 255 255 / .35); }
.clocks[hidden] { display: none; }
.clocks::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red-2), #fff 50%, var(--blue-2)); opacity: .9; }
.clock { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 2px 16px; background: none; border: 0; box-shadow: none; color: inherit; }
.clock + .clock { border-left: 1px solid rgb(255 255 255 / .22); }
.clock-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .78); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.np { background: #ff5c7a; box-shadow: 0 0 0 3px rgb(255 92 122 / .28); }
.dot.loc { background: #8db4ff; box-shadow: 0 0 0 3px rgb(141 180 255 / .28); }
.clock-time { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.clock-time small { font-size: .62em; font-weight: 600; color: rgb(255 255 255 / .75); margin-left: 3px; letter-spacing: 0; }
.clock-date { font-size: 12px; color: rgb(255 255 255 / .88); white-space: nowrap; }
.clock-zone { font-size: 11px; color: rgb(255 255 255 / .66); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.clock-diff { grid-column: 1 / -1; margin: 6px 16px 0; padding-top: 6px; border-top: 1px solid rgb(255 255 255 / .16); font-size: 11.5px; color: rgb(255 255 255 / .8); }
.clock-diff:empty { display: none; }
@media (min-width: 900px) {
  .hero[data-clock-pos="top-right"] .clocks, .hero[data-clock-pos="bottom-right"] .clocks, .hero[data-clock-pos="top-left"] .clocks, .hero[data-clock-pos="bottom-left"] .clocks { position: absolute; margin: 0; }
  .hero[data-clock-pos="top-right"] .clocks { top: 24px; right: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); }
  .hero[data-clock-pos="bottom-right"] .clocks { bottom: 64px; right: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); }
  .hero[data-clock-pos="top-left"] .clocks { top: 24px; left: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); }
  .hero[data-clock-pos="bottom-left"] .clocks { bottom: 64px; left: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); }
}

/* ---------- 3. Ticker ---------- */
.ticker { position: relative; z-index: 3; margin-top: -24px; display: flex; align-items: center; height: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-md); }
.ticker-tag { flex: none; height: 100%; display: inline-flex; align-items: center; gap: 7px; padding: 0 18px 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.ticker-track { display: flex; width: max-content; animation: marquee var(--dur, 70s) linear infinite; will-change: transform; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.set { display: flex; flex: none; align-items: center; }
.set li { flex: none; padding-right: 44px; white-space: nowrap; font-size: 15.5px; }
.set li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, var(--red), var(--blue)); vertical-align: middle; }
.set a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticker-pause { flex: none; width: 42px; height: 100%; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); }
.ticker-pause:hover { color: var(--ink); background: color-mix(in srgb, var(--blue) 7%, transparent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- shared section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow.light { color: #ffb3c0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2, .h1s { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.sec-sub { color: var(--muted); margin-top: 6px; font-size: 17px; text-wrap: pretty; max-width: 60ch; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15.5px; border: 1.5px solid var(--blue); color: var(--blue); background: transparent; white-space: nowrap; transition: background .18s, color .18s, transform .18s; cursor: pointer; }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-ghost .i { transition: transform .2s; }
.btn-ghost:hover .i { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; align-self: center; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; font-style: normal; background: color-mix(in srgb, var(--blue) 8%, var(--surface)); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.block { padding-top: clamp(40px, 6vw, 72px); }
.block.first { padding-top: 12px; }

/* ---------- 4. App grid ---------- */
.apps { padding-top: clamp(40px, 6vw, 68px); }
.apps .sec-head { margin-bottom: 20px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; min-height: 168px; padding: 24px 14px 20px;
  border-radius: 26px; border: 1px solid color-mix(in srgb, var(--g1) 16%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--g2) 13%, var(--surface)) 0%, var(--surface) 64%);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.app::before { content: ""; position: absolute; width: 150px; height: 150px; right: -46px; top: -56px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g2) 32%, transparent), transparent 68%); transition: transform .4s; }
.app .ico { margin-bottom: 10px; }
.app b { position: relative; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.app .sub { position: relative; color: var(--muted); font-size: 15.5px; line-height: 1.3; }
.app:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--g1) 55%, transparent); box-shadow: 0 24px 40px -24px var(--g1), var(--shadow-md); }
.app:hover::before { transform: scale(1.25); }
.app:hover .ico { transform: translateY(-2px) rotate(-5deg) scale(1.06); }
.app[aria-current="page"] { box-shadow: 0 0 0 2px color-mix(in srgb, var(--g1) 45%, transparent); }
.app[aria-current="page"]::after { content: "You are here"; position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--g1); background: color-mix(in srgb, var(--g1) 12%, var(--surface)); padding: 2px 8px; border-radius: 999px; }

/* ---------- 5. Services band ---------- */
.band { margin-top: clamp(48px, 7vw, 88px); padding: clamp(40px, 6vw, 72px) 0; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--band-1), var(--band-2)); border-block: 1px solid var(--line); }
.band::before, .band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.band::before { width: 420px; height: 420px; left: -140px; top: -180px; background: radial-gradient(circle, var(--wash-red), transparent 68%); }
.band::after { width: 520px; height: 520px; right: -160px; bottom: -240px; background: radial-gradient(circle, var(--wash-blue), transparent 68%); }
.band-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.svc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); }
.svc { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
a.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g1) 50%, transparent); box-shadow: 0 20px 34px -22px var(--g1), var(--shadow-md); }
a.svc:hover .ico { transform: rotate(-6deg) scale(1.08); }
.svc-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.svc-txt b { font-size: 17.5px; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
.svc-txt span { color: var(--muted); font-size: 15px; line-height: 1.4; text-wrap: pretty; margin-top: 2px; }
.svc .go { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--g1); background: color-mix(in srgb, var(--g1) 10%, var(--surface)); transition: transform .2s, background .2s, color .2s; }
a.svc:hover .go { background: var(--g1); color: #fff; transform: translateX(3px); }
.svc.soon { background: transparent; border-style: dashed; }
.svc.soon .ico { filter: saturate(.55); opacity: .85; }

/* ---------- 6. News ---------- */
.news-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.ncard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.ncard:hover { transform: translateY(-5px); box-shadow: 0 22px 38px -24px var(--g1, var(--blue)), var(--shadow-md); border-color: color-mix(in srgb, var(--g1, var(--blue)) 35%, transparent); }
.ncard.feat { grid-column: span 2; flex-direction: row; }
.nimg { position: relative; aspect-ratio: 16 / 8; overflow: hidden; display: flex; align-items: flex-end; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--g1, #003893), var(--g2, #4f86f0)); }
.ncard.feat .nimg { aspect-ratio: auto; width: 44%; flex: none; min-height: 300px; padding: 20px 22px; }
.nimg::before { content: ""; position: absolute; width: 240px; height: 240px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .28), transparent 68%); }
.nimg .art { position: absolute; right: 12px; top: 10px; width: 46px; height: 46px; opacity: .32; fill: rgb(255 255 255 / .2); stroke-width: 1.5; }
.ncard.feat .nimg .art { width: 110px; height: 110px; right: 22px; top: 22px; opacity: .22; }
.nph { position: relative; font-weight: 700; font-size: 14px; letter-spacing: .03em; text-shadow: 0 1px 6px rgb(0 0 0 / .3); }
.ncard.feat .nph { font-size: 17px; }
.nimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ncard:hover .nimg img { transform: scale(1.05); }
.nimg.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .5)); }
.nimg.has-img .nph { z-index: 1; }
.nbody { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.ncard.feat .nbody { flex: 1; min-width: 0; justify-content: center; padding: 26px 30px; gap: 12px; }
.ncat { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g1, var(--blue)); background: color-mix(in srgb, var(--g1, var(--blue)) 11%, var(--surface)); padding: 3px 10px; border-radius: 999px; }
.ncard h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 700; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard.feat h3 { font-family: var(--font-body); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.28; -webkit-line-clamp: 3; }
.ncard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.nsum { color: var(--muted); font-size: 15.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.ncard:not(.feat) .nsum { -webkit-line-clamp: 2; }
.nmeta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13.5px; color: var(--muted); }
.nmeta b { color: var(--ink); font-weight: 700; }
.nread { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 700; color: var(--g1, var(--blue)); font-size: 14px; }
.news-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.news-state { grid-column: 1 / -1; display: grid; place-items: center; gap: 10px; text-align: center; padding: 44px 16px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: 24px; color: var(--muted); }
.news-state b { color: var(--ink); font-size: 1.15rem; }
.sk .nimg, .sk .nbody i { background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 45%, var(--surface)) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk .nimg::before { display: none; }
.sk .nbody i { display: block; height: 12px; border-radius: 6px; }
.sk .nbody i.short { width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- 6b. Upcoming festivals ---------- */
.fest-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.fest-row::-webkit-scrollbar { height: 8px; }
.fest-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.fcard { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.fcard::before { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--red) 18%, transparent), transparent 70%); }
a.fcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--red) 40%, transparent); box-shadow: var(--shadow-md); }
.fcard .cnt { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: -0.02em; color: var(--red); }
.fcard .cnt small { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.fcard b { position: relative; font-size: 1.12rem; line-height: 1.3; margin-top: 6px; }
.fcard .when { position: relative; font-size: 14px; color: var(--muted); }
.fcard .hol { position: relative; align-self: flex-start; margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); padding: 2px 9px; border-radius: 999px; }
.fcard.sk { min-height: 124px; gap: 10px; }
.fcard.sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 45%, var(--surface)) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.fcard.sk i.short { width: 55%; }
[data-festivals][hidden] { display: none; }

/* admin-only shortcut to the banner settings */
.hero-edit { position: absolute; z-index: 3; top: 12px; left: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-edit:hover { background: rgb(255 255 255 / .3); }
.hero-edit[hidden] { display: none; }


/* ---------- 7. Account & roles ---------- */
.account {
  position: relative; overflow: hidden; color: #fff; padding: clamp(22px, 4vw, 40px); border-radius: 30px;
  background:
    radial-gradient(520px 300px at 100% 0%, rgb(224 51 79 / .42), transparent 62%),
    radial-gradient(520px 340px at 0% 100%, rgb(43 99 214 / .5), transparent 62%),
    linear-gradient(150deg, #07163a, #0b1f4d 60%, #0a2a78);
  box-shadow: var(--shadow-lg);
}
.acc-art { position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle, rgb(255 255 255 / .09) 0 2px, transparent 2px 22px); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.acc-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.account h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.12; }
.account .pill.ok { background: rgb(95 224 164 / .18); color: #8af0bf; border: 1px solid rgb(95 224 164 / .35); }
.account p { position: relative; max-width: 62ch; text-wrap: pretty; }
.acc-lead { margin: 6px 0 14px; font-size: 17.5px; color: rgb(255 255 255 / .9); }
.acc-note { margin: 16px 0 14px; font-size: 14.5px; color: rgb(255 255 255 / .72); }
.roles { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); font-size: 15px; font-weight: 600; }
.roles li i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 0 0 3px rgb(255 255 255 / .12); }
.ws-list { position: relative; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); margin: 4px 0 0; }
.ws { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s, background .2s, border-color .2s; }
.ws:hover { transform: translateY(-3px); background: rgb(255 255 255 / .15); border-color: rgb(255 255 255 / .4); }
.ws .ico { width: 44px; height: 44px; }
.ws b { display: block; font-size: 17px; line-height: 1.25; }
.ws span.d { font-size: 14px; color: rgb(255 255 255 / .75); }

/* ---------- 8. Footer ---------- */
.site-foot { margin-top: clamp(48px, 7vw, 88px); background: var(--navy-deep); color: #dfe6fb; }
.stripe { height: 5px; background: linear-gradient(90deg, var(--red) 0 38%, #fff 38% 62%, var(--blue-2) 62% 100%); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 44px 16px 28px; display: grid; gap: 32px 32px; grid-template-columns: 1.5fr repeat(4, 1fr); }
.flogo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 12px; }
.flogo img { height: 28px; width: auto; max-width: none; }
.fbrand p { margin-top: 14px; color: rgb(223 230 251 / .8); font-size: 16px; }
.fbrand p b { color: #fff; font-size: 18px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 15px; }
.fcol h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 12px; }
.fcol li { margin: 8px 0; }
.fcol a { font-size: 16px; color: rgb(223 230 251 / .85); transition: color .15s; }
.fcol a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: 18px 16px 26px; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; color: rgb(223 230 251 / .65); font-size: 14.5px; }

/* ---------- Services directory + legal pages ---------- */
.crumbs { padding-top: 24px; font-size: 15px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.legal { max-width: 70ch; padding: 8px 0 64px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; margin: 18px 0 12px; font-weight: 700; }
.legal h2 { margin: 2em 0 .4em; font-size: 1.35rem; font-weight: 700; }
.legal h3 { margin: 1.4em 0 .2em; font-size: 1.08rem; }
.legal p, .legal li { margin: .5em 0; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); text-wrap: pretty; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal a { color: var(--focus); text-decoration: underline; text-underline-offset: 2px; }
.legal .meta { color: var(--muted); font-size: 15px; }
.todo { background: color-mix(in srgb, #fbbf24 38%, transparent); border-radius: 4px; padding: 0 4px; }
.draft-banner { margin-top: 18px; padding: 12px 16px; border-radius: 14px; border: 1px solid #d97706; background: color-mix(in srgb, #fbbf24 22%, var(--surface)); font-size: 15.5px; }

/* ---------- Tablet ---------- */
@media (min-width: 900px) {
  .nav { display: flex; }
  .apps-menu { display: none; }
}
@media (max-width: 899px) {
  .bar-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo . actions" "search search search"; gap: 8px 12px; padding-bottom: 12px; position: relative; }
  .search { max-width: none; }
  .bar-in .actions { justify-self: end; }
  .menu { position: static; }
  .pop { left: 12px; right: 12px; top: calc(100% + 6px); width: auto; transform-origin: top center; }
  /* phones and tablets: the picture sits on top and fades into the dark panel that holds the words and clocks */
  .hero { display: block; min-height: 0; padding: 0 0 76px; border-radius: 0 0 32px 32px; background: var(--hero-overlay); }
  .hero-media { position: relative; inset: auto; z-index: 0; height: clamp(170px, 34vw, 260px); }
  .hero-in { position: relative; z-index: 1; margin-top: -70px; grid-template-columns: 1fr; }
  .hero[data-text-side="right"] .hero-in { grid-template-columns: 1fr; }
  .hero-copy, .hero[data-text-side="right"] .hero-copy, .hero[data-text-side="right"] .clocks { grid-column: 1; }
  .hero-img { object-position: var(--hero-pos-m); }
  .hero-scrim, .hero[data-text-side="right"] .hero-scrim { background: linear-gradient(180deg, color-mix(in srgb, var(--hero-overlay) 22%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--hero-overlay) 62%, transparent) 70%, var(--hero-overlay) 100%); }
  .hero-grid, .hero[data-text-side="right"] .hero-grid { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .ncard.feat { grid-column: span 2; flex-direction: column; }
  .ncard.feat .nimg { width: auto; min-height: 190px; }
  .ncard.feat .nbody { padding: 18px 20px 20px; justify-content: flex-start; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .news-grid .ncard:nth-child(8) { display: none; } /* keep two-column rows complete */
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app:last-child { grid-column: span 2; }
  .app { min-height: 150px; }
}

/* ---------- Phone ---------- */
@media (max-width: 599px) {
  body { font-size: 16.5px; }
  .news-grid .ncard:nth-child(n+7) { display: none; } /* phones show the six most recent */
  .wrap, .band-in, .hero-in { padding: 0 14px; }
  .logo img { height: 26px; }
  .bar-in { gap: 8px 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .signin { height: 38px; padding: 0 15px; }
  .hero { padding: 0 0 84px; border-radius: 0 0 28px 28px; }
  .hero-media { height: 160px; }
  .hero-in { margin-top: -64px; }
  .hero h1 { font-size: 2.45rem; margin-top: 14px; }
  .hero-sub { font-size: 1rem; }
  .clocks { width: 100%; grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .clock { padding: 2px 12px; }
  .clock-time { font-size: 1.2rem; }
  .clock-zone { max-width: none; white-space: normal; }
  .ticker { height: 42px; margin-top: -20px; }
  .ticker-tag { padding: 0 12px; font-size: 11.5px; }
  .ticker-tag .i { display: none; }
  .app-grid { gap: 10px; }
  .app { min-height: 124px; padding: 16px 6px 14px; border-radius: 20px; }
  .app::before { width: 100px; height: 100px; right: -34px; top: -40px; }
  .ico.lg { width: 48px; height: 48px; border-radius: 15px; }
  .app .ico { margin-bottom: 8px; }
  .app b { font-size: 1.02rem; }
  .app .sub { font-size: 13px; line-height: 1.25; }
  .app[aria-current="page"]::after { display: none; }
  .sec-head { align-items: flex-start; }
  .btn-ghost { height: 40px; font-size: 15px; }
  .svc-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .ncard.feat { grid-column: auto; }
  .ncard.feat .nimg { min-height: 170px; }
  .ncard:not(.feat) { flex-direction: row; }
  .ncard:not(.feat) .nimg { width: 104px; aspect-ratio: auto; flex: none; padding: 8px; align-items: flex-end; }
  .ncard:not(.feat) .nimg .art { width: 34px; height: 34px; right: 8px; top: 8px; }
  .ncard:not(.feat) .nph { font-size: 12px; line-height: 1.2; }
  .ncard:not(.feat) .nsum { display: none; }
  .ncard:not(.feat) .nbody { padding: 12px 14px; flex: 1; min-width: 0; }
  .ncard:not(.feat) h3 { font-size: 1.02rem; }
  .ncard.sk:not(.feat) .nimg { width: 104px; }
  .account { border-radius: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; padding-top: 34px; }
}
@media (max-width: 359px) {
  .apps-menu { display: none; }
  .logo img { height: 24px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app:last-child { grid-column: span 2; }
  .hero h1 { font-size: 2.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .flag, .pulse::after { animation: none; }
  .ticker-track { animation: none !important; }
  .ticker-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .set[aria-hidden="true"] { display: none; }
  .ticker-pause { display: none; }
  .app:hover, a.svc:hover, .ncard:hover, .ws:hover, .app:hover .ico, a.svc:hover .ico { transform: none; }
}
@media (hover: none) { .app:hover, a.svc:hover, .ncard:hover, .ws:hover { transform: none; } .app:hover .ico, a.svc:hover .ico { transform: none; } }

/* ---------- Phones and tablets: the banner picture is hidden unless the admin turns it on (default: hidden) ---------- */
@media (max-width: 899px) {
  .hero[data-mobile-banner="hide"] { background: radial-gradient(520px 260px at 100% 0%, rgb(224 51 79 / .4), transparent 62%), linear-gradient(145deg, #07163a 0%, #0b1f4d 55%, #0a2f86 100%); padding: 24px 0 70px; }
  .hero[data-mobile-banner="hide"] .hero-media { display: none; }
  .hero[data-mobile-banner="hide"] .hero-in { margin-top: 0; }
  .hero[data-mobile-banner="hide"] .hero-edit { top: 8px; }
}

/* ---------- Light everywhere, like the Store: white page, dark text. The navy blocks (date bar, banner, account panel, footer) are white with dark text. ---------- */
.datebar { color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
.db-date small, .db-time small { color: var(--muted); }
.hero { background: #fff; --hero-overlay: #ffffff; --hero-heading: #0b1f4d; --hero-subtitle: #0e1a3a; --hero-text: #3a4668; --hero-accent: #c8102e; }
.hero-sub, .hero h1, .hero-lede { text-shadow: none; }
.hero-grid { background-image: linear-gradient(rgb(0 56 147 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(0 56 147 / .05) 1px, transparent 1px); }
.hero-eyebrow { border-color: var(--line); background: #f3f6ff; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-lede::after { background: linear-gradient(90deg, var(--red), var(--blue)); }
.clocks { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); -webkit-backdrop-filter: none; backdrop-filter: none; }
.clock + .clock { border-left-color: var(--line); }
.clock-label, .clock-time small, .clock-zone, .clock-diff { color: var(--muted); }
.clock-date { color: var(--ink); }
.clock-diff { border-top-color: var(--line); }
.account { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.acc-art { display: none; }
.account .pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.acc-lead { color: var(--ink); }
.acc-note { color: var(--muted); }
.roles li { background: #f3f6ff; border-color: var(--line); color: var(--ink); }
.roles li i { box-shadow: 0 0 0 3px rgb(0 56 147 / .1); }
.ws { background: #fff; border-color: var(--line); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-sm); }
.ws:hover { background: #f3f6ff; border-color: var(--blue-2); }
.ws span.d { color: var(--muted); }
.site-foot { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.fbrand p, .foot-base { color: var(--muted); }
.fbrand p b, .fcol h2 { color: var(--ink); }
.fcol a { color: var(--muted); }
.fcol a:hover { color: var(--blue); }
.foot-base { border-top-color: var(--line); }
.social a { color: var(--blue); }
.hero[data-mobile-banner="hide"] { background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%); }
.hero h1 .hl { filter: none; }
.hero-lede { color: var(--hero-subtitle); }

/* ---------- profile picture in the header, and the sign-in / sign-out pages ---------- */
.avatar.has-img { overflow: hidden; padding: 0; background: #fff; border: 1px solid var(--line); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.auth-card { max-width: 440px; margin: clamp(24px, 6vw, 64px) auto; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-md); }
.auth-card h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 18px; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.auth-form input { height: 46px; width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.auth-form input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-2) 20%, transparent); }
.auth-form .pw { position: relative; display: block; }
.auth-form .pw input { padding-right: 70px; }
.auth-form .pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: #f3f6ff; color: var(--blue); font-weight: 700; cursor: pointer; }
.auth-form .signin { width: 100%; height: 48px; font-size: 16px; }
.auth-form .signin[disabled] { opacity: .7; cursor: default; }
.auth-msg { color: var(--red); min-height: 1.3em; margin: 0; font-size: 15px; }
.auth-links { text-align: center; color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.auth-links a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ts { min-height: 0; }

/* ---------- POS sign-in box (opened from the POS tiles) ---------- */
.pos-dialog { width: min(92vw, 420px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.pos-dialog::backdrop { background: rgb(11 31 77 / .45); }
.pos-dialog .auth-form { padding: clamp(18px, 4vw, 28px); }
.pos-dialog h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0; letter-spacing: -0.01em; }
.pos-dialog .auth-sub a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pos-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pos-actions .signin { height: 44px; }
.pos-actions .btn-ghost { height: 44px; }

/* ---------- Saathi AI: the badge picture as the app icon and as a floating button ---------- */
.ico.has-img { background: none; box-shadow: none; padding: 0; overflow: hidden; }
.ico.has-img::after { display: none; }
.ico.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ai-fab { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: 72px; height: 72px; border-radius: 50%; display: block; box-shadow: 0 10px 26px -8px rgb(11 31 77 / .55); background: #fff; transition: transform .15s; }
.ai-fab:hover { transform: scale(1.06); }
.ai-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ai-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
@media (max-width: 560px) { .ai-fab { width: 64px; height: 64px; } }

/* sign-in page: the optional Google button and the clear "create an account" area */
.auth-alt { margin-top: 14px; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-ghost.wide { display: flex; width: 100%; justify-content: center; }
.auth-new { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.auth-new p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

/* first-visit welcome tour */
.tour { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgb(8 18 48 / .55); backdrop-filter: blur(3px); }
.tour-card { width: min(440px, 100%); background: #fff; color: var(--ink); border-radius: 22px; padding: 26px 24px 20px; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .55); text-align: center; outline: none; }
.tour-ic { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.tour-card h2 { margin: 0 0 8px; font-size: 22px; }
.tour-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; font-size: 16px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--red, #c8102e); width: 22px; border-radius: 99px; }
.tour-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.tour-skip { margin-right: auto; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 4px; }
@media (prefers-reduced-motion: no-preference) { .tour-card { animation: tourIn .25s ease-out; } @keyframes tourIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } } }

/* An element with the hidden attribute must stay hidden even when a class gives it display:flex (the 6-digit code box and Google button on the sign-in page) */
[hidden] { display: none !important; }

/* ---- signed-in devices (Account security page) ---- */
.sec-devices { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.sec-devices h2 { margin: 0 0 6px; font-size: 1.15rem; }
.dev-list { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dev { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dev-info { flex: 1; min-width: 0; }
.dev-info b { display: inline; }
.dev-info small { display: block; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.dev .tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--ink); }
.dev .tag.here { background: color-mix(in srgb, #1a9a55 18%, transparent); }
.dev .btn-ghost { flex: none; padding: 6px 12px; font-size: .85rem; }

/* opening Store / POS / Saathi: bar across the top and a dimmed, busy link, so a tap never looks ignored */
html.is-opening::before { content: ''; position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; background: var(--accent, #E8472B); transform-origin: left; animation: opening-bar 12s cubic-bezier(.1,.6,.2,1) forwards; z-index: 99999; }
@keyframes opening-bar { from { transform: scaleX(.02); } to { transform: scaleX(.92); } }
a.is-opening { opacity: .65; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html.is-opening::before { animation: none; transform: scaleX(.6); } }
