/* ==========================================================================
   /blog — index + article pages.

   Self-contained on purpose: chrome (nav/footer/tokens) comes from
   landing.css, and this file supplies its own prose styling for
   App\Markdown's output rather than borrowing docs.css's .docs-article
   rules. docs.css looked like a natural reuse (same renderer, same class
   names) but its :root now carries the CONSOLE's warm-cream/bordeaux
   palette, not landing's — loading both stylesheets let docs.css's --bg/
   --accent silently win site-wide. Every token below is landing's own.
   ========================================================================== */

/* landing.css never needed a screen-reader-only utility before this page;
   App\Markdown emits <span class="sr-only"> on every external link (the
   newTabSr suffix), so without this it renders as VISIBLE text — caught
   live on the CTA button ("דברו איתנו נפתח בטאב חדש" shown in full). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- nav: no burger/drawer on blog pages, so the two CTAs stay visible and
   pinned to the far end at every width instead of collapsing into a menu
   with nothing in it. ---- */
.blog-nav .nav-inner { justify-content: space-between; }
@media (max-width: 720px) {
  .blog-nav .nav-right .btn { display: inline-flex; }
  .blog-nav .nav-right .btn.btn-ghost-dark { display: none; }
}

/* ==========================================================================
   Index — masthead + post list
   ========================================================================== */
/* Dark hero band, matching the landing homepage's own .hero recipe exactly:
   --dark base + a restrained coral radial bloom top-corner + a dark linear
   scrim, so copy contrast never depends on where the bloom lands. */
.blog-hero {
  position: relative; overflow: hidden; background: var(--dark);
  padding-block: clamp(52px, 7vw, 88px) clamp(30px, 4vw, 44px);
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 80% at 72% 0%, rgba(225, 88, 111, .20), transparent 62%),
    linear-gradient(to bottom, rgba(14, 17, 22, .72) 0%, rgba(14, 17, 22, .86) 100%);
}
.blog-hero > .wrap { position: relative; z-index: 1; }
.blog-hero :focus-visible { outline-color: #fff; }
.blog-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #F2A0AE; margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(29px, 4vw, 42px); line-height: 1.16; margin: 0 0 12px; color: #fff; letter-spacing: -0.01em; }
.blog-hero p { font-size: 16.5px; color: var(--d-text-2); max-width: 58ch; margin: 0; }

.blog-list { padding-block: clamp(36px, 5vw, 60px) 88px; }
.blog-list .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch;
}

.blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.blog-card:hover { border-color: var(--line-2); box-shadow: var(--sh); transform: translateY(-2px); }
.blog-card-media { display: block; background: var(--bg-2); aspect-ratio: 16/10; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.blog-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 17.5px; font-weight: 800; color: var(--ink); margin: 0 0 10px; line-height: 1.38; transition: color .14s;
}
.blog-card:hover .blog-card-title { color: var(--accent-deep); }
.blog-card-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; color: var(--ink-2); line-height: 1.58; margin-bottom: 16px;
}
.blog-card-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.blog-card-cta svg { width: 13px; height: 13px; }

@media (max-width: 980px) {
  .blog-list .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-list .wrap { grid-template-columns: 1fr; }
  .blog-card-media { aspect-ratio: 16/9; }
}

/* ==========================================================================
   Article — masthead, hero figure, prose
   ========================================================================== */
/* Same dark-hero recipe as .blog-hero (see its comment) — the article's
   masthead is the page's hero exactly as much as the index's is. */
.blog-masthead {
  position: relative; overflow: hidden; background: var(--dark);
  padding-block: clamp(36px, 5vw, 56px);
}
.blog-masthead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 80% at 72% 0%, rgba(225, 88, 111, .20), transparent 62%),
    linear-gradient(to bottom, rgba(14, 17, 22, .72) 0%, rgba(14, 17, 22, .86) 100%);
}
.blog-masthead-wrap { position: relative; z-index: 1; max-width: 860px; }
.blog-masthead :focus-visible { outline-color: #fff; }
.blog-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--d-text-2); margin-bottom: 22px; }
.blog-back:hover { color: #fff; }
.blog-back svg { width: 14px; height: 14px; }

.blog-masthead h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.22; color: #fff; margin: 0 0 16px; letter-spacing: -0.01em; max-width: 20ch; }
.blog-lede { font-size: 18px; line-height: 1.6; color: var(--d-text-2); max-width: 62ch; margin: 0; }

.blog-hero-figure-wrap { max-width: 900px; margin-inline: auto; padding-inline: var(--pad); margin-top: clamp(28px, 4vw, 44px); }
.blog-hero-figure { width: 100%; height: auto; display: block; border-radius: var(--r-lg); }

.blog-article-wrap { max-width: 860px; padding-block: clamp(38px, 5vw, 56px) 90px; }

/* ---- related articles: the other two posts in this one's hand-curated
   topic cluster (BlogLibrary::CLUSTERS) — narrower than the index grid
   (860px, matching the prose column) since it only ever holds two cards. ---- */
.blog-related { padding-block: 0 clamp(48px, 6vw, 76px); }
.blog-related-wrap { max-width: 860px; }
.blog-related h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 20px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 640px) {
  .blog-related-grid { grid-template-columns: 1fr; }
}

.blog-prose { font-size: 17px; line-height: 1.85; color: var(--ink-2); }

.blog-prose .doc-sec { margin: 48px 0 18px; }
.blog-prose .doc-sec:first-child { margin-top: 0; }
.blog-prose h2 {
  font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; line-height: 1.32; color: var(--ink);
  margin: 0; padding-inline-start: 15px; border-inline-start: 3px solid var(--accent);
}
.blog-prose h3 { font-size: 18.5px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.blog-prose h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; }

.blog-prose p { margin: 0 0 20px; }
.blog-prose strong { color: var(--ink); font-weight: 700; }
.blog-prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.blog-prose a:hover { color: var(--accent); }

.blog-prose ul, .blog-prose ol { margin: 0 0 22px; padding-inline-start: 22px; }
.blog-prose li { margin-bottom: 9px; }
.blog-prose li::marker { color: var(--accent); font-weight: 700; }

.blog-prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.blog-prose blockquote { margin: 26px 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--line-2); color: var(--ink-2); font-style: italic; }

.blog-prose code { font-family: var(--mono); font-size: 14.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.blog-prose pre { margin: 22px 0; padding: 16px 18px; background: var(--ink); border-radius: var(--r); overflow-x: auto; }
.blog-prose pre code { background: none; border: none; padding: 0; color: #E9ECF1; }
.blog-prose .doc-ui {
  display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}

/* ---- comparison table: the last row is the article's own conclusion, so it
   carries the coral tint rather than needing a separate callout component. ---- */
.blog-prose .doc-tablewrap { overflow-x: auto; margin: 6px 0 32px; border: 1px solid var(--line); border-radius: var(--r); }
.blog-prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.blog-prose th {
  text-align: start; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.blog-prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.blog-prose tbody tr:last-child td { background: var(--accent-soft); font-weight: 600; border-bottom: none; }
.blog-prose tbody tr:last-child td strong { color: var(--accent-deep); font-size: 16.5px; }

/* ---- figures (the two generated illustrations) ---- */
.blog-prose .doc-plate { margin: 10px 0 34px; }
.blog-prose .doc-shot { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.blog-prose .doc-shot img { width: 100%; height: auto; display: block; }
.blog-prose .doc-plate figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: center; }
.blog-prose .doc-plate-zoom { display: none; }

/* ---- closing CTA: the article's own convention is that the LAST paragraph
   is the ask (see the .md source), so it becomes the CTA band directly —
   no separate component to keep in sync with the copy. ---- */
.blog-prose > p:last-of-type {
  margin-top: 44px; padding: 34px 30px; background: var(--ink); border-radius: var(--r-lg);
  text-align: center; color: #E9ECF1; font-size: 17px; line-height: 1.7;
}
.blog-prose > p:last-of-type a {
  display: block; width: fit-content; margin: 18px auto 0; padding: 13px 26px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 10px; text-decoration: none; transition: background .14s;
}
.blog-prose > p:last-of-type a:hover { background: var(--accent-deep); }

