/* base.css — shared across all 38 EV3 pages */

/* Design tokens */
:root {
  --ev3-bg: #f0f0f0;
  --ev3-card-bg: #fff;
  --ev3-ink: #000;
  --ev3-link: #06f;
  --ev3-accent: #8D3832;
  --ev3-muted: #999;
  --ev3-border: #000;
  --ev3-font-mono: "Courier New", Courier, monospace;
}

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

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection { background: #000; color: #fff; }

/* Focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #06f;
  outline-offset: 2px;
}

a {
  text-underline-offset: 0.12em;
}

/* Skip-to-content link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 100; padding: 8px 16px; background: #000; color: #fff; text-decoration: none; font-family: "Courier New", Courier, monospace; font-size: 0.875rem; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; overflow: visible; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legal footer */
.legal-footer { width: 100%; box-sizing: border-box; text-align: center; padding: 10px 20px; font-size: .75rem; font-family: "Courier New", Courier, monospace; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print stylesheet */
@media print {
  .ev-logo, .logo, .back-button, nav, .skip-link { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: none; }
  img { max-width: 100% !important; }
}
