/* Dispatch theme on top of Pico.css. Dark mode comes from Pico via
   prefers-color-scheme; --accent is set from APP_COLOR in the page head. */

:root {
  --accent: #4f6d8f;
  --pico-primary: var(--accent);
  --pico-font-size: 118%; /* readable from the back of the room */
}

.topbar {
  border-bottom: 0.4rem solid var(--accent);
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}
.topbar-inner { display: flex; align-items: center; gap: 1rem; }
.topbar h1 { margin: 0; font-size: 2rem; }
.topbar p { margin: 0; color: var(--pico-muted-color); }
.logo { width: 3.5rem; height: 3.5rem; color: var(--accent); flex: none; }

.banner {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--pico-border-radius);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 1.5rem;
}
.stack { display: grid; gap: 1.5rem; align-content: start; }
.card { margin: 0; border-top: 0.3rem solid var(--accent); }
.wide { grid-column: 1 / -1; }

.card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h2 small, dt small { color: var(--pico-muted-color); font-weight: 400; }

.big { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.mono { font-family: var(--pico-font-family-monospace); }
.muted { color: var(--pico-muted-color); }
.accent { color: var(--accent); font-weight: 700; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0;
}
.facts dt { color: var(--pico-muted-color); font-weight: 400; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

details { margin: 1rem 0 0; }

footer { padding: 2rem 0; text-align: center; }

@media (max-width: 40rem) {
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 0.5rem; }
}
