/* "What your vehicles tell you" on the fleet page: a dark board with live readings (telemetry.js), the stream they arrive in, and the
   sensor families the trackers report. */
.tele { padding: 96px 0; background: radial-gradient(1200px 600px at 80% -10%, #1f3f66 0%, #0f1b2d 55%, #0b1424 100%); color: #e7edf7; }
.tele .section-heading h2, .tele .section-heading p { color: inherit; }
.tele .section-heading p { color: #a9b6cc; }
.tele-board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; margin-top: 14px; }
.tele-panel { border: 1px solid #ffffff14; border-radius: 22px; background: #ffffff08; backdrop-filter: blur(6px); overflow: hidden; }
.tele-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #ffffff12; font-size: 13px; color: #a9b6cc; }
.tele-head strong { color: #fff; font: 600 15px var(--display); letter-spacing: -0.01em; }
.tele-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #7fd1a6; }
.tele-live i { width: 7px; height: 7px; border-radius: 50%; background: #39c57f; box-shadow: 0 0 0 4px #39c57f33; animation: tele-blink 1.6s ease-in-out infinite; }
@keyframes tele-blink { 50% { box-shadow: 0 0 0 7px #39c57f11; } }

/* the stream: readings as they arrive from the trackers */
.tele-stream { position: relative; height: 420px; overflow: hidden; padding: 10px 0; font: 12.5px/1.45 "SF Mono", ui-monospace, Menlo, monospace; }
.tele-stream::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, #0000, #0f1b2d); pointer-events: none; }
.tele-row { display: grid; grid-template-columns: 62px 86px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 20px; border-top: 1px solid #ffffff0a; color: #c9d4e6; animation: tele-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.tele-row time { color: #7f8ea8; font-variant-numeric: tabular-nums; }
.tele-row b { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tele-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tele-row em { font-style: normal; font-variant-numeric: tabular-nums; color: #fff; }
.tele-row em.warn { color: #f5b14b; } .tele-row em.bad { color: #ff7d6b; }
.tele-row .tag { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: #ffffff14; color: #a9b6cc; margin-right: 6px; }
@keyframes tele-in { from { opacity: 0; transform: translateY(-10px); } }

/* the tiles: what the office sees */
.tele-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #ffffff10; }
.tele-tile { position: relative; display: grid; gap: 4px; padding: 18px 20px 16px; background: #0f1b2d; min-width: 0; }
.tele-tile small { color: #a9b6cc; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.tele-tile small .icon { width: 15px; height: 15px; stroke-width: 1.7; color: #8fb3e6; }
.tele-tile strong { font: 600 26px/1.1 var(--display); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.tele-tile strong span { font: 500 12px var(--body); color: #a9b6cc; margin-left: 3px; }
.tele-tile strong.warn { color: #f5b14b; } .tele-tile strong.bad { color: #ff7d6b; }
.tele-tile svg.spark { position: absolute; right: 16px; bottom: 14px; width: 92px; height: 30px; overflow: visible; }
.tele-tile svg.spark path { fill: none; stroke: #8fb3e6; stroke-width: 1.6; stroke-linecap: round; }
.tele-tile svg.spark path.fill { fill: url(#tele-grad); stroke: none; }
.tele-tile .bar { height: 5px; border-radius: 3px; background: #ffffff14; overflow: hidden; margin-top: 6px; }
.tele-tile .bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: #8fb3e6; transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tele-tile .bar i.warn { background: #f5b14b; }
.tele-tile .state { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: #c9d4e6; }
.tele-tile .state i { width: 8px; height: 8px; border-radius: 50%; background: #39c57f; }
.tele-tile .state i.off { background: #7f8ea8; }
.tele-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid #ffffff12; font-size: 12px; color: #a9b6cc; }
.tele-foot b { color: #fff; font-weight: 600; }

/* what the trackers report, as families */
.tele-families { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.tele-family { padding: 18px 18px 16px; border: 1px solid #ffffff14; border-radius: 18px; background: #ffffff08; }
.tele-family .icon { width: 20px; height: 20px; color: #8fb3e6; margin-bottom: 12px; stroke-width: 1.7; }
.tele-family h3 { margin: 0 0 8px; font: 600 15px var(--display); color: #fff; letter-spacing: -0.01em; }
.tele-family p { margin: 0 0 10px; color: #a9b6cc; font-size: 12.5px; line-height: 1.55; }
.tele-family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tele-family li { padding: 3px 8px; border-radius: 999px; background: #ffffff10; color: #dbe4f2; font-size: 11px; font-weight: 600; }
.tele-note { margin: 22px 0 0; color: #a9b6cc; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tele-note b { color: #fff; font-weight: 600; }
.tele-note a { color: #8fb3e6; }

@media (max-width: 1100px) { .tele-board { grid-template-columns: 1fr; } .tele-stream { height: 300px; } .tele-families { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .tele { padding: 64px 0; }
  .tele-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tele-tile { padding: 14px 14px 12px; } .tele-tile strong { font-size: 22px; } .tele-tile svg.spark { width: 64px; right: 12px; bottom: 10px; }
  .tele-row { grid-template-columns: 66px 1fr auto; gap: 8px; padding-inline: 14px; } .tele-row span { display: none; }
  .tele-tile:last-child { grid-column: span 2; }
  .tele-families { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tele-live i, .tele-row { animation: none; } }
