:root {
  --blue-900: #0f2a5c;
  --blue-700: #1a4fd0;
  --blue-600: #1f5fe6;
  --blue-500: #3b7bf5;
  --blue-100: #e6eefd;
  --blue-50: #f3f7fe;
  --ink: #0f1a2e;
  --ink-soft: #3d4a60;
  --muted: #66738a;
  --line: #e3e8f1;
  --surface: #ffffff;
  --page: #f6f8fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 26, 46, 0.05), 0 8px 24px rgba(15, 26, 46, 0.05);
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-700); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue-700);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo { width: 40px; height: auto; display: block; }
.brand__name {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.topnav { display: flex; gap: 28px; flex: 1; }
.topnav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 22px 0;
}
.topnav a:hover { color: var(--blue-700); }
.topnav a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.topnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
}
.back-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--surface);
  border: 1px solid #cfdaf3;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.back-btn:hover { background: var(--blue-50); border-color: var(--blue-500); }
.back-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero */
main { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px;
  padding: 36px 0 12px;
}
.pill {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
}
.hero h1 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--blue-900);
  margin: 16px 0 12px;
}
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 14px; max-width: 34em; }
.hero__meta { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hero__art { display: flex; justify-content: flex-end; }
.hero__art img { width: 100%; max-width: 420px; height: auto; }

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--blue-50);
  border: 1px solid #dbe5f8;
  border-radius: var(--radius);
  margin: 12px 0 32px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}
.highlight + .highlight { border-left: 1px solid #dbe5f8; }
.highlight__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(31, 95, 230, 0.12);
}
.highlight__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.highlight h2 { font-size: 1rem; margin: 0; color: var(--ink); }
.highlight p { margin: 2px 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 12px;
}
.toc__title { font-weight: 700; font-size: 0.95rem; margin: 0 12px 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}
.toc a span { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.toc a:hover { background: var(--blue-50); color: var(--blue-700); }
.toc a.is-active {
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  border-left-color: var(--blue-600);
}
.toc a.is-active span { color: var(--blue-700); }

.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 40px 32px;
}
.content section { padding: 28px 0 8px; }
.content section + section { border-top: 1px solid var(--line); }
.content h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--blue-900);
  margin: 0 0 10px;
}
.content h2 .num { color: var(--blue-600); margin-right: 10px; }
.content p { margin: 0 0 14px; color: var(--ink-soft); }
.content ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.content li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--ink-soft); }
.content li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
}
.content strong { color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 4px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 16px; }
th { background: var(--blue-50); color: var(--ink); font-weight: 600; }
td { color: var(--ink-soft); border-top: 1px solid var(--line); }
td:first-child { color: var(--ink); font-weight: 500; width: 34%; }

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: var(--blue-50);
  border: 1px solid #dbe5f8;
  border-radius: 12px;
  padding: 18px 22px;
}
.contact-card p { margin: 0; }
.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.contact-card__value { color: var(--ink) !important; font-weight: 600; word-break: break-word; }

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--surface);
}

/* Responsive */
@media (max-width: 960px) {
  .topnav { gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero__art { justify-content: center; order: -1; }
  .hero__art img { max-width: 300px; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar__inner { gap: 12px; padding: 0 16px; }
  .topnav { display: none; }
  .brand__name { font-size: 1.15rem; }
  main { padding: 0 16px 48px; }
  .highlights { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid #dbe5f8; }
  .content { padding: 4px 20px 24px; }
  .contact-card { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
}

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

@media print {
  .topbar, .toc, .hero__art, .back-btn, .skip-link { display: none !important; }
  body, .content, .highlights { background: #fff; box-shadow: none; }
  .layout { display: block; }
  .content { border: 0; padding: 0; }
}
