
@font-face {
  font-family: "Noto Sans";
  src: url(../fonts/NotoSans-Regular.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url(../fonts/NotoSans-Bold.ttf) format("truetype");
  font-display: swap;
  font-weight: bold;
}

:root {
  --ink: #1d2733;
  --muted: #5b6672;
  --line: #dee2e6;
  --accent: #1c84cb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 14px/1.5 "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

.elstat {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  position: relative;
}

.controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb6bf;
  border-radius: 4px;
  padding: 5px 10px;
  min-width: 90px;
}

select:hover {
  border-color: var(--accent);
}

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

#chart svg {
  display: block;
  width: 100%;
  height: auto;
}

#chart .err {
  padding: 24px;
  color: #a12622;
}

#tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 5px 9px;
  background: #fff;
  border: 1px solid #888;
  border-radius: 3px;
  font-size: 13px;
  white-space: nowrap;
}

.bar {
  cursor: default;
}

.bar:hover {
  opacity: .85;
}

.note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

.leg {
  cursor: pointer;
}

.leg:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
