/* ==========================================================================
   Hosted~FTP~ Help Center
   Same design system as the hostedftp.com redesign: dark hero / light body,
   lime brand accent, Plus Jakarta Sans + JetBrains Mono. Plus the docs layout,
   article typography and search.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see /assets/fonts) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink-950: #060b16;
  --ink-900: #0a1222;
  --ink-850: #0d1729;
  --ink-800: #111d33;
  --ink-700: #1a2844;
  --ink-600: #26375a;
  --ink-400: #8a98b3;
  --ink-300: #b3bfd4;
  --ink-200: #d6deeb;

  --text: #0b1324;
  --text-2: #364152;
  --text-3: #5a6678;
  --line: #e4e9f0;
  --line-2: #d2d9e3;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;

  --lime-50: #f3f9ec;
  --lime-100: #e4f3d4;
  --lime-200: #cdeab0;
  --lime-300: #b6df8c;
  --lime-400: #9fd16e;   /* brand green */
  --lime-500: #86bd52;
  --lime-600: #5f9a2f;
  --lime-700: #3f7a1b;   /* accessible green on white */
  --teal-400: #4fd6c4;
  --danger: #c62828;
  --logo-gray: #969696;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .05), 0 2px 6px rgba(11, 19, 36, .05);
  --shadow: 0 2px 4px rgba(11, 19, 36, .04), 0 12px 32px -12px rgba(11, 19, 36, .18);
  --shadow-lg: 0 30px 70px -28px rgba(6, 11, 22, .55);
  --ring: 0 0 0 4px rgba(159, 209, 110, .28);

  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;   /* long error codes and e-mail addresses wrap instead of widening the page on phones */
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 {
  margin: 0; color: var(--text); font-weight: 700; line-height: 1.15; letter-spacing: -.022em; text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
figure { margin: 0; }
strong { color: inherit; font-weight: 700; }
::selection { background: var(--lime-200); color: var(--text); }
:focus-visible { outline: 2px solid var(--lime-500); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* the icon symbols every page carries (partials/icons.html) */
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 10px;
  background: var(--lime-400); color: var(--ink-950); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 2px 6px; border-radius: 6px; text-align: center;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; line-height: 1.4;
  color: var(--text-2); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 1px 0 var(--line-2);
}

/* ---------- Dark surfaces ---------- */
.on-dark { color: var(--ink-300); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .eyebrow { color: var(--lime-300); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: .82em; --btn-pad-x: 1.35em;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent; border-radius: 12px;
  font-weight: 650; font-size: .97rem; line-height: 1.2; letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--lime-400); color: var(--ink-950);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -10px rgba(134, 189, 82, .75);
}
.btn-primary:hover { background: var(--lime-300); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--text); }
.btn-dark { background: var(--ink-900); color: #fff; box-shadow: 0 10px 24px -12px rgba(6, 11, 22, .6); }
.btn-dark:hover { background: var(--ink-700); transform: translateY(-1px); }
.btn-sm { --btn-pad-y: .6em; --btn-pad-x: 1.05em; font-size: .9rem; border-radius: 10px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { --btn-pad-y: .98em; --btn-pad-x: 1.6em; font-size: 1.02rem; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions.center { justify-content: center; }
@media (max-width: 560px) { .actions .btn { flex: 1 1 auto; } }   /* phones: buttons fill each row instead of leaving ragged edges */
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lime-700); }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--lime-700);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; flex: none;
  background: var(--lime-400); box-shadow: 0 0 0 4px rgba(159, 209, 110, .2);
}
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 14px; font-size: clamp(1.8rem, 1.15rem + 2.1vw, 2.75rem); font-weight: 750; letter-spacing: -.03em; }
.section-head > h2:first-child { margin-top: 0; }
.section-head h2.h-sm { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.95rem); }
.section-head .sub { margin-top: 16px; font-size: 1.1rem; color: var(--text-3); }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.split-head .section-head { margin-bottom: 0; }
.body-lg { font-size: 1.08rem; line-height: 1.75; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1; }
.logo-mark { width: 152px; height: auto; }
.logo-hosted { fill: var(--logo-gray); }
.logo-ftp { fill: var(--lime-400); }
.logo-sub {
  font-family: var(--font-mono); font-size: .58rem; font-weight: 600; letter-spacing: .21em; text-transform: uppercase;
  color: var(--lime-300); white-space: nowrap; padding-left: 1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h); margin-bottom: calc(-1 * var(--header-h));
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled, body.nav-open .site-header {
  background: rgba(6, 11, 22, .92);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6);
}
/* backdrop-filter would make the header the containing block of the fixed mobile nav, so drop it while the menu is open */
body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink-950); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .94rem; transition: color .2s, background-color .2s;
}
.has-menu .nav-link { padding-right: 4px; }
.nav-link:hover, .nav-item.open .nav-link, .nav-item.is-active .nav-link { color: #fff; }
.nav-item.is-active .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -6px; height: 2px; border-radius: 2px; background: var(--lime-400);
}
.nav-item.has-menu.is-active .nav-link::after { right: 30px; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: rgba(255, 255, 255, .6); transition: color .2s;
}
.nav-toggle .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-item.open .nav-toggle { color: #fff; }
.nav-item.open .nav-toggle .icon { transform: rotate(180deg); }
.nav-toggle:hover { color: #fff; }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 10; width: 740px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; color: var(--text-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(6, 11, 22, .45), 0 2px 8px rgba(6, 11, 22, .06);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 14px; }
.mega-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px;
  color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.3; transition: background-color .15s, color .15s;
}
.mega-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--lime-50); color: var(--lime-700); border: 1px solid var(--lime-100); transition: background-color .15s, color .15s, border-color .15s;
}
.mega-ic .icon { width: 18px; height: 18px; }
.mega-link:hover, .mega-link[aria-current="page"] { background: var(--bg-alt); }
.mega-link:hover .mega-ic { background: var(--lime-400); color: var(--ink-950); border-color: var(--lime-400); }
.mega-foot {
  display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 24px; border-top: 1px solid var(--line);
  background: var(--bg-alt); border-radius: 0 0 18px 18px;
}
.mega-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .88rem; color: var(--lime-700); }
.mega-foot a .icon { width: 16px; height: 16px; transition: transform .2s; }
.mega-foot a:hover .icon { transform: translateX(3px); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--ink-300);
  font-size: .88rem; font-weight: 600; transition: color .2s, border-color .2s, background-color .2s;
}
.search-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .09); }
.search-btn .icon { width: 17px; height: 17px; }
.search-kbd { color: var(--ink-400); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.login-link { padding: 9px 12px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .94rem; border-radius: 10px; transition: color .2s; }
.login-link:hover { color: #fff; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff;
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-ic-close { display: none; }
body.nav-open .menu-ic-open { display: none; }
body.nav-open .menu-ic-close { display: block; }
.nav-mobile-cta { display: none; }

@media (max-width: 1240px) {
  .search-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; }
  .search-btn-label, .search-kbd { display: none; }
}
@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .logo-mark { width: 136px; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }   /* nav is out of flow here, so push search, Sign Up and the menu button to the right edge */
  .header-actions .login-link { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 40px; background: var(--ink-950);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-row { justify-content: space-between; }
  .nav-link { padding: 16px 2px; font-size: 1.12rem; color: #fff; }
  .nav-item.is-active .nav-link::after { display: none; }
  .nav-item.is-active .nav-link { color: var(--lime-300); }
  .nav-toggle { width: 44px; height: 44px; color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; }
  .mega {
    position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none;
    background: transparent; border: 0; box-shadow: none; color: var(--ink-300);
  }
  .nav-item.open .mega { display: block; transform: none; }
  .mega::before { display: none; }
  .mega-list { grid-template-columns: minmax(0, 1fr); padding: 0 0 12px; }
  .mega-link { color: var(--ink-200); padding: 10px 6px; }
  .mega-link:hover, .mega-link[aria-current="page"] { background: rgba(255, 255, 255, .05); }
  .mega-ic { background: rgba(159, 209, 110, .1); border-color: rgba(159, 209, 110, .2); color: var(--lime-300); }
  .mega-foot { background: transparent; border-top: 0; padding: 0 6px 16px; border-radius: 0; }
  .mega-foot a { color: var(--lime-300); }
  .nav-mobile-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
}
@media (max-width: 480px) {
  .header-actions .header-cta { display: none; }
  .header-actions { gap: 8px; }
  .nav-mobile-cta { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Hero backgrounds ---------- */
.hero, .page-hero, .docs-hero, .section-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 55% at 82% 18%, rgba(159, 209, 110, .20), transparent 62%),
    radial-gradient(40% 45% at 6% 4%, rgba(79, 214, 196, .13), transparent 60%),
    radial-gradient(70% 50% at 50% 110%, rgba(38, 55, 90, .55), transparent 70%),
    linear-gradient(180deg, #050a14 0%, #0a1222 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 30%, #000 30%, transparent 78%);
}
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 209, 110, .45), transparent);
}
.hl { background: linear-gradient(92deg, var(--lime-300) 0%, var(--lime-400) 40%, var(--teal-400) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Home hero ---------- */
.hero-home { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(128px, 13vw, 176px); text-align: center; }
.hero-center { display: flex; flex-direction: column; align-items: center; }
.hero-home h1 { margin-top: 22px; font-size: clamp(2rem, .9rem + 4vw, 4.4rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; }
.hero-home h1 .hl { white-space: nowrap; }                      /* "We Protect Your Data" always stays on one line */
@media (min-width: 600px) { .hero-home h1 .h1-lead { white-space: nowrap; } }
.hero-home .actions { margin-top: 28px; }

/* ---------- Hero search (with results under it) ---------- */
.hero-search {
  position: relative; display: flex; align-items: center; gap: 8px; width: min(100%, 680px); margin: 34px auto 0; padding: 8px;
  border-radius: 18px; background: #fff; text-align: left;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 7px rgba(159, 209, 110, .1);
  transition: box-shadow .2s;
}
.hero-search:focus-within { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(159, 209, 110, .7), 0 0 0 7px rgba(159, 209, 110, .25); }
.hs-ic { width: 22px; height: 22px; margin-left: 12px; color: var(--text-3); }
.hs-input {
  flex: 1; width: 0; min-width: 0; height: 50px; padding: 0 4px; border: 0; outline: none; background: transparent;   /* width 0: the box never forces the hero wider than a phone */
  font-size: 1.06rem; color: var(--text); -webkit-appearance: none; appearance: none;
}
.hs-input::placeholder { color: #8b95a5; }
.hs-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hs-btn { height: 50px; border-radius: 12px; }
.hs-btn-ic { display: none; }
@media (max-width: 480px) {
  .hero-search { padding: 6px; border-radius: 16px; }
  .hs-ic { margin-left: 8px; }
  .hs-input { height: 46px; font-size: 1rem; }
  .hs-btn { flex: none; width: 46px; height: 46px; padding: 0; }   /* arrow-only button, so the placeholder fits */
  .hs-btn-label { display: none; }
  .hs-btn-ic { display: block; }
}
/* Results under a big search box. site.js moves the list to the end of <body> and sets its position, width and top,
   so the hero (which clips its background) and the cards below it can never cover it. */
.search-pop {
  position: absolute; z-index: 85; max-height: min(62vh, 520px); overflow-y: auto; text-align: left;
  padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.page-hero:not(.page-hero-center) .hero-search { margin-left: 0; }

/* search results (hero dropdown and dialog) */
.sr-item { display: block; padding: 11px 14px; border-radius: 12px; color: var(--text-2); scroll-margin: 8px; }
.sr-item + .sr-item { margin-top: 2px; }
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--bg-alt); }
.sr-item[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--lime-500); }
.sr-meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-700); }
.sr-meta .icon { width: 13px; height: 13px; }
.sr-title { display: block; margin-top: 3px; font-weight: 700; font-size: .98rem; line-height: 1.35; color: var(--text); }
.sr-snippet { display: -webkit-box; margin-top: 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .87rem; line-height: 1.5; color: var(--text-3); }
.sr-item mark { padding: 0; border-radius: 2px; background: var(--lime-100); color: var(--text); box-shadow: 0 0 0 1px var(--lime-100); }
.sr-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 11px; border-radius: 12px; font-weight: 650; font-size: .9rem; color: var(--lime-700); }
.sr-more:hover, .sr-more[aria-selected="true"] { background: var(--lime-50); }
.sr-more .icon { width: 16px; height: 16px; }
.sr-empty { padding: 16px 14px; font-size: .94rem; color: var(--text-3); }
.sr-empty strong { color: var(--text); }
.sr-empty a { color: var(--lime-700); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 1.35rem + 2.9vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; max-width: 22ch; }
.page-hero .lead { margin-top: 20px; max-width: 60ch; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); line-height: 1.7; color: var(--ink-300); }
.page-hero .actions { margin-top: 28px; }
.page-hero-center { text-align: center; }
.page-hero-center .page-hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.page-hero-center .page-hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.page-hero-center h1, .page-hero-center .lead { margin-inline: auto; }
.page-hero-center .crumbs ol { justify-content: center; }
.page-hero-center .actions { justify-content: center; }
.page-hero-tall { min-height: min(78vh, 760px); display: flex; align-items: center; }
.page-hero-tall .page-hero-grid { width: min(100% - 2 * var(--gutter), var(--container)); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin-bottom: 22px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--ink-600); }
.crumbs a { position: relative; transition: color .2s; }
.crumbs a::after { content: ""; position: absolute; inset: -7px -4px; }   /* bigger tap area, same look */
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--lime-300); }

.hero-emblem { position: relative; width: 260px; aspect-ratio: 1; display: grid; place-items: center; justify-self: end; }
.hero-emblem .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(159, 209, 110, .22); }
.hero-emblem .r1 { inset: 0; border-style: dashed; border-color: rgba(255, 255, 255, .1); animation: spin 60s linear infinite; }
.hero-emblem .r2 { inset: 13%; }
.hero-emblem .r3 { inset: 27%; background: radial-gradient(circle, rgba(159, 209, 110, .14), transparent 70%); }
.hero-emblem .orbit { position: absolute; inset: 13%; border-radius: 50%; animation: spin 18s linear infinite; }
.hero-emblem .orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--lime-400); box-shadow: 0 0 14px 2px rgba(159, 209, 110, .7); }
.hero-emblem .o2 { inset: 0; animation-duration: 30s; animation-direction: reverse; }
.hero-emblem .o2::after { background: var(--teal-400); box-shadow: 0 0 14px 2px rgba(79, 214, 196, .6); }
.hero-emblem .core {
  position: relative; width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(159, 209, 110, .24), rgba(79, 214, 196, .07));
  border: 1px solid rgba(159, 209, 110, .45); color: var(--lime-300);
  box-shadow: 0 0 70px -6px rgba(159, 209, 110, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.hero-emblem .core .icon { width: 46px; height: 46px; stroke-width: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-emblem { display: none; } }

/* ---------- Sections & grids ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-compact { padding: clamp(48px, 6vw, 72px) 0; }
.section-compact .section-head { margin-bottom: 28px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 681px) and (max-width: 1000px) { .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }   /* tablets: no lonely card in the last row */
@media (min-width: 681px) and (max-width: 1100px) { .grid-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: block; padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.card-title { margin-top: 20px; font-size: 1.12rem; line-height: 1.35; letter-spacing: -.012em; font-weight: 700; padding-right: 8px; }
.card p { margin-top: 10px; font-size: .96rem; color: var(--text-3); }
.card-link:hover { border-color: var(--lime-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-arrow {
  position: absolute; top: 26px; right: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-3); border: 1px solid var(--line); transition: all .25s var(--ease);
}
.card-arrow .icon { width: 16px; height: 16px; }
.card-link:hover .card-arrow { background: var(--lime-400); border-color: var(--lime-400); color: var(--ink-950); transform: rotate(45deg); }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(160deg, var(--lime-50), var(--lime-100)); color: var(--lime-700); border: 1px solid var(--lime-200);
}
.icon-tile .icon { width: 23px; height: 23px; }
.icon-tile-lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-tile-lg .icon { width: 26px; height: 26px; }
.section-alt .card { box-shadow: var(--shadow-sm); }

/* quick links overlapping the home hero */
.quick-section { position: relative; z-index: 2; padding-top: 0; padding-bottom: clamp(16px, 3vw, 32px); margin-top: calc(-1 * clamp(84px, 9vw, 112px)); }
.quick-grid { --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.quick-grid > .card { flex: 0 1 calc((100% - 4 * var(--gap)) / 5); min-width: 0; padding: 22px 22px 24px; box-shadow: var(--shadow); }
.quick-grid .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.quick-grid .icon-tile .icon { width: 21px; height: 21px; }
.quick-grid .card-title { margin-top: 18px; font-size: 1.02rem; }
.quick-grid .card p { font-size: .9rem; }
.quick-grid .card-arrow { top: 22px; right: 20px; width: 30px; height: 30px; }
@media (max-width: 1180px) { .quick-grid > .card { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 760px) { .quick-grid > .card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 520px) { .quick-grid > .card { flex-basis: 100%; } }

/* ---------- Badges ---------- */
.badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.badges li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.badge-tile {
  width: 140px; height: 140px; padding: 18px; border-radius: 22px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.badge-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lime-200); }
.badge-tile img { max-width: 100%; max-height: 100px; width: auto; object-fit: contain; }
.badge-name { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--text-3); }
@media (max-width: 520px) { .badges li { width: calc(50% - 9px); } .badge-tile { width: 100%; height: 128px; } }

/* ---------- Other topics ---------- */
.topic-tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic-tile {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 700; line-height: 1.3;
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.tt-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-900); color: var(--lime-400); }
.tt-ic .icon { width: 20px; height: 20px; }
.tt-label { flex: 1; }
.topic-tile > .icon { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.topic-tile:hover { border-color: var(--lime-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.topic-tile:hover > .icon { color: var(--lime-700); transform: translateX(3px); }
@media (max-width: 1000px) { .topic-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .topic-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .topic-tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Security band (home) ---------- */
.cyber { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.cyber-copy h2 { margin-top: 16px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.14; font-weight: 800; letter-spacing: -.03em; }
.cyber-copy p { margin-top: 20px; font-size: 1.06rem; line-height: 1.78; color: var(--ink-300); }
.cyber-art {
  position: relative; display: grid; justify-items: center; gap: 30px; padding: clamp(28px, 4vw, 44px);
  border-radius: 24px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09);
}
.cloud-orb {
  position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(159, 209, 110, .35), rgba(159, 209, 110, .08)); border: 1px solid rgba(159, 209, 110, .55);
  color: var(--lime-300); box-shadow: 0 0 44px rgba(159, 209, 110, .35);
}
.cloud-orb .icon { width: 34px; height: 34px; }
.cloud-orb .pulse { position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(159, 209, 110, .35); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.cloud-logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-tile { width: 156px; height: 108px; padding: 14px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.logo-tile img { max-height: 78px; width: auto; object-fit: contain; }
@media (max-width: 900px) { .cyber { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA ---------- */
.cta-section { padding-top: clamp(40px, 5vw, 72px); }
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 72px); border-radius: var(--radius-xl);
  background: var(--ink-950); color: var(--ink-300);
}
.cta-glow { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 80% at 15% 100%, rgba(159, 209, 110, .28), transparent 70%),
    radial-gradient(40% 70% at 90% 0%, rgba(79, 214, 196, .2), transparent 70%),
    linear-gradient(180deg, #0a1222, #060b16);
}
.cta-glow::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cta .eyebrow { color: var(--lime-300); justify-content: center; }
.cta h2 { max-width: 34ch; margin: 18px auto 0; color: #fff; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.24; font-weight: 750; letter-spacing: -.025em; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .25s; }
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { border-color: var(--lime-200); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px;
  list-style: none; cursor: pointer; font-weight: 650; font-size: 1.03rem; line-height: 1.45; color: var(--text); border-radius: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--text-2); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq-icon .icon { width: 17px; height: 17px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--lime-400); color: var(--ink-950); }
.faq-answer { padding: 0 22px 22px; color: var(--text-2); }
.faq-answer > * + * { margin-top: 12px; }
.faq-answer ul, .faq-answer ol { padding-left: 20px; display: grid; gap: 8px; }
.faq-answer a { color: var(--lime-700); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--text); }
.faq-img img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.section-alt .faq-item { box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-head { position: static; } }

/* ---------- Topic pages ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.topic-grid:has(> :only-child) { grid-template-columns: minmax(0, 800px); justify-content: center; }
.topic-group { padding: 24px 24px 14px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tg-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.tg-num { flex: none; padding: 4px 8px; border-radius: 8px; font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--lime-700); background: var(--lime-100); }
.tg-head h2 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.3; }
.tg-count { margin-left: auto; white-space: nowrap; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.link-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.link-list li + li { border-top: 1px dashed var(--line); }
.link-list a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .96rem; line-height: 1.4; transition: background-color .15s, color .15s; }
.link-list a > .icon { width: 18px; height: 18px; color: var(--lime-600); }
.link-list a > span { flex: 1; min-width: 0; }
.link-list a .go { color: var(--text-3); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease), color .2s; }
.link-list a:hover { background: var(--bg-alt); }
.link-list a:hover .go, .link-list a:focus-visible .go { opacity: 1; transform: none; color: var(--lime-700); }
@media (max-width: 860px) { .topic-grid { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .link-list a .go { opacity: 1; transform: none; } }

.callout { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.callout-title { flex: 1; min-width: 220px; font-size: 1.3rem; letter-spacing: -.02em; }

/* ---------- Chips ---------- */
.chip-nav, .chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip-list { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2);
  font-size: .86rem; font-weight: 600; color: var(--text-2); transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }

/* ---------- Docs index (/docs/) ---------- */
.dx-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.dx-nav { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.dx-nav-title { margin: 0 0 10px 10px; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.dx-nav ol { list-style: none; display: grid; gap: 2px; }
.dx-nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px;
  font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--text-2); transition: background-color .15s, color .15s, box-shadow .15s;
}
.dx-nav a:hover { background: var(--bg-alt); color: var(--text); }
.dx-nav a.active { background: var(--lime-50); color: var(--text); box-shadow: inset 3px 0 0 var(--lime-500); }
.dx-nav-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lime-50); color: var(--lime-700); border: 1px solid var(--lime-100); }
.dx-nav-ic .icon { width: 15px; height: 15px; }
.dx-nav-go { display: none; }
.dx-main { min-width: 0; }
.dx-group + .dx-group { margin-top: clamp(40px, 5vw, 56px); }
.dx-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dx-head .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.dx-head .icon-tile .icon { width: 21px; height: 21px; }
.dx-head h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -.025em; }
.dx-panel { overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dx-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 28px; padding: 18px 24px; transition: background-color .3s; }
.dx-row + .dx-row { border-top: 1px solid var(--line); }
.dx-row:target { background: var(--lime-50); }
.dx-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-top: 6px; font-size: .98rem; line-height: 1.35; }
.dx-count, .dn-count {
  flex: none; padding: 1px 8px; border-radius: 999px; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; line-height: 1.6;
  color: var(--text-3); background: var(--bg-alt); border: 1px solid var(--line);
}
.dx-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-content: start; }
.dx-list a { position: relative; display: block; padding: 7px 0 7px 16px; font-size: .92rem; line-height: 1.42; color: var(--text-2); transition: color .15s; }
.dx-list a::before { content: ""; position: absolute; left: 2px; top: calc(7px + .62em); width: 5px; height: 5px; border-radius: 2px; background: var(--lime-400); }
.dx-list a:hover { color: var(--lime-700); }
.dx-also a { color: var(--text-3); }
.dx-also a::before { background: var(--line-2); }
.dx-also a::after, .dn-also a::after { content: " ↗"; font-size: .85em; color: var(--text-3); }
.dx-solo { grid-template-columns: minmax(0, 1fr); }
.dx-solo .dx-title { display: none; }
.dx-solo .dx-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  /* tablets and phones: the sidebar becomes a topic menu above the lists */
  .dx-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dx-nav { position: static; max-height: none; overflow: visible; margin-bottom: clamp(36px, 5vw, 48px); }
  .dx-nav-title { margin: 0 0 12px 2px; }
  .dx-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 18px; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .dx-nav li { display: flex; background: #fff; }
  .dx-nav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dx-nav a { flex: 1; min-height: 54px; padding: 10px 16px; border-radius: 0; font-size: .95rem; }
  .dx-nav a.active { background: none; box-shadow: none; }
  .dx-nav a:hover { background: var(--bg-alt); }
  .dx-nav-go { display: block; flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--text-3); }
}
@media (max-width: 900px) {
  .dx-row { grid-template-columns: minmax(0, 1fr); }
  .dx-title { justify-content: flex-start; padding-top: 0; }
  .dx-solo .dx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dx-nav ol { grid-template-columns: minmax(0, 1fr); }
  .dx-nav li:last-child:nth-child(odd) { grid-column: auto; }
  .dx-nav a { min-height: 50px; }
  .dx-row { padding: 16px 18px; }
  .dx-list, .dx-solo .dx-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Docs article layout ---------- */
.is-docs { --container: var(--container-wide); }
.is-docs .site-header { background: rgba(6, 11, 22, .92); }
.docs-hero { padding: calc(var(--header-h) + clamp(28px, 4vw, 44px)) 0 clamp(32px, 4vw, 44px); }
.docs-hero .crumbs ol { margin-bottom: 16px; }
.docs-hero h1 { max-width: 32ch; font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; color: var(--ink-200);
}
.meta-chip .icon { width: 15px; height: 15px; color: var(--lime-400); }
.meta-link { transition: border-color .2s, color .2s; }
.meta-link:hover { color: #fff; border-color: rgba(159, 209, 110, .5); }

.docs-layout {
  display: grid; grid-template-columns: 276px minmax(0, 1fr) 224px; gap: clamp(32px, 3.5vw, 56px); align-items: start;
  padding: 36px 0 clamp(72px, 8vw, 110px);
}
.docs-sidebar, .docs-toc {
  position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.docs-article { min-width: 0; }
.doc-body { max-width: 780px; }
/* small screens: "Browse articles" and "On this page" as two even buttons above the article */
.docs-mobilebar { display: none; position: relative; z-index: 20; gap: 10px; max-width: 780px; margin-bottom: 24px; }   /* same width as the article text */
.dm-btn, .toc-inline { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.dm-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text); font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.dm-btn:hover { border-color: var(--text-3); }
.dm-btn .icon { flex: none; width: 18px; height: 18px; color: var(--lime-700); }
.toc-inline > summary {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer; list-style: none;
  border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow-sm); font-weight: 650; font-size: .92rem; color: var(--text);
  transition: border-color .2s;
}
.toc-inline > summary:hover, .toc-inline[open] > summary { border-color: var(--text-3); }
.toc-inline > summary::-webkit-details-marker { display: none; }
.toc-inline > summary .icon { flex: none; width: 18px; height: 18px; color: var(--lime-700); }
.toc-inline > summary::after {
  content: ""; flex: none; width: 7px; height: 7px; margin: -3px 2px 0 auto; border-right: 1.7px solid var(--text-3); border-bottom: 1.7px solid var(--text-3);
  transform: rotate(45deg); transition: transform .2s var(--ease), margin .2s;
}
.toc-inline[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.toc-inline > ol {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(62vh, 480px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 16px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.toc-inline ol { list-style: none; display: grid; gap: 2px; white-space: normal; }
.toc-inline ol ol { padding: 0 0 0 14px; }
.toc-inline a { display: block; padding: 5px 0; font-size: .9rem; color: var(--text-2); }
.toc-inline a:hover { color: var(--lime-700); }

/* sidebar */
.docs-nav { font-size: .9rem; padding-right: 6px; }
.dn-top { position: sticky; top: 0; z-index: 2; display: grid; gap: 10px; padding-bottom: 12px; background: var(--bg); }
.dn-all {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  font-weight: 700; color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); transition: border-color .2s;
}
.dn-all:hover { border-color: var(--lime-300); }
.dn-all .icon { width: 18px; height: 18px; color: var(--lime-700); }
.dn-all .dn-count { margin-left: auto; background: #fff; }
.dn-filter { position: relative; display: block; }
.dn-filter .icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-3); pointer-events: none; }
.dn-filter input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  font-size: .9rem; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.dn-filter input:focus { outline: none; border-color: var(--lime-500); box-shadow: var(--ring); }
.dn-group { border-bottom: 1px solid var(--line); }
.dn-group > summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .9rem; line-height: 1.3; color: var(--text); border-radius: 10px;
}
.dn-group > summary::-webkit-details-marker, .dn-sub > summary::-webkit-details-marker { display: none; }
.dn-group > summary:hover .dn-gt { color: var(--lime-700); }
.dn-gic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lime-50); color: var(--lime-700); border: 1px solid var(--lime-100); }
.dn-gic .icon { width: 15px; height: 15px; }
.dn-gt { flex: 1; transition: color .15s; }
.dn-chev { width: 16px; height: 16px; color: var(--text-3); transition: transform .2s var(--ease); }
.dn-group[open] > summary .dn-chev { transform: rotate(180deg); }
.dn-group-body { padding: 0 0 12px 8px; }
.dn-sub > summary {
  display: flex; align-items: center; gap: 8px; padding: 7px 6px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: .86rem; line-height: 1.3; color: var(--text-2); border-radius: 8px;
}
.dn-sub > summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px 0 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s var(--ease); opacity: .7;
}
.dn-sub[open] > summary::before { transform: rotate(45deg); }
.dn-sub > summary > span:first-child { flex: 1; }
.dn-sub > summary:hover { color: var(--text); background: var(--bg-alt); }
.dn-list { list-style: none; display: grid; margin: 2px 0 8px 10px; border-left: 1px solid var(--line); }
.dn-group-body > .dn-list { margin-left: 2px; }
.dn-list a {
  display: block; margin-left: -1px; padding: 6px 8px 6px 12px; border-left: 2px solid transparent;
  font-size: .85rem; line-height: 1.42; color: var(--text-3); transition: color .15s, border-color .15s, background-color .15s;
}
.dn-list a:hover { color: var(--text); border-left-color: var(--line-2); }
.dn-list a[aria-current="page"] { color: var(--text); font-weight: 650; border-left-color: var(--lime-500); background: linear-gradient(90deg, var(--lime-50), transparent); }
.dn-none { padding: 14px 4px; font-size: .88rem; color: var(--text-3); }

/* "On this page" */
.toc-title { margin-bottom: 12px; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.toc ol { list-style: none; display: grid; }
.toc > ol { border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; font-size: .85rem; line-height: 1.42; color: var(--text-3); transition: color .2s, border-color .2s; }
.toc .lvl-3 a { padding-left: 26px; font-size: .82rem; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); font-weight: 650; border-left-color: var(--lime-500); }
.toc-top { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 16px; border: 0 !important; padding-left: 0 !important; font-size: .8rem !important; }
.toc-top .icon { width: 14px; height: 14px; }

/* end of article */
.doc-foot { display: grid; gap: 22px; max-width: 780px; margin-top: 56px; }
.help-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--line);
}
.help-box h2 { font-size: 1.12rem; }
.help-box p { margin-top: 4px; font-size: .92rem; color: var(--text-3); }
.help-box-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-box .btn:hover .icon { transform: none; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pager-link {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.pager-link:hover { border-color: var(--lime-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.pager-next { grid-column: 2; align-items: flex-end; text-align: right; }
.pager-link small { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pager-link small .icon { width: 14px; height: 14px; }
.pager-link span { font-weight: 700; line-height: 1.35; color: var(--text); }
.pager-link em { font-style: normal; font-size: .82rem; color: var(--text-3); }

@media (max-width: 1280px) {
  .docs-layout { grid-template-columns: 264px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-mobilebar { display: flex; }
  .dm-btn { display: none; }
}
@media (min-width: 1281px) { .toc-inline { display: none; } }
@media (max-width: 1024px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .dm-btn { display: inline-flex; }
  .docs-sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 96; width: min(360px, 88vw); max-height: none;
    padding: 18px 16px 28px; background: var(--bg); box-shadow: 30px 0 60px -30px rgba(6, 11, 22, .45);
    transform: translateX(-104%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
  }
  body.docs-nav-open { overflow: hidden; }
  body.docs-nav-open .docs-sidebar { transform: none; visibility: visible; }
  body.docs-nav-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0 0; z-index: 95; background: rgba(6, 11, 22, .45); }
}
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager-next { grid-column: auto; } }
@media (max-width: 380px) { .docs-mobilebar { flex-direction: column; } .dm-btn, .toc-inline { flex: none; } }
@media (max-width: 560px) { .help-box { padding: 20px; } .help-box-actions { width: 100%; } .help-box-actions .btn { flex: 1 1 auto; } }

/* ---------- Article typography ---------- */
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--text-2); overflow-wrap: break-word; }
.prose::after { content: ""; display: table; clear: both; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose figure, .prose pre, .prose blockquote { margin: 0 0 18px; }
.prose h2 { clear: both; margin: 46px 0 14px; font-size: clamp(1.32rem, 1.1rem + .7vw, 1.62rem); line-height: 1.25; letter-spacing: -.022em; }
.prose h3 { margin: 32px 0 10px; font-size: 1.17rem; line-height: 1.3; }
.prose h4 { margin: 26px 0 8px; font-size: 1.04rem; line-height: 1.35; }
.prose h5, .prose h6 { margin: 22px 0 8px; font-size: .98rem; line-height: 1.4; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.heading-anchor { margin-left: .4em; font-weight: 600; color: var(--lime-600); text-decoration: none !important; opacity: 0; transition: opacity .15s; }
.heading-anchor::after { content: none !important; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
@media (hover: none) { .heading-anchor { display: none; } }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose li::marker { color: var(--lime-600); }
.prose ol > li::marker { font-weight: 700; color: var(--lime-700); }
.prose a { color: var(--lime-700); text-decoration: underline; text-decoration-color: rgba(63, 122, 27, .35); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.prose a:hover { color: var(--text); text-decoration-color: currentColor; }
.prose a[target="_blank"]:not(:has(img))::after { content: "↗"; display: inline-block; margin-left: 2px; font-size: .78em; text-decoration: none; }
.prose strong { color: var(--text); }
.prose .clear-float { clear: both; }   /* a heading that starts below a floated picture (Setup Tab: "Details") */
@media (min-width: 641px) { .prose .clear-float { padding-top: 18px; } }   /* with the picture's own margin: the usual 32px above a heading */
.prose hr { clear: both; height: 1px; margin: 32px 0; border: 0; background: var(--line); }
.prose blockquote { padding: 14px 18px; border-left: 3px solid var(--lime-400); border-radius: 0 12px 12px 0; background: var(--lime-50); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose mark { padding: 0 3px; border-radius: 4px; background: var(--lime-100); color: var(--text); }
.prose sup { font-size: .72em; }
.text-center { text-align: center; }

/* images */
.prose img { border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.prose p > img { display: inline-block; vertical-align: middle; margin: 6px 0; }
.prose p > img:only-child { display: block; }
.prose .text-center img { margin-inline: auto; }
.prose img.align-left { float: left; max-width: min(46%, 420px); margin: 6px 26px 14px 0; }
.prose img.align-right { float: right; max-width: min(46%, 420px); margin: 6px 0 14px 26px; }
.prose img.align-center { display: block; margin: 10px auto; }
.prose img.img-inline { display: inline-block; float: none; max-width: none; margin: 0 2px; vertical-align: -3px; border: 0; border-radius: 3px; box-shadow: none; background: transparent; }
.prose img.zoomable { cursor: zoom-in; }
.prose figure { clear: both; }
.prose figcaption { margin-top: 8px; font-size: .86rem; color: var(--text-3); text-align: center; }
@media (max-width: 640px) {
  .prose img.align-left, .prose img.align-right { float: none; display: block; max-width: 100%; margin: 12px 0; }
}

/* tables */
.table-wrap { clear: both; margin: 22px 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.55; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose td + td, .prose th + th { border-left: 1px solid var(--line); }
.prose thead th { background: var(--bg-alt); color: var(--text); font-weight: 700; font-size: .86rem; letter-spacing: -.005em; }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose td.text-center, .prose th.text-center { text-align: center; }
.prose td img, .prose th img { float: none !important; display: block; max-width: 100% !important; margin: 0 !important; border-radius: 8px; }
.prose td img.img-inline { display: inline-block; }
.prose td p, .prose td ul, .prose td ol { margin: 0 0 8px; }
.prose td > :last-child { margin-bottom: 0; }
.table-wide table { min-width: 780px; }

/* steps: instructions with screenshots, one after the other (tables on the old site) */
.steps { clear: both; margin: 22px 0 26px; }
.step { padding: 18px 0; border-top: 1px solid var(--line); }
.step:first-child { padding-top: 4px; border-top: 0; }
.step:last-child { padding-bottom: 0; }
.step-text + .step-text, .step-text + .step-shot { margin-top: 12px; }
.step-shot + .step-shot { margin-top: 10px; }
.step-text p, .step-text ul, .step-text ol { margin: 0 0 8px; }
.step-text > :last-child { margin-bottom: 0; }
.step-shot img { float: none !important; display: block; max-width: 100% !important; height: auto; margin: 0 !important; }
.step-shot img.img-inline { display: inline-block; }
.rating { display: inline-block; padding: 1px 8px; border-radius: 6px; font-weight: 700; }
.rating-good { color: var(--lime-700); background: var(--lime-50); }
.rating-bad { color: var(--danger); background: #fdecec; }
@media (max-width: 680px) {
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td, .table-stack th { display: block; width: 100%; }
  .table-stack thead { display: none; }
  .table-stack tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td, .table-stack th { padding: 8px 14px; border: 0 !important; }
}

/* timeline: release history, one list per year under a year heading */
.prose ol.timeline { position: relative; margin: 8px 0 30px; padding: 0; list-style: none; }
.prose ol.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 6px; width: 2px; border-radius: 2px; background: var(--line); }
.prose ol.timeline > li { position: relative; margin: 0; padding: 0 0 26px 34px; }
.prose ol.timeline > li:last-child { padding-bottom: 0; }
.prose ol.timeline > li::before { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 14px; box-sizing: border-box; border: 3px solid var(--lime-400); border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #fff; }
.prose ol.timeline > li:first-child::before { background: var(--lime-400); }
.prose ol.timeline time { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lime-700); line-height: 1.6; }
.prose ol.timeline .tl-title { margin: 2px 0 6px; font-size: 1.06rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.prose ol.timeline > li > p, .prose ol.timeline > li > ul, .prose ol.timeline > li > details { margin: 0 0 8px; }
.prose ol.timeline > li > :last-child { margin-bottom: 0; }
.prose ol.timeline > li li + li { margin-top: 3px; }
.prose ol.timeline .tl-downtime { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--text-3); }
.tl-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.tl-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-500); }
.tl-more { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); }
.tl-more > summary { padding: 7px 12px; font-size: .88rem; font-weight: 600; color: var(--lime-700); cursor: pointer; list-style: none; }
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary::before { content: "▸"; display: inline-block; width: 1em; transition: transform .15s; }
.tl-more[open] > summary::before { transform: rotate(90deg); }
.tl-more > :not(summary) { margin: 0 12px 10px !important; font-size: .9rem; }
.tl-more > p:first-of-type { margin-top: 2px !important; }
@media (max-width: 560px) { .prose ol.timeline > li { padding-left: 28px; } }

/* code */
.prose code { padding: .12em .4em; border-radius: 6px; font-family: var(--font-mono); font-size: .86em; color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); overflow-wrap: anywhere; }
.prose pre {
  position: relative; clear: both; overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--ink-900); color: #e3eaf5;
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.65; white-space: pre; box-shadow: var(--shadow);
}
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--ink-300);
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600; opacity: 0; transition: opacity .2s, color .2s;
}
.prose pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: #fff; }
.copy-btn .icon { width: 14px; height: 14px; }
@media (hover: none) { .copy-btn { opacity: 1; } }

/* video */
.video { position: relative; clear: both; max-width: 780px; margin: 24px 0; border-radius: 16px; overflow: hidden; background: #050a14; box-shadow: var(--shadow); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #050a14; overflow: hidden; cursor: pointer; }
.prose .yt img, .yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; transition: transform .6s var(--ease); }
.yt:hover img { transform: scale(1.03); }
.yt-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 11, 22, .1), rgba(6, 11, 22, .5) 70%, rgba(6, 11, 22, .8)); }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime-400); color: var(--ink-950);
  box-shadow: 0 0 0 10px rgba(159, 209, 110, .18), 0 0 0 22px rgba(159, 209, 110, .08), 0 18px 40px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease);
}
.yt-play .icon { width: 28px; height: 28px; margin-left: 4px; }
.yt:hover .yt-play { transform: scale(1.07); }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.prose .yt-link, .yt-link { display: flex; align-items: center; justify-content: flex-end; padding: 9px 14px; font-size: .8rem; color: var(--ink-400) !important; text-decoration: none !important; }
.prose .yt-link::after { content: "↗" !important; }
.yt-link:hover { color: #fff !important; }

/* ---------- Contact, webinar and chat pages ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy h2 { margin-top: 16px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
.contact-copy .body-lg { margin-top: 18px; color: var(--text-2); }
.contact-list { list-style: none; display: grid; gap: 12px; margin-top: 32px; }
.contact-list a {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); color: var(--text); font-weight: 600; line-height: 1.4; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.contact-list a:hover { border-color: var(--lime-200); box-shadow: var(--shadow); transform: translateX(3px); }
.contact-list small { display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.contact-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .icon-tile .icon { width: 20px; height: 20px; }
.note-card { display: flex; gap: 16px; margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--line); }
.note-card h3 { font-size: 1.05rem; }
.note-card p { margin-top: 6px; font-size: .95rem; color: var(--text-3); }
.chat-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px); border-radius: 24px; text-align: center; background: var(--ink-950); color: var(--ink-300);
}
.chat-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 100% 0%, rgba(159, 209, 110, .26), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(79, 214, 196, .16), transparent 70%); }
.chat-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: rgba(159, 209, 110, .14); border: 1px solid rgba(159, 209, 110, .4); color: var(--lime-300); box-shadow: 0 0 50px -10px rgba(159, 209, 110, .5); }
.chat-ic .icon { width: 32px; height: 32px; }
.chat-card h3 { margin-top: 8px; color: #fff; font-size: 1.6rem; letter-spacing: -.02em; }
.chat-card .btn { margin-top: 10px; }
.chat-alt { margin-top: 8px; font-size: .9rem; }
.chat-alt a { color: var(--lime-300); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-head h3 { font-size: 1.3rem; }
.form-head .hint { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field > label, .fieldset legend { display: block; margin-bottom: 8px; font-size: .92rem; font-weight: 650; color: var(--text); }
.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset legend { padding: 0; }
.req { color: var(--danger); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
  color: var(--text); font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #98a2b3; }
.input:hover { border-color: #b9c3d1; }
.input:focus { outline: none; border-color: var(--lime-500); box-shadow: var(--ring); }
.input.invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
textarea.input { min-height: 140px; resize: vertical; }
.hint { margin-top: 7px; font-size: .84rem; color: var(--text-3); }
.error-msg { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--danger); }
.error-msg:empty { display: none; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; color: var(--text-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check-ui { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 1.5px solid var(--line-2); background: #fff; color: transparent; transition: all .2s; }
.check-ui .icon { width: 14px; height: 14px; stroke-width: 3; }
.check input:checked + .check-ui { background: var(--lime-500); border-color: var(--lime-500); color: #fff; }
.check input:focus-visible + .check-ui { box-shadow: var(--ring); }
.captcha-q { padding: 1px 7px; border-radius: 6px; font-family: var(--font-mono); font-weight: 700; color: var(--lime-700); background: var(--lime-50); border: 1px solid var(--lime-100); }
.form-status { font-size: .92rem; font-weight: 600; color: var(--danger); }
.form-status:empty { display: none; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* SnapEngage live chat stays hidden until assets/js/chat.js opens it (same as hostedftp.com) */
#designstudio { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
#designstudio.is-open { display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
#designstudio-button { display: none !important; }   /* SnapEngage's own "Live Chat" tab; chats open via chat.js instead */
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } .form button[type="submit"] { width: 100%; } }

/* ---------- Search dialog ---------- */
.search-dialog {
  width: min(680px, calc(100vw - 24px)); max-width: none; max-height: none; margin: 10vh auto auto; padding: 0; border: 0;
  background: transparent; color: var(--text-2); overflow: visible;
}
.search-dialog::backdrop { background: rgba(6, 11, 22, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog[open] { animation: sd-in .22s var(--ease); }
@keyframes sd-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.sd-panel { display: flex; flex-direction: column; max-height: min(78vh, 720px); overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sd-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); }
.sd-ic { width: 20px; height: 20px; color: var(--lime-700); }
.sd-input { flex: 1; min-width: 0; height: 64px; border: 0; outline: none; background: transparent; font-size: 1.08rem; color: var(--text); -webkit-appearance: none; appearance: none; }
.sd-input::placeholder { color: #8b95a5; }
.sd-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sd-close { padding: 4px; border: 0; background: transparent; border-radius: 8px; }
.sd-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.sd-results:empty { display: none; }
.sd-label { padding: 10px 12px 8px; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.sd-suggest { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0 4px 6px; }
.sd-suggest a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; transition: background-color .15s; }
.sd-suggest a:hover { background: var(--bg-alt); }
.sd-suggest .icon { width: 18px; height: 18px; color: var(--lime-700); }
.sd-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: .78rem; color: var(--text-3); }
.sd-foot kbd { margin-right: 2px; }
html.search-open { overflow: hidden; }
@media (max-width: 640px) {
  .search-dialog { margin-top: 12px; }
  .sd-panel { max-height: calc(100vh - 24px); }
  .sd-foot { display: none; }
  .sd-suggest { grid-template-columns: minmax(0, 1fr); }
}

/* image viewer */
/* Picture viewer (site.js): full screen, zoom with the bar, wheel, pinch or a click; drag to move */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden; overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(6, 11, 22, .86); }
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lb-img {
  position: absolute; left: 0; top: 0; display: block; max-width: none; max-height: none; border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-lg); cursor: zoom-in; -webkit-user-drag: none; will-change: transform;
}
.lb-stage.is-zoomed .lb-img { cursor: grab; }
.lb-stage.is-dragging .lb-img { cursor: grabbing; }
.lb-img.lb-anim { transition: width .22s var(--ease), height .22s var(--ease), transform .22s var(--ease); }
.lightbox-close {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(6, 11, 22, .6); color: #fff;
}
.lightbox-close .icon { width: 22px; height: 22px; }
.lb-bar {
  position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 2; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 14px;
  background: rgba(6, 11, 22, .72); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; transition: background-color .15s, opacity .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .1); }
.lb-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.lb-btn[aria-disabled="true"]:hover { background: transparent; }
.lb-btn .icon { width: 21px; height: 21px; }
.lb-level { min-width: 56px; text-align: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--ink-200); font-variant-numeric: tabular-nums; }
.lb-sep { width: 1px; height: 24px; margin: 0 4px; background: rgba(255, 255, 255, .18); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--ink-950); color: var(--ink-300); }
.footer-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 0% 0%, rgba(159, 209, 110, .12), transparent 70%), radial-gradient(40% 60% at 100% 100%, rgba(79, 214, 196, .08), transparent 70%); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.25fr); gap: 36px 32px; }
.footer-brand .logo-mark { width: 170px; }
.footer-brand p { margin-top: 18px; max-width: 32ch; font-size: .92rem; line-height: 1.6; }
.footer-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.footer-badges li { padding: 4px 9px; border-radius: 8px; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-200); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.footer-main { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 650; font-size: .92rem; color: var(--lime-300); }
.footer-main .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.footer-main:hover .icon { transform: translate(2px, -2px); }
.footer-col h2 { margin-bottom: 18px; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col-wide ul { display: block; columns: 2; column-gap: 24px; }
.footer-col-wide li { break-inside: avoid; margin-bottom: 11px; }
.footer-col a { display: inline-block; font-size: .92rem; line-height: 1.45; color: var(--ink-300); transition: color .2s; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: #fff; }
.footer-contact a { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--lime-400); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; color: var(--ink-400); }
.footer-social { display: flex; gap: 8px; }
.social { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-200); border: 1px solid rgba(255, 255, 255, .12); transition: all .2s; }
.social:hover { color: var(--ink-950); background: var(--lime-400); border-color: var(--lime-400); }
.social .icon { width: 20px; height: 20px; }
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.25fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; } }
@media (max-width: 900px), (pointer: coarse) {
  /* touch screens: taller links (easier to tap), same spacing as before */
  .footer-col ul { gap: 2px; }
  .footer-col a { padding-block: 4px; }
  .footer-col-wide li { margin-bottom: 3px; }
}
@media (max-width: 560px) {
  .footer-top { gap: 32px 20px; }
  .footer-col-1, .footer-contact { grid-column: 1 / -1; }   /* long labels get the full width; Support and Quick Links sit side by side */
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; margin-top: 40px; }
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; padding: 0; background: var(--ink-900); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 30px -12px rgba(6, 11, 22, .6); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s, background-color .2s;
}
.to-top .icon { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--lime-400); color: var(--ink-950); }
.is-docs .to-top { bottom: 92px; }   /* leaves room for the chat bubble */

/* ---------- Reveal motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .hero-bg, .cta-section, .contact-us, .site-footer, .docs-sidebar, .docs-toc, .docs-mobilebar, .doc-foot, .search-dialog, .hero-search, .search-pop { display: none !important; }
  .hero, .page-hero, .docs-hero, .section-dark { background: #fff !important; color: #000 !important; padding: 16px 0 !important; }
  .on-dark h1, .on-dark h2, .on-dark .lead, .on-dark p, .crumbs ol { color: #000 !important; }
  .docs-layout { display: block; padding: 0; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .prose a::after { content: none !important; }
}
