/* האתר הפרטי של חן — עיצוב: כהה לילי, זהב וטורקיז (הכרעת אורן 21/10/2026). */
:root {
  --night-0: #050a19;
  --night-1: #0a1430;
  --night-2: #101d42;
  --night-3: #18295a;
  --line: rgba(246, 215, 122, .18);
  --gold: #f6d77a;
  --gold-deep: #c8952c;
  --gold-soft: #fff1c2;
  --teal: #3fe0d0;
  --teal-deep: #15a99c;
  --text: #eef1fb;
  --muted: #a9b3d1;
  --ok: #58d68d;
  --warn: #ffb547;
  --money: #ff7a7a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font-body: "Assistant", "Heebo", system-ui, sans-serif;
  --font-display: "Frank Ruhl Libre", "David Libre", serif;
}
/* PF01 §4: צבע ההדגשה מתחלף פעם בחודש בין ארבע גרסאות קרובות (js/accent.js). הרקע, הגופן והמבנה לא משתנים.
   כל גרסה עומדת ביחס ניגודיות 4.5 לפחות מול הרקע ומול הטקסט הכהה — נבדק ב-ops/portal/test_build_portal_pages.py. */
:root[data-accent="gold"] { --gold: #f6d77a; --gold-deep: #c8952c; --gold-soft: #fff1c2; --line: rgba(246, 215, 122, .18); }
:root[data-accent="amber"] { --gold: #ffc062; --gold-deep: #d98a1c; --gold-soft: #ffe8c4; --line: rgba(255, 192, 98, .18); }
:root[data-accent="copper"] { --gold: #f4ae84; --gold-deep: #cf7d4c; --gold-soft: #ffe4d2; --line: rgba(244, 174, 132, .18); }
:root[data-accent="olive"] { --gold: #e4dc7c; --gold-deep: #aea43a; --gold-soft: #f7f3c8; --line: rgba(228, 220, 124, .18); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night-0); }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(63, 224, 208, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(246, 215, 122, .10), transparent 60%),
    linear-gradient(180deg, var(--night-1), var(--night-0) 900px);
  background-repeat: no-repeat;
  background-color: var(--night-0);
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- סרגל עליון ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 10, 25, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.topbar .brand img { width: 54px; height: auto; }
.topbar nav { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 15px;
}
.topbar nav a[aria-current="page"], .topbar nav a:hover { color: var(--night-0); background: var(--gold); text-decoration: none; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 10px; padding: 6px 12px; font: inherit; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .topbar nav { display: none; position: absolute; top: 64px; inset-inline: 0; background: var(--night-0); padding: 12px 16px; border-bottom: 1px solid var(--line); flex-direction: column; }
  .topbar nav.open { display: flex; }
}

/* ---------- פתיח ---------- */
.hero { padding: 48px 0 24px; text-align: center; }
.hero .logo { width: min(420px, 86%); filter: drop-shadow(0 10px 40px rgba(63, 224, 208, .18)); }
.hero h1 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 6vw, 54px); margin: 8px 0 0;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .titles { color: var(--teal); font-weight: 700; letter-spacing: .02em; margin-top: 4px; }
.hero p.lead { max-width: 720px; margin: 18px auto 0; font-size: 20px; color: #dfe5f7; }

/* ---------- סעיפים וכרטיסים ---------- */
section { padding: 26px 0; }
h2.sec {
  font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 36px); margin: 0 0 14px; color: var(--gold);
  display: flex; align-items: center; gap: 12px;
}
h2.sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
h3 { font-size: 21px; margin: 18px 0 6px; color: var(--gold-soft); }
.card {
  background: linear-gradient(180deg, rgba(24, 41, 90, .55), rgba(10, 20, 48, .7));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { display: block; color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.tile:hover { transform: translateY(-3px); border-color: rgba(63, 224, 208, .5); text-decoration: none; }
.tile .ico { font-size: 30px; }
.tile h3 { margin-top: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
ul.bullets { padding-inline-start: 22px; margin: 8px 0; }
ul.bullets li { margin: 6px 0; }
ul.bullets li::marker { color: var(--gold); }
.muted { color: var(--muted); }
.kbd-path { display: inline-block; background: rgba(63, 224, 208, .1); border: 1px solid rgba(63, 224, 208, .3); color: #c8fbf5; border-radius: 8px; padding: 1px 8px; font-size: 16px; }

/* ---------- תיבות מיוחדות ---------- */
.secret {
  position: relative; border: 2px solid var(--gold); border-radius: var(--radius); padding: 22px 24px 20px;
  background: linear-gradient(135deg, rgba(246, 215, 122, .12), rgba(63, 224, 208, .06));
}
.secret .seal {
  position: absolute; top: -16px; inset-inline-start: 22px; background: var(--gold); color: var(--night-0);
  font-weight: 800; padding: 2px 14px; border-radius: 999px; font-size: 15px;
}
.callout { border-inline-start: 5px solid var(--teal); background: rgba(63, 224, 208, .07); border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.callout.warn { border-color: var(--warn); background: rgba(255, 181, 71, .08); }
.callout.money { border-color: var(--money); background: rgba(255, 122, 122, .08); }
.quote { font-family: var(--font-display); font-size: 21px; color: var(--gold-soft); border-inline-start: 3px solid var(--gold); padding-inline-start: 14px; margin: 14px 0; }

/* ---------- רשימת הרשאות ---------- */
.tier { margin-top: 18px; }
.tier > header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tier .badge { font-weight: 800; border-radius: 999px; padding: 2px 12px; font-size: 15px; color: var(--night-0); }
.tier.ok .badge { background: var(--ok); }
.tier.warn .badge { background: var(--warn); }
.tier.money .badge { background: var(--money); }
.perm { display: grid; grid-template-columns: 1fr; gap: 10px; }
.perm .item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: rgba(10, 20, 48, .55); }
.perm .item b { color: var(--gold-soft); font-size: 18px; }
.perm .item .tip { display: block; color: var(--muted); font-size: 16px; margin-top: 2px; }
.perm .item .tip strong { color: #ffd9a0; }
@media (min-width: 820px) { .perm { grid-template-columns: 1fr 1fr; } }

/* ---------- טבלה ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { color: var(--gold); background: rgba(246, 215, 122, .07); }

/* ---------- כותרת תחתונה ---------- */
footer.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; color: var(--muted); font-size: 15px; text-align: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile { transition: none; } }

/* ---------- מדריך המשחקים ---------- */
details.game { margin: 0 0 12px; padding: 0; overflow: hidden; }
details.game > summary { list-style: none; cursor: pointer; padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
details.game > summary::-webkit-details-marker { display: none; }
details.game > summary::before { content: "◂"; color: var(--teal); transition: transform .2s ease; }
details.game[open] > summary::before { transform: rotate(-90deg); }
details.game .g-name { font-family: var(--font-display); font-size: 23px; color: var(--gold); font-weight: 700; }
details.game .g-tag { color: var(--muted); font-size: 16px; }
details.game > :not(summary) { margin-inline: 22px; }
details.game > :last-child { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.chips span { border: 1px solid rgba(63, 224, 208, .35); color: #c8fbf5; border-radius: 999px; padding: 1px 10px; font-size: 15px; }

/* ---------- טפסים וכלים ---------- */
label { display: block; font-weight: 700; margin: 12px 0 4px; color: var(--gold-soft); }
input[type=text], input[type=date], input[type=time], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: rgba(5, 10, 25, .7);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 50%, var(--gold-deep)); color: var(--night-0);
  border: 0; border-radius: 999px; padding: 10px 22px; margin-top: 14px;
}
.btn.ghost { background: none; color: var(--teal); border: 1px solid rgba(63, 224, 208, .5); }
.btn:disabled { opacity: .5; cursor: default; }
.status { margin-top: 10px; font-weight: 700; }
.status.ok { color: var(--ok); } .status.err { color: var(--money); }
.toolnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.toolnav a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 15px; color: var(--gold-soft); }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-row input { margin-top: 7px; width: 20px; height: 20px; accent-color: var(--teal); }
.tpl { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; background: rgba(10, 20, 48, .55); }
.tpl pre { white-space: pre-wrap; font: inherit; margin: 6px 0 0; color: #dfe5f7; }
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 10px 2px; }
.round { min-width: 170px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.round h4 { margin: 0 0 4px; color: var(--teal); text-align: center; }
.match { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.match button { display: block; width: 100%; text-align: start; font: inherit; color: var(--text); background: rgba(10, 20, 48, .7); border: 0; padding: 7px 10px; cursor: pointer; }
.match button + button { border-top: 1px solid var(--line); }
.match button.win { background: rgba(246, 215, 122, .22); color: var(--gold-soft); font-weight: 800; }
.match button:disabled { cursor: default; color: var(--muted); }
.quiz-q { font-size: 20px; font-weight: 700; color: var(--gold-soft); }
.quiz-opts button { display: block; width: 100%; text-align: start; margin: 8px 0; font: inherit; color: var(--text); background: rgba(10, 20, 48, .7); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.quiz-opts button.right { border-color: var(--ok); background: rgba(88, 214, 141, .15); }
.quiz-opts button.wrong { border-color: var(--money); background: rgba(255, 122, 122, .12); }

/* ---------- הודעות וצ׳אט ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow-y: auto; padding: 6px; }
.msg { max-width: 82%; border-radius: 16px; padding: 10px 14px; background: rgba(24, 41, 90, .7); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-start; background: rgba(63, 224, 208, .12); border-color: rgba(63, 224, 208, .35); }
.msg.theirs { align-self: flex-end; }
.msg .meta { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.msg .kind { display: inline-block; font-size: 13px; font-weight: 800; color: var(--night-0); background: var(--gold); border-radius: 999px; padding: 0 8px; margin-bottom: 4px; }
.msg img { max-width: 100%; border-radius: 10px; margin-top: 6px; display: block; }
.msg a.file { display: inline-block; margin-top: 6px; }
.notice { border: 1px dashed rgba(63, 224, 208, .5); border-radius: 12px; padding: 8px 14px; color: #c8fbf5; font-size: 16px; }

/* ---------- חלון העדכונים (PLAN-chen-portal.md §4ב) ----------
   מותאם ל-Z Fold 8 Ultra: מסך חיצוני צר וגבוה (21:9) ומסך פנימי כמעט ריבועי (10:9), וגם חצי מסך, חלון קופץ ומחשב.
   אין רוחב קבוע: עמודה אחת עד 600px של תוכן, שתי עמודות מעליו (container query). */
.upd-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  background: rgba(63, 224, 208, .10); color: var(--teal); border: 1px solid rgba(63, 224, 208, .45);
  border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.upd-btn:hover, .upd-btn:focus-visible { background: rgba(63, 224, 208, .2); outline: none; box-shadow: 0 0 0 3px rgba(63, 224, 208, .25); }
.upd-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--gold); color: var(--night-0); font-size: 13px; font-weight: 800; line-height: 1;
}
.upd-count[hidden] { display: none; }
@media (max-width: 760px) {
  .menu-btn { margin-inline-start: auto; }
  .upd-btn { order: 3; padding: 4px 10px; }
}
@media (max-width: 380px) { .upd-btn .upd-btn-label { font-size: 14px; } .topbar .brand img { width: 44px; } }

.upd-panel {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; border: 0;
  width: min(600px, 100vw); height: 100dvh; max-width: 100vw; max-height: 100dvh;
  background: linear-gradient(180deg, var(--night-1), var(--night-0)); color: var(--text);
  border-inline-end: 1px solid var(--line); box-shadow: var(--shadow);
  display: none; flex-direction: column;
}
.upd-panel[open] { display: flex; animation: upd-in .22s ease-out; }
.upd-panel::backdrop { background: rgba(2, 5, 14, .62); backdrop-filter: blur(2px); }
@keyframes upd-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.upd-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 25, .7);
}
.upd-titles { flex: 1; min-width: 0; }
.upd-head h2 { margin: 0; font-family: var(--font-display); color: var(--gold); font-size: 24px; line-height: 1.2; }
.upd-sub { color: var(--muted); font-size: 14px; }
.upd-full { font-size: 15px; white-space: nowrap; padding: 8px 4px; }
.upd-close {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: none;
  color: var(--text); font-size: 18px; cursor: pointer;
}
.upd-panel .upd-body { flex: 1; overflow: auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.upd-body { container-type: inline-size; container-name: upd; }
.upd-legend { color: var(--muted); font-size: 14px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.upd-cols { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@container upd (min-width: 600px) { .upd-cols { grid-template-columns: 1.15fr 1fr; } }
.upd-version h3 { font-family: var(--font-display); color: var(--gold); margin: 6px 0 2px; font-size: 21px; }
.upd-version.is-next h3 { color: var(--teal); }
.upd-note { color: var(--gold-soft); font-size: 15px; margin: 4px 0 10px; }
.upd-group { margin-top: 12px; }
.upd-group-head { margin: 0 0 6px; font-size: 16px; }
.upd-group-head.stage-in_progress { color: var(--teal); }
.upd-group-head.stage-ready { color: var(--gold); }
.upd-group-head.stage-planned { color: var(--muted); }
.upd-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0;
  background: rgba(16, 29, 66, .55); border-inline-start: 4px solid var(--muted);
}
.upd-item[data-stage="in_progress"] { border-inline-start-color: var(--teal); }
.upd-item[data-stage="ready"] { border-inline-start-color: var(--gold); }
.upd-item[data-stage="released"] { border-inline-start-color: var(--ok); }
.upd-item.fresh { box-shadow: 0 0 0 1px rgba(246, 215, 122, .45), 0 8px 24px rgba(246, 215, 122, .08); }
.upd-item h4 { margin: 6px 0 2px; font-size: 17px; line-height: 1.45; }
.upd-item p { margin: 2px 0; font-size: 16px; line-height: 1.6; color: #dfe5f7; overflow-wrap: anywhere; }
.upd-when { color: var(--muted); font-size: 13px; margin-top: 4px; }
.upd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.stage-in_progress { color: var(--night-0); background: var(--teal); border-color: var(--teal); }
.chip.stage-ready { color: var(--night-0); background: var(--gold); border-color: var(--gold); }
.chip.stage-planned { color: var(--text); background: rgba(169, 179, 209, .18); }
.chip.stage-released { color: var(--night-0); background: var(--ok); border-color: var(--ok); }
.chip.scope { color: var(--gold-soft); border-color: rgba(246, 215, 122, .4); }
.chip.fresh-chip { color: var(--gold); border-color: var(--gold); }
.upd-archive { margin-top: 22px; }
.upd-archive h3 { font-family: var(--font-display); color: var(--gold); font-size: 20px; margin: 0 0 6px; }
.upd-old { border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; background: rgba(10, 20, 48, .5); }
.upd-old summary { cursor: pointer; padding: 10px 14px; min-height: 44px; font-weight: 700; color: var(--text); }
.upd-old-item { padding: 6px 14px; font-size: 15px; line-height: 1.6; border-top: 1px solid rgba(246, 215, 122, .08); overflow-wrap: anywhere; }
.upd-page .upd-body { margin-top: 10px; }
.upd-install { margin: 26px 0 10px; }

/* מסך צר (המסך החיצוני של הפולד, חצי מסך, חלון קופץ) — החלון תופס את כל המסך, כפתורים גדולים. */
@media (max-width: 899px) {
  .upd-panel { inset: 0; width: 100vw; border-inline-end: 0; }
  @keyframes upd-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 430px) {
  .upd-head { padding-inline: 12px; }
  .upd-head h2 { font-size: 21px; }
  .upd-panel .upd-body { padding-inline: 12px; }
  .upd-item { padding: 10px 12px; }
}
/* הפולד חצי מקופל (מצב Flex): הכותרת בחצי העליון, הרשימה בחצי התחתון — לא על הקיפול. לא אומת על המכשיר. */
@media (vertical-viewport-segments: 2) {
  .upd-panel .upd-head { min-height: env(viewport-segment-height 0 0, auto); align-items: flex-end; }
  .upd-panel .upd-body { padding-top: calc(env(viewport-segment-top 0 1, 0px) - env(viewport-segment-bottom 0 0, 0px) + 14px); }
}
/* מכשיר עם שני חצאים זה לצד זה: עמודה בכל חצי, והתפר בין העמודות על הקיפול. */
@media (horizontal-viewport-segments: 2) {
  .upd-panel { inset: 0; width: 100vw; }
  .upd-cols { grid-template-columns: env(viewport-segment-width 0 0, 1fr) env(viewport-segment-width 1 0, 1fr);
    column-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .upd-panel[open] { animation: none; } }

/* ---------- בקשת אישור להתראות (Web Push) ---------- */
.push-banner { background: linear-gradient(90deg, rgba(63, 224, 208, .16), rgba(246, 215, 122, .14)); border-bottom: 1px solid var(--line); }
.push-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; }
.push-text { flex: 1 1 260px; font-size: 16px; }
.push-yes, .push-no, .push-state + .btn {
  min-height: 44px; border-radius: 12px; padding: 6px 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.push-yes { background: var(--gold); color: var(--night-0); border: 0; }
.push-no { background: none; color: var(--muted); border: 1px solid var(--line); }
.push-note { flex-basis: 100%; color: var(--warn); font-size: 14px; }
.push-note:empty { display: none; }
.push-state { margin: 6px 0 10px; }

/* "קשור אליך" — למעלה, בבולטים (הכרעת אורן 21/10 ~23:20) */
.upd-mine { margin-top: 12px; border: 1px solid rgba(246, 215, 122, .5); border-radius: 16px; padding: 10px 14px 4px;
  background: linear-gradient(180deg, rgba(246, 215, 122, .10), rgba(16, 29, 66, .55)); }
.upd-mine-head { margin: 0 0 4px; color: var(--gold); font-size: 17px; }
.upd-bullets { margin: 0; padding-inline-start: 20px; }
.upd-bullets li { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(246, 215, 122, .12); }
.upd-bullets li:last-child { border-bottom: 0; }
.upd-bullets li::marker { color: var(--gold); }
.upd-bullets li.fresh b { color: var(--gold-soft); }
.upd-li-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.upd-li-head b { font-size: 16.5px; line-height: 1.45; flex-basis: 100%; }
.upd-bullets p { margin: 2px 0; font-size: 15.5px; line-height: 1.6; color: #dfe5f7; overflow-wrap: anywhere; }
.upd-rest-head { margin: 18px 0 0; color: var(--text); font-size: 17px; border-top: 1px solid var(--line); padding-top: 12px; }
.chip.credit { color: var(--night-0); background: var(--gold-soft); border-color: var(--gold-soft); }

/* קוביית השיתוף בדף הבית */
.share-card { border-color: rgba(63, 224, 208, .45); }
.share-lead { margin-top: 0; }
.share-label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
#share-text { unicode-bidi: plaintext; text-align: start; width: 100%; font: inherit; font-size: 16px; line-height: 1.6; color: var(--text); background: rgba(5, 10, 25, .6);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
.btn.share-wa { background: #25d366; color: #052e16; text-decoration: none; }
.share-soon { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(246, 215, 122, .45); color: var(--gold-soft); font-size: 15.5px; }
.share-actions .btn { margin-top: 0; }

/* חלון קופץ להתראות (הכרעות אורן 21/10 ~23:55, 22/10) */
.push-modal { border: 1px solid rgba(246, 215, 122, .5); border-radius: 20px; padding: 20px 22px; max-width: min(460px, calc(100vw - 32px));
  background: linear-gradient(180deg, var(--night-2), var(--night-1)); color: var(--text); box-shadow: var(--shadow); }
.push-modal::backdrop { background: rgba(2, 5, 14, .66); backdrop-filter: blur(2px); }
.push-modal h2 { margin: 0 0 8px; font-family: var(--font-display); color: var(--gold); font-size: 24px; }
.push-modal p { margin: 6px 0; font-size: 16.5px; line-height: 1.65; }
.push-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.push-modal .push-note { color: var(--warn); font-size: 15px; }
.push-modal .push-note:empty { display: none; }

/* דף "כיצד להגדיר את האתר כאפליקציה בדף הבית" (אורן, 22/10) */
ol.steps { padding-inline-start: 28px; margin: 6px 0; font-size: 18px; line-height: 1.7; }
ol.steps li { margin: 10px 0; }
ol.steps li::marker { color: var(--gold); font-weight: 800; }
.addr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-weight: 700; color: var(--teal); }
.only-app { display: none; }
@media (display-mode: standalone) { .only-app { display: block; } }

/* כפתור "שמירת האתר כאפליקציה" בכל דף (אורן, 22/10) */
.install-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  background: rgba(246, 215, 122, .10); color: var(--gold); border: 1px solid rgba(246, 215, 122, .5);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.install-btn:hover, .install-btn:focus-visible { background: rgba(246, 215, 122, .2); outline: none; box-shadow: 0 0 0 3px rgba(246, 215, 122, .25); }
.install-btn-icon { font-size: 18px; line-height: 1; }
@media (max-width: 430px) { .install-btn-label { display: none; } .install-btn { padding: 4px 10px; } }
@media (display-mode: standalone) { .install-btn { display: none; } }
.install-modal .install-where { color: var(--teal); font-weight: 700; margin: 2px 0 6px; }
.install-modal ol.steps { font-size: 16.5px; }

/* ---------- PF01: «מה חדש», מה שנקרא מתקפל, «עודכן» ---------- */
.whats-new { padding: 0 0 4px; }
.hero:has(+ .whats-new) { padding-bottom: 14px; }   /* הכרטיס צמוד לברכה (הכרעת הרכז, 17/11) */
.hero.hero-lead { padding: 10px 0 0; }
.hero.hero-lead p.lead { margin-top: 0; }
.whats-new .card { padding: 16px 18px; border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.whats-new h2 { margin: 0 0 8px; font-family: var(--font-display); color: var(--gold); font-size: 22px; line-height: 1.3; }
.wn-list { list-style: none; margin: 0; padding: 0; }
.wn-list li { border-top: 1px solid var(--line); }
.wn-list li:first-child { border-top: 0; }
.wn-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 44px; padding: 8px 0; color: var(--text); }
.wn-item:hover { text-decoration: none; }
.wn-item:hover .wn-title { text-decoration: underline; }
.wn-title { flex: 1 1 12em; min-width: 0; font-size: 16.5px; line-height: 1.5; overflow-wrap: anywhere; }
.wn-more { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 700; min-height: 32px; }
.wn-none { margin: 0; color: var(--muted); font-size: 16px; }
.whats-new.is-empty .card { padding: 10px 16px; }
.whats-new.is-empty h2 { display: none; }
.chip.mine-chip { color: var(--teal); border-color: rgba(63, 224, 208, .5); }
.chip.tile-fresh { color: var(--night-0); background: var(--gold); border-color: var(--gold); margin-inline-end: 8px; vertical-align: middle; }

details.upd-item.read { padding-top: 0; padding-bottom: 0; }
details.upd-item.read[open] { padding-bottom: 10px; }
.upd-read-sum { cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; }
.upd-read-sum::-webkit-details-marker { display: none; }
.upd-read-sum::after { content: "▾"; margin-inline-start: auto; color: var(--muted); font-size: 14px; }
details[open] > .upd-read-sum::after { content: "▴"; }
.upd-read-title { font-weight: 700; font-size: 16px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; min-width: 0; }
details.upd-item.read > .upd-chips { margin-top: 2px; }
details.upd-item.read > .upd-chips > .chip:first-child { display: none; }
.upd-li-read > summary { cursor: pointer; }
.upd-li-read > summary.upd-li-head { flex-wrap: nowrap; }
.upd-li-read > summary.upd-li-head b { flex-basis: auto; flex: 1; min-width: 0; }

.page-fresh { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 0 4px; }
.page-fresh-note { color: var(--gold); }
.fresh-block { box-shadow: inset -3px 0 0 var(--gold); padding-inline-start: 10px; border-radius: 2px; }
td.fresh-block, th.fresh-block { padding-inline-start: 12px; }
[id^="u-"] { scroll-margin-top: 84px; }   /* קישור מכרטיס «מה חדש» — הפריט נגלל אל מתחת לסרגל העליון */
