/* מהלך 40 הגנים — the shared look. Big, calm, friendly: one thing at a time, large tap targets, strong contrast. */

@font-face { font-family: 'Heebo'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/heebo-hebrew-wght-normal.woff2') format('woff2-variations');
  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-display: swap; font-weight: 100 900;
  src: url('/fonts/heebo-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Assistant'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/fonts/assistant-hebrew-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/fonts/assistant-latin-wght-normal.woff2') format('woff2-variations');
  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; }

:root {
  --font-body: 'Assistant', 'Noto Sans Hebrew', 'Arial Hebrew', Arial, sans-serif;
  --font-head: 'Heebo', 'Noto Sans Hebrew', 'Arial Hebrew', Arial, sans-serif;
  --ink: #1F2A33; --muted: #46525E; --bg: #FFFBF3; --card: #FFFFFF; --line: #E4D8C4;
  --primary: #0E5E86; --primary-ink: #FFFFFF; --primary-soft: #DDF0FB;
  --attn-bg: #FFE9D6; --attn-ink: #8A3A00; --ok-bg: #E2F6D5; --ok-ink: #2B6410;
  --radius: 18px; --gap: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
h1, h2, h3, .btn, .tile, label, .q, .num { font-family: var(--font-head); }
h1 { font-size: 30px; line-height: 1.25; margin: 10px 0 14px; }
h2 { font-size: 24px; line-height: 1.3; margin: 22px 0 10px; }
h3 { font-size: 21px; margin: 16px 0 8px; }
p { margin: 8px 0; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
.ic { flex: none; vertical-align: middle; }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 96px; }
main.wide { max-width: 1100px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.big { font-size: 22px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #F2A23A; outline-offset: 3px; border-radius: 6px; }

/* ── top of every page ── */
.ribbon { background: #FFF2B8; color: #5C4400; text-align: center; padding: 6px 12px; font-size: 18px; border-bottom: 2px solid #F2D873; }
.ribbon b { font-family: var(--font-head); }
.topbar { max-width: 760px; margin: 0 auto; padding: 10px 16px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.wide-top .topbar { max-width: 1100px; }
.viewing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 18px; }
.viewing a { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 600; text-decoration: none;
  padding: 6px 10px; border-radius: 12px; background: var(--primary-soft); min-height: 44px; }
.notice { max-width: 760px; margin: 10px auto 0; padding: 10px 14px; border-radius: 14px; background: #ECEFF3; display: flex; gap: 8px; align-items: center; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 10px 20px;
  border-radius: var(--radius); border: 2px solid var(--primary); background: var(--card); color: var(--primary);
  font-size: 22px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-small { min-height: 48px; font-size: 19px; padding: 6px 14px; }
.btn-block { display: flex; width: 100%; }
.btn-warm { border-color: #C2560F; color: #8A3A00; background: #FFF4EA; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.row > .btn { flex: 1 1 200px; }

/* ── big action buttons on the home page ── */
.actions { display: grid; gap: var(--gap); margin: 18px 0; }
.action { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 12px 18px; border-radius: 22px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--font-head); font-size: 24px; font-weight: 700; cursor: pointer; text-align: start; width: 100%; }
.action .bubble { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; flex: none; }
.action small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 18px; color: var(--muted); }

/* ── picking tiles ("מי את?", gardens, topics) ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin: 12px 0; }
.tiles.wide-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 12px 8px;
  border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 22px; font-weight: 700; text-align: center; line-height: 1.2; }
.tile small { font-family: var(--font-body); font-weight: 400; font-size: 18px; color: var(--muted); }
.tile[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.tile .bubble { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.tile-row { flex-direction: row; justify-content: flex-start; min-height: 72px; padding: 10px 16px; text-align: start; gap: 12px; }
.badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }

/* ── cards ── */
.card { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 16px 18px; margin: 14px 0; }
.card.attn { background: var(--attn-bg); border-color: #F3C49B; }
.card.ok { background: var(--ok-bg); border-color: #B9E2A0; }
.answer { display: flex; align-items: center; gap: 16px; }
.num { font-size: 48px; font-weight: 800; line-height: 1; min-width: 64px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 18px; font-family: var(--font-head); font-weight: 600; }
.pill.attn { background: var(--attn-bg); color: var(--attn-ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.plain { background: #ECEFF3; color: var(--ink); }

/* ── forms: one question per screen ── */
.progress { font-family: var(--font-head); font-weight: 600; color: var(--muted); margin: 6px 0 0; }
.progress-bar { height: 10px; background: #EEE6D8; border-radius: 99px; overflow: hidden; margin: 6px 0 12px; }
.progress-bar span { display: block; height: 100%; background: #7DB9E8; border-radius: 99px; }
.q { font-size: 28px; font-weight: 800; line-height: 1.25; margin: 12px 0 6px; }
.hint { font-size: 20px; color: var(--muted); margin: 4px 0 12px; }
.hint.loud { font-size: 22px; color: #6E3A00; background: #FFF2B8; padding: 8px 14px; border-radius: 14px; font-family: var(--font-head); font-weight: 700; }
textarea, input[type="text"], input[type="search"], input[type="date"], input:not([type]) {
  width: 100%; font: inherit; font-size: 22px; padding: 14px 16px; border-radius: 16px; border: 2px solid #CBBFAA; background: #fff; color: var(--ink); min-height: 60px; }
textarea { min-height: 160px; resize: vertical; }
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.counter { text-align: start; color: var(--muted); font-size: 18px; }
.err { color: #A0280F; background: #FFE8E2; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.nav-steps { display: flex; gap: 12px; margin: 22px 0 8px; flex-wrap: wrap; }
.nav-steps .btn { flex: 1 1 140px; }
.summary { list-style: none; padding: 0; margin: 10px 0; }
.summary li button { display: flex; width: 100%; gap: 12px; align-items: flex-start; text-align: start; background: var(--card); border: 2px solid var(--line);
  border-radius: 16px; padding: 12px 14px; margin: 8px 0; font: inherit; color: inherit; cursor: pointer; min-height: 60px; }
.summary b { font-family: var(--font-head); display: block; }
.done { text-align: center; padding: 26px 10px; }
.done .huge { font-family: var(--font-head); font-size: 36px; font-weight: 800; margin: 12px 0; }

/* ── bars (topic counts) ── */
.bars { list-style: none; padding: 0; margin: 8px 0; }
.bars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: 19px; }
.bars .track { background: #F1EADF; border-radius: 99px; height: 22px; overflow: hidden; }
.bars .fill { display: block; height: 100%; background: #9FD3F5; border-radius: 99px; }
.bars .n { font-family: var(--font-head); font-weight: 700; min-width: 2ch; }

/* ── table behind "להצגת כל הגנים כטבלה" ── */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 18px; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: start; }
th { font-family: var(--font-head); background: #F7F1E6; }

/* ── sheets (in place of browser pop-ups) and the toast ── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(31, 42, 51, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 12px; }
.sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 24px; padding: 20px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.25); max-height: 90vh; overflow-y: auto; }
.sheet h2 { margin-top: 4px; display: flex; gap: 10px; align-items: center; }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 140%); background: #1F2A33; color: #fff; padding: 14px 22px; border-radius: 16px;
  font-family: var(--font-head); font-size: 20px; max-width: calc(100% - 24px); transition: transform .25s; z-index: 60; text-align: center; }
#toast.show { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
@media (min-width: 640px) { .actions { grid-template-columns: 1fr 1fr; } .sheet-backdrop { align-items: center; } }
@media print { .ribbon, .topbar, .no-print, #toast { display: none !important; } body { background: #fff; } }
