/* The static routes decks' shared figures (rt.js): terminals with marked parts, routing tables, the timeline.
   Loads after ../company.css, before the deck's own stylesheet. */

.term { font-size: 12px; }
.term mark { background: #5c4a12; color: #ffe08a; border-radius: 2px; }
.term.bad { box-shadow: inset 4px 0 0 var(--no); }

/* A routing table, row by row. */
.tbl.rt { font-size: 13px; }
.tbl.rt caption { caption-side: top; text-align: left; font-weight: 700; font-size: 13px; padding: 0 0 4px; color: var(--sv-ink); }
.tbl.rt td { padding: 4px 10px; white-space: nowrap; }
.tbl.rt td.cd { font: 700 13px var(--mono); width: 2.2em; }
.tbl.rt tr.new td { background: #fff4d6; }
.tbl.rt tr.new td.cd::after { content: ' +'; color: #b45309; }
.tbl.rt tr.gone td { background: #fde8e6; color: #9b1c12; }
.tbl.rt tr.gone td code, .tbl.rt tr.gone td:not(.cd) { text-decoration: line-through; }
.tbl.rt tr.hit td { background: #e6f2fa; font-weight: 700; }
.tbl.rt tr.hit td:first-child { box-shadow: inset 4px 0 0 var(--sv-accent); }
.tbl.rt tr.miss td, .tbl.rt tr.dim td { color: #9aa5b1; }
.tbl.rt tr.miss code, .tbl.rt tr.dim code { color: #9aa5b1; }

/* The floating route's timeline. */
.tl { width: 100%; max-width: 820px; }
.tl text { font: 12.5px system-ui, sans-serif; fill: var(--sv-ink); }
.tl .tl-name { font: 600 12.5px var(--mono); }
.tl .tl-bg { fill: #f1f3f5; stroke: #d6dce2; }
.tl .tl-on { fill: #1d8102; }
.tl .float .tl-on { fill: #64748b; }
.tl .link .tl-on { fill: #0a7bbd; }
.tl .tl-ev line { stroke: var(--no); stroke-width: 2; stroke-dasharray: 5 4; }
.tl .tl-ev text { font-weight: 700; fill: var(--no); }
.tl .tl-ev.back line { stroke: var(--ok); } .tl .tl-ev.back text { fill: var(--ok); }
.tl .tl-path { font-weight: 700; fill: var(--sv-accent); }
.tl .tl-arrow { stroke: var(--sv-accent); stroke-width: 2; fill: none; }

@media (max-width: 860px) {
  .tbl { display: block; overflow-x: auto; max-width: 100%; }
}
