:root {
  color-scheme: dark;

  /* Surfaces */
  --bg:            #121413;  /* page background */
  --bg-sunken:     #0E100F;  /* code blocks, terminal boxes */
  --bg-hover:      #181B1A;  /* hovered rows and nav items */

  /* Lines */
  --line-subtle:   #1F2321;  /* sidebar divider */
  --line:          #262B29;  /* section strips, cards, tables */
  --line-strong:   #2C3230;  /* buttons, chips, inputs, code box */
  --line-header:   #232826;  /* header bottom border */

  /* Text */
  --text-strong:   #EAEDEA;  /* headings, numbers, active nav */
  --text:          #DCE0DD;  /* body copy */
  --text-2:        #ABB3AE;  /* lede, secondary nav links */
  --text-nav:      #B5BCB7;  /* sidebar links */
  --text-muted:    #8C9590;  /* labels, captions, table meta */
  --text-dim:      #6E7772;  /* comments in code, "/ 11" suffixes */

  /* Accent (soft mint): links, hover */
  --accent:        #7EDDB0;
  --accent-hover:  #B2EDCF;

  /* Neon (highlights only, see "Neon highlights") */
  --neon:          #3CF5A8;
  --neon-soft:     rgba(60, 245, 168, 0.08);   /* active nav / active pill background */
  --neon-line:     rgba(60, 245, 168, 0.35);   /* active nav ring, highlighted card border */
  --neon-bar:      rgba(60, 245, 168, 0.30);   /* non-current chart bars */
  --glow-text:     0 0 12px rgba(60, 245, 168, 0.35);
  --glow-box:      0 0 0 1px rgba(60, 245, 168, 0.25), 0 0 18px rgba(60, 245, 168, 0.25);
  --glow-dot:      0 0 8px #3CF5A8;
  --glow-line:     drop-shadow(0 0 3px rgba(60, 245, 168, 0.6));
  --on-accent:     #0E100F;                     /* text on a neon button */
  --dot-idle:      #3A413E;                     /* inactive family-nav dot */

  /* Agent role colors (Easy Kit only, small dots) */
  --role-backend:  #7AA7E8;
  --role-infra:    #E3A66B;
  --role-frontend: #B39AE8;
  --role-qa:       #86CFA0;

  /* Type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Radius */
  --r-xs: 4px;   /* chips, version tag */
  --r-sm: 6px;   /* buttons, nav items, code box, single cards */
  --r-md: 8px;   /* grouped strips (stat row, step grid) */

  /* Spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;  --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px;  --s-10: 56px;

  /* Layout */
  --header-h: 64px;
  --sidebar-w: 248px;
  --content-max: 920px;
}

html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(126, 221, 176, 0.25); color: var(--text-strong); }

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Focus: visible on every interactive element */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }

/* Buttons (min height 40px; 44px on touch) */
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: var(--r-sm); font: 500 14px var(--font-sans); cursor: pointer; }
.btn-primary { background: var(--neon); color: var(--on-accent); border: 0; box-shadow: var(--glow-box); }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }

/* Code block / terminal (with Copy button) */
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 20px; background: var(--bg-sunken);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: 400 14px/1.6 var(--font-mono); overflow-x: auto; }
.codebox .prompt { color: var(--neon); }          /* the "$ " */
.codebox .comment { color: var(--text-dim); }       /* "# 1 pull the image" */
.codebox .btn { height: 36px; padding: 0 16px; font-size: 13px; }  /* Copy = .btn-primary */

/* Strip: N equal cells inside one bordered box, hairline dividers */
.strip { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.strip > * { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.strip > * + * { border-left: 1px solid var(--line); }
.strip .num { font: 500 28px/1.1 var(--font-mono); color: var(--neon); text-shadow: var(--glow-text); }
.strip .num small { font-size: 17px; color: var(--text-dim); }
.strip .label { font-size: 13.5px; color: var(--text-muted); }

/* Step grid: same as .strip, cells padded 16px, with step number */
.step-no { font: 400 11.5px var(--font-mono); color: var(--neon); text-shadow: var(--glow-text); }
.step-title { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.step-meta { font: 400 11.5px/1.5 var(--font-mono); color: var(--text-muted); }

/* Standalone card */
.card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 6px; }
.card.is-highlight { border-color: var(--neon-line); box-shadow: var(--glow-box); }   /* at most one per section */

/* Chip (dimension names, tags) */
.chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--r-xs); font: 400 12px var(--font-mono); color: var(--text-nav); }

/* Role dot (Easy Kit agent roles only) */
.dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* Progress bar (scorecard coverage) */
.bar { height: 6px; border-radius: 3px; background: var(--line-header); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--neon); box-shadow: var(--glow-dot); }

/* Tables (all reference tables on the three sites) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 12px var(--font-mono); color: var(--text-muted);
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-hover); }