/* ===========================================================
   LK Finance — Guides · EDITORIAL theme ("מגזין נקי")
   Airy, typographic, premium. Built to render as a clean
   standalone PDF lead-magnet (ManyChat) AND a web page.
   Depends on styles.css tokens.
   =========================================================== */

:root {
  --ed-accent: #1B7BB8;        /* overridable per guide */
  --ed-gold: #C49A3A;
  --ed-ink: #0E1B2E;
  --ed-soft: #5C6B82;
  --ed-cream: #FBFAF7;
  --ed-line: rgba(14,27,46,0.12);
  --ed-line-soft: rgba(14,27,46,0.07);
}

.edu { padding: 116px 0 70px; background: var(--ed-cream); }
.edu .container { max-width: 720px; }
.edu, .edu p, .edu li { color: var(--ed-ink); }

/* ---------- Cover / hero ---------- */
.edu-cover { padding: 22px 0 34px; border-bottom: 1px solid var(--ed-line); margin-bottom: 44px; }
.edu-eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: none;
  color: var(--ed-gold); margin-bottom: 22px;
}
.edu-eyebrow::after { content: ""; display:block; width:46px; height:2px; background: var(--ed-gold); margin-top: 12px; }
.edu-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.02;
  letter-spacing: -0.02em; color: var(--ed-ink); margin-bottom: 22px;
}
.edu-dek {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5;
  color: var(--ed-soft); max-width: 30ch;
}
.edu-byline {
  display: flex; align-items: center; gap: 12px; margin-top: 30px;
  font-size: 0.92rem; color: var(--ed-soft);
}
.edu-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.edu-byline b { color: var(--ed-ink); font-weight: 700; }
.edu-byline .sep { width: 1px; height: 16px; background: var(--ed-line); }

/* ---------- Action bar (screen only) ---------- */
.edu-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.edu-action {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ed-line); background: #fff; color: var(--ed-ink);
  transition: transform .15s ease, box-shadow .2s ease;
}
.edu-action:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14,27,46,0.10); }
.edu-action.primary { background: var(--ed-ink); color: #fff; border-color: var(--ed-ink); }
.edu-action svg { width: 17px; height: 17px; }

/* ---------- Lead paragraph ---------- */
.edu-lead {
  font-size: 1.32rem; line-height: 1.7; font-weight: 300; color: var(--ed-ink);
  margin: 0 0 44px; max-width: 38ch;
}
/* keep the lead clean — neutralise the global gold-marker here */
.edu-lead strong { font-weight: 600; background-image: none !important; text-shadow: none !important; padding: 0 !important; color: var(--ed-ink); }

/* ---------- "For whom + time" meta strip ---------- */
.edu-for {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  margin: 0 0 46px; padding: 16px 0; border-top: 1px solid var(--ed-line-soft); border-bottom: 1px solid var(--ed-line-soft);
  font-size: 0.92rem; color: var(--ed-soft);
}
.edu-for b { color: var(--ed-ink); font-weight: 700; }
.edu-for .tag {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  color: var(--ed-accent); background: rgba(27,123,184,0.08);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Table of contents ---------- */
.edu-toc { margin: 0 0 56px; padding: 26px 28px; background: #fff; border: 1px solid var(--ed-line); border-radius: 6px; }
.edu-toc-label { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; color: var(--ed-gold); margin-bottom: 16px; }
.edu-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
.edu-toc li { counter-increment: toc; break-inside: avoid; margin-bottom: 11px; }
.edu-toc a { display: flex; gap: 11px; align-items: baseline; color: var(--ed-ink); font-size: 1rem; border: none; }
.edu-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 300; color: var(--ed-gold); font-size: 0.82rem; flex-shrink: 0; }
.edu-toc a:hover { color: var(--ed-accent); }

/* keep section anchors clear of the sticky nav */
.edu-sec, .edu-sec[id] { scroll-margin-top: 96px; }

/* ---------- Big numbers row ---------- */
.edu-numbers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 0 56px; border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line);
}
.edu-number { padding: 28px 14px; text-align: center; border-inline-start: 1px solid var(--ed-line-soft); }
.edu-number:first-child { border-inline-start: none; }
.edu-number .n {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1; color: var(--ed-ink); letter-spacing: -0.02em;
}
.edu-number .n span { color: var(--ed-gold); }
.edu-number .l { font-size: 0.82rem; color: var(--ed-soft); margin-top: 10px; line-height: 1.4; }

/* ---------- Sections ---------- */
.edu-sec { margin: 0 0 50px; }
.edu-sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.edu-sec-num {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.4rem; color: var(--ed-gold); letter-spacing: 0.04em; flex-shrink: 0;
}
.edu-sec h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.16; color: var(--ed-ink); letter-spacing: -0.01em;
}
.edu-sec p { font-size: 1.12rem; line-height: 1.8; color: #28354a; margin: 0 0 14px; }
.edu-sec p:last-child { margin-bottom: 0; }
.edu-sec strong { font-weight: 700; color: var(--ed-ink); }
.edu-sec a { color: var(--ed-accent); border-bottom: 1px solid rgba(27,123,184,0.3); }

/* two-line "why" mini list */
.edu-pair { display: grid; gap: 18px; margin: 10px 0 0; }
.edu-pair-item { padding-inline-start: 20px; border-inline-start: 2px solid var(--ed-gold); }
.edu-pair-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin-bottom: 4px; color: var(--ed-ink); }
.edu-pair-item p { font-size: 1.04rem; line-height: 1.65; color: #28354a; margin: 0; }

/* ---------- Steps (editorial, hairline-separated, airy) ---------- */
.edu-steps { margin: 8px 0 0; counter-reset: estep; }
.edu-step {
  display: grid; grid-template-columns: 42px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--ed-line-soft);
}
.edu-step:first-child { border-top: none; }
.edu-step::before {
  counter-increment: estep; content: counter(estep, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; color: var(--ed-gold); line-height: 1.2;
}
.edu-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin-bottom: 6px; color: var(--ed-ink); }
.edu-step p { font-size: 1.04rem; line-height: 1.66; color: #28354a; margin: 0; }
.edu-step .how { margin-top: 8px; font-size: 0.96rem; color: var(--ed-soft); }
.edu-step .how b { color: var(--ed-accent); font-weight: 700; }

/* ---------- Info / example box ---------- */
.edu-box {
  margin: 22px 0; padding: 22px 24px; border-radius: 6px;
  background: #fff; border: 1px solid var(--ed-line); border-inline-start: 3px solid var(--ed-gold);
}
.edu-box .edu-box-label { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ed-gold); margin-bottom: 10px; }
.edu-box p { font-size: 1.04rem; line-height: 1.7; margin: 0 0 8px; color: #28354a; }
.edu-box p:last-child { margin-bottom: 0; }
.edu-box.note { border-inline-start-color: var(--ed-accent); }
.edu-box.note .edu-box-label { color: var(--ed-accent); }

/* ---------- Comparison table ---------- */
.edu-table-wrap { margin: 22px 0; overflow-x: auto; }
.edu-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.edu-table th, .edu-table td { text-align: start; padding: 14px 14px; border-bottom: 1px solid var(--ed-line-soft); vertical-align: top; }
.edu-table thead th { font-family: var(--font-display); font-weight: 700; color: var(--ed-ink); border-bottom: 2px solid var(--ed-ink); font-size: 0.95rem; }
.edu-table tbody th { font-family: var(--font-display); font-weight: 700; color: var(--ed-ink); }
.edu-table td { color: #28354a; }

/* ---------- Glossary ---------- */
.edu-gloss { margin: 6px 0 0; }
.edu-gloss-item { padding: 16px 0; border-top: 1px solid var(--ed-line-soft); display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 18px; }
.edu-gloss-item:first-child { border-top: none; }
.edu-gloss-item dt { font-family: var(--font-display); font-weight: 700; color: var(--ed-ink); font-size: 1.04rem; }
.edu-gloss-item dd { margin: 0; font-size: 1rem; line-height: 1.6; color: #28354a; }

/* ---------- Pull quote ---------- */
.edu-quote {
  margin: 54px 0; text-align: center; padding: 0 10px;
}
.edu-quote p {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.4; color: var(--ed-ink); letter-spacing: -0.01em;
}
.edu-quote p span { color: var(--ed-gold); }
.edu-quote::before { content: ""; display: block; width: 40px; height: 3px; background: var(--ed-gold); margin: 0 auto 26px; }

/* ---------- Mistakes (minimal) ---------- */
.edu-dont { margin: 6px 0 0; }
.edu-dont-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ed-line-soft); }
.edu-dont-item:first-child { border-top: none; }
.edu-dont-item .x { color: #C0392B; font-weight: 800; font-size: 1.1rem; line-height: 1.4; }
.edu-dont-item p { font-size: 1.04rem; line-height: 1.6; margin: 0; color: #28354a; }
.edu-dont-item b { color: var(--ed-ink); }

/* ---------- Checklist ---------- */
.edu-check { margin: 6px 0 0; }
.edu-check-item { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ed-line-soft); align-items: start; }
.edu-check-item:first-child { border-top: none; }
.edu-check-item .box { width: 20px; height: 20px; border: 1.5px solid var(--ed-accent); border-radius: 5px; margin-top: 2px; }
.edu-check-item p { font-size: 1.06rem; line-height: 1.5; margin: 0; color: #28354a; }

/* ---------- FAQ (editorial, open by default) ---------- */
.edu-faq { margin: 6px 0 0; }
.edu-faq-item { padding: 20px 0; border-top: 1px solid var(--ed-line-soft); }
.edu-faq-item:first-child { border-top: none; }
.edu-faq-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: var(--ed-ink); }
.edu-faq-item p { font-size: 1.02rem; line-height: 1.7; margin: 0; color: #28354a; }

/* ---------- Disclaimer / footer note ---------- */
.edu-note { margin: 50px 0 0; padding-top: 18px; border-top: 1px solid var(--ed-line); font-size: 0.86rem; line-height: 1.6; color: var(--ed-soft); }

/* ---------- Brand sign-off (in PDF) ---------- */
.edu-signoff { display: none; margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--ed-ink); }
.edu-signoff img { height: 34px; width: auto; margin-bottom: 10px; }
.edu-signoff .who { font-family: var(--font-display); font-weight: 800; color: var(--ed-ink); }
.edu-signoff .meta { font-size: 0.85rem; color: var(--ed-soft); margin-top: 4px; }

/* ---------- CTA + share (screen) ---------- */
.edu-cta {
  margin: 56px 0 0; padding: 40px 34px; text-align: center;
  background: var(--ed-ink); border-radius: 4px; color: #fff;
}
.edu-cta h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.edu-cta p { color: #B9C6DA; margin-bottom: 22px; font-weight: 300; }
.edu-cta .btn { display: inline-flex; background: #fff; color: var(--ed-ink); }
.edu-share { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.edu-share button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  border: 1px solid var(--ed-line); background: #fff; color: var(--ed-ink);
}
.edu-share button:hover { box-shadow: 0 8px 20px rgba(14,27,46,0.10); }

/* ===========================================================
   PRINT — premium standalone PDF booklet
   =========================================================== */
@page { size: A4; margin: 20mm 18mm 18mm; }

@media print {
  .nav, .nav-toggle, .wa-fab, #lk-bot, .footer,
  .edu-actions, .edu-cta, .edu-share-card, .bg-mesh, .bg-grid { display: none !important; }

  html, body { background: #fff !important; }
  .edu { padding: 0 !important; background: #fff !important; }
  .edu .container { max-width: 100% !important; }
  .edu, .edu p, .edu li { font-size: 11pt; }

  /* Cover letterhead */
  .edu-cover { padding-top: 0; }
  .edu-cover::before {
    content: ""; display: block; height: 40px; width: 132px;
    background: url("../assets/lk-logo-tagline.png") right center / contain no-repeat;
    margin-bottom: 30px;
  }
  .edu-title { font-size: 34pt; }
  .edu-dek { font-size: 14pt; }
  .edu-lead { font-size: 15pt; }
  .edu-quote p { font-size: 19pt; }

  .edu-sec, .edu-step, .edu-pair-item, .edu-quote,
  .edu-dont-item, .edu-check-item, .edu-faq-item, .edu-signoff {
    break-inside: avoid; page-break-inside: avoid;
  }
  .edu-sec-head, .edu-numbers { break-after: avoid; }
  a { color: var(--ed-ink) !important; border: none !important; }

  .edu-signoff { display: block !important; }
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .edu { padding: 96px 0 56px; }
  .edu-numbers { grid-template-columns: 1fr; }
  .edu-number { border-inline-start: none; border-top: 1px solid var(--ed-line-soft); }
  .edu-number:first-child { border-top: none; }
  .edu-lead { font-size: 1.18rem; }
  .edu-actions { gap: 8px; }
  .edu-action { flex: 1; justify-content: center; }
  .edu-toc ol { columns: 1; }
  .edu-gloss-item { grid-template-columns: 1fr; gap: 4px; }
}

/* TOC single column inside the narrow PDF too */
@media print {
  .edu-toc ol { columns: 1; }
  .edu-toc { break-inside: avoid; }
  .edu-table, .edu-table-wrap, .edu-gloss-item, .edu-box { break-inside: avoid; page-break-inside: avoid; }
}
