/* WizeTool design system. One file, no build step, no layout shift.
   Change the look of the entire network by editing the tokens in :root. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
  --ink: #1a1a2e;
  --text: #1f1f1f;
  --muted: #6b7280;
  --line: #e3e3e3;
  --bg: #ffffff;
  --soft: #f5f5f5;
  --brand: #5b4dff;
  --brand-dark: #4538e0;
  --tint: #eef0ff;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --container: 1100px;
  --content: 700px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--content); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 780; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; flex: 1; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-link { display: inline-block; padding: 8px 12px; color: var(--ink); font-weight: 560; font-size: .98rem; text-decoration: none; border-radius: var(--r-sm); }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--soft); color: var(--ink); }
.has-menu { position: relative; display: flex; align-items: center; }
.menu-btn { border: 0; background: none; color: var(--muted); padding: 8px 6px 8px 0; margin-left: -6px; cursor: pointer; display: grid; place-items: center; }
.menu-btn svg { transition: transform .15s; }
.has-menu.open .menu-btn svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 6px); left: -12px; min-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 20px 40px -16px rgba(16, 24, 40, .25); padding: 8px; display: none; }
.has-menu:hover .menu, .has-menu.open .menu { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li > a, .menu li > span { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); align-items: flex-start; }
.menu li > a:hover { background: var(--soft); }
.menu strong { display: block; color: var(--ink); font-weight: 650; line-height: 1.3; }
.menu small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.menu .icon { color: var(--brand); margin-top: 2px; flex: none; }
.menu .is-soon { opacity: .65; }
.menu-all a { justify-content: center; font-weight: 620; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); margin-top: 4px; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; }

.search { position: relative; }
.search input { width: 260px; font: inherit; font-size: .95rem; padding: 9px 14px 9px 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; color: var(--ink); }
.search input:focus { background-color: #fff; border-color: var(--brand); }
.search-results { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 90vw); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 20px 40px -16px rgba(16, 24, 40, .25); max-height: 70vh; overflow: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); }
.search-results a strong { display: block; color: var(--ink); }
.search-results a small { color: var(--muted); }
.search-results a:hover, .search-results [aria-selected="true"] a { background: var(--tint); }
.search-results .none { padding: 12px; color: var(--muted); }

/* ---------- buttons, tags, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #cfd4dc; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.tag-live { background: var(--ok-bg); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { font: inherit; font-size: .95rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 64px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); background: var(--soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.lead { font-size: 1.1rem; line-height: 1.6; color: var(--text); max-width: var(--content); }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.ticks li::before { content: "\2713"; color: var(--ok); font-weight: 600; margin-right: 8px; }

.frame { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .35); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f2f4f7; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.frame-bar em { margin-left: 10px; flex: 1; font-style: normal; font-size: .8rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.frame-media { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; background: #fff; }

/* ---------- sections, cards ---------- */
.section { padding: clamp(32px, 5vw, 56px) 0; }
.section-tight { padding: clamp(20px, 4vw, 32px) 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: var(--content); margin-bottom: 24px; }
.section-head p { color: var(--muted); }
.page-head { padding: clamp(24px, 5vw, 48px) 0 8px; }
.group-title { margin: 24px 0 14px; font-size: 1.2rem; }
.more { margin-top: 20px; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.card-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--tint); color: var(--brand); }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card-title { color: var(--ink); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.card-text { color: var(--text); font-size: .92rem; line-height: 1.5; }
.card-meta { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.card-soon { background: var(--soft); }
.card-soon .card-icon { background: #fff; color: var(--muted); }
.card-guide { flex-direction: column; gap: 6px; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: clamp(24px, 4vw, 40px); margin-bottom: 16px; background: var(--ink); color: #d0d5dd; border-radius: var(--r-md); }
.feature h3 { color: #fff; font-size: 1.7rem; margin: 12px 0 8px; }
.feature p { color: #d0d5dd; }
.feature .btn-primary { background: #fff; color: var(--ink); }
.feature .btn-primary:hover { background: var(--tint); }
.feature .btn-secondary { background: transparent; color: #fff; border-color: #475467; }
.feature .btn-secondary:hover { border-color: #fff; color: #fff; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.feature-list li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--brand); }
.feature-list strong { color: #fff; }
.feature-list span { font-size: .95rem; }

.principles, .benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.principles h3, .benefits h2 { font-size: 1.15rem; margin-bottom: 6px; }
.principles p, .benefits p { margin: 0; color: var(--text); }

.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 14px; max-width: 68ch; line-height: 1.6; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #98a2b3; }
.breadcrumbs a { color: var(--muted); }

/* ---------- article / prose ---------- */
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 64px; }
.article-aside { position: relative; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: .93rem; line-height: 1.6; }
.toc h2 { font-size: .9rem; margin-bottom: 12px; color: var(--ink); letter-spacing: .02em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.prose { max-width: var(--content); line-height: 1.6; font-size: 1rem; }
.prose h1 { margin-bottom: .4em; }
.prose h2 { margin-top: 2.4em; padding-top: .3em; font-size: 1.25rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.6em 0; padding: .3em 0 .3em 1.2em; border-left: 3px solid var(--brand); color: var(--ink); font-size: 1rem; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--ink); }
.prose pre { font-family: var(--mono); font-size: .85rem; line-height: 1.55; background: #1a1a2e; color: #d0d5dd; border-radius: 8px; padding: 18px 20px; margin: 1.6em 0; overflow-x: auto; white-space: pre; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: .9rem; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.prose th { background: var(--tint); font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--brand); }
.prose td { background: #fff; }
.prose tr:nth-child(even) td { background: var(--soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.byline { color: var(--muted); font-size: .9rem; margin-bottom: 1.6em; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 2.4em 0 0; padding: 28px; background: var(--tint); border-radius: var(--r-md); }
.cta-card h2 { margin: 0 0 6px; padding: 0; font-size: 1.25rem; }
.cta-card p { margin: 0; max-width: 46ch; }

/* ---------- ads: reserved space, clear label, never beside a CTA ---------- */
.ad { margin: 40px auto; max-width: 980px; min-height: 300px; text-align: center; clear: both; }
.ad-label { display: block; margin-bottom: 6px; font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.ad ins { min-height: 250px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.prose .ad { margin: 2.4em 0; }
.ad-preview .ad-box { display: grid; place-items: center; min-height: 250px; background: #eef0f4; border: 1px dashed #c5cad3; border-radius: var(--r-sm); color: var(--muted); font-size: .9rem; }

/* ---------- AI chat assistant ---------- */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 24px -8px rgba(91, 77, 255, .55);
  animation: chat-pulse 3.2s ease-in-out infinite;
}
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab:hover { transform: translateY(-2px) scale(1.05); background: var(--brand-dark); box-shadow: 0 12px 28px -8px rgba(91, 77, 255, .7); animation: none; }
.chat-fab:active { transform: translateY(0) scale(.96); }
.chat-fab.open { animation: none; background: var(--brand-dark); }
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(91, 77, 255, .55), 0 0 0 0 rgba(139, 92, 246, .35); }
  50% { box-shadow: 0 8px 24px -8px rgba(91, 77, 255, .55), 0 0 0 8px rgba(139, 92, 246, .18); }
}

.chat-window {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 60;
  width: min(380px, 92vw);
  height: min(520px, 78vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 50px -16px rgba(16, 24, 40, .25);
  overflow: hidden;
}
.chat-window.hidden { display: none; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.chat-head svg { color: #fff; }
.chat-head button {
  margin-left: auto;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.chat-head button:hover { background: rgba(255,255,255,.32); }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--soft);
}
.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .94rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.sources {
  align-self: flex-start;
  font-size: .82rem;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--tint);
  padding: 8px 12px;
  border-radius: 10px;
}
.chat-msg.sources a { color: var(--brand); }
.chat-msg.thinking {
  color: var(--muted);
  font-style: italic;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-form input {
  flex: 1;
  font: inherit;
  font-size: .94rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}
.chat-form input:focus { border-color: var(--brand); }
.chat-form button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.chat-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(91, 77, 255, .6); }
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-foot {
  padding: 6px 14px 10px;
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  background: #fff;
}
@media (max-width: 560px) {
  .chat-window { right: 8px; bottom: 72px; }
  .chat-fab { right: 12px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-fab { transition: none; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 0; background: var(--soft); border-top: 1px solid var(--line); padding: 40px 0 20px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 10px; line-height: 1.5; }
.social-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 10px; }
.social-list li { margin: 0; }
.social-link { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; width: 36px; height: 36px; border-radius: 8px; transition: background .15s, color .15s, transform .1s; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link:hover { background: var(--tint); color: var(--brand); transform: scale(1.08); }
.social-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.site-footer h2 { font-size: .9rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul.social-list { display: flex; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout { gap: 8px; }
  .toc { position: static; margin-bottom: 8px; }
  .toc ol { grid-template-columns: 1fr; }
  .principles, .benefits { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .js .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .menu-btn { display: none; }
  .menu { position: static; display: block; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 8px; }
  .has-menu { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .search-results { position: static; width: 100%; margin-top: 8px; }
  .nav-link { padding: 12px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
