/* Reset, type and accessibility basics. */
*,
*::before,
*::after { box-sizing: border-box; }

/* Touch: no grey flash over a tapped control (each has its own pressed state), no double-tap-zoom wait on controls,
   and a long press on a button doesn't select its label. Text content stays selectable. */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, a, summary, select, label, [role="button"], [role="tab"], [role="link"] { touch-action: manipulation; }
button, summary, [role="button"], [role="tab"] {
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari (iOS) still needs the prefix for user-select */
  -webkit-user-select: none;
  user-select: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: var(--fs-xl); font-weight: 650; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 15.5px; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--accent-text); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* FL-123: no text under 11px. The browser's relative defaults (smaller, .75em) went to 10.8px in 13px text. */
small { font-size: max(11px, .83em); }
sup, sub { font-size: max(11px, .75em); }

/* every number in the app lines up */
.num, td, th, .stat dd, b { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* projection resting on our defaults, not FPL data (title: "Assumed — no official data") */
.asm { color: var(--muted); font-style: italic; cursor: help; }
.up { color: var(--good); }
.down { color: var(--bad); }

/* small label: sentence case, never shouty */
.lbl { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.mono { font-size: var(--fs-sm); color: var(--muted); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--hi); color: var(--hi-fg); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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