/* ===========================================================
   KLÉA Journal - "מאמרים ומידע"
   The approved editorial design, in the site's own language:
   navy / gold / cream, sharp corners, the same card behavior
   as the property cards.
   =========================================================== */

.j-page{padding-top:96px;min-height:100vh}
.j-wrap{max-width:1180px;margin:0 auto;padding:0 clamp(1.2rem,4vw,3rem)}

/* the nav starts scrolled-style on journal pages (no dark hero behind it) */
.j-page ~ *{}
.nav--solid{background:var(--cream);padding:1rem 0;box-shadow:0 1px 0 rgba(10,25,47,.08)}
.nav--solid .nav__logo-img--white{opacity:0}
.nav--solid .nav__logo-img--navy{opacity:1}
.nav--solid .nav__links a{color:var(--charcoal,#3d3d38)}
.nav--solid .lang-toggle{border-color:rgba(10,25,47,.3);color:var(--navy)}
.nav--solid .nav__burger span{background:var(--navy)}
.nav__links .nav__links-on{color:var(--gold-ink)}
.nav__links .nav__links-on::after{width:100%}

/* ---------- index hero ---------- */
.j-hero{padding:3.2rem 0 2rem;text-align:center}
.j-eyebrow{font-size:.72rem;letter-spacing:.3em;color:var(--gold-ink);font-weight:600;text-transform:uppercase}
html[lang="he"] .j-eyebrow{letter-spacing:.22em}
.j-hero h1{font-size:clamp(2rem,4.6vw,2.7rem);margin:.55rem 0 .7rem}
.j-hero .j-sub{color:#6d6a61;max-width:52ch;margin:0 auto;font-size:1.02rem}
.j-rule{width:120px;height:2px;margin:1.5rem auto 0;background:repeating-linear-gradient(90deg,var(--gold) 0 8px,transparent 8px 14px);opacity:.55}

/* ---------- featured ---------- */
.j-featured{display:grid;grid-template-columns:1.45fr 1fr;background:#fff;border:1px solid rgba(10,25,47,.1);margin-top:1.4rem;overflow:hidden;color:inherit}
.j-featured__img{position:relative;min-height:340px;overflow:hidden}
.j-featured__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease)}
.j-featured:hover .j-featured__img img{transform:scale(1.05)}
.j-tag{position:absolute;top:1rem;inset-inline-start:1rem;background:var(--gold);color:var(--navy);font-size:.68rem;font-weight:700;letter-spacing:.08em;padding:.32rem .7rem;z-index:2}
html[lang="he"] .j-tag{letter-spacing:.02em}
.j-featured__body{padding:2.2rem 2.4rem;display:flex;flex-direction:column;justify-content:center}
.j-kicker{font-size:.7rem;letter-spacing:.16em;color:var(--gold-ink);font-weight:700;margin-bottom:.55rem;text-transform:uppercase}
html[lang="he"] .j-kicker{letter-spacing:.06em}
.j-featured__body h2{font-size:clamp(1.35rem,2.4vw,1.75rem);line-height:1.2;margin-bottom:.7rem}
.j-featured__body .j-x{color:#5a564e;font-size:.95rem;line-height:1.7;margin-bottom:1.1rem}
.j-meta{display:flex;align-items:center;gap:.7rem;font-size:.78rem;color:#8a877d;flex-wrap:wrap}
.j-more{margin-top:1.2rem;font-size:.85rem;font-weight:600;color:var(--gold-ink)}

/* ---------- chips ---------- */
.j-chips{display:flex;gap:.55rem;flex-wrap:wrap;justify-content:center;margin:2rem 0 1.8rem}
.j-chip{border:1px solid rgba(10,25,47,.18);padding:.42rem 1.05rem;font-size:.82rem;color:#3d3d38;background:transparent;white-space:nowrap;cursor:pointer;font-family:inherit;transition:border-color .2s,background .2s,color .2s}
.j-chip:hover{border-color:var(--gold)}
.j-chip.on{background:var(--navy);color:var(--cream);border-color:var(--navy)}

/* ---------- grid + cards ---------- */
.j-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;padding-bottom:2.8rem}
.j-card{background:#fff;border:1px solid rgba(10,25,47,.1);transition:transform .45s var(--ease),box-shadow .45s var(--ease);color:inherit;display:block}
.j-card:hover{transform:translateY(-6px);box-shadow:0 26px 50px -28px rgba(10,25,47,.4)}
.j-card__img{position:relative;aspect-ratio:3/2;overflow:hidden;background:rgba(10,25,47,.06)}
.j-card__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s var(--ease)}
.j-card:hover .j-card__img img{transform:scale(1.06)}
.j-card__body{padding:1.15rem 1.2rem 1.3rem}
.j-card__body h3{font-size:1.13rem;line-height:1.32;margin:.45rem 0 .5rem}
.j-card__body .j-x{font-size:.86rem;color:#6d6a61;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.j-card .j-meta{margin-top:.85rem;padding-top:.8rem;border-top:1px solid rgba(10,25,47,.08)}
.j-empty{text-align:center;color:#8a877d;padding:3rem 0 4rem;font-size:.95rem}

/* ---------- article ---------- */
.j-crumb{font-size:.78rem;color:#8a877d;padding-top:.4rem}
.j-crumb a{color:inherit}
.j-crumb b{color:var(--gold-ink);font-weight:600}
.j-art-head{max-width:760px;margin:0 auto;text-align:center;padding:1.6rem 0 1.8rem}
.j-tag2{display:inline-block;background:var(--gold);color:var(--navy);font-size:.68rem;font-weight:700;letter-spacing:.08em;padding:.32rem .75rem;margin-bottom:1rem}
html[lang="he"] .j-tag2{letter-spacing:.02em}
.j-art-head h1{font-size:clamp(1.65rem,4vw,2.35rem);line-height:1.18;margin-bottom:1rem}
.j-art-head .j-meta{justify-content:center}
.j-avatar{width:26px;height:26px;border-radius:50%;background:var(--navy);color:var(--gold);display:inline-flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:.8rem;vertical-align:middle;margin-inline-end:.35rem}
.j-art-hero{max-width:980px;margin:0 auto;padding:0 clamp(1.2rem,4vw,3rem)}
.j-art-hero img{width:100%;aspect-ratio:21/10;object-fit:cover;display:block}
.j-cap{font-size:.74rem;color:#8a877d;text-align:center;padding:.55rem 0 0}

/* ---------- desktop article layout: reading column + sticky aside ---------- */
.j-layout{
  display:grid;grid-template-columns:minmax(0,680px) 300px;gap:clamp(2.5rem,5vw,4.5rem);
  justify-content:center;align-items:start;
  max-width:1180px;margin:0 auto;padding:1rem clamp(1.2rem,4vw,3rem) 1.5rem;
}
.j-aside{position:sticky;top:104px;display:flex;flex-direction:column;gap:1.4rem}
.j-aside__box{border:1px solid rgba(10,25,47,.12);background:#fff;padding:1.2rem 1.3rem}
.j-aside__title{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-ink);font-weight:700;margin-bottom:.8rem}
html[lang="he"] .j-aside__title{letter-spacing:.05em}
.j-toc{display:flex;flex-direction:column}
.j-toc a{
  font-size:.86rem;color:#6d6a61;padding:.42rem 0;line-height:1.45;
  border-inline-start:2px solid rgba(10,25,47,.1);padding-inline-start:.85rem;
  transition:color .2s,border-color .2s;
}
.j-toc a:hover{color:var(--navy)}
.j-toc a.on{color:var(--navy);border-inline-start-color:var(--gold);font-weight:600}
.j-share{display:flex;gap:.5rem;flex-wrap:wrap}
.j-share button,.j-share a{
  display:inline-flex;align-items:center;justify-content:center;gap:.35rem;
  width:38px;height:38px;border:1px solid rgba(10,25,47,.15);background:#fff;
  color:#3d3d38;cursor:pointer;transition:border-color .2s,color .2s;
}
.j-share button:hover,.j-share a:hover{border-color:var(--gold);color:var(--gold-ink)}
.j-share svg{width:17px;height:17px}
.j-share__copied{font-size:.72rem;color:var(--gold-ink);align-self:center}
.j-aside__cta{background:var(--navy);color:var(--cream);padding:1.4rem 1.3rem;text-align:center}
.j-aside__cta h3{color:var(--cream);font-size:1.05rem;margin-bottom:.35rem}
.j-aside__cta p{font-size:.82rem;color:rgba(245,240,232,.7);margin-bottom:.9rem;line-height:1.6}
.j-aside__cta a{display:inline-block;background:var(--gold);color:var(--navy);font-weight:700;padding:.6rem 1.3rem;font-size:.85rem;transition:background .25s}
.j-aside__cta a:hover{background:#d4b26e}

.j-prose{max-width:680px;margin:0 auto;padding:2.2rem clamp(1.2rem,4vw,2rem) 1rem;font-size:1.06rem;line-height:1.95;color:#3A3A35}
.j-layout .j-prose{margin:0;padding:1rem 0 0;max-width:none;min-width:0}
.j-prose h2{scroll-margin-top:110px}
.j-prose .j-lead{font-size:1.22rem;line-height:1.8;color:var(--navy);margin-bottom:1.6rem}
.j-prose p{margin-bottom:1.35rem}
.j-prose a{color:var(--gold-ink);text-decoration:underline;text-underline-offset:3px}
.j-prose h2{font-size:1.45rem;margin:2.2rem 0 .9rem;padding-inline-start:.9rem;border-inline-start:3px solid var(--gold)}
.j-prose ul{margin:0 1.3rem 1.35rem;display:flex;flex-direction:column;gap:.45rem}
.j-prose blockquote{font-size:1.28rem;line-height:1.7;color:var(--navy);border-inline-start:3px solid var(--gold);padding:.4rem 1.3rem;margin:2rem 0;font-weight:600}
.j-prose blockquote small{display:block;font-size:.8rem;color:var(--gold-ink);font-weight:600;margin-top:.5rem}
.j-takeaways{background:var(--navy);color:var(--cream);padding:1.7rem 1.8rem;margin:2.1rem 0}
.j-takeaways h3{color:var(--gold);font-size:.85rem;letter-spacing:.12em;font-weight:700;margin-bottom:.85rem}
html[lang="he"] .j-takeaways h3{letter-spacing:.04em}
.j-takeaways ul{margin:0 1.2rem;display:flex;flex-direction:column;gap:.5rem}
.j-takeaways li{font-size:.95rem;line-height:1.7;color:rgba(245,240,232,.88)}
.j-figure{margin:2rem 0}
.j-figure img{width:100%;display:block}
.j-video{margin:2rem 0}
.j-video__frame{position:relative;aspect-ratio:16/9;background:#0A192F}
.j-video__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.j-cta{border:1px solid var(--gold);background:rgba(197,160,89,.07);padding:1.6rem 1.7rem;margin:2.2rem 0;text-align:center}
.j-cta h3{font-size:1.2rem;margin-bottom:.35rem}
.j-cta p{font-size:.9rem;color:#6d6a61;margin-bottom:1rem}
.j-cta a{display:inline-block;background:var(--gold);color:var(--navy);font-weight:700;padding:.7rem 1.7rem;font-size:.9rem;transition:background .25s}
.j-cta a:hover{background:var(--gold-ink);color:var(--cream)}
.j-author{display:flex;gap:1rem;align-items:center;border-top:1px solid rgba(10,25,47,.1);border-bottom:1px solid rgba(10,25,47,.1);padding:1.3rem 0;margin:2.4rem 0 1rem}
.j-author .j-avatar{width:52px;height:52px;font-size:1.3rem;flex-shrink:0}
.j-author b{display:block;color:var(--navy);font-size:.98rem}
.j-author span{font-size:.82rem;color:#8a877d}
.j-related{max-width:1180px;margin:0 auto;padding:1rem clamp(1.2rem,4vw,3rem) 3rem}
.j-related h2{text-align:center;font-size:1.5rem;margin-bottom:1.4rem}
.j-related .j-grid{padding-bottom:0}

/* ---------- responsive ---------- */
@media(max-width:1023px){
  /* the layout the user loves on mobile: single column; the aside drops
     below the article (no sticky), TOC hidden (in-page nav is short) */
  .j-layout{grid-template-columns:1fr;gap:0}
  .j-aside{position:static;flex-direction:column;gap:1rem;padding-top:.5rem}
  .j-aside__box--toc{display:none}
}
@media(max-width:860px){
  .j-featured{grid-template-columns:1fr}
  .j-featured__img{min-height:220px}
  .j-featured__body{padding:1.5rem 1.3rem}
  .j-grid{grid-template-columns:1fr 1fr;gap:1.1rem}
}
@media(max-width:640px){
  .j-page{padding-top:84px}
  .j-hero{padding:2.2rem 0 1.4rem}
  .j-chips{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:.35rem;margin-inline:-.2rem;scrollbar-width:none}
  .j-chips::-webkit-scrollbar{display:none}
  .j-grid{grid-template-columns:1fr}
  .j-art-hero img{aspect-ratio:4/3}
  .j-prose{font-size:1.02rem}
}
