/* © 2026 אבישי פנחס (Avishay Pinchas). All rights reserved. */
/* Member page: home screen "ואהבת אחיהוד" (final look approved 2026-12-03:
   mockup/shots/רפרנס/ממשק קהילתי כחול כהה בעברית.png), full birthday list, full duty roster, all messages, one-person
   search result. Colors: tokens.css (sampled from that image). FLAT LOOK: flat.css (loaded after this file) removes
   every glow, shadow, blur, grain and ambient light except a slight halo on the title. */

/* Fonts: local files only. Nothing loads from the network. */
@font-face { font-family: 'Rubik'; src: url('fonts/rubik-hebrew.woff2') format('woff2'); font-weight: 300 900; font-display: block; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; src: url('fonts/rubik-latin.woff2') format('woff2'); font-weight: 300 900; font-display: block; }
@font-face { font-family: 'Heebo'; src: url('fonts/heebo-hebrew.woff2') format('woff2'); font-weight: 100 900; font-display: block; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; src: url('fonts/heebo-latin.woff2') format('woff2'); font-weight: 100 900; font-display: block; }

:root {
  /* Stronger glow, from the approved image. */
  --lit-1: rgba(var(--accent-rgb), 0.9);
  --lit-2: rgba(var(--accent-rgb), 0.5);
  --lit-3: rgba(var(--accent-rgb), 0.28);
  --lit-shadow: 0 0 2px var(--lit-1), 0 0 10px var(--lit-2), 0 0 26px var(--lit-3);
  --lit-border: 0 0 0 1px rgba(var(--accent-rgb), 0.15), 0 0 14px rgba(var(--accent-rgb), 0.35), 0 0 34px rgba(var(--accent-rgb), 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; overflow-x: clip; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lit { color: var(--accent); text-shadow: var(--lit-shadow); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spin, .flicker { animation: none; } }

/* The standard ambient-top centers with translateX(-50%), which pushes it off-screen in RTL. Center with logical insets. */
.ambient-top { inset-inline: 0; margin-inline: auto; transform: none; max-width: 100%; z-index: 0; width: 900px; height: 180px; opacity: 0.16; filter: blur(80px); background: var(--accent); }

/* ---- Layout: one centered column, as in the image (phone and desktop) ---- */
.page { position: relative; max-width: 700px; margin: 0 auto; min-height: 100vh; padding: 28px 24px 40px; }

/* Title, then one row exactly as wide as the title: date from the start of "ואהבת", the bell at the other end. */
.masthead { position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; }
.head-block { display: inline-flex; flex-direction: column; align-items: stretch; max-width: 100%; }
.title { margin: 0; font-size: 92px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; color: var(--text-main); text-align: center; }
.title .title-lit { color: var(--accent); }
.today-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today { margin: 0; display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1.1; color: var(--accent); }
.today .icon { width: 1.12em; height: 1.12em; stroke-width: 2; }   /* a little larger and heavier, as in the reference */
/* Bell: icon only, as tall as the date text; the tap area is at least 48 px. OFF red with a diagonal line; ON sky blue. */
.bell { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; min-width: 48px; min-height: 48px; margin-inline-end: -6px;
  border-radius: 12px; cursor: pointer; font-size: 44px; }
.bell .icon { width: 1em; height: 1em; stroke-width: 2.1; }        /* as tall as the date text; heavier line */
.bell[aria-pressed="false"] { color: var(--danger); }
.bell[aria-pressed="true"] { color: var(--accent); }
.bell .bell-on { display: none; }
.bell[aria-pressed="true"] .bell-on { display: block; }
.bell[aria-pressed="true"] .bell-off { display: none; }
/* Blocked in the browser (permission denied): a third look, grey with the line. */
.bell[data-state="blocked"] { color: var(--text-muted); }
.bell[aria-busy="true"] { opacity: 0.5; cursor: progress; }
.bell:hover { background: rgba(var(--text-rgb), 0.06); }
.bell:active { background: rgba(var(--text-rgb), 0.12); }

/* ---- Search ---- */
.search { position: relative; z-index: 20; max-width: 640px; margin: 40px auto 0; }
.field { position: relative; display: flex; align-items: center; }
.field .f-icon { position: absolute; inset-inline-start: 20px; width: 24px; height: 24px; color: var(--accent); filter: drop-shadow(0 0 5px var(--lit-2)); pointer-events: none; }
.field input {
  width: 100%; min-height: 60px; padding-block: 0; padding-inline: 58px 56px; border-radius: 18px;
  font: inherit; font-size: 19px; color: var(--text-main); background: rgba(var(--bg-rgb), 0.6);
  border: 1.5px solid var(--accent); outline: none; border-radius: 30px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.field input::placeholder { color: var(--text-soft); }
.field input:hover { border-color: var(--accent); }
.field input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22), 0 0 18px rgba(var(--accent-rgb), 0.45), 0 0 40px rgba(var(--accent-rgb), 0.18); }
.f-clear { all: unset; position: absolute; inset-inline-end: 6px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--text-soft); cursor: pointer; }
.f-clear:hover, .f-clear:focus-visible { color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.f-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; margin: 0; padding: 6px; list-style: none; z-index: 30;
  border-radius: 16px; background: var(--bg-elevated); border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 16px rgba(var(--accent-rgb), 0.14); max-height: 320px; overflow-y: auto; }
.suggest .count { padding: 8px 12px 4px; font-size: 13px; color: var(--text-soft); }
.suggest .opt { min-height: 48px; display: flex; align-items: center; gap: 10px; padding-inline: 12px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.suggest .opt .icon { width: 18px; height: 18px; color: var(--text-soft); }
.suggest .opt:hover, .suggest .opt.is-active { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.suggest .opt:hover .icon, .suggest .opt.is-active .icon { color: var(--accent); }
.suggest .opt b { font-weight: 800; color: var(--accent); }
.suggest .opt:active { background: rgba(var(--accent-rgb), 0.16); }
.nomatch { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(var(--text-rgb), 0.03); border: 1px solid rgba(var(--text-rgb), 0.1); }
.nomatch .icon { width: 28px; height: 28px; color: var(--text-muted); }
.nomatch div { display: flex; flex-direction: column; gap: 2px; }
.nomatch strong { font-family: var(--font-display); font-size: 17px; }
.nomatch span { font-size: 15px; color: var(--text-soft); }

/* ---- Home: birthday, duty, messages, hosting line (one column) ---- */
.home-grid { position: relative; z-index: 1; margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.block-head h2 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: 0; line-height: 1.2; color: var(--text-main); }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 6px; border-radius: 10px;
  font-size: 18px; font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more .icon { width: 20px; height: 20px; }
.more:hover { background: rgba(var(--accent-rgb), 0.08); }
.more:active { background: rgba(var(--accent-rgb), 0.14); }

/* Birthday card: name + age | sky-blue divider | Hebrew date + birth date; each half centered. Muted frame. */
.blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bcard { border-radius: 18px; padding: 16px 24px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  border: 1.5px solid var(--reflection); }
.bcard .b-who, .bcard .b-when { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.bcard .name { font-family: var(--font-display); font-size: 32px; font-weight: 900; line-height: 1.15; color: var(--accent); }
.bcard .age { font-size: 22px; color: var(--text-main); }
.bcard .hdate { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.15; white-space: nowrap; color: var(--text-main); }
.bcard .gdate { font-size: 20px; color: var(--text-main); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vsep { align-self: stretch; width: 1.5px; min-height: 48px; background: var(--accent); position: relative; z-index: 2; }
.bcard.is-today { border-color: var(--accent); }
.bcard.is-today .hdate { color: var(--accent); }
.bcard .now { display: inline-flex; align-items: center; gap: 8px; }
.bcard .now .live-dot { flex: none; }
.bcard.is-group .b-who { gap: 8px; }
.bcard .g-line { display: flex; flex-direction: column; align-items: center; gap: 1px; }

/* Duty card: label; parasha + book icon; date; divider; the name large. All centered. Sky-blue frame. */
.duty { border-radius: 22px; padding: 18px 24px 20px; border: 1.5px solid var(--accent) !important;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.duty > * { position: relative; z-index: 2; margin: 0; }
.duty .d-label { font-size: 22px; color: var(--text-main); line-height: 1.3; }
.duty .d-what-row { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.duty .d-what { font-family: var(--font-display); font-size: 44px; font-weight: 900; line-height: 1.15; color: var(--accent); }
.duty .d-icon { width: 46px; height: 46px; stroke-width: 1.4; color: var(--accent); }
.duty .d-when { font-size: 22px; color: var(--text-main); font-variant-numeric: tabular-nums; line-height: 1.35; }
.hsep { align-self: stretch; height: 1.5px; margin-block: 8px; margin-inline: 24px; background: var(--line-light); }
.duty .d-name-row { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.duty .d-name { font-family: var(--font-display); font-size: 58px; font-weight: 900; line-height: 1.1; color: var(--accent); }
.duty .d-note { font-size: 16px; line-height: 1.55; color: var(--text-soft); max-width: 46ch; }

/* Messages card: full width, sky-blue frame; the newest message in force, up to two lines; a tap opens all. */
.msgs { border-radius: 20px; padding: 0; border: 1.5px solid var(--accent) !important; min-width: 0; }
.msgs-open { all: unset; box-sizing: border-box; position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 16px 24px 18px; border-radius: 19px; cursor: pointer; min-width: 0; }
.msgs-open:hover { background: rgba(var(--accent-rgb), 0.05); }
.msgs-open:active { background: rgba(var(--accent-rgb), 0.1); }
.msgs-head { display: flex; align-items: center; gap: 12px; }
.msgs-head .icon { width: 40px; height: 40px; color: var(--accent); stroke-width: 2; }
.msgs-head .h { font-family: var(--font-display); font-size: 30px; font-weight: 900; line-height: 1.2; color: var(--text-main); }
.msgs-list { display: block; min-width: 0; }
.msg-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line;
  font-size: 22px; line-height: 1.45; color: var(--text-main); overflow-wrap: anywhere; }
.msgs-state { font-size: 19px; color: var(--text-soft); line-height: 1.45; }

/* Hosting line: one thin full-width line under the messages card; sky-blue text and a chevron, no underline. */
.host-line { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 48px; padding-inline: 24px 18px; border-radius: 12px; cursor: pointer; font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: var(--accent); }
.host-line .icon { width: 26px; height: 26px; stroke-width: 2; }
.host-line:hover { background: rgba(var(--accent-rgb), 0.08); }
.host-line:active { background: rgba(var(--accent-rgb), 0.14); }
.host-line.is-wide { margin-top: 18px; }

.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; text-shadow: none; font-family: var(--font-body); }
.tag-tbd { color: #E2AE5E; border: 1px solid rgba(201, 138, 46, 0.5); background: rgba(201, 138, 46, 0.08); }
.tag-past { color: var(--text-soft); border: 1px solid rgba(var(--text-rgb), 0.2); }
.tag-next { color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.08); }
.tag-now { color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.1); }

/* ---- States ---- */
.state { position: relative; z-index: 1; border-radius: 18px; padding: 32px 24px; text-align: center;
  background: rgba(var(--text-rgb), 0.03); border: 1px solid rgba(var(--text-rgb), 0.1); }
.state .icon { width: 36px; height: 36px; stroke-width: 1.25; color: var(--text-muted); margin-bottom: 12px; }
.state h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; letter-spacing: 0; }
.state p { margin: 0 auto; max-width: 340px; font-size: 16px; color: var(--text-soft); }
.state .btn-secondary { margin-top: 18px; border-radius: 14px; font-size: 16px; }
.state-error .icon { color: var(--danger); }

/* ---- Full lists and the person screen ---- */
.view-full { position: relative; z-index: 1; max-width: 760px; margin: 40px auto 0; }
.back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 10px 14px; border-radius: 12px;
  font-size: 16px; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.35); }
.back:hover, .back:focus-visible { background: rgba(var(--accent-rgb), 0.08); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.2); }
.back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.back:active { background: rgba(var(--accent-rgb), 0.14); }
.back .icon { width: 18px; height: 18px; }
.full-head { margin: 22px 0 20px; }
.full-head h2 { display: flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 900; }
.full-head h2 .icon { width: 28px; height: 28px; color: var(--accent); }
.full-sub { margin: 6px 0 0; font-size: 16px; color: var(--text-soft); }
.dlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dday { border-radius: 16px; padding: 14px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  background: var(--bg-surface); border: 1px solid var(--reflection); scroll-margin-top: 24px; }
.dd-what { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.dd-tags { display: flex; gap: 6px; justify-content: flex-end; }
.dd-when { grid-column: 1 / -1; font-size: 15px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.dd-who { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.dd-who .icon { width: 18px; height: 18px; color: var(--text-soft); }
.dlist.compact .dd-who { display: none; }
.dday.is-next { border-color: var(--accent); }
.dday.is-next .dd-what, .dday.is-next .dd-who { color: var(--accent); text-shadow: var(--lit-shadow); }
.dday.is-next .dd-who .icon { color: var(--accent); }
.dday.is-past { opacity: 0.5; }
.dday.is-past .dd-what { font-weight: 600; }
.p-part { margin-top: 26px; }
.p-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text-soft); }

/* ---- All messages ---- */
.mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mlist li { border-radius: 16px; padding: 16px 20px; font-size: 18px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere;
  background: rgba(var(--text-rgb), 0.03); border: 1px solid rgba(var(--text-rgb), 0.1); }

/* ---- Hosting dialog ---- */
.scrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(var(--bg-rgb), 0.86); }
.dlg { width: min(440px, 100%); border-radius: 22px; padding: 26px 24px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-elevated); border: 1.5px solid var(--accent); }
.dlg-icon { width: 44px; height: 44px; stroke-width: 1.4; color: var(--accent); filter: drop-shadow(0 0 5px var(--lit-2)); }
.dlg h2 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.25; letter-spacing: 0; text-wrap: balance; }
@media (max-width: 720px) { .dlg h2 { font-size: 23px; } .dlg { padding: 22px 18px 18px; } }
.dlg p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-soft); max-width: 34ch; }
.dlg .dlg-error { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 16px; }
.dlg .dlg-error .icon { color: var(--danger); }
.dlg-actions { margin-top: 10px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; width: 100%; }
.dlg-actions button { min-width: 140px; min-height: 48px; font-size: 17px; border-radius: 14px; }
.dlg-actions button[aria-busy="true"] { opacity: 0.6; cursor: progress; }
/* Notifications help dialog: muted icon when blocked, red when it failed; numbered iPhone steps. */
.dlg-icon.is-muted { color: var(--text-muted); }
.dlg-icon.is-error { color: var(--danger); }
#bell-dlg-body { display: flex; flex-direction: column; align-items: center; width: 100%; }
#bell-dlg-text, .steps li { text-wrap: pretty; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: start; }
.steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--text-main); }
.steps .n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); font-size: 15px; font-weight: 800; line-height: 1; margin-top: -1px; }

/* ---- Phone: ONE screen, no scrolling (Avishay), at 390x844 and 360x640. Text keeps readable sizes (content 15px+);
   spacing and card height give way first. ---- */
@media (max-width: 720px) {
  .page { padding: 12px 16px 0; min-height: 0; }   /* no bottom padding: the hosting line has its own 44px+ tap height */
  .title { font-size: min(14.6vw, 58px); }
  .today-row { margin-top: 8px; }
  .today { font-size: min(7.6vw, 30px); gap: 10px; }
  .bell { font-size: min(7.6vw, 30px); min-width: 44px; min-height: 44px; margin-inline-end: -8px; }
  .search { margin-top: 12px; }
  .field input { min-height: 52px; font-size: 19px; border-radius: 26px; }
  .field .f-icon { width: 24px; height: 24px; inset-inline-start: 18px; }
  .home-grid { margin-top: 14px; gap: 12px; }
  .block-head { margin-bottom: 6px; }
  .block-head h2 { font-size: 22px; white-space: nowrap; }
  .more { font-size: 16px; padding-inline: 2px; min-height: 40px; margin-block: -8px; }   /* touch area kept; it overlaps the margin */
  .more .icon { width: 18px; height: 18px; }
  .bcard { padding: 10px 14px; gap: 10px; border-radius: 16px; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); }
  .bcard .name { text-wrap: balance; overflow-wrap: anywhere; }   /* a long name wraps evenly instead of spilling out */
  .bcard .vsep { min-height: 44px; }
  .bcard .name { font-size: 23px; }
  .bcard .hdate { font-size: 21px; }
  .bcard .age, .bcard .gdate { font-size: 17px; }
  .duty { padding: 10px 16px 12px; gap: 2px; border-radius: 18px; }
  .duty .d-label { font-size: 17px; }
  .duty .d-what { font-size: 30px; }
  .duty .d-icon { width: 30px; height: 30px; }
  .duty .d-what-row { gap: 10px; }
  .duty .d-when { font-size: 17px; }
  .hsep { margin-block: 6px; margin-inline: 18px; }
  .duty .d-name { font-size: 38px; }
  .duty .d-note { display: none; }          /* the long note is in the full list's split rows (the home card has no "ייקבע" tag) */
  .tag { font-size: 14px; }
  .msgs { border-radius: 16px; }
  .msgs-open { padding: 10px 16px 12px; gap: 4px; border-radius: 15px; }
  .msgs-head .icon { width: 26px; height: 26px; }
  .msgs-head .h { font-size: 22px; }
  .msg-line { font-size: 17px; line-height: 1.45; }
  .msgs-state { font-size: 16px; }
  .host-line { font-size: 18px; min-height: 44px; padding-inline: 18px 10px; white-space: nowrap; }
  .host-line .icon { width: 22px; height: 22px; }
  .state { padding: 14px 14px; }
  .state .icon { width: 26px; height: 26px; margin-bottom: 4px; }
  .view-full { margin-top: 18px; }
  .full-head h2 { font-size: 27px; }
  .dlg h2 { font-size: 23px; } .dlg { padding: 22px 18px 18px; }
}
/* Short phones (about 640 high): tighter spacing still, text sizes kept. */
@media (max-width: 720px) and (max-height: 700px) {
  .page { padding-top: 6px; padding-bottom: 0; }
  .title { font-size: min(13.6vw, 54px); }
  .today-row { margin-top: 2px; }
  .today, .bell { font-size: min(7vw, 28px); }
  .search { margin-top: 8px; }
  .field input { min-height: 46px; }
  .home-grid { margin-top: 8px; gap: 6px; }
  .block-head { margin-bottom: 2px; }
  .block-head h2 { font-size: 20px; }
  .more { min-height: 36px; margin-block: -7px; }
  .bcard { padding: 6px 14px; }
  .bcard .vsep { min-height: 38px; }
  .bcard .name { font-size: 22px; }
  .bcard .hdate { font-size: 19px; }
  .bcard .age, .bcard .gdate { font-size: 15px; }
  .duty { padding: 6px 14px 8px; gap: 0; }
  .duty .d-what { font-size: 26px; }
  .duty .d-icon { width: 26px; height: 26px; }
  .duty .d-label, .duty .d-when { font-size: 15px; }
  .hsep { margin-block: 4px; }
  .duty .d-name { font-size: 32px; }
  .msgs-open { padding: 6px 14px 8px; gap: 2px; }
  .msgs-head .icon { width: 22px; height: 22px; }
  .msgs-head .h { font-size: 20px; }
  .msg-line { font-size: 16px; }
  .host-line { min-height: 40px; font-size: 17px; }
}

/* ---- Tall phones (844 tall and up; 360x800 is too short for it in the worst case): the screen has room, so the cards breathe like the reference image.
   Checked against the worst case (two birthdays + a split duty) so it still fits without scrolling. ---- */
@media (max-width: 720px) and (min-height: 840px) {
  .page { padding-top: 18px; }
  .today-row { margin-top: 10px; }
  .today, .bell { font-size: min(8.2vw, 32px); }
  .search { margin-top: 16px; }
  .field input { min-height: 56px; font-size: 21px; border-radius: 28px; }
  .field .f-icon { width: 26px; height: 26px; }
  .home-grid { margin-top: 18px; gap: 14px; }
  .block-head { margin-bottom: 8px; }
  .block-head h2 { font-size: 24px; }
  .more { font-size: 17px; }
  .bcard .name { font-size: 27px; }
  .bcard .hdate { font-size: 21px; }   /* "היום, כ״ב בכסלו" must fit its half of the card */
  .bcard .age, .bcard .gdate { font-size: 18px; }
  .duty .d-label, .duty .d-when { font-size: 18px; }
  .duty .d-what { font-size: 34px; }
  .duty .d-icon { width: 34px; height: 34px; }
  .duty .d-name { font-size: 44px; }
  .msgs-head .h { font-size: 24px; }
  .msgs-head .icon { width: 32px; height: 32px; }
  .msg-line { font-size: 19px; }
  .host-line { font-size: 20px; min-height: 48px; }
}
/* Very short screens (a 360x640 phone with its browser bars open, about 360x560): no bottom padding. */
@media (max-width: 720px) and (max-height: 580px) { .page { padding-bottom: 0; } .search { margin-top: 6px; } }

/* Installed on iPhone (status bar drawn over the page, black-translucent): keep the content below the status bar. */
@supports (padding-top: env(safe-area-inset-top)) {
  .page { padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
  @media (max-width: 720px) { .page { padding-top: calc(12px + env(safe-area-inset-top, 0px)); } }
  @media (max-width: 720px) and (max-height: 700px) { .page { padding-top: calc(6px + env(safe-area-inset-top, 0px)); } }
  @media (max-width: 720px) and (min-height: 840px) { .page { padding-top: calc(18px + env(safe-area-inset-top, 0px)); } }
}
