/* SafeList - shared article / news styles (press.html, /news/) */
:root {
  --brand:       #1877F2;
  --brand-hover: #1465D8;
  --brand-deep:  #0E4FAB;
  --brand-soft:  #DCE7F6;
  --brand-tint:  #EDF2FB;
  --brand-hl:    #BFD7F4;
  --bg: #FFFFFF;
  --bg-section: #FAFAFA;
  --bg-card: #FFFFFF;
  --text: #0F0F0F;
  --text-secondary: #606060;
  --text-tertiary: #909090;
  --text-inverse: #FFFFFF;
  --border: #E5E5E5;
  --border-strong: #D0D0D0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --measure: 720px;
  --container: 1080px;
  --font-body: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display-en: "Manrope", "Inter", -apple-system, sans-serif;
  --font-display-he: "Rubik", "Heebo", -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="he"] body { line-height: 1.7; }
html[lang="he"] p { line-height: 1.85; }
html[lang="he"] .display { font-family: var(--font-display-he); }
html[lang="en"] .display { font-family: var(--font-display-en); }
html:not(:lang(he)) .lang-he,
html:not(:lang(en)) .lang-en { display: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; transition: opacity .15s; }
.nav-brand:hover { opacity: 0.85; }
.nav-brand img { height: 40px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* Lang picker */
.lang-picker { position: relative; }
.lang-picker-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; min-height: 34px; background: transparent;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.lang-picker-trigger:hover { background: var(--bg-section); }
.lang-picker-trigger .lang-chevron { color: var(--text-tertiary); transition: transform .2s; }
.lang-picker-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-picker-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 180px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 20px 56px rgba(0,0,0,0.10); padding: 6px; z-index: 100;
  animation: langMenuOpen .2s var(--ease-out-soft);
}
.lang-picker-menu[hidden] { display: none; }
.lang-picker-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text);
  transition: background .15s; cursor: pointer;
}
.lang-picker-menu a:hover { background: var(--bg-section); }
@keyframes langMenuOpen { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  line-height: 1; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, transform .2s var(--ease-out-soft);
  min-height: 40px; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--text-inverse); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-section); transform: translateY(-1px); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.article-wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }

/* Press badge / dateline */
.press-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 56px 0 28px; border-bottom: 3px solid var(--brand);
}
.badge-pr {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.dateline { font-size: 13px; color: var(--text-tertiary); font-weight: 500; }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  padding: 32px 0 0;
}
.back-link:hover { text-decoration: underline; }

/* Article heading */
.article-head { padding: 32px 0 0; }
.article-head h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800; line-height: 1.15;
  margin: 0 0 18px; letter-spacing: -0.02em;
}
html[lang="he"] .article-head h1 {
  font-family: var(--font-display-he); font-weight: 700;
  letter-spacing: -0.005em; line-height: 1.25;
}
html[lang="en"] .article-head h1 { font-family: var(--font-display-en); }
.article-head .deck {
  font-size: clamp(17px, 2vw, 20px); font-weight: 500;
  color: var(--text-secondary); line-height: 1.55; margin: 0 0 28px;
}
html[lang="he"] .article-head .deck { line-height: 1.7; }
.byline {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--text-tertiary);
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.byline strong { color: var(--text); font-weight: 600; }
.byline .sep { color: var(--border-strong); }

/* Prose body */
.prose p { font-size: 18px; line-height: 1.72; margin: 0 0 24px; }
html[lang="he"] .prose p { font-size: 18px; line-height: 1.88; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-body); font-size: 22px; font-weight: 700;
  margin: 44px 0 14px; letter-spacing: -0.01em; line-height: 1.3;
}
html[lang="he"] .prose h2 { font-size: 21px; line-height: 1.4; }
.prose strong { font-weight: 700; }
.prose a { color: var(--brand); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose ul { padding-inline-start: 22px; margin: 0 0 24px; }
.prose ul li { font-size: 18px; line-height: 1.72; margin: 0 0 10px; }
html[lang="he"] .prose ul li { line-height: 1.88; }

/* Pull quote */
.pull-quote {
  margin: 40px 0; padding: 28px 32px;
  border-inline-start: 4px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
html[dir="rtl"] .pull-quote {
  border-inline-start: none;
  border-inline-end: 4px solid var(--brand);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.pull-quote p {
  font-size: 20px !important; font-weight: 600 !important;
  line-height: 1.5 !important; color: var(--text) !important;
  margin: 0 !important; font-style: italic;
}
html[lang="he"] .pull-quote p { font-size: 19px !important; line-height: 1.65 !important; }
.pull-quote cite {
  display: block; margin-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--brand-deep);
  font-style: normal; letter-spacing: 0.02em;
}

/* Fact box */
.fact-box {
  margin: 36px 0; padding: 24px 28px;
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.fact-box .fact-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.fact-box ul { list-style: none; padding: 0; margin: 0; }
.fact-box ul li {
  font-size: 15.5px; line-height: 1.6; padding: 8px 0;
  border-bottom: 1px solid var(--border); color: var(--text);
  display: flex; gap: 10px;
}
.fact-box ul li:last-child { border-bottom: none; }
.fact-box ul li::before { content: "\2713"; color: var(--brand); font-weight: 700; flex-shrink: 0; }
html[lang="he"] .fact-box ul li { font-size: 15.5px; line-height: 1.75; }

/* Divider */
.article-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* Contact box */
.contact-box {
  margin: 40px 0 0; padding: 26px 30px;
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-box .contact-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px;
}
.contact-box p { font-size: 15px; margin: 0; color: var(--text-secondary); }
.contact-box a { color: var(--brand); font-weight: 600; }

/* CTA bar */
.cta-bar {
  margin: 56px 0; padding: 40px 36px; text-align: center;
  background: radial-gradient(ellipse at center top, var(--brand-tint) 0%, var(--bg) 80%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.cta-bar h2 {
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 800;
  margin: 0 0 12px; letter-spacing: -0.02em;
}
html[lang="he"] .cta-bar h2 { font-family: var(--font-display-he); font-weight: 700; letter-spacing: -0.005em; }
html[lang="en"] .cta-bar h2 { font-family: var(--font-display-en); }
.cta-bar p { font-size: 16px; color: var(--text-secondary); margin: 0 0 24px; line-height: 1.6; }
html[lang="he"] .cta-bar p { line-height: 1.75; }

/* ============ News hub ============ */
.hub-head { padding: 56px 0 28px; border-bottom: 3px solid var(--brand); }
.hub-head h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800;
  margin: 12px 0 10px; letter-spacing: -0.02em;
}
html[lang="he"] .hub-head h1 { font-family: var(--font-display-he); font-weight: 700; letter-spacing: -0.005em; }
html[lang="en"] .hub-head h1 { font-family: var(--font-display-en); }
.hub-head p { font-size: 17px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
html[lang="he"] .hub-head p { line-height: 1.75; }

.news-list { display: flex; flex-direction: column; gap: 20px; padding: 36px 0 16px; }
.news-card {
  display: block; padding: 26px 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s, transform .2s var(--ease-out-soft), box-shadow .2s;
}
.news-card:hover {
  border-color: var(--brand-hl); transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(24,119,242,0.10);
}
.news-card .card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-tertiary); font-weight: 500; margin-bottom: 12px;
}
.news-card .card-tag {
  background: var(--brand-tint); color: var(--brand-deep);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-full);
}
.news-card h2 {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 700;
  margin: 0 0 10px; line-height: 1.3; letter-spacing: -0.01em; color: var(--text);
}
html[lang="he"] .news-card h2 { font-family: var(--font-display-he); line-height: 1.4; }
html[lang="en"] .news-card h2 { font-family: var(--font-display-en); }
.news-card p { font-size: 15.5px; color: var(--text-secondary); margin: 0 0 14px; line-height: 1.6; }
html[lang="he"] .news-card p { line-height: 1.75; }
.news-card .card-readmore { font-size: 14px; font-weight: 600; color: var(--brand); }

/* Footer */
.footer {
  padding: 40px 24px 48px; border-top: 1px solid var(--border);
  color: var(--text-tertiary); font-size: 13.5px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 22px; opacity: 0.85; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-inner { padding: 12px 20px; }
  .nav-brand img { height: 32px; }
  .article-wrap { padding: 0 16px; }
  .press-meta, .hub-head { padding: 40px 0 20px; }
  .pull-quote { padding: 20px 22px; }
  .cta-bar { padding: 28px 22px; }
  .news-card { padding: 20px 20px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
