/* Quiz generator screens. Black on white, like the printed quiz. */

:root {
  --ink: #111;
  --muted: #666;
  --line: #d6d6d6;
  --paper: #fff;
  --tint: #f4f4f4;
  --ok: #1d6b35;
  --bad: #a4161a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Nunito", system-ui, sans-serif;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ink);
}
.brand {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
nav a { color: var(--ink); font-weight: 700; }
.who { color: var(--muted); }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 30px; margin: 0 0 20px; }
h2 { font-size: 20px; margin: 32px 0 12px; }

.flash { padding: 10px 14px; border: 1px solid var(--line); border-left-width: 5px; }
.flash-ok { border-left-color: var(--ok); }
.flash-bad { border-left-color: var(--bad); }

form.stack { display: grid; gap: 14px; max-width: 420px; }
form.inline { display: inline; margin: 0; }
label { display: grid; gap: 4px; font-weight: 700; }
label small { font-weight: 400; color: var(--muted); }
input, select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #999;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }

button {
  font: inherit;
  font-weight: 700;
  padding: 9px 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  justify-self: start;
}
button.secondary { background: var(--paper); color: var(--ink); }
button.link { border: 0; padding: 0; background: none; color: var(--ink); text-decoration: underline; font-weight: 700; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.note { background: var(--tint); padding: 12px 14px; }
.copy { font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); padding: 16px; }
.tile h2 { margin-top: 0; }
