:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12161f;
  --bg-card: #181e2b;
  --border-color: #262f40;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

/* Header & Nav */
.site-header { border-bottom: 1px solid var(--border-color); padding: 1rem 0; background: var(--bg-secondary); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.brand-link { font-weight: 700; font-size: 1.25rem; color: #fff; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

/* Language Switcher */
.lang-switcher { display: flex; gap: 0.5rem; margin-left: 1rem; border-left: 1px solid var(--border-color); padding-left: 1rem; font-size: 0.85rem; }
.lang-switcher a { color: var(--text-muted); text-decoration: none; text-transform: uppercase; font-weight: 600; }
.lang-switcher a.active { color: var(--accent); }

/* Breadcrumb */
.breadcrumb-container { padding: 1rem 0 0.5rem; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb li+li:before { content: "/"; margin-right: 0.5rem; color: var(--border-color); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Hub Layout */
.hub-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border-color); margin-bottom: 2.5rem; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; background: var(--border-color); color: var(--accent); margin-bottom: 0.75rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); margin-top: 0.75rem; }

.post-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.75rem; margin-bottom: 1.5rem; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--accent); }
.post-meta { display: flex; gap: 0.75rem; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.post-card h2 { font-size: 1.35rem; margin-bottom: 0.5rem; line-height: 1.3; }
.post-card h2 a { color: #fff; text-decoration: none; }
.post-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.read-more { color: var(--accent); font-weight: 500; font-size: 0.9rem; text-decoration: none; }

/* Article Layout */
.post-header { padding: 2.5rem 0 1.5rem; }
.post-header h1 { font-size: 2.2rem; line-height: 1.25; color: #fff; margin-top: 0.75rem; }
.meta-separator { color: var(--border-color); }

.article-summary {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: #f1f5f9;
}

.article-content h2 { font-size: 1.4rem; color: #fff; margin: 2rem 0 1rem; }
.article-content h3 { font-size: 1.2rem; color: #fff; margin: 2rem 0 0.85rem; }
.article-content p { margin-bottom: 1.25rem; font-size: 1.05rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content code { font-family: var(--font-mono); background: var(--bg-card); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; color: var(--accent); }

.table-wrapper {
  overflow-x: auto;
  max-inline-size: 100%;
  margin: 1rem 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
}
.signals-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  text-align: left;
}
.signals-table th,
.signals-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.signals-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--bg-card);
  color: #fff;
  font-weight: 600;
}
.signals-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: var(--bg-secondary);
  color: #fff;
  font-weight: 600;
}
.signals-table tbody td {
  color: var(--text-main);
}
.signals-table tbody tr:last-child th,
.signals-table tbody tr:last-child td {
  border-bottom: none;
}

.callout-box { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout-box h3 { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.callout-box p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-muted); }

.post-cta { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--border-color); font-size: 1.05rem; }
.post-cta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-color); padding: 2rem 0; margin-top: 4rem; font-size: 0.85rem; color: var(--text-muted); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-links { list-style: none; display: flex; gap: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .post-header h1 { font-size: 1.75rem; }
  .site-header .container, .post-meta { flex-wrap: wrap; gap: 0.5rem; }
  .site-nav { gap: 1rem; }
  .lang-switcher { margin-left: 0.25rem; padding-left: 0.75rem; }
  .site-footer .container { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

