:root {
  --bg: #ffffff;
  --fg: #1a1f2b;
  --muted: #5b6472;
  --line: #e6e9ef;
  --accent: #0b6b53;
  --accent-weak: #e8f3ef;
  --high: #0b6b53;
  --medium: #9a6a00;
  --card: #f7f8fa;
  --hero-border: #cfe6de;
  --badge-high-bg: #d9efe7;
  --badge-medium-bg: #f6ebd2;
  --maxw: 860px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
header.site .brand { font-weight: 700; font-size: 18px; color: var(--fg); }
header.site nav a { margin-left: 18px; color: var(--muted); font-size: 15px; }

main { padding: 28px 0 48px; }
h1 { font-size: 27px; line-height: 1.25; margin: 0 0 14px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); }

.pred-hero {
  background: var(--accent-weak);
  border: 1px solid var(--hero-border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 18px 0 24px;
}
.pred-hero .date { font-size: 30px; font-weight: 700; color: var(--accent); }
.pred-hero .sub { color: var(--muted); margin-top: 4px; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
}
.badge.high { background: var(--badge-high-bg); color: var(--high); }
.badge.medium { background: var(--badge-medium-bg); color: var(--medium); }

table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
tr.today td { background: var(--accent-weak); }

.stock-list { columns: 2; column-gap: 28px; padding: 0; list-style: none; margin: 8px 0 20px; }
.stock-list li { break-inside: avoid; padding: 3px 0; }
@media (max-width: 620px) { .stock-list { columns: 1; } h1 { font-size: 23px; } }

.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--fg); }

.ad-slot {
  margin: 24px 0; padding: 10px; text-align: center; min-height: 90px;
  background: var(--card); border: 1px dashed var(--line); border-radius: 8px;
  color: #aeb6c2; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Theme toggle button */
.theme-toggle {
  margin-left: 18px; background: none; border: 0; cursor: pointer; padding: 2px 6px;
  font-size: 16px; line-height: 1; color: var(--muted); border-radius: 6px;
}
.theme-toggle:hover { color: var(--fg); background: var(--card); }
.theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: inline; }

/* Dark palette. Applied when the user picks dark (data-theme), or — for
   JS-disabled visitors, where no data-theme is set — when the OS prefers dark. */
:root[data-theme="dark"] {
  --bg: #10141b; --fg: #e7ebf2; --muted: #97a1b2; --line: #232a36;
  --accent: #4fd1a5; --accent-weak: #14231e; --high: #4fd1a5; --medium: #e0a94a; --card: #161c26;
  --hero-border: #24403a; --badge-high-bg: #14312a; --badge-medium-bg: #33280f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #10141b; --fg: #e7ebf2; --muted: #97a1b2; --line: #232a36;
    --accent: #4fd1a5; --accent-weak: #14231e; --high: #4fd1a5; --medium: #e0a94a; --card: #161c26;
    --hero-border: #24403a; --badge-high-bg: #14312a; --badge-medium-bg: #33280f;
  }
  :root:not([data-theme]) .theme-icon-dark { display: none; }
  :root:not([data-theme]) .theme-icon-light { display: inline; }
}
