:root {
  --green: #174634; --green-2: #2c6a50; --cream: #f6f3ea; --paper: #fffdf8;
  --ink: #1d2420; --muted: #5d6a63; --line: #ddd6c4; --gold: #b08a3e;
  --red: #a33a2c; --ok: #2c6a50;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.2; }
header.top { background: var(--green); color: #fff; padding: 28px 20px 24px; border-bottom: 4px solid var(--gold); }
header.top .inner, main { max-width: 860px; margin: 0 auto; }
header.top .club { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; opacity: .85; }
header.top h1 { margin: 6px 0 0; font-size: 30px; }
main { padding: 24px 20px 60px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 18px; }
.muted { color: var(--muted); }
.pre { white-space: pre-wrap; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
input[type=email], input[type=text], input[type=password], input[type=url], input[type=number],
input[type=datetime-local], textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
button, .btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 7px;
  padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: var(--green-2); }
button:disabled { opacity: .55; cursor: default; }
button.secondary, .btn.secondary { background: #fff; color: var(--green); border: 1px solid var(--green); }
button.danger { background: var(--red); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.alert { padding: 12px 14px; border-radius: 7px; margin: 12px 0; }
.alert.error { background: #f8e6e2; color: var(--red); border: 1px solid #e8c3bb; }
.alert.info { background: #eaf1ec; color: var(--green); border: 1px solid #c8dccf; }
.hidden { display: none !important; }
.deadline { display: inline-block; background: #fff6e0; border: 1px solid #ecd9a6; color: #6b521d;
  padding: 6px 12px; border-radius: 20px; font-size: 14px; margin-top: 10px; }

/* Candidates */
.cand { display: flex; gap: 18px; border: 2px solid var(--line); border-radius: 10px; padding: 18px;
  margin-bottom: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cand:hover { border-color: #c4b991; }
.cand.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,70,52,.12); }
.cand img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; background: var(--cream); }
.cand h3 { margin: 0 0 6px; font-size: 21px; }
.cand .bio { font-size: 15px; color: #333; }
.cand .bio.clamped { max-height: 7.8em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.cand .more { background: none; color: var(--green); padding: 4px 0; font-weight: 600; text-decoration: underline; }
.cand .pick { flex: none; width: 26px; height: 26px; border: 2px solid var(--green); border-radius: 50%; margin-top: 2px; display: grid; place-items: center; }
.cand.selected .pick { background: var(--green); }
.cand.selected .pick::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.multi .cand .pick { border-radius: 6px; }
.multi .cand.selected .pick::after { width: 6px; height: 11px; border-radius: 0; background: none; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cand .body { flex: 1; min-width: 0; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 28px; font-family: Georgia, serif; }
.bar { margin: 14px 0; }
.bar .lbl { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 5px; }
.bar .track { height: 26px; background: #ece7d8; border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--green); width: 0; transition: width .6s ease; }
.bar.lead .fill { background: var(--gold); }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pill.open { background: #dcefe3; color: var(--ok); } .pill.closed { background: #f3dcd7; color: var(--red); }
.pill.not_open, .pill.not_configured { background: #f1ead2; color: #6b521d; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: #fff; color: var(--green); border: 1px solid var(--line); }
.tabs button.active { background: var(--green); color: #fff; border-color: var(--green); }
.cand-edit { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fff; }
.spark { width: 100%; height: 90px; }
@media (max-width: 560px) { .cand { flex-direction: column; } .cand img { width: 72px; height: 72px; } header.top h1 { font-size: 24px; } }

/* Club logo in header */
header.top .brand { display: flex; align-items: center; gap: 18px; }
header.top .logo { width: 120px; height: auto; flex: none; }
@media (max-width: 560px) { header.top .logo { width: 84px; } }
