/* Mauzoo's look follows GitHub's Primer design system (primer.style): Mona Sans, 6px radii, bordered Boxes with a
   header and divided rows, UnderlineNav tabs, a SegmentedControl, Primer buttons, inputs, labels and counters.
   White page, Primer's neutral greys for everything else; Mauzoo's palette is only on buttons: Light Green #87D68D
   for primary buttons (dark text), Celadon #BCEBCB for their hover. Rules: .agents/skills/mauzoo-design. */
:root {
  --green: #87d68d; --celadon: #bcebcb;
  --bg: #ffffff;
  --raised: #ffffff;
  --subtle: #f6f8fa;
  --ink: #1f2328;
  --ink-2: #3a434e;
  --muted: #59636e;
  --border: #d1d9e0;
  --border-muted: #e5e9ee;
  --border-strong: #818b98;
  --accent: #1f2328;           /* links and focus: ink, underlined on hover; colour stays on the buttons */
  --accent-fill: var(--green);
  --accent-fill-hover: var(--celadon);
  --accent-fill-ink: #0f2a14;
  --selected: #eaeef2;
  --counter: #eaeef2;
  --avatar-bg: #eaeef2; --avatar-ink: #3a434e;
  --mark: #2f7a3a;             /* the logo's own green */
  --error: #b42318;
  --btn-shadow: 0 1px 0 rgb(31 35 40 / .04);
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --raised: #0d1117; --subtle: #151b23; --ink: #f0f6fc; --ink-2: #d1d7e0; --muted: #9198a1;
    --border: #3d444d; --border-muted: #2a3038; --border-strong: #656c76; --accent: #f0f6fc; --accent-fill-hover: #a3e0a8;
    --selected: #262c36; --counter: #262c36; --avatar-bg: #262c36; --avatar-ink: #d1d7e0; --mark: var(--green); --error: #ff8a7a;
    --btn-shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --raised: #0d1117; --subtle: #151b23; --ink: #f0f6fc; --ink-2: #d1d7e0; --muted: #9198a1;
  --border: #3d444d; --border-muted: #2a3038; --border-strong: #656c76; --accent: #f0f6fc; --accent-fill-hover: #a3e0a8;
  --selected: #262c36; --counter: #262c36; --avatar-bg: #262c36; --avatar-ink: #d1d7e0; --mark: var(--green); --error: #ff8a7a;
  --btn-shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased; }
::selection { background: #d1d9e0; color: #1f2328; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
[id], h1, h2 { scroll-margin-top: 140px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 8px 16px; border-radius: 6px; background: var(--accent-fill);
  color: var(--accent-fill-ink); font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- Primer Button ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--raised); color: var(--ink); box-shadow: var(--btn-shadow);
  font: 500 14px/20px var(--sans); white-space: nowrap; cursor: pointer; transition: background-color .08s, border-color .08s; }
.btn:hover { background: var(--subtle); }
.btn.primary { background: var(--accent-fill); border-color: rgb(15 42 20 / .15); color: var(--accent-fill-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-fill-hover); }
.lead .item:hover .btn.primary { background: var(--accent-fill-hover); }
.btn:disabled { opacity: .55; cursor: default; }
.linkish { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; font-size: 14px;
  color: var(--muted); cursor: pointer; }
.linkish:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Primer Box ---------- */
/* On a reading page a Box is open: a quiet heading over a hairline, rows divided by hairlines, no frame. */
.Box { min-width: 0; }
.Box-header { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.Box-title { font-size: 15px; font-weight: 600; line-height: 20px; letter-spacing: -0.005em; }
.Box-body { padding: 20px 0; }
.Box-row { padding: 24px 0; border-top: 1px solid var(--border-muted); list-style: none; }
.Box-row:first-child { border-top: 0; }
.Box .list > .Box-row:last-child, .Box > .Box-row:last-child { border-radius: 0 0 6px 6px; }
.Counter { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 2em; background: var(--counter); color: var(--ink);
  font: 500 12px/18px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- header: logo, UnderlineNav, TextInput, SegmentedControl, IconButton ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.bar-inner { display: flex; align-items: center; gap: 24px; padding-block: 10px 2px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark { flex: none; color: var(--mark); }
.tabs { position: relative; z-index: 0; display: flex; align-self: stretch; gap: 8px; }
.tabs a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink-2); font-size: 14px; }
.tabs a::before { content: ""; position: absolute; inset: 8px 0; border-radius: 6px; z-index: -1; }
.tabs a:hover::before { background: var(--subtle); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 6px; background: var(--ink); }
.search { position: relative; flex: 1; max-width: 320px; margin-inline-start: auto; }
.search input { width: 100%; height: 32px; padding: 0 32px 0 12px; font: 400 14px var(--sans); color: var(--ink);
  background: var(--raised); border: 1px solid var(--border); border-radius: 6px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); padding: 0 5px;
  font: 500 11px/16px var(--sans); color: var(--muted); border: 1px solid var(--border); border-radius: 4px; pointer-events: none; }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
@media (pointer: coarse) { .search kbd { display: none; } }
.updated { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lang { flex: none; display: inline-flex; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); }
.lang button { position: relative; height: 30px; padding: 0 12px; margin: -1px; border: 1px solid transparent; border-radius: 6px; background: none;
  font: 400 14px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.lang button::after { content: ""; position: absolute; inset: -7px 0; }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--raised); border-color: var(--border); color: var(--ink); font-weight: 600; cursor: default; }
.lang .short { display: none; }
.theme { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; }
.theme::after { content: ""; position: absolute; inset: -6px; }
.theme:hover { color: var(--ink); background: var(--subtle); }
.theme svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .moon { stroke: none; }
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

/* topic bar: Primer Labels */
.topicbar { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.topicbar::-webkit-scrollbar { display: none; }
.topicbar a { position: relative; flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 2em; background: var(--raised); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.topicbar a::after { content: ""; position: absolute; inset: -8px 0; }
.topicbar a:hover { border-color: var(--border-strong); color: var(--ink); }
.topicbar a[aria-current="page"] { background: var(--selected); border-color: var(--border-strong); color: var(--ink); font-weight: 600; }
.topicbar a:last-child { margin-inline-end: 40px; }

@media (max-width: 640px) {
  .top { position: static; }
  .bar-inner { flex-wrap: wrap; gap: 4px 8px; padding-top: 6px; }
  .brand { order: 1; }
  .lang { order: 2; margin-inline-start: auto; }
  .theme { order: 3; width: 44px; height: 44px; margin-inline-end: -8px; }
  .theme::after { inset: 0; }
  .tabs { order: 4; margin-inline-start: -8px; gap: 0; }
  .tabs a { font-size: 15px; }
  .search { order: 5; flex: 1 1 110px; max-width: none; margin: 0; }
  .search input { height: 36px; font-size: 16px; }
  .updated { display: none; }
  .lang .long { display: none; } .lang .short { display: inline; }
  [id], h1, h2 { scroll-margin-top: 16px; }
}

.fresh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 8px 8px 8px 16px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); font-size: 14px; }
.fresh[hidden] { display: none; }

main { padding-block: 40px 72px; min-height: 60vh; }
.muted { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.meta svg { width: 14px; height: 14px; fill: currentColor; }
.meta .sep::before { content: "·"; }

/* ---------- people: Primer Avatar, AvatarStack ---------- */
.avatar { position: relative; flex: none; width: var(--s, 28px); height: var(--s, 28px); border-radius: 50%; overflow: hidden;
  background: var(--avatar-bg); color: var(--avatar-ink); box-shadow: 0 0 0 1px var(--border-muted); display: grid; place-items: center;
  font-size: calc(var(--s, 28px) * .38); font-weight: 600; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faces { display: inline-flex; align-items: center; margin-inline-end: 2px; }
.faces .avatar { box-shadow: 0 0 0 2px var(--raised); }
.faces .avatar + .avatar { margin-inline-start: -6px; }
.story-head .faces .avatar { box-shadow: 0 0 0 2px var(--bg); }

.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--subtle); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- front page: a Box of topics (the first opened up), a Box of active voices ---------- */
.page-head { display: grid; gap: 6px; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
.page-head p { color: var(--muted); font-size: 17px; }
.front { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; gap: 4px; min-width: 0; }
.item { gap: 8px; }
.item h2 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
.item:hover h2 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.item:hover .lede { color: var(--ink-2); }
.lede { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 66ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead .item { gap: 16px; }
.lead.Box-row { padding-top: 28px; padding-bottom: 36px; }
.lead h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.022em; max-width: 26ch; }
.lead .brief { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; gap: 10px; }
.lead .btn { justify-self: start; margin-top: 8px; height: 40px; padding: 0 18px; font-size: 15px; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); }
.side .Box-header { border-bottom-color: var(--border); }
.people-list { list-style: none; margin: 0; padding: 0; }
.people-list .Box-row { padding: 0; }
.people-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; }
.people-list .name { font-weight: 500; font-size: 15px; }
.people-list a:hover .name { color: var(--accent); }
.people-list .Counter { margin-inline-start: auto; }

/* ---------- topic page ---------- */
.story { display: grid; gap: 40px; max-width: 760px; }
.story-head { display: grid; gap: 16px; }
.story h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.story .summary { font-size: 17px; color: var(--ink-2); }
.brief { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; line-height: 1.5; }
.brief.Box-body { padding: 20px 0 0 22px; font-size: 18px; line-height: 1.55; gap: 12px; }
.brief li { list-style: disc; }
.brief li::marker { color: var(--muted); }
.voices { list-style: none; margin: 0; padding: 0; }
.voice { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 16px; }
.voice .avatar { grid-row: span 3; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.who a.name, .who .name { display: inline-flex; align-items: center; min-height: 28px; min-width: 28px; font-weight: 600; font-size: 14px; }
.who a.name:hover { color: var(--accent); text-decoration: underline; }
.take { font-size: 17px; line-height: 1.55; color: var(--ink); }
.take-block { display: grid; gap: 8px; justify-items: start; }

/* details on demand */
.evidence summary, .compare-wrap summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; list-style: none;
  color: var(--muted); font-size: 13px; font-weight: 500; }
.evidence summary::-webkit-details-marker, .compare-wrap summary::-webkit-details-marker { display: none; }
.evidence summary::before, .compare-wrap summary::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg); transition: transform .12s; margin-inline-end: 2px; }
.evidence[open] summary::before, .compare-wrap[open] summary::before { transform: rotate(45deg); }
.evidence summary:hover, .compare-wrap summary:hover { color: var(--accent); }
.posts { display: grid; gap: 8px; margin-top: 4px; }
.post { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--border-muted); border-radius: 6px; background: var(--subtle); }
.post:hover { border-color: var(--border); }
.post-title { font-weight: 600; font-size: 14px; }
.post-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post-who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.post .open { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.post .open svg { width: 12px; height: 12px; fill: currentColor; }
.post:hover .open { color: var(--accent); }

/* "Hear it at 12:34": a Primer button with a play icon */
.moment { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--raised); box-shadow: var(--btn-shadow); color: var(--ink); font-size: 14px; font-weight: 500; }
.moment svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.moment:hover { background: var(--subtle); }
.moment[aria-expanded="true"] { background: var(--selected); border-color: var(--border-strong); }
.player { justify-self: stretch; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.said-thumb { position: relative; display: block; }
.play-icon { position: absolute; inset: 50% auto auto 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(0, 0, 0, .65); transition: background-color .15s; }
.play-icon::after { content: ""; position: absolute; inset: 50% auto auto 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.said-thumb:hover .play-icon { background: #e62117; }
.said.video.playing { grid-template-columns: minmax(0, 1fr); }
.said.playing .player { grid-column: 1 / -1; max-width: none; margin: 0; }
.said.playing .said-thumb { display: none; }
.said.playing .close-player { grid-column: 1 / -1; justify-self: start; }

/* ---------- a person's timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline.Box-body { padding-block: 0; }
.said { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--border-muted); }
.timeline .said:last-child { border-bottom: 0; }
.said .open-x { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 4px; margin-inline-start: auto; font-weight: 500; }
.said .open-x:hover { color: var(--accent); }
.said-text { font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.said.video { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.said-body { display: grid; gap: 8px; min-width: 0; }
.said-body h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.said-body a:hover h3 { color: var(--accent); text-decoration: underline; }
.said-summary { color: var(--ink-2); font-size: 14px; }
.clamp-wrap { display: grid; gap: 4px; justify-items: start; }
.clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.show-all { min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 500; font-size: 13px; cursor: pointer; }
.show-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-points summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; min-height: 32px; }
.more-points summary:hover { color: var(--accent); }
.points { margin: 4px 0 0; padding-inline-start: 18px; color: var(--ink-2); display: grid; gap: 4px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--border); border-radius: 2em;
  font-size: 12px; font-weight: 500; color: var(--ink-2); }
.topic-tag:hover { border-color: var(--border-strong); color: var(--accent); }

/* ---------- a person's page ---------- */
.profile { display: flex; align-items: center; gap: 20px; }
.profile-text { display: grid; gap: 6px; min-width: 0; }
.profile h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; letter-spacing: -0.01em; }
.person-about { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.pt { display: grid; gap: 12px; }
a.pt-head { display: block; padding-block: 2px; }
.pt-head h2 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
a.pt-head:hover h2 { color: var(--accent); text-decoration: underline; }
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 6px; }
.compare-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 3px; border-radius: 2em;
  border: 1px solid var(--border); background: var(--raised); color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.compare-chip:hover { border-color: var(--border-strong); }
.compare-chip[aria-pressed="true"] { background: var(--selected); border-color: var(--border-strong); color: var(--ink); }
.compare { display: grid; gap: 8px; }
.compare:empty { display: none; }
.compare-item { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); }
.compare-item .take { font-size: 14px; }

/* Urdu script (marked lang="ur" by app.js): Nastaliq needs more room above and below each line than Latin text. */
[lang="ur"] { font-family: var(--urdu); font-size: 1.1em; line-height: 2.1; font-weight: 400; letter-spacing: 0; font-style: normal; text-align: start; }
h1[lang="ur"], h2[lang="ur"], h3[lang="ur"] { font-weight: 600; line-height: 1.9; }
.post-text[lang="ur"], .clamped[lang="ur"] { padding-block: 4px; }

/* ---------- voices, search, archive ---------- */
.page-title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: hidden; border-radius: 0 0 6px 6px; }
.card { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 0; border-top: 1px solid var(--border-muted); margin-top: -1px; }
.card:hover { background: var(--subtle); }
.card-text { display: grid; gap: 2px; min-width: 0; }
.card .name { font-weight: 600; font-size: 15px; }
.card:hover .name { color: var(--accent); text-decoration: underline; }
.card .meta { font-size: 12px; }
.results { display: grid; gap: 24px; }
.hits { list-style: none; margin: 0; padding: 0; }
.hits .post { background: none; border: 0; padding: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.link { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--raised); font-size: 13px; font-weight: 500; }
.link:hover { background: var(--subtle); }
.link svg { width: 12px; height: 12px; fill: currentColor; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.title-row .page-title { margin-bottom: 0; }
.archive-note { margin: -8px 0 16px; color: var(--muted); font-size: 14px; max-width: 64ch; }
#archive { display: grid; gap: 16px; }
.more { margin-top: 16px; }
.Box-body > .more { margin-top: 0; }
.Box-body:empty { display: none; }
.empty { display: grid; gap: 12px; color: var(--muted); padding: 32px 0; max-width: 56ch; }
.empty a { color: var(--accent); font-weight: 500; text-decoration: underline; }

/* ---------- loading ---------- */
.skeleton { display: grid; gap: 16px; }
.sk { border-radius: 6px; background: linear-gradient(90deg, var(--subtle) 30%, var(--border-muted) 50%, var(--subtle) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite; }
.lead-sk { height: 200px; max-width: 800px; }
.row-sk { height: 72px; max-width: 800px; }
.card-sk { height: 160px; }
.line { height: 16px; } .line.w40 { width: 40%; } .line.h1 { height: 36px; width: 85%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .front { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  main { padding-top: 16px; }
  .lead .item h2 { font-size: 26px; }
  .lead .brief { font-size: 16px; }
  .item h2 { font-size: 18px; }
  .Box-row { padding: 18px 0; }
  .story h1, .page-head h1, .page-title { font-size: 30px; }
  .brief.Box-body, .take { font-size: 16px; }
  main { padding-top: 24px; }
  .page-head { margin-bottom: 20px; }
  .item .lede { display: none; } /* phones: headlines only; the topic page has the rest */
  .meta .n-posts { display: none; }
  .said.video { grid-template-columns: minmax(0, 1fr); }
  .said-thumb { max-width: 340px; }
  .btn, .moment { height: 40px; }
  .lead .btn { height: 44px; width: 100%; }
}

/* ---------- footer + feedback dialog ---------- */
.foot { display: grid; gap: 12px; padding-block: 24px 40px; border-top: 1px solid var(--border); }
.foot-note { color: var(--muted); font-size: 13px; max-width: 64ch; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#feedback { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 12px;
  background: var(--raised); color: var(--ink); box-shadow: 0 8px 24px rgb(66 74 83 / .12), 0 1px 3px rgb(31 35 40 / .12); }
#feedback::backdrop { background: rgb(31 35 40 / .5); }
#feedback-form { display: grid; gap: 16px; padding: 20px; overscroll-behavior: contain; }
#feedback-form h2 { font-size: 20px; font-weight: 600; }
.kinds { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); justify-self: start; }
.kinds label { position: relative; cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin: -1px; border: 1px solid transparent; border-radius: 6px;
  color: var(--ink-2); font-size: 14px; }
.kinds input:checked + span { background: var(--raised); border-color: var(--border); color: var(--ink); font-weight: 600; }
.kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field .muted { font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 6px 12px; font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--raised); border: 1px solid var(--border); border-radius: 6px; outline: none; resize: vertical; }
.field input { height: 36px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.voice-only { display: none; }
.is-voice .voice-only { display: grid; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-status { min-height: 1.2em; font-size: 14px; color: var(--muted); }
.fb-status.ok { color: var(--accent); }
.fb-status.error { color: var(--error); }
.fb-actions { display: flex; justify-content: flex-end; gap: 8px; }
