/* ==========================================================================
   assets/article.css — Zinuk MeHon LeHon ARTICLE DESIGN SYSTEM
   --------------------------------------------------------------------------
   Shared, wide & dynamic article layout inspired by the homepage visual DNA
   (Open Sans Hebrew · navy #042F47 · gold #f59e0b · shadow-luxe · cream bg).
   Linked by every /articles/* page so ALL current & future articles inherit
   this look automatically. Rich typography is driven by the `.art-prose`
   wrapper — heading accents, links and spacing apply with no per-element work.
   RTL-first, mobile-safe (zero horizontal overflow).
   ========================================================================== */

:root {
  --navy: #042F47;
  --navy-600: #0a3a57;
  --ink: #0a192f;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --emerald: #10b981;
  --cream: #F7F6F1;
  --luxe: 0 24px 50px -20px rgba(4, 47, 71, 0.28);
}

/* ---- global RTL / overflow guards ---- */
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- entrance + reveal-on-scroll (homepage parity) ---- */
.fade-in { animation: artFade .5s ease-out both; }
@keyframes artFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fade-in { animation: none; }
}

/* ---- gold CTA shimmer button (copied from homepage .btn-cta) ---- */
.btn-cta { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); position: relative; overflow: hidden; }
.btn-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-cta:hover::after { transform: translateX(120%); }

/* ==========================================================================
   CINEMATIC HERO
   ========================================================================== */
.article-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(245,158,11,.28), transparent 60%),
    radial-gradient(800px 600px at 0% 0%, rgba(15,74,110,.55), transparent 55%),
    linear-gradient(135deg, #042F47 0%, #073047 55%, #0a3a57 100%);
}
.article-hero__media { position: relative; }
.article-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* eyebrow pill on dark hero */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.10); border: 1px solid rgba(251,191,36,.5);
  color: #fde68a; font-weight: 700; font-size: .8rem;
  padding: .35rem 1rem; border-radius: 9999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ==========================================================================
   RICH PROSE TYPOGRAPHY  (drives every heading/link/paragraph inside .art-prose)
   ========================================================================== */
.art-prose { color: #334155; font-size: 1.075rem; line-height: 1.95; }
.art-prose p { line-height: 1.95; }
.art-prose strong { color: var(--navy); font-weight: 700; }

/* H2 — gold side border accent (compound selector wins over utility classes) */
.art-prose h2 {
  font-size: 1.6rem; line-height: 1.3; font-weight: 800; color: var(--navy);
  margin: 0 0 1rem; padding-right: .9rem; border-right: 5px solid var(--gold-500);
  scroll-margin-top: 6rem;
}
.art-prose h3 { font-size: 1.22rem; font-weight: 800; color: var(--navy); margin: 1.6rem 0 .75rem; }

.art-prose a:not(.btn-cta):not(.art-cta__btn) {
  color: var(--gold-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.art-prose a:not(.btn-cta):not(.art-cta__btn):hover { color: var(--gold-500); }

/* ==========================================================================
   CALLOUT / TIP CARDS
   ========================================================================== */
.art-callout {
  border-radius: 1rem; padding: 1.25rem 1.4rem; box-shadow: var(--luxe);
  margin: 1.5rem 0; position: relative;
}
.art-callout--tip  { background: #fff8ec; border-right: 5px solid var(--gold-500); }
.art-callout--info { background: #eef4f8; border-right: 5px solid var(--navy); }
.art-callout--good { background: #ecfdf5; border-right: 5px solid var(--emerald); }
.art-callout__title { font-weight: 800; color: var(--navy); margin-bottom: .4rem; display: flex; gap: .5rem; align-items: center; }

/* ==========================================================================
   EMBEDDED TOOL-CTA BANNER (between sections)
   ========================================================================== */
.art-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  background:
    radial-gradient(600px 300px at 90% -40%, rgba(245,158,11,.28), transparent 60%),
    linear-gradient(135deg, #042F47, #0a3a57);
  border-radius: 1.25rem; padding: 1.6rem 1.75rem; box-shadow: var(--luxe);
  margin: 2rem 0; color: #fff;
}
.art-cta__title { font-weight: 800; font-size: 1.15rem; color: #fff; }
.art-cta__sub { color: #cbd5e1; font-size: .9rem; margin-top: .25rem; }
.art-cta__btn {
  flex: none; background: linear-gradient(135deg, #f59e0b, #d97706); color: #0a192f;
  font-weight: 800; padding: .85rem 1.5rem; border-radius: .75rem;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.art-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(245,158,11,.5); }

/* ==========================================================================
   STICKY SIDEBAR — auto Table of Contents + quick CTA
   ========================================================================== */
.toc-card { background: #fff; border: 1px solid #e6ebf1; border-radius: 1.25rem; box-shadow: var(--luxe); padding: 1.25rem 1.35rem; }
.toc-card h4 { font-weight: 800; color: var(--navy); font-size: .95rem; margin: 0 0 .75rem; display: flex; gap: .5rem; align-items: center; }
#toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
#toc a {
  display: block; padding: .5rem .6rem; border-radius: .6rem; color: #475569;
  font-size: .9rem; font-weight: 600; border-right: 3px solid transparent; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
#toc a:hover { background: #f6f8fb; color: var(--navy); }
#toc a.active { background: #fff8ec; color: var(--navy); border-right-color: var(--gold-500); }

.side-cta {
  margin-top: 1.25rem; border-radius: 1.25rem; box-shadow: var(--luxe); padding: 1.4rem; color: #fff; text-align: center;
  background: radial-gradient(500px 260px at 100% -30%, rgba(245,158,11,.3), transparent 60%), linear-gradient(135deg, #042F47, #0a3a57);
}

/* ==========================================================================
   FAQ ACCORDION (native <details>) — restyled to the gold system
   ========================================================================== */
.faq details { border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--gold-500); box-shadow: var(--luxe); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--navy); user-select: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 9999px; background: #fff8ec; color: var(--gold-600); font-weight: 800; font-size: 1.1rem; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.25rem 1.25rem; color: #475569; line-height: 1.9; }

/* ==========================================================================
   RESPONSIVE / MOBILE SAFETY
   ========================================================================== */
.art-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
@media (max-width: 1023px) {
  .art-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .art-cta__btn { text-align: center; }
}
