/* Provisional No Alumni styling. Replace colors via event settings or the variables below. */
:root {
  --primary: #018654;   /* No Alumni green: buttons and links */
  --accent: #020202;    /* No Alumni near-black: header bar */
  --ink: #16191d;
  --muted: #555c66;
  --line: #d4d8de;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #1b6e3a;
  --warn: #8a5a00;
  --err: #a1121f;
  --focus: #1a5fd0;
  --radius: 10px;
  font-size: 100%;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
}
a { color: var(--primary); color: color-mix(in srgb, var(--primary) 78%, #000); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }
.wrap { max-width: 34rem; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.125rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 1rem; }
.env-banner { background: #ffe9a8; color: #3d2e00; text-align: center; font-size: 0.8rem; font-weight: 600; padding: 4px 8px; letter-spacing: 0.02em; }

/* Public pages */
.pub-header { background: var(--accent); color: #fff; }
.pub-header .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.logo-text { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.05rem; }
.pub-main { padding-top: 16px; padding-bottom: 8px; }
.pub-footer { padding-bottom: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #8a929c; border-radius: 8px; background: #fff; color: var(--ink);
}
#code { font-size: 1.35rem; letter-spacing: 0.08em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
#code::placeholder { letter-spacing: 0.08em; color: #9aa1aa; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px;
  font: inherit; font-weight: 700; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { background: #fff; color: var(--primary); color: color-mix(in srgb, var(--primary) 78%, #000); border-color: var(--primary); }
.btn-danger { background: var(--err); color: #fff; }
.btn-link { background: none; border: none; color: var(--primary); color: color-mix(in srgb, var(--primary) 78%, #000); text-decoration: underline; min-height: 44px; padding: 0; font-weight: 600; }
.btn[disabled], .btn[aria-busy=true] { opacity: 0.65; cursor: progress; }
.btn-sm { min-height: 36px; padding: 4px 12px; font-size: 0.9rem; }
.alert { border-radius: 8px; padding: 12px 14px; margin: 12px 0; border-left: 5px solid; background: #fff; }
.alert p { margin: 0.25rem 0; }
.alert-error { border-color: var(--err); background: #fdecee; }
.alert-info { border-color: var(--primary); background: #eef3f9; }
.alert-success { border-color: var(--ok); background: #e9f6ee; }
.alert-warning { border-color: var(--warn); background: #fff6e0; }
.actions .btn + .btn { margin-top: 12px; }
.tips details, .help { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; }
.tips summary, .help summary { cursor: pointer; padding: 14px; font-weight: 600; min-height: 48px; }
.tips details > *:not(summary), .help-body { padding: 0 14px 12px; }
.contact-list { padding-left: 1.1rem; }
.signout { margin-top: 24px; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #e6e9ee; color: var(--ink); white-space: nowrap; }
.tag-demo { background: #ffe9a8; color: #3d2e00; }
.tag-ok { background: #dff3e6; color: #0f4d27; }
.tag-warn { background: #fff0cc; color: #5e3d00; }
.tag-err { background: #fde2e5; color: #7d0d18; }
.tag-info { background: #e3ecf8; color: #183559; }
.offline-note { font-size: 0.9rem; }

/* Staff pages */
body.staff { font-size: 1rem; }
.staff .wrap-wide { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.staff-header { background: #101820; color: #fff; }
.staff-header .wrap-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 52px; }
.staff-header a { color: #fff; }
.staff-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; align-items: center; }
.staff-header form { display: inline; }
.staff-header .btn-link { color: #fff; min-height: 32px; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap-wide { display: flex; flex-wrap: wrap; gap: 2px 14px; padding-top: 8px; padding-bottom: 8px; }
.subnav a { text-decoration: none; padding: 6px 2px; font-weight: 600; }
.subnav a[aria-current=page] { border-bottom: 3px solid var(--primary); }
.staff main { padding: 16px 16px 48px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; text-decoration: none; color: var(--ink); display: block; }
.stat b { display: block; font-size: 1.6rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eceef1; vertical-align: top; }
th { background: #f0f2f5; font-weight: 700; white-space: nowrap; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.form-row { margin-bottom: 14px; }
.form-row .helptext, .helptext { color: var(--muted); font-size: 0.85rem; display: block; margin-top: 4px; }
.errorlist { color: var(--err); margin: 4px 0; padding-left: 1.1rem; font-size: 0.9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.preview-frame { width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.code-once { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2rem; letter-spacing: 0.1em; background: #fff; border: 2px dashed var(--primary); padding: 16px; border-radius: 8px; text-align: center; user-select: all; }
.inline-form { display: inline; }
.danger-zone { border-color: var(--err); }
.qr-preview { max-width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.pagination { margin: 12px 0; display: flex; gap: 12px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0 12px; }
.filters input, .filters select { width: auto; padding: 8px 10px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; word-break: break-all; }
ul.messages { list-style: none; padding: 0; margin: 0 0 8px; }
/* allauth pages (sign in, MFA setup, reauthentication) */
.narrow { max-width: 30rem; }
.staff main form button[type=submit]:not(.btn):not(.btn-link) {
  min-height: 44px; padding: 8px 18px; font: inherit; font-weight: 700; border-radius: 8px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; cursor: pointer; margin: 8px 8px 8px 0;
}
.staff main form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]) { max-width: 44rem; }
.staff main img[src^="data:"] { max-width: 220px; height: auto; background: #fff; padding: 8px; border: 1px solid var(--line); }
.staff main p, .staff main li { max-width: 60rem; }
.code-option { margin-top: 16px; }
.code-option .help-body form { margin-top: 4px; }
