/* Live-rendered news theme (TV-style light terminal) */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #d2d2d7;
  --line-soft: #e5e5ea;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0066cc;
  --up: #ca4947;
  --down: #56a970;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
}
body { padding-top: 56px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, .25);
  z-index: 5000;
}
.global-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.global-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.global-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.global-link {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.global-link:hover {
  color: #fff;
  border-color: rgba(148, 163, 184, .25);
  background: rgba(56, 189, 248, .12);
}
.global-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.global-login {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
}
.global-profile {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.global-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, .25);
}
.page {
  width: min(70vw, 1200px);
  margin: 24px auto 56px;
}
.hero {
  border: 0;
  background: transparent;
  padding: 0 0 18px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.02em;
}
.hero .meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
.cards {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}
.card {
  background: var(--panel);
  border: 0;
  padding: 12px;
  transition: border-color .14s ease, background .14s ease;
}
.card:hover {
  border-color: #bfc8df;
  background: #fafbff;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}
.card p {
  margin: 0;
  line-height: 1.68;
  color: #2f2f2f;
}
.card .row {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.card .row span { overflow-wrap: anywhere; }
.article-shell {
  margin-top: 20px;
  background: var(--panel);
  border: 0;
  padding: 16px;
  overflow-x: auto;
}
.article-shell h1, .article-shell h2, .article-shell h3, .article-shell h4 {
  margin: 1em 0 .6em;
  line-height: 1.35;
}
.article-shell p, .article-shell li {
  line-height: 1.95;
  color: #1d1d1f;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.article-shell ul, .article-shell ol { padding-left: 22px; }
.article-shell table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  border: 0;
  background: #fff;
}
.article-shell th,
.article-shell td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.article-shell th {
  background: transparent;
  color: #3a3a3a;
  font-weight: 700;
  white-space: nowrap;
}
.article-shell tr:last-child td { border-bottom: 0; }
.article-shell th:last-child,
.article-shell td:last-child { border-right: 0; }
.article-shell pre {
  margin: 14px 0;
  padding: 12px;
  background: #f8f8f8;
  border: 0;
  overflow-x: auto;
}
.article-shell code {
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.9em;
}
.article-shell img,
.article-shell video,
.article-shell iframe {
  max-width: 100%;
  height: auto;
}
.article-shell blockquote {
  border-left: 3px solid #b6b6b6;
  margin: 12px 0;
  padding: 2px 0 2px 12px;
  color: #4f4f4f;
}
.nav-link {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 10px;
  border: 0;
  color: #303030;
  background: #fff;
}
.nav-link:hover { background: #f7f7f7; text-decoration: none; }
.empty {
  margin-top: 12px;
  background: #fff;
  border: 1px dashed var(--line);
  padding: 14px;
  color: var(--text-muted);
}
.title-note {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 5px;
}
@media (max-width: 960px) {
  .page { width: 92vw; margin-top: 10px; margin-bottom: 18px; }
  .hero { padding: 12px; }
  .article-shell { padding: 12px; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 34px; }
  .card h2 { font-size: 15px; }
  .card p { font-size: 14px; }
  .article-shell p,
  .article-shell li { font-size: 19px; }
  .article-shell table { min-width: 640px; }
}
