/* Lebanese Lobby — mobile-first, Apple-style light design */

:root {
  /* Apple-style light palette with a restrained cedar-red accent */
  --red: #d70015;          /* accent: kickers, active states, primary buttons */
  --green: #248a3d;        /* verified */
  --link: #0066cc;
  --ink: #1d1d1f;          /* headings / strong text */
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --card: #f5f5f7;         /* soft grey surfaces */
  --glass: rgba(255,255,255,.72);
  --radius: 18px;
  --bar-h: 56px;
  --tab-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Naskh Arabic", serif;
}
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  height: var(--bar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 12px; padding-top: env(safe-area-inset-top);
}
.topbar .menu-btn, .topbar .search-btn { background: none; border: 0; color: var(--ink); padding: 8px; font-size: 22px; line-height: 1; }
.logo { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.logo .mark { background: var(--red); color: #fff; padding: 4px 7px; border-radius: 8px; font-size: 15px; }

/* Horizontal section nav (swipeable) */
.sections {
  position: sticky; top: var(--bar-h); z-index: 49;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none;
  padding: 0 16px; white-space: nowrap;
}
.sections::-webkit-scrollbar { display: none; }
.sections a { padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.sections a.active, .sections a:hover { color: var(--ink); border-color: var(--ink); }

/* Breaking ticker */
.breaking { background: var(--card); color: var(--ink); display: flex; align-items: center; overflow: hidden; font-size: 14px; }
.breaking strong { position: relative; z-index: 1; background: var(--red); color: #fff; padding: 8px 12px; flex: none; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.breaking .track { white-space: nowrap; animation: ticker 40s linear infinite; padding: 8px 0 8px 16px; }
.breaking .track a { margin-inline-end: 32px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
[dir="rtl"] .breaking .track { animation-name: ticker-rtl; }
@keyframes ticker-rtl { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .breaking .track { animation: none; padding: 8px; } }

/* ---------- Cards ---------- */
.hero { display: block; margin: 0 -16px 16px; position: relative; }
.hero img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.hero .over { position: absolute; inset: auto 0 0 0; padding: 56px 20px 20px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; }
.hero h1 { font: 800 26px/1.15 var(--font); margin: 6px 0 0; letter-spacing: -.01em; }
.kicker { display: inline-block; color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hero .kicker { color: #fff; background: var(--red); padding: 2px 6px; border-radius: 3px; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 8px; }
.section-title h2 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.section-title a { font-size: 15px; color: var(--link); font-weight: 400; }

.card { display: grid; grid-template-columns: 1fr 112px; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card img { width: 112px; height: 80px; object-fit: cover; border-radius: 12px; }
.card h3 { font-size: 17px; line-height: 1.3; margin: 2px 0 6px; font-weight: 700; }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-ai { font-size: 11px; border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; }
.badge-verified { color: var(--green); font-weight: 700; }

/* Horizontal video rail */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .vid { flex: 0 0 72%; scroll-snap-align: start; }
.rail .thumb { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.rail .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.rail .thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 34px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.rail h4 { font-size: 15px; margin: 8px 0 0; line-height: 1.3; }

/* Events */
.event { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event .date { flex: none; width: 54px; text-align: center; background: var(--card); border-radius: 8px; padding: 6px 0; }
.event .date b { display: block; font-size: 22px; color: var(--red); line-height: 1; }
.event .date span { font-size: 12px; text-transform: uppercase; color: var(--muted); }

/* Contribute CTA */
.cta { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px 20px; margin: 28px 0; text-align: center; }
.cta h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.cta p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 99px; padding: 11px 22px; font-weight: 500; font-size: 16px; cursor: pointer; }
.btn.ghost { color: var(--link); }
.btn.ghost { background: transparent; border: 1px solid currentColor; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- Article ---------- */
.article header { padding-top: 16px; }
.article h1 { font: 800 28px/1.15 var(--font); margin: 8px 0 12px; letter-spacing: -.01em; }
.article .dek { font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.article .byline { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; gap: 8px; }
.article .lead-img { margin: 16px -16px; }
.article .lead-img img { width: 100%; height: auto; }
.article .lead-img figcaption { font-size: 13px; color: var(--muted); padding: 6px 16px; }
.article .body { font: 19px/1.65 var(--serif); }
.article .body p { margin: 0 0 1.1em; }
.article .body h2 { font: 800 22px/1.25 var(--font); margin: 1.4em 0 .5em; }
.article .body blockquote { margin: 1em 0; padding-inline-start: 14px; border-inline-start: 4px solid var(--red); font-style: italic; }
.article .body iframe, .article .body video { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius); }
.refs { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin: 24px 0; font-size: 15px; }
.refs h3 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.refs ol { margin: 0; padding-inline-start: 20px; }
.refs a { color: var(--link); word-break: break-word; }

/* Sticky share bar on articles (thumb-reachable) */
.sharebar {
  position: fixed; left: 0; right: 0; z-index: 60;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  display: flex; justify-content: space-around; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0,0,0,.08);
  padding: 6px 8px;
}
.sharebar button, .sharebar a { background: none; border: 0; color: var(--text); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; cursor: pointer; }
.sharebar .ico { font-size: 20px; }
body.single { padding-bottom: calc(var(--tab-h) + 60px + env(safe-area-inset-bottom)); }

/* Comments */
.comments { margin: 24px 0; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-inline-start: 18px; border-inline-start: 2px solid var(--line); }
.comment-author { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.comment-author img { border-radius: 50%; width: 28px; height: 28px; }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-content p { margin: 6px 0; font-size: 16px; }
.reply a { font-size: 13px; color: var(--link); }

/* Forms */
input[type=text], input[type=email], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text);
}
textarea { min-height: 160px; }
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.seg { display: flex; background: var(--card); border-radius: 99px; padding: 4px; gap: 4px; }
.seg label { flex: 1; margin: 0; text-align: center; padding: 10px 0; border-radius: 99px; cursor: pointer; font-size: 14px; }
.seg input { display: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--red); color: #fff; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--card); margin: 12px 0; font-size: 15px; }
.notice.ok { border-inline-start: 4px solid var(--green); }
.notice.err { border-inline-start: 4px solid var(--red); }
.ai-feedback { font-size: 14px; }
.ai-feedback li { margin-bottom: 6px; }

/* ---------- Bottom tab bar (app-like) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,.08);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--muted); font-weight: 500; }
.tabbar a .ico { font-size: 22px; line-height: 1; }
.tabbar a.active { color: var(--red); }
.tabbar a.post .ico { background: var(--red); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 4px 14px rgba(215,0,21,.25); font-size: 26px; }

/* Slide-out drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer nav { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 82%; max-width: 340px; background: var(--bg); color: var(--ink); padding: 24px 20px; overflow-y: auto; }
.drawer nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.drawer .langs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.drawer .langs a { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 14px; }

.searchbox { display: none; padding: 10px 16px; background: var(--card); }
.searchbox.open { display: block; }

.pagination { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
.site-footer { font-size: 13px; color: var(--muted); padding: 24px 0; text-align: center; }

/* Larger screens: still mobile-first, just centred */
@media (min-width: 900px) {
  .hero { margin: 16px 0; border-radius: var(--radius); overflow: hidden; }
  .article .lead-img { margin: 16px 0; }
}

/* ---------- Lobby wall ---------- */
.wall-compose { background: var(--card); border-radius: var(--radius); padding: 14px; margin: 16px 0; }
.wall-compose textarea { min-height: 90px; border: 0; background: var(--bg); }
.wall-compose .row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.wall-compose .row label { margin: 0; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.wall-compose .row .btn { margin-inline-start: auto; padding: 10px 18px; }
.wall-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.wall-text { margin: 8px 0; font-size: 16px; }
.wall-text p { margin: 0 0 .6em; }
.wall-img { border-radius: var(--radius); width: 100%; height: auto; }
.wall-video iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius); }
.wall-actions { display: flex; gap: 20px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.wall-actions button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.social-login { margin: 12px 0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 80px); background: rgba(29,29,31,.9); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 14px; z-index: 200; }


/* ---------- App additions ---------- */
.hero-ph { aspect-ratio: 16/10; background: linear-gradient(135deg, #d70015, #6e0a14); }
.hero-dek { margin: 8px 0 0; font-size: 15px; opacity: .9; }
.event h3 { margin: 0 0 4px; font-size: 17px; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-i { display: inline-grid; place-items: center; background: var(--card); color: var(--muted); font-weight: 600; font-size: 14px; }
.who { display: flex; gap: 10px; align-items: center; }
.who .meta { margin: 0; }
.comment-list li .who { gap: 8px; font-size: 15px; }
.comment-body p { margin: 6px 0; font-size: 16px; }
.comment-form textarea { min-height: 90px; margin-bottom: 10px; }
.embed iframe, .lead-img iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px; }
.article .body img { width: 100%; height: auto; border-radius: 12px; }
.translations { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.translations a, .drawer .langs a { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; }
.translations a.on, .drawer .langs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.linklike { background: none; border: 0; padding: 13px 0; font: inherit; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: inherit; cursor: pointer; width: 100%; text-align: start; border-bottom: 1px solid var(--line); }
.social-login { display: grid; gap: 10px; margin: 16px 0; }
.btn.social { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.social b { font-size: 18px; }
.btn.social.google b { color: #4285f4; }
.btn.social.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.small { padding: 6px 14px; font-size: 14px; }
.or { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 4px; }
.center { text-align: center; }
.inline { display: inline; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: inline-block; margin: 6px 6px 0 0; }
.wall-compose input[type=url] { margin-top: 8px; }
.wall-compose .pick { margin: 0; color: var(--link); font-weight: 500; cursor: pointer; }
.wall-compose p { margin: 0 0 10px; }
textarea.short { min-height: 70px; }
.submit-row { margin-top: 24px; }
[data-show] { display: none; }
[data-show].on { display: block; }
.me-head { display: flex; gap: 16px; align-items: center; }
.me-head h1 { margin: 0; }
.status { text-transform: capitalize; font-weight: 600; }
.s-published { color: var(--green); }
.s-pending { color: #b25000; }
.s-rejected { color: var(--red); }
.card.simple { grid-template-columns: 1fr; }
.logout { margin-top: 32px; }
.admin-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.admin-item .meta { margin: 4px 0; }
.admin-item form { margin-top: 6px; }
.admin-item select { width: auto; padding: 4px 8px; }
.log-row { font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.editor-notes { border: 1px dashed var(--line); }
.inline-search { margin-bottom: 8px; }
.site-footer a { color: var(--link); }
.site-footer p { margin: 4px 0; }
.verified-line { margin-top: 8px; }

/* =========================================================
   v4 — futuristic brand, dropdown menu, live ticker, impact visuals
   ========================================================= */
:root { --grad: linear-gradient(120deg, #ff2d55, #d70015 35%, #7b2ff7 70%, #00c7be); }

/* Logo */
.logo { gap: 10px; }
.logo .mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 14px rgba(123,47,247,.35)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.logo:hover .mark { transform: rotate(-8deg) scale(1.06); }
.wordmark { display: flex; flex-direction: column; line-height: .95; letter-spacing: .14em; font-size: 13px; }
.wordmark b { font-weight: 800; }
.wordmark i { font-style: normal; font-weight: 800; background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }

/* Animated hamburger */
.topbar .menu-btn { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; padding: 0; }
.topbar .menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
body.menu-open .topbar .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .topbar .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .topbar .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown menu (drops from the top bar) */
.dropdown { position: fixed; inset: var(--bar-h) 0 0 0; z-index: 90; pointer-events: none; }
.dropdown .shade { position: absolute; inset: 0; background: rgba(0,0,0,.18); opacity: 0; transition: opacity .25s; }
.dropdown .panel { position: relative; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0,0,0,.08); padding: 16px 16px 20px; max-height: calc(100vh - var(--bar-h) - 20px); overflow-y: auto;
  transform: translateY(-12px); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.dropdown.open { pointer-events: auto; }
.dropdown.open .shade { opacity: 1; }
.dropdown.open .panel { transform: none; opacity: 1; }
.dropdown .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 720px; margin: 0 auto; }
.dropdown .grid a { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.06); font-weight: 600; font-size: 16px; }
.dropdown .grid a:active { transform: scale(.98); }
.dropdown .me-row { display: flex; align-items: center; justify-content: space-between; max-width: 720px; margin: 14px auto 0; }
.dropdown .me-row a { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dropdown .langs { display: flex; gap: 8px; flex-wrap: wrap; max-width: 720px; margin: 14px auto 0; }
.dropdown .langs a { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.dropdown .langs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Live ticker — stock-market style */
.ticker { position: sticky; top: calc(var(--bar-h) + 45px); z-index: 48; display: flex; align-items: stretch; background: #0b0b0f; color: #fff; font-size: 13px; overflow: hidden; }
.ticker .live { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #d70015; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; flex: none; position: relative; z-index: 1; }
.ticker .live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.ticker-viewport { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 90s linear infinite; }
.ticker:hover .ticker-track, .ticker:active .ticker-track { animation-play-state: paused; }
.ticker-track a { display: flex; align-items: center; gap: 8px; padding: 9px 22px 9px 0; white-space: nowrap; border-inline-end: 1px solid rgba(255,255,255,.12); margin-inline-end: 22px; }
.tk-time { font-variant-numeric: tabular-nums; color: #8e8e93; }
.tk-sec { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.1); color: #00c7be; }
.tk-sec.s-justice { color: #ff9f0a; } .tk-sec.s-politics { color: #64d2ff; } .tk-sec.s-faith { color: #ffd60a; } .tk-sec.s-economy { color: #30d158; } .tk-sec.s-diaspora { color: #bf5af2; }
.tk-title { color: #f5f5f7; }
@keyframes tick { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: tick-rtl; }
@keyframes tick-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-viewport { overflow-x: auto; } }

/* Impact visuals */
.sv-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.sv-art::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 1px, transparent 1px 22px), radial-gradient(circle at 80% 15%, rgba(255,255,255,.35), transparent 45%); }
.sv-art svg { width: 46%; max-width: 220px; fill: rgba(255,255,255,.22); filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.sv-art span { position: absolute; left: 14px; bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.s-lebanon { --c1: #d70015; --c2: #5b0a17; } .s-diaspora { --c1: #7b2ff7; --c2: #2b0c61; } .s-faith { --c1: #b8860b; --c2: #3d2a04; }
.s-initiatives { --c1: #00a37a; --c2: #053d33; } .s-community { --c1: #ff6b35; --c2: #6b1f06; } .s-politics { --c1: #0a84ff; --c2: #062a5c; }
.s-justice { --c1: #3a3a3c; --c2: #0b0b0f; } .s-economy { --c1: #30a46c; --c2: #0d3b26; } .s-heritage { --c1: #a0522d; --c2: #3b1d0c; } .s-opinion { --c1: #5e5ce6; --c2: #1d1c55; }

/* Hero: full-bleed, tall, cinematic */
.hero { display: block; position: relative; margin: 0 -16px 8px; aspect-ratio: 4/5; max-height: 78vh; overflow: hidden; color: #fff; }
.hero .sv-img, .hero .sv-art { position: absolute; inset: 0; }
.hero .sv-img { transform: scale(1.02); transition: transform 6s ease-out; }
.hero:hover .sv-img { transform: scale(1.08); }
.hero .over { position: absolute; inset: auto 0 0 0; padding: 120px 20px 24px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.hero h1 { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin: 10px 0 0; }
.hero .kicker { background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; border-radius: 99px; padding: 4px 10px; }
.hero .hero-meta { display: flex; gap: 10px; margin-top: 12px; font-size: 13px; opacity: .85; }

/* Top stories: big image cards */
.top-grid { display: grid; gap: 14px; margin: 18px 0 8px; }
.big-card { display: block; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.big-card .vis { aspect-ratio: 16/10; position: relative; }
.big-card .vis .sv-img, .big-card .vis .sv-art { position: absolute; inset: 0; }
.big-card .txt { padding: 14px 16px 16px; }
.big-card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 6px; }
.big-card p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.big-card:active { transform: scale(.99); }
@media (min-width: 700px) { .top-grid { grid-template-columns: 1fr 1fr; } }

/* Regular cards use the same visuals */
.card .thumb { width: 112px; height: 80px; border-radius: 12px; overflow: hidden; position: relative; }
.card .thumb .sv-art svg { width: 60%; }
.card .thumb .sv-art span { display: none; }
.rail .thumb .sv-art span { display: none; }

/* Owner star ratings */
.stars { display: inline-flex; gap: 2px; margin-inline-start: 8px; vertical-align: middle; }
.stars button { background: none; border: 0; padding: 2px; font-size: 18px; color: var(--line); cursor: pointer; line-height: 1; }
.stars button.on { color: #ff9f0a; }
.stars button:hover, .stars button:hover ~ button { color: var(--line); }
.stars:hover button { color: #ff9f0a; }
.stars button:hover ~ button { color: var(--line); }
.rating-badge { color: #ff9f0a; font-size: 12px; }
.lead-visual { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.lead-visual .sv-img, .lead-visual .sv-art { position: absolute; inset: 0; }
.hero .sv-art span { display: none; }
.hero .sv-art svg { width: 60%; max-width: 320px; transform: translateY(-14%); }
.hero + .stars, .top-grid .stars { margin: 6px 0 0; }
.dropdown { z-index: 95; }
.dropdown .panel { background: rgba(255,255,255,.96); }

/* =========================================================
   v5 — professional, calm palette (overrides)
   ========================================================= */
:root {
  --red: #9b3b45;            /* muted crimson accent */
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e1e1e6;
  --card: #f5f5f7;
  --link: #2f5d8a;           /* calm blue */
  --green: #3b7a57;
  --grad: none;
}
.logo .mark { filter: none; }
.logo:hover .mark { transform: none; }
.wordmark i { background: none; color: var(--red); animation: none; -webkit-background-clip: initial; background-clip: initial; }
.wordmark { font-size: 12.5px; letter-spacing: .16em; }

.kicker { color: var(--red); }
.btn { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.tabbar a.active { color: var(--ink); }
.tabbar a.post .ico { background: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.sections a.active, .sections a:hover { border-color: var(--red); }
.badge-verified { color: var(--green); }

/* Ticker: quiet newswire look */
.ticker { background: #f5f5f7; color: var(--ink); border-bottom: 1px solid var(--line); }
.ticker .live { background: var(--red); }
.ticker-track a { border-inline-end-color: var(--line); }
.tk-time { color: var(--muted); }
.tk-sec, .tk-sec.s-justice, .tk-sec.s-politics, .tk-sec.s-faith, .tk-sec.s-economy, .tk-sec.s-diaspora { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.tk-title { color: var(--ink); }
.ticker-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }

/* Section artwork: soft, editorial tones */
.sv-art::before { opacity: .18; }
.sv-art svg { fill: rgba(255,255,255,.16); filter: none; }
.s-lebanon { --c1: #8c4a52; --c2: #4a2a2f; } .s-diaspora { --c1: #5a5f86; --c2: #2e3150; } .s-faith { --c1: #8a7a5a; --c2: #4a3f2c; }
.s-initiatives { --c1: #5b7f6e; --c2: #2f463c; } .s-community { --c1: #9a7660; --c2: #4f3a2e; } .s-politics { --c1: #4f6b8a; --c2: #26374a; }
.s-justice { --c1: #5c5f66; --c2: #2a2c30; } .s-economy { --c1: #5f7d63; --c2: #2f4232; } .s-heritage { --c1: #8a6a52; --c2: #45342a; } .s-opinion { --c1: #6a6487; --c2: #34314a; }
.hero .over { background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.hero .kicker { background: rgba(255,255,255,.16); }
.dropdown .langs a.on { background: var(--ink); }
.stars button.on, .stars:hover button, .rating-badge { color: #c08a2e; }

/* Install-the-app bar + iPhone sheet */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0,0,0,.14); border: 1px solid var(--line); }
.install-bar[hidden], .sheet[hidden] { display: none; }
.install-bar img { border-radius: 10px; }
.install-bar div { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; }
.install-bar span { color: var(--muted); }
.install-x { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 6px; cursor: pointer; }
body.single .install-bar { bottom: calc(var(--tab-h) + 72px + env(safe-area-inset-bottom)); }
.sheet { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { width: 100%; max-width: 520px; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.sheet-card img { border-radius: 14px; margin: 0 auto 8px; }
.sheet-card h3 { margin: 4px 0 12px; font-size: 19px; }
.sheet-card ol { text-align: start; margin: 0 0 18px; padding-inline-start: 22px; line-height: 1.6; }
.ios-share { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: 13px; }

/* =========================================================
   v6 — classic Lebanese red restored; phone typing fixes
   ========================================================= */
:root { --red: #c8102e; }
.wordmark i { color: var(--red); }
.ticker .live { background: var(--red); }
.tabbar a.post .ico { background: var(--red); box-shadow: 0 4px 12px rgba(200,16,46,.3); }
.btn { background: var(--red); }

/* iPhone: inputs ≥16px so Safari never zooms when typing */
input, select, textarea, button { font-size: 16px; }
.searchbox input, .inline-search input { font-size: 16px !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
/* While the keyboard is open, hide fixed bars so the page doesn't jump */
body.typing .tabbar, body.typing .sharebar, body.typing .install-bar { display: none; }
body.typing { padding-bottom: 0; }

/* =========================================================
   v7 — dropdown-only navigation, light "water glass" surfaces, photo credits
   ========================================================= */
:root { --glass: rgba(255,255,255,.58); --glass-border: rgba(255,255,255,.65); --glass-shadow: 0 8px 32px rgba(31,38,64,.10); }
body { background: radial-gradient(1200px 600px at 10% -10%, #fdeff1 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #eef3fb 0%, transparent 55%), #fbfbfd; background-attachment: fixed; }
.topbar, .tabbar, .dropdown .panel, .sharebar, .install-bar, .wall-compose, .refs, .cta, .big-card, .ticker {
  background: var(--glass) !important;
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.7);
}
.topbar { border-width: 0 0 1px; }
.tabbar { border-width: 1px 0 0; }
.ticker { top: var(--bar-h); border-width: 0 0 1px; }
.ticker .live { background: var(--red) !important; }
.dropdown .panel { background: rgba(255,255,255,.72) !important; border-radius: 0 0 24px 24px; }
.dropdown .grid a { background: rgba(255,255,255,.55); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.big-card { border-radius: 22px; overflow: hidden; }
.cta { border-radius: 22px; }
.refs { border-radius: 18px; }
.tk-sec, .tk-sec.s-justice, .tk-sec.s-politics, .tk-sec.s-faith, .tk-sec.s-economy, .tk-sec.s-diaspora { background: rgba(255,255,255,.6); }
.credit { font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.hero-credit { font-size: 10.5px; opacity: .7; margin-top: 8px; }
.card .thumb, .rail .thumb { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.s-governance { --c1: #7a4b2a; --c2: #3a2414; }
.tk-sec.s-governance { color: var(--muted); }

/* News Wire */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--glass-border); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.wire { list-style: none; margin: 0; padding: 0; }
.wire li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.wire li a { font-weight: 600; font-size: 16px; line-height: 1.35; }
.wire .w-time { font-size: 12px; color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.wire .w-pub { font-size: 12px; color: var(--muted); }
.wire.compact li { padding: 10px 0; }
.wire.compact li a { font-size: 15px; }
