/* Global rules shared by every page (page-specific styles are inlined). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1B2333; background: #fff; }
img, svg { max-width: 100%; }
img { height: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !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: absolute; left: 16px; top: -100px; z-index: 1000; background: #0E1A33; color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid #246EF3; outline-offset: 2px; }

/* Small screens: the design is desktop-first (inline styles from the canvas), so this layer
   collapses multi-column grids and scales the big type until dedicated mobile layouts exist. */
@media (max-width: 900px) {
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="grid-column"] { grid-column: auto !important; }
  [style*="width: 1440px"], [style*="min-width"] { min-width: 0 !important; }
  [style*="padding: 48px"], [style*="padding: 56px"], [style*="padding: 64px"] { padding: 28px 20px !important; }
  section, footer, header { max-width: 100% !important; }
  h1 { font-size: clamp(36px, 10vw, 52px) !important; }
  h2 { font-size: clamp(28px, 7.5vw, 40px) !important; }
  table { display: block; overflow-x: auto; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
  [data-c="Header"] nav, [data-c="Header"] a[href$="/login"] { display: none !important; }
  [data-c="Header"] header { gap: 12px !important; justify-content: space-between; }
  body { overflow-x: hidden; }
}

/* 404 */
.e404{max-width:760px;margin:0 auto;padding:120px 24px 140px;text-align:center}
.e404-k{margin:0 0 12px;font-size:14px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#246EF3}
.e404 h1{margin:0 0 16px;font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:52px;line-height:1.05;letter-spacing:-.03em;color:#0E1A33}
.e404-l{margin:0 0 32px;font-size:19px;line-height:1.55;color:#44506A}
.e404-b{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:0}
.e404-b a{text-decoration:none;padding:14px 22px;border-radius:12px;font-weight:600}
.e404-b a.pri{background:#246EF3;color:#fff}
.e404-b a.sec{background:#fff;color:#1B2333;box-shadow:0 0 0 1px #D5E0F2}
.e404-body{background:#F3F7FD}

/* Standalone-JS live demo embed (on /js/) */
/* Toolset custom scroll: hide native scrollbar so only the custom track/thumb shows */
[data-rdt-grid]{scrollbar-width:none;-ms-overflow-style:none}
[data-rdt-grid]::-webkit-scrollbar{width:0;height:0;display:none}
[data-rdt-thumb]:hover{background:#7C9BD0}
