@import url('/css/fonts.css');

/* ערכת נושא בהירה: כחול בטוח + צהוב "מורה נהיגה" */
:root {
  --bg: #f3f6fc; --card: #ffffff; --soft: #eaf0fb;
  --line: #e0e7f3; --text: #0e1b3d; --mut: #5b6a8c;
  --blue: #1f5cff; --blue-d: #1747c9; --blue-l: #e6eeff;
  --yellow: #ffc533; --yellow-l: #fff4d1;
  --ok: #12a66a; --ok-d: #0a7a4a; --amber-d: #8a5200; --red-d: #b3202f; --ok-l: #dcf6ea; --red: #e5384a; --red-l: #fde4e7; --amber: #c77d00; --amber-l: #fff0cf;
  --r: 20px; --shadow: 0 14px 34px -16px rgba(24, 52, 120, .28);
  --f-display: 'Rubik', 'Heebo', system-ui, sans-serif; --f-body: 'Heebo', 'Rubik', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: light; }
body {
  margin: 0; min-height: 100vh; font-family: var(--f-body); color: var(--text); font-size: 16px; line-height: 1.55; overflow-x: hidden;
  background:
    radial-gradient(900px 480px at 100% -8%, rgba(31, 92, 255, .10), transparent 60%),
    radial-gradient(700px 420px at -8% 12%, rgba(255, 197, 51, .16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -.01em; }
a { color: var(--blue-d); }
.muted { color: var(--mut); }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1900px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 56px) 80px; }

.lane { height: 5px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--yellow) 0 24px, transparent 24px 40px); }
.lane.dim { opacity: .55; height: 4px; }

.glass, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card { padding: 22px; }

/* ---- כפתורים ---- */
.btn {
  font: 600 15px var(--f-display); border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 11px 18px; border-radius: 14px; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s;
  box-shadow: 0 2px 6px -3px rgba(24, 52, 120, .25);
}
.btn:hover { border-color: #b9c8e8; background: #f8faff; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(31, 92, 255, .75); }
.btn.primary:hover { background: var(--blue-d); }
.btn.yellow { background: var(--yellow); color: #3a2a00; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(255, 197, 51, .9); }
.btn.yellow:hover { background: #ffb800; }
.btn.danger { background: var(--red-l); color: var(--red-d); border-color: #f7c2c8; box-shadow: none; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn.lg { padding: 15px 26px; font-size: 17px; border-radius: 16px; }
.btn.wa { background: var(--ok-l); color: var(--ok-d); border-color: #b5e7d0; box-shadow: none; }
a.btn { text-decoration: none; display: inline-block; }

input, select, textarea {
  font: 500 16px var(--f-body); color: var(--text); background: #fff; border: 1.5px solid var(--line);
  border-radius: 13px; padding: 12px 14px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #66769a; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 92, 255, .14); }
.hint { font-size: 13px; min-height: 18px; color: var(--mut); font-weight: 500; line-height: 1.4; }
.hint.ok { color: var(--ok-d); } .hint.bad { color: var(--red-d); }
.f > select, .row > select { min-width: 0; flex: 1; padding: 11px 8px; }
label.f, div.f { display: grid; gap: 6px; font-size: 13px; color: var(--mut); font-weight: 600; }
label.f small { font-weight: 400; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 16px; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 14px; }
.stack > *, .card > *, .grid2 > * { min-width: 0; }
.ltr { direction: ltr; unicode-bidi: plaintext; text-align: right; }
bdi.ltr, .iso { direction: ltr; unicode-bidi: isolate; display: inline-block; }
input[type=email], input[type=tel], input[type=url], input[type=number], input[type=time], input[type=date] { direction: ltr; unicode-bidi: plaintext; text-align: right; }
input::placeholder, textarea::placeholder { direction: rtl; unicode-bidi: plaintext; text-align: right; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---- צ'יפים ותגיות ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--text); padding: 9px 16px; border-radius: 999px; font: 600 14px var(--f-display); cursor: pointer; transition: all .14s; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(31, 92, 255, .8); }
.tag { display: inline-block; font: 600 12px var(--f-display); padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--mut); }
.tag.ok { background: var(--ok-l); color: var(--ok-d); }
.tag.warn { background: var(--amber-l); color: var(--amber-d); }
.tag.bad { background: var(--red-l); color: var(--red-d); }
.tag.lime { background: var(--blue-l); color: var(--blue-d); }

/* ---- כותרת ---- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 12px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 11px; font: 800 19px var(--f-display); }
.logo i { width: 40px; height: 40px; border-radius: 13px; background: var(--yellow); color: #3a2a00; display: grid; place-items: center; font-style: normal; font-size: 21px; transform: rotate(-6deg); box-shadow: 0 10px 20px -8px rgba(255, 197, 51, .95); }
.logo small { display: block; font: 500 12px var(--f-body); color: var(--mut); }

/* ---- כניסת תלמיד ---- */
.auth { max-width: 520px; width: 100%; margin: 0 auto; }
/* מסך כניסה בפריסה מלאה: צד מותג + צד טופס */
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; min-height: calc(100vh - 110px); }
.auth-brand { position: relative; border-radius: 32px; padding: clamp(28px, 4vw, 56px); color: #fff; overflow: hidden; background: linear-gradient(135deg, #1f5cff, #1238a8); box-shadow: 0 40px 70px -34px rgba(31, 92, 255, .9); min-height: 560px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-brand::after { content: ''; position: absolute; inset-inline-start: -90px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 197, 51, .55), transparent 70%); }
.auth-brand h2 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; color: #fff; position: relative; z-index: 1; }
.auth-brand p, .auth-brand li { color: #d6e2ff; font-size: 17px; position: relative; z-index: 1; margin: 0; }
.auth-brand ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-brand li::before { content: '✓'; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-end: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: var(--yellow); font-weight: 800; font-size: 14px; }
.auth-brand img { position: relative; z-index: 1; width: min(240px, 60%); aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 120px 120px 22px 22px; border: 6px solid rgba(255, 255, 255, .9); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); }
.auth-form { display: grid; align-content: center; }
/* רשימות ותצוגות רחבות */
.list2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 10px; }
.list2 .lesson + .lesson { margin-top: 0; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; align-items: start; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--soft); margin-bottom: 18px; }
.auth-tabs button { border: 0; background: transparent; color: var(--mut); font: 700 15px var(--f-display); padding: 11px; border-radius: 12px; cursor: pointer; }
.auth-tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 4px 12px -6px rgba(24, 52, 120, .4); }
.alt-link { background: none; border: 0; color: var(--blue); font: 600 14px var(--f-body); cursor: pointer; padding: 6px; text-decoration: underline; }

/* ---- דרך (התקדמות) ---- */
.road { position: relative; height: 58px; border-radius: 16px; background: #2b3550; overflow: hidden; margin: 14px 0 6px; }
.road::before { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 3px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 18px, transparent 18px 34px); }
.road .done { position: absolute; inset-block: 0; inset-inline-start: 0; background: linear-gradient(270deg, rgba(255, 197, 51, .55), rgba(255, 197, 51, .05)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.road .car { position: absolute; top: 50%; font-size: 28px; transform: translate(50%, -52%); transition: inset-inline-start .8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.road .flag { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.stat { padding: 14px 16px; border-radius: 16px; background: var(--soft); }
.stat b { display: block; font: 800 30px var(--f-display); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--mut); }
.stat.lime { background: var(--blue-l); } .stat.lime b { color: var(--blue); }

/* ---- סרגל ימים ושעות ---- */
.days { display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.day { flex: 0 0 66px; scroll-snap-align: start; text-align: center; padding: 10px 0; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font-family: var(--f-display); transition: all .14s; }
.day small { display: block; color: var(--mut); font-size: 12px; }
.day b { display: block; font-size: 22px; font-weight: 700; }
.day i { display: block; width: 6px; height: 6px; border-radius: 50%; margin: 3px auto 0; background: var(--ok); }
.day.none { opacity: .4; cursor: default; } .day.none i { background: transparent; }
.day.on { background: var(--blue); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(31, 92, 255, .85); }
.day.on small { color: #fff; } .day.on i { background: var(--yellow); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; }
.time { padding: 12px 0; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: 600 16px var(--f-display); cursor: pointer; transition: all .14s; }
.time:hover { border-color: var(--blue); transform: translateY(-1px); }
.time.on { background: var(--blue); color: #fff; border-color: transparent; }
.confirm-bar { position: sticky; bottom: 12px; margin-top: 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: #c8d6f5; box-shadow: 0 18px 40px -14px rgba(24, 52, 120, .45); }

/* ---- שיעורים ---- */
.lesson { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(24, 52, 120, .3); }
.lesson + .lesson { margin-top: 10px; }
.date-badge { width: 58px; text-align: center; padding: 8px 0; border-radius: 14px; background: var(--blue-l); color: var(--blue); font-family: var(--f-display); }
.date-badge b { display: block; font-size: 22px; line-height: 1; } .date-badge small { color: var(--mut); font-size: 12px; }
.lesson .t { font: 700 17px var(--f-display); } .lesson .s { color: var(--mut); font-size: 14px; }
.lesson.cancelled { opacity: .55; } .lesson.cancelled .t { text-decoration: line-through; }
.month-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font: 700 14px var(--f-display); color: var(--mut); }
.month-h::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
.lesson .more { grid-column: 1 / -1; font-size: 14px; line-height: 1.7; background: var(--soft); border-radius: 12px; padding: 10px 14px; }
.lesson .more div + div { margin-top: 4px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.section-h h2 { font-size: 22px; }

/* ---- חלון קופץ ---- */
.modal-back { position: fixed; inset: 0; background: rgba(14, 27, 61, .48); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .16s; overflow: auto; }
.modal-back.out { opacity: 0; transition: opacity .16s; }
.modal { width: min(460px, 100%); background: #fff; padding: 0; animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); box-shadow: 0 30px 70px -20px rgba(14, 27, 61, .6); }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 19px; } .modal-body { padding: 18px 20px 20px; }
.x { background: none; border: 0; color: var(--mut); font-size: 18px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

#toasts { position: fixed; bottom: 18px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; z-index: 99; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow); animation: pop .22s; max-width: 92vw; }
.toast.ok { border-bottom: 3px solid var(--ok); } .toast.err { background: #8e1d2a; border-bottom: 3px solid var(--red); } .toast.out { opacity: 0; transition: opacity .4s; }

.otp { letter-spacing: .5em; text-align: center; font: 700 28px var(--f-display); direction: ltr; }
.empty { text-align: center; color: var(--mut); padding: 28px 12px; border: 2px dashed var(--line); border-radius: 16px; background: #fff; }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: sp .7s linear infinite; margin: 30px auto; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---- אדמין ---- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 18px; margin: 8px 0 18px; }
.tabs button { flex: 1 0 auto; border: 0; background: transparent; color: var(--mut); font: 600 15px var(--f-display); padding: 10px 16px; border-radius: 13px; cursor: pointer; transition: all .14s; white-space: nowrap; }
.tabs button.on { background: var(--blue); color: #fff; box-shadow: 0 10px 20px -10px rgba(31, 92, 255, .8); }
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.weekstrip .day { flex: none; padding: 8px 0; }
.weekstrip .day em { display: block; font: 700 11px var(--f-display); font-style: normal; color: var(--blue); min-height: 14px; }
.weekstrip .day.on em { color: #fff; }
.timeline { position: relative; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; direction: ltr; box-shadow: var(--shadow); }
.timeline .hr { position: absolute; left: 0; right: 0; border-top: 1px dashed #dbe4f4; font-size: 11px; color: var(--mut); padding: 1px 6px; }
.timeline .win { position: absolute; left: 52px; right: 0; background: #eef4ff; border-inline-start: 3px solid #a9c1ff; cursor: copy; }
.timeline .blk { position: absolute; left: 52px; right: 0; background: repeating-linear-gradient(135deg, #fde4e7 0 8px, #fff 8px 16px); border-inline-start: 3px solid var(--red); padding: 4px 10px; font: 600 13px var(--f-display); color: var(--red-d); direction: rtl; }
.timeline .blk.test { background: repeating-linear-gradient(135deg, #fff0cf 0 8px, #fff 8px 16px); border-color: var(--yellow); color: var(--amber-d); }
.timeline .les { position: absolute; left: 56px; right: 6px; border-radius: 13px; padding: 6px 12px; background: linear-gradient(135deg, #2d6bff, #1747c9); color: #fff; cursor: pointer; overflow: hidden; direction: rtl; box-shadow: 0 10px 20px -10px rgba(31, 92, 255, .8); }
.timeline .les { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; transition: box-shadow .15s; }
.timeline .les.dragging { z-index: 8; cursor: grabbing; opacity: .92; box-shadow: 0 24px 40px -12px rgba(14, 27, 61, .55); transition: none; }
.weekstrip .day.drop { outline: 3px dashed var(--yellow); outline-offset: 2px; background: var(--yellow-l); }
.drag-tip { position: fixed; z-index: 60; background: var(--text); color: #fff; font: 600 13px var(--f-display); padding: 7px 12px; border-radius: 10px; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; }
.timeline .les.done { background: linear-gradient(135deg, #8d9bba, #6f7e9f); box-shadow: none; }
.timeline .les.noshow { background: linear-gradient(135deg, #e5384a, #c22a3b); }
.timeline .les b { font: 700 15px var(--f-display); display: block; } .timeline .les span { font-size: 12.5px; opacity: .92; }
table.t { width: 100%; border-collapse: collapse; background: #fff; }
table.t th { text-align: start; color: var(--mut); font: 600 13px var(--f-body); padding: 10px; border-bottom: 1px solid var(--line); background: #f8faff; }
table.t td { padding: 12px 10px; border-bottom: 1px solid #edf1f9; vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f5f8ff; }
table.t.glass { overflow: hidden; }
.rule-row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f9; }
.rng { display: inline-flex; align-items: center; gap: 6px; margin: 3px 6px 3px 0; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--blue-l); color: var(--blue-d); font: 600 13px var(--f-display); }
.rng button { border: 0; background: none; color: var(--mut); cursor: pointer; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: inline-block; } .qr img { display: block; }
.big-code { font: 800 34px var(--f-display); letter-spacing: .25em; direction: ltr; color: var(--blue); }
.meter { height: 10px; border-radius: 6px; background: var(--soft); overflow: hidden; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--ok)); }

@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; } .auth-brand { display: none; }
}
@media (max-width: 640px) {
  table.t.students { display: table; width: 100%; }
  table.t.students th:nth-child(4), table.t.students td:nth-child(4), table.t.students th:nth-child(5), table.t.students td:nth-child(5), table.t.students th:nth-child(7), table.t.students td:nth-child(7) { display: none; }
  table.t { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs { gap: 2px; padding: 5px; } .tabs button { padding: 10px 9px; font-size: 13.5px; }
  .grid2 { grid-template-columns: 1fr; } .stats { gap: 8px; } .stat b { font-size: 24px; }
  .lesson { grid-template-columns: auto 1fr; } .lesson .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ================= נגישות ================= */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #1f5cff; outline-offset: 2px; }
.auth-brand :focus-visible, .cta-box :focus-visible, .foot :focus-visible, .btn.primary:focus-visible { outline-color: #ffc533; }
.btn.primary:focus-visible { outline: 3px solid #0e1b3d; box-shadow: 0 0 0 6px #ffc533; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 300; background: #0e1b3d; color: #fff; padding: 12px 18px; border-radius: 12px; font: 700 16px var(--f-display); text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.a11y-fab { position: fixed; left: 14px; bottom: 14px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #0e1b3d; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); padding: 0; }
.a11y-panel { position: fixed; left: 14px; bottom: 78px; z-index: 91; width: min(310px, calc(100vw - 28px)); background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(14, 27, 61, .5); display: grid; gap: 8px; max-height: 78vh; overflow: auto; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; font: 700 18px var(--f-display); }
.a11y-x { border: 0; background: none; font-size: 20px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--text); }
.a11y-opt { text-align: start; padding: 12px 14px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 600 15px var(--f-display); cursor: pointer; color: var(--text); }
.a11y-opt[aria-pressed=true] { background: #0e1b3d; color: #fff; border-color: transparent; }
.a11y-row { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; align-items: center; text-align: center; font-weight: 600; }
.a11y-row button { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 800 18px var(--f-display); cursor: pointer; color: var(--text); }
.a11y-link { text-align: center; color: var(--blue-d); font-weight: 700; padding: 10px; }
html.a11y-fs1 body { zoom: 1.12; } html.a11y-fs2 body { zoom: 1.25; } html.a11y-fs3 body { zoom: 1.45; }
html.a11y-links a { text-decoration: underline !important; font-weight: 700 !important; outline: 2px solid currentColor; outline-offset: 1px; }
html.a11y-font body, html.a11y-font *, html.a11y-font input, html.a11y-font button { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-spacing body { line-height: 1.95 !important; letter-spacing: .04em; word-spacing: .14em; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-noanim .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast *:not(img):not(svg):not(path):not(circle) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast .alt-link { color: #ffe14d !important; text-decoration: underline !important; }
html.a11y-contrast .btn.primary, html.a11y-contrast .btn.yellow, html.a11y-contrast .chip.on, html.a11y-contrast .time.on, html.a11y-contrast .day.on, html.a11y-contrast .tabs button.on, html.a11y-contrast .a11y-opt[aria-pressed=true] { background-color: #ffe14d !important; color: #000 !important; border-color: #ffe14d !important; }
html.a11y-contrast .btn.primary *, html.a11y-contrast .day.on *, html.a11y-contrast .tabs button.on * { color: #000 !important; background-color: transparent !important; }
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea { border: 2px solid #fff !important; }
html.a11y-contrast :focus-visible { outline: 4px solid #ffe14d !important; }
/* מגע: יעדי לחיצה גדולים (WCAG 2.5.5) */
@media (pointer: coarse) {
  .btn, .chip, .time, .day, .tabs button, .alt-link, summary, .x { min-height: 44px; }
  .btn.sm { min-height: 40px; padding-inline: 14px; }
  input, select { min-height: 46px; }
}
@media (max-width: 640px) { .a11y-fab { bottom: 84px; } .a11y-panel { bottom: 148px; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.consent-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; background: var(--soft); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.6; color: var(--text); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.consent a { color: var(--blue-d); font-weight: 700; }
