/* Keith Rockhill — personal site
   Tokens
   -----------------------------------------------------------
   navy      #10192B   sidebar / dark surfaces
   navy-lt   #1C2942   hover / active surfaces on navy
   paper     #FAF9F6   main content background
   ink       #1C2126   primary text
   muted     #5B6472   secondary text
   line      #E4E0D8   hairline borders on paper
   line-dk   #2A3650   hairline borders on navy
   accent    #C1793F   signal amber — RF / status accent
   accent-lt #E7B98A   amber tint for subtle fills
*/

:root {
  --navy: #10192b;
  --navy-lt: #1c2942;
  --paper: #faf9f6;
  --ink: #1c2126;
  --muted: #5b6472;
  --line: #e4e0d8;
  --line-dk: #2a3650;
  --accent: #c1793f;
  --accent-lt: #e7b98a;
  --sidebar-w: 272px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: 1.5rem; margin-top: 2.4em; }
h3 { font-size: 1.05rem; margin-top: 1.6em; color: var(--ink); }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink); }
p.lede { max-width: 68ch; font-size: 1.1rem; color: var(--muted); }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy);
  color: #cfd6e4;
  padding: 2.4rem 1.9rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar .id-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-dk);
  margin-bottom: 1.1rem;
}

.sidebar h1.name {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.15em;
}

.sidebar .title {
  color: var(--accent-lt);
  font-size: 0.92rem;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 1.6rem;
}

.sidebar nav {
  margin-top: 0.5rem;
  flex-grow: 1;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar nav a {
  display: block;
  color: #b7c0d1;
  padding: 0.62rem 0.2rem 0.62rem 0.85rem;
  border-left: 2px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sidebar nav a:hover {
  color: #fff;
  border-left-color: var(--line-dk);
}

.sidebar nav a.active {
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
}

.sidebar .contact {
  border-top: 1px solid var(--line-dk);
  padding-top: 1.1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #8b95a8;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.7;
  word-break: break-word;
}

.sidebar .contact a { color: #b7c0d1; }

/* Mobile nav toggle */
.nav-toggle { display: none; }

/* ---------- Main content ---------- */

main {
  flex: 1;
  min-width: 0;
  padding: 3.4rem clamp(1.5rem, 5vw, 4.5rem) 5rem;
  max-width: 980px;
}

.eyebrow {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

section { margin-bottom: 2.8rem; }

/* Core competencies / skill chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.32rem 0.7rem;
  border-radius: 3px;
}

.chip-logo {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
}

.vendor-logo {
  width: 48px;
  height: 25px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.chip-logo:hover .vendor-logo,
.chip-logo:focus-within .vendor-logo { filter: none; opacity: 1; }

.vendor-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.vendor-text-red { color: #d03b3b; }

.skill-text {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
}

/* Experience block */
.exp-block {
  border-left: 2px solid var(--line);
  padding-left: 1.4rem;
  margin-top: 1.2rem;
}

.exp-block .role {
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
}

.exp-block .org {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.exp-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.exp-block li { margin-bottom: 0.55rem; max-width: 64ch; }

.build-list {
  margin: 0.8rem 0 1.2rem;
  padding-left: 1.2rem;
}

.build-list li {
  margin-bottom: 0.5rem;
  max-width: 62ch;
  color: var(--ink);
}

.build-list strong { color: var(--navy); }

/* Certification entries (education page) — thumbnail + text, same list rhythm as .entry */
.cert-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-thumb-link {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.cert-thumb {
  width: 98px;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  transition: opacity 0.15s ease;
}

.cert-thumb-link:hover .cert-thumb,
.cert-thumb-link:focus-visible .cert-thumb { opacity: 0.8; }

.cert-entry-text { flex: 1 1 auto; }

/* Generic list pages (education / awards / accomplishments) */
.entry {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.entry:first-of-type { border-top: 1px solid var(--line); }

.entry .entry-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

.entry .entry-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.entry .entry-body { margin-top: 0.5rem; }

.status-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  background: var(--accent-lt);
  color: #5a3a15;
  vertical-align: middle;
}

/* Rocknet Lab page */
.lab-hero {
  width: auto;
  max-width: 100%;
  height: 560px;
  object-fit: contain;
  object-position: left top;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
  display: block;
}

@media (max-width: 620px) {
  .lab-hero { width: 100%; height: auto; }
}

.lab-hero-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1rem;
}

.spec-grid .spec {
  background: #fff;
  padding: 1rem 1.1rem;
}

.spec .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.spec .v { font-weight: 600; color: var(--navy); }

.vm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.vm-table th, .vm-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.vm-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.vm-table td.dist { font-weight: 600; color: var(--navy); }

/* Accomplishments page image */
.accomplishment-photo {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  display: block;
  margin: 0.8rem 0 1.4rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
}

.photo-grid figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

footer.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1.1rem 1.3rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .sidebar .id-photo { width: 44px; height: 44px; margin: 0 0.9rem 0 0; }
  .sidebar h1.name { font-size: 1.05rem; margin: 0; }
  .sidebar .title { display: none; }

  .nav-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line-dk);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: 3px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
  }

  .sidebar nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    margin-top: 0;
    flex-basis: 100%;
  }

  .sidebar.open nav { max-height: 400px; margin-top: 1rem; }
  .sidebar .contact { display: none; }

  main { padding: 2rem 1.3rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar nav { transition: none; }
}

/* ---------- Live cluster telemetry ---------- */

.cluster-status-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.status-dot.dot-good { background: #0ca30c; }
.status-dot.dot-warn { background: #fab219; }
.status-dot.dot-critical { background: #d03b3b; }

.cluster-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.fleet-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1rem;
}

.fleet-stat {
  background: #fff;
  padding: 1.1rem 1.2rem 1.2rem;
  border-top: 3px solid var(--line);
}

.fleet-stat .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.fleet-stat .v {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.fleet-stat.stat-total { border-top-color: var(--navy); }
.fleet-stat.stat-total .v { color: var(--navy); }

.fleet-stat.stat-running { border-top-color: #0ca30c; }
.fleet-stat.stat-running .v { color: #0ca30c; }

.fleet-stat.stat-stopped { border-top-color: #d03b3b; }
.fleet-stat.stat-stopped .v { color: #d03b3b; }

.fleet-stat.stat-vcpus { border-top-color: var(--accent); }
.fleet-stat.stat-vcpus .v { color: var(--accent); }

.fleet-stat.stat-mem { border-top-color: #3f7ea6; }
.fleet-stat.stat-mem .v { color: #3f7ea6; }

.fleet-stat.stat-cpu { border-top-color: #0ca30c; }
.fleet-stat.stat-cpu .v { color: #0ca30c; }
.fleet-stat.stat-cpu.stat-warning { border-top-color: #fab219; }
.fleet-stat.stat-cpu.stat-warning .v { color: #fab219; }
.fleet-stat.stat-cpu.stat-critical { border-top-color: #d03b3b; }
.fleet-stat.stat-cpu.stat-critical .v { color: #d03b3b; }

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1px;
}

.node-card {
  background: #fff;
  padding: 1.1rem 1.2rem 1.2rem;
}

.node-card-skeleton {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  padding: 1.5rem 1.2rem;
}

.node-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.node-card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--navy);
  flex-grow: 1;
}

.node-status-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.meter-row { margin-bottom: 0.7rem; }

.meter-label {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.meter-label .meter-value { color: var(--ink); font-weight: 500; }

.meter {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.meter-fill.meter-warning { background: #fab219; }
.meter-fill.meter-critical { background: #d03b3b; }

.node-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.telemetry-footer {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: right;
}

/* ---------- Cluster topology diagram ---------- */

.topology-figure {
  margin: 1.4rem 0 0.6rem;
}

.topology-figure svg {
  max-width: 100%;
  height: auto;
  display: block;
  background: var(--paper);
}

.topology-figure figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 68ch;
  line-height: 1.6;
}

/* ---------- Topology diagram glossary ---------- */

.diagram-glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1rem;
}

.glossary-card {
  background: #fff;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--line-dk);
}

.glossary-card.edge-public { border-left-color: var(--accent); }
.glossary-card.edge-physical { border-left-color: var(--navy); }
.glossary-card.edge-sdn { border-left-color: var(--accent); background: #fdf8f3; }

.glossary-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.glossary-card p {
  margin: 0;
  max-width: none;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.glossary-card .mono-tag {
  display: block;
  margin-top: 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--ink);
}

/* ---------- Data flow steps ---------- */

.flow-steps {
  list-style: none;
  counter-reset: flow;
  margin: 1.2rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.flow-steps li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3.4rem;
  border-bottom: 1px solid var(--line);
}

.flow-steps li:last-child { border-bottom: none; }

.flow-steps li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-steps h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.flow-steps p {
  margin: 0;
  max-width: 70ch;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Ham radio live dashboard ---------- */

.band-cond-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.band-cond-row:first-of-type { border-top: none; }

.band-cond-label { color: var(--muted); width: 3.4rem; flex-shrink: 0; }
.band-cond-value { margin-left: auto; font-weight: 600; color: var(--ink); }

.spot-table td.mono, .spot-table th.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.spot-table td.dx-call { font-weight: 600; color: var(--navy); }

.flow-steps .flow-detail {
  display: block;
  margin-top: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--ink);
}

/* ---------- QRZ award badges ---------- */

.award-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1rem;
}

.award-badge-card {
  background: #fff;
  padding: 1.1rem 1.2rem 1.2rem;
  text-align: center;
}

.award-badge-card .award-ribbon {
  width: 125px;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.8rem;
}

.award-badge-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.award-badge-stat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.award-badge-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.award-badges.compact { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.award-badges.compact .award-badge-card { padding: 0.9rem 0.8rem 1rem; }
.award-badges.compact .award-ribbon { width: 100px; margin-bottom: 0.6rem; }
.award-badges.compact .award-badge-stat,
.award-badges.compact .award-badge-meta { display: none; }

.award-source-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ---------- Misc small notes / inline tags ---------- */

.section-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.role-personal-tag {
  display: inline-block;
  margin-left: 0.5em;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.05em 0.45em;
  vertical-align: middle;
  white-space: nowrap;
}

.mono-tag-inline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
  color: var(--navy);
  background: #f3f1ec;
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

/* ---------- Live routing lab panel (rocknet-lab.html #routing-lab-live) ---------- */

.fleet-stat.rl-ok { border-top-color: #0ca30c; }
.fleet-stat.rl-ok .v { color: #0ca30c; }
.fleet-stat.rl-warn { border-top-color: #fab219; }
.fleet-stat.rl-warn .v { color: #b77f00; }
.fleet-stat.rl-bad { border-top-color: #d03b3b; }
.fleet-stat.rl-bad .v { color: #d03b3b; }
.fleet-stat .v small { font-size: 0.55em; color: var(--muted); font-weight: 500; }

#rlLinkGrid { margin-top: 1rem; }

.rl-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin: -0.5rem 0 0.8rem;
}

.rl-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  margin: 0;
}
.rl-kv dt { color: var(--muted); }
.rl-kv dd { margin: 0; color: var(--ink); text-align: right; }

.rl-spark { margin-top: 0.8rem; }
.rl-spark svg { width: 100%; height: 38px; display: block; }
.rl-spark-label {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

.rl-problems {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0.5rem 0.7rem;
  background: #fdf3dc;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: #7a5400;
}
.rl-problems.rl-bad { background: #fbe7e7; color: #a02a2a; }

.rl-events { font-size: 0.85rem; }
.rl-events td:first-child { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.rl-events td:nth-child(2) { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; white-space: nowrap; }
.rl-lv { font-weight: 700; margin-right: 0.35rem; }
.rl-lv-good { color: #0ca30c; }
.rl-lv-warn { color: #b77f00; }
.rl-lv-bad { color: #d03b3b; }
.rl-lv-info { color: var(--muted); }

/* ---------- Rocknet Lab sub-pages: nested nav, breadcrumb, overview cards, pager ---------- */

.sidebar nav ul.subnav { margin: 0 0 0.3rem; }

.sidebar nav ul.subnav a {
  padding: 0.38rem 0.2rem 0.38rem 1.75rem;
  font-size: 0.84rem;
  color: #8b95a8;
  position: relative;
}

.sidebar nav ul.subnav a::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 0.45rem;
  border-top: 1px solid var(--line-dk);
}

.sidebar nav ul.subnav a:hover { color: #fff; }

.sidebar nav ul.subnav a.active {
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
}

.sidebar nav a.active-parent {
  color: #fff;
  border-left-color: var(--line-dk);
}

.breadcrumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.lab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1rem;
}

.lab-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1.3rem 1.4rem 1.2rem;
  border-top: 3px solid var(--accent);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.lab-card:hover { background: #fcfbf8; }
.lab-card:hover h3 { color: var(--accent); }

.lab-card-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.lab-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
  transition: color 0.15s ease;
}

.lab-card p { font-size: 0.95rem; flex-grow: 1; }

.lab-card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  background: #f3f1ec;
  margin: 0.2rem 0 0.9rem;
}

.lab-card-go {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.lab-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1rem 0 2rem;
}

.lab-pager a {
  background: #fff;
  padding: 0.9rem 1.1rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.lab-pager a:hover { background: #fcfbf8; color: var(--accent); }

.lab-pager a span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.lab-pager-prev span::before { content: "← "; }
.lab-pager-next { text-align: right; }
.lab-pager-next span::after { content: " →"; }

@media (max-width: 620px) {
  .lab-pager { grid-template-columns: 1fr; }
  .lab-pager-next { text-align: left; }
}
