/* Base común (deseño OSIX): tokens, tipografía, cabeceira e botóns.
   As páxinas engaden a súa propia folla (public.css, mesa.css). */

:root {
  --ink: #000;
  --ink-2: #1a1a1a;
  --paper: #fff;
  --surface: #f5f5f4;
  --muted: #5c5c5c;
  --muted-on-ink: #a3a3a3;
  --accent: #888;
  --live: #ff3b30;
  --line: #0000001a;
  --line-strong: #00000038;
  --line-on-ink: #ffffff24;
  --shell: 80rem;
  --header-h: 4.5rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --t-fast: .18s;
  --shadow: rgba(0, 0, 0, .25) 0 8px 24px 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1; }
h1 { font-size: clamp(2.5rem, 9vw, 6.5rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.75rem, 5vw, 3.5rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); letter-spacing: -.04em; }

a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* Cabeceira */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.125rem; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: .25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--muted);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
/* En móbiles estreitos a marca e a navegación non collen nunha liña. */
@media (max-width: 30rem) {
  .brand { font-size: 1rem; }
  .brand span { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0 .5rem; font-size: .875rem; }
}

/* Botóns */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .75rem 1rem;
  border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: opacity var(--t-fast) var(--ease);
}
.btn:disabled { opacity: .35; cursor: default; }
.btn--outline { background: transparent; color: var(--ink); }

/* Etiqueta pequena en maiúsculas (categoría, campo, fase…) */
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* LED «en xogo»: vermello, acende e apaga suavemente */
.live-dot {
  display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 6px var(--live);
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* «ADNicrariense» na cor do club (verde). */
.brand .brand-club { display: inline; color: #15803d; } /* inline: as regras de «.brand span» non o parten de liña */
