/* Anudina reference pages: the look of the Anudina app, for plain static pages.
   Tokens are the family's (dixith-labs-design/tokens.css, accent "clay"). */
:root {
  --font: 'Space Grotesk', 'Noto Sans Kannada', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-kn: 'Noto Sans Kannada', 'Noto Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --bg: #F6F4EF; --bg-2: #EEEBE4; --surface: #FFFFFF; --surface-2: #FAF9F6;
  --ink: #1C1E24; --ink-2: #50555F; --ink-3: #6B7079; --line: rgba(28,30,36,.10); --line-2: rgba(28,30,36,.18);
  --accent: #B4532F; --accent-ink: #9A4526; --accent-soft: rgba(180,83,47,.11); --on-accent: #fff;
  --shadow-1: 0 1px 2px rgba(20,22,30,.05), 0 2px 8px rgba(20,22,30,.04);
  --r: 14px; --wrap: 44rem;
  color-scheme: light;
}
:root[data-accent="ink"] { --accent: #3552A8; --accent-ink: #2B4491; --accent-soft: rgba(53,82,168,.11); }
:root[data-accent="lagoon"] { --accent: #0E7C73; --accent-ink: #0A665E; --accent-soft: rgba(14,124,115,.11); }
:root[data-theme="dark"] {
  --bg: #111317; --bg-2: #16191E; --surface: #1A1D23; --surface-2: #1F232A;
  --ink: #ECEDEF; --ink-2: #A8ACB5; --ink-3: #8D919B; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --accent: #F0916B; --accent-ink: #F4A585; --accent-soft: rgba(240,145,107,.14); --on-accent: #0D1018;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}
:root[data-theme="dark"][data-accent="ink"] { --accent: #94A8F2; --accent-ink: #AEBCF6; --accent-soft: rgba(148,168,242,.14); }
:root[data-theme="dark"][data-accent="lagoon"] { --accent: #52C8B8; --accent-ink: #72D6C8; --accent-soft: rgba(82,200,184,.14); }

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/space-grotesk-var.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/fraunces-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Kannada'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/noto-kannada-400.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0C80-0CF3, U+1CD0, U+1CD2-1CD3, U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Noto Sans Kannada'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/noto-kannada-600.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0C80-0CF3, U+1CD0, U+1CD2-1CD3, U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Noto Sans Kannada'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/noto-kannada-700.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0C80-0CF3, U+1CD0, U+1CD2-1CD3, U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
:lang(kn) { font-family: var(--font-kn); line-height: 1.95; }
a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* language: with scripts on, one language at a time; without, both are shown */
html.js[data-lang="kn"] [data-l="en"], html.js[data-lang="en"] [data-l="kn"] { display: none !important; }
html:not(.js) span[data-l="en"]::before { content: " | "; color: var(--ink-3); }
html:not(.js) .an-body[data-l="en"] { border-top: 1px solid var(--line-2); margin-top: 2rem; padding-top: 1rem; }

/* the small header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.08rem; line-height: 1; }
.brand img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.top-nav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-left: auto; font-size: .9rem; line-height: 1.3; }
.top-nav { align-items: center; }
.top-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.top-nav a:hover { color: var(--accent); text-decoration: underline; }
.top-nav a.open-app { color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 8px 15px; font-weight: 600; line-height: 1.2; }
.top-nav a.open-app:hover { color: var(--on-accent); text-decoration: none; filter: brightness(1.07); }
@media (max-width: 30rem) { .top-nav { gap: 4px 12px; } }

/* the article */
main { max-width: var(--wrap); margin: 0 auto; padding: 18px 16px 40px; }
h1 { font-family: var(--display); font-size: clamp(1.6rem, 5.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; margin: .2em 0 .7em; color: var(--ink); }
h1:lang(kn), h1 [lang="kn"] { font-family: var(--font-kn); font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.anudina { --an-accent: var(--accent); --an-good: #15803D; --an-bad: #B42318; }
:root[data-theme="dark"] .anudina { --an-good: #5FC58E; --an-bad: #F07A6E; }
.anudina .an-body { font-size: 1.0625rem; }
.anudina .an-body h2 { font-size: 1.28rem; line-height: 1.35; margin: 1.7em 0 .5em; color: var(--ink); }
.anudina .an-body h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.anudina .an-body p { margin: 0 0 1em; }
.anudina .an-body ul, .anudina .an-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.anudina .an-body li { margin: .3em 0; }
.anudina .an-body li::marker { color: var(--accent); }
.anudina .an-body img { max-width: 100%; height: auto; }
.anudina .an-body blockquote { margin: 1em 0; padding: .6em 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); }
.dx-fast-link { font-size: .94rem; color: var(--ink-2); background: var(--accent-soft); border-radius: var(--r); padding: 10px 14px; margin: 1.6em 0 0; }
.anudina .an-live { margin: 0 0 22px; }

/* the foot */
.foot { border-top: 1px solid var(--line); margin-top: 8px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 18px 16px 34px; font-size: .88rem; line-height: 1.7; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--accent); }

/* the index */
.lead { color: var(--ink-2); margin: 0 0 1.1em; }
.find { display: block; width: 100%; font: inherit; font-size: 1rem; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); margin: 0 0 1.2em; }
.group { margin: 0 0 1.6em; }
.group h2 { font-size: 1.12rem; margin: 1.4em 0 .5em; display: flex; align-items: baseline; gap: .6em; }
.group h2 small { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.idx { list-style: none; margin: 0; padding: 0; columns: 2 15em; column-gap: 22px; }
.idx li { break-inside: avoid; margin: 0; }
.idx a { display: block; padding: 8px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); line-height: 1.5; }
.idx a:hover { color: var(--accent); }
.none { color: var(--ink-3); display: none; }

@media print { .top, .foot, .alt-lang { display: none; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* one small offer of the other language, for a reader who arrives from a search */
.alt-lang { margin: -.3em 0 1em; font-size: .86rem; line-height: 1.4; }
.alt-lang a { color: var(--ink-3); }
html:not(.js) .alt-lang { display: none; }

/* inside the app: no header, no foot, no promotion, and the app's own backdrop shows through */
html.embedded, html.embedded body { background: transparent; }
html.embedded .top, html.embedded .foot, html.embedded .alt-lang, html.embedded .dx-fast-link { display: none !important; }
html.embedded main { max-width: none; padding: 2px 0 28px; }
html.embedded h1 { margin-top: .1em; }

/* Coming up: the countdown, that day in brief, the same day's other observances, three actions, the years after */
.an-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 16px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.an-hero.is-today { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.an-hero-top { display: flex; align-items: center; gap: 16px; }
.an-ring-col { width: 92px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.an-ring-wrap { position: relative; width: 92px; height: 92px; flex: none; }
.an-ring { width: 100%; height: 100%; display: block; }
.an-ring-bg { fill: none; stroke: var(--line-2); stroke-width: 6; }
.an-ring-fg { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; animation: an-ring 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes an-ring { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--to); } }
.an-ring-fg.is-full { animation: an-ring 1.1s cubic-bezier(.2, .7, .2, 1) both, an-glow 2.4s ease-in-out 1.2s infinite; }
@keyframes an-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.an-ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.an-ring-n { font-family: var(--display); font-size: 1.85rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.an-ring-n.is-word { font-family: inherit; font-size: 1.05rem; padding: 0 6px; color: var(--accent-ink); }
.an-ring-u { font-size: .74rem; line-height: 1.3; color: var(--ink-3); text-align: center; white-space: nowrap; }
.an-hero-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.an-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); display: flex; align-items: center; gap: 7px; }
:lang(kn) .an-kicker { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.an-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; animation: an-pulse 1.6s ease-out infinite; }
@keyframes an-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.an-date { font-family: var(--display); font-size: 1.28rem; line-height: 1.25; font-weight: 700; color: var(--ink); }
:lang(kn) .an-date { font-family: var(--font-kn); line-height: 1.5; font-size: 1.15rem; }
.an-name { font-style: normal; font-weight: 600; color: var(--accent-ink); font-size: 1rem; }
.an-masa { font-style: normal; color: var(--ink-3); font-size: .85rem; line-height: 1.5; }
.an-brief, .an-also, .an-after { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.an-brief-h { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
:lang(kn) .an-brief-h { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.an-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.an-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.an-tile span { font-size: .74rem; color: var(--ink-3); }
.an-tile b { font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.an-tile i { font-style: normal; font-size: .76rem; color: var(--ink-2); }
.an-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.an-chip { font-size: .88rem; line-height: 1.3; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
a.an-chip:hover { background: var(--accent); color: var(--on-accent); }
.an-chip.is-plain { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.an-acts { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.an-act { font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.an-act:hover { border-color: var(--accent); color: var(--accent-ink); }
.an-act.is-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.an-act.is-main:hover { filter: brightness(1.07); color: var(--on-accent); }
.an-rows { list-style: none; margin: 0; padding: 0; }
.an-rows li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.an-rows li:last-child { border-bottom: 0; }
.an-r-d { color: var(--ink); font-weight: 600; }
.an-r-w, .an-r-g { color: var(--ink-3); font-size: .86rem; }
.an-r-g { text-align: right; }
.an-r-n { grid-column: 1 / -1; color: var(--accent-ink); font-size: .9rem; order: 5; }
.an-hero .an-note { margin: 14px 0 0; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 24rem) { .an-hero { padding: 16px 14px 14px; } .an-ring-col { width: 80px; } .an-ring-wrap { width: 80px; height: 80px; } .an-ring-n { font-size: 1.6rem; } .an-date { font-size: 1.12rem; } }
@media (prefers-reduced-motion: reduce) { .an-ring-fg, .an-ring-fg.is-full, .an-pulse { animation: none !important; } }

/* featured picture above Coming up (no words in it; phones get 4:3, wide windows 16:9) */
.an-feature { margin: 0 0 18px; border-radius: var(--r, 14px); overflow: hidden; background: #1b1411; aspect-ratio: 4 / 3; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.an-feature picture, .an-feature img { display: block; width: 100%; height: 100%; }
.an-feature img { object-fit: cover; }
@media (min-width: 700px) { .an-feature { aspect-ratio: 16 / 9; } }
