/* Fonts are served from this site itself (no Google Fonts): variable woff2 files, Latin letters in the Source
   families and Tamil letters in the Noto families, so a page downloads only what it shows. The Noto and Source Serif files are trimmed losslessly to the weights
   used (400 and up; the italic is the 400 instance), as in Seppam (web/scripts/fonts.py). Hashed names, kept
   a year. Licences: static/fonts/OFL-*.txt (the same families as the TTFs used for posters). */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3-latin-5.3.1.9ef356ea553a.woff2") format("woff2"); 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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/source-serif-4-latin-opsz-5.3.1.49cf285b4c90.woff2") format("woff2"); 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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-italic-5.3.1.391102c62d8a.woff2") format("woff2"); 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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans Tamil"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/noto-sans-tamil-tamil-5.3.0.4ad36ff9e1e2.woff2") format("woff2"); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: "Noto Serif Tamil"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/noto-serif-tamil-tamil-5.3.0.cc907b50d2de.woff2") format("woff2"); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }

/* ------------------------------------------------------------------
   அணு · Anu — same design language as Suzhi and oliyonresearch.com:
   navy band with the kolam motif, gold flame, paper background, serif headings.
   One stylesheet, no build step.
   ------------------------------------------------------------------ */
:root {
  --navy: #002663;
  --navy-deep: #001a45;
  --ink: #15213a;
  --ink-2: #3a4458;
  --muted: #566070;
  --gold: #c9962e;
  --gold-bright: #e9a108;
  --gold-soft: #eadbb3;
  --paper: #fbfaf6;
  --leaf: #f3eee2;
  --line: #ddd6c6;
  --line-soft: #ebe6d9;
  --white: #ffffff;
  --ok: #2f6b3a;
  --ok-bg: #e8f1e6;
  --warn: #8a5a00;
  --warn-bg: #fbf0d9;
  --danger: #a12d2d;
  --danger-bg: #f8e5e3;
  --sans: "Source Sans 3", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Noto Serif Tamil", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 6px;
  --wrap: 1152px;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 15px; line-height: 1.55; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.25; color: var(--navy); letter-spacing: -0.01em; margin: 0 0 .5rem; }
h1 { font-size: 26px; }
h2 { font-size: 19px; margin-top: 2.2rem; }
h3 { font-size: 15.5px; margin-top: 1.4rem; }
h4 { font-size: 15.5px; }
p { margin: 0 0 1rem; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
small, .muted { color: var(--muted); }
small { font-size: 12.5px; }
code { font-family: var(--mono); font-size: .88em; background: var(--leaf); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 .3rem; }
.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; }
.en { display: block; margin-top: .35rem; color: var(--muted); font-size: 13px; }
.site-main { flex: 1 0 auto; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 1.75rem 1.25rem 3.5rem; }
.site-main.wide { max-width: 1360px; }

/* ---------- primitives ---------- */
.btn, .btn-primary, .btn-secondary, .btn-gold, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--radius); border: 1px solid transparent;
  padding: .62rem 1rem; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold-bright); color: var(--navy-deep); border-color: var(--gold-bright); }
.btn-gold:hover { filter: brightness(1.05); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--leaf); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: .4rem .75rem; font-size: 13.5px; }
button:disabled, .btn-primary[disabled] { opacity: .55; cursor: not-allowed; }
.card { background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; padding: 1.25rem 1.4rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--leaf); padding: .08rem .62rem; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.chip.navy { background: #e6ecf6; color: var(--navy); border-color: transparent; }
.eyebrow { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 .5rem; }
.page-title { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--navy); line-height: 1.25; margin: 0 0 .6rem; }
/* the big title that starts a band of the home page (Thoothu's .section-title); headings of cards and panels stay 19 px */
.band-title { font-size: 26px; }
.section-title { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--navy); margin: 0 0 .8rem; }
.lead { font-size: 15px; color: var(--ink-2); max-width: 64ch; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.grid-3 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.empty { color: var(--muted); }
/* a hint, caption or note under a section or a field (Thoothu's .hint-line) */
.hint-line { font-size: 12.5px; color: var(--muted); }
/* a count or an English part beside a heading */
.h-en { font-family: var(--sans); font-size: 13px; font-weight: 400; }
.messages { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.messages li { padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: .5rem; background: #e6ecf6; border-left: 4px solid var(--navy); }
.messages li.success { background: var(--ok-bg); border-color: var(--ok); }
.messages li.error { background: var(--danger-bg); border-color: var(--danger); }
.messages li.info, .messages li.warning { background: var(--warn-bg); border-color: var(--gold); }

/* ---------- header and footer bands (same as Suzhi and Nigandu) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; color: #fff; background: linear-gradient(100deg, #001a45 0%, #002663 55%, #0a3a8a 100%); box-shadow: 0 2px 10px rgba(0,26,69,.25); }
.site-header::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 Q34 28 52 28 Q34 28 28 52 Q22 28 4 28 Q22 28 28 4 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.35' stroke-width='1'/%3E%3Ccircle cx='28' cy='28' r='1.3' fill='%23feb001' fill-opacity='0.5'/%3E%3C/svg%3E");
}
.site-header::before { opacity: .18; }
.brand { display: flex; align-items: center; line-height: 0; flex-shrink: 0; }
.brand img { height: 44px; width: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.truncate { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }
.lang-toggle { margin: 0; }
.lang-toggle button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: .2rem .75rem; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.lang-toggle button:hover { border-color: #feb001; background: rgba(255,255,255,.1); }
.flame { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; }
.flame .flame-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.flame .badge { animation: badge-breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flame .halo { animation: halo-pulse 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flame .flame-body { animation: flame-sway 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.flame .outer { animation: flame-outer 1.35s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.flame .mid { animation: flame-mid .95s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.flame .core { animation: flame-core .7s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.flame .blue { animation: flame-blue 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flame-sway { 0%, 100% { transform: rotate(-2.2deg); } 35% { transform: rotate(1.6deg); } 65% { transform: rotate(2.4deg); } }
@keyframes flame-outer { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.97, 1.05); } 60% { transform: scale(1.03, .97); } 80% { transform: scale(.99, 1.03); } }
@keyframes flame-mid { 0%, 100% { transform: scale(1, 1) translateY(0); opacity: .95; } 40% { transform: scale(.94, 1.08) translateY(-1px); opacity: 1; } 75% { transform: scale(1.05, .96) translateY(1px); opacity: .9; } }
@keyframes flame-core { 0%, 100% { transform: scale(1, 1); opacity: .95; } 50% { transform: scale(.9, 1.1); opacity: 1; } }
@keyframes flame-blue { 0%, 100% { transform: scale(1, 1); opacity: .8; } 50% { transform: scale(1.12, .9); opacity: 1; } }
@keyframes halo-pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes badge-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.flame.flame-sm, .flame.flame-sm .flame-svg { width: 26px; height: 26px; }
.flame.flame-sm .flame-svg { filter: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.site-footer { position: relative; flex-shrink: 0; margin-top: auto; overflow: hidden; background: linear-gradient(100deg, #00163a 0%, #001a45 60%, #002663 100%); color: #c9d2e2; }
.site-footer::before { opacity: .12; }
.footer-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.footer-grid { display: grid; gap: 2.2rem; padding: 2.75rem 0 1.5rem; }
.footer-brand img { width: 196px; height: auto; }
.footer-brand { margin-bottom: 1rem; display: inline-flex; }
.site-footer .tagline { font-family: var(--serif); font-style: italic; font-size: 15px; color: #feb001; margin: 0; }
.footer-dim { margin: .25rem 0 0; font-size: 13.5px; color: #b9c6dd; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: 14.5px; font-weight: 600; margin: 0 0 .85rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #feb001; text-decoration: underline; }
.footer-licence { font-size: 13.5px; color: #b9c6dd; margin: 0 0 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0; font-size: 13.5px; color: #b9c6dd; }
.footer-made { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
  .flame { width: 54px; height: 54px; }
  .site-main { padding: 2.25rem 1.5rem 4rem; }
}
/* kolam dot texture behind a hero */
.texture-kolam { position: relative; isolation: isolate; }
.texture-kolam::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../brand/kolam.91d1461588fb.svg") center / 56px 56px; opacity: .09;
  -webkit-mask-image: radial-gradient(46% 80% at 78% 50%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  mask-image: radial-gradient(46% 80% at 78% 50%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
}

/* ---------- home hero: the composition of oliyonresearch.com ----------
   Tamil name and tagline, heading, lead and search on the left; the living
   flame burns in a 260px column on the right with the kolam drawn faintly
   around it. Full width, above the main column. */
.hero { position: relative; z-index: 1; isolation: isolate; overflow-x: clip; border-bottom: 1px solid var(--line-soft); padding: 64px 0 76px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../brand/kolam.91d1461588fb.svg") center / 56px 56px; opacity: .09;
  -webkit-mask-image: radial-gradient(46% 80% at 78% 50%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
          mask-image: radial-gradient(46% 80% at 78% 50%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
}
.texture-grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "brand light" "copy light";
  column-gap: 56px; align-items: center;
}
.hero-wrap > * { min-width: 0; }
.hero-brand { grid-area: brand; align-self: end; }
.hero-brand .name { font-family: "Noto Serif Tamil", var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.3; color: var(--navy); margin: 0; }
.hero-brand .tagline { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 6px 0 0; }
.hero-brand .tagline:lang(ta) { font-size: .95rem; letter-spacing: .02em; }
.hero-copy { grid-area: copy; align-self: start; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.6vw, 2.55rem); line-height: 1.32; letter-spacing: -.01em; color: var(--navy); margin: 28px 0 20px; max-width: 18ch; }
.hero .lead { max-width: 62ch; font-size: 1.08rem; line-height: 1.8; color: var(--ink); margin: 0; }
.hero-free { display: inline-flex; align-items: center; gap: .45rem; color: var(--ok); font-weight: 500; font-size: 15px; margin-top: .9rem; }
.hero-free svg { width: 16px; height: 16px; }

.hero-light { grid-area: light; position: relative; justify-self: center; width: min(100%, 11rem); }
.hero-light::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: 260%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,196,92,.42), rgba(255,196,92,.16) 45%, rgba(255,196,92,.04) 72%, rgba(255,196,92,0) 100%);
  animation: glow-breathe 3.9s ease-in-out infinite;
}
.hero-flame { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; animation: hero-flame-in 1.6s cubic-bezier(.22,.61,.36,1) both; }
.hero-flame__body { transform-box: fill-box; transform-origin: 50% 100%; animation: hero-flame-flicker 1.9s ease-in-out infinite; }
.hero-flame__glow { animation: glow-flicker 1.3s ease-in-out infinite alternate; }
.hero-flame__hot { animation: hot-flicker 2.3s ease-in-out infinite; }
@keyframes hero-flame-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hero-flame-flicker {
  0% { transform: scale(1, 1); } 14% { transform: scale(1.006, .991); } 31% { transform: scale(.995, 1.012); }
  47% { transform: scale(1.004, .996); } 66% { transform: scale(.996, 1.01); } 83% { transform: scale(1.003, .997); } 100% { transform: scale(1, 1); }
}
@keyframes glow-flicker { 0% { opacity: .58; } 30% { opacity: .74; } 55% { opacity: .62; } 80% { opacity: .72; } 100% { opacity: .66; } }
@keyframes hot-flicker { 0%, 100% { opacity: .72; } 40% { opacity: .86; } 70% { opacity: .66; } }
@keyframes glow-breathe {
  0% { opacity: .86; scale: .985; } 22% { opacity: 1; scale: 1.02; } 40% { opacity: .9; scale: .995; }
  63% { opacity: 1; scale: 1.03; } 81% { opacity: .88; scale: 1; } 100% { opacity: .86; scale: .985; }
}
@media (max-width: 760px) {
  .hero { padding: 36px 0 44px; }
  .hero::before {
    -webkit-mask-image: radial-gradient(60% 40% at 80% 14%, #000 0%, rgba(0,0,0,.5) 50%, transparent 100%);
            mask-image: radial-gradient(60% 40% at 80% 14%, #000 0%, rgba(0,0,0,.5) 50%, transparent 100%);
  }
  /* one composition on a phone: the flame beside the Tamil name, the heading,
     lead and search full width underneath */
  .hero-wrap { padding: 0 1.25rem; grid-template-columns: minmax(0, 1fr) 4.25rem; grid-template-areas: "brand light" "copy copy"; column-gap: 20px; }
  .hero-brand { align-self: center; }
  .hero-brand .name { font-size: 1.5rem; }
  .hero-brand .tagline { font-size: .72rem; letter-spacing: .12em; }
  .hero-brand .tagline:lang(ta) { font-size: .85rem; letter-spacing: .02em; }
  .hero-light { width: 100%; align-self: center; }
  .hero-light::before { width: 320%; }
  .hero h1 { margin-top: 24px; max-width: none; font-size: 1.55rem; }
  .hero .lead { font-size: 1rem; }
}

/* Avvaiyar on the kural: anu, the atom, in the oldest Tamil image of smallness */
.kural-card { background: var(--white); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: 8px; padding: 1.1rem 1.25rem; max-width: 620px; margin: 2.25rem auto 0; box-shadow: 0 18px 40px -24px rgba(0,38,99,.35); }
.kural-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.12rem; color: var(--navy); line-height: 1.6; }
.kural-card blockquote span { display: block; }
@media (min-width: 760px) { .kural-card blockquote span { white-space: nowrap; } }
.kural-card cite { display: block; margin-top: .45rem; font-style: normal; font-size: 12.5px; color: var(--muted); }
.kural-card p { margin: .7rem 0 0; font-size: 15px; color: var(--ink-2); }
.searchbar { position: relative; display: flex; gap: .5rem; margin-top: 1.4rem; max-width: 640px; min-width: 0; }
.searchbar .btn-primary { flex-shrink: 0; }
.searchbar input { flex: 1; min-width: 0; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--white); padding: .7rem .9rem; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.searchbar input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,161,8,.18); }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px -12px rgba(0,26,69,.3); display: none; max-height: 360px; overflow-y: auto; }
.sugg.on { display: block; }
.sugg a { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.sugg a:last-child { border-bottom: 0; }
.sugg a.sel, .sugg a:hover { background: var(--leaf); color: var(--ink); }
.sugg .sym { font-family: var(--serif); font-weight: 600; color: var(--navy); min-width: 2.2rem; text-align: center; font-size: 1.1rem; }
.sugg .ta { font-weight: 500; }
.sugg small { margin-left: auto; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .9rem; font-size: 12.5px; color: var(--muted); }
.quick a { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .1rem .7rem; text-decoration: none; color: var(--ink-2); font-size: 13.5px; }
.quick a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- layer switch ---------- */
.layer-bar { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .5rem 0 1rem; }
.layer-bar .label { font-size: 15px; font-weight: 600; color: var(--navy); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.seg button { border: 0; border-right: 1px solid var(--line-soft); background: transparent; padding: .42rem .75rem; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { background: var(--leaf); }

/* ---------- the periodic table ---------- */
.ptable-layout { display: grid; gap: 1.25rem; align-items: start; }
.ptable-layout > * { min-width: 0; }
.ptable-scroll { overflow-x: auto; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
.ptable { position: relative; display: grid; grid-template-columns: repeat(18, minmax(50px, 1fr)); grid-template-rows: repeat(7, auto) 14px repeat(2, auto); gap: 3px; min-width: 920px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 66px; padding: 4px 5px 5px; border-radius: 5px; border: 1px solid; text-decoration: none; color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; overflow: hidden; }
.tile:hover, .tile:focus-visible, .tile.on { transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(0,26,69,.35); z-index: 2; }
.tile.on { outline: 2px solid var(--navy); outline-offset: 1px; }
.tile .z { font-size: 10px; line-height: 1; opacity: .75; font-family: var(--mono); }
.tile .s { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1; margin-top: 2px; }
.tile .n { font-size: 10.5px; line-height: 1.2; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .n.fb { font-style: italic; opacity: .6; }
.tile.dim { opacity: .2; }
.tile.hit { box-shadow: 0 0 0 2px var(--gold-bright); }
.tile-gap { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 5px; font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; }
.cat-alkali { background: #fde6db; border-color: #eaa88a; color: #7d2e0f; }
.cat-alkaline { background: #fcefd3; border-color: #e2b35b; color: #6e4604; }
.cat-transition { background: #e6eaf7; border-color: #9eabdf; color: #233a86; }
.cat-post { background: #e1ecf4; border-color: #92b5cf; color: #1d4a6b; }
.cat-metalloid { background: #eff0d5; border-color: #c2bc63; color: #57540d; }
.cat-nonmetal { background: #dff0e5; border-color: #84bf9b; color: #1d5a36; }
.cat-halogen { background: #dbf1f1; border-color: #7cc0c0; color: #125656; }
.cat-noble { background: #eee4f6; border-color: #b596d2; color: #4b286b; }
.cat-lanthanide { background: #f9e3ec; border-color: #da93b0; color: #761d43; }
.cat-actinide { background: #f7e0e0; border-color: #d79090; color: #751d1d; }
.cat-unknown { background: #eeeeec; border-color: #bdbdb8; color: #4a4a46; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem .45rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.legend button { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-soft); background: var(--white); border-radius: 999px; padding: .12rem .65rem .12rem .35rem; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.legend button[aria-pressed="true"] { border-color: var(--navy); background: #e6ecf6; color: var(--navy); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid; }
.table-note { font-size: 12.5px; color: var(--muted); margin: .4rem 0 0; }

.preview { grid-row: 1 / span 3; grid-column: 3 / span 10; align-self: stretch; margin: 0 .6rem .4rem; background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; padding: .8rem 1rem; overflow: hidden; box-shadow: 0 10px 28px -20px rgba(0,38,99,.45); }
.preview .hint { color: var(--muted); font-size: 15px; display: flex; gap: .7rem; align-items: center; }
.preview .hint svg { width: 34px; height: 34px; color: var(--gold); flex-shrink: 0; }
.pv-head { display: flex; gap: 1rem; align-items: center; }
.pv-sym { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 8px; border: 1px solid; flex-shrink: 0; }
.pv-sym b { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.pv-sym small { font-family: var(--mono); font-size: 11px; color: inherit; opacity: .8; }
.pv-title { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.pv-en { color: var(--muted); font-size: 14px; }
.pv-names { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .15rem .9rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pv-names li { display: grid; grid-template-columns: 6.6rem 1fr; gap: .4rem; font-size: 14px; align-items: baseline; }
.pv-names li span:first-child { color: var(--muted); font-size: 13px; }
.pv-names li b { font-weight: 600; color: var(--ink); }
.pv-facts { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.pv-facts .btn-primary { margin-left: auto; }



/* ---------- home sections ---------- */
.stats-strip { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin: 2rem 0 0; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-strip div b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--navy); line-height: 1.1; }
.stats-strip div span { font-size: 12.5px; color: var(--muted); }
.who { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.who .card h3 { margin-top: 0; }
.who .card p { color: var(--ink-2); font-size: 15px; }
.aimpon { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
@media (min-width: 768px) { .who { grid-template-columns: repeat(3, minmax(0, 1fr)); } .who .btn-small { white-space: normal; } }

/* ---------- element page ---------- */
.el-head { display: grid; gap: 1.4rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.el-badge { display: flex; flex-direction: column; justify-content: space-between; width: 128px; height: 128px; border-radius: 10px; border: 1.5px solid; padding: .55rem .7rem; }
.el-badge .z { font-family: var(--mono); font-size: 13px; }
.el-badge .s { font-family: var(--serif); font-size: 48px; font-weight: 600; line-height: 1; }
.el-badge .m { font-family: var(--mono); font-size: 12px; }
.el-head h1 { font-size: 2.4rem; margin: 0; }
.el-head .en-name { font-size: 1.05rem; color: var(--muted); }
.el-head .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.el-atom { width: 150px; height: 150px; justify-self: start; }
.el-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; font-size: 15px; }
.el-nav a { text-decoration: none; }
.jump { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.1rem 0 .4rem; }
.jump a { font-size: 13.5px; padding: .18rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--white); color: var(--ink-2); }
.jump a:hover { border-color: var(--navy); color: var(--navy); }
.sect { margin-top: 2rem; scroll-margin-top: 96px; }
.sect > h2 { display: flex; align-items: center; gap: .55rem; font-size: 19px; margin: 0 0 .25rem; }
.sect > h2 svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.sect > .sub { color: var(--muted); font-size: 12.5px; margin-bottom: .9rem; }
.layer-block { background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: .7rem; overflow: hidden; }
.layer-block > header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .55rem .95rem; background: var(--leaf); border-bottom: 1px solid var(--line-soft); }
.layer-block > header b { color: var(--navy); font-weight: 600; font-size: 15px; }
.layer-block > header a { font-size: 12.5px; }
.name-row { display: grid; gap: .25rem; padding: .7rem .95rem; border-top: 1px solid var(--line-soft); }
.name-row:first-of-type { border-top: 0; }
.name-row .word { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.name-row .word strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.name-row .roman { color: var(--muted); font-size: 13px; font-style: italic; }
.name-row .src { font-size: 12.5px; color: var(--ink-2); }
.name-row .src a { word-break: break-word; }
.name-row .note { font-size: 12.5px; color: var(--ink-2); }
.layer-empty { padding: .65rem .95rem; font-size: 12.5px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.fact { background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; padding: .6rem .8rem; }
.fact .k { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.fact .v { font-size: 15px; color: var(--ink); margin-top: .1rem; }
.fact .v.mono { font-family: var(--mono); font-size: 14px; }
.prose-box { background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; padding: 1rem 1.1rem; }
.prose-box p:last-child { margin-bottom: 0; }
.shells { display: flex; flex-wrap: wrap; gap: .3rem; }
.shells span { font-family: var(--mono); font-size: 13.5px; border: 1px solid var(--line); border-radius: 5px; padding: .05rem .45rem; background: var(--white); }
.cite-box pre { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 15px; background: var(--white); border: 1px solid var(--line); padding: .75rem .9rem; border-radius: var(--radius); margin: .3rem 0 .6rem; }
.links { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.links a { display: flex; gap: .65rem; align-items: flex-start; padding: .65rem .8rem; border: 1px solid var(--line-soft); background: var(--white); border-radius: 8px; text-decoration: none; color: var(--ink); }
.links a:hover { border-color: var(--navy); }
.links a b { display: block; color: var(--navy); font-weight: 600; font-size: 15px; }
.links a small { font-size: 12.5px; }
.links svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.notice { background: var(--warn-bg); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: .7rem .95rem; font-size: 15px; color: var(--ink-2); margin: 1.2rem 0; }
.foot-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.foot-actions form { margin: 0; }
.compound-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.compound-chips a { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; text-decoration: none; background: var(--white); font-size: 13.5px; color: var(--ink); }
.compound-chips a b { color: var(--navy); font-family: var(--serif); margin-right: .25rem; }
@media (min-width: 720px) { .el-head { grid-template-columns: auto 1fr auto; } .el-head h1 { font-size: 2.8rem; } }

/* ---------- compounds: builder and library ---------- */
.builder { display: grid; gap: 1.25rem; align-items: start; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; max-height: 330px; overflow-y: auto; padding: 2px; }
.mini-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 2px; border-radius: 5px; border: 1px solid; font: inherit; cursor: pointer; min-height: 52px; }
.mini-grid button b { font-family: var(--serif); font-size: 16px; line-height: 1; }
.mini-grid button span { font-size: 9.5px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-grid button small { font-size: 9px; font-family: var(--mono); color: inherit; opacity: .7; }
.filter-input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; font: inherit; font-size: 15px; background: var(--white); margin-bottom: .6rem; }
.reagents { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 48px; padding: .5rem; border: 1px dashed var(--line); border-radius: 8px; margin: .8rem 0; align-items: center; }
.reagents .hint { color: var(--muted); font-size: 12.5px; }
.reagent { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; border: 1px solid; padding: .1rem .3rem .1rem .65rem; font-size: 14px; }
.reagent b { font-family: var(--serif); }
.reagent button { border: 0; background: rgba(255,255,255,.7); border-radius: 50%; width: 22px; height: 22px; font: inherit; font-size: 13px; line-height: 1; cursor: pointer; color: inherit; }
.formula-bar { display: flex; align-items: baseline; gap: .7rem; font-size: 15px; color: var(--muted); }
.formula-bar output { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.reactor { margin-top: .8rem; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--white); text-align: center; }
.reactor svg { width: 100%; max-width: 340px; height: 160px; display: block; margin: 0 auto; }
.reactor .status { font-size: 13px; color: var(--muted); padding: 0 0 .6rem; font-family: var(--mono); letter-spacing: .04em; }
.result-card { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--white); padding: 1.1rem 1.2rem; }
.result-card .formula { font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.result-card h3 { margin: .25rem 0 .2rem; }
.lib-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0 1rem; }
.lib-filters select { border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .6rem; font: inherit; font-size: 13.5px; background: var(--white); }
.lib-filters label { display: inline-flex; gap: .4rem; align-items: center; font-size: 13.5px; }
.library { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lib-card { display: block; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--white); padding: .8rem .95rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.lib-card:hover { border-color: var(--navy); transform: translateY(-1px); color: var(--ink); }
.lib-card .f { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.lib-card .t { font-weight: 600; font-size: 15px; }
.lib-card .e { font-size: 13px; color: var(--muted); }
.lib-card .trad { margin-top: .35rem; }
@media (min-width: 900px) { .builder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- compare ---------- */
.cmp-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.cmp-filters a { font-size: 13.5px; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .75rem; text-decoration: none; background: var(--white); color: var(--ink-2); }
.cmp-filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cmp-filters select { border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .55rem; font: inherit; font-size: 13.5px; background: var(--white); }
table.plain { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--white); border: 1px solid var(--line-soft); }
table.plain th { text-align: left; padding: .6rem .75rem; background: var(--leaf); color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line); font-size: 12px; position: sticky; top: 0; }
table.plain td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.plain tr:last-child td { border-bottom: 0; }
table.plain.compact td, table.plain.compact th { padding: .4rem .6rem; }
table.plain.compact td { font-size: 13px; }
table.plain th small { font-size: 12px; }
.table-scroll { overflow-x: auto; }
/* on the narrowest phones long code paths in a table cell wrap instead of widening the page (the API page at 360 px) */
@media (max-width: 379px) { table.plain code { overflow-wrap: anywhere; } }
.cmp td .w { display: block; font-weight: 500; }
.cmp td .w + .w { color: var(--ink-2); font-weight: 400; }
.cmp td.diff { background: #fff8e8; }
.cmp .sym { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.1rem; text-decoration: none; }
.ev { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: .3rem; vertical-align: middle; }
.ev.attested { background: var(--ok); }
.ev.reported { background: var(--gold-bright); }
.ev.unverified { background: transparent; border: 1.5px solid var(--danger); }
.ev-key { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 12.5px; color: var(--muted); margin: .4rem 0 0; }

/* ---------- learn ---------- */
.learn-bar { display: grid; gap: .8rem; margin: 1.2rem 0; }
.learn-bar .row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.learn-bar .row > span { font-size: 15px; font-weight: 600; color: var(--navy); min-width: 9rem; }
.tabs { display: flex; gap: .4rem; margin: 1rem 0; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: .6rem .9rem; font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--gold); color: var(--navy); font-weight: 600; }
.flashcard { perspective: 1200px; max-width: 420px; height: 280px; margin: 1rem auto; cursor: pointer; }
.flashcard .inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flashcard.flipped .inner { transform: rotateY(180deg); }
.flashcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; border: 1.5px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.2rem; text-align: center; }
.flashcard .back { transform: rotateY(180deg); background: var(--white); border-color: var(--line); color: var(--ink); }
.flashcard .front b { font-family: var(--serif); font-size: 76px; line-height: 1; }
.flashcard .front small { font-family: var(--mono); font-size: 14px; color: inherit; }
.flashcard .back .big { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.2; }
.flashcard .back ul { list-style: none; padding: 0; margin: .7rem 0 0; font-size: 14px; color: var(--ink-2); }
.card-nav { display: flex; justify-content: center; align-items: center; gap: .6rem; }
.card-nav .count { font-family: var(--mono); font-size: 14px; color: var(--muted); min-width: 5rem; text-align: center; }
.quiz { max-width: 640px; margin: 1rem auto; }
.quiz .q { font-family: var(--serif); font-size: 19px; color: var(--navy); margin: .4rem 0 1rem; }
.quiz .prompt { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 96px; padding: 0 1rem; border-radius: 10px; border: 1.5px solid; font-family: var(--serif); font-size: 40px; font-weight: 600; margin-bottom: .6rem; }
.quiz .prompt.word { font-size: 28px; }
.quiz .opts { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.quiz .opts button { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: .75rem .9rem; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.quiz .opts button:hover:not(:disabled) { border-color: var(--navy); }
.quiz .opts button.right { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.quiz .opts button.wrong { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.quiz .feedback { min-height: 1.6rem; margin: .8rem 0; font-weight: 500; }
.quiz .progress { height: 6px; background: var(--leaf); border-radius: 999px; overflow: hidden; margin-bottom: .8rem; }
.quiz .progress i { display: block; height: 100%; background: var(--gold-bright); width: 0; transition: width .3s; }
.score { text-align: center; padding: 1.5rem 0; }
.score b { display: block; font-family: var(--serif); font-size: 3rem; color: var(--navy); }

/* ---------- glossary, search, notebook, propose ---------- */
.term { padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.term h3 { margin: 0 0 .3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.term h3 small { font-family: var(--sans); font-size: 13px; }
.term .alts { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .5rem; }
.term p { margin: 0 0 .25rem; color: var(--ink-2); }
.result-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; }
.result-list li { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.result-list .sym { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); min-width: 2.6rem; text-decoration: none; }
.result-list .ta { font-weight: 600; font-size: 15px; }
.nb-item { display: grid; gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.nb-item textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; font: inherit; font-size: 15px; min-height: 3.2rem; background: var(--white); }
.nb-item form { margin: 0; }
.nb-title { font-size: 15.5px; }
.recent { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- forms ---------- */
form.std label { display: block; font-weight: 500; font-size: 15px; margin-bottom: .35rem; color: var(--navy); }
form.std p, form.std .field { margin: 0 0 1.1rem; }
form.std input[type=text], form.std input[type=email], form.std input[type=search], form.std input[type=url], form.std input[type=number], form.std input[type=date], form.std textarea, form.std select {
  display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: .62rem .85rem; font: inherit; font-size: 15px; color: var(--ink); outline: none;
}
form.std textarea { min-height: 5rem; line-height: 1.55; }
form.std input:focus, form.std textarea:focus, form.std select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,161,8,.18); }
form.std .helptext { display: block; font-size: 12.5px; color: var(--muted); margin-top: .25rem; font-weight: 400; }
form.std .errorlist { color: var(--danger); list-style: none; padding: 0; margin: .25rem 0 0; font-size: 12.5px; }
form.std .checkbox { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--ink); }
form.std .checkbox input { margin-top: .35rem; }
form.std .submit { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
form.std ul.radio, form.std [id$=decision] { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
form.std [id$=decision] label, form.std [id$=decision] li label { font-weight: 500; display: flex; gap: .45rem; align-items: center; margin: 0; }
.narrow { max-width: 480px; margin: 1rem auto; }
.wide-narrow { max-width: 660px; }
/* long Tamil · English button labels wrap on phones instead of widening the page */
.consent-card .btn, #my-data .btn-small { white-space: normal; max-width: 100%; text-align: center; }
.otp-input { font-size: 26px !important; letter-spacing: .35em; text-align: center; }
.or-line { display: flex; align-items: center; gap: .75rem; font-size: 12px; color: var(--muted); margin: 1.2rem 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; justify-content: center; min-height: 44px; }
.google-error { margin: .6rem 0 0; padding: .55rem .8rem; border-radius: var(--radius); background: var(--warn-bg); border-left: 3px solid var(--gold); font-size: 12.5px; color: var(--ink-2); }
.google-btn[hidden], .google-error[hidden] { display: none; }
.prose { max-width: 820px; }
.prose p, .prose li { font-size: 15px; }
.two-col { display: grid; gap: 0 1.2rem; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- legal documents, consent, credits (as Nigandu) ---------- */
.legal-doc { max-width: 860px; }
.legal-doc .doc-head { margin-bottom: 1.6rem; }
.legal-doc .doc-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: 12.5px; color: var(--muted); margin: .2rem 0 .8rem; }
.legal-doc .doc-lang { font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--gold); padding-left: .8rem; }
/* an English line inside a 12.5 px note stays below it (as Thoothu's .sso-note .en) */
.doc-lang .en, .helptext .en { font-size: 12px; }
.doc-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.doc-links a { font-size: 13.5px; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; }
.legal-doc section { margin: 0 0 1.6rem; }
.legal-doc section > h2 { font-size: 19px; border-bottom: 1px solid var(--line); padding-bottom: .35rem; margin-top: 1.5rem; }
.legal-doc li { margin-bottom: .45rem; }
.ta-summary { background: var(--leaf); border-radius: var(--radius); padding: .7rem 1rem; line-height: 1.55; font-size: 15px; }
.doc-list { padding-left: 1.2rem; }
.consent-box { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem .4rem; margin: 0 0 1.1rem; background: var(--white); }
.consent-box legend { font-weight: 600; color: var(--navy); padding: 0 .4rem; }
.consent-box .helptext { margin: 0 0 .8rem; font-size: 12.5px; color: var(--muted); }
form.std .consent-item { margin: 0 0 .75rem; line-height: 1.55; font-size: 15px; }
form.std .consent-item.has-error { color: var(--danger); }
.consent-item .req { color: var(--danger); }
.source-card { margin-bottom: 1rem; }
.source-facts { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: .45rem 1rem; margin: 0; font-size: 15px; }
.source-facts dt { font-weight: 600; color: var(--navy); }
.source-facts dd { margin: 0; }
.ref { font-family: var(--mono); letter-spacing: .03em; }
@media (max-width: 640px) { .source-facts { grid-template-columns: 1fr; } }

/* ---------- admin console ---------- */
.console { display: grid; gap: 1.6rem; align-items: start; }
.console-nav { display: flex; flex-wrap: wrap; gap: .15rem; background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; padding: .7rem; }
.console-head { width: 100%; margin: 0 0 .4rem; padding: .2rem .5rem; font-weight: 700; color: var(--navy); font-size: 15px; }
.console-sep { width: 100%; margin: .7rem .5rem .2rem; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.console-nav a { display: block; padding: .45rem .6rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.3; }
.console-nav a small { display: none; font-size: 12px; color: var(--muted); font-weight: 400; }
.console-nav a:hover { background: var(--leaf); }
.console-nav a.on { background: var(--navy); color: #fff; }
.console-nav a.on small { color: #cfd8ea; }
.console-main { min-width: 0; }
.console-main h1 { margin-top: 0; font-size: 26px; }
.console-main .card { margin-bottom: 1.2rem; }
.console-main .filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.console-main .filters input, .console-main .filters select { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .6rem; font: inherit; font-size: 13.5px; background: var(--white); }
.console-main .filters input[type=search], .console-main .filters input[type=text] { flex: 1 1 200px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; margin: 1rem 0 1.4rem; }
.tile-stat { display: block; background: var(--white); border: 1px solid var(--line-soft); border-left: 4px solid var(--navy); border-radius: 8px; padding: .8rem 1rem; text-decoration: none; color: var(--ink); }
a.tile-stat:hover { border-color: var(--navy); }
.tile-stat b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.tile-stat span { display: block; font-size: 12.5px; }
.tile-stat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: .15rem; }
.tile-stat.hot { border-left-color: var(--gold-bright); }
.tile-stat.alert { border-left-color: var(--danger); }
.tile-stat.alert b { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; position: relative; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.bar span { display: block; background: var(--navy); border-radius: 3px 3px 0 0; min-height: 1px; }
.bar small { position: absolute; bottom: -1.25rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; color: var(--muted); }
.quote-box { background: var(--leaf); border-left: 3px solid var(--line); padding: .7rem .9rem; border-radius: 6px; }
.expertise-grid ul, .expertise-grid > div { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .3rem 1rem; }
.expertise-grid label { font-weight: 400 !important; display: flex !important; gap: .5rem; align-items: center; margin: 0 !important; }
tr.dim td { opacity: .55; }
/* team page and hand-over (the reviewer master) */
.row-actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.team-table th small { display: block; font-weight: 400; }
.row-actions .btn, .team-table .pill { white-space: normal; text-align: left; }
.inline-action > summary { list-style: none; cursor: pointer; }
.inline-action > summary::-webkit-details-marker { display: none; }
.inline-action[open] > summary { background: var(--navy); color: #fff; }
.inline-action .inline-form { margin-top: .5rem; flex-direction: column; align-items: stretch; min-width: 14rem; }
.inline-action input[type=text], .inline-action select, .inline-form input[type=text], .assign-bar select { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .6rem; font: inherit; font-size: 13.5px; background: var(--white); max-width: 100%; }
.assign-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--leaf); border-radius: 8px; padding: .6rem .75rem; margin: 0 0 1rem; }
.assign-bar b { font-size: 15px; color: var(--navy); }
.role-rules { display: grid; gap: .35rem 1rem; margin: 0; }
.role-rules dt { margin-top: .5rem; }
.role-rules dd { margin: 0; font-size: 15px; }
.role-rules dd .en { display: block; color: var(--muted); font-size: 13px; margin-top: .15rem; }
.role-rules .pill { white-space: normal; }
@media (min-width: 720px) { .role-rules { grid-template-columns: 14rem 1fr; } .role-rules dt { margin-top: 0; } }
.held-note { background: #e6ecf6; border-left: 3px solid var(--navy); border-radius: 6px; padding: .6rem .85rem; margin: 0 0 1rem; font-size: 15px; }
.pagination { display: flex; gap: 1.2rem; align-items: center; margin-top: 1.4rem; }
@media (min-width: 900px) {
  .console { grid-template-columns: 220px 1fr; }
  .console-nav { position: sticky; top: 92px; flex-direction: column; flex-wrap: nowrap; }
  .console-nav a small { display: block; }
}

/* ---------- print (Save as PDF) ---------- */
@media print {
  .site-header, .site-footer, .foot-actions, .jump, .el-nav, .layer-bar, .searchbar, .quick, .preview, .messages, .layer-block > header a { display: none !important; }
  html, body { background: #fff; }
  .site-main { padding: 0; max-width: none; }
  .sect { break-inside: avoid; }
  .print-head { display: flex !important; }
}
.print-head { display: none; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: .5rem; margin-bottom: 1rem; }
.print-head img { height: 40px; }

/* ---------- names shared with Nigandu's templates (console, legal) ---------- */
.btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn.secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.secondary:hover { background: var(--navy); color: #fff; }
.btn.small { padding: .4rem .75rem; font-size: 13.5px; }
.btn.wrap { white-space: normal; text-align: left; max-width: 100%; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .05rem .6rem; font-size: 12px; font-weight: 500; background: var(--leaf); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: var(--ok-bg); color: var(--ok); }
.pill.gold { background: #fbf0d9; color: #8a5a00; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.danger, .pill.bad { background: var(--danger-bg); color: var(--danger); }
.pill.navy { background: #e6ecf6; color: var(--navy); }
.table-wrap { overflow-x: auto; }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 1.2rem 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.helptext { display: block; font-size: 12.5px; color: var(--muted); }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.cmp-filters a.btn-gold { background: var(--gold-bright); color: var(--navy-deep); border-color: var(--gold-bright); font-weight: 600; }

/* ---------- shared Oliyon sign-in: "Continue as" ---------- */
.sso-continue { margin: .4rem 0 0; }
.sso-continue button { width: 100%; justify-content: flex-start; gap: .75rem; padding: .7rem .9rem; white-space: normal; text-align: left; }
.sso-continue button > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-size: 15.5px; }
.sso-continue button small { color: #cfd8ea; font-size: 12.5px; font-weight: 400; margin-top: .1rem; }
.sso-continue .flame.flame-sm { width: 30px; height: 30px; }
.sso-note { margin: .55rem 0 0; font-size: 12.5px; color: var(--ink-2); }
.sso-note span { display: block; color: var(--muted); font-size: 12px; margin-top: .15rem; }

/* ---------- listen and share ---------- */
.listen { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; vertical-align: middle; padding: 0; transition: border-color .15s, background-color .15s; }
.listen[hidden] { display: none; }
.listen:hover { border-color: var(--navy); background: #e6ecf6; }
.listen.speaking { background: var(--navy); color: #fff; border-color: var(--navy); }
.listen svg { width: 18px; height: 18px; }
.listen.sm { width: 28px; height: 28px; }
.listen.sm svg { width: 15px; height: 15px; }
.share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: .38rem .8rem; font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; line-height: 1.2; }
.share-btn[hidden] { display: none; }
.share-btn:hover { border-color: var(--navy); color: var(--navy); background: #f2f5fb; }
.share-btn svg { width: 17px; height: 17px; flex: none; }
.share-btn.wa { color: #136c3a; border-color: #b8dcc5; background: #f2faf5; }
.share-btn.wa:hover { border-color: #136c3a; color: #136c3a; }
.share.compact .share-btn { padding: .3rem .65rem; font-size: 13.5px; }

/* ---------- element of the day ---------- */
.today-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.3rem; align-items: start; margin: 2rem 0 0; padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: 8px; box-shadow: 0 18px 40px -28px rgba(0,38,99,.35); }
.today-tile { width: 92px; min-height: 92px; }
.today-tile .s { font-size: 30px; }
.today-tile .n { font-family: var(--mono); font-size: 10.5px; }
.today-body { min-width: 0; }
.today-body .eyebrow { margin-bottom: .3rem; }
.today-body h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0; font-size: 1.75rem; }
.today-body h2 a { text-decoration: none; color: var(--navy); }
.today-en { color: var(--muted); font-size: 13px; margin: .15rem 0 .5rem; }
.today-fact { font-size: 15px; color: var(--ink-2); margin: 0 0 .8rem; max-width: 70ch; }
.today-actions { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
@media (max-width: 520px) {
  .today-card { grid-template-columns: 1fr; padding: 1rem; }
  .today-card { position: relative; }
  .today-card .today-tile { position: absolute; top: 1rem; right: 1rem; width: 68px; min-height: 68px; }
  .today-tile .s { font-size: 24px; }
  .today-body .eyebrow, .today-body h2, .today-en { padding-right: 78px; }
}
.with-listen { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.el-head .share { margin-top: .75rem; }
.cp-head-ta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: 1.6rem; font-family: var(--serif); color: var(--ink); }
.el-head .en-name + .share { margin-top: .7rem; }
.name-row .word .listen { align-self: center; }
.share-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1rem; font-size: 12.5px; color: var(--muted); }
@media print { .share, .share-foot, .listen { display: none !important; } }
.mic-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--white); color: var(--navy); cursor: pointer; padding: 0; }
.mic-btn[hidden] { display: none; }
.mic-btn svg { width: 22px; height: 22px; }
.mic-btn:hover { background: #e6ecf6; }
.mic-btn.listening { background: var(--danger); border-color: var(--danger); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(161,45,45,.45); } 50% { box-shadow: 0 0 0 7px rgba(161,45,45,0); } }
@media (max-width: 420px) { .searchbar.has-mic .btn-primary { padding-left: .7rem; padding-right: .7rem; } }

/* ---------- wall chart ---------- */
.poster-form { display: grid; gap: 1rem; margin: 1.2rem 0 1.4rem; }
.poster-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.poster-form legend { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: .45rem; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { display: flex; align-items: flex-start; gap: .5rem; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .8rem; background: var(--white); cursor: pointer; min-width: 0; }
.choice input { margin-top: .3rem; accent-color: var(--navy); }
.choice b { display: block; font-weight: 500; font-size: 15px; }
.choice small { display: block; font-size: 12.5px; color: var(--muted); }
.choice.on, .choice:has(input:checked) { border-color: var(--navy); background: #eef2fa; box-shadow: inset 0 0 0 1px var(--navy); }
.poster-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.small-note { font-size: 12.5px; margin: 0; }
.poster-preview { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 10px; box-shadow: 0 20px 44px -28px rgba(0,38,99,.45); margin-bottom: .8rem; }
.pp-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 10px; }
.pp-head img { height: 34px; width: auto; }
.pp-head b { display: block; font-family: "Noto Serif Tamil", var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.pp-head small { color: var(--muted); font-size: 13px; }
.pp-scroll { overflow-x: auto; }
.pp-grid { display: grid; grid-template-columns: repeat(18, minmax(42px, 1fr)); grid-template-rows: repeat(7, auto) 8px repeat(2, auto); gap: 2px; min-width: 780px; }
.pp-t { position: relative; border: 1px solid; border-radius: 3px; padding: 2px 3px 3px; display: flex; flex-direction: column; align-items: center; min-height: 46px; overflow: hidden; }
.pp-t i { align-self: flex-start; font-style: normal; font-size: 8px; line-height: 1; opacity: .8; }
.pp-t b { font-family: var(--serif); font-size: 15px; line-height: 1.05; }
.pp-t span { font-size: 8px; line-height: 1.3; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: clip; }
.pp-t span.b { font-weight: 400; color: #6b7280; }
.poster-preview.bw .pp-t { background: #fff !important; border-color: #000 !important; color: #000 !important; border-bottom-width: 3px; }
.poster-preview.bw .pp-head b { color: #000; }
.poster-preview.bw .pp-head { border-color: #000; }
.pp-foot { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
.all-files { margin: 1.2rem 0 0; }
.all-files summary { cursor: pointer; color: var(--navy); font-weight: 500; }
.all-files ul { columns: 2; margin: .6rem 0 0; padding-left: 1.2rem; font-size: 15px; }
@media (max-width: 520px) { .all-files ul { columns: 1; } .choice { flex: 1 1 100%; } }
.poster-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.2rem; align-items: center; margin: 1rem 0 0; padding: .9rem 1.1rem; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--white); text-decoration: none; color: var(--ink); }
.poster-cta:hover { border-color: var(--navy); color: var(--ink); }
.poster-cta b { display: block; font-family: var(--serif); font-weight: 500; font-size: 15.5px; color: var(--navy); }
.poster-cta-text > span { display: block; font-size: 15px; color: var(--ink-2); }
.poster-thumb { display: grid; grid-template-columns: repeat(6, 9px); gap: 2px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 2px 3px 0 var(--leaf); }
.poster-thumb i { height: 9px; border-radius: 1px; background: #e6eaf7; }
.poster-thumb i:nth-child(6n+1) { background: #fde6db; } .poster-thumb i:nth-child(6n) { background: #eee4f6; } .poster-thumb i:nth-child(6n+5) { background: #dff0e5; }
@media (max-width: 560px) { .poster-cta { grid-template-columns: auto minmax(0, 1fr); } .poster-cta .btn-primary { grid-column: 1 / -1; justify-self: start; } }

/* ---------- textbook lessons ---------- */
.country-switch { margin: .4rem 0 .8rem; }
.country-switch a { display: inline-block; padding: .45rem .85rem; font-size: 13.5px; color: var(--ink-2); text-decoration: none; border-right: 1px solid var(--line-soft); }
.country-switch a:last-child { border-right: 0; }
.country-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.country-switch small { opacity: .7; margin-left: .2rem; }
.grade-jump { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 1rem; }
.grade-jump a { font-size: 13.5px; padding: .2rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink-2); }
.grade-jump a:hover { border-color: var(--navy); color: var(--navy); }
.grade-block { scroll-margin-top: 96px; }
.grade-block > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.grade-block > h2 small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.lesson { background: var(--white); border: 1px solid var(--line-soft); border-radius: 8px; padding: .85rem 1rem; margin: .7rem 0; scroll-margin-top: 96px; }
.lesson:target { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233,161,8,.25); }
.lesson header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.lesson-place { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold); text-transform: uppercase; width: 100%; }
.lesson h3 { margin: 0; }
.lesson-en { color: var(--muted); font-size: 13px; }
.lesson-sections { font-size: 12.5px; color: var(--ink-2); margin: .5rem 0 0; line-height: 1.55; }
.lesson-els { display: flex; flex-wrap: wrap; gap: 4px; margin: .65rem 0 0; }
.lesson-els .mini { display: inline-flex; align-items: baseline; gap: .3rem; border: 1px solid; border-radius: 5px; padding: .12rem .45rem; text-decoration: none; font-size: 13px; }
.lesson-els .mini b { font-family: var(--serif); font-size: 14.5px; }
.lesson-cps { margin-top: .5rem; }
.lesson-note { font-size: 12.5px; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: .4rem .65rem; margin: .6rem 0 0; }
.lesson-src { font-size: 12.5px; color: var(--muted); margin: .55rem 0 0; word-break: break-word; }
.lesson-src a { color: var(--ink-2); }
.lesson-src small { font-size: 12.5px; }
.textbook-box .sub { margin-bottom: .6rem; }
.sect > h2 small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; }
.tb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tb-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; background: var(--white); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: 6px; padding: .5rem .8rem; }
.tb-list li > a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; text-decoration: none; color: var(--ink); flex: 1 1 260px; min-width: 0; }
.tb-place { font-size: 12.5px; font-weight: 600; color: var(--navy); width: 100%; }
.tb-list b { font-family: var(--serif); font-weight: 500; font-size: 15px; color: var(--navy); }
.tb-en { color: var(--muted); font-size: 13px; }
.tb-more { font-size: 15px; margin: .6rem 0 0; }

/* ---------- for Sri Lankan Tamil students ---------- */
.lk-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; margin: .2rem 0 1rem; padding: .75rem 1rem; background: #f3f7f1; border: 1px solid #cfe1c9; border-left: 4px solid #2f6b3a; border-radius: 8px; }
.lk-flag { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #2f6b3a; border: 1px solid #cfe1c9; }
.lk-flag svg { width: 22px; height: 22px; }
.lk-text b { display: block; font-family: var(--serif); font-weight: 600; color: #1f4f2a; font-size: 15.5px; }
.lk-text p { margin: .15rem 0 0; font-size: 15px; color: var(--ink-2); }
.en-inline { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 13px; }
.lk-actions { margin: 0; display: flex; gap: .4rem; }
.lk-note .lk-on-msg { display: none; }
.lk-note.on .lk-on-msg { display: block; }
.lk-note.on button.lk-on-msg { display: inline-flex; }
.lk-note.on .lk-off { display: none; }
.lk-note.on { background: var(--white); border-color: var(--line-soft); border-left-color: #2f6b3a; }
@media (max-width: 640px) { .lk-note { grid-template-columns: auto minmax(0, 1fr); } .lk-actions { grid-column: 1 / -1; } .lk-actions button { white-space: normal; text-align: left; } }

/* ---------- install as app ---------- */
.install-slot { display: inline-flex; align-items: center; gap: .6rem; }
.install-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: 13.5px; cursor: pointer; }
.install-btn[hidden], .install-ios[hidden] { display: none; }
.install-btn:hover { border-color: #feb001; color: #feb001; }
.install-btn svg { width: 16px; height: 16px; }
.install-ios { color: #c9d2e2; font-size: 13px; }
/* the hero flame's flicker rests while it is scrolled out of view (set by the page script) */
.hero-flame.is-paused .hero-flame__body, .hero-flame.is-paused .hero-flame__glow, .hero-flame.is-paused .hero-flame__hot { animation-play-state: paused; }
