/* SKY Indoor Adult League
   Layout: a dark striped "scoreboard" band (header + page heads, taken from the SKY badge's stripes)
   over a cool, quiet board where tables and fixtures do the talking. */
:root {
  --ink: #0f1820;          /* masthead band, same in both themes */
  --ink-2: #16232e;
  --ink-fg: #e9f1f7;
  --ink-muted: #9bb0c0;
  --ink-line: rgba(233, 241, 247, 0.14);
  --sky: #4ea2da;          /* SKY badge blue */
  --sky-strong: #1f6a9c;   /* blue for text on light surfaces */
  --bg: #edf2f6;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --fg: #0f1a23;
  --muted: #566775;
  --line: #d6e0e8;
  --win: #1f8f55;
  --draw: #8693a0;
  --loss: #cc4339;
  --focus: #4ea2da;

  --font-display: "Saira", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1016; --surface: #111a22; --surface-2: #16212b; --fg: #e3ebf1; --muted: #8fa1b0;
    --line: #233140; --sky-strong: #7cc0ec; --win: #3cb97a; --draw: #7d8b98; --loss: #ec6a5f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1016; --surface: #111a22; --surface-2: #16212b; --fg: #e3ebf1; --muted: #8fa1b0;
  --line: #233140; --sky-strong: #7cc0ec; --win: #3cb97a; --draw: #7d8b98; --loss: #ec6a5f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
img { max-width: 100%; height: auto; }
a { color: var(--sky-strong); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink); color: var(--ink-fg); border-bottom: 1px solid var(--ink-line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: auto; display: block; }
.brand-text { display: grid; font-family: var(--font-display); font-stretch: 115%; font-weight: 700; line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.86rem; }
.brand-text span:last-child { color: var(--sky); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--ink-muted); text-decoration: none; padding: 8px 14px; border-radius: 6px;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--ink-fg); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--ink-fg); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.nav-toggle {
  display: none; background: transparent; color: var(--ink-fg); border: 1px solid var(--ink-line);
  border-radius: 6px; padding: 7px 12px; font: 600 0.78rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: 6px var(--gutter-r) 12px var(--gutter-l);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--ink-line); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sky); padding-left: 12px; }
}

/* ---------- dark bands (hero, page heads) ---------- */
.band {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(78, 162, 218, 0) 0 34px, rgba(78, 162, 218, 0.07) 34px 68px),
    radial-gradient(120% 90% at 85% 0%, rgba(78, 162, 218, 0.22), rgba(78, 162, 218, 0) 60%);
  color: var(--ink-fg);
}
.band .label { color: var(--ink-muted); }
.stars { display: inline-flex; gap: 6px; color: var(--sky); }
.stars svg { width: 14px; height: 14px; display: block; }

.hero { padding-block: clamp(36px, 6vw, 72px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.7rem, 1.2rem + 6vw, 5.6rem); font-weight: 800; font-style: italic; font-stretch: 78%;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92;
}
.hero h1 .sky { color: var(--sky); }
.hero-intro { margin-top: 20px; max-width: 34em; color: var(--ink-muted); font-size: 1.08rem; }
.hero-intro strong { color: var(--ink-fg); font-weight: 600; }
.venue { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--ink-fg); font-weight: 500; }
.venue svg { width: 20px; height: 20px; flex: none; color: var(--sky); margin-top: 1px; }
.venue > span { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.venue a { color: var(--sky); font-weight: 600; text-decoration: none; white-space: nowrap; }
.venue a:hover { text-decoration: underline; }
.page-head .venue { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px;
  font: 700 0.82rem/1 var(--font-display); font-stretch: 108%; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--sky); color: #08131c; }
.btn-primary:hover { background: #6bb4e4; }
.btn-ghost { color: var(--ink-fg); border-color: var(--ink-line); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--ink-muted); }

.next-card {
  background: rgba(10, 18, 25, 0.72); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 20px; backdrop-filter: blur(2px);
}
.next-card h2 { font-size: 1.5rem; font-stretch: 85%; font-style: italic; font-weight: 800; text-transform: uppercase; margin: 6px 0 14px; }
.next-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--ink-line); }
.next-day .date-block { text-align: center; border: 1px solid var(--ink-line); border-radius: 8px; padding: 6px 0; }
.date-block .dow { display: block; font: 600 0.68rem/1.2 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.date-block .dnum { display: block; font: 800 1.6rem/1 var(--font-display); font-stretch: 80%; }
.date-block .mon { display: block; font: 600 0.68rem/1.2 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.next-day strong { display: block; font-weight: 600; }
.next-day span.meta { color: var(--ink-muted); font-size: 0.92rem; }
.next-card .more { display: inline-block; margin-top: 10px; color: var(--sky); font-weight: 600; text-decoration: none; }
.next-card .more:hover { text-decoration: underline; }

/* season ribbon */
.season-ribbon { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--ink-line); }
.ribbon-scroll { overflow-x: auto; scrollbar-width: thin; }
.ribbon { display: grid; grid-template-columns: repeat(8, minmax(112px, 1fr)); min-width: 900px; }
.ribbon li { list-style: none; padding: 14px 12px 18px; border-left: 1px solid var(--ink-line); position: relative; }
.ribbon li:first-child { border-left: 0; padding-left: 0; }
.ribbon { padding: 0; margin: 0; }
.ribbon .wk { font: 700 0.7rem/1.2 var(--font-display); font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.ribbon .dates { display: block; margin-top: 4px; font: 700 1.05rem/1.2 var(--font-display); font-stretch: 90%; }
.ribbon .state { display: inline-block; margin-top: 6px; font-size: 0.8rem; color: var(--ink-muted); }
.ribbon li.done .state::before { content: "✓ "; color: var(--sky); }
.ribbon li.next { background: linear-gradient(180deg, rgba(78, 162, 218, 0.18), rgba(78, 162, 218, 0)); }
.ribbon li.next::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--sky); }
.ribbon li.next .state { color: var(--ink-fg); font-weight: 600; }
.ribbon li.post .wk { color: var(--sky); }

/* page head band */
.page-head { padding-block: clamp(28px, 5vw, 52px); }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.8rem); font-weight: 800; font-style: italic; font-stretch: 80%; text-transform: uppercase; line-height: 0.95; margin-top: 10px; }
.page-head p { margin-top: 12px; color: var(--ink-muted); max-width: 46em; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding-block: clamp(36px, 5vw, 64px); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; font-stretch: 82%; font-style: italic; text-transform: uppercase; }
.section-head .label { display: block; margin-bottom: 6px; }

/* live status */
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.88rem; color: var(--muted); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--draw); flex: none; }
.status.live .dot { background: var(--win); box-shadow: 0 0 0 3px color-mix(in srgb, var(--win) 25%, transparent); }
.status.loading .dot { background: var(--sky); animation: pulse 1.2s ease-in-out infinite; }
.status.stale .dot { background: #d99a1e; }
.status button {
  background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 6px; padding: 3px 9px;
  font: 600 0.74rem/1.4 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.status button:hover { border-color: var(--muted); }
.band .status { color: var(--ink-muted); }
.band .status button { color: var(--ink-fg); border-color: var(--ink-line); }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .status.loading .dot { animation: none; } }

/* ---------- division cards ---------- */
.div-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.div-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.div-card::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 86px; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--sky) 12%, transparent) 9px 18px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.div-card h3 { font-size: 1.7rem; font-weight: 800; font-style: italic; font-stretch: 82%; text-transform: uppercase; }
.div-card .night { color: var(--sky-strong); font-weight: 600; font-size: 0.92rem; }
.div-card p { color: var(--muted); font-size: 0.96rem; max-width: 30em; position: relative; z-index: 1; }
.div-stats { display: flex; gap: 22px; }
.div-stats div { display: grid; }
.div-stats b { font: 800 1.6rem/1 var(--font-display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.div-stats span { font-size: 0.8rem; color: var(--muted); }
.leader { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; position: relative; z-index: 1; }
.leader .who { min-width: 0; }
.leader .who b { display: block; font-weight: 600; }
.leader .who span { font-size: 0.85rem; color: var(--muted); }
.card-links { display: flex; gap: 16px; font-weight: 600; font-size: 0.92rem; position: relative; z-index: 1; }
.card-links a { text-decoration: none; }
.card-links a:hover { text-decoration: underline; }

/* ---------- crests ---------- */
.crest { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.crest img, .crest svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.crest-sm { width: 24px; height: 29px; }
.crest-md { width: 34px; height: 40px; }
.crest-lg { width: 60px; height: 72px; }

/* ---------- standings ---------- */
.tables { display: grid; gap: 22px; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 18px 12px; }
.table-card h3 { font-size: 1.45rem; font-weight: 800; font-style: italic; font-stretch: 82%; text-transform: uppercase; }
.table-card header span { color: var(--muted); font-size: 0.9rem; }
.table-scroll { overflow-x: auto; }
table.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.standings th {
  font: 600 0.7rem/1.2 var(--font-display); font-stretch: 110%; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 9px 6px; background: var(--surface-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.standings th.team-col { text-align: left; }
.standings td { padding: 10px 8px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); white-space: nowrap; min-width: 34px; }
.standings abbr { text-decoration: none; cursor: help; }
.standings tr:last-child td { border-bottom: 0; }
.standings tbody tr:hover td { background: var(--surface-2); }
.standings td.pos { width: 46px; }
.pos-chip {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  font: 700 0.9rem/1 var(--font-display); color: var(--muted);
}
tr.first .pos-chip { background: var(--sky); color: #08131c; }
.standings td.team-cell { text-align: left; width: 100%; }
.team-cell a { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; vertical-align: middle; }
.team-cell a:hover span { text-decoration: underline; }
.standings td.pts { font: 800 1.12rem/1 var(--font-display); font-stretch: 90%; }
.standings th.pts-col { color: var(--fg); }
.gd-pos { color: var(--win); }
.gd-neg { color: var(--loss); }
.form { display: inline-flex; gap: 3px; }
.form i {
  font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px;
  font: 700 0.68rem/1 var(--font-display); color: #fff;
}
.form .W { background: var(--win); } .form .D { background: var(--draw); } .form .L { background: var(--loss); }
.form .none { color: var(--muted); font-size: 0.85rem; }
.rules { margin-top: 14px; color: var(--muted); font-size: 0.88rem; max-width: 60em; }
@media (max-width: 640px) {
  .standings .opt { display: none; }
  table.standings { min-width: 0; }
  .standings td, .standings th { padding-left: 4px; padding-right: 4px; }
}

/* ---------- match rows ---------- */
.match-list { list-style: none; margin: 0; padding: 0; }
.match {
  display: grid; grid-template-columns: 76px 112px minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line);
}
.match:first-child { border-top: 0; }
.match .time { font: 700 0.95rem/1.2 var(--font-display); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.match .meta { display: grid; gap: 2px; font-size: 0.8rem; color: var(--muted); line-height: 1.25; }
.div-tag {
  justify-self: start; font: 600 0.66rem/1 var(--font-display); font-stretch: 110%; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 4px; background: color-mix(in srgb, var(--sky) 16%, transparent); color: var(--sky-strong);
}
.side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side a { color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a:hover { text-decoration: underline; }
.side.home { justify-content: flex-end; text-align: right; }
.side.win a { font-weight: 700; }
.side.loss a { color: var(--muted); }
.score {
  justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px;
  font: 800 1.08rem/1 var(--font-display); font-stretch: 88%; font-variant-numeric: tabular-nums;
  padding: 7px 8px; border-radius: 6px; background: var(--ink); color: var(--ink-fg);
}
.score.upcoming { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; }
.match.compact { grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr); padding: 9px 14px; }
@media (max-width: 720px) {
  .match { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); row-gap: 6px; padding: 12px 14px; }
  .match .time, .match .meta { grid-row: 1; }
  .match .time { grid-column: 1; }
  .match .meta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; align-items: center; }
  .match .side.home { grid-column: 1; grid-row: 2; }
  .match .score { grid-column: 2; grid-row: 2; }
  .match .side.away { grid-column: 3; grid-row: 2; }
  .match.compact .side.home, .match.compact .score, .match.compact .side.away { grid-row: 1; }
  .side a { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
}

/* ---------- results / upcoming on home ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel > h3 { padding: 16px 16px 4px; font-size: 1.35rem; font-weight: 800; font-style: italic; font-stretch: 82%; text-transform: uppercase; }
.day-label { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; color: var(--muted); font-size: 0.86rem; border-top: 1px solid var(--line); }
.panel > h3 + .day-label { border-top: 0; }
.day-label b { color: var(--fg); font-weight: 600; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 600; }
.panel-foot a { text-decoration: none; }
.panel-foot a:hover { text-decoration: underline; }

/* ---------- schedule page ---------- */
.filters {
  position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filters .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button {
  background: none; border: 0; border-radius: 6px; padding: 7px 11px; color: var(--muted); cursor: pointer;
  font: 600 0.78rem/1 var(--font-display); font-stretch: 105%; letter-spacing: 0.08em; text-transform: uppercase;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--fg); }
.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 34px 9px 12px; font: 500 0.92rem var(--font-body); max-width: 100%;
}
.select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filters .count { margin-left: auto; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 720px) { .filters { position: static; } .filters .count { margin-left: 0; } }

.matchdays { display: grid; gap: 18px; }
.section.tight { padding-top: 24px; }
.matchday { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.md-rail { background: var(--surface-2); border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.md-rail .wk { font: 700 0.72rem/1 var(--font-display); font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.md-rail .big { font: 800 2.6rem/0.9 var(--font-display); font-stretch: 78%; font-style: italic; }
.md-rail .when { font-weight: 600; }
.md-rail .divs { display: grid; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.md-rail .divs span { white-space: nowrap; }
.md-rail .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font: 600 0.66rem/1 var(--font-display); font-stretch: 108%; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.tag.next { background: var(--sky); border-color: var(--sky); color: #08131c; }
.tag.dh { border-color: color-mix(in srgb, var(--sky) 50%, var(--line)); color: var(--sky-strong); }
.matchday.is-next { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); }
.matchday.planned { border-style: dashed; }
.matchday.planned .md-rail { background: transparent; border-right-style: dashed; }
.matchday.planned .md-rail .big { color: var(--muted); }
.matchday.planned .match .time { color: var(--muted); }
.md-body { min-width: 0; }
.md-notes { padding: 10px 16px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; display: grid; gap: 2px; }
.md-notes b { color: var(--fg); font-weight: 600; }
.md-empty { padding: 22px 16px; color: var(--muted); }
.md-empty strong { display: block; color: var(--fg); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; font-style: italic; text-transform: uppercase; font-stretch: 90%; }
@media (max-width: 720px) {
  .matchday { grid-template-columns: minmax(0, 1fr); }
  .md-rail { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .md-rail .big { font-size: 1.9rem; }
  .md-rail .divs { display: flex; gap: 0 8px; }
  .matchday.planned .md-rail { border-bottom-style: dashed; }
  .md-rail .tags { margin-top: 0; }
}
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- teams page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.jump a { color: var(--ink-fg); text-decoration: none; border: 1px solid var(--ink-line); border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; }
.jump a:hover { border-color: var(--sky); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: start; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 90px; }
.team-card.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--sky); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .team-card.flash { animation: none; box-shadow: 0 0 0 2px var(--sky); } }
.team-top { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 18px 14px; }
.team-top h3 { font-size: 1.45rem; font-weight: 800; font-style: italic; font-stretch: 82%; text-transform: uppercase; }
.team-top .standing { margin-top: 6px; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.team-top .standing b { color: var(--fg); }
.team-block { padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.team-block .label { display: block; margin-bottom: 8px; }
.roster { columns: 2; column-gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; }
.roster li { break-inside: avoid; padding: 2px 0; }
.muted { color: var(--muted); }
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.fixtures li { display: grid; grid-template-columns: 26px 80px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.fixtures .res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; font: 700 0.7rem/1 var(--font-display); color: #fff; }
.fixtures .res.W { background: var(--win); } .fixtures .res.D { background: var(--draw); } .fixtures .res.L { background: var(--loss); }
.fixtures .res.up { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.fixtures .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.fixtures li.planned .sc, .fixtures li.planned .d { color: var(--muted); }
.fixtures .opp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixtures a, .section-head a { text-decoration: none; font-weight: 600; }
.fixtures a:hover, .section-head a:hover { text-decoration: underline; }
.fixtures .sc { font: 700 0.95rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.team-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.team-foot a { text-decoration: none; }
.team-foot a:hover { text-decoration: underline; }
.div-section + .div-section { margin-top: 44px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.contact-card h2 { font-size: 1.6rem; font-weight: 800; font-style: italic; font-stretch: 82%; text-transform: uppercase; margin: 6px 0 14px; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email {
  font: 700 clamp(1.1rem, 0.8rem + 1.6vw, 1.7rem)/1.2 var(--font-display); font-stretch: 92%;
  color: var(--fg); word-break: break-all; user-select: all;
}
.btn-line { color: var(--fg); border-color: var(--line); background: var(--surface-2); }
.btn-line:hover { border-color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.topics { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.topics li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.topics li svg { width: 22px; height: 22px; color: var(--sky-strong); margin-top: 2px; }
.topics b { display: block; font-weight: 600; }
.topics span { color: var(--muted); font-size: 0.95rem; }
.club { display: flex; gap: 16px; align-items: center; }
.club img { width: 64px; }
.venue-card { font-style: normal; display: grid; gap: 2px; margin: 18px 0 12px; font-size: 1.05rem; user-select: all; }
.venue-big { font: 700 clamp(1.3rem, 1rem + 1.4vw, 1.8rem)/1.15 var(--font-display); font-stretch: 92%; }
.copied { color: var(--win); font-size: 0.88rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-muted); margin-top: clamp(40px, 6vw, 72px); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; padding-block: 28px; font-size: 0.9rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink-fg); }
.footer-brand img { width: 30px; }
.site-footer a { color: var(--ink-fg); }
.footer-note { max-width: 36em; }
.footer-address { font-style: normal; color: var(--ink-fg); line-height: 1.5; }

/* ---------- loading / error ---------- */
.skeleton { height: 220px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); border: 1px solid var(--line); }
.error-box { padding: 22px; border: 1px solid var(--loss); border-radius: var(--radius); background: var(--surface); }
.error-box b { display: block; margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .div-grid { grid-template-columns: minmax(0, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .brand-text { font-size: 0.78rem; }
}
@media (max-width: 340px) {
  .roster { columns: 1; }
}
