/* LMN Radgona – one stylesheet, no build step.
   Change the look by editing the variables below. */
:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --ink: #16191d;
  --ink-2: #4a5059;
  --muted: #7b828c;
  --line: #e3e3de;
  --line-strong: #cfd0ca;
  --accent: #17663e;         /* pitch green */
  --accent-ink: #ffffff;
  --accent-soft: #e6f1ea;
  --header: #12251b;
  --win: #1f8a4c;
  --draw: #a7a9ad;
  --loss: #c8423b;
  --yellow: #f2c230;
  --red: #d33a2f;
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Arial Narrow", var(--font);
  --hover: #fafaf7;
  --chip: #eeeee9;
  --score-bg: #12251b;
  --warn-bg: #fff7df; --warn-line: #f0dfa8; --warn-ink: #6b5414; --warn-strong: #e0b63a;
  --err-bg: #fdeceb; --err-line: #f3c7c3; --err-ink: #9b2c25;
  --ok-line: #c9e2d3;
  --zone-top: #1f8a4c; --zone-top-bg: #eef7f1;
  --zone-bottom: #c8423b; --zone-bottom-bg: #fcf0ef;
  --mine-bg: #fff8e1;
  --shadow: rgba(0,0,0,.14);
  --gold: #c9a227; --gold-bg: #fbf5e1;
  --silver: #9aa4ad; --silver-bg: #f2f4f5;
  --bronze: #b8733d; --bronze-bg: #f8eee6;
}


/* ---------- dark mode: follows the system, or the toggle in the header ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0f1412; --surface: #182019; --ink: #e5ebe7; --ink-2: #b3beb7; --muted: #86918a;
  --line: #27302b; --line-strong: #37423c;
  --accent: #5ccb8b; --accent-ink: #0b1a12; --accent-soft: #1b3326;
  --header: #0b1510; --win: #2fa463; --draw: #6b7370; --loss: #d9574f;
  --hover: #1e2722; --chip: #252e29; --score-bg: #2c3b33;
  --warn-bg: #352c15; --warn-line: #5a4a1e; --warn-ink: #f0d58a; --warn-strong: #d4a62a;
  --err-bg: #391c1a; --err-line: #5c2a27; --err-ink: #f2a9a3;
  --ok-line: #2c5640;
  --zone-top: #2fa463; --zone-top-bg: #16271d;
  --zone-bottom: #d9574f; --zone-bottom-bg: #2a1918;
  --mine-bg: #2e2914;
  --shadow: rgba(0,0,0,.5);
  --gold: #d8b33a; --gold-bg: #2c2713;
  --silver: #aab3bb; --silver-bg: #222826;
  --bronze: #c9864f; --bronze-bg: #2c2016;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1412; --surface: #182019; --ink: #e5ebe7; --ink-2: #b3beb7; --muted: #86918a;
  --line: #27302b; --line-strong: #37423c;
  --accent: #5ccb8b; --accent-ink: #0b1a12; --accent-soft: #1b3326;
  --header: #0b1510; --win: #2fa463; --draw: #6b7370; --loss: #d9574f;
  --hover: #1e2722; --chip: #252e29; --score-bg: #2c3b33;
  --warn-bg: #352c15; --warn-line: #5a4a1e; --warn-ink: #f0d58a; --warn-strong: #d4a62a;
  --err-bg: #391c1a; --err-line: #5c2a27; --err-ink: #f2a9a3;
  --ok-line: #2c5640;
  --zone-top: #2fa463; --zone-top-bg: #16271d;
  --zone-bottom: #d9574f; --zone-bottom-bg: #2a1918;
  --mine-bg: #2e2914;
  --shadow: rgba(0,0,0,.5);
  --gold: #d8b33a; --gold-bg: #2c2713;
  --silver: #aab3bb; --silver-bg: #222826;
  --bronze: #c9864f; --bronze-bg: #2c2016;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font); font-feature-settings: "tnum" 1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: .01em; }
code { background: var(--chip); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); font-weight: 400; }
.muted-link { color: var(--ink-2); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header { background: var(--header); color: #fff; }
.header-inner { display: flex; align-items: center; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .04em;
  background: var(--accent); padding: 6px 9px; border-radius: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.brand-text small { color: #a9b8af; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }

.main-nav { background: #0c1a13; border-top: 1px solid rgba(255,255,255,.06); }
.main-nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.main-nav .wrap::-webkit-scrollbar { display: none; }
.main-nav a {
  color: #c9d3cd; padding: 11px 13px; white-space: nowrap; font-weight: 500; font-size: 14px;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: #4fc07f; }

.main { padding-top: 24px; padding-bottom: 48px; }

/* ---------- page head & tabs ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font-size: 34px; font-weight: 700; }
.eyebrow { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.eyebrow a { color: inherit; }

.season-select, .round-select { display: flex; align-items: center; gap: 8px; }
.season-select label { font-size: 13px; color: var(--muted); }
select, .btn {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 7px 10px;
}
select { padding-right: 28px; cursor: pointer; }
.btn { display: inline-block; min-width: 40px; text-align: center; font-weight: 600; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.disabled { color: var(--line-strong); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 9px 14px; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- panels & layout ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.panel.narrow { max-width: 760px; }
.panel-title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.section-head h2 { font-size: 28px; font-weight: 700; }
.section-head h2 a { color: var(--ink); }
.more { margin: 10px 0 0; font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 18px; }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.two-col > .panel { margin-bottom: 0; }
.two-col + .panel, .two-col + section { margin-top: 16px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; }
.badge { font-family: var(--font); font-size: 11px; background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 10px; vertical-align: middle; font-weight: 600; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; text-align: left; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
.num { text-align: right; }
.strong { font-weight: 600; }
.pos { width: 34px; color: var(--muted); text-align: right; padding-right: 10px; }
tr.current td { background: var(--accent-soft); }

.standings th:not(.team), .standings td:not(.team) { text-align: center; }
.standings .pos { text-align: right; }
.standings td.team { font-weight: 500; white-space: nowrap; }
.standings td.team a { color: var(--ink); }
.standings .pts { font-weight: 700; color: var(--ink); }
.standings .diff { color: var(--ink-2); }
.standings .goals { white-space: nowrap; }
.standings tr.leader td.pos { color: var(--accent); font-weight: 700; }
.standings tr.leader td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.standings.compact td, .standings.compact th { padding: 6px 5px; }
.adj { font-size: 11px; color: var(--loss); margin-left: 4px; }

.form { display: inline-flex; gap: 3px; }
.form i, .res {
  display: inline-block; width: 19px; height: 19px; line-height: 19px; border-radius: 3px;
  font-style: normal; font-size: 11px; font-weight: 700; color: #fff; text-align: center; background: var(--line);
}
.f-W { background: var(--win) !important; }
.f-D { background: var(--draw) !important; }
.f-L { background: var(--loss) !important; }
.legend { font-size: 12px; margin: 10px 0 0; }

/* ---------- matches ---------- */
.matches { display: flex; flex-direction: column; }
.match {
  display: grid; grid-template-columns: 74px 1fr 64px 1fr; align-items: center; gap: 8px;
  padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.matches > :last-child .match, .matches > .match:last-child { border-bottom: 0; }
.match:hover { background: var(--hover); text-decoration: none; }
.m-when { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.3; }
.m-time { color: var(--ink-2); font-weight: 500; }
.m-home { text-align: right; }
.m-home, .m-away { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-home.win, .m-away.win { font-weight: 600; }
.me { color: var(--accent); }
.m-score {
  justify-self: center; min-width: 56px; text-align: center; font-weight: 700; font-size: 15px;
  padding: 3px 8px; border-radius: 4px; background: var(--chip); color: var(--ink-2);
}
.match.played .m-score { background: var(--score-bg); color: #fff; }
.m-score .sep { margin: 0 2px; opacity: .6; }
.m-venue { grid-column: 2 / -1; font-size: 12px; color: var(--muted); text-align: center; margin-top: -4px; }
.m-venue:empty { display: none; }
.match-wrap { display: grid; grid-template-columns: 24px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.match-wrap:last-child { border-bottom: 0; }
.match-wrap .match { border-bottom: 0; }

.round-nav { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.round-nav select { min-width: 200px; }

/* ---------- leaders / lists ---------- */
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: grid; grid-template-columns: 28px 1fr auto 36px; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.leaders li:last-child { border-bottom: 0; }
.leaders .pos { width: auto; padding: 0; }
.leaders .num { font-size: 17px; text-align: right; }
.leaders .muted { font-size: 13px; }
.card { display: inline-block; width: 11px; height: 15px; border-radius: 2px; vertical-align: middle; }
.card.yellow { background: var(--yellow); }
.card.red { background: var(--red); }
.shirt { display: inline-block; min-width: 24px; font-size: 12px; color: var(--muted); }

.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.team-grid a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--ink); font-weight: 500; }
.team-grid a:hover { border-color: var(--accent); text-decoration: none; }
.team-grid small { display: block; font-size: 12px; }

/* ---------- player ---------- */
.stat-strip { display: flex; gap: 6px; margin: 0; }
.stat-strip div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 14px; text-align: center; }
.stat-strip dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-strip dd { margin: 0; font-family: var(--font-head); font-size: 24px; font-weight: 700; }

/* ---------- match detail ---------- */
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: var(--header); color: #fff; border-radius: var(--radius); padding: 28px 20px 18px; margin-bottom: 16px;
}
.sb-team { color: #fff; font-family: var(--font-head); font-size: 26px; font-weight: 600; }
.sb-team:first-child { text-align: right; }
.sb-score { font-family: var(--font-head); font-size: 52px; font-weight: 700; line-height: 1; }
.sb-score .sep { opacity: .5; margin: 0 6px; }
.sb-vs { font-size: 30px; opacity: .8; }
.sb-meta { grid-column: 1 / -1; text-align: center; margin: 4px 0 0; color: #a9b8af; font-size: 14px; }
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { padding: 5px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-list.home li { flex-direction: row-reverse; justify-content: flex-start; }  /* row-reverse: flex-start = right */
.ev { width: 14px; height: 14px; flex: none; display: inline-block; }
/* Goal icon: "soccer-ball" (fill) from Phosphor Icons, MIT License, Copyright (c) 2023 Phosphor Icons
   https://phosphoricons.com - used as a mask, so it takes the text colour (light/dark mode);
   own goals use the same ball in red. */
.ev-goal, .ev-own_goal { width: 16px; height: 16px; background-color: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22currentColor%22%3E%3Cpath d=%22M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm8,39.38,24.79-17.05a88.41,88.41,0,0,1,36.18,27l-8,26.94c-.2,0-.41.1-.61.17l-22.82,7.41a7.59,7.59,0,0,0-1,.4L136,88.62c0-.2,0-.41,0-.62V64C136,63.79,136,63.58,136,63.38ZM95.24,46.33,120,63.38c0,.2,0,.41,0,.62V88c0,.21,0,.42,0,.62L91.44,108.29a7.59,7.59,0,0,0-1-.4l-22.82-7.41c-.2-.07-.41-.12-.61-.17l-8-26.94A88.41,88.41,0,0,1,95.24,46.33Zm-13,129.09H53.9a87.4,87.4,0,0,1-13.79-43.07l22-16.88a5.77,5.77,0,0,0,.58.22l22.83,7.42a7.83,7.83,0,0,0,.93.22l10.79,31.42c-.15.18-.3.36-.44.55L82.7,174.71A7.8,7.8,0,0,0,82.24,175.42ZM150.69,213a88.16,88.16,0,0,1-45.38,0L95.25,184.6c.13-.16.27-.31.39-.48l14.11-19.42a7.66,7.66,0,0,0,.46-.7h35.58a7.66,7.66,0,0,0,.46.7l14.11,19.42c.12.17.26.32.39.48Zm23.07-37.61a7.8,7.8,0,0,0-.46-.71L159.19,155.3c-.14-.19-.29-.37-.44-.55l10.79-31.42a7.83,7.83,0,0,0,.93-.22l22.83-7.42a5.77,5.77,0,0,0,.58-.22l22,16.88a87.4,87.4,0,0,1-13.79,43.07Z%22/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22currentColor%22%3E%3Cpath d=%22M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm8,39.38,24.79-17.05a88.41,88.41,0,0,1,36.18,27l-8,26.94c-.2,0-.41.1-.61.17l-22.82,7.41a7.59,7.59,0,0,0-1,.4L136,88.62c0-.2,0-.41,0-.62V64C136,63.79,136,63.58,136,63.38ZM95.24,46.33,120,63.38c0,.2,0,.41,0,.62V88c0,.21,0,.42,0,.62L91.44,108.29a7.59,7.59,0,0,0-1-.4l-22.82-7.41c-.2-.07-.41-.12-.61-.17l-8-26.94A88.41,88.41,0,0,1,95.24,46.33Zm-13,129.09H53.9a87.4,87.4,0,0,1-13.79-43.07l22-16.88a5.77,5.77,0,0,0,.58.22l22.83,7.42a7.83,7.83,0,0,0,.93.22l10.79,31.42c-.15.18-.3.36-.44.55L82.7,174.71A7.8,7.8,0,0,0,82.24,175.42ZM150.69,213a88.16,88.16,0,0,1-45.38,0L95.25,184.6c.13-.16.27-.31.39-.48l14.11-19.42a7.66,7.66,0,0,0,.46-.7h35.58a7.66,7.66,0,0,0,.46.7l14.11,19.42c.12.17.26.32.39.48Zm23.07-37.61a7.8,7.8,0,0,0-.46-.71L159.19,155.3c-.14-.19-.29-.37-.44-.55l10.79-31.42a7.83,7.83,0,0,0,.93-.22l22.83-7.42a5.77,5.77,0,0,0,.58-.22l22,16.88a87.4,87.4,0,0,1-13.79,43.07Z%22/%3E%3C/svg%3E") center / contain no-repeat; }
.ev-own_goal { background-color: var(--loss); }
.ev-yellow { width: 10px; background: var(--yellow); border-radius: 2px; }
.ev-red { width: 10px; background: var(--red); border-radius: 2px; }

/* ---------- archive ---------- */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.archive-grid h4 { font-size: 17px; margin-bottom: 6px; }
.podium { margin: 0; padding-left: 20px; }
.podium li { padding: 2px 0; }
.podium li:first-child { font-weight: 600; }
.podium li::marker { color: var(--muted); }
.links { font-size: 13px; margin: 8px 0 0; }

/* ---------- prose (flat pages) ---------- */
.prose { max-width: 820px; }
.prose p { margin: 0 0 .6em; }
.prose img { max-width: 100%; height: auto; }
.prose table { width: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 20px 0 32px; font-size: 13px; color: var(--ink-2); }
.site-footer p { margin: 0 0 4px; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col > .panel { margin-bottom: 0; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .page-head h1 { font-size: 28px; }
  .panel { padding: 12px; }
  .match { grid-template-columns: 46px 1fr 52px 1fr; gap: 6px; }
  .m-date { display: none; }
  .m-score { min-width: 46px; padding: 3px 4px; }
  .scoreboard { padding: 20px 12px 14px; gap: 8px; }
  .sb-team { font-size: 18px; }
  .sb-score { font-size: 38px; }
  .events { grid-template-columns: 1fr; gap: 8px; }
  .event-list.home li { justify-content: flex-start; flex-direction: row; }
  .stat-strip dd { font-size: 20px; }
}

.note { font-size: 13px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 4px; padding: 6px 10px; margin: 0 0 10px; }

/* ---------- bans ---------- */
aside > .panel:last-child { margin-bottom: 0; }
.penalty { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.penalty.multi { background: var(--err-bg); color: var(--loss); }
.penalty.until { background: var(--warn-bg); color: var(--warn-ink); }
.decisions { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.decisions li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.decisions li:last-child { border-bottom: 0; }
.decisions p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.d-meta { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.d-meta time { color: var(--muted); }
.ban-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px 16px; align-items: start; }
.ban-history details { border: 1px solid var(--line); border-radius: var(--radius); }
.ban-history summary { display: flex; justify-content: space-between; padding: 8px 12px; cursor: pointer; font-weight: 500; list-style: none; }
.ban-history summary::-webkit-details-marker { display: none; }
.ban-history summary::before { content: "▸"; color: var(--muted); margin-right: 8px; }
.ban-history details[open] summary::before { content: "▾"; }
.ban-history summary > span:first-child { flex: 1; }
.ban-history details .table-scroll { padding: 0 8px 4px; }

/* ---------- club crests (uploaded logo, or initials badge) ---------- */
.crest { flex: none; display: inline-grid; place-items: center; border-radius: 50%; vertical-align: middle;
  background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 700; line-height: 1; }
.crest.has-color { background: var(--club); color: #fff; }
img.crest { border-radius: 0; background: none; object-fit: contain; }
.crest-xs { width: 20px; height: 20px; font-size: 9px; }
.crest-sm { width: 28px; height: 28px; font-size: 12px; }
.crest-md { width: 40px; height: 40px; font-size: 15px; }
.crest-lg { width: 56px; height: 56px; font-size: 21px; }
.team-link { display: inline-flex; align-items: center; gap: 8px; }
.m-home, .m-away { display: flex; align-items: center; gap: 7px; min-width: 0; }
.m-home { justify-content: flex-end; }
.club-title { display: flex; align-items: center; gap: 14px; }
.sb-team { display: flex; align-items: center; gap: 12px; }
.sb-team:first-child { justify-content: flex-end; }
.sb-team .crest:not(.has-color):not(img) { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 560px) {
  .sb-team { flex-direction: column; gap: 6px; text-align: center; }
  .sb-team:first-child { flex-direction: column-reverse; }
  .crest-lg { width: 44px; height: 44px; font-size: 17px; }
}

/* ---------- sortable tables ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
th[data-sort] button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
}
th[data-sort] button:hover { color: var(--ink); }
th[data-sort] button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
th[data-sort] button::after { content: "↕"; font-size: 11px; opacity: .35; }
th[aria-sort="ascending"] button, th[aria-sort="descending"] button { color: var(--accent); }
th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; }

/* ---------- search ---------- */
.header-inner { justify-content: space-between; gap: 16px; }
.site-search { position: relative; flex: 0 1 300px; }
.site-search input {
  width: 100%; font: inherit; font-size: 14px; color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 8px 12px;
}
.site-search input::placeholder { color: #9fb2a7; }
.site-search input:focus { outline: none; background: var(--surface); color: var(--ink); border-color: var(--surface); }
.site-search input:focus::placeholder { color: var(--muted); }
.suggest {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow); min-width: 260px;
}
.suggest a { display: flex; flex-direction: column; padding: 7px 12px; color: var(--ink); line-height: 1.3; }
.suggest a:hover, .suggest li[aria-selected="true"] a { background: var(--accent-soft); text-decoration: none; }
.suggest .s-meta { font-size: 12px; color: var(--muted); }
.suggest .s-all { border-top: 1px solid var(--line); margin-top: 4px; }
.suggest .s-all a { font-size: 13px; color: var(--accent); font-weight: 500; }
.search-page-form { display: flex; gap: 8px; max-width: 560px; margin-bottom: 16px; }
.search-page-form input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.search-page-form .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-search { flex: 1 1 100%; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { font-size: 11px; }   /* keep "DPM Gornja Radgona" visible on phones */
}

/* ---------- messages ---------- */
.messages { list-style: none; margin: 0 0 16px; padding: 0; }
.msg { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 6px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--ok-line); }
.msg-error { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.msg-warning { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.inline-form { display: inline; }
.link-button { all: unset; cursor: pointer; color: var(--accent); }
.link-button:hover { text-decoration: underline; }

/* ---------- login & account pages ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 24px 0 8px; }
.auth-panel { width: 100%; max-width: 420px; padding: 28px; }
.auth-panel h1 { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.auth-panel p { margin: 0 0 14px; }
.auth-form, .auth-panel form:not(.inline-form):not(.sso-form) { display: flex; flex-direction: column; gap: 6px; }
.auth-panel label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.auth-panel input[type=text], .auth-panel input[type=email], .auth-panel input[type=password] {
  font: inherit; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.auth-panel input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.auth-panel label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.auth-panel button[type=submit]:not(.btn-sso):not(.link-button) { margin-top: 12px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); padding: 10px 14px; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-sso {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font: inherit; font-weight: 600; padding: 10px 14px; border-radius: var(--radius);
  background: #fff; color: #1f1f1f; border: 1px solid var(--line-strong);
}
.btn-sso:hover { background: #f7f7f5; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0 6px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.form-error, .field-error { color: var(--err-ink); font-size: 13px; }
.form-error { background: var(--err-bg); border: 1px solid var(--err-line); padding: 8px 10px; border-radius: var(--radius); }
.small { font-size: 13px; }
/* allauth's generic pages (password reset, logout, …) */
.auth-panel ul.errorlist { color: var(--err-ink); font-size: 13px; margin: 0; padding-left: 18px; }
.auth-panel button { font: inherit; }

/* ---------- referee ---------- */
.ref-section.attention { border-color: var(--warn-line); box-shadow: inset 3px 0 0 var(--warn-strong); }
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref-item {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.ref-list li:last-child .ref-item { border-bottom: 0; }
.ref-item:hover { background: var(--hover); text-decoration: none; }
.ref-when { display: flex; flex-direction: column; font-size: 14px; }
.ref-when small { color: var(--muted); font-size: 12px; }
.ref-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.ref-teams > span:first-child { text-align: right; }
.ref-teams > span { display: inline-flex; align-items: center; gap: 6px; }
.ref-teams > span:first-child { justify-content: flex-end; }
.ref-score { font-weight: 700; background: var(--chip); border-radius: 4px; padding: 2px 8px; }
.ref-action { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }

.compact-sb { padding: 18px 16px 12px; }
.compact-sb .sb-team { font-size: 20px; }
.compact-sb .sb-score { font-size: 38px; }
.result-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.score-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; margin-bottom: 12px; }
.score-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.score-inputs label:first-child { text-align: right; }
.score-inputs input { font: 700 32px/1 var(--font-head); text-align: center; padding: 10px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.score-sep { font: 700 32px/1 var(--font-head); padding-bottom: 12px; color: var(--muted); }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 8px 0 4px; }
.result-form select, .result-form textarea, .result-form input[type=number]:not(.score-inputs input) {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.result-form textarea { width: 100%; }
.event-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.event-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 64px auto; gap: 8px; align-items: center; }
.event-row select[name$="-player"] { min-width: 0; }
.event-row .field-error { grid-column: 1 / -1; }
.ev-del { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; }
.event-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.form-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.form-actions .btn { padding: 10px 18px; }
.log-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.log-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.log-list li:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .ref-item { grid-template-columns: 1fr; gap: 6px; }
  .ref-action { justify-self: end; }
  .event-row { grid-template-columns: 1fr 1fr 56px; }
  .event-row select[name$="-player"] { grid-column: 1 / -1; }
}

/* ---------- header tools: search + theme toggle ---------- */
.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 1 360px; }
.header-tools .site-search { flex: 1; }
.theme-toggle {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
}
.theme-toggle:hover { background: rgba(255,255,255,.18); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 560px) { .header-tools { flex: 1 1 100%; } }

/* ---------- table zones (per league: medals, promotion green, relegation red) + my team ---------- */
.standings tr[class*="zone-"] td:first-child { font-weight: 700; }
.standings tr.zone-gold td { background: var(--gold-bg); }
.standings tr.zone-silver td { background: var(--silver-bg); }
.standings tr.zone-bronze td { background: var(--bronze-bg); }
.standings tr.zone-up td { background: var(--zone-top-bg); }
.standings tr.zone-down td { background: var(--zone-bottom-bg); }
.standings tr.zone-gold td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.standings tr.zone-silver td:first-child { box-shadow: inset 4px 0 0 var(--silver); }
.standings tr.zone-bronze td:first-child { box-shadow: inset 4px 0 0 var(--bronze); }
.standings tr.zone-up td:first-child { box-shadow: inset 4px 0 0 var(--zone-top); color: var(--zone-top); }
.standings tr.zone-down td:first-child { box-shadow: inset 4px 0 0 var(--zone-bottom); color: var(--zone-bottom); }
/* medal places: position number in normal ink (the bar + tint carry the colour) */
.standings tr.zone-gold td.pos, .standings tr.zone-silver td.pos, .standings tr.zone-bronze td.pos { color: var(--ink); }
.standings tr.mine td { background: var(--mine-bg); }
.standings tr.mine td.team a { font-weight: 700; }
.zone-legend { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.zl-item { display: inline-flex; align-items: center; gap: 5px; }
.zl { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.zl-gold { background: var(--gold); }
.zl-silver { background: var(--silver); }
.zl-bronze { background: var(--bronze); }
.zl-up { background: var(--zone-top); }
.zl-down { background: var(--zone-bottom); }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.segmented a { padding: 6px 14px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.segmented a + a { border-left: 1px solid var(--line-strong); }
.segmented a:hover { background: var(--hover); text-decoration: none; }
.segmented a[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- venues ---------- */
.venue-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.venue-strip > div { display: flex; flex-direction: column; gap: 2px; }
.venue-name { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.btn-directions { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); padding: 9px 16px; white-space: nowrap; }
.btn-directions:hover { filter: brightness(1.08); text-decoration: none; }
.club-venue { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.head-actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.my-team { cursor: pointer; }
.my-team.on { background: var(--mine-bg); border-color: var(--warn-strong); color: var(--ink); font-weight: 600; }

/* ---------- bans on a match ---------- */
.bans-match { border-color: var(--err-line); }
.bans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bans-grid h4 { font-size: 16px; margin-bottom: 6px; }
.ban-names { list-style: none; margin: 0; padding: 0; }
.ban-names li { padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.ban-names li:last-child { border-bottom: 0; }
.ban-warning { color: var(--err-ink); background: var(--err-bg); border: 1px solid var(--err-line); border-radius: var(--radius); padding: 6px 10px; }
@media (max-width: 560px) { .bans-grid { grid-template-columns: 1fr; } }

/* ---------- home: my team, news ---------- */
.hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.my-team-box { border-color: var(--warn-line); }
.my-team-box .section-head { flex-wrap: wrap; }
.my-team-box .section-head h2 { font-size: 26px; }
.my-team-box .section-head h2 a { color: var(--ink); }
.my-team-clear { margin-left: auto; }
.my-team-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr; gap: 16px; }
.my-team-grid .match { border-bottom: 0; padding-left: 0; padding-right: 0; }
.mini-title { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.big-num { font-family: var(--font-head); font-size: 40px; line-height: 1; }
@media (max-width: 820px) { .my-team-grid { grid-template-columns: 1fr; } }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.news-list li:last-child { border-bottom: 0; }
.news-item h1 { font-size: 30px; margin: 4px 0 12px; }
.news-item h2 { font-size: 24px; margin: 2px 0 8px; }
.news-item h2 a { color: var(--ink); }
.news-item.pinned { border-color: var(--warn-line); }
.news-body p { margin: 0 0 .7em; }

/* ---------- player career ---------- */
.career-facts { list-style: none; margin: 0; padding: 0; }
.career-facts li { padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.career-facts li:last-child { border-bottom: 0; }
.career-facts li > .muted:first-child { display: inline-block; min-width: 150px; font-size: 13px; }
.champ { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 3px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.stat-strip { flex-wrap: wrap; }

/* ---------- home: league columns aligned row by row ----------
   Each league column is a subgrid spanning the same rows, so "Zadnji krog", "Lestvica",
   ... start at the same height in both columns, whatever the number of teams/matches. */
.home-grid { row-gap: 16px; }
.home-league > .panel { margin-bottom: 0; }
@supports (grid-template-rows: subgrid) {
  .home-league { display: grid; grid-row: span var(--rows, 5); grid-template-rows: subgrid; }
  .home-league > .panel { display: flex; flex-direction: column; }
  .home-league > .panel > .more { margin-top: auto; padding-top: 10px; }
}
@supports not (grid-template-rows: subgrid) {
  .home-league > * + * { margin-top: 16px; }
}
.home-slot { min-height: 0; }
/* logos (img) and initials badges must not change the table row height */
.team-link { vertical-align: middle; }
.team-link img.crest, .m-home img.crest, .m-away img.crest { display: block; }

/* ---------- phone width: nothing may be wider than the screen ---------- */
.m-home .nm, .m-away .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-home .crest, .m-away .crest { flex: none; }
.home-league, .home-league > *, .two-col > * { min-width: 0; }
@media (max-width: 560px) {
  .header-tools .site-search { flex: 1 1 auto; min-width: 0; }
  .site-search input { min-width: 0; }
}
/* phones: the full table keeps all columns (Z, N, P, Forma) and scrolls sideways;
   position + team stay pinned on the left so you always see which row is which */
@media (max-width: 640px) {
  .standings:not(.compact) { min-width: 560px; }
  .standings:not(.compact) th.pos, .standings:not(.compact) td.pos {
    position: sticky; left: 0; z-index: 1; min-width: 34px; width: 34px; }
  .standings:not(.compact) th.team, .standings:not(.compact) td.team {
    position: sticky; left: 34px; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  /* pinned cells need a solid background (rows scroll underneath them) */
  .standings:not(.compact) th.pos, .standings:not(.compact) th.team { background: var(--surface); }
  .standings:not(.compact) td.pos, .standings:not(.compact) td.team { background: var(--surface); }
  .standings:not(.compact) tr.zone-gold td.pos, .standings:not(.compact) tr.zone-gold td.team { background: var(--gold-bg); }
  .standings:not(.compact) tr.zone-silver td.pos, .standings:not(.compact) tr.zone-silver td.team { background: var(--silver-bg); }
  .standings:not(.compact) tr.zone-bronze td.pos, .standings:not(.compact) tr.zone-bronze td.team { background: var(--bronze-bg); }
  .standings:not(.compact) tr.zone-up td.pos, .standings:not(.compact) tr.zone-up td.team { background: var(--zone-top-bg); }
  .standings:not(.compact) tr.zone-down td.pos, .standings:not(.compact) tr.zone-down td.team { background: var(--zone-bottom-bg); }
  .standings:not(.compact) tr.mine td.pos, .standings:not(.compact) tr.mine td.team { background: var(--mine-bg); }
  /* points pinned to the right edge: visible at once; Z/N/P/goals scroll underneath,
     and at the far right "Forma" comes into view after them */
  .standings:not(.compact) th.pts, .standings:not(.compact) td.pts {
    position: sticky; right: 0; z-index: 1; min-width: 40px; box-shadow: -1px 0 0 var(--line);
    background: var(--surface); }
  .standings:not(.compact) tr.zone-gold td.pts { background: var(--gold-bg); }
  .standings:not(.compact) tr.zone-silver td.pts { background: var(--silver-bg); }
  .standings:not(.compact) tr.zone-bronze td.pts { background: var(--bronze-bg); }
  .standings:not(.compact) tr.zone-up td.pts { background: var(--zone-top-bg); }
  .standings:not(.compact) tr.zone-down td.pts { background: var(--zone-bottom-bg); }
  .standings:not(.compact) tr.mine td.pts { background: var(--mine-bg); }
}

/* ---------- staff: mobile preview ---------- */
.preview-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.preview-devices { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-devices .btn { cursor: pointer; font-size: 13px; padding: 6px 10px; }
.preview-devices .btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.preview-url { display: flex; gap: 6px; flex: 1 1 320px; max-width: 560px; }
.preview-url input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 7px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.preview-url .btn { cursor: pointer; }
.preview-help { margin: 0 0 12px; }
.preview-stage { overflow-x: auto; padding: 8px 0 24px; }
.preview-device {
  margin: 0 auto; max-width: none; border: 10px solid #1d2420; border-radius: 26px; background: #1d2420;
  box-shadow: 0 10px 30px var(--shadow); transition: width .2s;
}
.preview-device iframe { display: block; border: 0; border-radius: 16px; background: var(--bg); height: 820px; max-width: none; }

/* match page: date/time and venue under the score */
.sb-meta p { margin: 0; }
.sb-when { color: #c9d3cd; }
.sb-venue { margin-top: 6px !important; color: #a9b8af; font-size: 14px; }
.sb-venue a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.sb-venue a:hover { text-decoration-color: #fff; }
.sb-venue .sb-directions { color: #7fdca6; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sb-note { font-size: 12px; opacity: .8; }
/* league sub-headings inside ban tables */
.bans .group-row th { background: var(--chip); color: var(--ink); font-family: var(--font-head); font-size: 15px;
  text-transform: none; letter-spacing: 0; font-weight: 600; padding: 6px 8px; }
.bans tbody + tbody .group-row th { border-top: 8px solid var(--surface); }

/* ---------- "Dodaj v koledar" menu ---------- */
.cal-menu { position: relative; }
.cal-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-pop {
  position: absolute; z-index: 15; right: 0; top: calc(100% + 6px); width: 270px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.cal-pop p { margin: 0 0 6px; }
.cal-pop a, .cal-pop .link-button { padding: 7px 8px; border-radius: 4px; color: var(--ink); font-size: 14px; }
.cal-pop a:hover, .cal-pop .link-button:hover { background: var(--hover); text-decoration: none; }
@media (max-width: 560px) {
  /* phones: the menu opens as a full-width panel under the button instead of floating */
  .cal-menu[open] { flex-basis: 100%; }
  .cal-pop { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* ---------- charts (single series, see league/charts.py) ---------- */
:root { --chart: #1b7a45; }   /* validated: chroma, lightness band, >=3:1 on the light surface */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart: #3fa86d; } }
:root[data-theme="dark"] { --chart: #3fa86d; }   /* validated on the dark surface */
.chart { position: relative; margin: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
/* keep text readable: cap the size on wide screens, scroll sideways on narrow phones */
.chart-scroll { overflow-x: auto; }
.chart-scroll .chart { max-width: 760px; min-width: 520px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .end-label, .chart .cap-label { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chart .series-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-dot { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.chart .series-bar { fill: var(--chart); }
.chart .crosshair { stroke: var(--line-strong); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit.on { fill: var(--hover); fill-opacity: .6; }
.chart figcaption { text-align: right; margin-top: 2px; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 4px 14px var(--shadow); padding: 5px 9px; font-size: 13px; display: flex; flex-direction: column;
}
.chart-tip strong { color: var(--ink); }
.chart-tip span { color: var(--muted); font-size: 12px; }
.chart-table { margin-top: 8px; }
.chart-table summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.chart[data-chart="line"] .hit.on { fill: transparent; }   /* line charts: the crosshair marks the round */

/* ---------- match page: scorers/cards per team ---------- */
.events-team { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600;
  margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.events-side.home .events-team { flex-direction: row-reverse; text-align: right; }  /* desktop: mirrors the score */
.events-side.home .events-none { text-align: right; }
.events-none { margin: 4px 0 0; }
@media (max-width: 560px) {
  .events { gap: 18px; }
  .events-side.home .events-team { flex-direction: row; text-align: left; }
  .events-side.home .events-none { text-align: left; }
}

/* header emblem (static/img/emblem.svg) instead of the "LMN" text box */
img.brand-mark { width: 40px; height: 40px; padding: 0; background: none; border-radius: 9px; display: block; flex: none; }
@media (max-width: 560px) { img.brand-mark { width: 36px; height: 36px; } }
