/* Brand palette from brand/README.md. The logo's white keyline needs a dark
   background, so the site is dark in every colour scheme. */
:root {
  --bg: #312E39;
  --surface: #292935;
  --text: #FEFFFF;
  --muted: #B2C0C7;
  --accent: #53E1F1;
  --rule: #424552;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

a { color: var(--accent); }

.logo {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin: 0 auto 1.5rem;
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.card h2 { margin-top: 0; }

.meta { color: var(--muted); font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { margin-right: 1rem; }

/* Tables (the Rally Clock tester guide's permissions). Wide ones scroll in
   their own box rather than pushing the page sideways on a phone. */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
th { color: var(--muted); font-weight: 600; }
/* Field names in a table stay whole; a wide table scrolls in its box. */
td code { white-space: nowrap; overflow-wrap: normal; }

main li { margin: 0.35rem 0; }

/* The Rally Clock page's screenshots: a row that scrolls sideways on a phone. */
.shots { display: flex; gap: 0.75rem; overflow-x: auto; margin: 1.25rem 0; }
.shots img {
  height: 24rem;
  width: auto;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

/* Code on the Rally Clock page: a command to copy, and a checksum that wraps
   rather than pushing the page sideways on a phone. */
pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }

/* The example event setup on the organizers page: download and copy
   buttons, and the file itself behind a "Show" line. */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
details { margin: 0.5rem 0 1rem; }
summary { cursor: pointer; color: var(--accent); }

/* The guide's page list, at the foot of each guide page. */
.guide-nav {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
}
.guide-nav [aria-current] { color: var(--muted); }
