/* Network Toolkit website - shared stylesheet. No external resources. */
:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --line: #E2E5EA;
  --text: #0E1116;
  --muted: #5A6472;
  --green: #10B981;
  --green-text: #047857;
  --violet: #5546D8;
  --hero-bg: #0E1116;
  --hero-text: #F2F4F7;
  --hero-muted: #B4BDC9;
  --hero-green: #34D399;
  --focus: #5546D8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Avenir Next", Avenir, Montserrat, "Century Gothic", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10;
    --surface: #14171C;
    --line: #252A33;
    --text: #F2F4F7;
    --muted: #9AA4B2;
    --green: #34D399;
    --green-text: #34D399;
    --violet: #A79DFF;
    --hero-bg: #14171C;
    --focus: #A79DFF;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 750; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

.skip-link {
  position: absolute; left: 16px; top: -100px; background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; z-index: 10; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.brand svg { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); border: 1px solid var(--line); }

/* Cards, buttons */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 32px); }
.hero-card { background: var(--hero-bg); color: var(--hero-text); border-radius: 24px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); }
.hero-card p { color: var(--hero-muted); }
.hero-card h1, .hero-card h2 { color: var(--hero-text); }
.hero-card a:not(.btn) { color: var(--hero-green); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 12px 26px; border-radius: 16px; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: var(--green); color: #0E1116; border: 2px solid transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.hero-card .btn:focus-visible { outline-color: var(--hero-green); }
.eyebrow { color: var(--green-text); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; margin-bottom: .8em; }
.hero-card .eyebrow { color: var(--hero-green); }

section { margin: 56px 0; }
.hero { margin-top: 12px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 320px); height: auto; }
.lead { font-size: 1.2rem; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid .card h3 { margin-bottom: .4em; }
.grid .card p { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--green-text); }
.compare { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
ul.plain { margin: 0; padding-left: 1.2em; }
ul.plain li { margin-bottom: .4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text); }

/* Legal pages */
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal .meta { color: var(--muted); margin-bottom: 1.5em; }
.legal section { margin: 40px 0; }
.legal h2 { font-size: 1.4rem; scroll-margin-top: 16px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: .3em; break-inside: avoid; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.placeholder { background: rgba(85, 70, 216, .12); border-radius: 4px; padding: 0 4px; }
.center { text-align: center; padding: 64px 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  :root { --bg: #fff; --surface: #fff; --line: #bbb; --text: #000; --muted: #333; --violet: #000; }
  body { font-size: 11pt; line-height: 1.5; background: #fff; color: #000; }
  .site-header .site-nav, .skip-link, .btn, .toc { display: none; }
  .card, .hero-card { border: 0; padding: 0; background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  section { margin: 18pt 0; break-inside: avoid-page; }
  h2, h3 { break-after: avoid; }
  .table-scroll { overflow: visible; border: 1px solid #999; }
  table { min-width: 0; }
  .site-footer { border-top: 1px solid #999; margin-top: 24pt; }
}
