:root {
  --wt-bg: #f6f5f2;
  --wt-bg-alt: #fbfaf7;
  --wt-surface: rgba(255, 255, 255, 0.78);
  --wt-surface-strong: #ffffff;
  --wt-text: #151515;
  --wt-muted: #66635e;
  --wt-line: rgba(21, 21, 21, 0.1);
  --wt-accent: #1f4fd6;
  --wt-accent-soft: rgba(31, 79, 214, 0.1);
  --wt-gold: #b48a4a;
  --wt-shadow: 0 14px 36px rgba(14, 19, 31, 0.08);
  --wt-radius-lg: 20px;
  --wt-radius-md: 14px;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--wt-text);
  background:
    radial-gradient(circle at top left, rgba(31, 79, 214, 0.08), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(180, 138, 74, 0.12), transparent 20%),
    linear-gradient(180deg, var(--wt-bg-alt) 0%, var(--wt-bg) 100%);
}

a {
  color: var(--wt-accent);
}

.wt-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(16px);
  background: rgba(246, 245, 242, 0.74) !important;
  border-bottom: 1px solid var(--wt-line) !important;
  box-shadow: none;
}

.wt-brand {
  color: var(--wt-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wt-logo-box {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex: 0 0 24px;
}

.wt-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wt-brand-dot {
  color: var(--wt-gold);
}

.wt-main {
  max-width: 1760px;
  background:
    radial-gradient(circle at 2% 0%, rgba(31, 79, 214, 0.11), transparent 30%),
    radial-gradient(circle at 100% 2%, rgba(180, 138, 74, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
}

.wt-page-head {
  margin-bottom: 1rem;
}

.wt-page-head h1,
.wt-page-head h2 {
  letter-spacing: -0.02em;
}

.wt-meta-line {
  font-size: 0.86rem;
  color: var(--wt-muted);
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--wt-radius-lg);
  box-shadow: var(--wt-shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
  background: var(--wt-surface);
}

.card > .card-header:first-child {
  border-top-left-radius: var(--wt-radius-lg);
  border-top-right-radius: var(--wt-radius-lg);
  border-bottom: 1px solid var(--wt-line);
}

.card-header {
  border-bottom-color: var(--wt-line);
  background: rgba(255, 255, 255, 0.65) !important;
}

.btn {
  border-radius: 999px;
}

.btn-primary {
  border: none;
  background: linear-gradient(135deg, #111111, #2354de);
  box-shadow: 0 10px 24px rgba(31, 79, 214, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0c0c0c, #1f4fd6);
}

.btn-outline-primary {
  border-color: rgba(21, 21, 21, 0.16);
  color: var(--wt-text);
  background: rgba(255, 255, 255, 0.82);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  border-color: var(--wt-accent);
  background: var(--wt-accent);
}

.btn-outline-secondary {
  border-color: rgba(21, 21, 21, 0.14);
  color: var(--wt-text);
  background: rgba(255, 255, 255, 0.82);
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.result-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--wt-radius-md);
  padding: 1rem 1rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.result-card:hover {
  border-color: var(--wt-accent);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  transform: translateY(-1px);
}

.result-card-title {
  text-decoration: none;
  font-weight: 600;
}

.result-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.result-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.result-card-meta {
  font-size: 0.86rem;
  color: var(--wt-muted);
}

.smart-suggest-box .list-group-item {
  border-left: 0;
  border-right: 0;
}

.smart-suggest-box .list-group-item:first-child {
  border-top: 0;
}

.wt-toc-card .card-body {
  padding: 0.5rem;
}

.wt-article-card {
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--wt-radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.wt-article-card .card-body {
  padding: 1.15rem 1.2rem 1rem;
}

.wt-article-card + .wt-article-card {
  margin-top: 0.9rem;
}

.wt-tag-card .card-header {
  background: rgba(255, 255, 255, 0.7);
}

.wt-tag-link {
  color: inherit;
  text-decoration: none;
}

.wt-tag-link:hover {
  color: inherit;
}

.wt-article-page .card {
  border-radius: var(--wt-radius-lg);
}

.wt-article-page .card-body {
  padding: 1.25rem 1.25rem 1rem;
}

.wt-article-page .article-text {
  line-height: 1.75;
}

.annotation-note {
  border-left: 3px solid var(--wt-accent);
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 0 !important;
  overflow: visible;
}

.annotation-note + .annotation-note {
  margin-top: 0.5rem;
}

.annotation-note-shared {
  border-left-color: #1f4fd6;
  background: #f7faff;
}

.annotation-note-private {
  border-left-color: #8a8a8a;
  background: #fafafa;
}

.annotation-note p:last-child {
  margin-bottom: 0;
}

.annotation-icon {
  display: inline-block;
  width: 1.1rem;
  margin-right: 0.2rem;
  opacity: 0.8;
}

.dossier-item-card + .dossier-item-card {
  margin-top: 0.9rem;
}

.wt-dossier-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wt-dossier-title {
  text-decoration: none;
  color: inherit;
}

.wt-dossier-title:hover {
  color: inherit;
}

@media (max-width: 991.98px) {
  .wt-logo-box {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    margin-right: 6px;
  }

  .card {
    border-radius: var(--wt-radius-md);
  }
}
