/* Self-hosted Inter, see /wwwroot/fonts. Three weights cover regular body
   text (400), semibold UI accents (600), and bold heads (700). Italic and
   the variable file are intentionally not bundled to keep payload small. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

/* ─────────────────────────────────────────────────────────────────────────
   Theme tokens. Light is the default / showcase palette (matches the sibling
   product sites: white + soft mint ground, deep-teal ink, a single brand
   gradient). Dark is a fully tuned companion under [data-theme="dark"].
   EVERY surface in this file is driven by a token below, so both themes stay
   consistent and nothing is hardcoded to one palette.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand. One gradient, emerald/teal → deep cyan, ties "green" to the mark. */
  --brand:        #0e9e89;
  --brand-bright: #1cbca4;
  --brand-deep:   #0a6671;
  --gradient: linear-gradient(135deg, #1cbca4 0%, #0a6671 100%);
  --on-brand: #ffffff;

  --bg: #ffffff;
  --bg-soft: #f0f6f4;
  --panel: #ffffff;
  --panel-soft: #f6faf9;
  --ink: #11302d;
  --body: #38534f;
  --muted: #5d736f;
  --line: #e1ebe8;
  --line-strong: #cfdedb;
  --code-bg: rgba(17, 48, 45, 0.06);

  /* Accent maps to the brand for links / eyebrows; the -2 / -3 hues are kept
     for the homelab diagram's category colours (network / storage). */
  --accent: var(--brand);
  --accent-2: #6d49e0;
  --accent-3: #c2660a;
  --danger: #d23c3c;

  --shadow-sm: 0 1px 3px rgba(16, 49, 47, 0.06), 0 4px 14px rgba(16, 49, 47, 0.06);
  --shadow: 0 8px 30px rgba(10, 102, 113, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 102, 113, 0.16);
  --radius: 16px;

  /* Translucent surfaces for the sticky header + overlays. */
  --surface-translucent: rgba(255, 255, 255, 0.86);
  --surface-translucent-soft: rgba(255, 255, 255, 0.6);
  --surface-deep: rgba(17, 48, 45, 0.42);

  /* Solid fills for the homelab diagram + rack so connection lines never
     bleed through. */
  --node-fill: #ffffff;
  --node-fill-hover: #eef6f4;
  --rack-surface: #f3f8f7;
  --rack-edge: rgba(17, 48, 45, 0.10);

  --focus-ring: rgba(28, 188, 164, 0.5);

  --color-scheme: light;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand:        #2fd0b6;
  --brand-bright: #3fe0c5;
  --brand-deep:   #0c8a78;
  --gradient: linear-gradient(135deg, #18b59c 0%, #0a5663 100%);
  /* The brand gradient stays bright in both themes, so on-brand text is white
     in both. Kept as a token so brand surfaces (hero, mark, primary button)
     reference one value. */
  --on-brand: #ffffff;

  --bg: #0b1020;
  --bg-soft: #111733;
  --panel: #161d3d;
  --panel-soft: #1a2247;
  --ink: #e9eeff;
  --body: #c7d0ec;
  --muted: #94a0c7;
  --line: rgba(148, 160, 199, 0.18);
  --line-strong: rgba(148, 160, 199, 0.30);
  --code-bg: rgba(148, 160, 199, 0.16);

  --accent: var(--brand);
  --accent-2: #b48cff;
  --accent-3: #ffb86b;
  --danger: #ff6b6b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.5);

  --surface-translucent: rgba(11, 16, 32, 0.78);
  --surface-translucent-soft: rgba(11, 16, 32, 0.45);
  --surface-deep: rgba(5, 7, 13, 0.6);

  --node-fill: #1e2650;
  --node-fill-hover: #283163;
  --rack-surface: rgba(8, 12, 26, 0.85);
  --rack-edge: rgba(148, 160, 199, 0.16);

  --focus-ring: rgba(63, 224, 197, 0.5);

  --color-scheme: dark;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(28, 188, 164, 0.10), transparent 60%),
    radial-gradient(900px 500px at -12% 108%, rgba(10, 102, 113, 0.08), transparent 60%),
    var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
               ui-sans-serif, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* clip (not hidden) keeps the full-bleed hero backdrop from causing a
     horizontal scrollbar without turning <body> into a scroll container,
     so the sticky header keeps working. */
  overflow-x: clip;
  transition: background-color 0.18s ease, color 0.18s ease;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(180, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(63, 224, 197, 0.12), transparent 60%),
    var(--bg);
}

h1, h2, h3, h4 { color: var(--ink); }

img { max-width: 100%; display: block; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

button, input, textarea { font: inherit; }

/* Skip-link, visually hidden until keyboard focus reveals it. Lets
   keyboard / screen-reader users jump past the header on every page. */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: var(--surface-translucent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 32px;
  place-items: center;
  background: var(--gradient);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.site-nav, .footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.theme-toggle {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  margin-left: 4px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.theme-toggle:hover { background: var(--surface-translucent-soft); color: var(--accent); }
.theme-toggle-icon {
  font-size: 16px;
  line-height: 1;
  display: block;
}
/* Show one icon at a time depending on which theme is active: a moon in light
   mode (click to go dark), a sun in dark mode (click to go light). Absence of
   the attribute is treated as light. */
:root:not([data-theme="dark"]) .theme-toggle-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle-icon-moon { display: none; }

.site-nav a, .footer-links a, .inline-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover, .footer-links a:hover, .inline-link:hover {
  color: var(--accent);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(18px, 4vw, 56px) 80px;
}

body[data-page="homelab"] main {
  max-width: 1320px;
}

/* Brand-gradient hero panel (the ecosystem signature): a rounded gradient
   block with white text, a faint drifting grid, and soft light blooms. */
.hero {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding: clamp(40px, 6vw, 76px) clamp(26px, 5vw, 64px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--gradient);
  color: var(--on-brand);
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 82px 82px;
  animation: grid-drift 30s linear infinite;
  -webkit-mask-image: radial-gradient(130% 120% at 82% -10%, #000 38%, transparent 82%);
          mask-image: radial-gradient(130% 120% at 82% -10%, #000 38%, transparent 82%);
}

/* Soft white light blooms for depth on the flat gradient. */
.hero-glow {
  position: absolute;
  display: block;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.hero-glow-1 {
  top: -210px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: hero-drift-a 26s ease-in-out infinite alternate;
}

.hero-glow-2 {
  bottom: -180px;
  left: -150px;
  background: radial-gradient(circle, rgba(120, 255, 230, 0.4), transparent 70%);
  animation: hero-drift-b 32s ease-in-out infinite alternate;
}

/* Hero text + buttons sit on the gradient, so they go light. */
.hero h1 { color: var(--on-brand); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.9); }
.hero .lede { color: rgba(255, 255, 255, 0.92); max-width: 60ch; }
.hero .btn-primary { background: #ffffff; color: var(--brand-deep); }
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--on-brand);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: var(--on-brand);
}

@keyframes grid-drift {
  to { background-position: 82px 41px; }
}

@keyframes hero-drift-a {
  to { transform: translate3d(-7%, 9%, 0) scale(1.12); }
}

@keyframes hero-drift-b {
  to { transform: translate3d(9%, -7%, 0) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-glow { animation: none; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.now-strip {
  margin-top: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(92, 225, 230, 0.10), rgba(180, 140, 255, 0.10));
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.now-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.now-body {
  margin: 0 0 6px;
  font-size: 15px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 68ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: var(--on-brand);
  box-shadow: var(--shadow);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--panel);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.cards .card {
  flex: 1 1 280px;
  max-width: 360px;
}

.card {
  position: relative;
  display: block;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  isolation: isolate;
  overflow: hidden;
}

/* Brand-gradient halo that fades in on hover so cards feel like part of the
   logo family on interaction. */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card h2 { margin: 0 0 6px; font-size: 20px; }

.card p { margin: 0; color: var(--muted); }

.page-header {
  padding: 24px 0 16px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
}

.content-shell {
  margin-top: 24px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.muted { color: var(--muted); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong { color: var(--ink); margin-right: 8px; }

.footer-contact {
  display: block;
  margin-top: 8px;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.footer-contact a:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.footer-dot { margin: 0 8px; }

/* 404 page */

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 28px;
}

/* Homelab page */

.page-header-homelab {
  max-width: none;
}

.page-header-homelab .lede {
  max-width: 78ch;
}

.homelab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 880px) {
  .homelab-hero { grid-template-columns: minmax(0, 1fr); }
  .rack-illustration { justify-self: start; max-width: 280px; }
}

/* CSS-only rack illustration */
.rack-illustration {
  display: grid;
  gap: 8px;
}
.rack-frame {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--rack-surface);
  box-shadow: inset 0 0 0 2px var(--rack-edge), var(--shadow);
}
.rack-rails {
  position: absolute;
  inset: 8px 6px;
  border-left: 2px dotted var(--rack-edge);
  border-right: 2px dotted var(--rack-edge);
  pointer-events: none;
  border-radius: 6px;
}
.rack-units {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  z-index: 1;
}
.rack-u {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid var(--rack-edge);
  background: var(--node-fill);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.rack-u-2u { height: 44px; }
/* Empty rack space, e.g. the gap above the Proxmox build. */
.rack-u-gap {
  background: transparent;
  border: 1px dashed var(--rack-edge);
  height: 30px;
  opacity: 0.5;
}
.rack-u-blank {
  background: transparent;
  border: 1px dashed var(--rack-edge);
  height: 14px;
}
.rack-u-network { border-color: rgba(180,140,255,0.45); color: var(--accent-2); }
.rack-u-compute { border-color: rgba(92,225,230,0.45); color: var(--accent); }
.rack-u-storage { border-color: rgba(255,184,107,0.45); color: var(--accent-3); }
.rack-u-client  { border-color: rgba(180,140,255,0.30); }
.rack-u-patch   { color: rgba(148,160,199,0.7); }
.rack-u-ups     { border-color: rgba(255,184,107,0.45); color: var(--accent-3); }
.rack-u-pdu     { color: rgba(148,160,199,0.6); }
.rack-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(92,225,230,0.7);
  animation: rack-blink 3.2s ease-in-out infinite;
  flex-shrink: 0;
}
.rack-led.led-amber {
  background: var(--accent-3);
  box-shadow: 0 0 8px rgba(255,184,107,0.7);
  animation-delay: -1.6s;
}
.rack-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rack-caption { margin: 0; text-align: center; }

/* Two devices sharing one rack line. The <li> is just a transparent track;
   each .rack-cell is its own bordered pill and keeps the colour modifiers. */
.rack-u-split {
  padding: 0;
  gap: 4px;
  border: none;
  background: transparent;
}
.rack-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid var(--rack-edge);
  background: var(--node-fill);
}

@keyframes rack-blink {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rack-led { animation: none; opacity: 0.8; }
}

.homelab-diagram {
  margin-top: 24px;
  padding: clamp(14px, 2.5vw, 28px);
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(28, 188, 164, 0.06), transparent 70%),
    radial-gradient(900px 320px at 80% 100%, rgba(10, 102, 113, 0.06), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── HTML network map. Plain HTML/flex/grid so titles wrap natively and each
   device nests visually inside the switch group that feeds it (no hand-laid
   SVG, no text clipping). ─────────────────────────────────────────────── */
.hl-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hl-band {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hl-band-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.75;
}

.hl-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.hl-row-aux { margin-top: 2px; }

.hl-aux {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hl-aux-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Vertical connector stem between bands. */
.hl-stem {
  width: 2px;
  height: 26px;
  background: var(--line-strong);
  border-radius: 2px;
  margin: 8px 0;
}

/* Distribution: the two switch groups side by side. */
.hl-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

.hl-group {
  flex: 1 1 340px;
  min-width: 280px;
  max-width: 580px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hl-group-cap { margin: 0; }

.hl-group-kids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.hl-group-kids-desk {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Proxmox and its VMs span the full row and nest one level deeper. */
.hl-subtree {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hl-subkids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.hl-subkids-label {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* Node card. */
.hl-node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--node-fill);
  color: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.15s ease, background 0.12s ease;
}
.hl-node:hover,
.hl-node:focus-visible {
  transform: translateY(-2px);
  background: var(--node-fill-hover);
  box-shadow: var(--shadow);
}

.hl-network { border-left-color: var(--accent-2); }
.hl-compute { border-left-color: var(--accent); }
.hl-storage { border-left-color: var(--accent-3); }
.hl-client  { border-left-color: var(--muted); }
.hl-offsite { border-left-style: dashed; }

.hl-node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.hl-node-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.hl-node-sub {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.hl-node-meta {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}
.hl-node .vlan-chip { flex-shrink: 0; }

@media (max-width: 760px) {
  .hl-group { flex-basis: 100%; max-width: none; }
}
@media (max-width: 480px) {
  .hl-group-kids,
  .hl-group-kids-desk,
  .hl-subkids { grid-template-columns: 1fr; }
}

/* HTML legend below the diagram */
.homelab-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(148, 160, 199, 0.04);
  font-size: 13px;
}
.homelab-legend .legend-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.homelab-legend .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: -4px;
  border: 1px solid var(--line);
}
.homelab-legend .swatch.swatch-network { background: var(--accent-2); }
.homelab-legend .swatch.swatch-compute { background: var(--accent); }
.homelab-legend .swatch.swatch-storage { background: var(--accent-3); }
.homelab-legend .swatch.swatch-client  { background: rgba(180,140,255,0.6); }
.vlan-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.vlan-chip.vlan-trust    { background: rgba(92, 225, 230, 0.18); color: var(--accent); }
.vlan-chip.vlan-homelab  { background: rgba(180, 140, 255, 0.20); color: var(--accent-2); }
.vlan-chip.vlan-iot      { background: rgba(255, 184, 107, 0.20); color: var(--accent-3); }
.vlan-chip.vlan-security { background: rgba(255, 107, 107, 0.20); color: var(--danger); }
.vlan-chip.vlan-guest    { background: rgba(148, 160, 199, 0.20); color: var(--muted); }

/* Services in the side panel */
.panel-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.panel-services li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.panel-services li:last-child { border-bottom: none; }
.panel-services .svc-name { font-weight: 700; color: var(--ink); }
.panel-services .svc-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}
.panel-services .svc-host:hover { text-decoration: underline; }
/* Internal-only hostnames: shown for reference, not clickable. */
.panel-services .svc-host-internal { color: var(--muted); cursor: default; }
.panel-services .svc-host-internal:hover { text-decoration: none; }
.panel-services .svc-note { color: var(--muted); font-size: 12px; }

/* Accessories list (footnote) */
.accessory-list {
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
}
.accessory-list li strong { color: var(--ink); }

/* Homelab side panel */

.homelab-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 50;
  overflow-y: auto;
  padding: 28px 28px 60px;
}

.homelab-panel.open { transform: translateX(0); }

.homelab-panel-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.homelab-panel-close:hover { color: var(--accent); border-color: var(--accent); }

.homelab-backdrop {
  position: fixed;
  inset: 0;
  background: var(--surface-deep);
  z-index: 49;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.homelab-backdrop.visible { opacity: 1; }

body.panel-open { overflow: hidden; }

.panel-kind {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.kind-network { color: var(--accent-2); border-color: rgba(180,140,255,0.5); }
.kind-compute { color: var(--accent);   border-color: rgba(92,225,230,0.5); }
.kind-storage { color: var(--accent-3); border-color: rgba(255,184,107,0.5); }
.kind-client  { color: var(--accent-2); border-color: rgba(180,140,255,0.4); }

.homelab-panel h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.panel-sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.homelab-panel h3 {
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-specs {
  margin: 0;
  display: grid;
  gap: 6px;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.spec-row:last-child { border-bottom: none; }
.spec-row dt { color: var(--muted); margin: 0; }
.spec-row dd { color: var(--ink); margin: 0; }

.panel-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-children li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.panel-children li:last-child { border-bottom: none; }
.panel-children li span { color: var(--muted); font-size: 13px; }

.panel-notes {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(148, 160, 199, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* Homelab print-only section, hidden on screen, rendered when the user prints */

.homelab-print { display: none; }

@media print {
  body {
    background: #fff;
    color: #07101f;
  }
  .site-header,
  .site-footer,
  .homelab-diagram,
  .homelab-panel,
  .homelab-backdrop,
  .page-footnote { display: none !important; }

  main { padding: 0; max-width: none; }

  .page-header h1 { font-size: 22px; margin: 0 0 4px; }
  .page-header .lede,
  .page-header .small { display: none; }

  .homelab-print {
    display: block;
    margin-top: 12px;
  }

  .homelab-print header h2 {
    font-size: 18px;
    margin: 0 0 2px;
    color: #07101f;
  }

  .homelab-print header p {
    margin: 0 0 14px;
    color: #51607f;
    font-size: 12px;
  }

  .homelab-print-node {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #d9e0ef;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fff;
  }

  .homelab-print-node h3 {
    margin: 0 0 2px;
    font-size: 14px;
    color: #07101f;
  }

  .homelab-print-node h4 {
    margin: 8px 0 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1457d9;
  }

  .homelab-print-node p,
  .homelab-print-node li,
  .homelab-print-node dt,
  .homelab-print-node dd { font-size: 11px; }

  .homelab-print-node dl {
    margin: 0;
    display: grid;
    grid-template-columns: 110px 1fr;
    row-gap: 2px;
    column-gap: 8px;
  }

  .homelab-print-node dt {
    margin: 0;
    color: #51607f;
  }

  .homelab-print-node dd { margin: 0; }

  .homelab-print-node ul {
    margin: 0;
    padding-left: 14px;
  }

  .homelab-print-node li { margin: 2px 0; }

  .homelab-print-node .note {
    margin: 8px 0 0;
    padding: 6px 8px;
    background: #f5f7fb;
    border-left: 2px solid #1457d9;
    font-size: 11px;
    color: #51607f;
  }

  .muted, .small { color: #51607f; }
}

.page-footnote {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(148, 160, 199, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-footnote h2 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-footnote p { margin: 0; }

/* Projects page */

.project-section {
  margin-top: clamp(28px, 5vw, 44px);
}

.project-section-head {
  margin-bottom: 16px;
}

.project-section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.01em;
}

.project-section-head p {
  margin: 0;
  max-width: 70ch;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.project-card-head h3 {
  margin: 0;
  font-size: 20px;
}

.project-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status-active   { color: var(--accent);    border-color: rgba(92, 225, 230, 0.5); }
.status-private  { color: var(--accent-2);  border-color: rgba(180, 140, 255, 0.5); }
.status-maintenance { color: var(--accent-3); border-color: rgba(255, 184, 107, 0.5); }
.status-archived { color: var(--muted); }

.project-tagline {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}

.project-description {
  margin: 0 0 14px;
  color: var(--muted);
  flex: 1;
}

.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-sm { padding: 6px 12px; font-size: 13px; }

.btn-disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}

.chips-small li {
  font-size: 11px;
  padding: 2px 8px;
}

/* Resume page */

.resume {
  padding: 8px 0 0;
}

.resume-hero {
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.resume-hero h1 {
  margin: 6px 0 4px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
}

.resume-title {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}

.resume-title .muted { font-weight: 500; margin-left: 6px; }

.resume-contact {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 14px;
}

.resume-contact li::after {
  content: "·";
  margin-left: 18px;
  color: var(--line);
}

.resume-contact li:last-child::after { content: none; }

.resume-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-actions .btn-ghost {
  background: transparent;
  cursor: pointer;
}

.resume-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.resume-note strong { color: var(--accent-3); }

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 48px;
}

.resume-side > section,
.resume-main > * {
  margin-bottom: 32px;
}

.resume-side h2,
.resume-main h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.resume-side h3 {
  margin: 18px 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.resume-side p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
}

.small { font-size: 13px; }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  background: rgba(148, 160, 199, 0.10);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}

.resume-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-list li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.resume-list li:last-child { border-bottom: none; }

.resume-edu-school {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.resume-courses summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
}

.resume-courses summary:hover { color: var(--accent); }

.resume-role {
  position: relative;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.resume-role::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

.resume-role h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.resume-role-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resume-role ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.resume-role li {
  margin-bottom: 6px;
  font-size: 15px;
}

@media (max-width: 880px) {
  .resume-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media print {
  body {
    background: #fff;
    color: #07101f;
  }
  .site-header, .site-footer, .resume-actions, .resume-note { display: none; }
  main { padding: 0; max-width: none; }
  .resume-hero { border-bottom: 2px solid #07101f; margin-bottom: 18px; }
  .resume-role {
    background: #fff;
    border: 1px solid #d9e0ef;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .resume-role::before { background: #07101f; }
  .chips li {
    background: #f5f7fb;
    border-color: #d9e0ef;
    color: #07101f;
  }
  .resume-side h2, .resume-main h2 { color: #07101f; }
  .resume-side h3 { color: #51607f; }
  .muted { color: #51607f; }
  a { color: #1457d9; text-decoration: none; }
  details { display: none; }
}

/* =========================================================================
   Built-with-Cairo footer strip (home page)
   ========================================================================= */

.built-with-cairo {
  margin: clamp(32px, 6vw, 64px) clamp(18px, 4vw, 56px) clamp(48px, 8vw, 96px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 220px at 110% 0%, rgba(28, 188, 164, 0.16), transparent 65%),
    radial-gradient(500px 200px at -10% 100%, rgba(10, 102, 113, 0.12), transparent 65%),
    var(--panel);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.built-with-cairo-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.built-with-cairo-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.built-with-cairo-copy .eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.built-with-cairo-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cairo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cairo-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.cairo-pill.is-disabled {
  opacity: 0.55;
  border-style: dashed;
  cursor: not-allowed;
}
.cairo-pill.is-disabled:hover {
  transform: none;
  border-color: var(--line-strong);
  color: var(--ink);
}

@media (max-width: 760px) {
  .built-with-cairo-inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Uses page
   ========================================================================= */

.uses-stack {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(8px, 2vw, 16px) 0 clamp(32px, 6vw, 64px);
}

.uses-group {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.uses-group-head {
  margin-bottom: 18px;
}

.uses-group-head .eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.uses-group-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
}

.uses-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uses-entry {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.uses-entry h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.uses-detail {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.uses-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .uses-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Software page
   ========================================================================= */

.software-stack {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(8px, 2vw, 16px) 0 clamp(32px, 6vw, 64px);
}

.software-group {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.software-group-head {
  margin-bottom: 18px;
}

.software-group-head .eyebrow {
  margin: 0 0 6px;
}

.software-group-head h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.4vw, 26px);
}

.software-group-head p {
  margin: 0;
  max-width: 70ch;
}

.software-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.software-entry {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.software-entry:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.software-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.software-entry-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.software-detail {
  margin: 0;
  color: var(--body);
  font-size: 0.96rem;
}

/* OS platform chips */
.os-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

.os-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.os-chip.os-linux { background: rgba(194, 102, 10, 0.14);  color: var(--accent-3); border-color: rgba(194, 102, 10, 0.30); }
.os-chip.os-mac   { background: rgba(109, 73, 224, 0.14);  color: var(--accent-2); border-color: rgba(109, 73, 224, 0.30); }
.os-chip.os-win   { background: rgba(14, 158, 137, 0.14);  color: var(--brand-deep); border-color: rgba(14, 158, 137, 0.30); }

:root[data-theme="dark"] .os-chip.os-win { color: var(--brand); }

@media (max-width: 760px) {
  .software-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Homelab: backups & resilience
   ========================================================================= */

.homelab-resilience {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.resilience-col {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.resilience-col > h2 {
  margin: 0 0 4px;
  font-size: clamp(18px, 2.2vw, 22px);
}

.resilience-col > p {
  margin: 0 0 14px;
}

.resilience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.resilience-list li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.resilience-list li:last-child { border-bottom: none; }

.resilience-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.resilience-detail {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .homelab-resilience {
    grid-template-columns: 1fr;
  }
}
