/* lasi — kopīgie stili lietotnei un lasītājam */
:root {
  --bg: #f4f3ef; --card: #ffffff; --ink: #1c1b19; --muted: #6d6b65; --line: #e1ded6;
  --accent: #2f5d8a; --accent-ink: #fff; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --card: #1f1e1c; --ink: #edebe6; --muted: #9c9a93; --line: #33312d;
          --accent: #82b2df; --accent-ink: #10202f; --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* redzams fokuss, pārvietojoties ar tastatūru (pārlūka noklusējuma gredzens uz čipām un vākiem bija tikko manāms) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); white-space: nowrap; font-size: .92rem; }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); }

/* Paskaidrojums uz peles (ui/tips.js) — abās lapās, tāpēc te, nevis app.css/reader.css */
.tip { position: fixed; z-index: 9999; max-width: 26rem; pointer-events: none;
  padding: .4rem .6rem; border-radius: 8px; font-size: .86rem; line-height: 1.35;
  background: var(--ink); color: var(--bg); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
