:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2D9AD5;       /* brand-teal — hsl(201,67%,51%) — mirrors index.css --brand-teal */
  --accent-fg: #ffffff;
  --navy: #0c1929;         /* brand-navy — hsl(213,56%,11%) — mirrors index.css --brand-navy */
  --gold: #E8A33E;         /* gold accent — matches admin tab + home wordmark gradient */
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.55; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site { background: var(--navy); border-bottom: 1px solid rgba(45,154,213,0.25); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
header.site .brand { font-weight: 800; font-size: 19px; color: #ffffff; letter-spacing: -0.01em; }
header.site .brand .brand-accent { color: var(--accent); }
header.site nav a { margin-left: 18px; color: rgba(255,255,255,0.75); font-size: 14px; }
header.site nav a:hover { color: #ffffff; text-decoration: none; }
main { max-width: 880px; margin: 0 auto; padding: 28px 20px 64px; }
main.hub { max-width: 980px; }
h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 28px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 22px; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.grid > .card { padding: 18px; margin-bottom: 0; }
.grid > .card:hover, .siblings .card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(45,154,213,0.22); }
.card h2 { margin: 0 0 10px; font-size: 16px; }
table.percentiles { width: 100%; border-collapse: collapse; font-size: 15px; }
table.percentiles th, table.percentiles td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.percentiles th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; background: #f1f5f9; }
table.percentiles td.tier { white-space: nowrap; }
table.percentiles td.tier .pct { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }
table.percentiles td.time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 17px; white-space: nowrap; }
table.percentiles td.meaning { color: #334155; font-size: 14px; }
.context { font-size: 15px; color: #334155; }
.context p { margin: 0 0 12px; }
.siblings { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
@media (min-width: 720px) { .siblings { grid-template-columns: 1fr 1fr; } }
.siblings h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 10px; }
.siblings ul { list-style: none; padding: 0; margin: 0; }
.siblings li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.cta { background: linear-gradient(135deg, var(--navy) 0%, #15324a 55%, var(--accent) 100%); color: var(--accent-fg); padding: 26px; border-radius: 12px; text-align: center; margin-top: 26px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.cta h2 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.cta p { margin: 0 0 16px; color: rgba(255,255,255,0.92); }
.cta a.btn { display: inline-block; background: #fff; color: var(--navy); padding: 11px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: transform 150ms ease; }
.cta a.btn:hover { transform: translateY(-1px); text-decoration: none; }
.app-cta { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-top: 14px; font-size: 14px; color: var(--fg); flex-wrap: wrap; }
.app-cta strong { color: var(--navy); }
.app-cta a { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 7px; font-weight: 600; font-size: 13px; }
.app-cta a:hover { background: #15324a; text-decoration: none; }
.source { margin-top: 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; line-height: 1.6; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.event-list { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.9; }
footer.site { text-align: center; padding: 24px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 24px; }
footer.site a { color: var(--muted); margin: 0 8px; }
footer.site a:hover { color: var(--accent); }
