:root {
  --orbis-ink: #111827;
  --orbis-muted: #667085;
  --orbis-line: #e6eaf0;
  --orbis-surface: #ffffff;
  --orbis-bg: #f7f8fb;
  --orbis-accent: #3157d5;
  --orbis-accent-soft: #eef2ff;
  --orbis-radius-lg: 24px;
  --orbis-radius-md: 16px;
}

body {
  color: var(--orbis-ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(49,87,213,.08), transparent 30rem),
    var(--orbis-bg);
}

.topbar {
  min-height: 68px;
  border-bottom-color: rgba(222,227,235,.9);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px) saturate(1.25);
}
.topbar-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -.55px;
}
.brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: var(--orbis-ink);
  color: white;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.8px;
  box-shadow: 0 6px 18px rgba(17,24,39,.12);
}
.brand-word { white-space: nowrap; }
.brand-word strong { color: #727985; }
.topbar nav { gap: 8px; }
.topbar nav > a,
.topbar .link-button {
  padding: 7px 9px;
  border-radius: 9px;
  transition: background .15s ease, color .15s ease;
}
.topbar nav > a:hover,
.topbar .link-button:hover { background: #f1f3f7; }
.topbar .nav-cta {
  border-color: var(--orbis-ink);
  background: var(--orbis-ink);
  color: #fff;
  padding-inline: 12px;
}
.language-switch {
  border: 1px solid #d9dee7;
  background: #fff;
  font-weight: 760;
  color: #323846 !important;
}

.container {
  width: min(1080px, calc(100% - 40px));
  padding-top: 38px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 76px) clamp(0px, 3vw, 26px) 58px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -170px;
  top: -150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(49,87,213,.13), rgba(49,87,213,0) 68%);
  pointer-events: none;
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 7.5vw, 72px);
  line-height: 1.02;
  letter-spacing: clamp(-3.2px, -.06em, -1.8px);
  text-wrap: balance;
}
.hero-copy {
  max-width: 720px;
  margin-top: 20px;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.72;
  color: #596171;
}
.edition-en .hero h1 { max-width: 900px; }
.hero .eyebrow,
.document .eyebrow,
.section-head .eyebrow {
  color: var(--orbis-accent);
  letter-spacing: 1.9px;
}
.search {
  max-width: 820px;
  margin-top: 34px;
  padding: 6px;
  gap: 6px;
  border: 1px solid #dfe4ec;
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 50px rgba(23,31,50,.07);
}
.search input {
  border: 0;
  background: transparent;
  padding: 13px 14px;
  box-shadow: none !important;
}
.search button {
  min-width: 92px;
  border-radius: 12px;
  border-color: var(--orbis-ink);
  background: var(--orbis-ink);
}
.stats {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
}
.stats span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.stats a { color: var(--orbis-accent); font-weight: 700; }

.edition-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 34px;
  padding: 16px 18px;
  border: 1px solid #dce3f8;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f7ff, #fff);
  color: #4f5870;
  font-size: 13px;
}
.edition-banner strong { color: #222b46; }
.edition-banner a { color: var(--orbis-accent); font-weight: 750; white-space: nowrap; }

.starter-section,
.knowledge-map,
section.public-section { margin-top: 24px; margin-bottom: 58px; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(25px, 3vw, 32px); letter-spacing: -1.1px; }
.starter-grid,
.category-grid,
.related-grid {
  gap: 12px;
}
.starter-card,
.category-card,
.related-card {
  border-color: #e1e5ec;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(25,32,48,.035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.starter-card:hover,
.category-card:hover,
.related-card:hover {
  transform: translateY(-2px);
  border-color: #cfd6e2;
  box-shadow: 0 14px 32px rgba(25,32,48,.07);
}
.starter-label { color: var(--orbis-accent); }
.article-card {
  border-radius: 17px;
  border-color: #e3e7ed;
  padding: 20px 22px;
  background: rgba(255,255,255,.94);
}
.article-card:hover {
  border-color: #cfd5df;
  box-shadow: 0 12px 28px rgba(17,24,39,.05);
}
.article-card h3 { font-size: 19px; }
.article-card p { max-width: 720px; line-height: 1.65; }
.category-label,
.edition-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f3f8;
  color: #697183;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2px;
}
.edition-label {
  background: var(--orbis-accent-soft);
  color: #4053a9;
}

.document {
  border-radius: var(--orbis-radius-lg);
  border-color: #e0e5ec;
  padding: clamp(26px, 5.5vw, 58px);
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 60px rgba(24,32,48,.055);
}
.document-head {
  gap: 28px;
}
.document-head > div:first-child { max-width: 760px; }
.document-head h1 {
  margin-top: 10px;
  font-size: clamp(38px, 6.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -2.1px;
  text-wrap: balance;
}
.document .lead {
  margin-top: 16px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: #586171;
}
.category-breadcrumb {
  display: inline-flex;
  margin-top: 12px;
  color: var(--orbis-accent);
  font-size: 13px;
  font-weight: 720;
}
.document-meta {
  gap: 8px 18px;
  margin-top: 30px;
  padding: 14px 0;
  color: #7b8493;
}
.document-meta strong { color: #424a59; }
.document-toc {
  max-width: 760px;
  margin: 30px 0 8px;
  padding: 18px 20px;
  border: 1px solid #e4e8ef;
  border-radius: 15px;
  background: #f8f9fb;
}
.document-toc > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .3px;
}
.document-toc ol { margin: 0; padding-left: 20px; }
.document-toc li { margin: 4px 0; color: #5e6674; font-size: 13px; }
.document-toc a:hover { color: var(--orbis-accent); }
.document-body {
  max-width: 760px;
  margin-top: 38px;
  font-size: clamp(16px, 1.8vw, 17.5px);
  line-height: 1.82;
  color: #252b35;
}
.document-body h2 {
  margin: 2.1em 0 .65em;
  padding-top: .25em;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -.8px;
}
.document-body h3 {
  margin: 1.8em 0 .55em;
  font-size: 20px;
  letter-spacing: -.35px;
}
.document-body blockquote {
  margin: 1.5em 0;
  padding: 12px 18px;
  border-left: 3px solid #b8c3ea;
  background: #f7f8fc;
  color: #596171;
}
.wiki-link { color: #2d54c8; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wiki-link:hover { text-decoration: underline; }
.citation a { color: var(--orbis-accent); }

.source-section,
.knowledge-links,
.backlink-section,
.related-section,
.compact-history,
.quality-box {
  max-width: 900px;
}
.source-section,
.knowledge-links,
.backlink-section,
.related-section { margin-top: 48px; }
.source-section h2,
.knowledge-links h2,
.backlink-section h2,
.related-section h2 { letter-spacing: -.7px; }
.source-list li {
  border-color: #e5e8ee;
  background: #fbfcfd;
}
.knowledge-link-list { gap: 8px; }
.knowledge-link {
  border-radius: 12px;
  border-color: #e1e5eb;
  background: #fbfcfd;
}
.compact-history,
.quality-box {
  border-radius: 14px;
  border-color: #e3e7ed;
  background: #fbfcfd;
}

.language-pair {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
}
.language-pair a,
.language-pair span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 9px;
  border: 1px solid #dce1e9;
  font-size: 12px;
  font-weight: 720;
}
.language-pair .active {
  background: var(--orbis-ink);
  border-color: var(--orbis-ink);
  color: #fff;
}
.translation-note {
  max-width: 760px;
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8fb;
  color: #70798a;
  font-size: 12px;
  line-height: 1.55;
}

.search-page-head {
  max-width: 780px;
  margin-bottom: 30px;
}
.search-page-head h1 {
  margin: 6px 0 12px;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -2px;
  line-height: 1.08;
}
.search-results-meta { margin: 20px 0 12px; color: #737b89; font-size: 13px; }

.footer {
  width: min(1080px, calc(100% - 40px));
  padding: 28px 0 40px;
  border-top-color: #dde2e9;
}
.footer a:hover { color: #48505f; }

@media (min-width: 1080px) {
  .document .actions { position: sticky; top: 92px; }
}

@media (max-width: 820px) {
  .topbar-inner { width: min(100% - 24px, 1080px); }
  .topbar nav { max-width: 72%; }
  .topbar nav > a, .topbar .link-button { padding: 5px 6px; }
  .container { width: min(100% - 24px, 1080px); }
  .hero { padding-top: 38px; }
  .hero::after { display: none; }
  .search { padding: 5px; }
  .edition-banner { flex-direction: column; }
  .document { border-radius: 18px; padding: 24px 19px 30px; }
  .document-head h1 { letter-spacing: -1.5px; }
  .document-body { font-size: 16px; line-height: 1.76; }
  .footer { width: min(100% - 24px, 1080px); }
}

@media (max-width: 560px) {
  .brand-word { display: none; }
  .topbar nav { max-width: calc(100% - 42px); gap: 3px; }
  .topbar nav > a:nth-child(4) { display: none; }
  .hero h1 { font-size: 42px; }
  .search { flex-direction: row; }
  .search button { min-width: 74px; }
  .stats { font-size: 12px; }
  .document .actions { width: 100%; justify-content: flex-start; }
}
