/* aust.live public pages — results and registration & attendance. Light by
   design: white cards on a pale sage ground, green for actions, a thin gold
   accent. The admin panel and the teacher portal keep their own frame. */
:root {
  --ink: #14312a;
  --ink-2: #2b4a40;
  --green: #1f6b52;
  --green-d: #17543f;
  --green-l: #2f8a69;
  --sage: #dfeee7;
  --sage-2: #eef6f2;
  --line: #d6e3dd;
  --paper: #ffffff;
  --ground: #f4f7f5;
  --muted: #5d7970;
  --gold: #b8892b;
  --gold-soft: #fbf4e2;
  --bad: #b3402e;
  --bad-soft: #fdeeeb;
  --warn: #a8670f;
  --warn-soft: #fff4e0;
  --ok: #1f7a55;
  --ok-soft: #e4f3eb;
  --shadow: 0 10px 30px rgba(var(--accent-rgb, 31, 107, 82), .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 380px at 50% -140px, var(--glow, #dcefe5) 0%, transparent 72%),
    var(--ground);
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 22px 16px 56px; }

/* The page's masthead: seal, university, the page's own name. */
.masthead {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 18px;
  padding: 18px 22px 20px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2, #fbfdfc) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-l) 55%, var(--gold));
}
.masthead img { width: 58px; height: auto; flex: none; }
.masthead .inst { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.masthead h1 { margin: 3px 0 0; font-size: clamp(21px, 3.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; }
.masthead p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

/* The lookup form. */
form.lookup { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field, #fbfdfc);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: var(--muted); opacity: .75; }
.field input:focus { outline: 0; border-color: var(--green); background: var(--paper); box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 31, 107, 82), .14); }
.btn-primary {
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--green-l), var(--green));
  color: var(--on-primary, #fff);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb, 31, 107, 82), .24);
  transition: filter .15s, transform .1s;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 3px solid #c69a3d; outline-offset: 2px; }
.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

.alert, .notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
}
.alert { background: var(--bad-soft); border: 1px solid var(--bad-line, #f0c3ba); color: var(--bad); font-size: 14px; }
.notice { background: var(--note-bg, #fff8e6); border: 1px solid var(--note-line, #ecd9a6); color: var(--note-ink, #6b5216); }
.muted { color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-d);
  white-space: nowrap;
}
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink, #7a5c12); }
.pill.plain { background: var(--sage-2); color: var(--muted); }

.scroll { overflow-x: auto; }
footer.foot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); }
footer.foot div + div { margin-top: 4px; }

@media print {
  body { background: #fff; }
  .noprint, form.lookup, .hint { display: none !important; }
  .card, .masthead { box-shadow: none; border-color: #bbb; }
}
@media (max-width: 560px) {
  .wrap { padding: 16px 12px 44px; }
  .masthead { padding: 14px 16px 16px; gap: 12px; border-radius: 16px; }
  .masthead img { width: 44px; }
  .card { padding: 16px; border-radius: 14px; }
  .btn-primary { width: 100%; }
}
