/* SMT Briefs — Dark theme (merged from INDEX_TEMPLATE + HTML_TEMPLATE) */

:root {
  --bg: #0a0a0f;
  --fg: #e2e4e9;
  --muted: #6b7280;
  --accent: #6366f1;
  --accent-soft: rgba(99,102,241,0.12);
  --border: #1e1e2e;
  --surface: #12121a;
  --surface2: #1a1a26;
  --green: #22c55e;
  --green-soft: rgba(34,197,94,0.1);
  --red: #f85149;
  --amber: #f59e0b;
  --amber-soft: rgba(245,158,11,0.1);
  --purple: #a855f7;
  --purple-soft: rgba(168,85,247,0.1);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────── */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo a { color: var(--fg); text-decoration: none; }
.logo span { color: var(--accent); }
.stats { display: flex; gap: 1.5rem; }
.stat { text-align: center; }
.stat-val { font-size: 1.4rem; font-weight: 700; color: var(--fg); }
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── Container ──────────────────────────────────── */
.container { max-width: 1000px; margin: 0 auto; padding: 1.5rem; }
.updated { color: var(--muted); font-size: 0.8rem; margin-bottom: 1.25rem; }

/* ── Index cards ────────────────────────────────── */
.day-sep {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.25rem 0 0.4rem 0.5rem;
}

.brief-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.brief-card:hover { border-color: var(--accent); background: var(--surface2); }

.brief-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 2rem;
  text-align: center;
}
.brief-body { flex: 1; min-width: 0; }
.brief-title { font-weight: 600; font-size: 0.95rem; }
.brief-title a { color: var(--fg); text-decoration: none; }
.brief-title a:hover { color: var(--accent); }
.brief-date { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.brief-links { display: flex; gap: 0.5rem; flex-shrink: 0; }
.brief-links a {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.link-brief { background: var(--accent-soft); color: var(--accent); }
.link-council { background: var(--amber-soft); color: var(--amber); }
.link-summary { background: var(--purple-soft); color: var(--purple); }

/* Verdict badges */
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.badge-go { background: var(--green-soft); color: var(--green); }
.badge-soft { background: var(--amber-soft); color: var(--amber); }
.badge-pass { background: rgba(248,81,73,0.1); color: var(--red); }

/* ── Brief content page ─────────────────────────── */
.meta-bar {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.meta-bar a { color: var(--accent); }
.meta-sep { color: var(--border); }

.content { max-width: 800px; margin: 0 auto; }

.content h1 {
  font-size: 1.8rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.content h2 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--accent);
}
.content h3 {
  font-size: 1.1rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--fg);
}
.content p { margin: 0.6rem 0; }
.content ul, .content ol { margin: 0.5rem 0 0.5rem 1.5rem; }
.content li { margin: 0.25rem 0; }
.content strong { color: #fff; }
.content a { color: var(--accent); }
.content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: var(--surface);
  border-radius: 4px;
}
.content code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}
.content pre {
  background: var(--surface);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
}
.content pre code { background: none; padding: 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.content th, .content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.content th {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
}
.content tr:nth-child(even) { background: var(--surface); }
.content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Verdict keyword colors in content */
.verdict-go { color: var(--green); font-weight: bold; }
.verdict-pass { color: var(--red); font-weight: bold; }
.verdict-soft { color: var(--amber); font-weight: bold; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .brief-card { flex-wrap: wrap; gap: 0.5rem; padding: 0.85rem 1rem; }
  .brief-num { min-width: auto; }
  .brief-links { width: 100%; justify-content: flex-end; }
  .header-inner { gap: 0.5rem; }
}
