/* Kashir — palette drawn from the valley: glacier light, walnut ink, kesar (saffron), chinar red, Dal blue. */
[hidden] { display: none !important; }
:root {
  --bg: #eef1ee;
  --surface: #ffffff;
  --surface-2: #f6f7f4;
  --ink: #1d2729;
  --muted: #56666a;
  --line: #d6ddd9;
  --accent: #a94f0c;       /* kesar */
  --accent-soft: #f7e6d6;
  --chinar: #9b2a22;
  --chinar-soft: #f6dfdb;
  --lake: #285a69;
  --lake-soft: #dcebee;
  --good: #2f6b3a;
  --moon-lit: #f3ead2;
  --moon-dark: #34403f;
  --shadow: 0 1px 2px rgba(20, 35, 38, .06), 0 6px 20px rgba(20, 35, 38, .06);
  --display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", "Mukta", serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1618; --surface: #162124; --surface-2: #1b282c; --ink: #e6ecea; --muted: #9fb0b2;
    --line: #2a3a3e; --accent: #f0934a; --accent-soft: #3a2616; --chinar: #ec7a6f; --chinar-soft: #3b1f1c;
    --lake: #86bccb; --lake-soft: #16323a; --good: #7fc58c; --moon-lit: #f3ead2; --moon-dark: #2a3538;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1618; --surface: #162124; --surface-2: #1b282c; --ink: #e6ecea; --muted: #9fb0b2;
  --line: #2a3a3e; --accent: #f0934a; --accent-soft: #3a2616; --chinar: #ec7a6f; --chinar-soft: #3b1f1c;
  --lake: #86bccb; --lake-soft: #16323a; --good: #7fc58c; --moon-lit: #f3ead2; --moon-dark: #2a3538;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.55; margin: 0; }
a { color: var(--lake); }
button, input, select, textarea { font: inherit; color: inherit; }
/* iPhones zoom into any text box under 16px when tapped, and stay zoomed. */
input, select, textarea { font-size: max(16px, 1em) !important; }
html, body, button, a, input, select, label, summary { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.prose p + p { margin-top: .8em; }
.prose { max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.deva { font-family: var(--deva); }
.num { font-variant-numeric: tabular-nums; }

/* shell */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100%; }
.topbar {
  /* Pinned to the very top; on phones with a notch the bar grows under the clock instead of sliding over the page. */
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; }
.brand span { font-family: var(--deva); color: var(--accent); font-size: 1.05rem; }
.topbar .spacer { flex: 1; }
.search { position: relative; flex: 0 1 320px; min-width: 0; }
.search input { width: 100%; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.iconbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs button {
  border: 0; background: none; padding: 8px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .7rem; color: var(--muted);
}
.tabs button svg { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--accent); font-weight: 600; }
main { padding: 18px 16px 110px; max-width: 1360px; width: 100%; margin: 0 auto; display: grid; gap: 22px; align-content: start; }

@media (min-width: 900px) {
  .shell { grid-template-columns: 210px 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .tabs {
    position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px);
    display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-top: 0; border-right: 1px solid var(--line);
    background: transparent;
  }
  .tabs button { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: .98rem; padding: 10px 12px; border-radius: 10px; }
  .tabs button[aria-current="page"] { background: var(--accent-soft); }
  main { padding: 26px 28px 60px; }
}

/* generic pieces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.flat { background: var(--surface-2); border-radius: var(--radius); padding: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 12px; align-content: start; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; }
:root[data-theme="dark"] .btn:not(.quiet):not(.ghost) { color: #1a1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.quiet):not(.ghost) { color: #1a1206; } }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.quiet { border-color: var(--line); background: var(--surface); color: var(--ink); font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: .84rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
button.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.major { background: var(--chinar-soft); border-color: transparent; color: var(--chinar); font-weight: 600; }
.chip.notable { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.chip.lake { background: var(--lake-soft); border-color: transparent; color: var(--lake); }
.linkcard { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.linkcard:hover { border-color: var(--accent); }
.linkcard h3 { font-size: 1.1rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: .88rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.back { border: 0; background: none; color: var(--lake); padding: 0; font-weight: 600; justify-self: start; }
ul.clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.ticks { padding-left: 1.1em; margin: 0; display: grid; gap: 4px; }
.divider { height: 1px; background: var(--line); }
input.field, select.field, textarea.field { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
label.lab { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.formgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.notice { border-left: 3px solid var(--lake); background: var(--lake-soft); padding: 10px 14px; border-radius: 8px; font-size: .92rem; }

/* today hero */
.hero { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 22px; position: relative; overflow: hidden; }
@media (min-width: 720px) { .hero { grid-template-columns: 1fr 190px; align-items: center; } }
.hero .moon { justify-self: center; width: 150px; height: 150px; }
.hero h1 { margin-top: 2px; }
.bigline { font-family: var(--display); font-size: clamp(1.3rem, 3.6vw, 1.7rem); color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; }
.facts b { font-weight: 600; }
.special { display: grid; gap: 14px; }
.obs { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.obs.imp3 { border-left: 4px solid var(--chinar); }
.obs.imp2 { border-left: 4px solid var(--accent); }
.obs.imp1 { border-left: 4px solid var(--lake); }
.dodont { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); font-size: .95rem; }
.dodont h4 { font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.dodont .do h4 { color: var(--good); }
.dodont .dont h4 { color: var(--chinar); }
.dodont .eat h4 { color: var(--accent); }
details.deeper summary { cursor: pointer; color: var(--lake); font-weight: 600; }
details.deeper[open] summary { margin-bottom: 8px; }
.upcoming li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.upcoming li:last-child { border-bottom: 0; }
.upcoming .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.upcoming button { border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.upcoming button:hover b { color: var(--accent); }

/* calendar */
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calgrid .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; padding: 4px 0; }
.cell {
  min-height: 78px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 5px 6px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; overflow: hidden;
}
.cell.out { opacity: .38; }
.cell.today { outline: 2px solid var(--accent); outline-offset: -1px; }
.cell.sel { background: var(--accent-soft); }
.cell .d { font-weight: 700; font-variant-numeric: tabular-nums; }
.cell .t { font-size: .7rem; color: var(--muted); line-height: 1.2; }
.cell .ev { font-size: .68rem; line-height: 1.15; color: var(--chinar); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cell .ev.fam { color: var(--lake); }
/* a festival or family day is a dot in the cell; the names are listed under the grid (council cycle 4) */
.cell .evdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--chinar); margin-top: 2px; }
.cell .evdot.fam { background: var(--lake); }
.cell .evdot.sm { width: 4px; height: 4px; margin-top: 3px; opacity: .8; }
.calmonth { margin-top: 4px; }
.calhead .btn.small { min-width: 44px; min-height: 44px; }
.cell .mm { width: 12px; height: 12px; }
@media (max-width: 520px) { .cell { min-height: 62px; padding: 4px; } .cell .ev { -webkit-line-clamp: 1; } }

/* reading */
.story { display: grid; gap: 16px; }
.story .prose { font-size: 1.07rem; line-height: 1.7; }
blockquote.q { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-style: italic; }
.lesson { font-family: var(--display); font-size: 1.15rem; color: var(--lake); }

/* ask */
.ask { display: grid; gap: 10px; }
.ask .answer { white-space: normal; }
.ask .answer p + p, .ask .answer ul { margin-top: .6em; }
.ask .answer h4 { font-family: var(--body); font-weight: 700; margin-top: .6em; }
.askbar { display: flex; gap: 8px; flex-wrap: wrap; }
.askbar input { flex: 1 1 220px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(10, 18, 20, .45); z-index: 40; }
.drawer {
  position: fixed; z-index: 41; right: 0; bottom: 0; left: 0; max-height: 86vh; overflow: auto;
  background: var(--surface); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 12px; box-shadow: 0 -10px 40px rgba(0,0,0,.2);
}
@media (min-width: 900px) { .drawer { left: auto; top: 0; width: 460px; max-height: none; border-radius: 0; padding-top: calc(18px + env(safe-area-inset-top, 0px)); } }
.msg { padding: 10px 12px; border-radius: 12px; }
.msg.me { background: var(--lake-soft); justify-self: end; max-width: 90%; }
.msg.ai { background: var(--surface-2); }

/* community */
.post { display: grid; gap: 8px; }
.post .meta { font-size: .82rem; color: var(--muted); }
.reply { margin-left: 16px; padding-left: 12px; border-left: 2px solid var(--line); }
.status { font-size: .78rem; font-weight: 700; letter-spacing: .04em; }

/* quiz */
.opts { display: grid; gap: 8px; }
.opts button { text-align: left; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.opts button.right { border-color: var(--good); color: var(--good); font-weight: 600; }
.opts button.wrong { border-color: var(--chinar); color: var(--chinar); }

.searchresults { position: absolute; top: calc(100% + 6px); right: 0; width: min(92vw, 420px); max-height: 60vh; overflow: auto; z-index: 50; }
.searchresults button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; }
.searchresults button:hover { background: var(--surface-2); }
@media (max-width: 560px) { .brand span { display: none; } .search { flex: 1 1 auto; } }

@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade .35s ease-out both; }
  @keyframes fade { from { opacity: .001; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* personal layer */
.foryou { border-top: 3px solid var(--accent); }
.foryou .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.btn.small { padding: 4px 12px; font-size: .85rem; }
.react { align-items: center; gap: 6px; }
.react .face { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; width: 40px; height: 40px; font-size: 1.25rem; line-height: 1; display: inline-grid; place-items: center; padding: 0; }
.react .face:hover { border-color: var(--accent); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .react .face:hover { transform: none; } }
table.tbl { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.tbl th, table.tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* phone: a small moon beside the date, and an icon for the account button */
.iconbtn svg { width: 18px; height: 18px; vertical-align: -3px; }
@media (max-width: 719px) {
  .hero { grid-template-columns: 1fr 64px; align-items: start; padding: 18px; }
  .hero .moon { width: 64px; height: 64px; grid-column: 2; grid-row: 1; }
  .hero > .stack { grid-column: 1 / -1; grid-row: 1; padding-right: 76px; }
}
@media (max-width: 560px) {
  #acct .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar { gap: 8px; }
}

/* ---------- left-to-right layout ---------- */
.split { display: grid; gap: 24px; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); align-items: start; }
.split.wide { grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); }
.split > .lead { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); max-height: calc(100vh - 88px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 6px 12px 2px; }
.flow { display: grid; gap: 24px; min-width: 0; align-content: start; }
.shelfsec { display: grid; gap: 10px; min-width: 0; }
.shelfhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shelfhead h2 { font-size: 1.3rem; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; }
.cards > .card, .cards > .linkcard, .cards > .holder > .card { height: 100%; }
.cards.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.linkcard h3 { font-size: 1.05rem; }
.linkcard p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 + .prose, .card .prose.small { line-height: 1.5; }
ul.mini { font-size: .88rem; gap: 3px; }
ul.mini b { color: var(--muted); font-weight: 600; }
.nudge { justify-content: space-between; border-left: 4px solid var(--accent); padding: 14px 18px; }
.datecard { text-align: left; display: grid; gap: 4px; align-content: start; border: 1px solid var(--line); cursor: pointer; }
.datecard:hover { border-color: var(--accent); }
.bigdate { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.reading { max-width: 76ch; }
.reading .prose { max-width: none; }
.prose.story { font-size: 1.07rem; line-height: 1.75; }
.navlist { display: grid; gap: 2px; }
.navlist button { text-align: left; border: 0; background: none; border-radius: 10px; padding: 8px 12px; display: grid; gap: 1px; color: var(--ink); }
.navlist button:hover { background: var(--surface-2); }
.navlist button[aria-current="true"] { background: var(--accent-soft); }
.navlist button[aria-current="true"] b { color: var(--accent); }
.map { height: min(460px, 60vh); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.leaflet-popup-content { font-family: var(--body); }
.cards.timeline > .card { border-top: 3px solid var(--accent); }
.hero h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.split .hero { grid-template-columns: 1fr 84px; padding: 18px; }
.split .hero .moon { width: 84px; height: 84px; grid-column: 2; grid-row: 1; align-self: start; }
.split .hero > .stack { grid-column: 1 / -1; grid-row: 1; padding-right: 92px; }

@media (max-width: 999px) {
  .split, .split.wide { grid-template-columns: minmax(0, 1fr); }
  .split > .lead { position: static; max-height: none; overflow: visible; padding: 0; }
}
/* Phones: rows of cards swipe left to right instead of stacking down the page */
@media (max-width: 719px) {
  .cards.swipe { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .cards.swipe::-webkit-scrollbar { display: none; }
  .cards.swipe > * { scroll-snap-align: start; }
  .cards.tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards.tiles .linkcard { padding: 12px; }
  .cards.tiles .linkcard p { -webkit-line-clamp: 2; }
  .split .hero .moon { width: 64px; height: 64px; }
  .split .hero > .stack { padding-right: 70px; }
}

/* ---------- puja player ---------- */
main.focus { max-width: 860px; }
.puja { display: grid; gap: 18px; }
.pujahead { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.pujahead .grow { flex: 1 1 200px; display: grid; gap: 6px; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dot { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.dot.done { background: var(--accent); opacity: .5; }
.dot.on { background: var(--accent); }
.pujabody { display: grid; gap: 14px; min-height: 46vh; align-content: start; }
.pujabody h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.pujado { font-size: 1.15rem; }
.mantra { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); }
.mantra .deva { font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.6; }
.mantra .iast { font-style: italic; color: var(--muted); }
.pujafoot { display: flex; gap: 10px; justify-content: space-between; position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 66px); background: var(--bg); padding: 10px 0; }
@media (min-width: 900px) { .pujafoot { bottom: 0; } }
.pujanote { max-width: 70ch; }
.sharebtn { white-space: nowrap; }
@media (max-width: 999px) { .hide-narrow { display: none !important; } }
@media (min-width: 1000px) { .only-narrow { display: none !important; } }

/* ---------- community ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--display); }
.phead { display: flex; gap: 10px; align-items: center; min-width: 0; }
button.plain { border: 0; background: none; padding: 0; text-align: left; color: inherit; }
button.plain:hover b { color: var(--accent); }
.feed { max-width: 640px; }
.post { gap: 10px; }
.pbody { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; }
.pbody .tag { color: var(--lake); }
.pgrid { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; grid-template-columns: 1fr 1fr; }
.pgrid.n1 { grid-template-columns: 1fr; }
.pgrid img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.pgrid.n1 img { aspect-ratio: auto; max-height: 520px; object-fit: contain; background: var(--surface-2); }
.pgrid.n3 a:first-child { grid-row: span 2; }
.pmedia { width: 100%; max-height: 560px; border-radius: 12px; background: #000; }
.yt { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; display: block; width: 100%; background: #000; }
.yt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; opacity: .9; }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.ytframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.lcard { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; color: var(--ink); align-items: center; }
.lcard:not(:has(img)) { grid-template-columns: 1fr; }
.lcard img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.lcard b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.instagram-media, .twitter-tweet { margin: 0 !important; max-width: 100% !important; }
.pacts { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.act { border: 0; background: none; border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: .92rem; }
.act:hover { background: var(--surface-2); color: var(--ink); }
.act.on { color: var(--chinar); }
.composer textarea { resize: vertical; min-height: 72px; }
.composer-bar label.btn { cursor: pointer; }
.attach { display: flex; gap: 8px; flex-wrap: wrap; }
.attach:empty, .lprev:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; line-height: 1; }
.lwrap { position: relative; }
.small-map { height: 240px; }
.person { align-items: center; }
.person .btn { flex: none; }
.replies { padding-left: 16px; border-left: 2px solid var(--line); }
.composer .msg:empty { display: none; }
@media (max-width: 999px) { .split.community > .lead { order: 2; } }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qday { border-left: 4px solid var(--lake); background: linear-gradient(0deg, var(--surface), var(--surface)); }
.qday .lesson { font-size: 1.2rem; }
.streak { gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); align-self: start; }
.streak .flame { font-size: 1.2rem; }

/* ---------- phones: each page is a row of panels you swipe between ---------- */
.pager { display: grid; gap: 8px; position: relative; margin-inline: -16px; }
.pagedots { display: flex; justify-content: center; gap: 5px; height: 6px; align-items: center; }
.pagedots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
.pagedots i.on { width: 14px; border-radius: 3px; background: var(--muted); }
.pagedots.count { height: auto; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.topback { border: 0; background: none; color: var(--accent); font: 600 1rem/1.2 inherit; padding: 6px 4px 6px 0; max-width: 34vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.topback span { font-size: 1.35rem; line-height: 0; vertical-align: -1px; }
.topbar.hasback .brand { display: none; }
.pager .back[data-go], .topbar.hasback ~ * .back[data-go] { display: none; }
.panes { display: flex; gap: 10px; padding: 0 16px; scroll-padding-inline: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.panes::-webkit-scrollbar { display: none; }
.pane { flex: 0 0 calc(100% - 10px); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  padding: 2px 0 24px; display: grid; gap: 16px; align-content: start; transition: opacity .25s; }
.pane.off { opacity: .3; }
.panes::after { content: ""; flex: 0 0 6px; }
.pane .cards.swipe { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
.pane .shelfhead h2 { font-size: 1.15rem; }
@media (max-width: 719px) {
  main:has(.pager) { padding-bottom: 0; gap: 10px; }
  body:has(.pager) { overflow: hidden; }
}

/* ---------- book covers ---------- */
.cards.covers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cover { aspect-ratio: 3 / 4; border: 0; border-radius: 10px 14px 14px 10px; padding: 16px 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; color: #fff;
  background: linear-gradient(160deg, hsl(var(--h) 45% 34%), hsl(calc(var(--h) + 30) 50% 22%)); box-shadow: inset 6px 0 0 rgba(0,0,0,.18), var(--shadow); }
.cover-title { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; }
.cover-sub { font-size: .82rem; opacity: .85; }
.cover-meta { margin-top: auto; font-size: .74rem; opacity: .8; letter-spacing: .02em; }
.cover:hover { transform: translateY(-2px); }
@media (max-width: 719px) { .cards.covers { grid-template-columns: 1fr 1fr; } }
.showall { justify-self: start; }

/* ---------- the circle of life ---------- */
.wheelwrap { display: grid; gap: 18px; grid-template-columns: minmax(280px, 400px) 1fr; align-items: start; }
@media (max-width: 999px) { .wheelwrap { grid-template-columns: 1fr; } }
.wheel { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 0 30%, transparent 30.5%), conic-gradient(from -90deg, var(--accent-soft), var(--lake-soft), var(--chinar-soft), var(--accent-soft)); }
.pane .wheel { width: 86%; }
.wheel::after { content: ""; position: absolute; inset: 10%; border: 2px dashed var(--line); border-radius: 50%; pointer-events: none; }
.wnode { position: absolute; transform: translate(-50%, -50%); z-index: 1; width: 25%; min-width: 74px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
  display: grid; place-content: center; text-align: center; gap: 1px; padding: 4px; box-shadow: var(--shadow); }
.wnode b { font-size: .82rem; }
.wnode span { font-size: .62rem; color: var(--muted); line-height: 1.1; }
.wnode[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.wnode[aria-pressed="true"] b { color: var(--accent); }
.whub { position: absolute; inset: 35%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 2px; }
.whub b { font-family: var(--display); font-size: 1.2rem; }
.phaserites { align-content: start; }

/* ---------- voices ---------- */
.vlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vlist li > span { grid-column: 1; }
.vlist li > button { grid-column: 2; grid-row: 1 / span 2; }
.ok { color: var(--good); }
.voicerow { align-items: center; }
.recorder .rc-text { font-size: 1.25rem; line-height: 1.6; }

/* ---------- remembrance ---------- */
.remember-head h2 { font-size: 1.8rem; }
.lampcard { text-align: center; justify-items: center; background: #14110c; color: #efe6d4; border-color: #2b241a; }
.lampcard .prose { color: #efe6d4; }
.lampcard .muted { color: #b9ac92; }
.lampcard summary { color: #f0b86a; }
.lampcard .field { background: #1d1912; color: #efe6d4; border-color: #3a3024; }
.lamp { width: 64px; height: 64px; position: relative; }
.lamp::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 18px; border-radius: 0 0 40px 40px; background: #b0672a; }
.flame2 { position: absolute; left: 50%; bottom: 22px; width: 14px; height: 24px; margin-left: -7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff4c2, #f6a83a 60%, transparent 70%); opacity: .25; transition: opacity .8s; }
.lampcard.lit .flame2 { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .lampcard.lit .flame2 { animation: flicker 2.2s ease-in-out infinite; } @keyframes flicker { 50% { transform: scale(.94, 1.06) translateY(-1px); } } }
dl.facts2 { display: grid; gap: 10px; margin: 0; }
dl.facts2 dt { font-weight: 700; font-size: .9rem; }
dl.facts2 dd { margin: 0; }
ul.remembered li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.remember-banner { border-left: 4px solid #6b5a3e; }
.dayslip .facts { font-size: .9rem; }
/* fixes from the first checking round */
.cards.covers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.cards.covers > .cover { height: auto; min-width: 0; overflow: hidden; }
.cover-title, .cover-sub { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 719px) { .cards.covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards > .wheelwrap, .cards > .dayslip, .cards > .fullrow { grid-column: 1 / -1; }
.lampcard details.deeper summary { color: #f0b86a; }

/* ---------- sheets: everything you open slides up over the page, with ✕ to close ---------- */
body.sheet-open { overflow: hidden; }
.sheet-bg { position: fixed; inset: 0; background: rgba(10, 18, 20, .42); opacity: 0; transition: opacity .22s; }
.sheet-bg.in { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; top: calc(env(safe-area-inset-top, 0px) + 12px); background: var(--bg); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; transform: translateY(104%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.sheet.in { transform: none; }
.sheethead { display: flex; align-items: center; gap: 12px; padding: 16px 12px 8px 18px; position: relative; flex: none; }
.sheethead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line); }
.sheettitle { flex: 1; min-width: 0; font-family: var(--display); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheetx { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1rem; box-shadow: var(--shadow); }
.sheetbody { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 14px; }
.sheetbody > * { flex: none; }
.sheetbody.paged > .pager { flex: 1; min-height: 0; }
.sheetbody.paged { overflow: hidden; padding: 0 0 env(safe-area-inset-bottom, 0px); }
.sheetbody.paged > .pager { margin-inline: 0; }
.sheetbody.paged .pane { padding-bottom: 32px; }
.sheet .back { display: none !important; }
.sheet .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sheet .split > .lead { position: static; max-height: none; overflow: visible; padding: 0; }
.sheet .flow { display: grid; gap: 14px; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; width: min(720px, 94vw); top: 5vh; transform: translate(-50%, 104%); border-radius: 18px 18px 0 0; }
  .sheet.in { transform: translate(-50%, 0); }
}
.drawer-bg { z-index: 300 !important; }
.drawer { z-index: 301 !important; }
.pujasheet .sheetbody { padding-top: 0; }

/* ---------- tab pages: short and calm ---------- */
.page { display: grid; gap: 14px; width: 100%; max-width: 760px; margin: 0 auto; align-content: start; }
@media (min-width: 1000px) { .page.today { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-width: 1100px; align-items: start; } }
.pagehead { gap: 4px; }
.pagehead h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
.page .hero, .sheetbody .hero { grid-template-columns: 1fr 84px; padding: 18px; }
.page .hero .moon, .sheetbody .hero .moon { width: 84px; height: 84px; grid-column: 2; grid-row: 1; align-self: start; }
.page .hero > .stack, .sheetbody .hero > .stack { grid-column: 1 / -1; grid-row: 1; padding-right: 92px; }
.page .hero > .stack > .facts, .page .hero > .stack > p, .page .hero > .stack > .row,
.sheetbody .hero > .stack > .facts, .sheetbody .hero > .stack > p, .sheetbody .hero > .stack > .row { margin-right: -92px; }
.rows { display: grid; }
.rowlink { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }
.rows > .rowlink:first-child { border-top: 0; }
.rowlink .rt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rowlink .chev { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.phasechips { gap: 6px; }
.covers.rowscroll { display: flex; overflow-x: auto; gap: 12px; margin-inline: -16px; padding: 4px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.covers.rowscroll::-webkit-scrollbar { display: none; }
.covers.rowscroll .cover { flex: 0 0 136px; scroll-snap-align: start; min-height: 0; }
.newthing .holder > * { padding: 0; box-shadow: none; border: 0; background: none; }
.newthing .holder .lesson { font-size: 1.15rem; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--chinar); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.btn.wa { background: #1f8f4e; border-color: #1f8f4e; text-align: center; text-decoration: none; }
.btn.big { padding: 12px 18px; font-size: 1.02rem; }
#acct img.av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: -6px; }

/* ---------- first open ---------- */
.onboard .sheetbody { padding-top: 8px; max-width: 520px; margin: 0 auto; width: 100%; }
.obwelcome { gap: 18px; padding-top: 4vh; }
.obmark { display: flex; align-items: baseline; gap: 10px; }
.obmark b { font-family: var(--display); font-size: 2.1rem; font-weight: 400; }
.obmark .deva { color: var(--accent); font-size: 1.4rem; }
.obwelcome h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.15; }
.obpoints { display: grid; gap: 10px; }
.obpoints li { padding-left: 14px; border-left: 3px solid var(--accent-soft); }
.obactions { gap: 8px; margin-top: 6px; }
.obdots { display: flex; gap: 6px; justify-content: center; padding: 2px 0 6px; }
.obdots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.obdots i.on { background: var(--accent); }
.obmap { height: 260px; border-radius: 12px; overflow: hidden; }
.field.code { font-size: 1.6rem !important; letter-spacing: .3em; text-align: center; }

/* Today on a phone: the day and the next two weeks fit on one screen */
@media (max-width: 719px) {
  .page.today .hero { padding: 16px; gap: 10px; }
  .page.today .hero h1 { font-size: 1.45rem; }
  .page.today .hero .bigline { font-size: 1.2rem; }
  .page.today .hero .moon { width: 64px; height: 64px; }
  .page.today .hero > .stack { padding-right: 70px; gap: 6px; }
  .page.today .hero > .stack > .facts, .page.today .hero > .stack > p, .page.today .hero > .stack > .row { margin-right: -70px; }
  .page.today .nudge { padding: 12px 14px; }
}
.page.today .hero .small.muted { display: none; }
.sheet .pujafoot { bottom: -28px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.pujasheet .pujahead .eyebrow { display: none; }
.pujasheet .pujabody { min-height: 0; }
.covers.rowscroll { padding-left: 16px !important; padding-right: 16px !important; scroll-padding-left: 16px; }
.covers.rowscroll .cover { flex-basis: 150px; }
.covers.rowscroll .cover-title { font-size: 1.06rem; overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; }
.covers.rowscroll { align-items: flex-start; }
.covers.rowscroll .cover { flex: none; width: 150px; height: 200px; aspect-ratio: auto; overflow: hidden; }
.onboard .btn.ghost { border-color: transparent; justify-self: center; align-self: center; }

/* voices */
.saytext { font-size: 1.5rem; line-height: 1.5; margin: 0; }
.voicerow { gap: 8px; align-items: center; }
.voicerow .vwho { flex: 1 1 140px; }
.sayone .holder { display: grid; gap: 10px; }
.glossnote { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); display: grid; gap: 6px; justify-items: start; }
.askline { display: flex; gap: 8px; align-items: center; }
.askline .field { flex: 1; border-radius: 999px; }
ol.steps { padding-left: 1.3em; display: grid; gap: 8px; }
ol.steps li { padding-left: 4px; }

/* ---------- many tabs: on phones the bar scrolls sideways ---------- */
@media (max-width: 899px) {
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 74px; scroll-snap-align: start; }
  /* five tabs (council cycle 3): they share the width and never scroll */
  .tabs.five { overflow-x: visible; }
  .tabs.five button { flex: 1 1 0; min-width: 0; }
}
/* video tiles */
.vrow { display: flex; gap: 12px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.vrow::-webkit-scrollbar { display: none; }
.vtile { flex: 0 0 220px; scroll-snap-align: start; border: 0; padding: 0; background: var(--surface); border-radius: 12px; overflow: hidden; text-align: left; position: relative; box-shadow: var(--shadow); color: var(--ink); }
.vtile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.vtile .play { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.vtile .vt { display: grid; gap: 2px; padding: 8px 10px 10px; }
.vtile .vt b { font-size: .9rem; line-height: 1.25; }
.ytframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.links { display: grid; gap: 8px; }
.newpeople { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.newpeople .np { border: 0; background: none; display: grid; justify-items: center; gap: 4px; color: var(--ink); flex: none; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; }
.small-lamp .lamp { transform: scale(.8); }
.cards.covers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.reading .prose h3 { margin: 1.2em 0 .3em; font-size: 1.15rem; }
.reading .prose ul { padding-left: 1.2em; display: grid; gap: 4px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.names { display: grid; gap: 4px; padding: 6px 0 0; } .names li { font-size: .95rem; }
.names { display: grid; gap: 4px; padding: 6px 0 0; } .names li { font-size: .95rem; }

/* the player bar: what is playing, with pause and stop; sits above the tab bar */
.player { position: fixed; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); z-index: 50; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 8px 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.player .pt { flex: 1; min-width: 0; display: grid; }
.player .pt b, .player .pt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .pt span { color: inherit; opacity: .7; }
.player button { border: 0; background: rgba(255,255,255,.12); color: inherit; width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; flex: none; }
@media (min-width: 900px) { .player { left: auto; right: 20px; bottom: 20px; width: 380px; } }
body.has-player main { padding-bottom: 170px; }
.radioframe { width: 100%; height: 260px; border: 0; border-radius: 12px; background: var(--surface-2); }
.person summary { cursor: pointer; } .person p { margin: 4px 0 0 18px; }

/* the Journey */
.decksheet .sheetbody { gap: 10px; }
.deckdots { justify-content: center; }
.deck { display: grid; gap: 12px; }
.deckimg { margin: 0 -16px; position: relative; }
.deckimg img { width: 100%; max-height: 38vh; object-fit: cover; display: block; }
.deckimg figcaption { position: absolute; right: 8px; bottom: 6px; font-size: .68rem; }
.deckimg figcaption a { color: #fff; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 6px; text-decoration: none; }
.deckbody h2 { font-size: 1.5rem; }
.guess .opts { display: grid; gap: 8px; }
.guess .opts button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 1rem; color: var(--ink); }
.guess .opts button.right { background: #dff1e3; border-color: #2f6b3a; color: #1d4a26; font-weight: 600; }
.guess .opts button.wrong { background: var(--chinar-soft); border-color: var(--chinar); }
.reveal { display: grid; gap: 10px; padding: 12px 14px; background: var(--accent-soft); border-radius: 12px; }
.endcard { text-align: center; justify-items: center; padding-top: 6vh; }
.stamp { font-size: 4rem; line-height: 1; }
.chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chap { display: grid; gap: 2px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chap .ce { font-size: 1.6rem; }
.chap.done { background: var(--accent-soft); border-color: var(--accent); }
.mission { display: flex; gap: 10px; align-items: center; }
.mission .stack { flex: 1; }
.mcheck { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); flex: none; color: var(--good); font-weight: 700; }
.mission.done .mcheck { border-color: var(--good); }
.todaytwo { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
/* Kashir atlas */
.atlas .layers { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas .layers .chip { display: inline-flex; align-items: center; gap: 6px; opacity: .55; }
.atlas .layers .chip[aria-pressed="true"] { opacity: 1; border-color: var(--ink-3, currentColor); }
.atlas .layers .chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
/* Learn Kashmiri */
.course .units { display: flex; flex-direction: column; gap: 4px; }
.course details.unit { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.course details.unit summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; list-style: none; }
.course details.unit summary::-webkit-details-marker { display: none; }
.learn .kword { font-size: 1.6rem; line-height: 1.3; margin: 4px 0 0; }
.learn details.teachit summary { cursor: pointer; color: var(--accent); }
.atlas .era { align-self: flex-start; }
.atlas .eraline { margin: 0; line-height: 1.5; }
.atlas .mapwrap { position: relative; }
.atlas .atlasmap { height: min(560px, 68vh); }
.atlas .mapfull { position: absolute; right: 10px; top: 10px; z-index: 500; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mapsheet .atlas.full .atlasmap { height: calc(100dvh - 230px); min-height: 360px; }
.teachtop { border-left: 3px solid var(--accent); }
.milestones { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.atlas .mappick { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 600; max-height: 55%; overflow: auto; box-shadow: 0 6px 24px rgba(0,0,0,.22); gap: 6px; padding: 12px 14px; }
.atlas .mappick h3 { margin: 0; }
.atlas .mappick .sheetx.small { width: 30px; height: 30px; font-size: .9rem; }
.atlas .mappick .clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.digest { font-size: 1.05rem; line-height: 1.6; }
/* Remember: a calendar of loss */
.lossnums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lossnums div { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.lossnums b { font-size: 1.5rem; font-family: var(--serif, Georgia, serif); }
.lossnums span { font-size: .8rem; color: var(--muted); }
.ybars { display: grid; gap: 3px; }
.ybars .yb { display: grid; grid-template-columns: 3em 1fr 2.5em; align-items: center; gap: 8px; font-size: .8rem; }
.ybars i { display: block; height: 10px; border-radius: 3px; background: var(--muted); opacity: .75; }
.ybars .yn { color: var(--muted); }
.mbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 120px; align-items: end; }
.mbars .mb { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: .7rem; }
.mbars i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--muted); opacity: .75; }
.mbars .mn { color: var(--muted); }
.lead-intro { font-size: 1.08rem; line-height: 1.65; }
/* Walls of tiles (saints, stories, people) */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px 10px; }
.wtile { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; text-align: center; cursor: pointer; color: inherit; font: inherit; }
.wtile b { font-size: .86rem; line-height: 1.25; }
.wtile .small { font-size: .74rem; line-height: 1.2; }
.wimg { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.wimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wimg.noimg { background: linear-gradient(145deg, var(--accent-soft, #f3e3d3), var(--surface-2)); }
.wini { font-family: var(--serif, Georgia, serif); font-size: 1.9rem; color: var(--accent); letter-spacing: .02em; }
.wtile:active .wimg { transform: scale(.97); }
.saintimg { margin: 0 0 4px; }
.saintimg img { width: 100%; max-height: 300px; object-fit: contain; background: var(--surface-2); border-radius: 12px; display: block; }
/* Shaivism: one path */
.spath { list-style: none; margin: 0; padding: 0; position: relative; }
.spath::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.spath li button { display: flex; gap: 12px; align-items: flex-start; width: 100%; background: none; border: 0; padding: 10px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; }
.spath .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--line); font-weight: 700; color: var(--muted); z-index: 1; }
.spath li.next .dot { border-color: var(--accent); color: var(--accent); }
.spath li.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.spath .stx { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.insum { border-left: 3px solid var(--accent); }
.ybars button.yb, .mbars button.mb { background: none; border: 0; padding: 2px 0; font: inherit; color: inherit; cursor: pointer; }
.ybars button.yb:active i, .mbars button.mb:active i { background: var(--accent); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.wini { line-height: 1; }
/* Network */
.netsvg { width: 100%; max-width: 560px; display: block; margin: 0 auto; }
.netsvg .nnode { cursor: pointer; }
.netsvg .nlabel { font-size: 12px; fill: var(--ink, #222); }
.netsvg text { font-family: inherit; font-weight: 600; }
.kdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.connectbox .chips .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mcell { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--surface-2); overflow: hidden; border-radius: 6px; cursor: pointer; }
.mcell img, .mcell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcell .mplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.comicpanel { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.comicpanel img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-2); }
.comicpanel figcaption { font-size: 1.05rem; line-height: 1.5; }
.comicsheet .shelfhead { display: none; }
.cprev { max-width: 160px; border-radius: 10px; }
/* Comic albums: pages of panels with narration boxes */
.comicsheet .sheetbody { background: #f4ecd8; }
.cpage { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 6px; background: #fbf6ea; padding: 6px; border: 2px solid #2b2b2b; border-radius: 4px; }
.cpanel { margin: 0; position: relative; border: 2px solid #2b2b2b; background: #e9dfc6; display: flex; flex-direction: column; cursor: zoom-in; }
.cpanel.wide { grid-column: 1 / -1; }
/* Captions in a row share one height, and the picture fills the rest of the panel: no white gaps. */
.cpanel figcaption { background: #fff6d6; border-bottom: 2px solid #2b2b2b; padding: 4px 6px; font-size: .74rem; line-height: 1.3; font-weight: 600; color: #222; min-height: calc(4 * 1.3 * .74rem + 8px); }
.cpanel.wide figcaption { min-height: 0; }
.cpanel img { width: 100%; flex: 1; min-height: 0; aspect-ratio: 1; object-fit: cover; display: block; background: #e9dfc6; }
.cpanel.wide img { aspect-ratio: 3 / 2; }
.cpanel.zoom { grid-column: 1 / -1; cursor: zoom-out; }
.cpanel.zoom figcaption { font-size: .95rem; }
.cpno { text-align: center; margin-top: 6px; }
.preamble { border-top: 4px solid var(--accent); }
.preamble .lead-intro { font-size: 1.12rem; line-height: 1.7; }
/* Kavbatt Radio: a station display, ON AIR when playing */
.kradio .dial { display: flex; align-items: center; gap: 10px; background: #1f2326; color: #d9e6c3; border-radius: 10px; padding: 8px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; letter-spacing: .12em; }
.kradio .onair { padding: 2px 7px; border-radius: 4px; border: 1px solid #5a2a24; color: #7a4a44; font-weight: 700; }
.kradio.live .onair { background: #c0392b; border-color: #c0392b; color: #fff; box-shadow: 0 0 10px rgba(192,57,43,.7); }
.kradio .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.kradio .eq i { width: 3px; height: 3px; background: #7f9a5c; border-radius: 1px; }
.kradio.live .eq i { animation: eqb .9s ease-in-out infinite; }
.kradio.live .eq i:nth-child(2) { animation-delay: .15s; } .kradio.live .eq i:nth-child(3) { animation-delay: .3s; } .kradio.live .eq i:nth-child(4) { animation-delay: .45s; } .kradio.live .eq i:nth-child(5) { animation-delay: .6s; }
@keyframes eqb { 0%, 100% { height: 3px; } 50% { height: 16px; } }
.kradio .freq { margin-left: auto; opacity: .8; }
.kradio .rnow { font-size: .95rem; }
.fstopped { margin: 4px 0; }
.talks { gap: 16px; } .talk .vrow { margin-top: 6px; }
.cchap { font-family: var(--display); font-size: 1.1rem; background: #2b2b2b; color: #fbf6ea; padding: 6px 10px; border-radius: 4px 4px 0 0; margin-bottom: 4px; }
/* Surnames */
.az { display: flex; flex-wrap: wrap; gap: 4px; }
.az .chip { min-width: 30px; justify-content: center; padding: 4px 8px; }
.az .chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.snrow { border-bottom: 1px solid var(--line); padding: 8px 0; }
.snrow summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.snrow summary::-webkit-details-marker { display: none; }
.remnote { margin: -4px 0 4px; } .remmap { height: min(460px, 60vh); }

/* ---------- Community, Instagram-style (2026-10-10) ---------- */
.pmfull { margin: 0 -18px; position: relative; background: var(--surface-2); }
.pmfull .pmedia { border-radius: 0; max-height: 80vh; display: block; }
.pslides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pslides::-webkit-scrollbar { display: none; }
.pslides img { flex: 0 0 100%; width: 100%; max-height: 80vh; object-fit: cover; scroll-snap-align: center; display: block; }
.pcar.multi .pslides img { aspect-ratio: 4 / 5; }
.pdots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.pdots i.on { background: #fff; }
.pcount { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.heartpop { position: absolute; left: 50%; top: 50%; font-size: 84px; color: #fff; transform: translate(-50%, -50%) scale(.4); text-shadow: 0 2px 12px rgba(0,0,0,.35); animation: heartpop .8s ease-out forwards; pointer-events: none; }
@keyframes heartpop { 30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.paudio { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.paudio audio { flex: 1; min-width: 0; height: 40px; }
.pmic { font-size: 1.6rem; }
.thumb.voice { width: auto; flex: 1; display: flex; align-items: center; }
.thumb.voice audio { width: 100%; height: 40px; }
.mvoice { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2rem; background: var(--surface-2); }
.sharebar { gap: 10px; }
.sharetap { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 14px 6px 6px; color: var(--muted); text-align: left; font: inherit; }
.sharebtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sharebtns button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font-size: 1.35rem; padding: 6px 0; border-radius: 12px; color: var(--ink); }
.sharebtns button span { font-size: .78rem; color: var(--muted); }
.sharebtns button:active { background: var(--surface-2); }
.nudge { color: var(--accent); margin: 0; }
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.storyc { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; flex: 0 0 auto; width: 70px; color: var(--ink); }
.storyc .ring { position: relative; border-radius: 50%; padding: 3px; background: var(--line); }
.storyc .ring.has { background: conic-gradient(#e0a100, #c2410c, #9d174d, #e0a100); }
.storyc .ring > * { border: 2px solid var(--bg); border-radius: 50%; display: block; }
.storyc .plus { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; border: 2px solid var(--bg); }
.storyc .small { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storysheet { background: #000 !important; color: #fff; }
.storysheet .sheetbody { position: relative; padding: 0 !important; height: 100%; display: flex; flex-direction: column; }
.sbars { display: flex; gap: 3px; padding: 8px 10px 4px; }
.sbars i { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.sbars i b { display: block; height: 100%; width: 0; background: #fff; }
.sbars i.done b { width: 100%; }
.shead { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; }
.shead .small { opacity: .7; }
.smedia { flex: 1; display: grid; place-items: center; min-height: 0; }
.smedia img, .smedia video { max-width: 100%; max-height: 75vh; object-fit: contain; }
.svoice { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 64px; }
.scap { padding: 10px 16px 24px; text-align: center; }
.snav { position: absolute; top: 60px; bottom: 80px; width: 40%; border: 0; background: transparent; }
.snav.prev { left: 0; } .snav.next { right: 0; }
/* A photo strip must never widen the page: the photos shrink to the card, and the strip scrolls inside it. */
.pmfull { min-width: 0; overflow: hidden; }
.pslides { width: 100%; min-width: 0; }
.pslides img { min-width: 0; }
#main, .page { min-width: 0; }
.paudio { min-width: 0; overflow: hidden; }
.paudio audio, .thumb.voice audio { width: 100%; min-width: 0; max-width: 100%; }

/* ---------- Languages: the tutor and the scripts (2026-10-10) ---------- */
.sharada { font-family: "Noto Sans Sharada", var(--deva), serif; }
.tutor .tchat { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px 0; }
.tb { max-width: 88%; padding: 10px 12px; border-radius: 16px; line-height: 1.4; }
.tb.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.tb.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; display: grid; gap: 3px; }
.tline { font-size: 1.25rem; }
.tline .sharada { font-size: 1.5rem; }
.tnote { border-left: 3px solid var(--accent); padding-left: 8px; margin-top: 4px; }
.twords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tw { font-size: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.tacts { gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.tok { color: #2f7d4a; }
.tform { display: flex; gap: 6px; align-items: center; }
.tform .field { flex: 1; min-width: 0; }
.tlangs, .tscripts { gap: 6px; flex-wrap: wrap; align-items: center; }
.scout { display: grid; gap: 4px; text-align: center; }
.sbig { font-size: 2.6rem; line-height: 1.3; text-align: center; }
.big { font-size: 1.4rem; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.sl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; font-size: 1.5rem; color: var(--ink); }
.sl .small { font-size: .72rem; }
.ksi { border-top: 1px solid var(--line); padding-top: 10px; gap: 6px; }
.ksline { font-size: 1.15rem; }
.ksbtns { flex-wrap: wrap; gap: 6px; align-items: center; }
.kscard audio, .tb audio { width: 100%; max-width: 100%; height: 36px; }
.kswslides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.kswslides::-webkit-scrollbar { display: none; }
.kss { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.teachtop { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.thub { display: grid; gap: 8px; }
.thub button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; color: var(--ink); font: inherit; }
.thub button span { font-size: .85rem; color: var(--muted); }
@media (max-width: 440px) { .teachtop .tk { display: none; } .topbar { gap: 8px; } }
.spk { gap: 14px; }
.spkline { min-height: 30vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.spkline h2 { font-family: var(--body); font-weight: 600; font-size: 1.6rem; line-height: 1.35; }
.spkline .spkctx { color: var(--muted); font-style: italic; margin: 0 auto; max-width: 34rem; }
.spkline .spkfrom { color: var(--muted); margin: 0; }
.spkbtns { justify-content: center; gap: 10px; }
.spknext { min-width: 160px; }
.crrow audio { width: 100%; height: 36px; }
.pv { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.pvk { font-size: 1.05rem; }
.pvacts { gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.mailnote { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; } .sel { user-select: all; color: var(--accent); }
.feartl { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; border-left: 2px solid var(--line); padding-left: 14px; }
.feartl li { display: grid; gap: 4px; }
.fearq { margin: 2px 0; padding: 8px 12px; border-left: 3px solid #7a1f1a; background: var(--surface-2); font-size: 1.1rem; font-style: italic; display: grid; gap: 4px; }
.fearq span { font-style: normal; color: var(--muted); }
.fearimgs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.fearimgs figure { flex: 0 0 78%; min-width: 0; margin: 0; scroll-snap-align: start; display: grid; gap: 4px; }
.fearimgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.oldgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.oldt { border: 0; padding: 0; background: var(--surface-2); border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; }
.oldt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ksbanner { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); } .ksbanner h2 { margin: 0; }
.micbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.micdot { width: 12px; height: 12px; border-radius: 50%; background: #d32f2f; flex: none; animation: micpulse 1.2s ease-in-out infinite; }
@keyframes micpulse { 50% { opacity: .35; } }
.micbar { flex: 1; min-width: 40px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.micbar i { display: block; height: 100%; width: 0; background: #2f7d4a; transition: width .08s; }
@media (prefers-reduced-motion: reduce) { .micdot { animation: none; } }
.teachhero h1 { font-size: 1.6rem; line-height: 1.2; margin: 0; text-wrap: balance; }
.crrow { border-top: 1px solid var(--line); padding: 10px 0; gap: 6px; }
.crsaid { margin: 0; font-size: 1.05rem; }
.spkcheck { display: grid; gap: 8px; justify-items: center; }
.spkcheck audio { width: 100%; max-width: 360px; }
.sharecard .sharebtns { grid-template-columns: repeat(5, 1fr); }
/* In the news on Today (owner, 2026-10-15): links that read like the other rows */
.newscard a.rowlink { text-decoration: none; color: inherit; }
/* From the valley to the world (owner, 2026-10-15) */
.journeys .jmaps { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.journeys .jmap { height: 260px; border-radius: 12px; overflow: hidden; background: var(--paper, #eef0ed); }
.journeys .jmap .leaflet-tile-pane { filter: grayscale(.75) sepia(.18) brightness(1.04) contrast(.92); }
.journeys .jtip { font-size: .72rem; padding: 1px 6px; border-radius: 8px; box-shadow: none; }
.journeys path.jarc { animation: jflow 2.4s linear infinite; }
@keyframes jflow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .journeys path.jarc { animation: none; } }
@media (max-width: 640px) { .journeys .jmaps { grid-template-columns: 1fr; } .journeys .jvalley { height: 260px; } .journeys .jworld { height: 240px; } }
.journeys .jlist { grid-column: 1 / -1; margin: 0; }
.journeys .jmap .leaflet-tile-pane { filter: sepia(.12); }
/* the journeys maps are pictures: the page scrolls through them (owner, 2026-10-15) */
.journeys .jmap, .journeys .jmap .leaflet-container { touch-action: pan-y; cursor: default; }
/* Stories in Kashmiri: read-along */
.storylines li { cursor: pointer; border-left: 3px solid transparent; }
.storylines li.on { border-left-color: var(--chinar, #a94f0c); background: var(--accent-soft, #f6ebe2); }
.storylines .ks { font-size: 1.1rem; }
/* Kashir's pages: listed under Kashir in the wide sidebar; a back link on phones (owner, 2026-10-15) */
.tabs button.sub { display: none; }
@media (min-width: 900px) {
  .tabs button.sub { display: flex; padding: 6px 12px 6px 46px; font-size: .9rem; color: var(--muted); }
  .tabs button.sub[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
  .heritageback { display: none; }
}
/* What I said: newest first, a story's lines together (owner, 2026-10-16) */
.crhead { font-size: 1rem; margin: 10px 0 0; }
.crstory { gap: 10px; }
/* Check, then say (owner, 2026-10-17) */
.csline .csks { font-size: 1.12rem; }
.csbig { font-size: 1.6rem; line-height: 1.3; }
/* Today, kept short (owner, 2026-10-17): the day's item without ratings or share; news as one line */
.todaymix .react, .todaymix .sharebtn, .todaymix .chips { display: none; }
.todaymix h3 { font-size: 1.05rem; }
.todaymix .prose { font-size: .95rem; }
.newsline { text-decoration: none; color: inherit; }
.mixmore:empty { display: none; }
.sharecard.compact { gap: 4px; padding-block: 10px; }
.sharecard.compact .sharebtns button { padding: 2px 0; font-size: 1.2rem; }

/* the timeline: legend, chronicle and record kept apart */
:root { --tl-legend: #7a4a9e; }
.tlhero { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; }
@media (prefers-color-scheme: dark) { :root { --tl-legend: #8d62b3; } }
.tlover { display: flex; gap: 3px; }
.tlover button { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; color: var(--muted); }
.tlover i { display: block; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 4px; }
.tlover span { display: block; font-size: .68rem; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.tlover button.on { color: var(--ink); font-weight: 700; }
.tlover button.on i { background: var(--accent); }
.tlkey { display: flex; gap: 14px; margin: 0; }
.tlmark { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.tlmark i { width: 9px; height: 9px; border-radius: 50%; background: var(--lake); }
.tlmark.legend i { background: var(--tl-legend); }
.tlmark.chronicle i { background: var(--accent); }
.tlpager { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: flex-start; transition: height .2s; }
.tlpager::-webkit-scrollbar { display: none; }
.tlpage { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
.tlrange { font-size: 2.1rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.tlname { color: var(--muted); margin-top: -6px; }
.tlruler2 { position: relative; height: 44px; margin-top: 4px; }
.tlaxis { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line); }
.tlnodate { position: absolute; left: 0; right: 0; top: 8px; border-top: 2px dashed var(--line); }
.tlspan { position: absolute; top: 3px; height: 12px; border-radius: 6px; background: var(--lake); opacity: .8; }
.tlspan.legend { background: var(--tl-legend); }
.tlspan.chronicle { background: var(--accent); }
.tltick2 { position: absolute; top: 22px; font-size: .74rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tlrows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tlrow { border-bottom: 1px solid var(--line); }
.tlrowb { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.tlyr { flex: 0 0 86px; font-size: .86rem; font-weight: 700; line-height: 1.2; color: var(--accent); font-variant-numeric: tabular-nums; }
.tlmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tlmain b { font-weight: 600; line-height: 1.25; }
.tlchev { color: var(--muted); font-size: 1.2rem; transition: transform .15s; }
.tlrow.open .tlchev { transform: rotate(90deg); }
.tlbody { padding: 0 0 14px; gap: 8px; }
.tlbody p { margin: 0; }
.tlnav { display: flex; justify-content: space-between; gap: 8px; }
.tlnav .tlfwd { margin-left: auto; }
.tlmark.only { flex: none; }
.tlmain { font-size: .98rem; line-height: 1.3; display: block; }
.tlyr { flex-basis: 76px; }
.tlrowb { gap: 8px; }
.tll { margin: 0; }
.tlover span { font-size: .6rem; }
.tlover { gap: 2px; }
