/* Premium home page style (home only) */
:root {
  --lf-home-bg: #f3f7ff;
  --lf-home-card: rgba(255, 255, 255, 0.9);
  --lf-home-border: #dbe7ff;
  --lf-home-text: #0f172a;
  --lf-home-muted: #475569;
  --lf-home-primary: #2563eb;
  --lf-home-primary-2: #4f46e5;
}

body {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(920px 440px at 100% 0%, rgba(79, 70, 229, 0.16), transparent 58%),
    linear-gradient(180deg, #f8fbff 0%, var(--lf-home-bg) 100%) !important;
}

#root .semi-layout-content > div,
#root .semi-page-content > div {
  max-width: 980px;
  margin: 22px auto;
  padding: 28px 30px;
  background: var(--lf-home-card) !important;
  border: 1px solid var(--lf-home-border) !important;
  border-radius: 18px !important;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
}

#root h1 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #0b1324;
}

#root h2 {
  margin: 22px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f1f46;
  padding-left: 12px;
  border-left: 4px solid #93c5fd;
}

#root p,
#root li {
  color: var(--lf-home-muted);
  line-height: 1.85;
  font-size: 17px;
}

#root hr {
  border: none;
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.55), rgba(148, 163, 184, 0));
}

#root code {
  background: linear-gradient(180deg, #eef5ff, #e8f1ff);
  border: 1px solid #c8dcff;
  color: var(--lf-home-primary);
  border-radius: 10px;
  padding: 3px 8px;
  font-weight: 600;
}

#root a {
  color: var(--lf-home-primary) !important;
  text-decoration: none;
  border-bottom: 1px dashed #93c5fd;
}

#root a:hover {
  color: var(--lf-home-primary-2) !important;
  border-bottom-color: #818cf8;
}

/* flatten URL code block style */
#root code,
#root pre,
#root pre code {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

#root code {
  background: #f3f7ff !important;
  border: 1px solid #dbe7ff !important;
  color: #1d4ed8 !important;
}

/* Base URL copy row */
.lf-copy-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.lf-copy-code {
  display: inline-block;
  background: #f3f7ff !important;
  border: 1px solid #dbe7ff !important;
  border-radius: 10px;
  padding: 6px 10px;
  color: #1d4ed8 !important;
  font-weight: 600;
}

.lf-copy-btn {
  border: 1px solid #bfdbfe;
  background: #eaf3ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
}

.lf-copy-btn:hover {
  background: #dbeafe;
}

/* prevent dashed underline on top nav links */
#root .semi-navigation a,
#root .semi-layout-header a,
#root .semi-navigation-header a,
#root .semi-navigation-item a,
#root .semi-navigation-list a {
  border-bottom: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
}
