/* NodeLib — editorial / product-doc aesthetic (static, no scripts) */
:root {
  --bg: #f2efe8;
  --paper: #fffdf8;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d4d1c9;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #ccfbf1;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(28, 25, 23, 0.06), 0 14px 36px rgba(28, 25, 23, 0.08);
  --max: 1080px;
  --sans: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Aliases for older per-page inline styles */
  --mist: var(--bg);
  --brand: var(--accent);
  --brand-2: #0d9488;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; vertical-align: middle; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid rgba(15, 118, 110, 0.45); outline-offset: 2px; }
.skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  position: fixed; left: 12px; top: 12px; width: auto; height: auto; padding: 10px 12px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; z-index: 9999;
}
.nl-wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.nl-pill {
  display: inline-flex; gap: 8px; align-items: center; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 0.8rem;
  color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase;
}
.nl-kbd { font-family: var(--mono); font-size: 0.92em; background: #e7e5e4; padding: 0.1em 0.35em; border-radius: 4px; }
.nl-muted { color: var(--muted); }
.nl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  font-family: var(--sans);
}
.nl-btn-primary {
  background: var(--accent);
  color: #ecfdf5;
  border-color: #0d9488;
}
.nl-btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.nl-btn-ghost {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.nl-btn-ghost:hover { text-decoration: none; background: #f5f5f4; }
.nl-site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.nl-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0;
}
.nl-brand {
  display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.25rem;
}
.nl-brand:hover { text-decoration: none; }
.nl-brand img { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.nl-nav-toggle { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.nl-nav-btn {
  display: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  font-family: var(--sans);
  cursor: pointer;
}
.nl-nav-panel { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: flex-end; }
.nl-nav-panel a { color: var(--ink); font-weight: 650; font-size: 0.92rem; text-decoration: none; }
.nl-nav-panel a:hover { text-decoration: underline; color: var(--accent); }
@media (max-width: 980px) {
  .nl-nav-btn { display: inline-flex; }
  .nl-nav-panel {
    display: none; width: 100%;
    padding: 14px 0 6px; border-top: 2px solid var(--line);
  }
  #nl-nav:checked ~ .nl-nav-panel { display: flex; }
}
.nl-foot {
  margin-top: 56px;
  background: #1c1917;
  color: #e7e5e4;
  border-top: 2px solid #292524;
}
.nl-foot a { color: #99f6e4; }
.nl-footgrid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 44px 0;
}
@media (max-width: 900px) {
  .nl-footgrid { grid-template-columns: 1fr; }
}
.nl-foot h2 { font-size: 0.78rem; margin: 0 0 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #a8a29e; font-family: var(--sans); }
.nl-foot p, .nl-foot li { color: #d6d3d1; }
.nl-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nl-baseline { border-top: 1px solid #44403c; padding: 16px 0 22px; color: #a8a29e; font-size: 0.88rem; }
.nl-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .nl-grid-3 { grid-template-columns: 1fr; } }
.nl-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .nl-grid-2 { grid-template-columns: 1fr; } }
.nl-section { padding: 44px 0; }
.nl-h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
  font-weight: 700;
}
.nl-h2 {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}
.nl-prose p { margin: 0 0 12px; }
.nl-prose h3 { margin: 18px 0 8px; font-size: 1.05rem; font-family: var(--serif); }
.nl-table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table.nl-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.nl-table th, .nl-table td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nl-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: #fafaf9; }
.nl-table caption { caption-side: top; text-align: left; padding: 12px 12px; font-weight: 800; font-family: var(--serif); }
details.nl-details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--paper); }
details.nl-details + details.nl-details { margin-top: 10px; }
summary.nl-summary { cursor: pointer; font-weight: 800; }
.nl-figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.nl-figure figcaption { padding: 10px 12px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); background: #fafaf9; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
