/* The static verb pages (scripts/build-seo-pages.mjs): the app's colours,
   Hebrew font, type scale and spacing (see style.css), without the app. Its
   own ?v= (VERB_CSS in that script), so the pages don't change with every
   app release. */
@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('../fonts/noto-sans-hebrew.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+25CC;
}
:root {
  color-scheme: light dark;
  /* The app's type scale and 4px spacing grid (style.css). */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --he-in-text: 1.15em;
  --he-in-heading: 1.3em;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --bg: #f6f5f1;
  --card-bg: #ffffff;
  --text: #1f2320;
  --text-muted: #5c605b;
  --accent: #2f6b4f;
  --accent-text: #2f6b4f;
  --accent-hover: #245a41;
  --border: #e1ded4;
  --tag-bg: #ece8dd;
  --on-accent: #ffffff;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --card-bg: #1f2225;
    --text: #eceae4;
    --text-muted: #9a9d97;
    --accent: #4f9c74;
    --accent-text: #5cb385;
    --accent-hover: #5cb385;
    --border: #313530;
    --tag-bg: #2a2d28;
    --on-accent: #0e100f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Hebrew', sans-serif;
  font-size: var(--fs-md);
  line-height: 1.5;
}
a { color: var(--accent-text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[lang="he"] { font-family: 'Noto Sans Hebrew', system-ui, sans-serif; }
p [lang="he"], li [lang="he"], h2 [lang="he"], dd [lang="he"] { font-size: var(--he-in-text); }

.vp-top, .vp-main, .vp-foot { max-width: 860px; margin: 0 auto; padding: 0 var(--sp-4); }
.vp-top { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.vp-brand { display: flex; align-items: center; gap: var(--sp-2); color: var(--text); font-weight: 700; font-size: var(--fs-lg); text-decoration: none; }
.vp-lang { font-size: var(--fs-sm); }
.vp-main { display: flex; flex-direction: column; gap: var(--sp-4); }
.vp-foot { color: var(--text-muted); font-size: var(--fs-sm); padding-top: var(--sp-6); padding-bottom: var(--sp-8); }
.vp-foot p { margin: var(--sp-1) 0; }

.vp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--text-muted); }
.vp-crumbs li + li::before { content: '›'; margin-inline-end: var(--sp-1); }

.vp-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
h1 { margin: 0 0 var(--sp-1); font-size: var(--fs-xl); line-height: 1.3; }
h1 .vp-hw { font-size: var(--he-in-heading); }
h2 { font-size: var(--fs-lg); margin: 0 0 var(--sp-2); }
.vp-meaning { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); }
.vp-muted { color: var(--text-muted); font-size: var(--fs-sm); }
.vp-label { color: var(--text-muted); font-size: var(--fs-sm); margin-inline-end: var(--sp-2); }

.vp-facts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin: 0 0 var(--sp-4); }
.vp-facts div { display: flex; gap: var(--sp-2); align-items: baseline; }
.vp-facts dt { color: var(--text-muted); font-size: var(--fs-sm); }
.vp-facts dt::after { content: ':'; }
.vp-facts dd { margin: 0; }

.vp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-4); }
/* The app's primary button: a pill. */
.vp-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.vp-btn:hover { background: var(--accent-hover); }
.vp-btn:focus-visible { outline-offset: 3px; border-radius: 999px; }

.vp-inf { margin: 0 0 var(--sp-4); }
.vp-inf .vp-f { font-size: var(--fs-xl); font-weight: 600; }
.vp-tenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-4); }
.vp-tense h2 { font-size: var(--fs-md); border-bottom: 1px solid var(--border); padding-bottom: var(--sp-1); }
.vp-tense table { width: 100%; border-collapse: collapse; }
.vp-tense th, .vp-tense td { text-align: right; padding: var(--sp-1) 0; vertical-align: baseline; border-bottom: 1px solid var(--border); }
.vp-tense tr:last-child th, .vp-tense tr:last-child td { border-bottom: 0; }
.vp-tense th { font-weight: 400; color: var(--text-muted); font-size: var(--fs-sm); white-space: nowrap; padding-inline-end: var(--sp-3); }
.vp-f { font-size: var(--fs-lg); }
.vp-m { display: block; color: var(--text-muted); font-size: var(--fs-sm); }
.vp-inf .vp-m { display: inline; margin-inline-start: var(--sp-2); }
.vp-note, .vp-none { color: var(--text-muted); }

/* Lists of links (other verbs of the root, the verb index): each link a
   target at least 24px tall, 44px on touch screens; the breadcrumbs and the
   language switch too. */
.vp-links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-1) var(--sp-4); }
.vp-links .vp-cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vp-links p { margin: var(--sp-3) 0 0; }
.vp-links li a, .vp-crumbs a, .vp-lang { display: inline-block; padding-block: var(--sp-1); }
@media (pointer: coarse) {
  .vp-links li a, .vp-crumbs a, .vp-lang { padding-block: var(--sp-3); }
  .vp-btn { min-height: 44px; }
}
