/* Kashir — palette drawn from the valley: glacier light, walnut ink, kesar (saffron), chinar red, Dal blue. */
: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; }
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 {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  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); }
.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; }
