/* One plain column, no cards.  Mobile first: full width with even side padding; wider screens just center it. */
:root {
  --ink: #1c1f24;
  --muted: #646b76;
  --line: #e3e6ea;
  --accent: #1f5f8b;
  --field: #f7f8fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 680px; margin: 0 auto; padding: 28px 22px 72px; }
@media (min-width: 720px) { main { padding-top: 64px; } }

a { color: var(--accent); }
b, strong { font-weight: 600; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 2em 0 0.5em; }
h3 { font-size: 1rem; margin: 1.2em 0 0.3em; }
p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5em; }
.eyebrow a { text-decoration: none; }
.notice { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* Job page */
.facts { list-style: none; padding: 0; margin: 0 0 1.5em; display: flex; flex-wrap: wrap; gap: 0 0.5em; color: var(--muted); }
.facts li { margin: 0; }
.facts li + li::before { content: "·"; margin-right: 0.5em; }
.reqs h3 { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
ol.steps li::marker { color: var(--ink); font-weight: 600; }

/* Buttons */
.button, button.primary {
  display: inline-block; appearance: none; border: 0; border-radius: 10px; padding: 14px 24px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; margin: 0.5em 0 1em;
}
.button:hover, button.primary:hover { filter: brightness(1.08); }
@media (max-width: 520px) { .button, button.primary { display: block; width: 100%; text-align: center; } }

/* Forms */
.apply h2:first-of-type { margin-top: 1.5em; }
.field { display: block; margin: 0 0 1.4em; font-weight: 600; }
.field .muted { font-weight: 400; }
.hint, legend .hint { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); margin-top: 2px; }
.prompt { display: block; font-weight: 400; margin-top: 4px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px;
}
textarea { resize: vertical; min-height: 6em; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23646b76' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background-color: #fff; }

fieldset { border: 0; padding: 0; margin: 0 0 1.4em; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 0.5em; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 0.6em; font-weight: 400; }
.choice input { width: 18px; height: 18px; margin: 0.2em 0 0; flex: none; accent-color: var(--accent); }
.other-times { margin: 0.4em 0 0 28px; font-weight: 400; }
.hp { position: absolute; left: -9999px; }

/* Admin: one row per applicant; click a row to expand it. */
.app { border-top: 1px solid var(--line); }
.app:last-of-type { border-bottom: 1px solid var(--line); }
.app summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 12px;
  align-items: center; justify-content: space-between; }
.app summary::-webkit-details-marker { display: none; }
.app .who::before { content: "▸"; color: var(--muted); display: inline-block; width: 1.1em; transition: transform 0.15s; }
.app[open] .who::before { transform: rotate(90deg); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--field); color: var(--muted); }
.tag.ok { background: #e7f3ec; color: #22663d; }
.tag.warn { background: #fdecea; color: #a1281e; }
.app-body { padding: 0 0 1.5em 1.1em; }
.app-body h3 { margin-top: 1.6em; }
.app-body h4 { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 1em 0 0.2em; }
.app-body p { white-space: pre-wrap; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0.5em 0 0; }
dt { color: var(--muted); font-size: 0.9rem; }
dd { margin: 0; }
@media (max-width: 520px) { dl { grid-template-columns: 1fr; gap: 0; } dd { margin-bottom: 8px; } .app-body { padding-left: 0; } }
.foot { margin-top: 2em; }
/* Admin: collapsible notes to self above the applications. */
.notes { background: var(--field); border-radius: 8px; padding: 10px 14px; margin: 1em 0 1.5em; font-size: 0.92rem; }
.notes summary { cursor: pointer; font-weight: 600; }
.notes h4 { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 1em 0 0.2em; }
.notes ul { margin: 0.2em 0; padding-left: 1.2em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.row input.link { flex: 1; min-width: 0; margin: 0; font: 0.85rem ui-monospace, Menlo, monospace; padding: 8px 10px; }
.row button { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.copy-done { color: var(--accent); }
.rules { padding-left: 1.25em; }
@media (max-width: 520px) {
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .facts li + li::before { content: none; }
}

/* Question 0: the intro video, and its player on /admin. */
.video-q { margin-bottom: 2em; }
.video-q .prompt { margin: 0.2em 0 0; }
input[hidden] { display: none !important; }
.vprev { display: block; width: 100%; max-height: 420px; background: #000; border-radius: 10px; margin: 0.6em 0; }
.vprev[hidden] { display: none; }
.vbtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.8em 0 0.4em; }
.vbtns button, .vpick { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--accent); background: #fff; color: var(--accent); }
.vbtns .vrec { background: var(--accent); color: #fff; }
.player { position: relative; padding-top: 56.25%; margin: 0.4em 0 1em; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
