/* MKT60 Apple presentation, approved 25 October 2026.
   Adapted from the owner's Lovable design; presentation only, no demo data.
   Native fonts keep the existing same-origin CSP and avoid remote font loads. */
:root {
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --apple-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --bg: #f6f6f8;
  --bg: oklch(0.975 0.002 286);
  --panel: #fff;
  --surface: #f0f0f3;
  --surface: oklch(0.955 0.003 286);
  --text: #1b1b1e;
  --text: oklch(0.22 0.005 286);
  --muted: #68686c;
  --muted: oklch(0.52 0.006 286);
  --line: #e0e0e3;
  --line: oklch(0.91 0.003 286);
  --blue: #0067cf;
  --blue: oklch(0.55 0.2 255);
  --green: #167347;
  --red: #bd343b;
  --amber: #806019;
  --brand: var(--text);
  --chip: var(--surface);
  --apple-tint: #eaf2ff;
  --apple-tint: oklch(0.95 0.025 255);
  --apple-glass: rgb(246 246 248 / 88%);
  --apple-button-text: #fff;
  --apple-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 28px -12px rgb(0 0 0 / 12%);
  --editorial-serif: var(--apple-display);
  --editorial-mono: var(--apple-font);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #080808;
  --bg: oklch(0.13 0 0);
  --panel: #141417;
  --panel: oklch(0.19 0.003 286);
  --surface: #1d1d20;
  --surface: oklch(0.23 0.003 286);
  --text: #e9e9ec;
  --muted: #a2a2aa;
  --line: #28282d;
  --line: oklch(0.27 0.004 286);
  --blue: #6bb2ff;
  --blue: oklch(0.68 0.17 250);
  --green: #80dbac;
  --red: #ff9a9d;
  --amber: #dfc77d;
  --apple-tint: #16263e;
  --apple-glass: rgb(8 8 8 / 88%);
  --apple-button-text: #061426;
  --apple-shadow: 0 0 0 1px rgb(255 255 255 / 6%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #080808;
    --bg: oklch(0.13 0 0);
    --panel: #141417;
    --panel: oklch(0.19 0.003 286);
    --surface: #1d1d20;
    --surface: oklch(0.23 0.003 286);
    --text: #e9e9ec;
    --muted: #a2a2aa;
    --line: #28282d;
    --line: oklch(0.27 0.004 286);
    --blue: #6bb2ff;
    --blue: oklch(0.68 0.17 250);
    --green: #80dbac;
    --red: #ff9a9d;
    --amber: #dfc77d;
    --apple-tint: #16263e;
    --apple-glass: rgb(8 8 8 / 88%);
    --apple-button-text: #061426;
    --apple-shadow: 0 0 0 1px rgb(255 255 255 / 6%);
    color-scheme: dark;
  }
}
body, body.compact-home {
  background: var(--bg);
  color: var(--text);
  font-family: var(--apple-font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
body.compact-home,
:root[data-theme="dark"] body.compact-home {
  --home-bg: var(--bg);
  --home-text: var(--text);
  --home-muted: var(--muted);
  --home-line: var(--line);
  --home-accent: var(--blue);
  --home-soft: var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body.compact-home {
    --home-bg: var(--bg);
    --home-text: var(--text);
    --home-muted: var(--muted);
    --home-line: var(--line);
    --home-accent: var(--blue);
    --home-soft: var(--surface);
  }
}
:focus-visible,
.compact-home :is(a,button,[tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.app-shell { max-width: 1080px; }
.compact-home .app-shell { max-width: 840px; padding: 0 32px; }
.home-header, .topbar {
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
.compact-home .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 22px 0;
  min-height: 76px;
  background: var(--apple-glass);
  border-bottom: 1px solid var(--line);
}
.compact-home .home-brand,
.topbar > .brand-wrap {
  font-family: var(--apple-font);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .04em;
}
.compact-home .brand-circle {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
}
.compact-home .brand-circle::after {
  content: "60";
  font-family: var(--apple-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.compact-home .home-promise { font-size: 12px; font-weight: 400; }
.compact-home .home-lead { padding: 40px 0 34px; }
.compact-home .brief-kicker {
  font-family: var(--apple-font);
  font-size: 11px;
  letter-spacing: .04em;
  font-weight: 400;
  margin-bottom: 18px;
}
.compact-home .brief-kicker span:first-child { font-weight: 500; }
.compact-home h1 {
  font-family: var(--apple-display);
  font-size: clamp(32px, 4.7vw, 44px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: 21px;
  text-wrap: balance;
}
.compact-home .lead-summary {
  font-family: var(--apple-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 24px;
}
.compact-home .lead-read {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--apple-button-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.compact-home .home-section { padding: 28px 0 30px; }
.compact-home h2 {
  font-family: var(--apple-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.compact-home .home-heading { margin-bottom: 17px; }
.compact-home #homeScore {
  background: var(--panel);
  padding: 22px 24px;
  border-radius: 18px;
  box-shadow: var(--apple-shadow);
}
.compact-home .score-value {
  font-family: var(--apple-display);
  font-size: 54px;
  font-weight: 300;
  letter-spacing: -.04em;
}
.compact-home .score-label { font-size: 17px; font-weight: 500; }
.compact-home .score-parts { font-size: 12px; }
.compact-home .score-links a { min-height: 32px; display: inline-flex; align-items: center; }
.compact-home .event-list li { padding: 14px 0; }
.compact-home .event-list a { font-size: 14px; font-weight: 400; line-height: 1.55; }
.compact-home .market-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 4px;
  padding: 4px;
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.compact-home .market-tabs button {
  min-height: 44px;
  padding: 9px 7px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
}
.compact-home .market-tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--apple-shadow);
  font-weight: 500;
}
.compact-home #market-panel { border-radius: 16px; }
.compact-home .widget-placeholder { border-radius: 16px; background: var(--panel); }
.compact-home tv-market-overview { --tv-widget-font-family: var(--apple-font); }
.compact-home .native-market-row strong,
.compact-home .change-top strong { font-family: var(--apple-font); font-weight: 500; }
.compact-home .change-top a { font-weight: 400; }
.compact-home .official-change { padding: 17px 0; }
.compact-home .footer-links { gap: 24px; }
.compact-home .footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
/* Current detailed pages share the visual identity, not the prototype's content. */
.topbar { background: var(--apple-glass); min-height: 72px; }
.topbar > #themeToggle {
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--apple-font);
}
.topbar > .brand-wrap::before { font-family: var(--apple-font); font-weight: 500; }
.seo-nav { gap: 4px 20px; }
.seo-nav a { font-weight: 400; }
.seo-page.panel { max-width: 960px; border-top: 1px solid var(--line); padding-top: 28px; }
.seo-page > h1 {
  font-family: var(--apple-display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.seo-page h2, .seo-page h3,
.seo-page .headline-card h3, .seo-page .stock-card h3 {
  font-family: var(--apple-display);
  font-weight: 400;
  letter-spacing: -.02em;
}
.seo-page .headline-meta, .seo-page .event-meta,
.seo-page .change-card h3 { font-family: var(--apple-font); }
.seo-page .headline-card p, .seo-page .stock-card p { font-size: 15px; }
.seo-page .tag, .seo-page .data-pill { border-radius: 999px; }
.seo-page .outlook-details, .seo-page .state-row { border-color: var(--line); }
@media (max-width: 600px) {
  .compact-home .app-shell { padding: 0 22px; }
  .compact-home .home-header { padding: 18px 0; min-height: 68px; gap: 12px; }
  .compact-home .home-brand { font-size: 18px; gap: 9px; }
  .compact-home .brand-circle { width: 30px; height: 30px; }
  .compact-home .home-promise { font-size: 11px; max-width: 120px; }
  .compact-home .home-lead { padding: 30px 0; }
  .compact-home h1 { font-size: 32px; letter-spacing: -.035em; }
  .compact-home .lead-summary { font-size: 16px; line-height: 1.65; }
  .compact-home .home-section { padding: 26px 0; }
  .compact-home h2 { font-size: 22px; }
  .compact-home .home-heading { gap: 10px; }
  .compact-home #homeScore { padding: 18px 20px; border-radius: 16px; }
  .compact-home .score-value { font-size: 50px; }
  .compact-home .market-tabs { gap: 2px; }
  .compact-home .market-tabs button { font-size: 12px; padding-inline: 4px; }
  .compact-home .change-bottom { font-size: 11px; }
  .seo-page.panel { padding: 20px 0; }
  .seo-page > h1 { font-size: 30px; }
}
@media (max-width: 360px) {
  .compact-home .app-shell { padding-inline: 16px; }
  .compact-home .home-heading { flex-wrap: wrap; }
  .compact-home .change-bottom { flex-wrap: wrap; gap: 3px 10px; }
  .compact-home .change-bottom span:last-child { text-align: left; }
  .compact-home h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
