/* WFS Event Management System: brand tokens and components.
   WFS Brand Guidelines v1 (Oct 2026). Jost stands in for Futura. See CLAUDE.md "Brand". */

:root {
  --purple: #82388a;
  --purple-dark: #1d1333;
  --purple-light: #ddc5df;
  --orange: #f7941d;
  --lilac: #e8dce5;
  --grey-light: #f6f6f6;
  --grey-dark: #545762;
  --ink: #1d1333;
  --line: #e8dce5;
  --ok: #1f6b3a; --ok-bg: #e3f0e6;
  --warn: #6e3b00; --warn-bg: #fde4c4;
  --err: #8a1c1c; --err-bg: #f8e1e1;
  --radius: 10px;
  --font-head: Futura, Jost, sans-serif;
  --font-body: Montserrat, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--grey-light); }
a { color: var(--purple); }
a:hover { color: #5e2566; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 8px; line-height: 1.15; }
h1 { font-size: 28px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; color: var(--grey-dark); }
p { margin: 0 0 12px; }
.muted { color: var(--grey-dark); font-size: 14px; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.site-header { background: linear-gradient(90deg, var(--purple), var(--purple-dark)); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 13px; color: var(--purple-light); }
.header-user { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--purple-light); }
.header-user strong { color: #fff; font-weight: 600; }
.site-footer { margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 12px; color: #6b6e78; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: #6b6e78; }

/* Admin nav */
.admin-nav { background: #fff; border-bottom: 1px solid var(--line); }
.admin-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.admin-nav a { padding: 12px 14px; text-decoration: none; color: var(--grey-dark); font-weight: 500; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.admin-nav a.active, .admin-nav a:hover { color: var(--purple); border-bottom-color: var(--purple); }

.main { padding-top: 28px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--purple); letter-spacing: 0.4px; text-transform: uppercase; }

/* Cards and grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.card + .card { margin-top: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { font-size: 13px; color: var(--grey-dark); }
.stat .value { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat .value small { font-size: 15px; color: var(--grey-dark); font-family: var(--font-body); font-weight: 500; }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--grey-dark); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid #f0eaf0; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #c9bfd0; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--purple-light); border-color: var(--purple); }
.field { margin-bottom: 16px; }
.help { font-size: 13px; color: var(--grey-dark); margin-top: 4px; }
.errorlist { color: var(--err); font-size: 13px; margin: 4px 0 0; padding-left: 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 600; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #6e2f76; color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #c9bfd0; }
.btn-secondary:hover { border-color: var(--purple); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); padding: 8px 14px; font-size: 14px; }
.btn-ghost:hover { border-color: #fff; }
.btn-small { padding: 7px 12px; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--purple); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Status pills and notices */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-neutral { background: var(--lilac); color: var(--purple-dark); }
.pill-purple { background: var(--purple-light); color: var(--purple-dark); }
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.notice-success { background: var(--ok-bg); color: var(--ok); border-color: #bfdcc7; }
.notice-error { background: var(--err-bg); color: var(--err); border-color: #e9bcbc; }
.notice-warning, .notice-info { background: #fef1e0; color: var(--warn); border-color: var(--orange); }
.callout { background: var(--grey-light); border-radius: 8px; padding: 14px 16px; font-size: 14px; }

/* Sign-in */
.auth-card { max-width: 440px; margin: 40px auto; }
.auth-card h1 { font-size: 22px; }

/* Email-style summary rows */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--grey-dark); }
.kv dd { margin: 0; font-weight: 600; }
.row-handed-back td { color: var(--grey-dark); text-decoration: line-through; }
