:root {
  --sky-ink: #172033;
  --sky-muted: #667085;
  --sky-accent: #2878d0;
  --sky-accent-strong: #1557a0;
  --sky-surface: rgba(255, 255, 255, 0.94);
  --sky-border: rgba(23, 32, 51, 0.09);
  --sky-shadow: 0 12px 36px rgba(25, 54, 93, 0.09);
}

html { scroll-behavior: smooth; }

body.white-bg {
  color: var(--sky-ink);
  background: linear-gradient(180deg, #f8fbff 0, #fff 420px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { transition: color .18s ease, opacity .18s ease, transform .18s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(40, 120, 208, .34);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000000;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--sky-accent-strong);
}
.skip-link:focus { top: 12px; color: #fff; }

.navbar.navbar-default,
.site-header {
  border: 0;
  box-shadow: 0 1px 0 var(--sky-border), 0 8px 30px rgba(25, 54, 93, .06);
}

.content,
.contentmsg,
.contentcomment,
.widget,
.ibox-content {
  border: 1px solid var(--sky-border);
  border-radius: 14px;
  background: var(--sky-surface);
  box-shadow: var(--sky-shadow);
}

.content { margin-bottom: 28px; padding: 34px 38px; }
.widget { overflow: hidden; }
.content h1 a, .contentmsg h1 a, .contentcomment h1 a { color: var(--sky-ink); }
.content h1 a:hover, .contentmsg h1 a:hover, .contentcomment h1 a:hover { color: var(--sky-accent); }
.content .graph, .contentmsg .graph, .contentcomment .graph { color: #344054; line-height: 1.8; }

.btn, .form-control { border-radius: 9px; }
.form-control:focus {
  border-color: rgba(40, 120, 208, .55);
  box-shadow: 0 0 0 3px rgba(40, 120, 208, .12);
}

.footer, .site-footer { color: var(--sky-muted); }
.footer a, .site-footer a { color: var(--sky-accent-strong); }

img { max-width: 100%; height: auto; }
pre { overflow-x: auto; border-radius: 10px; }

@media (max-width: 991px) {
  .content, .contentmsg, .contentcomment { padding: 24px 20px; }
  .bottom_tools { right: 14px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
