/* Matchday public site: one stylesheet for every page, no external fonts or scripts. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #5b6270;
  --border: #e2e3e0;
  --accent: #1f5f8b;
  --accent-text: #ffffff;
  --note-bg: #eef4f9;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --surface: #1c2026;
    --text: #e8eaed;
    --muted: #a3a9b4;
    --border: #2c323a;
    --accent: #6aaee0;
    --accent-text: #0d1b26;
    --note-bg: #1a2733;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 16px; font-size: 0.95rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lang { border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }

/* Content */
main { padding: 32px 0 48px; }
h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
li { margin-bottom: 4px; }
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 0.95rem; }

.hero { display: flex; gap: 24px; align-items: center; margin-bottom: 8px; }
.hero img { width: 96px; height: 96px; border-radius: 20px; flex: none; }
@media (max-width: 520px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero img { width: 72px; height: 72px; }
  h1 { font-size: 1.6rem; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-text);
}
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 16px 0; }
.card h2 { margin-top: 0; }
.note { background: var(--note-bg); border-radius: 10px; padding: 14px 16px; margin: 16px 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin: 0; }
.features strong { display: block; margin-bottom: 2px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: var(--note-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

.legal h2 { font-size: 1.1rem; margin-top: 28px; }
.legal ol[type="a"] { padding-left: 1.4em; }
.legal .lettered { list-style: none; padding-left: 0; } /* Greek letters (α, β, …) are written in the text */

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
