/* The sign-in page and the signed-in home page, in the same colours as the briefing itself. */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-hover: #22263a;
  --border: #2a2e3f;
  --text: #e1e4ed;
  --muted: #8b8fa3;
  --accent: #818cf8;
  --yellow: #fbbf24;
}

* {
  box-sizing: border-box;
}

/* Several blocks here set their own display, which would otherwise beat the hidden attribute. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.brand {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand span {
  color: var(--accent);
}

/* Sign-in page: one small panel in the middle of the screen. */
body[data-page="signin"] {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

.door {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.door .brand {
  font-size: 24px;
}

.lead {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow);
  font-size: 14px;
}

.button {
  display: block;
  margin-top: 6px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #0f1117;
  font-weight: 600;
  text-align: center;
  transition: filter 0.15s ease;
}

.button:hover {
  filter: brightness(1.1);
}

.button:focus-visible,
.card:focus-visible,
.who a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Signed-in home page. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 14px;
}

.who span {
  overflow-wrap: anywhere;
}

.home {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

.card {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.card__title {
  font-size: 17px;
  font-weight: 600;
}

.card__note {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .card {
    transition: none;
  }
}
