/* tvt site. Dark palette taken from the Grafana dashboard look:
   near-black canvas, panel greys, and the blue / purple / orange stat
   colors with green and yellow accents. No external fonts or scripts. */
:root {
  --bg: #111217;
  --panel: #181b1f;
  --panel-2: #22252b;
  --border: #2c3235;
  --text: #ccccdc;
  --muted: #9a9aab;
  --heading: #ffffff;
  --blue: #5794f2;
  --blue-deep: #3d71d9;
  --purple: #a352cc;
  --purple-deep: #8f3bb8;
  --orange: #ff9830;
  --orange-deep: #e0752d;
  --green: #73bf69;
  --yellow: #fade2a;
  --red: #f2495c;
  --link: #5794f2;
  --radius: 8px;
  --max: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #8ab8ff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
code { background: var(--panel-2); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; }
h2 { font-size: 1.9rem; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 5; background: rgba(17, 18, 23, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; height: 60px; gap: 20px; }
header.site nav { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--heading); }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 64px; }
.eyebrow { display: inline-block; font-size: 0.85rem; color: var(--green); border: 1px solid #2f4a2c; background: #16221a; padding: 3px 10px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0 0 18px; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; color: var(--text); max-width: 60ch; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; }
.btn.primary:hover { color: #fff; filter: brightness(1.08); }
.btn.ghost { border-color: var(--border); color: var(--heading); background: var(--panel); }
.btn.ghost:hover { border-color: var(--muted); color: var(--heading); }

/* Stat-style tiles, as on the dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 48px; }
.tile { border-radius: var(--radius); padding: 18px 20px; color: #fff; min-height: 120px; }
.tile .label { font-size: 0.95rem; opacity: 0.92; }
.tile .value { font-size: 1.7rem; font-weight: 700; margin-top: 6px; line-height: 1.2; }
.tile.blue { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); }
.tile.purple { background: linear-gradient(135deg, var(--purple-deep), var(--purple)); }
.tile.orange { background: linear-gradient(135deg, var(--orange-deep), var(--orange)); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section p.intro { max-width: 68ch; color: var(--text); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--blue); }
.card.c-purple { border-top-color: var(--purple); }
.card.c-orange { border-top-color: var(--orange); }
.card.c-green { border-top-color: var(--green); }
.card.c-yellow { border-top-color: var(--yellow); }
.card p { margin: 0; color: var(--text); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 16px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--blue); color: var(--link); display: grid; place-items: center; font-weight: 700; }
.steps strong { color: var(--heading); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; padding: 0; list-style: none; }
.pill-row li { background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.92rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.note { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact .card a { font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  nav ul { gap: 14px; }
  nav li.hide-sm { display: none; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
}

/* Light theme (Grafana's light look), chosen in the header or by the system
   when the switcher is on Auto. Dark stays the default. */
html[data-theme="light"] {
  --bg: #f4f5f5; --panel: #ffffff; --panel-2: #eef0f2; --border: #d9dce0;
  --text: #24292e; --muted: #5b6066; --heading: #111217; --link: #1f62e0;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    --bg: #f4f5f5; --panel: #ffffff; --panel-2: #eef0f2; --border: #d9dce0;
    --text: #24292e; --muted: #5b6066; --heading: #111217; --link: #1f62e0;
    color-scheme: light;
  }
}
html[data-theme="light"] header.site { background: rgba(244, 245, 245, 0.92); }
@media (prefers-color-scheme: light) { html[data-theme="auto"] header.site { background: rgba(244, 245, 245, 0.92); } }
html[data-theme="light"] .eyebrow { color: #1a7f37; background: #e9f6ec; border-color: #b7dfc0; }
@media (prefers-color-scheme: light) { html[data-theme="auto"] .eyebrow { color: #1a7f37; background: #e9f6ec; border-color: #b7dfc0; } }

/* Theme switcher */
.theme { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.theme button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.82rem; padding: 4px 10px; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--panel-2); color: var(--heading); }
.head-right { display: flex; align-items: center; gap: 18px; }

/* Screenshots and terminal output */
figure.shot { margin: 40px 0 0; }
figure.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
figure.shot figcaption, .views figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.views { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.views figure { margin: 0; display: flex; flex-direction: column; }
.views figure > img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.views h3 { margin-bottom: 10px; }
pre.term { margin: 0; font-size: 0.78rem; flex: 1; }
pre.term .ok { color: var(--green); }
pre.term .dim { color: var(--muted); }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 24px; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.checklist.next li::before { background: none; border: 2px solid var(--orange); width: 8px; height: 8px; }

/* Closing call to action */
.cta { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.cta p { margin: 0 auto 20px; max-width: 60ch; }
.cta .actions { justify-content: center; }

/* Header logo: the dark or light lockup, following the theme */
.brand img { width: auto; height: 32px; }
.brand .logo-light { display: none; }
html[data-theme="light"] .brand .logo-dark { display: none; }
html[data-theme="light"] .brand .logo-light { display: block; }
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .brand .logo-dark { display: none; }
  html[data-theme="auto"] .brand .logo-light { display: block; }
}
