*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #111827;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-brand img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 8px;
}
.topbar-brand span {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

/* Sub-nav tabs */
.subnav {
  display: flex;
  gap: 2px;
}
.nav-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: #111827; background: #f3f4f6; }
.nav-link.active {
  color: #111827;
  background: #f3f4f6;
  font-weight: 600;
}
@media (max-width: 600px) {
  .topbar-inner { height: auto; padding: 10px 16px; }
  .subnav { flex-wrap: wrap; }
  .nav-link { font-size: 12px; padding: 5px 10px; }
}

/* Page layout */
.page-main {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px 80px;
}

/* Typography */
.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
  margin-bottom: 6px;
}
.last-updated {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 36px;
}
p { margin-bottom: 14px; color: #374151; }
h2 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 32px 0 10px;
}
ul {
  padding-left: 20px;
  margin-bottom: 14px;
  color: #374151;
}
ul li { margin-bottom: 6px; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: #111827; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card h2 { margin-top: 0; }

/* Footer */
.page-footer {
  background: #030712;
  padding: 28px 24px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.footer-inner span,
.footer-inner a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-inner a:hover { color: rgba(255,255,255,0.65); text-decoration: none; }
