/* Football Hub - mobile-first, themable, accessible styles */

:root {
  --bg: #0b1020;
  --bg-2: #111733;
  --card: #161d3d;
  --card-2: #1c2552;
  --text: #eef2ff;
  --muted: #98a2c2;
  --line: #2a3361;
  --accent: #4f8bff;
  --accent-2: #22d3a8;
  --warn: #ffb020;
  --danger: #ff5470;
  --live: #ff3b3b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,.25);
  --maxw: 1200px;
  --tab-h: 44px;
  --top-h: 56px;
  --bn-h: 60px;
  --pad: 14px;
  --font: system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef1f9;
  --card: #ffffff;
  --card-2: #f1f4fb;
  --text: #0b1020;
  --muted: #586079;
  --line: #dfe3ee;
  --shadow: 0 4px 18px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark light; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: calc(var(--bn-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 1000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: grid; grid-template-columns: auto auto 1fr auto auto;
  align-items: center; gap: 8px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.brand-mark { font-size: 22px; }
.brand-accent { color: var(--accent); }
.icon-btn {
  background: transparent; color: var(--text);
  border: 1px solid transparent; border-radius: 10px;
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  position: relative;
}
.icon-btn:hover { background: var(--card-2); }
.dot {
  position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--bg);
}

.search {
  display: flex; align-items: center; gap: 4px;
  background: var(--card-2);
  border-radius: 999px; padding: 2px 6px 2px 12px;
  border: 1px solid var(--line);
  min-width: 0;
}
.search input {
  background: transparent; border: 0; color: var(--text);
  font: inherit; padding: 6px 4px; min-width: 0; width: 100%;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }

/* Tabs (horizontal scroll on mobile) */
.tabs {
  position: sticky; top: var(--top-h); z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.tabs-inner {
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  padding: 6px 10px;
  max-width: var(--maxw); margin: 0 auto;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.tab.active, .tab:hover { background: var(--card-2); color: var(--text); }

/* Drawer */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 40; animation: fade .2s ease both;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(86vw, 320px);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  z-index: 50; transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.drawer-list { list-style: none; padding: 8px; margin: 0; overflow: auto; }
.drawer-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; color: var(--text);
}
.drawer-list a:hover { background: var(--card-2); }
.drawer-foot {
  margin-top: auto; padding: 12px; display: flex; gap: 14px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

/* Main */
.main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 24px; }
.block { margin: 18px 0; }
.block-h { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.block-h h2 { font-size: 17px; margin: 0; }
.more { color: var(--accent); font-size: 13px; font-weight: 600; }

/* Hero */
.hero-card {
  background: linear-gradient(135deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.hero-skel { color: var(--muted); text-align: center; padding: 24px 0; }
.hero-match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.hero-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-team.right { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.hero-team img { width: 44px; height: 44px; object-fit: contain; }
.hero-team .t-name { font-weight: 700; }
.hero-team .t-league { color: var(--muted); font-size: 12px; }
.hero-score { font-size: 30px; font-weight: 800; letter-spacing: .5px; text-align: center; }
.hero-meta { text-align: center; margin-top: 10px; color: var(--muted); font-size: 13px; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { background: var(--card); }
.chip img { width: 16px; height: 16px; object-fit: contain; }

/* Cards: matches */
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  transition: transform .12s ease, background .2s ease;
}
.card:hover { background: var(--card-2); }
.card a { color: inherit; }
.card .meta { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.card .team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card .team.right { justify-content: flex-end; flex-direction: row-reverse; text-align: right; }
.card .team img { width: 26px; height: 26px; object-fit: contain; }
.card .team .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .score { font-weight: 800; font-size: 18px; min-width: 46px; text-align: center; }
.card .live { color: var(--live); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card .live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); animation: pulse 1.2s infinite;
}
.card.skel { height: 84px; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes fade { from{opacity:0} to{opacity:1} }

/* Trending */
.trend { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.trend::-webkit-scrollbar { display: none; }
.trend-pill {
  flex: 0 0 auto; background: var(--card); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.trend-pill .num { color: var(--accent); font-weight: 800; }

/* News grid */
.news-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 640px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.news-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.news-card .thumb {
  aspect-ratio: 16/9; background: var(--card-2) center/cover no-repeat;
  display: grid; place-items: center; color: var(--muted);
  overflow: hidden;
}
.news-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.news-card h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.news-card p { margin: 0; color: var(--muted); font-size: 13px; }
.news-card .src { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }

/* Standings snapshot */
.standings { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.standings table { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th, .standings td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.standings th { background: var(--card-2); color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.standings td.pos { width: 28px; color: var(--muted); }
.standings tr:last-child td { border-bottom: 0; }
.standings-skel { padding: 24px; color: var(--muted); text-align: center; }
.standings .crest { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

/* WC promo */
.wc-card {
  background: linear-gradient(120deg, #15306b, #1e3a8a 50%, #0ea5e9);
  color: #fff; border-radius: var(--radius); padding: 18px;
  display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center;
  box-shadow: var(--shadow);
}
.wc-card .badge { display: inline-block; background: rgba(255,255,255,.16); padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.wc-card h2 { margin: 8px 0 6px; font-size: 22px; }
.wc-card p { margin: 0 0 12px; color: #dbeafe; }
.wc-countdown {
  font-variant-numeric: tabular-nums;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.wc-countdown .unit {
  background: rgba(0,0,0,.25); padding: 10px 12px; border-radius: 10px; min-width: 70px; text-align: center;
}
.wc-countdown .unit b { display: block; font-size: 22px; }
.wc-countdown .unit span { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.btn.primary { background: #fff; color: #0b1020; }

/* Bottom nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--bn-h); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--muted);
}
.bn-item.active { color: var(--accent); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bn-h) + 16px);
  transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  box-shadow: var(--shadow); z-index: 60; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Filter bar */
.filterbar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin: 10px 0 14px;
}
.filterbar select, .filterbar input {
  background: var(--card-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font: inherit; min-width: 140px;
}

/* Blog article */
.article {
  max-width: 760px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.article h1 { margin-top: 0; }
.article .lede { color: var(--muted); font-size: 17px; }
.article h2 { margin-top: 22px; }
.article ul, .article ol { padding-left: 22px; }
.article .meta { color: var(--muted); font-size: 13px; }
.article blockquote { border-left: 3px solid var(--accent); margin: 0; padding: 4px 14px; color: var(--muted); }
.share-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share-row a {
  background: var(--card-2); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.data-table th { background: var(--card-2); color: var(--muted); text-transform: uppercase; font-size: 12px; }

/* Bracket */
.bracket {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 8px;
}
.round { display: flex; flex-direction: column; gap: 8px; }
.round h4 { margin: 0 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.match {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  display: grid; gap: 4px;
}
.match .row { display: flex; justify-content: space-between; font-size: 14px; }
.match .row .name { display: inline-flex; align-items: center; gap: 6px; }
.match .row img { width: 14px; height: 14px; object-fit: contain; }
.match .row.winner { font-weight: 700; }

/* Venue card */
.venues { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .venues { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .venues { grid-template-columns: 1fr 1fr 1fr; } }
.venue { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.venue h3 { margin: 0 0 4px; font-size: 16px; }
.venue .city { color: var(--muted); font-size: 13px; }
.venue .cap { margin-top: 6px; font-size: 13px; }

/* Forms */
.form { max-width: 560px; }
.form label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: 13px; }
.form input, .form textarea {
  width: 100%; background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font: inherit;
}
.form button { margin-top: 14px; background: var(--accent); color: #fff; border: 0; padding: 10px 14px; border-radius: 10px; font-weight: 700; }

/* Notifications panel */
.notif-panel {
  position: fixed; right: 8px; top: calc(var(--top-h) + 4px);
  width: min(94vw, 360px); max-height: 70vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px; z-index: 40;
}
.notif-panel h3 { margin: 4px 6px 8px; font-size: 15px; }
.notif-item { display: flex; gap: 8px; padding: 8px; border-radius: 8px; }
.notif-item:hover { background: var(--card-2); }
.notif-item .dot-live { background: var(--live); }
.notif-item .dot-goal { background: var(--accent-2); }
.notif-item .dot-news { background: var(--warn); }

/* Utility */
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* WC group + broadcast */
.group h3 { letter-spacing: .04em; }
.group-list { list-style: none; padding: 0; margin: 6px 0 0; counter-reset: g; }
.group-list li {
  counter-increment: g;
  font-size: 13px; padding: 4px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.group-list li::before {
  content: counter(g);
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--card); color: var(--muted);
  border-radius: 50%;
  font-size: 11px; line-height: 18px;
  text-align: center; font-weight: 600;
}
.group-list li:first-child { border-top: 0; }
.broadcast-grid {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.bcast-row {
  display: grid; grid-template-columns: 1.4fr 1.5fr 1.5fr; gap: 8px;
  padding: 8px 12px; background: var(--card);
  font-size: 13px;
}
.bcast-row:nth-child(odd) { background: var(--card-2); }
.bcast-region { font-weight: 600; color: var(--text); }
.bcast-tv { color: var(--text); }
.bcast-stream { font-size: 12px; }
@media (max-width: 600px) {
  .bcast-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; }
  .bcast-tv, .bcast-stream { padding-left: 12px; }
}

/* WC hero card (top of home page during tournament window) */
.wc-hero { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 50%, #0c4a6e 100%); color: #e0e7ff; border: 0; border-radius: var(--radius); padding: 24px 22px 22px; position: relative; overflow: hidden; }
.wc-hero[hidden] { display: none; }
.wc-hero::before { content: ""; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(circle, rgba(14, 165, 233, .15) 0%, transparent 70%); pointer-events: none; }
.wc-hero-card { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.wc-hero-main h2 { margin: 0 0 6px; font-size: 28px; color: #fff; }
.wc-hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wc-hero-badge { display: inline-block; background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.wc-hero-phase { display: inline-block; background: rgba(255, 255, 255, .12); color: #e0e7ff; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.wc-hero-tagline { color: #c7d2fe; margin: 0 0 10px; font-size: 14px; line-height: 1.5; max-width: 56ch; }
.wc-hero-opening { color: #e0e7ff; margin: 8px 0 14px; font-size: 13.5px; }
.wc-hero-opening b { color: #fcd34d; }
.wc-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wc-hero-actions .btn { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .18); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; }
.wc-hero-actions .btn.primary { background: #f59e0b; color: #1f2937; border-color: transparent; }
.wc-hero-actions .btn.primary:hover { background: #fbbf24; }
.wc-hero-side { text-align: center; padding: 16px 0; border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 28px; }
.wc-hero-countdown-label { font-size: 11px; color: #c7d2fe; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.wc-hero-strip { position: relative; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.wc-hero-strip[hidden] { display: none; }
.wc-hero-strip-label { font-size: 11px; color: #c7d2fe; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.wc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wc-cards .card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #e0e7ff; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.wc-cards .card .team { color: #fff; }
.wc-cards .card .meta { color: #94a3b8; }
.wc-cards .card .score { color: #fcd34d; font-weight: 700; }
.wc-cards .card a { color: inherit; text-decoration: none; }
@media (max-width: 720px) {
  .wc-hero-card { grid-template-columns: 1fr; }
  .wc-hero-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-left: 0; padding-top: 18px; }
  .wc-hero-main h2 { font-size: 22px; }
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 22px 18px 28px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .ft-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px;
}
.site-footer h4 { margin: 0 0 8px; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: var(--muted); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .ft-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.site-footer .ft-brand .brand-mark { font-size: 22px; }
.site-footer .ft-tag { margin-top: 8px; max-width: 28ch; }
.site-footer .ft-meta {
  max-width: 1100px; margin: 18px auto 0; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px;
}
@media (max-width: 720px) {
  .site-footer .ft-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .site-footer .ft-inner { grid-template-columns: 1fr; }
}

/* Last-updated pill */
.last-updated {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  background: var(--card-2);
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line);
}
.lu-host { display: inline-block; margin-left: 8px; vertical-align: middle; }
.last-updated::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .5);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
  70%  { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* FAQ block */
.faq-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.faq-h { margin: 0 0 12px; font-size: 18px; }
.faq-item { border-top: 1px solid var(--line); padding: 10px 0; }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.faq-item[open] .faq-chev { transform: rotate(45deg); }
.faq-a { padding: 8px 0 4px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 70ch; }

/* Breadcrumb visual */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; padding: 8px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: .6; }

/* Ad slot — placed below the tab bar, above the main content. */
.ad-slot {
  display: flex; justify-content: center;
  padding: 10px 12px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.ad-slot[hidden] { display: none; }
.ad-slot-label {
  align-self: center;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-right: 12px;
}
.ad-slot-frame {
  max-width: 100%;
  min-height: 0;
  display: flex; justify-content: center; align-items: center;
  flex: 1 1 auto;
}
.ad-slot-frame ins,
.ad-slot-frame iframe,
.ad-slot-frame img,
.ad-slot-frame > div { max-width: 100%; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
