/* Job Hunt: plain CSS, no build step. Colours are tokens with a dark mode. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --border: #e2e2dd;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fbe9e7;
  --ok-bg: #e8f3ea;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #1f1f1d;
    --text: #ececea;
    --muted: #a3a39d;
    --border: #33332f;
    --accent: #7aa7ff;
    --accent-text: #0d1a33;
    --danger: #ff8a80;
    --danger-bg: #3a1d1b;
    --ok-bg: #1d3322;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; }
h2 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }

.topbar {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between;
  padding: .75rem 16px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.topbar nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.container { max-width: 960px; margin: 0 auto; padding: 1.5rem 16px; }
.footer { text-align: center; padding: 2rem 16px; font-size: .85rem; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--muted); margin: 0 0 .25rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card + .card { margin-top: 1rem; }
.narrow { max-width: 28rem; margin-left: auto; margin-right: auto; }
.notice { border-left: 4px solid var(--accent); }

.stack { display: flex; flex-direction: column; gap: .75rem; }
.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.row label { flex: 1 1 16rem; }
.actions { display: flex; gap: .5rem; }
.admin-notice { max-width: 40rem; margin: 0 auto .5rem; }
.card.notice .admin-notice { margin: 0; }
label { display: flex; flex-direction: column; gap: .25rem; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
input, select, textarea {
  font: inherit; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text);
}
button { font: inherit; cursor: pointer; padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.danger { color: var(--danger); border-color: var(--danger); }
button.link { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; }

.alert { background: var(--danger-bg); color: var(--danger); padding: .6rem .8rem; border-radius: 6px; margin: 0 0 .75rem; }
.flash { background: var(--ok-bg); padding: .6rem .8rem; border-radius: 6px; margin: 0 0 1rem; }
code.secret { display: block; overflow-wrap: anywhere; padding: .6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }

table { width: 100%; border-collapse: collapse; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* The profile (#24): a short summary, and the resume line behind each item. */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .75rem 0; }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; }
.sources { font-size: .9rem; color: var(--muted, inherit); margin: .25rem 0 1rem; padding-left: 1.1rem; }
.sources li { margin: .15rem 0; overflow-wrap: anywhere; }
textarea { width: 100%; box-sizing: border-box; }

/* The answer bank (#25). */
fieldset { border: 1px solid var(--border); border-radius: 6px; margin: 0 0 1rem; padding: .75rem 1rem; display: flex; flex-direction: column; gap: .75rem; }
legend { font-weight: 600; padding: 0 .25rem; }
label .alert { margin: 0; padding: .25rem .5rem; font-weight: 400; }
