:root {
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --ink: #1D2D3E;
  --muted: #556B82;
  --line: #D9DEE4;
  --blue: #0062D6;
  --blue-deep: #004BB0;
  --teal: #037C77;
  --good: #256F3A;
  --bad: #AA0808;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 5;
  font-weight: 700;
}
.skip:focus { left: 0; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.1rem 0.4rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.mark { width: 46px; height: 46px; flex: none; }
h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  font-weight: 700;
}
.powered { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }

.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.years { display: flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.years button {
  border: 0;
  background: #fff;
  color: var(--blue-deep);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.years button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.years button:focus-visible, .home:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.home {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  background: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.home svg { width: 15px; height: 15px; fill: currentColor; }
.home:hover { text-decoration: none; background: #E8F1FC; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0.4rem 1.1rem 2rem; }
.year-note { margin: 0.2rem 0 0.7rem; color: var(--muted); font-size: 0.88rem; }

.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.7rem 0.65rem;
  min-width: 0;
}
.kpi-label { margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; }
.kpi-value { margin: 0.2rem 0 0.15rem; font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.1; }
.kpi-delta { margin: 0; font-size: 0.75rem; font-weight: 650; line-height: 1.35; }
.kpi-delta.bad { color: var(--bad); }
.kpi-delta.good { color: var(--good); }
.kpi-delta.flat { color: var(--muted); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem 0.4rem;
  margin-bottom: 0.85rem;
}
.panel h2 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.caption { margin: 0 0 0.2rem; color: var(--muted); font-size: 0.8rem; }
.chart { width: 100%; min-height: 280px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.85rem; }
.split .panel { margin-bottom: 0.85rem; }

.how p { margin: 0 0 0.75rem; color: var(--ink); font-size: 0.95rem; }
.how { padding-bottom: 0.9rem; }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.1rem 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot a { color: var(--blue-deep); font-weight: 700; }

@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 1.2rem; }
  .powered { font-size: 0.75rem; }
}
