/* Minimal custom styles — most styling via Tailwind CDN */

/* Smooth chart container transitions */
.plotly-graph-div {
  width: 100% !important;
}

/* Keep <details> summary styled consistently */
details > summary {
  cursor: pointer;
  user-select: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Table row hover should not affect nested interactive elements */
tr:hover td {
  background-color: inherit;
}

/* ── News article prose ──────────────────────────────────────────────────── */
/* Tailwind's reset strips all semantic HTML styles, so we restore them here  */
/* for the rendered-markdown container .news-content.                          */

.news-content {
  font-size: 0.9375rem;   /* 15px */
  line-height: 1.75;
  color: #1f2937;         /* gray-800 */
}

.news-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.news-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
  color: #111827;
}

.news-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.news-content p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.news-content ul {
  list-style-type: disc;
}

.news-content ol {
  list-style-type: decimal;
}

.news-content li {
  margin-bottom: 0.25rem;
}

.news-content a {
  color: #475569;          /* slate-600 */
  text-decoration: underline;
}

.news-content a:hover {
  color: #0f172a;          /* slate-900 */
}

.news-content strong {
  font-weight: 600;
}

.news-content em {
  font-style: italic;
}

.news-content blockquote {
  border-left: 3px solid #cbd5e1; /* slate-300 */
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #6b7280;           /* gray-500 */
  font-style: italic;
}

.news-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: #f1f5f9;      /* slate-100 */
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.news-content pre {
  background: #f1f5f9;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.news-content pre code {
  background: none;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.news-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.news-content th {
  background: #f8fafc;      /* slate-50 */
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.news-content td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.news-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}
