:root {
  --wf-accent: #2563eb;
  --wf-ink: #f8fafc;
  --wf-muted: #cbd5e1;
  --wf-surface: #0f172a;
  --wf-line: rgba(255, 255, 255, 0.18);
  --wf-focus: #facc15;
}

body[data-whatchan-sport="darts"], body[data-whatchan-sport="f1"] { --wf-accent: #ef4444; }
body[data-whatchan-sport="snooker"] { --wf-accent: #22c55e; }
body[data-whatchan-sport="boxing"] { --wf-accent: #a855f7; }
body[data-whatchan-sport="rugby"] { --wf-accent: #16a34a; }
body[data-whatchan-sport="tennis"] { --wf-accent: #84cc16; }
body[data-whatchan-sport="cricket"] { --wf-accent: #0ea5e9; }
body[data-whatchan-sport="golf"] { --wf-accent: #10b981; }

.wf-skip-link {
  position: fixed;
  z-index: 10000;
  inset: 0 auto auto 0;
  padding: 0.75rem 1rem;
  color: #111827;
  background: #fff;
  font: 700 1rem/1.2 system-ui, sans-serif;
  transform: translateY(-130%);
}

.wf-skip-link:focus { transform: translateY(0); }

.wf-network,
.wf-family-footer,
.wf-tsg-panel {
  box-sizing: border-box;
  color: var(--wf-ink);
  background: var(--wf-surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wf-network *,
.wf-family-footer *,
.wf-tsg-panel * { box-sizing: border-box; }

.wf-network {
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--wf-line);
  box-shadow: inset 0 -3px 0 var(--wf-accent);
}

.wf-network__inner,
.wf-family-footer__inner,
.wf-tsg-panel {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.wf-network__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wf-network a,
.wf-network summary,
.wf-family-footer a,
.wf-tsg-panel a { color: inherit; }

.wf-network__home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 800;
}

.wf-network__mark,
.wf-family-footer__icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--wf-accent);
  stroke-width: 2;
}

.wf-network details { position: relative; }
.wf-network summary { cursor: pointer; font-weight: 700; }

.wf-network__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(9rem, 1fr));
  gap: 0.25rem;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.75rem;
  background: #111c31;
  border: 1px solid var(--wf-line);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
}

.wf-network__menu a {
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  text-decoration: none;
}

.wf-network__menu a:hover { background: rgba(255, 255, 255, 0.1); }

.wf-tsg-panel {
  margin-block: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--wf-line);
  border-left: 5px solid var(--wf-accent);
  border-radius: 0.8rem;
}

.wf-tsg-panel h2 { margin: 0 0 0.45rem; color: var(--wf-ink); }
.wf-tsg-panel p { margin: 0 0 0.9rem; color: var(--wf-muted); }
.wf-tsg-panel a { font-weight: 800; text-underline-offset: 0.2em; }

.wf-family-footer { border-top: 4px solid var(--wf-accent); }
.wf-family-footer__inner { padding-block: 2rem; }
.wf-family-footer__intro { max-width: 48rem; color: var(--wf-muted); }
.wf-family-footer__links { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin-block: 1rem; }
.wf-family-footer__links a { text-underline-offset: 0.2em; }
.wf-family-footer__meta { color: var(--wf-muted); font-size: 0.875rem; }

.wf-page-intro {
  width: min(100% - 2rem, 1180px);
  margin: 1.5rem auto;
}

.wf-page-intro h1 { margin: 0; }

.wf-directory {
  width: min(100% - 2rem, 900px);
  margin: 2rem auto;
}

.wf-directory__group ul {
  columns: 2 18rem;
  padding-left: 1.2rem;
}

.wf-directory__group li { break-inside: avoid; margin-block: 0.4rem; }

.wc-ss-icon svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--wf-focus) !important;
  outline-offset: 3px !important;
}

:where(table) { max-width: 100%; }
:where(.table-shell, .table-wrap, .table-wrapper, .responsive-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 560px) {
  .wf-network__inner { align-items: flex-start; padding-block: 0.6rem; }
  .wf-network__menu { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
