/* Market News — mirrors the dashboard's design tokens (react-app/src/index.css) and its
   header/footer. Light by default; dark only when <html> carries the site's `dark` class. */
:root {
  --bg: hsl(220 20% 97%); --fg: hsl(220 15% 22%); --card: hsl(0 0% 100%); --muted: hsl(220 16% 94%);
  --muted-fg: hsl(220 10% 48%); --border: hsl(220 14% 88%); --primary: hsl(168 80% 38%); --primary-fg: #fff;
  --secondary: hsl(38 92% 50%);
  --gradient-primary: linear-gradient(135deg, hsl(168 84% 40%), hsl(152 76% 46%));
  --shadow-card: 0 2px 12px hsl(220 15% 20% / 0.06);
  --pos: hsl(150 60% 34%); --pos-bg: hsl(150 60% 94%); --neg: hsl(0 65% 46%); --neg-bg: hsl(0 70% 95%);
  --chip: hsl(220 16% 92%); --chip-fg: hsl(220 15% 30%);
  --t-results: hsl(210 70% 35%); --t-results-bg: hsl(210 70% 92%);
  --t-ma: hsl(270 50% 40%); --t-ma-bg: hsl(270 55% 93%);
  --t-reg: hsl(190 60% 30%); --t-reg-bg: hsl(190 60% 92%);
  --t-rating: hsl(30 70% 32%); --t-rating-bg: hsl(38 92% 92%);
  --t-guid: hsl(160 50% 28%); --t-guid-bg: hsl(160 50% 92%);
  --radius: 0.75rem;
  color-scheme: light;
}
html.dark {
  --bg: hsl(222 32% 5%); --fg: hsl(0 0% 98%); --card: hsl(220 27% 9%); --muted: hsl(220 22% 14%);
  --muted-fg: hsl(220 12% 62%); --border: hsl(220 20% 18%); --primary: hsl(168 84% 44%); --primary-fg: hsl(170 80% 6%);
  --secondary: hsl(38 95% 53%);
  --shadow-card: 0 4px 20px hsl(0 0% 0% / 0.3);
  --pos: hsl(150 70% 60%); --pos-bg: hsl(150 40% 14%); --neg: hsl(0 80% 68%); --neg-bg: hsl(0 40% 16%);
  --chip: hsl(220 22% 16%); --chip-fg: hsl(220 12% 78%);
  --t-results: hsl(210 80% 75%); --t-results-bg: hsl(210 40% 16%);
  --t-ma: hsl(270 70% 80%); --t-ma-bg: hsl(270 30% 16%);
  --t-reg: hsl(190 70% 70%); --t-reg-bg: hsl(190 35% 15%);
  --t-rating: hsl(38 90% 70%); --t-rating-bg: hsl(38 45% 16%);
  --t-guid: hsl(160 60% 70%); --t-guid-bg: hsl(160 30% 15%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
/* the dashboard's `container mx-auto px-4`: centred, 1400px cap */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
/* Header and footer span the site's 1400px container; CONTENT sits in the narrower
   centred column its interior pages use (Blog measures 1152px = max-w-6xl, main
   padding-top 96px, 24px grid gap). */
.page { padding-top: 96px; padding-bottom: 48px; max-width: 1184px; }

/* ── header, as the site's Header.tsx ─────────────────────────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
       background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top > .container { min-height: 60px; position: relative; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--gradient-primary); color: #fff; }
.mark.big { width: 40px; height: 40px; }
.brand-text { font-size: 18px; font-weight: 700; background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text.short { display: none; }
.mainnav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 24px; }
.mainnav a { font-size: 14px; font-weight: 500; color: var(--muted-fg); padding: 4px 8px; border-radius: 2px; }
.mainnav a:hover { color: var(--fg); }
.mainnav a.active { color: var(--fg); border-bottom: 2px solid var(--primary); }
.actions { gap: 12px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.icon-btn:hover { background: var(--muted); }
.icon-btn .sun { display: none; }
html.dark .icon-btn .sun { display: block; }
html.dark .icon-btn .moon { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn.primary { background: var(--gradient-primary); color: #fff; }
.btn.primary:hover { color: #fff; filter: brightness(1.05); }
.btn.outline { border: 1px solid var(--border); background: var(--card); color: var(--fg); }
.btn.outline:hover { background: var(--muted); }
.fyers { display: none; }
.menu { display: none; }
.mobilemenu { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; padding-bottom: 14px; border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.mobilemenu a { font-size: 17px; font-weight: 500; padding: 8px 12px; border-radius: 6px; color: var(--muted-fg); }
.mobilemenu a.active { color: var(--fg); background: color-mix(in srgb, var(--primary) 10%, transparent); border-left: 2px solid var(--primary); }
.mobilemenu a.btn { margin-top: 10px; color: #fff; }
@media (min-width: 640px) { .brand-text.long { display: inline; } }
@media (max-width: 639.98px) { .brand-text.long { display: none; } .brand-text.short { display: inline; } }
@media (min-width: 768px) { .login { display: inline-flex; } }
@media (max-width: 767.98px) { .mainnav { display: none; } .login { display: none; } .menu { display: inline-flex; } }
@media (min-width: 768px) { .mobilemenu { display: none !important; } }
@media (min-width: 1024px) { .fyers { display: inline-flex; } }

/* ── content ──────────────────────────────────────────────────────────────── */
/* Centred hero and section headings, as on Blog and FAQ; h1 36px/700 Bricolage. */
h1 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.15; text-align: center; }
h2 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 24px; margin: 40px 0 4px; letter-spacing: -0.01em; text-align: center; }
.hero { padding: 8px 0 10px; text-align: center; }
.lead, .sub { color: var(--muted-fg); margin: 0 auto 12px; max-width: 46rem; text-align: center; }
.lead { font-size: 16px; }
.sub { font-size: 14px; }
.crumb { color: var(--muted-fg); font-size: 13px; margin: 0 0 10px; text-align: center; }
.crumb a:hover { color: var(--fg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-top: 16px; }
.card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--primary); transform: translateY(-2px); color: inherit; }
.card .row { flex-wrap: wrap; gap: 6px 8px; }
.card .name { font-weight: 600; margin-top: 8px; }
.card .latest { color: var(--muted-fg); font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: 10px; }
.sym { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--primary); }
.sym.big { font-size: 18px; margin-left: 8px; vertical-align: middle; }

.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--chip-fg); white-space: nowrap; }
.chip.small { font-size: 10.5px; padding: 1px 7px; }
.chip.pos, .tag-order { background: var(--pos-bg); color: var(--pos); }
.chip.neg, .tag-fraud { background: var(--neg-bg); color: var(--neg); }
.tag-results { background: var(--t-results-bg); color: var(--t-results); }
.tag-ma { background: var(--t-ma-bg); color: var(--t-ma); }
.tag-regulator { background: var(--t-reg-bg); color: var(--t-reg); }
.tag-rating { background: var(--t-rating-bg); color: var(--t-rating); }
.tag-guidance { background: var(--t-guid-bg); color: var(--t-guid); }

details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 16px; margin: 10px 0; box-shadow: var(--shadow-card); }
summary { cursor: pointer; padding: 10px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '▾'; margin-left: auto; color: var(--muted-fg); }
details[open] summary::after { content: '▴'; }
.count { color: var(--muted-fg); font-weight: 500; font-size: 13px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--border); }
.list li:first-child { border-top: 0; }
.hl { display: block; font-weight: 600; line-height: 1.4; }
.hl:hover { color: var(--primary); }
.meta { display: block; color: var(--muted-fg); font-size: 12.5px; margin-top: 3px; }
.sy { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-weight: 700; font-size: 11.5px; color: var(--primary); margin-left: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.dot.pos { background: var(--pos); } .dot.neg { background: var(--neg); }
.filings .hl { font-weight: 500; }
.empty { color: var(--muted-fg); padding: 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.cta { margin: 30px 0; text-align: center; }
.cta .btn { height: 42px; padding: 0 18px; }
.buildmeta { color: var(--muted-fg); font-size: 12.5px; margin: 40px 0 0; text-align: center; }

/* ── footer, as the site's Footer.tsx ─────────────────────────────────────── */
.foot { border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent); background: var(--card); }
.foot > .container { padding-top: 48px; padding-bottom: 48px; }
.fgrid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .fgrid { grid-template-columns: 2fr 1fr 1fr; } }
.ftitle { font-size: 20px; font-weight: 700; }
.muted { color: var(--muted-fg); font-size: 14px; max-width: 28rem; margin: 0; }
.foot h4 { font-weight: 600; margin: 0 0 16px; font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { font-size: 14px; color: var(--muted-fg); }
.foot ul a:hover { color: var(--fg); }
.notes { margin-top: 16px; font-size: 12px; color: var(--muted-fg); display: flex; flex-direction: column; gap: 8px; }
.notes p { margin: 0; }
.mail { margin: 16px 0 0; }
.mail a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-fg); }
.mail a:hover { color: var(--fg); }
.copy { margin-top: 32px; padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent); text-align: center; font-size: 14px; color: var(--muted-fg); }
