/* ==========================================================================
   סיירת כרמלי - עיצוב האתר
   ========================================================================== */

:root {
  --ink: #0A100C;
  --ink-2: #0E1610;
  --ink-3: rgba(6,10,7,.75);
  --text: #E8EFE9;
  --text-2: #C3CFC5;
  --text-3: #B4C2B7;
  --text-4: #A9B8AC;
  --text-5: #93A396;
  --text-6: #7E9083;
  --gold: #EFC02A;
  --gold-hi: #FFD75A;
  --green: #2E7D4F;
  --green-hi: #5FD08A;
  --line: rgba(255,255,255,.10);
  --line-gold: rgba(239,192,42,.45);
  --font: 'Heebo', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.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;
}

/* --------------------------------------------------------------------------
   אנימציות
   -------------------------------------------------------------------------- */
@keyframes drift { 0%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(-6%,4%,0) scale(1.15)} 100%{transform:translate3d(0,0,0) scale(1)} }
@keyframes drift2 { 0%{transform:translate3d(0,0,0) scale(1.1)} 50%{transform:translate3d(7%,-5%,0) scale(.95)} 100%{transform:translate3d(0,0,0) scale(1.1)} }
@keyframes sweep { 0%{transform:rotate(-24deg) translateX(-60%);opacity:0} 18%{opacity:1} 82%{opacity:1} 100%{transform:rotate(-24deg) translateX(180%);opacity:0} }
@keyframes rise { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes growline { from{transform:scaleY(0)} to{transform:scaleY(1)} }
@keyframes pulseDot { 0%,100%{box-shadow:0 0 0 0 rgba(239,192,42,.55)} 50%{box-shadow:0 0 0 14px rgba(239,192,42,0)} }
@keyframes flicker { 0%,100%{opacity:.85;transform:scaleY(1)} 40%{opacity:1;transform:scaleY(1.08)} 70%{opacity:.75;transform:scaleY(.96)} }
@keyframes spinSlow { to { transform: rotate(360deg) } }

.rise { animation: rise .9s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   מצבי נגישות (מוחלים על body)
   -------------------------------------------------------------------------- */
body[data-a11y-noanim] *, body[data-a11y-noanim] *::before, body[data-a11y-noanim] *::after { animation: none !important; transition: none !important; }
body[data-a11y-links] a, body[data-a11y-links] button { outline: 2px solid var(--gold) !important; outline-offset: 2px; text-decoration: underline !important; }
body[data-a11y-font] * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: normal !important; }
body[data-a11y-spacing] p, body[data-a11y-spacing] li { line-height: 2.1 !important; letter-spacing: .04em !important; word-spacing: .14em !important; }

/* --------------------------------------------------------------------------
   שלד
   -------------------------------------------------------------------------- */
/* clip ולא hidden: חותך את הרקעים המטושטשים בלי ליצור אזור גלילה,
   שהיה מבטל את ה-position:sticky של מפת הגזרות. hidden נשאר כגיבוי. */
.site { position: relative; min-height: 100vh; overflow: hidden; overflow: clip; background: var(--ink); }
main { position: relative; z-index: 10; }

.container { max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1180px; }
.container--narrow { max-width: 860px; }

.page-head { padding-block: 70px 40px; }
.page-head--tight { padding-block: 70px 20px; }
.page-body { padding-block: 20px 100px; }
.page-head--tight + .page-body { padding-top: 36px; }

.eyebrow { font-size: 12px; letter-spacing: .28em; color: var(--gold); font-weight: 700; }
.eyebrow--lg { font-size: 13px; letter-spacing: .32em; }
.eyebrow--live { display: flex; align-items: center; gap: 10px; letter-spacing: .3em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; animation: pulseDot 2.4s ease-in-out infinite; }

.page-title { margin: 14px 0 0; font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; }
.page-lead { margin: 16px 0 0; max-width: 640px; color: var(--text-4); font-size: 17px; line-height: 1.8; }

.section-title { margin: 0 0 16px; font-size: 22px; font-weight: 800; }
.section-title--ruled { font-size: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; }
.muted { color: var(--text-6); }

.note {
  margin-top: 28px; padding: 20px 24px; border: 1px dashed rgba(255,255,255,.22); border-radius: 14px;
  font-family: var(--mono); font-size: 13px; color: var(--text-5); line-height: 1.9;
}
.note--gold { border-color: rgba(239,192,42,.35); color: var(--text-4); }
.note--sm { margin-top: 16px; padding: 18px 20px; line-height: 1.8; }

/* הפרולוג של הספר - האיור לצד הטקסט, ובמסך צר מעליו */
.prologue { display: grid; gap: 30px; padding-block: 8px 46px; }
.prologue-art { margin: 0; }
.prologue-art img {
  /* תמונה לאורך - בלי תקרת רוחב היא משתלטת על המסך הצר */
  display: block; width: 100%; max-width: 340px; margin-inline: auto;
  border-radius: 16px; border: 1px solid var(--line);
}
.prologue-body { max-width: 64ch; }
.prologue-date {
  margin: 10px 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--text-1);
}
.prologue-text p {
  margin: 0 0 22px; font-size: 18px; line-height: 1.95;
  color: var(--text-2); text-wrap: pretty;
}
.prologue-text p:last-child { margin-bottom: 0; }
/* אות פתיחה - רק כשיש מספיק רוחב, אחרת היא שוברת את השורה */
@media (min-width: 600px) {
  .prologue-text p:first-child::first-letter {
    float: inline-start; margin-inline-end: 10px; margin-block-start: 8px;
    font-size: 58px; line-height: .8; font-weight: 900; color: var(--gold);
  }
}
/* האיור עובר לצד הטקסט ונשאר בשדה הראייה לאורך הקריאה */
@media (min-width: 900px) {
  .prologue { grid-template-columns: 1fr clamp(240px, 26vw, 330px); gap: 48px; align-items: start; }
  .prologue-body { grid-column: 1; grid-row: 1; }
  .prologue-art { grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
  .prologue-art img { max-width: none; }
}

/* דפים בהכנה */
.page-body.page-body--soon { display: block; }   /* גובר על פריסות ה-grid של הדפים */
.soon {
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: clamp(48px, 9vw, 86px) 28px; border: 1px dashed rgba(239,192,42,.35); border-radius: 20px;
  background: linear-gradient(160deg, rgba(239,192,42,.07), rgba(255,255,255,.02));
}
.soon-mark {
  padding: 8px 22px; border-radius: 999px; border: 1px solid rgba(239,192,42,.45);
  font-size: 12px; font-weight: 800; letter-spacing: .3em; color: var(--gold);
}
.soon-title { margin: 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.2; }
.soon-text { margin: 0; max-width: 560px; color: var(--text-4); font-size: 16px; line-height: 1.85; text-wrap: pretty; }

.soon-tag {
  display: inline-block; vertical-align: middle; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(239,192,42,.45); background: rgba(239,192,42,.12);
  font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--gold); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   רקע חי
   -------------------------------------------------------------------------- */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; }
.bg-orb--green {
  width: 70vw; height: 70vw; top: -22vw; right: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(46,125,79,.55), rgba(46,125,79,0) 65%);
  filter: blur(10px); animation: drift 18s ease-in-out infinite;
}
.bg-orb--gold {
  width: 58vw; height: 58vw; bottom: -20vw; left: -12vw;
  background: radial-gradient(circle at 50% 50%, rgba(239,192,42,.30), rgba(239,192,42,0) 62%);
  filter: blur(14px); animation: drift2 14s ease-in-out infinite;
}
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 88px 100%; }
.bg-sweep {
  position: absolute; top: -30%; left: 0; width: 14vw; height: 160%; transform-origin: 50% 50%;
  background: linear-gradient(90deg, transparent, rgba(239,192,42,.13), transparent);
  filter: blur(6px); animation: sweep 11s cubic-bezier(.4,0,.2,1) infinite;
}
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, transparent 35%, rgba(5,9,6,.85) 100%); }

/* --------------------------------------------------------------------------
   כותרת עליונה
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(10,16,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(239,192,42,.22);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 46px; width: auto; filter: invert(1) drop-shadow(0 0 10px rgba(239,192,42,.35)); }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav-link {
  padding: 9px 15px; border-radius: 999px; color: var(--text-2);
  font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.is-active { background: rgba(239,192,42,.16); color: var(--gold); font-weight: 700; }

.member-btn {
  display: flex; align-items: center; gap: 8px; margin-inline-start: 10px; padding: 9px 18px;
  border: 1px solid rgba(239,192,42,.5); border-radius: 999px; background: rgba(239,192,42,.10);
  color: var(--gold); font-size: 15px; font-weight: 700; white-space: nowrap;
}
.member-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
body.is-member .member-dot { background: var(--green-hi); }

.nav-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px clamp(16px, 4vw, 56px) 18px; background: rgba(10,16,12,.97); border-bottom: 1px solid rgba(239,192,42,.22);
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .member-btn { margin: 8px 0 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   כפתורים
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1.2;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(232,239,233,.32); }
.btn--ghost:hover { color: var(--text); border-color: var(--gold); }
.btn--sm { padding: 12px 26px; font-size: 16px; }
.btn--block { width: 100%; border-radius: 12px; padding: 14px; font-weight: 800; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 800;
}
.pill--gold { background: var(--gold); color: var(--ink); }
.pill--outline { border: 1px solid var(--gold); color: var(--gold); }

/* --------------------------------------------------------------------------
   בית - Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 88vh; display: grid; place-items: center; padding: 80px var(--gutter); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url('../assets/patrol.jpeg') center / cover no-repeat; opacity: .30; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,12,.55), rgba(10,16,12,.92) 70%, var(--ink)); }
.hero-sweep {
  position: absolute; left: 0; top: -30%; width: 18vw; height: 160%; transform-origin: 50% 50%;
  background: linear-gradient(90deg, transparent, rgba(46,125,79,.28), transparent);
  filter: blur(8px); animation: sweep 9s cubic-bezier(.4,0,.2,1) infinite 1.5s;
}
.hero-inner { position: relative; text-align: center; max-width: 960px; }
.hero-logo { width: min(440px, 72vw); filter: invert(1) drop-shadow(0 0 28px rgba(239,192,42,.28)); margin-bottom: 18px; }
.kicker-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 18px; }
.kicker { font-size: 14px; letter-spacing: .34em; color: var(--gold); font-weight: 700; white-space: nowrap; }
.kicker-line { height: 1px; flex: 0 1 60px; min-width: 14px; }
@media (max-width: 480px) { .kicker { font-size: 12px; letter-spacing: .22em; } }
.kicker-line--start { background: linear-gradient(90deg, transparent, var(--gold)); }
.kicker-line--end { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero-title { margin: 0; font-size: clamp(34px, 6vw, 74px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.hero-lead { margin: 22px auto 0; max-width: 620px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.75; color: #B9C7BC; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

/* --------------------------------------------------------------------------
   בית - כרטיסים
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; padding-bottom: 40px; }
.feature {
  position: relative; overflow: hidden; display: block; padding: 38px 34px; border-radius: 20px; color: inherit;
  border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.feature:hover { border-color: var(--gold); transform: translateY(-4px); color: inherit; }
.feature--digest { border-color: var(--line-gold); background: linear-gradient(150deg, rgba(239,192,42,.18), rgba(46,125,79,.12) 60%, rgba(255,255,255,.02)); }
.feature--book { border-color: rgba(255,255,255,.16); }
.feature-sweep {
  position: absolute; top: -40%; left: 0; width: 26%; height: 180%; transform-origin: 50% 50%;
  background: linear-gradient(90deg, transparent, rgba(239,192,42,.16), transparent);
  filter: blur(8px); animation: sweep 9s cubic-bezier(.4,0,.2,1) infinite;
}
.feature-photo { position: absolute; inset: 0; background: url('../assets/patrol.jpeg') center / cover no-repeat; opacity: .32; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,16,12,.55), rgba(10,16,12,.93)); }
.feature--elections { grid-column: 1 / -1; min-height: 300px; display: flex; align-items: flex-end; border-color: var(--line-gold); }
.feature--elections .feature-photo { background-image: url('../assets/elections/introWide.webp'); background-position: center 62%; opacity: .75; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.feature--elections:hover .feature-photo { transform: scale(1.04); }
.feature--elections .feature-shade { background: linear-gradient(270deg, rgba(10,16,12,.94) 0%, rgba(10,16,12,.7) 45%, rgba(10,16,12,.15) 100%); }
.feature--elections .feature-body { max-width: 620px; }
.feature--elections .feature-title { font-size: clamp(30px, 4vw, 42px); }
.elections-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 0 0 22px; }
.elections-stats span { display: flex; flex-direction: column; font-size: 12px; color: var(--text-3); }
.elections-stats b { font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.feature-body { position: relative; }
.feature-title { margin: 14px 0 10px; font-size: 32px; font-weight: 900; line-height: 1.15; }
.feature-text { margin: 0 0 22px; color: var(--text-3); line-height: 1.75; font-size: 16px; }

/* flex ולא grid: כשמספר הכרטיסים לא מתחלק במספר העמודות, השורה האחרונה
   נמתחת על כל הרוחב במקום להשאיר כרטיס בודד עם חור לצידו */
.tiles { display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 90px; }
.tile {
  flex: 1 1 240px; min-width: 0;
  display: block; padding: 30px 26px; border: 1px solid var(--line); border-radius: 18px; color: inherit;
  transition: border-color .25s, transform .25s;
}
.tile:hover { border-color: rgba(239,192,42,.55); transform: translateY(-4px); color: inherit; }
.tile--green { background: linear-gradient(160deg, rgba(46,125,79,.20), rgba(255,255,255,.02)); }
.tile--plain { background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.tile--gold { background: linear-gradient(160deg, rgba(239,192,42,.14), rgba(255,255,255,.02)); }
.tile-title { margin: 12px 0 8px; font-size: 23px; font-weight: 700; }
.tile-text { margin: 0; color: var(--text-4); line-height: 1.7; font-size: 15px; }
/* כרטיס שיוצא מהאתר - החץ מסמן שהקישור נפתח בלשונית חדשה */
.tile-arrow { display: inline-block; font-size: .72em; color: var(--gold); transition: transform .25s; }
.tile--app:hover .tile-arrow { transform: translate(-3px, -3px); }

/* אייקון האפליקציה - ריבוע מעוגל, כמו על מסך הטלפון */
.tile-icon {
  display: block; width: 72px; height: 72px; margin-bottom: 18px;
  border-radius: 17px; border: 1px solid var(--line); object-fit: cover;
  transition: transform .25s;
}
.tile--app:hover .tile-icon { transform: translateY(-3px); }

/* כשהכרטיס נשאר לבדו בשורה האחרונה הוא נמתח לרוחב מלא, ואז עדיף
   שהאייקון יעמוד לצד הטקסט ולא מעליו. נמדד מול רוחב הכרטיס עצמו. */
.tile--app { container-type: inline-size; }
.tile-cta { display: none; }
@container (min-width: 440px) {   /* נמדד על תיבת התוכן, בלי ה-padding של הכרטיס */
  .tile-inner { display: flex; align-items: center; gap: 26px; }
  .tile-inner .tile-icon { margin-bottom: 0; flex: none; }
  .tile-body { min-width: 0; flex: 1; }
  /* הכפתור בקצה הרחוק מאזן את הרצועה, ואז החץ שליד הכותרת מיותר */
  .tile-cta { display: inline-block; flex: none; margin-inline-start: auto; white-space: nowrap; }
  .tile-arrow { display: none; }
}

/* --------------------------------------------------------------------------
   תולדות - שביל הטיפוס של מלחמת התקומה
   -------------------------------------------------------------------------- */
.atlas-stats {
  display: flex; flex-wrap: wrap; gap: 18px 44px;
  margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.atlas-stat { display: grid; gap: 6px; }
.atlas-stat-num { font-size: clamp(26px, 3.6vw, 34px); font-weight: 900; color: var(--gold); line-height: 1; }
.atlas-stat-label { font-size: 12px; letter-spacing: .2em; color: var(--text-6); font-weight: 700; }

/* בפריסה הצרה זה block ולא grid, כדי שטווח ההידבקות של המפה
   יהיה כל הקטע ולא רק השורה שלה */
.atlas { display: block; }

/* ----- המפה ----- */
.atlas-stage {
  position: sticky; z-index: 5; top: 74px;
  border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  background: linear-gradient(160deg, #16281f, #090d0b);
}
/* המסגרת נותנת למפה רקע של ים ומגדירה את גבולות התצוגה */
.atlas-frame {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #0b1a22, #091318);
}
.atlas-map { display: block; width: auto; height: min(42vh, 330px); margin-inline: auto; }
.atlas-map path { vector-effect: non-scaling-stroke; }
.atlas-cam { transform-box: view-box; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.4,0,.2,1); }

.atlas-near { fill: rgba(255,255,255,.055); stroke: rgba(255,255,255,.17); stroke-width: 1; }
.atlas-il { fill: rgba(239,192,42,.08); stroke: rgba(239,192,42,.55); stroke-width: 1.5; }
.atlas-terr { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.3); stroke-width: 1; }
.atlas-water { fill: rgba(70,130,160,.35); stroke: rgba(120,180,210,.4); stroke-width: .8; }
.atlas-label {
  fill: var(--text-6); font-size: 40px; font-weight: 700; letter-spacing: .1em;
  text-anchor: middle; pointer-events: none;
}

.atlas-hop {
  stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; opacity: .42;
  transition: stroke-dashoffset 1s ease-in-out, opacity .6s;
}
.atlas-hop.is-live { opacity: 1; }

.atlas-pin-ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; transform: scale(.4); }
.atlas-pin-dot { fill: rgba(239,192,42,.3); stroke: var(--gold); stroke-width: 1.4; }
.atlas-pin-num { fill: var(--ink); font-size: 44px; font-weight: 900; text-anchor: middle; opacity: 0; }
.atlas-pin-ring, .atlas-pin-dot, .atlas-pin-num { transition: opacity .5s, transform .5s, fill .5s; }
.atlas-pin { transform-box: view-box; }
.atlas-pin-ring { transform-box: fill-box; transform-origin: center; }

.atlas-pin.is-past .atlas-pin-dot { fill: rgba(239,192,42,.7); }
.atlas-pin.is-on .atlas-pin-dot { fill: var(--gold); transform: scale(1.7); transform-box: fill-box; transform-origin: center; }
.atlas-pin.is-on .atlas-pin-num { opacity: 1; }
.atlas-pin.is-on .atlas-pin-ring { opacity: 1; animation: atlasPing 2.4s ease-out infinite; }
@keyframes atlasPing { 0%{transform:scale(.55);opacity:.7} 100%{transform:scale(1.5);opacity:0} }

/* תווית הגזרה הפעילה */
.atlas-now {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-radius: 12px; background: rgba(239,192,42,.12); border: 1px solid var(--line-gold);
}
.atlas-now-i {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 900;
}
.atlas-now-txt { display: grid; gap: 3px; }
.atlas-now-t { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--gold); }
.atlas-now-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--text-5); }

/* ----- כרטיסי הסבבים ----- */
.atlas-round { position: relative; padding-inline-start: 74px; padding-bottom: 42px; }
.atlas-blaze {
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: absolute; inset-inline-start: 0; top: 0; width: 52px; height: 52px;
  display: grid; place-items: center; clip-path: var(--hex); background: rgba(239,192,42,.45);
  transition: background .4s;
}
.atlas-blaze-in {
  width: calc(100% - 4px); height: calc(100% - 4px); display: grid; place-items: center;
  clip-path: var(--hex); background: var(--ink); color: var(--gold); font-size: 18px; font-weight: 900;
  transition: background .4s, color .4s;
}
.atlas-round.is-active .atlas-blaze { background: var(--gold); }
.atlas-round.is-active .atlas-blaze-in { background: var(--gold); color: var(--ink); }

.atlas-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: border-color .4s, background .4s;
}
.atlas-round.is-active .atlas-card { border-color: var(--line-gold); }
.atlas-round--now .atlas-card { background: linear-gradient(160deg, rgba(239,192,42,.13), rgba(255,255,255,.02)); }

.atlas-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.atlas-stage-l { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--gold); }
.atlas-date { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--text-5); }
.atlas-title { margin: 10px 0 0; font-size: clamp(20px, 2.6vw, 25px); font-weight: 800; line-height: 1.25; }
.atlas-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.atlas-area, .atlas-op, .atlas-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
}
.atlas-area { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--text-3); }
.atlas-op { border: 1px solid var(--line-gold); background: rgba(239,192,42,.1); color: var(--gold); }
.atlas-live { background: var(--gold); color: var(--ink); }
.atlas-live .live-dot { background: var(--ink); }
.atlas-body { margin: 15px 0 0; color: var(--text-3); font-size: 16px; line-height: 1.8; text-wrap: pretty; }

/* חשיפה בגלילה - נכנס לתוקף רק כש-JS מוסיף js-reveal */
.atlas.js-reveal .atlas-round {
  opacity: 0; transform: translateY(36px);
  transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.75,.3,1);
}
.atlas.js-reveal .atlas-round.is-in { opacity: 1; transform: none; }

/* עד 900px המפה דביקה בראש הדף - צרה וגבוהה, עם התווית לצידה */
@media (max-width: 899px) {
  .atlas-stage { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
  .atlas-frame { flex: none; }
  .atlas-now { flex-wrap: wrap; }
}
@media (min-width: 900px) {
  /* המפה מקבלת את רוב הרוחב, הכרטיסים מצטמצמים לעמודת קריאה */
  .atlas { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 38vw, 480px); gap: 34px; align-items: start; }
  .atlas-rounds { grid-column: 1; grid-row: 1; }
  .atlas-stage { grid-column: 2; grid-row: 1; top: 96px; }
  .atlas-map { height: min(68vh, 720px); }
  .atlas-now { margin-top: 12px; }
  /* הכרטיסים צרים יותר עכשיו, אז הסימון מתקרב אליהם */
  .atlas-round { padding-inline-start: 56px; }
}
@media (max-width: 560px) {
  .atlas-round { padding-inline-start: 60px; padding-bottom: 34px; }
  .atlas-blaze { width: 44px; height: 44px; }
  .atlas-card { padding: 20px; }
}

/* --------------------------------------------------------------------------
   זיכרון
   -------------------------------------------------------------------------- */
.memorial-head { padding-block: 90px 50px; text-align: center; max-width: 900px; }
.candle { width: 2px; height: 64px; margin: 0 auto 26px; background: linear-gradient(180deg, rgba(239,192,42,0), var(--gold)); animation: flicker 2.6s ease-in-out infinite; }
.memorial-title { margin: 0; font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: .02em; }
.memorial-lead { margin: 22px auto 0; max-width: 560px; font-size: 19px; line-height: 2; color: var(--text-2); text-wrap: pretty; }
.fallen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.fallen { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); overflow: hidden; transition: border-color .25s; }
.fallen:hover { border-color: rgba(239,192,42,.4); }
.fallen-photo {
  aspect-ratio: 4 / 5; display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.08);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px);
}
.fallen-photo img { width: 100%; height: 100%; object-fit: cover; }
.fallen-photo span { font-family: var(--mono); font-size: 11px; color: var(--text-6); letter-spacing: .12em; }
.fallen-body { padding: 18px 18px 22px; text-align: center; }
.fallen-name { font-size: 19px; font-weight: 700; color: var(--gold); }
.fallen-detail { margin-top: 6px; font-size: 13px; color: var(--text-5); letter-spacing: .06em; }

/* --------------------------------------------------------------------------
   סיוע לפצועים
   -------------------------------------------------------------------------- */
.support-grid { display: grid; gap: 20px; padding-top: 30px; }
.support-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.support-card {
  padding: 30px 28px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(46,125,79,.16), rgba(255,255,255,.02)); transition: border-color .25s;
}
.support-card:hover { border-color: var(--line-gold); }
.support-num {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(239,192,42,.16); border: 1px solid rgba(239,192,42,.4);
  display: grid; place-items: center; color: var(--gold); font-weight: 900; font-size: 18px;
}
.support-title { margin: 16px 0 8px; font-size: 22px; font-weight: 700; }
.support-text { margin: 0; color: var(--text-3); font-size: 15.5px; line-height: 1.75; }
.cta-band {
  padding: 34px 30px; border: 1px solid rgba(239,192,42,.4); border-radius: 20px; background: rgba(239,192,42,.07);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.cta-title { margin: 0; font-size: 24px; font-weight: 800; }
.cta-text { margin: 8px 0 0; color: var(--text-3); font-size: 15.5px; }
.support-grid .note { margin-top: 0; }

/* --------------------------------------------------------------------------
   אזור סגור - זיהוי
   -------------------------------------------------------------------------- */
.locked-wrap { min-height: 78vh; display: grid; place-items: center; padding: 70px var(--gutter); }
.locked-card {
  width: min(460px, 100%); border: 1px solid rgba(239,192,42,.3); border-radius: 22px;
  background: rgba(10,16,12,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 40px 34px; text-align: center; animation-duration: .6s;
}
.locked-ring {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; border: 1px dashed rgba(239,192,42,.6);
  display: grid; place-items: center; animation: spinSlow 22s linear infinite;
}
.locked-ring span { width: 14px; height: 14px; background: var(--gold); border-radius: 3px; display: block; }
.locked-title { margin: 0; font-size: 28px; font-weight: 800; }
.locked-text { margin: 12px 0 26px; color: var(--text-4); font-size: 15.5px; line-height: 1.75; }
.locked-input {
  width: 100%; padding: 14px 18px; margin-bottom: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--text);
  font-family: var(--font); font-size: 16px; text-align: center; letter-spacing: .14em;
}
.locked-input::placeholder { color: var(--text-6); letter-spacing: normal; }
.locked-hint { margin-top: 16px; font-size: 12.5px; color: var(--text-6); line-height: 1.7; }

/* --------------------------------------------------------------------------
   גלריה
   -------------------------------------------------------------------------- */
.album { margin-bottom: 52px; }
.album-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.album-title { margin: 0; font-size: 26px; font-weight: 800; }
.album-year { font-size: 13px; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.album-count { margin-inline-start: auto; font-size: 13px; color: var(--text-6); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.album-tile {
  aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 10px, transparent 10px 20px);
  display: grid; place-items: center; cursor: pointer; transition: border-color .25s, transform .25s;
}
.album-tile:hover { border-color: rgba(239,192,42,.5); transform: scale(1.02); }
.album-tile img { width: 100%; height: 100%; object-fit: cover; }
.album-tile span { font-family: var(--mono); font-size: 11px; color: var(--text-6); letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   קהילה
   -------------------------------------------------------------------------- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.event {
  display: flex; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); transition: border-color .25s;
}
.event:hover { border-color: var(--line-gold); }
.event-date { flex-shrink: 0; width: 62px; text-align: center; border-inline-end: 1px solid rgba(255,255,255,.12); padding-inline-end: 14px; }
.event-day { font-size: 24px; font-weight: 900; color: var(--gold); line-height: 1; }
.event-month { font-size: 12px; color: var(--text-5); letter-spacing: .1em; }
.event-title { font-size: 17px; font-weight: 700; }
.event-place { margin-top: 4px; font-size: 14px; color: var(--text-5); }
.thread {
  padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.03); transition: border-color .25s;
}
.thread:hover { border-color: var(--line-gold); }
.thread-title { font-size: 17px; font-weight: 700; }
.thread-meta { margin-top: 6px; font-size: 13.5px; color: var(--text-5); }

/* --------------------------------------------------------------------------
   עלון שבועי
   -------------------------------------------------------------------------- */
.digest-hero { display: grid; grid-template-columns: minmax(240px, .9fr) 1.4fr; gap: 26px; align-items: stretch; margin-bottom: 46px; }
@media (max-width: 720px) { .digest-hero { grid-template-columns: 1fr; } }
.digest-cover {
  display: block; border-radius: 18px; border: 1px solid rgba(239,192,42,.4); min-height: 300px;
  background: rgba(255,255,255,.03) center top / cover no-repeat; transition: border-color .25s, transform .25s;
}
.digest-cover:hover { border-color: var(--gold); transform: translateY(-3px); }
.digest-card {
  padding: 32px 30px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(46,125,79,.18), rgba(255,255,255,.02));
  display: flex; flex-direction: column; justify-content: center;
}
.digest-title { margin: 12px 0 8px; font-size: 30px; font-weight: 800; }
.digest-date { font-size: 14.5px; color: var(--text-5); }
.digest-text { margin: 16px 0 24px; color: var(--text-3); font-size: 16px; line-height: 1.8; }
.digest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.digest-item {
  display: block; padding: 16px 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03);
  color: inherit; cursor: pointer; transition: border-color .25s, transform .25s;
}
.digest-item:hover { color: inherit; }
.digest-thumb { aspect-ratio: 3 / 4; border-radius: 10px; margin-bottom: 14px; background: rgba(255,255,255,.04) center top / cover no-repeat; border: 1px solid var(--line); }
.digest-item:hover { border-color: rgba(239,192,42,.5); transform: translateY(-3px); }
.digest-num { font-size: 18px; font-weight: 800; color: var(--gold); line-height: 1.3; }
.digest-item-date { margin-top: 6px; font-size: 14px; color: var(--text-5); }
.digest-lead { margin-top: 10px; font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* --------------------------------------------------------------------------
   ספר המלחמה
   -------------------------------------------------------------------------- */
.book-hero { position: relative; padding: 90px 0 40px; overflow: hidden; }
.book-photo { position: absolute; inset: 0; background: url('../assets/patrol.jpeg') center / cover no-repeat; opacity: .22; }
.book-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,12,.7), var(--ink)); }
.book-inner { position: relative; }
.book-title { margin: 16px 0 0; font-size: clamp(32px, 5.4vw, 62px); font-weight: 900; line-height: 1.15; }
.book-lead { margin: 20px 0 32px; max-width: 640px; color: #B9C7BC; font-size: 17.5px; line-height: 1.9; }
.book-hero .btn-row { gap: 14px; }
.chapters { display: grid; gap: 12px; }
.chapter {
  display: flex; gap: 22px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); cursor: pointer; transition: border-color .25s;
}
.chapter:hover { border-color: rgba(239,192,42,.5); }
.chapter-num { flex-shrink: 0; font-size: 28px; font-weight: 900; color: var(--gold); width: 48px; text-align: center; }
.chapter-body { flex: 1; min-width: 0; }
.chapter-title { font-size: 20px; font-weight: 700; }
.chapter-meta { margin-top: 5px; font-size: 14.5px; color: var(--text-5); }

/* --------------------------------------------------------------------------
   עמודים משפטיים
   -------------------------------------------------------------------------- */
.legal { padding-block: 70px 100px; }
.legal-title { margin: 14px 0 26px; font-size: clamp(30px, 4.6vw, 50px); font-weight: 900; }
.legal p { color: var(--text-2); font-size: 16.5px; line-height: 1.95; margin: 14px 0 0; }
.legal > p:first-of-type { font-size: 17px; margin-top: 0; }
.legal h2 { margin: 38px 0 12px; font-size: 23px; font-weight: 800; }
.legal ul { color: var(--text-2); font-size: 16.5px; line-height: 2; padding-inline-start: 22px; margin: 0; }
.legal .note { margin-top: 0; padding: 22px 24px; font-size: 13.5px; line-height: 2; }
.legal .legal-foot { margin-top: 24px; color: var(--text-5); font-size: 15px; line-height: 1.9; }

/* --------------------------------------------------------------------------
   תפריט נגישות
   -------------------------------------------------------------------------- */
.a11y { position: fixed; bottom: 22px; left: 22px; z-index: 60; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.a11y-fab {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--gold); color: var(--ink);
  font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.5); display: grid; place-items: center;
}
.a11y-panel {
  width: 290px; max-width: calc(100vw - 44px); max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink-2); border: 1px solid var(--line-gold); border-radius: 18px; padding: 20px; box-shadow: 0 18px 48px rgba(0,0,0,.6);
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 18px; }
.a11y-close { border: 0; background: transparent; color: var(--text-2); font-size: 22px; cursor: pointer; }
.a11y-zoom { display: flex; gap: 8px; margin-bottom: 12px; }
.a11y-zoom .a11y-btn { flex: 1; text-align: center; font-weight: 700; }
.a11y-toggles { display: grid; gap: 8px; }
.a11y-btn {
  width: 100%; text-align: start; padding: 11px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  background: rgba(255,255,255,.05); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer;
}
.a11y-btn--toggle[aria-pressed="true"] { border-color: var(--gold); background: rgba(239,192,42,.16); color: var(--gold); font-weight: 700; }
.a11y-panel .btn--block { margin-top: 12px; padding: 11px; border-radius: 10px; font-size: 15px; }
.a11y-link { display: block; margin-top: 12px; text-align: center; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   כותרת תחתונה
   -------------------------------------------------------------------------- */
.footer {
  position: relative; z-index: 10; border-top: 1px solid var(--line); padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--ink-3);
}
.footer-logo { height: 40px; filter: invert(1); opacity: .6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 14px; }
.footer-a11y { border: 0; background: transparent; color: var(--gold); font-size: 14px; cursor: pointer; padding: 0; }
.footer-a11y:hover { color: var(--gold-hi); }
.footer-copy { font-size: 13.5px; color: var(--text-6); line-height: 1.8; }

/* --------------------------------------------------------------------------
   אזור חברים - טפסי כניסה / הצטרפות
   -------------------------------------------------------------------------- */
.auth-view { display: block; }
.fields { display: grid; gap: 10px; margin-bottom: 12px; }
.fields .locked-input { margin-bottom: 0; }
.locked-input--start { text-align: start; letter-spacing: normal; }
.locked-input--code { font-size: 26px; font-weight: 700; letter-spacing: .4em; padding-block: 12px; }
.locked-input--code::placeholder { letter-spacing: .3em; }
textarea.locked-input { resize: vertical; min-height: 64px; line-height: 1.6; }
.locked-input:focus { border-color: var(--gold); outline: none; }
.auth-error { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(239,192,42,.10); border: 1px solid rgba(239,192,42,.4); color: var(--gold-hi); font-size: 14px; line-height: 1.6; }
.auth-switch { margin-top: 18px; font-size: 13.5px; color: var(--text-6); line-height: 1.7; }
.auth-switch a { font-weight: 700; }
.btn.is-busy { opacity: .6; cursor: progress; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row--center { justify-content: center; margin: 22px 0 4px; }

.status-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; border: 1px solid; }
.status-badge--pending  { color: var(--gold); border-color: rgba(239,192,42,.5); background: rgba(239,192,42,.10); }
.status-badge--approved { color: var(--green-hi); border-color: rgba(95,208,138,.5); background: rgba(95,208,138,.10); }
.status-badge--rejected { color: #F08A8A; border-color: rgba(240,138,138,.5); background: rgba(240,138,138,.10); }
.status-badge--new      { color: var(--text-5); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }

/* --------------------------------------------------------------------------
   ניהול - בקשות הצטרפות
   -------------------------------------------------------------------------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.admin-tab { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: var(--text-2); font-size: 15px; font-weight: 500; cursor: pointer; }
.admin-tab.is-active { border-color: var(--gold); background: rgba(239,192,42,.14); color: var(--gold); font-weight: 700; }
.admin-count { display: inline-block; min-width: 20px; margin-inline-start: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; text-align: center; }
.admin-count:empty { display: none; }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.admin-main { flex: 1; min-width: 240px; }
.admin-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-5); }
.admin-note { margin-top: 8px; font-size: 14px; color: var(--text-3); line-height: 1.6; border-inline-start: 2px solid rgba(239,192,42,.4); padding-inline-start: 10px; }
.admin-actions { display: flex; gap: 8px; }
.btn--xs { padding: 9px 18px; font-size: 14px; }

/* --------------------------------------------------------------------------
   גיליון בודד של העלון
   -------------------------------------------------------------------------- */
.issue-hero { position: relative; padding: 70px 0 44px; overflow: hidden; }
.issue-hero-photo { position: absolute; inset: 0; background: center 20% / cover no-repeat; opacity: .28; filter: saturate(.8); }
.issue-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,12,.55), rgba(10,16,12,.9) 70%, var(--ink)); }
.issue-hero-inner { position: relative; }
.issue-back { display: inline-block; margin-bottom: 22px; font-size: 14px; font-weight: 700; }
.issue-title { margin: 14px 0 0; font-size: clamp(30px, 5vw, 56px); font-weight: 900; line-height: 1.1; }
.issue-lead { margin: 18px 0 26px; max-width: 680px; color: var(--text-3); font-size: 17px; line-height: 1.8; }
.issue-body { display: grid; gap: 22px; padding-top: 30px; }
.issue-section { padding: 30px 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.issue-h2 { margin: 10px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.25; }
.issue-author { margin-top: 8px; font-size: 14.5px; color: var(--gold); font-weight: 700; }
.issue-h3 { margin: 28px 0 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; line-height: 1.3; }
.issue-more { margin-top: 14px; }
.issue-more summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: 15.5px; }
.issue-more .issue-text { margin-top: 12px; }
.issue-text { margin-top: 16px; }
.issue-text p { margin: 0 0 12px; color: var(--text-2); font-size: 16.5px; line-height: 1.9; }
.issue-text p:last-child { margin-bottom: 0; }
.issue-sign { margin-top: 18px; font-size: 18px; font-weight: 700; color: var(--gold); }
.issue-article.has-photo { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 28px; align-items: start; }
.issue-article-photo { display: block; border-radius: 16px; overflow: visible; border: 1px solid var(--line); }
.issue-article-photo > a { display: block; border-radius: inherit; overflow: hidden; }
.issue-article-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 680px) { .issue-article.has-photo { grid-template-columns: 1fr; } .issue-article-photo { max-width: 320px; } }
.issue-article.photo-center { grid-template-columns: 1fr; }
.issue-article.photo-center .issue-article-photo { max-width: 320px; width: 100%; justify-self: center; }
.issue-article.has-photo .issue-gallery { grid-column: 1 / -1; }
.issue-article .issue-gallery:has(> :only-child) { grid-template-columns: minmax(200px, 320px); justify-content: center; }
.issue-article.has-bg { position: relative; overflow: hidden; border-color: rgba(239,192,42,.35); min-height: 340px; }
.issue-article-bg { position: absolute; inset: 0; background: center 35% / cover no-repeat; opacity: .75; }
.issue-article-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10,16,12,.94) 0%, rgba(10,16,12,.88) 48%, rgba(10,16,12,.15) 100%); }
.issue-article.has-bg .issue-article-body { position: relative; max-width: 620px; }
.issue-article.has-bg .issue-text p { color: var(--text); }
@media (max-width: 680px) { .issue-article-shade { background: linear-gradient(180deg, rgba(10,16,12,.6), rgba(10,16,12,.94) 45%); } }

.issue-credits { background: linear-gradient(160deg, rgba(46,125,79,.18), rgba(255,255,255,.02)); }
.issue-credits-list { margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.issue-credit { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.issue-credit dt { font-size: 12px; letter-spacing: .22em; color: var(--gold); font-weight: 700; }
.issue-credit dd { margin: 8px 0 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.issue-credits-photo { margin: 22px auto 0; max-width: 360px; }
.issue-credits-photo .issue-caption { margin: 10px 0 0; text-align: center; font-size: 15.5px; font-weight: 700; color: var(--gold); }

.issue-gallery { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.issue-photo { display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: visible; border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.issue-photo > a { display: block; height: 100%; border-radius: inherit; overflow: hidden; }
.issue-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.issue-photo:hover { transform: scale(1.02); border-color: rgba(239,192,42,.5); }
.issue-photo--wide { aspect-ratio: 4 / 3; }
.issue-gallery > .issue-photo--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.issue-photo--panorama { aspect-ratio: 16 / 9; grid-column: 1 / -1; }
@media (min-width: 760px) {
  .issue-gallery { grid-template-columns: repeat(4, 1fr); }
  .issue-gallery--3 { grid-template-columns: repeat(3, 1fr); }
  .issue-gallery--3 > .issue-photo--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
.issue-ranks { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.issue-rank { margin: 0; }
.issue-rank .issue-caption { margin: 10px 0 0; text-align: center; font-size: 15.5px; font-weight: 700; color: var(--gold); }
.issue-text--after { margin-top: 22px; }

.issue-notice.has-poster { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: start; }
.issue-poster { display: block; border-radius: 14px; overflow: visible; border: 1px solid var(--line); }
.issue-poster > a { display: block; border-radius: inherit; overflow: hidden; }
.issue-poster img { display: block; width: 100%; height: auto; }
.issue-links { margin-top: 20px; }
.issue-qr { display: block; width: 150px; margin-top: 18px; border-radius: 12px; }
@media (max-width: 680px) { .issue-notice.has-poster { grid-template-columns: 1fr; } .issue-poster { max-width: 360px; } }
.issue-bubbles { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.issue-bubble { padding: 10px 18px; border-radius: 999px; background: rgba(239,192,42,.14); border: 1px solid rgba(239,192,42,.4); color: var(--gold-hi); font-size: 15px; font-weight: 700; }
.issue-section > .issue-notice { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }

.issue-clues { margin-top: 18px; display: grid; gap: 10px; }
.issue-clue { display: flex; gap: 18px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.issue-clue-code { flex-shrink: 0; font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: .2em; color: var(--gold); direction: ltr; }
.issue-clue-hint { font-size: 15.5px; color: var(--text-2); line-height: 1.6; }
.issue-cipher { display: block; margin-top: 20px; max-width: 620px; border-radius: 14px; overflow: visible; border: 1px solid var(--line); }
.issue-cipher > a { display: block; border-radius: inherit; overflow: hidden; }
.issue-cipher img { display: block; width: 100%; height: auto; }
.issue-question { margin: 20px 0 0; font-size: 19px; font-weight: 800; }
.issue-answer { margin-top: 16px; }
.issue-answer summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: 15.5px; }
.issue-answer-code { margin: 14px 0 10px; font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: .3em; color: var(--gold); direction: ltr; text-align: start; }
.issue-answer p { margin: 0; color: var(--text-3); font-size: 15px; line-height: 1.8; }
.issue-answer p.issue-answer-phrase { margin: 14px 0 12px; font-size: clamp(19px, 3.2vw, 26px); font-weight: 800; line-height: 1.55; color: var(--gold-hi); }
.issue-steps { margin: 0 0 14px; padding-inline-start: 22px; color: var(--text-2); font-size: 15px; line-height: 1.8; }
.issue-steps li { margin-bottom: 6px; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,9,6,.92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox-frame { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1100px, 100%); cursor: default; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); cursor: zoom-out; }
.lightbox-close { position: absolute; top: 16px; left: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--text); font-size: 26px; cursor: pointer; }
.lightbox-react { position: relative; }
.lightbox-react .react-bar { display: flex; flex-direction: column; align-items: center; }
.lightbox-react .react-main { display: none; }
.lightbox-react .react-picker { position: static; width: auto; max-width: none; }
.lightbox-react .react-choices { flex-wrap: nowrap; }

.react-photo { position: relative; margin: 0; }
.react-main { position: absolute; z-index: 3; inset-inline-start: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(8,12,9,.78); color: #fff; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.react-main.is-mine { border-color: var(--gold); }
.react-count { font-weight: 700; font-size: 13px; }
.react-picker { position: absolute; z-index: 4; bottom: 46px; inset-inline-start: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: max-content; max-width: calc(100% - 16px); padding: 4px; border-radius: 16px; background: rgba(8,12,9,.94); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.react-picker[hidden] { display: none; }
.react-choices { display: flex; flex-wrap: wrap; gap: 2px; }
.react-choice { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.react-choice:hover, .react-choice.is-selected { background: rgba(239,192,42,.22); }
.react-hint { margin: 0; padding: 2px 8px 4px; max-width: 220px; color: var(--text); font-size: 13px; line-height: 1.4; }
.react-hint a { color: var(--gold); font-weight: 700; }
.react-photo:has(.react-picker:not([hidden])) { z-index: 5; }
