/* CricInto: simple white design, one red accent (the ball). */
:root {
  --bg: #ffffff;
  --subtle: #f6f6f7;
  --hover: #fafafa;
  --text: #16181d;
  --text-2: #3b3f47;
  --muted: #71757e;
  --border: #e7e7ea;
  --border-strong: #d4d5da;
  --accent: #e0352b;
  --radius: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* so display rules (e.g. .comm { display: grid }) can't unhide */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin: 6px 0; line-height: 1.25; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 12px; font-weight: 700; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 24px; padding-bottom: 48px; }
section { margin-bottom: 32px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.link { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-ball { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.logo { flex: none; }
.logo-img { display: block; width: auto; max-width: none; object-fit: contain; }
.nav { display: flex; gap: 22px; align-self: stretch; }
.nav a { display: flex; align-items: center; color: var(--muted); font-weight: 550; font-size: 14px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.search { margin-left: auto; }
.search input {
  width: 240px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent;
  background: var(--subtle); color: var(--text); font-size: 14px;
}
.search input:focus { outline: none; border-color: var(--border-strong); background: #fff; }

/* ---------- forms ---------- */
input, select, button { font: inherit; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.intro p { margin: 0; }
.big-search { display: flex; gap: 8px; width: min(460px, 100%); }
.big-search input, .filters select {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
}
.big-search input:focus, .filters select:focus { outline: 2px solid var(--text); outline-offset: -1px; }
button { padding: 10px 18px; font-weight: 600; border-radius: 10px; border: 0; background: var(--text); color: #fff; cursor: pointer; }
button:hover { background: #33363d; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.section-head h2 { white-space: nowrap; }
.section-head h2, .section-head h1 { margin: 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.panel + .panel { margin-top: 16px; }

/* ---------- flags ---------- */
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -2px; }
.flag-none { display: inline-block; box-shadow: none; }
.flag-lg { width: 32px; height: 24px; border-radius: 4px; }

/* ---------- match cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.match-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: #fff; transition: border-color .15s; }
.match-card:hover { color: inherit; border-color: var(--border-strong); background: var(--hover); }
.match-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 0; color: var(--muted); }
.team-row.won { color: var(--text); font-weight: 650; }
.team-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-name > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row .full { display: none; }
.team-score { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; color: var(--text); }
.team-score small { font-weight: 400; color: var(--muted); font-size: 12px; }
.match-result { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

/* ---------- leaders sidebar ---------- */
.leader { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.leader:last-child { border-bottom: 0; }
.rank { width: 18px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.leader .who { flex: 1; min-width: 0; }
.leader .who small { display: block; color: var(--muted); font-size: 12px; }
.leader .val { font-weight: 750; font-variant-numeric: tabular-nums; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-links a { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.quick-links a:hover { border-color: var(--border-strong); background: var(--hover); color: var(--text); }

/* ---------- match page ---------- */
.match-header { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.match-header .team-row { padding: 6px 0; font-size: 18px; }
.match-header .team-score { font-size: 20px; }
.match-header .match-result { font-size: 15px; font-weight: 600; color: var(--text); }
.pom { margin-top: 6px; font-size: 14px; color: var(--muted); }
.pom a { color: var(--text); font-weight: 600; }
.innings-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.innings-nav a { border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.innings-nav a:hover { border-color: var(--text); color: var(--text); }
.innings { scroll-margin-top: 72px; }
.innings-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--text); }
.innings-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.innings-total { font-size: 20px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.innings-total small { font-size: 13px; font-weight: 400; color: var(--muted); }
.innings .table-wrap { margin-bottom: 14px; }
.innings p.small { margin: 0 0 10px; color: var(--text-2); }
.dismissal-mobile { display: none; font-size: 12px; color: var(--muted); }
.not-out td:first-child a { font-weight: 700; }
.details { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.table th, .table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tfoot td { border-bottom: 0; }
.table .n { text-align: right; }
.table tbody tr:hover td { background: var(--hover); }
.table td a { font-weight: 550; }
.stats td:first-child { white-space: nowrap; font-weight: 650; }
.total-row td { font-weight: 750; border-top: 1px solid var(--border-strong); }

/* ---------- player page ---------- */
.player-header { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; }
.player-header h1 { margin: 0; display: flex; align-items: center; gap: 12px; }
.player-header p { margin: 2px 0 10px; }
.avatar {
  flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--subtle); color: var(--text-2); font-weight: 800; font-size: 24px; border: 1px solid var(--border);
}
.avatar.small { width: 40px; height: 40px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); display: inline-flex; gap: 6px; align-items: center; }
.chip span { color: var(--muted); }
.chip:hover { border-color: var(--text); color: var(--text); }

/* ---------- lists, filters, pager ---------- */
.list { display: grid; gap: 8px; }
.list-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.list-item:hover { color: inherit; border-color: var(--border-strong); background: var(--hover); }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0 8px; }
.filters label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.pager a { font-weight: 600; }
.error-page { text-align: center; padding: 48px 16px; }

/* ---------- live scores ---------- */
.live-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.live-strip .live-card { flex: 0 0 240px; scroll-snap-align: start; }
.live-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; background: #fff; }
.live-card.is-live { border-color: var(--accent); }
.live-meta { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.live-name { font-size: 12px; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card .team-row { color: var(--text); font-weight: 600; }
.live-status { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.live-card.is-live .live-status { color: var(--accent); font-weight: 600; }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: var(--subtle); color: var(--muted); }
.badge-live { background: var(--accent); color: #fff; }
.badge-wait { background: #fff4e0; color: #9a5b00; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }
.notice { background: var(--subtle); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* ---------- banner, featured, news, profile ---------- */
.site-banner { background: var(--text); color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 9px 0; }
.site-banner a { color: #fff; }
.site-banner a:hover { text-decoration: underline; color: #fff; }
.featured { margin-bottom: 28px; }
.featured .match-card { padding: 18px 20px; }
.featured .team-row { font-size: 17px; }
.news-list { display: grid; gap: 12px; margin-bottom: 28px; }
.news-item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.news-item:hover { color: inherit; border-color: var(--border-strong); background: var(--hover); }
.news-cover { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.news-text { display: grid; gap: 4px; min-width: 0; }
.news-text strong { font-size: 16px; line-height: 1.3; }
.news-summary { color: var(--text-2); font-size: 14px; }
.news-list.compact .news-cover { width: 88px; height: 60px; }
.article { max-width: 720px; }
.article h1 { font-size: 32px; line-height: 1.2; }
.lead { font-size: 18px; color: var(--text-2); }
.article-cover { width: 100%; border-radius: var(--radius); margin: 8px 0 20px; }
.article-body { font-size: 17px; line-height: 1.7; }
.article-body img { max-width: 100%; border-radius: 10px; }
.article-body .dateline { font-weight: 700; color: var(--text); }
.article-body h2 { font-size: 22px; margin-top: 28px; }
.article-body blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--text-2); }
.article-body a { text-decoration: underline; }
.avatar-photo { object-fit: cover; object-position: top; padding: 0; }
.profile .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 20px; margin: 0 0 4px; }
.profile dt { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.profile dd { margin: 2px 0 0; font-size: 15px; font-weight: 550; }
.profile .bio { margin-top: 14px; color: var(--text-2); max-width: 760px; }
.profile .bio p { margin: 0 0 10px; }
.credits { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.credits a { text-decoration: underline; }
@media (max-width: 560px) { .news-cover { width: 80px; height: 56px; } .article h1 { font-size: 26px; } }

/* ---------- live match page ---------- */
a.live-card { display: block; }
a.live-card:hover { color: inherit; border-color: var(--border-strong); background: var(--hover); }
.lm-header { margin-bottom: 16px; }
.is-live-text { color: var(--accent); font-weight: 600; }
.lm-tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.lm-tab { background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 12px; font-weight: 650; white-space: nowrap; }
.lm-tab:hover { background: none; color: var(--text); }
.lm-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.lm-updated { margin-left: auto; white-space: nowrap; padding-left: 12px; }
.lm-rates { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.lm-rates strong { color: var(--text); }
.lm-panel .table-wrap { margin-bottom: 14px; }
.lm-balls { display: flex; gap: 6px; flex-wrap: wrap; }
.ball { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--subtle); font-size: 12px; font-weight: 700; color: var(--text-2); flex: none; }
.ball.s4 { background: #e8f0ff; color: #1d4ed8; }
.ball.s6 { background: #efe7ff; color: #6d28d9; }
.ball.w { background: var(--accent); color: #fff; }
.comm { display: grid; }
.comm-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.comm-row.w { background: #fdf3f2; }
.comm-row.b span:last-child { font-weight: 600; }
.comm-over { width: 40px; flex: none; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lm-tab { display: inline-flex; align-items: center; gap: 6px; }
.tab-score { font-weight: 500; color: var(--muted); font-size: 12px; }
.lm-tab.active .tab-score { color: var(--text-2); }
.lm-panel.innings { margin-bottom: 0; }
.now-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; display: grid; gap: 12px; }
.now-latest { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--subtle); }
.now-latest.w { background: #fdf0ef; }
.now-latest.b { background: #f2f5ff; }
.now-over { font-size: 12px; color: var(--muted); font-weight: 600; }
.now-text { font-weight: 600; }
.ball.big { min-width: 38px; height: 38px; font-size: 15px; }
.now-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.now-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.now-line:last-child { border-bottom: 0; }
.now-line.bowler { color: var(--text-2); }
.now-rates { display: grid; gap: 4px; text-align: right; font-size: 15px; }
.now-rates .need { font-size: 13px; color: var(--accent); }
.lm-balls { align-items: center; }
.comm-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.comm-pill { background: #fff; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.comm-pill:hover { background: var(--subtle); }
.comm-pill.active { background: var(--text); color: #fff; border-color: var(--text); }
.comm-over-end { padding: 10px 12px; margin: 8px 0; background: var(--subtle); border-radius: 8px; font-size: 13px; color: var(--text-2); display: grid; gap: 2px; }
.comm-over-end.maiden { background: #eefbf1; }
.oe-head strong { color: var(--text); }
.oe-detail { color: var(--muted); }
.oe-chase { color: var(--accent); font-weight: 650; }
.comm-text strong { font-weight: 700; }
.comm-fow { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.comm-note { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--border-strong); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.comm-note.milestone { border-left-color: #d4a017; background: #fffaeb; color: #6b4e00; }
.comm-note.result { border-left-color: var(--accent); background: #fdf3f2; color: var(--text); }
.comm-note.freehit { border-left-color: #1d4ed8; background: #f2f5ff; }
.comm-note.start, .comm-note.end { border-left-color: var(--text); background: var(--subtle); }
@media (max-width: 560px) { .now-grid { grid-template-columns: 1fr; } .now-rates { text-align: left; grid-auto-flow: column; justify-content: start; gap: 16px; } }
.two-col-public { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .two-col-public { grid-template-columns: 1fr; } }

/* ---------- pre-launch ---------- */
.preview-notice { background: #fff7e6; color: #8a5300; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f3dfb5; }
.preview-notice a { text-decoration: underline; }
.coming-soon { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 24px 16px; }
.coming-soon h1 { font-size: clamp(30px, 6vw, 48px); margin: 18px 0 0; }
.coming-soon p { max-width: 480px; color: var(--text-2); font-size: 17px; margin: 0; }
.cs-logo .logo-img { max-width: min(340px, 80vw); height: auto !important; }
.cs-logo { font-size: 32px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.cs-ball { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); margin-top: 18px; animation: bounce 1.4s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .cs-ball { animation: none; } }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 13px; color: var(--muted); }
.site-footer a { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .team-row .full { display: inline; }
  .team-row .short { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { gap: 16px; }
  .nav { gap: 14px; }
  .search input { width: 120px; }
  #live-updated { display: none; }
  .dismissal-col { display: none; }
  .dismissal-mobile { display: block; }
  h1 { font-size: 22px; }
  .match-header { padding: 16px; }
}
@media (max-width: 720px) {
  .site-header .logo-img { max-height: 26px; }
}
@media (max-width: 420px) {
  .logo { font-size: 18px; }
  .site-header .logo-img { max-height: 22px; }
  .site-header .search { display: none; }
  .nav { margin-left: auto; }
  .nav a:first-child { display: none; }
  .search input { width: 96px; }
  .player-header { align-items: flex-start; }
  .avatar { width: 56px; height: 56px; font-size: 18px; }
}

/* Homepage promo banner (Admin → Graphics → Promo banner) */
.promo-banner { display: block; margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.promo-banner img { width: 100%; height: auto; display: block; }
a.promo-banner:hover { opacity: .96; }

/* ---------- hubs: teams, series, head to head, venues, records ---------- */
.rank-table td.n:first-child { width: 28px; padding-right: 4px; }
.rank-table small { display: block; font-size: 12px; }
.hub-head { margin-bottom: 20px; }
.hub-head p { margin: 4px 0 0; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hub-grid a { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.hub-grid a:hover { border-color: var(--border-strong); background: var(--hover); color: var(--text); }
.hub-grid a small { margin-left: auto; color: var(--muted); font-weight: 500; }
.hub-section { margin-top: 28px; }
.hub-section > h2 { margin-bottom: 10px; }
.year-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.year-links a { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); }
.year-links a.active { background: var(--text); color: #fff; border-color: var(--text); }
.summary-line { font-size: 16px; font-weight: 650; margin: 8px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.match-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.match-links a { font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.footer-links a { text-decoration: none !important; font-weight: 600; }
@media (max-width: 720px) {
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}
.two-col-public > * { min-width: 0; }
.two-col-public > .panel + .panel { margin-top: 0; }
.two-col-public .rank-table .wide { display: none; }
.rank-table .wide { white-space: nowrap; }
.writeup p { margin: 0 0 10px; line-height: 1.6; }
.writeup p:last-child { margin-bottom: 0; }
.faq h3 { font-size: 15px; margin: 16px 0 4px; }
.faq h3:first-of-type { margin-top: 0; }
.faq p { margin: 0; color: var(--muted); line-height: 1.55; }
section.panel.writeup, section.panel.faq { margin-top: 16px; }

/* On this day (homepage panel and /on-this-day pages) */
.otd-list { display: grid; }
.otd-item { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.otd-item:last-child { border-bottom: 0; }
.otd-year { font-weight: 800; font-size: 20px; color: var(--accent); min-width: 52px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.otd-text { display: flex; flex-direction: column; min-width: 0; }
.otd-text strong { font-size: 15px; }
.otd-text small { color: var(--muted); font-size: 13px; }
.otd-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.otd-born { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.otd-home { margin-bottom: 28px; }
