/* Header / nav */

.site-header .topbar-row {
  max-width: 1180px;
  margin: 0 auto;
}

.nav-link-cta {
  background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
  border-color: transparent;
  color: #06110c;
  font-weight: 700;
}

.nav-link-cta:hover {
  border-color: transparent;
  filter: brightness(1.08);
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(61, 214, 140, 0.1);
  border: 1px solid rgba(61, 214, 140, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-trust-dot {
  opacity: 0.5;
}

.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.news-section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* Layout */

.news-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.news-search-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

#news-search-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.95rem;
}

#news-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

#news-symbol-filter {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.news-result-count {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
}

.news-card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #0d1218;
  border-bottom: 1px solid var(--border);
  display: block;
}

.news-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-card-headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}

.news-card-deck {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.news-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.12);
  color: var(--accent-soft);
  border: 1px solid rgba(147, 197, 253, 0.25);
}

/* Detail / article view */

.news-back-btn {
  margin-bottom: 1.25rem;
}

.news-article {
  max-width: 740px;
  margin: 0 auto;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.news-article h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.news-article-deck {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.news-hero-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  display: block;
}

.news-article-lede {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.news-article-section {
  margin-bottom: 1.75rem;
}

.news-article-section h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.news-article-section p {
  line-height: 1.7;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.news-chart-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.news-chart-gallery figure {
  margin: 0;
}

.news-chart-gallery img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.news-chart-gallery figcaption {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.3rem;
}

.news-article-outlook {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.news-article-outlook h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent-soft);
  border: none;
  padding-bottom: 0;
}

.news-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.news-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  line-height: 1.5;
}

.news-disclaimer p {
  margin: 0 0 0.6rem;
}

.news-disclaimer p:last-child {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2rem 1.5rem;
}

.site-footer-row {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.5rem 2.5rem;
}

.site-footer-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2rem;
  }

  .site-footer-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-chart-gallery {
    grid-template-columns: 1fr;
  }

  .news-article h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .news-search-bar {
    flex-wrap: wrap;
  }
}
