/* גיליון אחד לכל האתר. Mobile first, RTL, בלי משאבים חיצוניים. */

@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/heebo-hebrew.de80852899c5.woff2") format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/heebo-latin.480b1d24f2aa.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* גופן הקריאה של הפרק: סריפי, עם ניקוד מלא. */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/frank-ruhl-hebrew.57720a889009.woff2") format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --paper: #F6F3EC;
  --surface: #FFFFFF;
  --ink: #1B2430;
  --muted: #55606E;
  --line: #DDD6C6;
  --cell-line: #B9B1A0;
  --accent: #122A4A;
  --accent-soft: #E6ECF4;
  --on-accent: #FFFFFF;
  --on-accent-muted: #D3DDEB;
  --sky-top: #153A7C;
  --sky-mid: #2B5C9B;
  --sky-low: #74A8DC;
  --sky-horizon: #D6E8F7;
  --gold: #8A6E3C;
  --done: #1F6B45;
  --done-soft: #E3F1E8;
  --taken-bg: #F3E3B8;
  --taken-ink: #5B4300;
  --danger: #9B2C2C;
  --error-bg: #F8E4E4;
  --radius: 12px;
  --radius-sm: 9px;
  --ui: 'Heebo', system-ui, 'Segoe UI', Arial, sans-serif;
  --reading: 'Frank Ruhl Libre', 'David', 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* צבע הגיבוי אם שכבת השמיים לא צוירה: נייר, שכל הטקסט קריא עליו */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: 0.5rem; top: -4rem;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.skip-link:focus { top: 0.5rem; z-index: 10; }

/* ── שמיים ───────────────────────────────────────────────────────────
 * שמיים שנפתחים: אור בוקע מלמעלה, והעננים נעים לאט מתחתיו.
 * השכבה קישוטית בלבד ויושבת מאחורי הכול. שום טקסט אינו מונח עליה ישירות:
 * עננים לבנים שעוברים מתחת לטקסט היו משנים את הניגודיות שלו מרגע לרגע.
 * העננים עשויים ממעברי צבע רכים, בלי טשטוש ובלי תמונה.
 */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-low) 74%, var(--sky-horizon) 100%);
}
.sky span { position: absolute; display: block; }
/* כשהעננים מצוירים ב-WebGL (sky.js), השכבות של ה-CSS הן גיבוי ואינן מוצגות. */
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-gl .sky span { display: none; }
.sky-light {
  left: 50%; top: -24vmax; width: 96vmax; height: 64vmax; margin-left: -48vmax;
  background: radial-gradient(ellipse at 50% 32%,
    rgba(255, 252, 240, 1) 0%, rgba(255, 240, 196, 0.85) 12%,
    rgba(214, 230, 255, 0.34) 32%, rgba(214, 230, 255, 0) 62%);
}
.sky-rays {
  left: 50%; top: -6vmax; width: 150vmax; height: 110vmax; margin-left: -75vmax;
  background: repeating-conic-gradient(from 180deg at 50% 0%,
    rgba(255, 255, 255, 0.17) 0deg 3.5deg, rgba(255, 255, 255, 0) 3.5deg 10deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 60%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 60%);
}
.sky-clouds {
  width: max(200%, 1800px); left: calc(-1 * max(100%, 900px));
  background-repeat: repeat-x; background-size: 50% 100%;
}
.sky-clouds-far {
  top: 14%; height: 42%; opacity: 0.5;
  background-image:
    radial-gradient(ellipse 11% 20% at 14% 46%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 8% 15% at 22% 56%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 7% 13% at 9% 58%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 12% 18% at 62% 30%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 8% 13% at 71% 40%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 7% 11% at 54% 40%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 46%, rgba(255,255,255,0) 100%);
}
.sky-clouds-near {
  top: 38%; height: 56%; opacity: 0.72;
  background-image:
    radial-gradient(ellipse 14% 20% at 36% 44%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.55) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 10% 15% at 46% 54%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 9% 13% at 27% 56%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 15% 19% at 74% 70%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 10% 14% at 84% 78%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 9% 12% at 65% 80%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0) 100%);
}
/* התנועה רק למי שלא ביקש להפחית תנועה. בלעדיה נשארת תמונה דוממת ושלמה. */
@media (prefers-reduced-motion: no-preference) {
  .sky-clouds-far { animation: sky-drift 170s linear infinite; }
  .sky-clouds-near { animation: sky-drift 105s linear infinite; }
  .sky-rays { animation: sky-breathe 11s ease-in-out infinite alternate; }
}
.sky-still .sky-clouds, .sky-still .sky-rays { animation-play-state: paused; }
@keyframes sky-drift { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes sky-breathe { from { opacity: 0.55; } to { opacity: 1; } }

.plain .sky { display: none; }

/* ── ראש ותחתית ──────────────────────────────────────────────────────── */
.top { padding: 1.1rem 1rem 0; text-align: center; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 1.2rem; border-radius: 999px;
  background: var(--accent); border: 1px solid var(--gold);
  color: var(--on-accent); text-decoration: none;
  font-family: var(--reading); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em;
}
.brand:hover { text-decoration: underline; }

.page { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 4.5rem 1rem 3rem; }
.plain .page { padding-top: 1.25rem; }
.page:focus { outline: none; }

.foot { background: var(--accent); color: var(--on-accent-muted); border-top: 1px solid var(--gold); padding: 1rem 1rem 1.25rem; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.foot a { color: var(--on-accent-muted); font-size: 0.95rem; padding: 0.4rem 0; }
.foot :focus-visible { outline-color: var(--on-accent); }

/* ── טיפוגרפיה ───────────────────────────────────────────────────────── */
h1 {
  font-family: var(--reading); font-weight: 700;
  font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.75rem; color: var(--accent);
}
h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.9rem; color: var(--accent); }
h3 { font-size: 1.02rem; margin: 1.25rem 0 0.4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 0.95rem; }
.eyebrow { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.4rem; }

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── כרטיס: עומק מקו ומקצה נייר ──────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  margin-bottom: 1.1rem;
}
.card > :last-child { margin-bottom: 0; }
.card-lead { border-top: 4px solid var(--accent); }

/* ── כפתורים ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.6rem 1.25rem;
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); color: var(--accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #1B3C68; border-color: #1B3C68; }
.btn-secondary:hover, .btn-quiet:hover { background: var(--accent-soft); }
.btn-big { width: 100%; min-height: 3.75rem; font-size: 1.3rem; }
.btn-quiet { border-width: 1px; min-height: 3rem; padding: 0.4rem 1rem; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--error-bg); }
.btn-link {
  border: 0; background: none; color: var(--muted); font-weight: 400;
  text-decoration: underline; min-height: 2.75rem; width: 100%;
}

/* ── הודעות ──────────────────────────────────────────────────────────── */
.notice {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); border-inline-start: 4px solid var(--accent);
  background: var(--accent-soft);
}
.notice-success { background: var(--done-soft); border-color: var(--done); }
.notice-error { background: var(--error-bg); border-color: var(--danger); }

/* ── טפסים ───────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label, .share label, .secret label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
input[type=text], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--muted); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 4.5rem; resize: vertical; }
.error { color: var(--danger); font-weight: 600; margin: 0.3rem 0 0; }
.consent { margin: 0.9rem 0 0; }
.check { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; min-height: 2.75rem; }
.check input { width: 1.35rem; height: 1.35rem; accent-color: var(--danger); }

/* ── כותרת החלוקה והתקדמות ───────────────────────────────────────────── */
.headline { margin-bottom: 0.4rem; }
.headline-prefix {
  display: block; font-family: var(--ui); font-weight: 600;
  font-size: 1.05rem; color: var(--muted); margin-bottom: 0.15rem;
}
.headline-name { display: block; font-size: 2.2rem; overflow-wrap: anywhere; }
.round-tag {
  display: inline-block; margin: 0 0 0.6rem; padding: 0.1rem 0.7rem;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--ink); font-size: 0.9rem; font-weight: 600;
}

.progress-block { margin: 1.1rem 0 0; }
.progress-count { font-size: 1.15rem; margin-bottom: 0.45rem; }
.progress-count strong {
  font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--done);
  margin-inline-end: 0.15rem;
}
progress {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--paper); }
progress::-webkit-progress-value { background: var(--done); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--done); border-radius: 999px; }
.progress-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0.7rem 0 0;
}
.progress-meta li {
  padding: 0.15rem 0.7rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.92rem;
}

.mine { display: grid; gap: 0.6rem; margin-top: 1.1rem; }

/* ── לקיחת פרק ───────────────────────────────────────────────────────── */
.take-main { margin-bottom: 1.5rem; }
.field-inline { margin: 0.8rem 0 0; }
.field-inline label { font-weight: 400; color: var(--muted); font-size: 0.95rem; }

/* ── רשת הפרקים ──────────────────────────────────────────────────────── */
.grid-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; margin-bottom: 0.9rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}
.grid-head h2 { margin: 0; }
.grid {
  display: grid; gap: 0.4rem;
  grid-template-columns: repeat(5, 1fr);
}
.cell {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0;
  border-radius: var(--radius-sm); border: 1.5px solid var(--cell-line);
  background: var(--surface); color: var(--accent);
  font: inherit; font-weight: 600; text-decoration: none;
}
button.cell { cursor: pointer; }
button.cell:hover { background: var(--accent-soft); border-color: var(--accent); }
/* המצב נראה גם בלי צבע: מסגרת מלאה, מקווקוות, או מילוי מלא. */
.cell-reserved {
  background: var(--taken-bg); color: var(--taken-ink);
  border: 2px dashed var(--taken-ink);
}
.cell-completed { background: var(--done); border-color: var(--done); color: var(--on-accent); }
.cell-mine { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.legend {
  display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0;
  color: var(--muted); font-size: 0.92rem;
}
.legend li { display: flex; align-items: center; gap: 0.35rem; }
.legend .cell { min-height: 1.15rem; width: 1.15rem; border-radius: 4px; }

/* ── שיתוף ───────────────────────────────────────────────────────────── */
.share-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.share-row input { flex: 1; min-width: 0; font-size: 0.9rem; text-align: left; background: var(--paper); }
.share .btn-secondary { width: 100%; }
.secret { border-color: var(--danger); border-inline-start-width: 4px; }
.secret .share-row { margin-bottom: 0.5rem; }

/* ── דף הקריאה ───────────────────────────────────────────────────────── */
.sheet { padding: 1.5rem 1.15rem 1.25rem; border-top: 4px solid var(--accent); }
.for-whom { color: var(--muted); margin: 0 0 0.6rem; text-align: center; font-size: 0.98rem; }
.sheet h1 {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 2rem; margin-bottom: 1.1rem;
}
.sheet h1::before, .sheet h1::after { content: ''; flex: 1; height: 1px; background: var(--gold); }
.psalm { font-family: var(--reading); font-size: 1.5rem; line-height: 2; }
.psalm p { margin: 0 0 0.35rem; }
.psalm p:last-child { margin-bottom: 0; }
.verse-no { color: var(--muted); font-size: 0.7em; font-family: var(--ui); margin-inline-end: 0.15em; }
.sheet-actions { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.give-back { margin-top: 0.5rem; }
.source { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 1rem 0 0; }

/* ── השלמת ספר ───────────────────────────────────────────────────────── */
.celebrate { text-align: center; padding-top: 1.75rem; border-top-color: var(--done); }
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 6.5rem; height: 6.5rem; margin: 0 auto 1rem;
  border: 3px double var(--done); border-radius: 50%;
  color: var(--done); font-size: 2.1rem; font-weight: 800;
}
.celebrate h1 { font-size: 2.2rem; color: var(--done); }
.celebrate-count { font-size: 1.2rem; font-weight: 700; }

/* ── דף הבית ─────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 2.25rem 1.25rem 1.75rem; background: var(--accent); color: var(--on-accent); border-color: var(--gold); }
.hero h1 { font-size: 2.3rem; color: var(--on-accent); }
.hero .lead, .hero .hint, .hero .eyebrow { color: var(--on-accent-muted); }
.hero .btn-primary { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.hero .btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.hero :focus-visible { outline-color: var(--on-accent); }
.hero .lead { max-width: 30rem; margin-inline: auto; margin-bottom: 1.5rem; }
.hero .hint { margin: 0.7rem 0 0; }
.steps { display: grid; gap: 0.75rem; padding: 0; margin: 1.25rem 0 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1rem 3.6rem 1rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0.9rem; top: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold); color: var(--accent);
  font-weight: 700;
}
.steps strong { display: block; color: var(--ink); }

/* ── דף הניהול ───────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.5rem; margin: 1.1rem 0 0; }
.facts div { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: 0.6rem; text-align: center; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.after-facts { margin-top: 1.1rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.delete-form { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ── מסמכים ──────────────────────────────────────────────────────────── */
.doc { border-top: 4px solid var(--accent); }
.doc h2 { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.doc ul { padding-inline-start: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.45rem; }
.doc-date { color: var(--muted); font-size: 0.95rem; }
.contact { list-style: none; padding: 0 !important; }

@media (min-width: 40rem) {
  body { font-size: 1.125rem; }
  .page { padding-top: 6.5rem; }
  .plain .page { padding-top: 2rem; }
  .card { padding: 1.75rem 1.75rem; }
  .headline-name { font-size: 2.6rem; }
  .grid { grid-template-columns: repeat(10, 1fr); gap: 0.5rem; }
  .cell { min-height: 3.1rem; }
  .take-main { display: grid; grid-template-columns: 1fr 15rem; gap: 1rem; align-items: end; }
  .field-inline { margin: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 3.6rem 1rem 1rem; text-align: center; }
  .steps li::before { inset-inline-start: calc(50% - 1rem); }
  .psalm { font-size: 1.7rem; }
  .sheet { padding: 2.25rem 2.5rem 2rem; }
  .share .btn-secondary { width: auto; }
}

@media print {
  .top, .foot, .sky, .a11y, .skip-link, .share, .own, form, .notices { display: none; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}

/* ── חלוקה משלכם ─────────────────────────────────────────────────────── */
.own { text-align: center; border-color: var(--gold); }
.own p { color: var(--muted); }

/* ── לוח המפעיל ──────────────────────────────────────────────────────── */
.wide .page { max-width: 72rem; }
.narrow { max-width: 26rem; margin-inline: auto; }
input[type=password] {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--muted); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit;
}
.owner-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.owner-head h1 { margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0 0 0.75rem; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--accent); padding: 0.9rem 1rem;
}
.kpi-estimate { border-top-style: dashed; }
.trust { margin: 0 0 1.1rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; }
.trust p { margin: 0 0 0.5rem; }
.trust p:last-child { margin: 0; }
.kpi dt { color: var(--muted); font-size: 0.92rem; }
.kpi dd { margin: 0.1rem 0; font-size: 2.1rem; font-weight: 800; line-height: 1.15; color: var(--accent); }
.kpi p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.charts { display: grid; gap: 1.5rem; }
.chart { margin: 0; }
.chart figcaption { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; color: var(--muted); }
.chart figcaption strong { font-size: 1.5rem; color: var(--ink); }
.chart svg { display: block; width: 100%; height: 5.5rem; border-bottom: 1px solid var(--cell-line); }
.bar-hit { fill: transparent; }
.bar-mark { fill: var(--accent); }
.bar:hover .bar-hit { fill: var(--accent-soft); }
.bar:hover .bar-mark { fill: #1B3C68; }
/* הציר משמאל לימין, כמו העמודות שב-SVG: היום האחרון בצד ימין */
.chart-axis { direction: ltr; display: flex; justify-content: space-between; margin: 0.3rem 0 0; color: var(--muted); font-size: 0.82rem; }

.table-view { margin-top: 1.25rem; }
.table-view summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 0.55rem 0.6rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { color: var(--muted); font-weight: 600; font-size: 0.88rem; border-bottom-color: var(--cell-line); }
tbody th { font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
.link-cell a { font-size: 0.85rem; }
.btn-copy { min-height: 2.25rem; padding: 0.15rem 0.7rem; margin-inline-start: 0.4rem; background: var(--surface); color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); font: inherit; font-size: 0.85rem; cursor: pointer; }
.pick { width: 2.75rem; }
.pick input { width: 1.35rem; height: 1.35rem; accent-color: var(--danger); }
.bulk { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.sub { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.sub-inline { color: var(--muted); font-size: 0.85rem; }
.mini { display: inline-block; vertical-align: middle; width: 3.5rem; height: 0.5rem; margin-inline-end: 0.5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.mini-fill { display: block; height: 100%; background: var(--done); }

.type-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.type-bars li { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; align-items: center; gap: 0.6rem; }
.type-track { height: 0.9rem; background: var(--paper); border-radius: 4px; overflow: hidden; }
.type-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.type-count { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }

@media (min-width: 40rem) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .charts { grid-template-columns: repeat(3, 1fr); }
}

/* ── תפריט נגישות ────────────────────────────────────────────────────── */
.a11y { position: fixed; inset-inline-start: 0.9rem; bottom: 0.9rem; z-index: 20; }
.a11y-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--on-accent); cursor: pointer;
}
.a11y-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.a11y-panel {
  position: absolute; inset-inline-start: 0; bottom: 4.1rem;
  width: min(20rem, calc(100vw - 1.8rem)); max-height: calc(100vh - 6rem); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--accent); border-radius: var(--radius); padding: 1rem;
}
.a11y-panel h2 { margin-bottom: 0.75rem; }
.a11y-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.a11y-options button {
  min-height: 3.5rem; padding: 0.4rem 0.5rem;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--cell-line); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.95rem; cursor: pointer;
}
.a11y-options button.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.9rem; }
.a11y-foot button {
  min-height: 2.75rem; padding: 0.3rem 0.9rem;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--accent); border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; cursor: pointer;
}
.foot { padding-bottom: 4.75rem; }

/* מה שהתפריט מפעיל. הכול דרך מחלקה על html ודרך הטוקנים, בלי לגעת בתוכן. */
html.a11y-text-1 { font-size: 115%; }
html.a11y-text-2 { font-size: 130%; }
html.a11y-text-3 { font-size: 150%; }
html.a11y-contrast {
  --paper: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --muted: #1F1F1F;
  --line: #000000; --cell-line: #000000; --accent: #000000; --accent-soft: #FFFFFF;
  --on-accent-muted: #FFFFFF; --gold: #000000; --done: #003D1F; --done-soft: #FFFFFF;
  --taken-bg: #FFFFFF; --taken-ink: #000000; --danger: #7A0000; --error-bg: #FFFFFF;
}
html.a11y-contrast .sky { display: none; }
html.a11y-links a { text-decoration: underline; outline: 2px solid currentColor; outline-offset: 2px; }
html.a11y-font { --ui: Arial, 'Segoe UI', sans-serif; --reading: Arial, 'Segoe UI', sans-serif; }
html.a11y-spacing body { line-height: 2; letter-spacing: 0.03em; word-spacing: 0.14em; }
html.a11y-spacing .psalm { line-height: 2.6; }

