:root {
  --bg: #ffffff;
  --text: #1c1f23;
  --muted: #5b6470;
  --line: #d9dde2;
  --accent: #1f5fa8;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --text: #e8eaed;
    --muted: #a2aab4;
    --line: #353a41;
    --accent: #6ea8ec;
    --accent-text: #0b1420;
  }
}

* { box-sizing: border-box; }

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.site-header nav { display: flex; gap: 16px; align-items: center; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.who, .muted { color: var(--muted); }

.content { max-width: 760px; margin: 0 auto; padding: 24px 16px; }

.board-list { list-style: none; padding: 0; }
.board-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
}

h2 { margin-top: 32px; }
h3 { margin: 24px 0 8px; }

.inline-form { display: inline; margin: 0; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.people-list { list-style: none; padding: 0; margin: 0; }
.people-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.position { font-weight: 600; }
.addresses { overflow-wrap: anywhere; font-size: 16px; }

.stacked-form { display: grid; gap: 8px; max-width: 420px; }
.stacked-form input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
.stacked-form .button { margin-top: 16px; border: 0; cursor: pointer; justify-self: start; }
.error { color: #b3261e; }
@media (prefers-color-scheme: dark) { .error { color: #f2b8b5; } }

.small { font-size: 15px; }
.help { margin: 0; font-size: 15px; color: var(--muted); }

.button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 10px 20px; }
.button.danger { background: #b3261e; color: #fff; }
@media (prefers-color-scheme: dark) { .button.danger { background: #f2b8b5; color: #2b0b09; } }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 32px;
}
.section-head h2 { margin: 0; }

.holders { display: grid; gap: 4px; justify-items: end; text-align: right; }
.holder { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
@media (max-width: 560px) {
  .holders { justify-items: start; text-align: left; }
  .holder { justify-content: flex-start; }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 14px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.stacked-form { gap: 20px; max-width: 520px; }
.field-row { display: grid; gap: 6px; }
.field-row label { font-weight: 600; }
.stacked-form select,
.stacked-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.stacked-form input:not([type="checkbox"]) { width: 100%; }
.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
}
.check-row input { width: 22px; height: 22px; margin: 2px 0 0; }
.check-row .help, .check-row .error { grid-column: 2; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.actions .button { margin-top: 0; }
.error-box { border: 1px solid #b3261e; border-radius: 8px; padding: 12px 16px; color: #b3261e; }
.error-box p { margin: 0; }
@media (prefers-color-scheme: dark) { .error-box { border-color: #f2b8b5; color: #f2b8b5; } }

.messages { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.message { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); }
.message.success { border-color: #2e7d4f; }
.message.error { border-color: #b3261e; }

button.button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
