/* Shared chrome for the demo apps. Same circus, smaller tents. */

:root {
  --yellow: #ffff00;
  --lime: #00ff41;
  --magenta: #ff00a8;
  --blue: #0000ee;
  --red: #ff0000;
  --ink: #111111;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); text-transform: uppercase; margin: 0.5rem 0 1rem; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: uppercase; margin: 0 0 0.75rem; }

a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 4px dotted var(--red); outline-offset: 3px; }
button, input, select { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--yellow);
  padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding: 1rem 1.5rem;
  background: var(--yellow); border-bottom: 6px double var(--ink);
}
.brand {
  margin: 0; font-family: Impact, sans-serif; font-size: 1.7rem;
  color: var(--magenta); text-shadow: 2px 2px 0 var(--ink);
}
.brand-sub { margin: 0; font-size: 0.8rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-header nav a { font-weight: bold; }

.btn {
  display: inline-block; padding: 0.7rem 1.3rem; font-weight: bold;
  border: 3px outset #999; background: #eee; color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn:active { border-style: inset; }
.btn-red { background: var(--red); color: #fff; border-color: #7a0000; }
.btn-blue { background: var(--blue); color: #fff; border-color: #00005a; }
.btn-green { background: var(--lime); color: var(--ink); border-color: #00661a; }
.btn-plain { background: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.kicker {
  display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.75rem;
  background: var(--ink); color: var(--yellow);
  font-family: "Courier New", monospace; font-weight: bold;
}
.featured {
  display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.75rem;
  background: var(--magenta); color: #fff;
  font-family: "Courier New", monospace; font-weight: bold; text-transform: uppercase;
}
.lede { max-width: 44rem; font-size: 1.15rem; }

.site-footer {
  padding: 2rem 1.5rem; background: var(--ink); color: #fff;
  font-family: "Courier New", monospace; font-size: 0.9rem;
}
.site-footer a { color: var(--lime); }
.site-footer strong { color: var(--yellow); }

/* Bars shared by the demos */
.bar { height: 1.3rem; border: 3px solid var(--ink); background: #fff; }
.bar-fill { height: 100%; width: 0%; background: var(--lime); transition: width 0.4s ease; }
.stat-labels {
  display: flex; justify-content: space-between;
  font-family: "Courier New", monospace; font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-fill { transition: none; }
}
