* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #192e28;
  background: #f3f5ef;
  --muted: #52665d;
  --line: #dce5de;
  --green: #175f55;
}
body { margin: 0; min-width: 300px; }
button, select { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3c9a81; outline-offset: 3px; }
.shell { width: min(100% - 96px, 1320px); margin-inline: auto; }
.masthead { background: #16342e; color: #f1f7ed; }
.masthead-inner {
  min-height: 68px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}
nav { display: flex; gap: clamp(14px, 2vw, 28px); }
nav a { font-size: .875rem; color: #d9e6df; text-decoration: none; }
nav a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: .19em; padding-inline-start: .19em; }
.demo { justify-self: end; color: #e1ebe4; font-size: .8125rem; white-space: nowrap; }
.demo span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a2d3b1; margin-right: 7px; }
main { padding: 34px 0 56px; }
.page-intro { display: flex; justify-content: space-between; gap: 22px; align-items: flex-end; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 3.5vw, 3.15rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.11; }
.page-intro p { margin-top: 10px; color: var(--muted); }
.filters { display: flex; gap: 12px; }
.filters label { display: grid; gap: 6px; font-size: .875rem; font-weight: 650; }
select {
  appearance: none;
  padding: 9px 35px 9px 12px;
  border: 1px solid #d4dfd7;
  border-radius: 9px;
  color: #243c34;
  background: linear-gradient(45deg, transparent 50%, #52665d 50%) right 16px center / 5px 5px no-repeat,
              linear-gradient(135deg, #52665d 50%, transparent 50%) right 11px center / 5px 5px no-repeat, #fff;
  font-size: .875rem;
}
.cutoff { display: flex; align-items: center; gap: 9px; margin: 24px 0 14px; color: var(--muted); font-size: .875rem; }
.cutoff time { color: #253d33; font-weight: 650; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.kpi, .panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.kpi { padding: 15px 18px 16px; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.kpi-head h2 { font-size: .875rem; font-weight: 650; }
.kpi-head span {
  display: grid; flex: 0 0 32px; height: 32px; place-items: center;
  background: #eef5ef; border-radius: 8px; color: var(--green); font-size: .95rem; font-weight: 700;
}
.kpi.featured { background: #175f55; border-color: #175f55; color: #fff; }
.featured .kpi-head span { background: #31766b; color: #fff; }
.value { font-size: clamp(1.5rem, 2.7vw, 2.45rem); line-height: 1.15; font-weight: 700; letter-spacing: -.055em; margin: 8px 0 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .8125rem; }
.comparison strong { background: #e9f4eb; color: #21604d; padding: 3px 7px; border-radius: 5px; }
.comparison strong[data-tone="bad"] { background: #faeae4; color: #903b23; }
.featured .comparison { color: #e5f2ea; }
.featured .comparison strong { background: #32786a; color: #fff; }
.charts { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(295px, 1fr); gap: 16px; align-items: stretch; }
.panel { padding: 20px; scroll-margin-top: 14px; min-width: 0; }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.panel-header h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; }
.panel-header p { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.metric-switch { display: flex; width: max-content; background: #eef3ee; border-radius: 8px; padding: 3px; gap: 2px; }
.metric-switch button {
  border: 0; border-radius: 6px; background: transparent; color: #475c52;
  padding: 6px 9px; cursor: pointer; font-size: .8125rem; font-weight: 650;
}
.metric-switch button[aria-pressed="true"] { background: #fff; color: #174d42; box-shadow: 0 1px 3px #183a2921; }
.trend-plot { height: 244px; margin-top: 14px; position: relative; }
canvas { display: block; width: 100%; height: 100%; }
.chart-tooltip {
  pointer-events: none; position: absolute; background: #16342e; color: #fff;
  padding: 6px 9px; border-radius: 6px; font-size: .8125rem; white-space: nowrap;
}
.series-details { margin-top: 8px; font-size: .8125rem; color: #3f6054; }
summary { cursor: pointer; width: fit-content; }
.series-details table { margin-top: 8px; max-width: 300px; }
.mix-visual { position: relative; width: 158px; height: 158px; margin: 12px auto 10px; }
.mix-total { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; }
.mix-total strong { font-size: 1.15rem; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.mix-total span { color: var(--muted); font-size: .75rem; }
.legend { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-size: .875rem; }
.legend strong { font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }
.product-panel { margin-top: 18px; }
.table-wrap { overflow: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid #e9efea; white-space: nowrap; padding: 10px; text-align: right; }
th { font-weight: 650; }
th:first-child { text-align: left; }
thead { background: #f2f6f2; color: #425b50; }
tbody tr:last-child > * { border-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  nav a, .metric-switch button { transition: color .18s ease, background-color .18s ease; }
}
@media (max-width: 1100px) {
  .shell { width: calc(100% - 60px); }
  .trend .panel-header { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .shell { width: calc(100% - 36px); }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts { grid-template-columns: 1fr; }
  .mix { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
  .mix .panel-header { grid-column: 1 / -1; }
  .legend { max-width: 350px; }
}
@media (max-width: 620px) {
  .masthead-inner { grid-template-columns: 1fr auto 1fr; row-gap: 0; padding-top: 12px; }
  .brand { grid-column: 2; grid-row: 1; }
  .demo { grid-column: 3; grid-row: 1; font-size: .75rem; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 11px 0 12px; }
  main { padding-top: 24px; }
  .kpis, .filters { gap: 8px; }
  .kpi, .panel { padding: 12px; }
  .kpi-head span { display: none; }
  .kpi-head { min-height: 39px; align-items: start; }
  .kpi-head h2 { font-size: .8125rem; }
  .filters { width: 100%; }
  .filters label { flex: 1; min-width: 0; }
  select { width: 100%; padding-left: 7px; padding-right: 25px; background-position: right 13px center, right 8px center; }
  .trend-plot { height: 205px; }
  .mix { grid-template-columns: 1fr; }
  .legend { max-width: none; }
}
