/* ============================================
   SGINCOMESTOCK — Financial News Theme
   Red primary · Newspaper aesthetic · Serif accents
   ============================================ */

:root {
  --finance-red: #cc0000;
  --finance-red-light: #e60012;
  --finance-dark: #1a1a1a;
  --finance-paper: #faf9f6;
  --finance-border: #e5e5e0;
  --finance-subtle: #888;
  --finance-green: #00873e;
  --finance-gold: #b8860b;
}

/* ---- Article Body (Newspaper style) ---- */
.article-body {
  font-family: Georgia, 'Noto Serif SC', serif;
  font-size: 1.125rem;
  line-height: 1.9;
  color: #222;
}

.article-body h2 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--finance-dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--finance-red);
}

.article-body h3 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--finance-dark);
  margin: 2rem 0 0.75rem;
}

.article-body h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--finance-red);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.03em;
}

.article-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

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

.article-body a:hover {
  border-bottom-color: var(--finance-red);
}

.article-body img {
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--finance-border);
}

.article-body blockquote {
  border-left: 4px solid var(--finance-red);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--finance-paper);
  font-style: italic;
  color: #555;
  font-size: 0.95em;
}

.article-body code {
  background: #f0f0f0;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--finance-red);
}

.article-body pre {
  background: var(--finance-dark);
  color: #e0e0e0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.article-body th {
  background: var(--finance-dark);
  color: #fff;
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-weight: 600;
}

.article-body td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--finance-border);
}

/* ---- Ticker Animation ---- */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-ticker {
  animation: ticker-scroll 60s linear infinite;
}

.animate-ticker:hover {
  animation-play-state: paused;
}

/* ---- Scrollbar ---- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Index flash ---- */
@keyframes flash-up {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(0, 135, 62, 0.08); }
}

@keyframes flash-down {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(204, 0, 0, 0.08); }
}

.flash-up { animation: flash-up 0.6s ease; }
.flash-down { animation: flash-down 0.6s ease; }

/* ---- Print styles ---- */
@media print {
  header, footer, .no-print { display: none !important; }
  .article-body { font-size: 11pt; line-height: 1.6; }
}
