/* Shared style for text pages (About, Daily summary). Matches the map's palette; light/dark follows the system. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9; --card: #fff; --text: #0f172a; --text-2: #334155; --muted: #64748b; --border: rgba(15, 23, 42, .1);
  --accent: #e11d48; --houthi: #ef4444; --gov: #16a34a; --contested: #d97706;
  --t-airstrike: #e11d48; --t-missile: #ea580c; --t-clash: #c026d3; --t-maritime: #0891b2; --t-territory: #ca8a04;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0e13; --card: #10161e; --text: #e7edf3; --text-2: #c3ccd5; --muted: #8a97a4; --border: rgba(255, 255, 255, .1);
    --accent: #ff4d4f; --houthi: #ef4444; --gov: #22c55e; --contested: #f59e0b;
    --t-airstrike: #ff4d4f; --t-missile: #ff8a3d; --t-clash: #e879f9; --t-maritime: #22d3ee; --t-territory: #facc15; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 "IBM Plex Sans Arabic", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; }
a { color: inherit; }
.top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 18px; }
.top a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.kicker { margin: 0; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
h1 { font-size: 30px; line-height: 1.3; margin: 4px 0 8px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
section { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-top: 16px; }
section p { color: var(--text-2); margin: 0 0 10px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: none; border: 0; padding: 0; }
.figures div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.figures b { display: block; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.figures span { color: var(--muted); font-size: 13px; }
.items { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.items li { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.items li:last-child { border-bottom: 0; padding-bottom: 0; }
.items .h { color: var(--text); font-weight: 600; margin: 0 0 4px; }
.items .h[lang="ar"] { direction: rtl; }
.items .h[lang="en"] { direction: ltr; text-align: left; }
.meta, .src { font-size: 13.5px; color: var(--muted); margin: 0 0 2px; }
.src a { color: var(--text-2); }
.type { font-weight: 700; }
.type-airstrike { color: var(--t-airstrike); } .type-missile { color: var(--t-missile); } .type-clash { color: var(--t-clash); }
.type-maritime { color: var(--t-maritime); } .type-territory { color: var(--t-territory); }
.st { display: inline-block; padding: 0 8px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 600; }
.st-houthi { background: var(--houthi); } .st-gov { background: var(--gov); } .st-contested { background: var(--contested); } .st-stc { background: #8b5cf6; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
td:first-child { width: 34%; }
td.n { width: 3em; text-align: end; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--accent); opacity: .75; min-width: 4px; }
.note { border-style: dashed; }
.note p { font-size: 14px; color: var(--muted); margin: 0; }
footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
/* About page */
.lang-block + .lang-block { margin-top: 32px; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; }
dl.defs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
dl.defs dt { font-weight: 700; color: var(--text); }
dl.defs dd { margin: 0; color: var(--text-2); }
@media (max-width: 560px) {
  h1 { font-size: 24px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  section { padding: 16px; }
  dl.defs { grid-template-columns: 1fr; }
}
