@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/shared/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/shared/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/shared/fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  --accent: #1F3E72;        /* the website's navy; was #4B7BF5 (white text only 3.9:1, audit H5) */
  --accent-dark: #142B52;   /* was #3665E0 */
  --accent-light: #EEF3FF;
  --green: #1DBF78;
  --green-dark: #12A065;
  --green-light: #E8FAF2;
  --coral: #F5687A;
  --coral-dark: #E05468;
  --coral-light: #FEF0F3;
  --amber-light: #FFF7E6;
  --amber-dark: #9A6200;
  --bg: #F8F9FB;
  --card: #FFFFFF;
  --border: #E8ECF4;
  --text: #1A2340;
  --text-mid: #596180;
  --text-light: #666E88;    /* was #9BA4BC; darkened to pass WCAG AA contrast (audit H5) */
  --r: 12px;
  --r-sm: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; }

h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 12px; color: var(--text-mid); }
a { color: var(--accent-dark); }
.muted { color: var(--text-light); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.85em; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 460px; margin: 0 auto 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.field .help { font-size: 0.82rem; color: var(--text-light); margin: 6px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  padding: 10px 12px; border: 1px solid #D6DCEA; border-radius: var(--r-sm);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[disabled], select[disabled], textarea[disabled] { background: #F3F5FA; color: var(--text-mid); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400 !important; cursor: pointer; }
.check input { margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--accent-dark); }
.btn:disabled { background: var(--text-light); cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.light { background: var(--accent-light); color: var(--accent-dark); }
.btn.light:hover:not(:disabled) { background: #DCE6FF; }
.btn.ghost { background: transparent; color: var(--accent-dark); padding: 6px 10px; }
.btn.ghost:hover:not(:disabled) { background: var(--accent-light); }
.btn.danger { background: var(--coral-dark); }
.btn.danger-light { background: var(--coral-light); color: var(--coral-dark); }
.btn.small { padding: 5px 12px; font-size: 0.85rem; }
.linkbtn { font: inherit; background: none; border: 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; padding: 0; }

.notice { border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.9rem; margin-bottom: 16px; }
.notice.info { background: var(--accent-light); color: var(--text); }
.notice.ok { background: var(--green-light); color: #0E6B42; }
.notice.warn { background: var(--amber-light); color: var(--amber-dark); }
.notice.error { background: var(--coral-light); color: var(--coral-dark); }

.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); }
.badge.green { background: var(--green-light); color: var(--green-dark); }
.badge.coral { background: var(--coral-light); color: var(--coral-dark); }
.badge.amber { background: var(--amber-light); color: var(--amber-dark); }
.badge.grey { background: #EEF0F5; color: var(--text-mid); }

.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); padding: 8px; border-bottom: 1px solid var(--border); }
table.grid td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.grid tr.clickable { cursor: pointer; }
table.grid tr.clickable:hover td { background: #FAFBFF; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }

.flash { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: 10px; font-size: 0.9rem; transition: transform 0.2s ease; z-index: 50; max-width: calc(100% - 32px); }
.flash.show { transform: translate(-50%, 0); }
.flash.error { background: var(--coral-dark); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 38px; height: 38px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-mid); cursor: pointer; }
.pw-eye:hover { background: var(--accent-light); color: var(--accent-dark); }

.turnstile { min-height: 65px; margin-bottom: 16px; }
.qr svg { width: 200px; height: 200px; display: block; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--bg); border: 1px dashed #C9D2E8; border-radius: var(--r-sm); padding: 14px; margin-bottom: 16px; }
