/* site.css: the design of this site. It has no layer, so each rule here beats each rule of kit.css.
   The tokens and the platform section are those of axon4-ui (commit f5b0ccd). The last section is this dashboard's. */

/* 1. Token values: the kit's ink and paper palette. ------------------------------------------------------ */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --text: #11131a;
  --muted: #5b5e69;
  --border: #e4e1d8;
  --accent: #3b5bfd;
  --accent-text: #ffffff;
  --accent-soft: #e6eaff;
  --focus: #3b5bfd;
  --radius: 8px;
  --pad: var(--space-6);
  --ink: #0d1017;
  --ink-2: #161a24;
  --ink-text: #e9ebf2;
  --ink-muted: #9aa0b2;
  --code-c: #3b5bfd;
  --auth-c: #e0892b;
  --data-c: #17a37a;
  --display: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --surface: #141823;
    --surface-2: #1b2030;
    --text: #e9ebf2;
    --muted: #9aa0b2;
    --border: #262c3d;
    --accent: #8ea2ff;
    --accent-text: #0d1017;
    --accent-soft: #1d2442;
    --focus: #8ea2ff;
    --ink: #07090e;
    --ink-2: #10131c;
    --code-c: #8ea2ff;
    --auth-c: #f2a65a;
    --data-c: #4fd1a5;
  }
}

/* 7. The platform: the kit gives the layout (.app-layout); this site gives the side bar its ink. ----------- */
.platform .app-side { background: var(--ink); color: var(--ink-text); border-right-color: transparent; }
.platform .app-side .brand { color: var(--ink-text); }
.platform .side-label { color: var(--ink-muted); }
.platform .side-nav a { color: var(--ink-muted); }
.platform .side-nav a:hover { background: rgb(255 255 255 / 0.07); color: var(--ink-text); }
.platform .side-nav a[aria-current="page"] { background: rgb(142 162 255 / 0.16); color: #c9d1ff; }
.platform .app-top { background: var(--surface); }
.platform .app-top h1 { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; }
.visually-hidden { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.platform .app-main h2 { font-size: var(--step-1); }
.two-col { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-weight: 600; }
.platform .list > li { padding: var(--space-4); }
/* A console is dense: a lighter box padding, and a stat grid of four on a desktop and two on a phone. */
.platform { --pad: var(--space-5); }
.platform .app-main .grid { grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr)); gap: var(--space-3); }
.platform .stat .stat-value { font-size: var(--step-2); }

/* 8. The dashboard: a chart fills its card; the side bar foot holds a note on the data. ---------------------- */
.chart img { display: block; width: 100%; height: auto; background: var(--surface); }
.side-note { color: var(--ink-muted); font-size: var(--step--1); padding-inline: var(--space-3); }
.caption-cell { color: var(--muted); max-width: 28rem; }

/* 9. The timeline: one range at a time. A link to #weeks or #months shows that range; with no target, days show.
   Each range holds its own buttons, so they stay in view when the page moves to the range. */
.ranges-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ranges-nav a[aria-current] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.range { display: none; }
.range:target, .ranges:not(:has(.range:target)) #days { display: block; }
.range h2 { margin-top: var(--space-4); }
