/* Market Updates — Design System */

/* Theme tokens */
[data-theme="dark"] {
  --bg: #000000;
  --card-bg: #111111;
  --text: #eeeeee;
  --border: #1e293b;
}
[data-theme="light"] {
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #111111;
  --border: #e2e8f0;
}

/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Typography */
h1, h2, h3 { line-height: 1; }
h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}
h2 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}
p { margin-bottom: 0.75rem; }
strong { font-weight: 600; }

/* Header layout — emoji logo + title/date */
.site-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.session-emoji {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}
.header-text {
  display: flex;
  flex-direction: column;
}
.session-tag {
  font-size: 0.85rem;
  font-weight: 400;
}

/* Sections */
section {
  margin-bottom: 2rem;
}

/* Regime verdict */
.regime-verdict {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* Signal colors */
.bullish { font-weight: 600; }
.bearish { font-weight: 600; }

/* Lists */
ul { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.75rem; }
li:last-child { margin-bottom: 0; }

/* Charts */
.chart-block { margin-bottom: 1.5rem; }
.chart-label {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.chart-commentary {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.chart-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Sector quadrants */
.quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.quadrant {
  padding: 0;
  margin-bottom: 2.25rem;
}
.quadrant-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
}
.quadrant-desc {
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}
.quadrant img {
  width: 100%;
}

/* Subsection headers (cross-asset narrative, etc.) */
.subsection {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 1rem 0 0.4rem;
}

/* Changes table */
.changes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}
.changes-table th {
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
}
.changes-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Widgets (watchlist, calendar, news) — pull edges to reduce iframe padding */
.watchlist-block,
.calendar-block,
.news-block {
  margin: 1rem -0.5rem;
  overflow: hidden;
}
.watchlist-block iframe,
.calendar-block iframe,
.news-block iframe {
  margin: -1px;
}

/* X feed */
.x-feed-block { margin: 1rem 0; }
.x-list-link {
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-block;
}
.x-list-link:hover { text-decoration: underline; }

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  text-align: center;
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 999;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
  .quadrant-grid { grid-template-columns: 1fr; }
  body { padding: 0.75rem; }
}
