/* The media kit — FR-REP-04.
 *
 * `--accent` is set from the kit at load, so the page wears the
 * federation's own derived colour rather than a house one. Every value
 * that property can take was measured to carry white text at WCAG AA,
 * which is why the accent is only ever used behind white.
 */

:root {
  color-scheme: light dark;
  --accent: #1d4ed8;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b7280;
  --line: #d1d5db;
  --panel: #f8fafc;
  --bad: #b91c1c;
  /* The accent as TEXT. It is the accent itself in light mode, where it
   * sits on white and was measured against white. In dark mode it cannot
   * be: the derived accent is only guaranteed against white, and a deep
   * federation blue on the dark page is ~2.6:1 (TR-QA-07). */
  --accent-text: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --fg: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --panel: #111b2e;
    --accent-text: #93c5fd;
    --bad: #f87171;
  }
}

* { box-sizing: border-box; }

body {
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  margin: 0 auto;
  max-width: 62rem;
  padding: 1.5rem 1rem 4rem;
}

h1 { font-size: 1.5rem; margin: 0 0 0.2rem; color: var(--accent-text); }
h2 { font-size: 1rem; margin: 0 0 0.6rem; }
.lede { color: var(--muted); margin-top: 0; max-width: 44rem; }
.note { color: var(--muted); font-size: 13px; margin: 0.6rem 0 0; }
code { font-size: 12px; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

label { display: block; margin: 0.35rem 0; font-size: 13px; }
[hidden] { display: none !important; }

input {
  font: inherit;
  width: min(30rem, 100%);
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
}

button {
  font: inherit;
  padding: 0.3rem 0.8rem;
  margin: 0.5rem 0.4rem 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
button:hover { border-color: var(--accent-text); color: var(--accent-text); }

.status { font-size: 13px; color: var(--muted); }
.status.bad { color: var(--bad); }

/* Marks sit on white whatever the page theme is: a logo shown on a dark
   background that the publisher will not have is a logo they will
   screenshot wrongly. */
.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.marks figure {
  margin: 0;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.marks figure.on-dark { background: #0f172a; border-color: #0f172a; }
.marks figure.on-dark figcaption { color: #e2e8f0; }
.marks img { display: block; max-width: 18rem; height: auto; }
.marks figcaption { font-size: 12px; margin-top: 0.4rem; }
.marks a { color: var(--accent-text); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  text-align: left;
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th { font-weight: 600; width: 11rem; }
td.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
td.swatch { width: 2.4rem; }
.chip {
  display: inline-block;
  width: 1.6rem;
  height: 1rem;
  border-radius: 3px;
  border: 1px solid var(--line);
}
