/* ===========================================================================
   hebcal.co.il — /assets/post.css
   Shared stylesheet for the 20 legacy posts (HE + EN = 40 pages) and /en/.

   These 41 pages each carried a byte-identical 14KB <style> block and ran a
   THIRD palette: blue #2563eb, a brown "gold" #b45309, warm near-black text
   and the Assistant typeface — none of it brand. They also had no dark mode
   and no reduced-motion handling, which the rest of the site does.

   Their component vocabulary (post-, card-, nav-, footer-, ad-) is genuinely
   article-specific and has no counterpart in /assets/site.css, so it lives
   here rather than being forced into the hub's hc- system. What IS shared is
   the palette: the brand tokens below are mirrored from /assets/site.css and
   checked by tools/verify-tokens.mjs.

   URLs are untouched — these pages hold SEO equity (WEBSITE_HANDOFF.md §15).
   =========================================================================== */

/* BRAND TOKENS — mirrored from /assets/site.css (the source of truth). */
:root{
  --navy:#1a2744;
  --navy-deep:#111b35;
  --navy-light:#243358;
  --gold:#c9a84c;
  --gold-deep:#836d31;
  --gold-light:#e8c97a;
  --cream:#f7f6f0;
  --cream-deep:#ede9d8;
  --white:#ffffff;
  --soft:#5b6a8b;
  --soft-light:#8b97b3;

  --sans-he:"Heebo",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --sans-en:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --sans:var(--sans-he);

  --r:12px;--r-sm:8px;
  --sh:0 1px 4px rgba(26,39,68,.06);
  --sh-l:0 12px 36px rgba(26,39,68,.13);

  /* Legacy aliases. The 187 lines of component CSS below still reference
     these names; pointing them at brand tokens migrates the palette without
     rewriting every rule. --blue is not a brand colour — brand is navy+gold
     with "two-colour discipline" — so structural blue becomes navy, and gold
     is reserved for CTAs, eyebrows and key numbers, per brand. */
  --page-bg:var(--cream);
  --surface:var(--white);
  --blue:var(--navy);        /* logo tiles, avatars, structural fills */
  --blue-d:var(--navy-deep);
  --blue-m:var(--cream-deep); /* active/hover pill background */
  --accent:var(--gold-deep);  /* eyebrows, "read more" — AA-safe gold */
  --text:var(--navy);
  --text-2:var(--soft);
  --text-3:var(--soft);       /* was #78716c; --soft-light is only 2.7:1 */
  --cream-2:var(--cream-deep);
  --cream-3:var(--cream-deep);
  --border:rgba(26,39,68,.12);
}
body.en{--sans:var(--sans-en)}

/* Dark mode — these pages never had one, while every other surface on the
   site does. Aliases flip; the component rules below are untouched. */
@media (prefers-color-scheme:dark){
  :root{
    --page-bg:var(--navy-deep);
    --surface:var(--navy);
    --blue:var(--gold);
    --blue-d:var(--gold-light);
    --blue-m:var(--navy-light);
    --accent:var(--gold-light);
    --text:var(--white);
    /* Not --soft-light (#8b97b3): it clears 4.5:1 on navy-deep but drops to
       4.25 on --navy-light, which is what the language pills sit on. This is
       the same hue lifted until it passes on every navy surface here
       (navy-deep 6.99 · navy 6.08 · navy-light 5.10). */
    --text-2:#99a6c5;
    --text-3:#99a6c5;
    --cream-2:var(--navy-light);
    --cream-3:var(--navy-light);
    --border:rgba(255,255,255,.12);
    --sh:0 1px 4px rgba(0,0,0,.4);
    --sh-l:0 12px 36px rgba(0,0,0,.5);
  }
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--sans);background:var(--page-bg);color:var(--text);line-height:1.7;-webkit-font-smoothing:antialiased}
body.he{direction:rtl;text-align:right}
body.en{direction:ltr;text-align:left}

/* ── NAV ── */
.nav{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;box-shadow:0 1px 0 var(--border)}
.nav-inner{max-width:1060px;margin:0 auto;padding:0 16px;height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);min-width:0}
.brand-logo-wrap{width:36px;height:36px;border-radius:9px;background:var(--blue);display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:5px;box-shadow:0 2px 6px rgba(26,39,68,.25)}
.brand-logo{width:100%;height:100%;object-fit:contain}
.brand-text{min-width:0}
.brand-name{font-size:.78rem;font-weight:800;line-height:1.15;color:var(--text);white-space:nowrap}
.brand-sub{font-size:.6rem;color:var(--text-3);font-weight:400;white-space:nowrap;display:none}
.nav-right{display:flex;gap:8px;align-items:center;flex-shrink:0}
.nav-lang{display:flex;gap:2px}
.nav-lang a{padding:5px 11px;border-radius:20px;font-size:.78rem;font-weight:700;color:var(--text-2);text-decoration:none;transition:all .15s}
.nav-lang a:hover,.nav-lang a.active{background:var(--blue-m);color:var(--blue)}
/* ── Site navigation ───────────────────────────────────────────────────────
   These pages had no way to reach the rest of the site — the header held a
   brand link, a language pair and a download button, nothing else. Same four
   destinations as the hub, so the site navigates identically everywhere.
   Bilingual here keys off body.he/body.en, not the hub's [lang] spans. ── */
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto;
  min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { white-space: nowrap; text-decoration: none; color: var(--text-2);
  font-size: .78rem; font-weight: 700; padding: 7px 10px; border-radius: 999px;
  transition: background .15s, color .15s; }
.site-nav a:hover { color: var(--text); background: rgba(26,39,68,.05); }
@media (prefers-color-scheme: dark) {
  .site-nav a:hover { color: var(--text); background: rgba(255,255,255,.07); }
}
/* These pages switch language by URL, not by a toggle, so the Hebrew-only
   Zohar link is hidden on the English side rather than swapped. */
body.he .en-l, body.en .he-l { display: none; }
body.en .he-only { display: none; }

/* Phone: the nav gets its own row under the brand, as a 2x2 grid — four long
   Hebrew labels cannot share one 375px row without dropping the tap target
   below 44px. Matches the hub. */
@media (max-width: 700px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { order: 3; flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
    overflow-x: visible; }
  .site-nav a { text-align: center; padding: 11px 8px; background: rgba(26,39,68,.035); }
  @media (prefers-color-scheme: dark) { .site-nav a { background: rgba(255,255,255,.05); } }
}

.nav-cta{background:var(--gold);color:var(--navy-deep);padding:8px 16px;border-radius:8px;font-size:.8rem;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .15s}
.nav-cta:hover{background:var(--gold-light)}

/* ── HERO ── */
.hero{background:linear-gradient(145deg,var(--navy-deep) 0%,var(--navy) 45%,var(--navy-light) 100%);color:var(--white);padding:48px 16px 40px;text-align:center;position:relative;overflow:hidden}
.hero::after{content:'✡';position:absolute;font-size:22rem;opacity:.03;top:-60px;left:50%;transform:translateX(-50%);pointer-events:none;line-height:1}
.hero-logo-wrap{width:66px;height:66px;border-radius:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;margin:0 auto 16px;padding:10px;position:relative;z-index:1}
.hero-logo{width:100%;height:100%;object-fit:contain}
.hero-tag{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:20px;padding:3px 14px;font-size:.68rem;font-weight:700;letter-spacing:.06em;margin-bottom:12px;text-transform:uppercase;position:relative;z-index:1}
.hero h1{font-size:clamp(1.5rem,5vw,2.6rem);font-weight:900;letter-spacing:-.04em;line-height:1.12;margin-bottom:10px;position:relative;z-index:1}
.hero p{font-size:clamp(.85rem,2vw,1rem);opacity:.78;max-width:440px;margin:0 auto 24px;font-weight:300;line-height:1.75;position:relative;z-index:1}
.hero-stats{display:flex;justify-content:center;gap:32px;flex-wrap:wrap;position:relative;z-index:1;background:rgba(8,18,46,.7);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:24px 32px;margin-top:8px;backdrop-filter:blur(8px)}
.hero-stat-num{font-size:2rem;font-weight:900;letter-spacing:-.04em;color:var(--white)}
.hero-stat-label{font-size:.75rem;opacity:.7;font-weight:500;margin-top:3px}

/* ── MAIN ── */
.main{max-width:1060px;margin:0 auto;padding:32px 16px 0}

.sec-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:14px;border-bottom:2px solid var(--text)}
.sec-title{font-family:var(--sans);font-size:1.3rem;font-weight:900;letter-spacing:-.02em;color:var(--text)}
.sec-count{font-size:.72rem;font-weight:700;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em}

/* ── MAGAZINE CARDS ── */
.grid{display:flex;flex-direction:column;gap:12px;margin-bottom:56px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;text-decoration:none;color:inherit;display:flex;flex-direction:row;box-shadow:var(--sh);transition:box-shadow .2s,transform .2s;-webkit-tap-highlight-color:transparent;min-height:100px}
.card:active{transform:scale(.99)}
@media(hover:hover){.card:hover{box-shadow:var(--sh-l);transform:translateX(-2px)}}
body.en .card:hover{transform:translateX(2px)}
.card-icon-col{width:88px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:2.2rem;position:relative;overflow:hidden}
.card-icon-col::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.06)}
.card-icon-emoji{position:relative;z-index:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,.2))}
.card-num{position:absolute;top:8px;right:8px;font-family:var(--sans);font-size:.75rem;font-weight:900;color:rgba(255,255,255,.85);z-index:2;line-height:1}
body.en .card-num{right:auto;left:8px}
.card-body{padding:14px 16px;flex:1;display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.card-eyebrow{font-size:.62rem;font-weight:800;color:var(--accent);text-transform:uppercase;letter-spacing:.07em}
.card-title{font-family:var(--sans);font-size:.95rem;font-weight:700;line-height:1.3;color:var(--text)}
.card-excerpt{font-size:.76rem;color:var(--text-2);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-date{font-size:.66rem;color:var(--text-3);margin-top:4px;display:flex;align-items:center;gap:8px}
.card-more{color:var(--accent);font-weight:700;font-size:.66rem}

@media(min-width:600px){
  .grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .card{flex-direction:column}
  .card-icon-col{width:100%;aspect-ratio:16/9;font-size:2.8rem}
  .card-num{font-size:.8rem;top:10px;right:10px}
  body.en .card-num{right:auto;left:10px}
  .card-body{padding:14px}
  .card-excerpt{-webkit-line-clamp:3}
}
@media(min-width:900px){
  .grid{grid-template-columns:repeat(3,1fr);gap:18px}
  .card-icon-col{font-size:3rem}
}

/* ── ADVERTISE BANNER ── */
.ad-section{max-width:1060px;margin:0 auto;padding:0 16px 64px}
.ad-banner{
  background:linear-gradient(135deg,var(--navy-deep) 0%,#16244a 50%,var(--navy-light) 100%);
  border-radius:16px;
  padding:36px 28px;
  display:flex;
  flex-direction:column;
  gap:20px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(201,168,76,.22);
}
.ad-banner::before{
  content:'📢';
  position:absolute;
  font-size:160px;
  opacity:.06;
  right:-20px;
  bottom:-30px;
  line-height:1;
  pointer-events:none;
}
body.he .ad-banner::before{right:auto;left:-20px}
.ad-banner-eyebrow{font-size:.68rem;font-weight:800;color:var(--gold);text-transform:uppercase;letter-spacing:.1em}
.ad-banner-title{font-family:var(--sans);font-size:clamp(1.3rem,4vw,1.9rem);font-weight:900;color:var(--white);line-height:1.15;letter-spacing:-.02em}
.ad-banner-title span{color:var(--gold-light)}
.ad-banner-desc{font-size:.88rem;color:rgba(255,255,255,.65);line-height:1.7;max-width:520px}
.ad-stats{display:flex;flex-wrap:wrap;gap:16px;margin:4px 0}
.ad-stat{background:rgba(255,255,255,.06);border:1px solid rgba(99,143,255,.18);border-radius:10px;padding:10px 16px;text-align:center;flex:1;min-width:80px}
.ad-stat-num{font-family:var(--sans);font-size:1.15rem;font-weight:900;color:var(--gold-light);line-height:1}
.ad-stat-label{font-size:.6rem;color:rgba(255,255,255,.45);margin-top:3px;text-transform:uppercase;letter-spacing:.05em}
.ad-cta{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--navy-deep);padding:13px 28px;border-radius:10px;font-size:.9rem;font-weight:800;text-decoration:none;transition:transform .15s,box-shadow .15s;align-self:flex-start;box-shadow:0 4px 16px rgba(201,168,76,.35)}
.ad-cta:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(200,146,42,.45)}
.ad-cta-arrow{font-size:1rem}

/* ── POST ── */
.post-wrap{max-width:720px;margin:0 auto;padding:0 16px 72px}
.breadcrumb{padding:18px 0 0;font-size:.8rem;color:var(--text-3);display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.breadcrumb a{color:var(--blue);text-decoration:none;font-weight:500}
.breadcrumb a:hover{text-decoration:underline}
.post-header{padding:22px 0 20px}
.post-h1{font-family:var(--sans);font-size:clamp(1.5rem,5vw,2.4rem);font-weight:900;letter-spacing:-.02em;line-height:1.15;margin-bottom:18px;color:var(--text)}
.post-byline{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);flex-wrap:wrap}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--blue);display:flex;align-items:center;justify-content:center;padding:5px;flex-shrink:0}
.avatar img{width:100%;height:100%;object-fit:contain}
.byline-name{font-weight:700;font-size:.86rem}
.byline-meta{font-size:.74rem;color:var(--text-3)}
.byline-read{margin-inline-start:auto;font-size:.74rem;color:var(--text-3)}
/* Tiles were 10 different inline gradients (blue/emerald/violet/amber/pink/
   grey) — a rainbow against a navy+gold brand with explicit two-colour
   discipline. The per-post emoji already carries the identity and supplies
   the colour, so the tile itself is now brand navy. */
.post-icon-hero,.card-icon-col,.related-icon{background:linear-gradient(135deg,var(--navy-deep),var(--navy-light))}
.post-icon-hero{width:100%;border-radius:var(--r);margin:20px 0;display:flex;align-items:center;justify-content:center;padding:44px 20px;position:relative;overflow:hidden}
.post-icon-hero::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.08)}
.post-icon-emoji{font-size:5.5rem;position:relative;z-index:1;filter:drop-shadow(0 4px 16px rgba(0,0,0,.3))}
.lang-switch{display:inline-flex;gap:4px;margin-top:14px;background:var(--cream-2);border:1px solid var(--border);border-radius:8px;padding:3px}
/* --text-2 on the --cream-2 track is 4.45:1 — just under AA. The active state
   is already carried by the raised pill (background + shadow), so the inactive
   link does not need to be dimmer to read as inactive. */
.lang-switch a{padding:5px 14px;border-radius:6px;font-size:.8rem;font-weight:600;text-decoration:none;color:var(--text);transition:all .15s}
.lang-switch a.active{background:var(--surface);color:var(--blue);box-shadow:var(--sh)}
.post-content{font-size:1rem;line-height:1.92;color:var(--text)}
.post-content h2{font-family:var(--sans);font-size:1.4rem;font-weight:900;margin:1.8em 0 .5em;letter-spacing:-.01em;color:var(--text);padding-bottom:.3em;border-bottom:2px solid var(--cream-3)}
.post-content h3{font-family:var(--sans);font-size:1.1rem;font-weight:700;margin:1.4em 0 .4em}
.post-content p{margin-bottom:1.1em}
.post-content strong{font-weight:700}
.post-content em{font-style:italic}
.post-content a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.post-content ul,.post-content ol{margin:.7em 0 1em;padding-inline-start:1.5em}
.post-content li{margin-bottom:.5em}
.post-content img{display:none}
.related{margin-top:44px;padding-top:24px;border-top:2px solid var(--text)}
.related-title{font-family:var(--sans);font-size:1.15rem;font-weight:900;margin-bottom:16px}
.related-list{display:flex;flex-direction:column;gap:8px}
.related-item{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-sm);text-decoration:none;color:inherit;transition:border-color .15s}
@media(hover:hover){.related-item:hover{border-color:var(--blue);box-shadow:var(--sh)}}
.related-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0}
.related-item-title{font-size:.86rem;font-weight:600;line-height:1.3}
.related-item-date{font-size:.72rem;color:var(--text-3);margin-top:2px}

/* ── FOOTER ── */
.footer{background:var(--navy-deep);color:rgba(255,255,255,.6);padding:48px 24px 40px;text-align:center}
.footer-top{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:28px}
.footer-logo-wrap{display:flex;align-items:center;justify-content:center;gap:10px}
.footer-logo-box{width:32px;height:32px;border-radius:8px;background:var(--blue);display:flex;align-items:center;justify-content:center;padding:5px}
.footer-logo-img{width:100%;height:100%;object-fit:contain}
.footer-brand{font-family:var(--sans);font-size:1.05rem;font-weight:700;color:var(--white)}
.footer-tagline{font-size:.78rem;color:rgba(255,255,255,.35)}

.footer-links-group{display:flex;justify-content:center;gap:0;flex-wrap:wrap;margin-bottom:24px}
.footer-links-group a{color:rgba(255,255,255,.65);text-decoration:none;font-size:.82rem;padding:6px 14px;border-right:1px solid rgba(255,255,255,.1);transition:color .15s;white-space:nowrap}
.footer-links-group a:last-child{border-right:none}
body.en .footer-links-group a{border-right:none;border-left:1px solid rgba(255,255,255,.1)}
body.en .footer-links-group a:last-child{border-left:none}
.footer-links-group a:hover{color:var(--white)}

.footer-contact{font-size:.8rem;color:rgba(255,255,255,.4);margin-bottom:20px}
.footer-contact a{color:rgba(255,255,255,.65);text-decoration:none}
.footer-contact a:hover{color:var(--white);text-decoration:underline}

.footer-ad-link{display:inline-flex;align-items:center;gap:6px;background:rgba(201,168,76,.12);border:1px solid rgba(201,168,76,.22);border-radius:8px;padding:8px 18px;font-size:.8rem;font-weight:700;color:var(--gold-light);text-decoration:none;margin-bottom:24px;transition:background .15s}
.footer-ad-link:hover{background:rgba(200,146,42,.2)}

.footer-copy{font-size:.73rem;color:rgba(255,255,255,.25)}
.footer-copy a{color:rgba(255,255,255,.4);text-decoration:none}
.footer-copy a:hover{text-decoration:underline}

@media(min-width:540px){.nav-inner{padding:0 24px}.brand-sub{display:block}.hero{padding:64px 24px 52px}}
@media(min-width:860px){.nav-inner{padding:0 28px;height:66px}.main{padding:44px 28px 0}.ad-section{padding:0 28px 80px}.post-wrap{padding:0 28px 80px}.hero{padding:72px 28px 60px}.ad-banner{flex-direction:row;align-items:center;flex-wrap:wrap}.ad-banner-content{flex:1;min-width:0}.ad-cta{align-self:center}}


/* The rest of the site honours this; these pages did not. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important;
  }
}
