@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --rk-primary: #0070d1;
  --rk-primary-pressed: #0064b7;
  --rk-ink: #000000;
  --rk-canvas-dark: #000000;
  --rk-canvas-light: #ffffff;
  --rk-surface-card: #f5f7fa;
  --rk-surface-dark-card: #181818;
  --rk-surface-dark-elevated: #121314;
  --rk-body-light: rgba(0,0,0,0.6);
  --rk-body-dark: rgba(255,255,255,0.7);
  --rk-hairline-light: #f3f3f3;
  --rk-hairline-dark: rgba(229,229,229,0.2);
  --rk-sidebar-w: 260px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--rk-canvas-light);
  color: var(--rk-ink);
  padding-top: 56px;
}

.rk-display { font-weight: 300; letter-spacing: -0.1px; }

.rk-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--rk-canvas-dark);
  color: #fff;
  z-index: 1050;
}

.rk-logo-mark {
  width: 32px; height: 32px;
  background: var(--rk-primary);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

.rk-logo-text { color: #fff; font-weight: 600; font-size: 16px; }

.rk-burger {
  width: 40px; height: 40px;
  background: transparent; border: none;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.rk-burger span { width: 20px; height: 2px; background: #fff; display: block; }

.rk-sidebar {
  position: fixed;
  top: 56px; left: 0; bottom: 0;
  width: var(--rk-sidebar-w);
  background: var(--rk-canvas-dark);
  z-index: 1040;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.rk-sidebar.rk-open { transform: translateX(0); }

.rk-sidebar-inner { padding: 32px 24px; }

.rk-sidebar-nav { list-style: none; padding: 0; margin: 0 0 32px; }
.rk-sidebar-nav li { margin-bottom: 4px; }
.rk-sidebar-nav a {
  display: block;
  color: var(--rk-body-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 8px;
}
.rk-sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.rk-sidebar-label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(229,229,229,0.55);
  margin-bottom: 12px;
}

.rk-sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1030;
  display: none;
}
.rk-sidebar-overlay.rk-open { display: block; }

.rk-content {
  margin-left: 0;
}

@media (min-width: 992px) {
  .rk-sidebar { transform: translateX(0); }
  .rk-content { margin-left: var(--rk-sidebar-w); }
}

.rk-hero-dark {
  background: var(--rk-canvas-dark);
  color: #fff;
  padding: 72px 24px;
}
.rk-hero-dark h1 { font-size: 44px; font-weight: 300; line-height: 1.2; }

.rk-band-blue {
  background: var(--rk-primary);
  color: #fff;
  padding: 56px 24px;
}

.rk-band-light { background: var(--rk-canvas-light); padding: 64px 24px; }

.rk-btn-pill {
  display: inline-flex; align-items: center;
  background: var(--rk-primary);
  color: #fff;
  border-radius: 9999px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
}
.rk-btn-pill:hover { background: var(--rk-primary-pressed); color: #fff; }

.rk-btn-outline-light {
  display: inline-flex; align-items: center;
  background: transparent;
  color: #fff;
  border: 1px solid var(--rk-hairline-dark);
  border-radius: 9999px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.rk-card {
  background: var(--rk-surface-card);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
}

.rk-card-dark {
  background: var(--rk-surface-dark-card);
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  height: 100%;
}

.rk-eyebrow {
  display: block;
  font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--rk-primary-pressed);
  margin-bottom: 6px;
}

.rk-related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rk-hairline-light); }
.rk-related-title { font-size: 22px; font-weight: 300; margin-bottom: 20px; }
.rk-related-card { background: var(--rk-surface-card); border-radius: 8px; padding: 20px; }
.rk-related-headline { display: block; font-weight: 600; font-size: 16px; margin-top: 4px; color: var(--rk-ink); }

.rk-toc { background: var(--rk-surface-card); border-radius: 8px; padding: 20px 24px; margin-bottom: 32px; }
.rk-toc-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--rk-primary-pressed); margin-bottom: 10px; }
.rk-toc ul { list-style: none; padding: 0; margin: 0; }
.rk-toc li { margin-bottom: 6px; }
.rk-toc a { color: var(--rk-ink); text-decoration: none; font-size: 15px; }
.rk-toc a:hover { text-decoration: underline; }

.rk-prose h2 { font-size: 26px; font-weight: 600; margin-top: 2em; margin-bottom: 0.6em; }
.rk-prose p { color: var(--rk-body-light); line-height: 1.7; margin-bottom: 1.1em; }

.rk-breadcrumb { font-size: 14px; color: var(--rk-body-light); margin-bottom: 24px; }
.rk-breadcrumb a { color: var(--rk-body-light); text-decoration: none; }
.rk-breadcrumb a:hover { color: var(--rk-ink); }
.rk-breadcrumb-current { color: var(--rk-ink); font-weight: 500; }
.rk-breadcrumb-sep { color: #cccccc; }

.rk-footer { background: var(--rk-primary); color: #fff; }
.rk-footer-text { color: rgba(255,255,255,0.75); font-size: 14px; }
.rk-footer-heading { display: block; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.rk-footer-list { list-style: none; padding: 0; margin: 0; }
.rk-footer-list li { margin-bottom: 6px; }
.rk-footer-list a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; }
.rk-footer-list a:hover { color: #fff; }
.rk-footer-divider { border-top: 1px solid rgba(255,255,255,0.2); margin: 32px 0 20px; }
.rk-footer-fine { font-size: 12px; color: rgba(255,255,255,0.7); }

details.rk-faq summary { cursor: pointer; list-style: none; font-weight: 600; }
details.rk-faq summary::-webkit-details-marker { display: none; }
details.rk-faq { background: var(--rk-surface-card); border-radius: 8px; padding: 18px 20px; margin-bottom: 12px; }

.rk-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--rk-canvas-dark); color: #fff;
  padding: 20px 24px;
  z-index: 1100;
}

.rk-filter-pill {
  display: inline-flex; padding: 8px 16px; border-radius: 9999px;
  background: rgba(245,247,250,0.3); color: var(--rk-ink);
  font-size: 14px; font-weight: 700; text-decoration: none; margin: 0 8px 8px 0;
}
.rk-filter-pill.rk-active { background: #ffffff; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
