/*
 * The trainee page (exforms-notes plans/trainee-packages.md, "The trainee page"). Its own
 * stylesheet, since the send host serves nothing of the portal's: the portal's colours copied as
 * plain values, the system typeface, one column that fits a phone.
 */

:root {
  --bg: #f4f8fd;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #5b6b80;
  --line: #d9e1ec;
  --focus: #bcd7f7;
  --primary: #006fc4;
  --primary-hover: #005b9e;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.brand {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
}

h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
p { margin: 0 0 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin: 0 0 16px;
}

.muted { color: var(--text-muted); font-size: 14px; }

.message {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 16px;
}
.message-note { background: var(--info-bg); color: var(--info); }
.message-error { background: var(--danger-bg); color: var(--danger); }

.button,
.choose {
  display: inline-block;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin: 0 8px 12px 0;
}
.button:hover,
.choose:hover { background: var(--primary-hover); }
.button:disabled { background: var(--line); color: var(--text-muted); cursor: default; }
.button:focus-visible,
.choose:focus-within,
.link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The file input sits inside its label, out of sight; the label is the button. */
.choose input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.link {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

#send-files {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
#send-files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
#send-files li:last-child { border-bottom: 0; }
#send-files img,
.file-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
}
.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file-size { flex: none; color: var(--text-muted); font-size: 14px; }

[hidden] { display: none !important; }
