/* pokemonintel.ai shared styles. Every color is a token; page builders add their own rules below the shared ones
   (keep component styles in the template that owns them, or append a clearly labeled section here). */
:root {
  --bg: #f7f7f4; --surface: #ffffff; --surface-2: #eef0f3; --fg: #0e1a2b; --muted: #5a6475; --line: #d9dce2;
  --accent: #0f6b5c; --accent-fg: #ffffff; --up: #13794a; --down: #b3261e;
  --warn-bg: #fff4dc; --warn-fg: #7a4b00; --ok-bg: #e2f3ea; --ok-fg: #13794a; --none-bg: #eceef1; --none-fg: #5a6475;
  --mark-bg: #0e1a2b; --mark-fg: #e8ecf2; --mark-lit: #5cc6b0;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 8px; --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1320; --surface: #111b2b; --surface-2: #172235; --fg: #e8ecf2; --muted: #93a0b3; --line: #1e2a3b;
  --accent: #5cc6b0; --accent-fg: #0b1320; --up: #5fd39a; --down: #ff8a80;
  --warn-bg: #3a2c0e; --warn-fg: #ffd27a; --ok-bg: #123526; --ok-fg: #6fe0a8; --none-bg: #1c2638; --none-fg: #93a0b3;
  --mark-bg: #e8ecf2; --mark-fg: #0b1320; --mark-lit: #0f6b5c;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b1320; --surface: #111b2b; --surface-2: #172235; --fg: #e8ecf2; --muted: #93a0b3; --line: #1e2a3b;
  --accent: #5cc6b0; --accent-fg: #0b1320; --up: #5fd39a; --down: #ff8a80;
  --warn-bg: #3a2c0e; --warn-fg: #ffd27a; --ok-bg: #123526; --ok-fg: #6fe0a8; --none-bg: #1c2638; --none-fg: #93a0b3;
  --mark-bg: #e8ecf2; --mark-fg: #0b1320; --mark-lit: #0f6b5c;
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.015em; }
h2 { font-size: clamp(21px, 3vw, 26px); }
h3 { font-size: 17px; }
p { margin: 0; max-width: 68ch; }
.wrap { max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); padding-top: env(safe-area-inset-top, 0px); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 14px; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; font-size: 18px; display: inline-flex; gap: 8px; align-items: center; }
.brand { gap: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-size: 16px; }
.brand.small .brand-name { font-size: 14px; }
.brand-mark { flex: 0 0 auto; }
.brand-mark .m-bg { fill: var(--mark-bg); } .brand-mark .m-lit { fill: var(--mark-lit); }
.brand-mark .m-fg { fill: var(--mark-fg); font: 700 18px var(--font-display); letter-spacing: -0.02em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.site-header nav a { color: var(--fg); text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--accent); }
.nav-members { font-weight: 600; }
main { padding-block: 32px 64px; display: grid; gap: 40px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 32px; }
.footer-grid > * { min-width: 0; display: grid; gap: 8px; align-content: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.footer-links a { color: var(--muted); }

/* Shared components */
section { display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-fg); font-weight: 600; text-decoration: none; font-size: 15px; cursor: pointer; }
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.buy { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.buy-note { font-size: 12px; color: var(--muted); }
.chip { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); } .chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip-none { background: var(--none-bg); color: var(--none-fg); }
.notice { background: var(--warn-bg); color: var(--warn-fg); border-radius: var(--radius); padding: 12px 14px; max-width: 80ch; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
dl.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
dl.stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
dl.stats dd { margin: 0; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 18px; }
input, select, button { font: inherit; }
