/* ── WiseBeta Article Reading Page — article.css ── */

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.85);
  --muted: rgba(255,255,255,0.4);
  --accent: #00ff88;
  --accent-dim: rgba(0,255,136,0.15);
  --max-width: 720px;
}

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

html { font-size: 18px; scroll-behavior: smooth; }

body.article-page {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Nav ── */
.article-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 52px;
}
.article-nav-inner {
  max-width: calc(var(--max-width) + 80px);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.2px;
}
.article-nav-logo { border-radius: 6px; }
.article-nav-wise { color: var(--accent); }
.article-nav-links {
  display: flex;
  gap: 20px;
}
.article-nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.article-nav-links a:hover { color: white; }

/* ── Main layout ── */
.article-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ── Header ── */
.article-header { margin-bottom: 36px; }

.article-type-chip {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 20px;
}

.article-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-dek {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
}

.article-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-meta-sep { opacity: 0.4; }
.article-meta time { color: rgba(255,255,255,0.55); }

/* ── Hero image ── */
.article-hero-figure {
  margin: 0 -24px 40px;
}
.article-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── Body ── */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 48px 0 16px;
  letter-spacing: -0.3px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body strong {
  color: white;
  font-weight: 600;
}

.article-body em { font-style: italic; }

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,255,136,0.3);
  transition: border-color 0.2s;
}
.article-body a:hover { border-color: var(--accent); }

/* Inline ticker profile links — accent green, no bold */
.article-body a[href^="/intelligence/profile/"] {
  color: #00ff88;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}
.article-body a[href^="/intelligence/profile/"]:hover {
  color: #38ffa0;
  border-bottom-color: rgba(0, 255, 136, 0.6);
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.article-body li { margin-bottom: 8px; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 0 0 24px;
  font-style: italic;
  color: var(--muted);
}

/* ── Tags ── */
.article-tags-row {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
}

/* ── Byline ── */
.article-byline {
  margin-top: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.article-byline a {
  color: var(--accent);
  text-decoration: none;
}
.article-byline a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .article-main { padding: 32px 16px 64px; }
  .article-title { font-size: 1.9rem; }
  .article-hero-figure { margin: 0 -16px 32px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Articles Index Page (/articles)
   ═══════════════════════════════════════════════════════════════════════════ */

.articles-index {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.articles-index-header {
  text-align: center;
  margin-bottom: 28px;
}
.articles-index-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}
.articles-index-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* Filter chips */
.articles-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.articles-filter-chip {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.articles-filter-chip:hover {
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}
.articles-filter-chip.is-active {
  background: #00ff88;
  border-color: #00ff88;
  color: #0a0a0a;
}

/* Article card grid */
.articles-feed {
  display: grid;
  gap: 16px;
}
.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  background: linear-gradient(135deg, #0f1419 0%, #161b22 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.article-card:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-2px);
}
.article-card-image {
  width: 220px;
  height: 124px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.article-card-image--fallback {
  background: linear-gradient(135deg, #1a1f26 0%, #0f1419 100%);
}
.article-card-image--morning_brief  { background: linear-gradient(135deg, #1a1200 0%, #2e2000 100%); }
.article-card-image--midday_update  { background: linear-gradient(135deg, #001a0f 0%, #002e1a 100%); }
.article-card-image--afternoon_wrap { background: linear-gradient(135deg, #12001a 0%, #1e002e 100%); }
.article-card-image--wildcard       { background: linear-gradient(135deg, #1a0700 0%, #2e0e00 100%); }

.article-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.article-card-type {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
  display: block;
}
.article-card-type--morning_brief  { color: #fbb040; }
.article-card-type--midday_update  { color: #00ff88; }
.article-card-type--afternoon_wrap { color: #b87cf6; }
.article-card-type--wildcard       { color: #ff6b5e; }

.article-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.article-card-dek {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-time {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}
.articles-empty {
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 48px 0;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 720px) {
  .article-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .article-card-image {
    width: 100%;
    height: 180px;
  }
  .article-card-title { font-size: 15px; }
}
