/* First Job Tracker — one stylesheet for all three sites.
   Mobile-first; the job seeker will mostly use a phone. */
:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #1d2a33;
  --muted: #5d6b75;
  --line: #e3ddd3;
  --brand: #1f5f5b;
  --brand-ink: #ffffff;
  --brand-soft: #e3f0ee;
  --accent: #e8743b;
  --good: #2e7d4f;
  --good-soft: #e5f4ea;
  --warn: #9a6200;
  --warn-soft: #fdf1d8;
  --bad: #b3261e;
  --bad-soft: #fbe5e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 42, 51, .06), 0 4px 14px rgba(29, 42, 51, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a1e; --card: #1c2429; --ink: #e8eef1; --muted: #9aa8b1; --line: #2c373e;
    --brand: #4fb3a9; --brand-ink: #0f1a19; --brand-soft: #1d3332;
    --good: #6fcf97; --good-soft: #17301f; --warn: #f2c063; --warn-soft: #3a2f16;
    --bad: #f08a80; --bad-soft: #3a1d1b; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin-top: 1.5rem; }
h3 { font-size: 1.05rem; }
p { margin: .4rem 0 .8rem; }
small, .muted { color: var(--muted); }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px; }
.wide .wrap { max-width: 1180px; }

/* top bar */
.top { background: var(--brand); color: var(--brand-ink); }
.top .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.top a { color: var(--brand-ink); text-decoration: none; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 1.1rem; margin-right: auto; }
.logo span { color: #ffd7c2; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 6px 10px; border-radius: 999px; font-size: .95rem; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.18); }
.top form { margin: 0; }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 10px; text-decoration: underline; }

/* bottom tab bar on phones for the seeker app */
.tabs { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  display: none; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.tabs a { text-decoration: none; color: var(--muted); font-size: .78rem; text-align: center; padding: 4px 8px; }
.tabs a b { display: block; font-size: 1.2rem; }
.tabs a.on { color: var(--brand); font-weight: 700; }
@media (max-width: 640px) {
  .seeker .nav { display: none; }
  .seeker .tabs { display: flex; }
}

/* cards, lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.card h3 a { text-decoration: none; color: var(--ink); }
.card.hero { background: var(--brand-soft); border-color: transparent; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .92rem; margin: .3rem 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }

/* badges */
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.maybe, .badge.caution { background: var(--warn-soft); color: var(--warn); }
.badge.blocked, .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.muted { background: var(--line); color: var(--muted); }
.badge.new { background: var(--accent); color: #fff; }

/* buttons & forms */
.btn, button.btn { display: inline-block; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 44px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--brand); color: var(--brand-ink); }
.btn.secondary { background: var(--card); color: var(--brand); border: 2px solid var(--brand); }
.btn.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: .9rem; border-radius: 10px; }
.btn.block { display: block; width: 100%; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=time], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  background: var(--card); color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.hint { font-size: .9rem; color: var(--muted); margin-top: 2px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px 14px; margin: 12px 0; }
legend { font-weight: 700; padding: 0 6px; }

/* flash */
.flash { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-weight: 600; }
.flash.ok { background: var(--good-soft); color: var(--good); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.notice { background: var(--warn-soft); color: var(--warn); padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alarm { background: var(--bad); color: #fff; padding: 14px; border-radius: 12px; margin: 12px 0; font-weight: 700; }

/* view switcher */
.pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 8px 0; }
.pills a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.pills a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* reasons lists */
.reasons { margin: .3rem 0; padding-left: 1.1rem; }
.reasons li { margin: 2px 0; }
.reasons.good li::marker { color: var(--good); }
.reasons.warn li::marker { color: var(--warn); }
.reasons.bad li::marker { color: var(--bad); }

/* progress / bars */
.meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--good); }
.meter.warn > i { background: var(--warn); }
.meter.bad > i { background: var(--bad); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bars i { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars span { font-size: .65rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.h0 { height: 0; } /* bar heights are classes so the CSP can forbid inline styles */
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.hp0{height:2%}.hp5{height:5%}.hp10{height:10%}.hp15{height:15%}.hp20{height:20%}.hp25{height:25%}.hp30{height:30%}.hp35{height:35%}.hp40{height:40%}.hp45{height:45%}.hp50{height:50%}.hp55{height:55%}.hp60{height:60%}.hp65{height:65%}.hp70{height:70%}.hp75{height:75%}.hp80{height:80%}.hp85{height:85%}.hp90{height:90%}.hp95{height:95%}.hp100{height:100%}

/* toggles */
.switch { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch .what { flex: 1; }
.switch .what small { display: block; }
.toggle { border: 0; border-radius: 999px; min-width: 64px; padding: 8px 12px; font-weight: 800; cursor: pointer; font: inherit; }
.toggle.on { background: var(--good); color: #fff; }
.toggle.off { background: var(--bad-soft); color: var(--bad); }

/* tables (admin) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
pre.cv { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .9rem; }
.decision { max-width: 420px; font-size: .8rem; color: var(--muted); }

/* CV preview looks like paper */
.paper { background: #fff; color: #1b1b1b; border-radius: 6px; padding: 28px 28px 36px; box-shadow: var(--shadow);
  border: 1px solid var(--line); font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; }
.paper h1 { font-size: 1.6rem; margin: 0; }
.paper h4 { color: #1f3a5f; text-transform: uppercase; font-size: .9rem; margin: 18px 0 4px; letter-spacing: .03em; }
.paper ul { margin: 2px 0 8px; padding-left: 1.2rem; }
.paper p { margin: 2px 0 8px; }
.removed li { text-decoration: line-through; text-decoration-color: var(--bad); }
.removed li small { display: block; text-decoration: none; }

/* public site */
.landing h1 { font-size: 2.2rem; }
.landing .lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
footer { color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; text-align: center; }
.center { text-align: center; }
.auth-box { max-width: 420px; margin: 40px auto; }
.cardlink { text-decoration: none; color: inherit; display: block; }
.mt { margin-top: .5rem; }
.grid.stats { grid-template-columns: repeat(3, 1fr); }
.grid.stats .card { padding: 12px; margin: 0 0 4px; }
@media (max-width: 640px) { .grid.stats .stat { font-size: 1.6rem; } .grid.stats .card { font-size: .85rem; } }
/* admin jobs page */
.filter-grid { display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.filter-grid label { margin: 0; font-size: .85rem; }
.filter-grid input, .filter-grid select { margin-top: 3px; padding: 8px 10px; font-size: .95rem; }
.inline-check { display: inline-flex; margin: 0 10px 0 0; font-size: .92rem; }
.grid.stats4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.grid.stats4 .card { margin: 0; padding: 12px; }
.grid.stats4 .stat { font-size: 1.6rem; }
.jobs-table td { font-size: .9rem; }
.stat small { font-size: .9rem; color: var(--muted); font-weight: 500; }
