/* Alumni Ambassadors on Link — one stylesheet for every page (WO-2026-1027-LINK-AMBASSADORS-001).
   Civic, not commercial: an official program for a day at a veterans' memorial hall. Public Sans is the
   US government's civic typeface; the red is the Alumni Ambassadors mark, used for the mark and errors only. */
:root {
  --ink: #14233b;
  --ink-2: #33415a;
  --slate: #5b6675;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #d5dbe3;
  --red: #b3261e;
  --brass: #a87b23;
  --ok: #1e6b3a;
  --ok-bg: #e7f3eb;
  --warn-bg: #fff6e0;
  --focus: #2457a6;
  --radius: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--focus); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* masthead: the mark, then the event as a placard */
.mast { background: var(--ink); color: #fff; }
.mast .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.mark svg { flex: none; }
.placard { border-bottom: 1px solid var(--line); background: var(--card); }
.placard .wrap { padding-top: 28px; padding-bottom: 24px; }
.placard h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 16px; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; font-weight: 600; }

main { padding: 28px 0 56px; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--ink-2); }
.muted { color: var(--slate); font-size: 15px; }

/* forms */
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 16px 6px; margin: 0 0 18px; }
legend { font-weight: 700; font-size: 18px; padding: 0 6px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.field { margin: 0 0 14px; }
label, .label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.hint { display: block; font-weight: 400; color: var(--slate); font-size: 14px; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #aab4c2; border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
/* One height for every single-line control, so a select beside a text field lines up (fit and finish). */
input[type=text], input[type=email], input[type=tel], select { height: 48px; min-height: 48px; }
textarea { min-height: 72px; resize: vertical; }
.invalid input, .invalid select, .invalid textarea, input.invalid, select.invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 0 0 14px; font-size: 16px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.check.invalid span { color: var(--red); }
/* Two even columns: ten interests make five full rows at any width, never an orphan tile. */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.chips label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; margin: 0; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: #fff; cursor: pointer; }
.chips label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chips input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.student { position: relative; }
.student .remove { position: absolute; top: 10px; right: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 17px; border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; }
.btn.secondary { background: #fff; color: var(--ink); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.btn.link { background: none; border: none; color: var(--focus); text-decoration: underline; padding: 6px 4px; min-height: 0; font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }

.notice { border-left: 4px solid var(--ink); background: var(--card); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 18px; }
.notice.error { border-color: var(--red); background: #fdeeee; }
.notice.ok { border-color: var(--ok); background: var(--ok-bg); }
.notice.warn { border-color: var(--brass); background: var(--warn-bg); }
.notice p:last-child { margin: 0; }

/* the two doors on the landing page */
.doors { display: grid; gap: 14px; margin: 22px 0 26px; }
.door { display: block; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--ink);
  border-radius: var(--radius); padding: 16px 18px; color: var(--ink); text-decoration: none; }
.door strong { display: block; font-size: 19px; margin-bottom: 4px; }
.door span { color: var(--slate); font-size: 15px; }
.door:hover { border-color: var(--ink); }
ul.plain { margin: 0 0 16px; padding-left: 20px; }
ul.plain li { margin: 0 0 6px; }

/* the event pass: the one bold thing — a credential, brass star and all */
.pass { background: var(--ink); color: #fff; border-radius: 14px; padding: 22px 20px 20px; max-width: 360px; margin: 0 auto 18px;
  box-shadow: 0 1px 0 rgba(20,35,59,.2), 0 12px 32px -14px rgba(20,35,59,.55); position: relative; overflow: hidden; }
.pass::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, #fff 22px 44px); }
.pass .org { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #dfe5ee; margin: 6px 0 14px; }
.pass .who { font-size: 30px; font-weight: 800; line-height: 1.1; margin: 0 0 4px; letter-spacing: -.01em; }
.pass .what { color: #dfe5ee; font-size: 15px; margin: 0 0 16px; }
.pass .qr { background: #fff; border-radius: 10px; padding: 14px; display: grid; place-items: center; }
.pass .qr svg, .pass .qr img { width: 100%; max-width: 240px; height: auto; display: block; }
.pass .code { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .22em; margin: 14px 0 0; color: #fff; }
.pass .code small { display: block; font-size: 13px; letter-spacing: 0; font-weight: 500; color: #c9d2de; }
.pass .star { position: absolute; right: 16px; top: 18px; color: var(--brass); }

/* staff door */
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.counts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.counts b { font-size: 20px; color: var(--ink); }
table.roster { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.roster th, .roster td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.roster th { font-size: 13px; color: var(--slate); font-weight: 600; background: #eef1f5; }
.roster tr.in td { background: var(--ok-bg); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: var(--ink-2); white-space: nowrap; }
.tag.warn { background: var(--warn-bg); color: #6b4d0f; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 620px) {
  .roster thead { display: none; }
  .roster tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .roster td { display: block; border: none; padding: 3px 10px; }
}

/* Second pass, fit and finish (CAPT 2026-10-28: "Fit and finish is the mark of professionals"). Help text sits under
   its field, so two fields in a row always line up; "optional" is said one way, beside the label; titles balance. */
h1, .placard h1 { text-wrap: balance; }
.help { display: block; color: var(--slate); font-size: 14px; line-height: 1.4; margin: 6px 0 0; }
.opt { font-weight: 400; color: var(--slate); font-size: 14px; margin-left: 6px; line-height: 1; }
.section-note { color: var(--slate); font-size: 15px; margin: -4px 0 14px; }

/* Who is registering: two choices, one answer. */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; border: 0; padding: 0; background: none; }
.choose legend { font-size: 18px; padding: 0; margin: 0 0 10px; }
.choose label { position: relative; display: block; margin: 0; padding: 14px 16px 14px 18px; background: #fff; cursor: pointer;
  border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--radius); font-weight: 400; }
.choose label strong { display: block; font-size: 17px; margin: 0 0 3px; color: var(--ink); }
.choose label span { display: block; color: var(--slate); font-size: 15px; line-height: 1.4; }
.choose input { position: absolute; opacity: 0; pointer-events: none; }
.choose label:has(input:checked) { border-color: var(--ink); border-left-color: var(--ink); }
.choose label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 520px) { .choose { grid-template-columns: 1fr; } }

/* A roster from a spreadsheet: choose the file, see what was read, fix and choose again. */
.upload { border: 1px dashed #aab4c2; border-radius: var(--radius); background: #fff; padding: 14px 16px; margin: 0 0 18px; }
.upload h3 { margin: 0 0 4px; }
.upload p { color: var(--ink-2); font-size: 15px; margin: 0 0 10px; }
.upload .pick { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.upload input[type=file] { font: inherit; font-size: 15px; max-width: 100%; }
.upload .result { margin: 12px 0 0; font-size: 15px; }
.upload .result ul { margin: 6px 0 0; padding-left: 20px; color: var(--red); font-size: 14px; }
/* A reveal (CAPT 2026-10-28): the line keeps its place, muted, with the teaser over it until the words arrive. */
.reveal:not(.revealed) { display: inline-block; padding: 1px 10px; margin: 0 2px; border-radius: 999px; vertical-align: baseline;
  background: repeating-linear-gradient(135deg, #f3e7c6 0 6px, #f8efd8 6px 12px); border: 1px solid #e6cf8f;
  color: #6b4d0f; font-weight: 700; font-size: .86em; letter-spacing: .01em; white-space: normal; }
.reveal.revealed { font-weight: inherit; }
/* The file button: the input stays reachable by keyboard; the label is what a person sees. */
.upload .pick { position: relative; }
.upload .pick label.btn { margin: 0; }
.file-pick { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-name { color: var(--slate); font-size: 15px; }
.count { display: inline-block; font-size: 14px; font-weight: 700; color: var(--ink-2); background: #eef1f5; border-radius: 999px; padding: 3px 10px; }

footer.site { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--slate); font-size: 14px; }
footer.site a { color: var(--slate); }
footer.site a + a { margin-left: 14px; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .pass { animation: lift .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes lift { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media print {
  .mast, footer.site, .actions, .no-print { display: none !important; }
  body { background: #fff; }
  .pass { box-shadow: none; }
}
