/* BrainScoreDaily — shared styles. Inlined into each page at build; this file is the source of truth.
   Register: instrument, not laboratory. Precise, calm, legible, a little cold. (BSD_Visual_System_V1 §3) */

:root {
  --ink: #16191d;
  --ink-soft: #4a5058;
  --rule: #d9dde2;
  --bg: #fbfbfa;
  --panel: #f2f4f6;
  --accent: #1f4b8f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaed;
    --ink-soft: #a8b0b9;
    --rule: #343a41;
    --bg: #15171a;
    --panel: #1e2126;
    --accent: #8fb4e8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

header.masthead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
}

.wordmark {
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 1.5rem 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h3 { font-size: 1.05rem; margin: 2rem 0 0.5rem; }

p, li { color: var(--ink); }

a { color: var(--accent); text-underline-offset: 0.15em; }

.standfirst { font-size: 1.0625rem; color: var(--ink-soft); }

.meta {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0.5rem 0 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1.125rem 1.25rem;
  margin: 1.5rem 0;
}

.panel p:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

.figure {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.scroll { overflow-x: auto; margin: 1.5rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

th { font-weight: 600; }

thead th { border-bottom: 2px solid var(--rule); }

tr.here td { background: var(--panel); font-weight: 500; }

.here-mark { font-weight: 700; white-space: nowrap; }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

footer.foot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

footer.foot a { color: var(--ink-soft); }

@media (max-width: 30rem) {
  body { font-size: 17px; }
  h1 { font-size: 1.625rem; }
  .wrap { padding: 1.75rem 1rem 4rem; }
}
