/* Trailpost Main Concourse — Gate 1 minimal styling. */
:root {
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #d8dee7;
  --bg: #f6f8fa;
  --card: #ffffff;
  --accent: #205c40;
  --error: #a4262c;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 860px;
  padding: 0 16px 40px;
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0 8px;
  border-bottom: 2px solid var(--accent);
}
.topbar h1 { font-size: 24px; margin: 0; }
.topbar .sub { color: var(--muted); font-weight: 400; font-size: 18px; }
.badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--card);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 14px 0 4px;
}
.controls label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 4px; }
.controls input {
  font: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
}
.controls button {
  font: inherit;
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.controls button#save-key { background: var(--card); color: var(--accent); }

.status { min-height: 1.5em; color: var(--muted); font-size: 14px; margin: 8px 0; }
.status.error { color: var(--error); }

.board-title { font-size: 19px; margin: 10px 0; }

.posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.post .meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.post .author { font-weight: 600; color: var(--ink); }
.post .body { white-space: pre-wrap; overflow-wrap: anywhere; }

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

.foot { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 10px; }
.foot p { font-size: 13px; color: var(--muted); }
