:root {
  --ink: #000000;
  --slate: #334155;
  --muted: #888888;
  --rule: #E2E8F0;
  --soft: #F1F5F9;
  --bg: #ffffff;
  --brand-green: #8cff00;
  --brand-blue: #054074;
  --brand-blue-bright: #0070C0;
  --brand-light-blue: #0ea5e9;
  --brand-teal: #00c4b4;
  --gradient-blue: linear-gradient(90deg, #000000 0%, #0070C0 100%);
  --gradient-accent: linear-gradient(90deg, #0ea5e9 0%, #00c4b4 50%, #8cff00 100%);
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.06);
  --shadow-cta: 0 4px 14px 0 rgba(140,255,0,0.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

code, pre { font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace; }
code { background: var(--soft); border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.875em; color: var(--brand-blue); }

/* HERO */
.hero {
  background: var(--gradient-blue);
  color: white;
  padding: 4rem 0 3rem;
  position: relative;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient-accent); }
.hero .eyebrow { color: var(--brand-green); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hero-sub { font-size: clamp(1.0625rem, 1.75vw, 1.25rem); color: rgba(255,255,255,0.92); max-width: 42rem; margin-bottom: 1.5rem; }
.hero-rule { width: 80px; height: 4px; background: var(--gradient-accent); border-radius: 2px; margin-bottom: 1.5rem; }
.hero-meta { font-size: 0.8125rem; color: rgba(255,255,255,0.7); }

/* LAYOUT */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

/* TOC */
.toc {
  position: relative;
}
.toc-inner {
  position: sticky;
  top: 1.5rem;
}
.search {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  margin-bottom: 1.25rem;
  background: white;
}
.search:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(0,196,180,0.18);
}
.toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}
.toc nav { display: flex; flex-direction: column; gap: 0.1rem; }
.toc nav a {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.toc nav a:hover { background: var(--soft); color: var(--brand-blue); }
.toc nav a.indent { padding-left: 1.5rem; font-size: 0.8125rem; color: var(--muted); }
.toc nav a.indent:hover { color: var(--brand-blue); }
.toc nav a.active { background: var(--soft); color: var(--brand-blue); border-left-color: var(--brand-teal); font-weight: 600; }

/* CONTENT */
.content { min-width: 0; }
.content section { margin-bottom: 3.5rem; scroll-margin-top: 1.5rem; }
.content h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  position: relative;
}
.content h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin-top: 0.5rem;
}
.content h3 { font-size: 1.125rem; font-weight: 700; color: var(--brand-blue); margin: 1.75rem 0 0.75rem; }
.content h4 { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.content p { margin-bottom: 0.75rem; }

.big-bullets { list-style: none; padding: 0; }
.big-bullets li { padding: 0.6rem 0 0.6rem 1.5rem; position: relative; border-bottom: 1px solid var(--rule); }
.big-bullets li:last-child { border-bottom: none; }
.big-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-teal);
  font-weight: 700;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.875rem;
}
thead { background: var(--brand-blue); color: white; }
th {
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
}
td { padding: 0.65rem 0.85rem; border-top: 1px solid var(--rule); vertical-align: top; }
tbody tr:hover { background: var(--soft); }
tr.highlight { background: rgba(140, 255, 0, 0.08); }
tr.highlight:hover { background: rgba(140, 255, 0, 0.14); }

/* SUITE GRID */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.suite {
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand-teal);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.suite h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}
.tag {
  display: inline-block;
  background: var(--soft);
  color: var(--slate);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  margin: 0.15rem 0.2rem 0.15rem 0;
}

/* CALLOUT */
.callout {
  background: var(--soft);
  border-left: 3px solid var(--brand-teal);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.callout p { margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.big {
  background: var(--gradient-blue);
  border-left: 3px solid var(--brand-green);
  color: white;
  padding: 1.25rem 1.5rem;
}
.callout.big p { color: white; font-size: 1.0625rem; }
.callout.big code { background: rgba(255,255,255,0.18); color: var(--brand-green); }

/* WORKFLOW */
.workflow {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.workflow h4 { color: var(--brand-blue); margin-bottom: 0.5rem; font-size: 0.95rem; }
.workflow pre {
  background: var(--ink);
  color: var(--brand-green);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-size: 0.825rem;
  line-height: 1.55;
}
.workflow pre code { background: transparent; color: inherit; padding: 0; }

pre {
  background: var(--ink);
  color: var(--brand-green);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.825rem;
  line-height: 1.55;
  margin: 0.75rem 0 1rem;
}
pre code { background: transparent; color: inherit; padding: 0; }

/* SIGNAL GRID */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}
.signal { background: white; border: 1px solid var(--rule); border-radius: 8px; padding: 1rem; }
.signal h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.signal p { font-size: 0.8125rem; margin-bottom: 0.4rem; }
.signal.green { border-left: 3px solid #22c55e; }
.signal.yellow { border-left: 3px solid #eab308; }
.signal.orange { border-left: 3px solid #f97316; }
.signal.red { border-left: 3px solid #ef4444; }
.rule { font-style: italic; color: var(--slate); margin-top: 0.75rem; }

/* SIGN-OFF */
.signoff { padding-top: 1.5rem; }
.signoff-card {
  background: var(--gradient-blue);
  color: white;
  border-radius: 12px;
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}
.signoff-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient-accent); }
.signoff-eyebrow { color: var(--brand-green); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.signoff-card h2 { color: white; font-size: 1.375rem; font-weight: 700; line-height: 1.35; margin-bottom: 1rem; }
.signoff-card h2::after { display: none; }
.signoff-card p { color: rgba(255,255,255,0.92); margin-bottom: 0.85rem; }
.signoff-card code { background: rgba(255,255,255,0.18); color: var(--brand-green); }
.signature { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-top: 1rem !important; }
.signature b { color: white; }

/* FOOTER */
footer { background: white; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
footer p { color: var(--muted); font-size: 0.8125rem; text-align: center; line-height: 1.7; }
footer a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--brand-blue-bright); text-decoration: underline; }

/* SEARCH HIGHLIGHT */
mark { background: var(--brand-green); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.dim { opacity: 0.25; }

/* MOBILE */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 1rem 2rem; }
  .toc { order: -1; }
  .toc-inner { position: relative; top: auto; }
  .toc nav { display: none; }
  .toc nav.open { display: flex; }
  .content section { margin-bottom: 2.5rem; }
  table { font-size: 0.8125rem; }
  th, td { padding: 0.5rem 0.65rem; }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
