/* Owen's Job Bank — warm, mobile-first, no-corporate */
:root {
  --bg: #fdf6ec;
  --card: #fffdf8;
  --ink: #2e2620;
  --muted: #6f6257;
  --accent: #e07840;        /* warm terracotta */
  --accent-dark: #b85a28;
  --accent-soft: #fbe3d3;
  --teal: #2f7d6d;
  --teal-soft: #d9ede7;
  --gold: #f2b705;
  --gold-soft: #fdf3cf;
  --line: #e8dccb;
  --danger: #a33b2e;
  --danger-soft: #fbe0db;
  --ok: #2f7d4f;
  --ok-soft: #ddf0e2;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(46, 38, 32, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 18px; }
a { color: var(--accent-dark); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .7em; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #e07840 0%, #d95f2e 55%, #c24e63 100%);
  color: #fff;
  padding: 34px 0 26px;
  border-bottom: 6px solid var(--gold);
}
.site-header .eyebrow {
  margin: 0 0 6px; font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; opacity: .92;
}
.site-header h1 { font-size: 2.3rem; margin: 0 0 6px; }
.site-header .subtitle { font-size: 1.12rem; margin: 0 0 18px; opacity: .97; }
.quick-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-nav a {
  color: #fff; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.45);
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: .95rem; font-weight: 600;
}
.quick-nav a:hover, .quick-nav a:focus-visible { background: rgba(255,255,255,.32); }

/* Trust bar */
.trust-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 20px 0 8px;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.trust-bar .trust-item { flex: 1 1 220px; }
.trust-bar .trust-label {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.trust-bar .trust-value { font-size: 1.12rem; font-weight: 700; }
.trust-bar .trust-note { flex-basis: 100%; font-size: .92rem; color: var(--muted); margin: 0; }

/* Sections */
main section { margin: 34px 0; }
.section-head { margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; }
.region-tag {
  display: inline-block; background: var(--teal-soft); color: var(--teal);
  font-weight: 700; font-size: .8rem; padding: 2px 10px; border-radius: 999px;
  vertical-align: middle;
}

/* Town picker */
.town-picker h2 { margin-bottom: 2px; }
.town-picker .hint { color: var(--muted); font-size: .95rem; }
.town-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.town-btn {
  font: inherit; font-weight: 700; font-size: 1rem;
  min-height: 48px; padding: 10px 18px;
  border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line);
}
.town-btn .count {
  font-weight: 600; font-size: .85rem; color: var(--muted); margin-left: 4px;
}
.town-btn:hover { border-color: var(--accent); }
.town-btn[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.town-btn[aria-pressed="true"] .count { color: #ffe9d9; }
.town-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Filters */
.filters {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 14px;
  display: grid; gap: 12px;
}
.search-wrap input[type="search"] {
  width: 100%; font: inherit; font-size: 1.05rem;
  padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 12px; background: #fff;
}
.search-wrap input[type="search"]:focus { outline: 3px solid var(--gold); border-color: var(--accent); }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.toggle {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; cursor: pointer; min-height: 44px;
}
.toggle input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.select-wrap { font-weight: 600; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.select-wrap select {
  font: inherit; font-size: 1rem; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  min-height: 48px;
}
.result-count { font-weight: 700; color: var(--muted); margin: 4px 0 12px; }

/* Job cards */
.job-list { display: grid; gap: 14px; }
.job-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.job-card.unverified { border-left: 6px solid var(--gold); }
.job-card.verified { border-left: 6px solid var(--teal); }
.job-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.job-card .employer { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.job-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .95rem; margin-bottom: 10px;
}
.job-meta dt { font-weight: 700; color: var(--muted); display: inline; margin-right: 4px; }
.job-meta dd { display: inline; margin: 0; font-weight: 600; }
.job-meta > div { display: inline; }
.job-card .hours { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.job-card .notes {
  background: #f8f1e6; border-radius: 10px;
  padding: 10px 12px; font-size: .93rem; margin-bottom: 12px;
}
.job-card .notes strong { color: var(--accent-dark); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge {
  display: inline-block; font-size: .82rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; line-height: 1.4;
}
.badge.verified { background: var(--ok-soft); color: var(--ok); }
.badge.unverified { background: var(--gold-soft); color: #7a5b00; }
.badge.school { background: var(--teal-soft); color: var(--teal); }
.badge.not-school { background: var(--danger-soft); color: var(--danger); }
.badge.growth { background: var(--accent-soft); color: var(--accent-dark); }
.badge.warning { background: var(--danger-soft); color: var(--danger); }
.btn {
  display: inline-block; font: inherit; font-weight: 700;
  background: var(--accent); color: #fff; border: none;
  padding: 12px 20px; border-radius: 12px; cursor: pointer;
  text-decoration: none; min-height: 48px;
}
.btn:hover { background: var(--accent-dark); }
.job-link { display: inline-block; font-weight: 700; }
.job-link::after { content: " \2197"; }

/* Empty states */
.empty-state {
  background: var(--card); border: 2px dashed var(--line);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.empty-state p { margin-bottom: 8px; }

/* Charts */
.chart-grid { display: grid; gap: 16px; }
.chart-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin: 0;
}
.chart-card figcaption { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.chart-wrap { position: relative; }
.takeaway { font-size: .95rem; color: var(--muted); margin: 10px 0 0; }
.takeaway strong { color: var(--ink); }

/* Generic cards (schooling / programs / initiatives) */
.card-list { display: grid; gap: 14px; }
.info-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.info-card.not-for-teens { border-left: 6px solid var(--danger); background: #fff8f6; }
.info-card.unknown-status { border-left: 6px solid var(--gold); }
.info-card h3 { margin-bottom: 6px; }
.info-card .meta-line { font-size: .95rem; color: var(--muted); margin-bottom: 8px; }
.info-card .meta-line strong { color: var(--ink); }
.info-card dl { margin: 0 0 10px; }
.info-card dt { font-weight: 700; margin-top: 8px; }
.info-card dd { margin: 2px 0 0; }
.type-badge, .status-badge {
  display: inline-block; font-size: .8rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin: 0 6px 6px 0;
  vertical-align: middle;
}
.type-badge { background: var(--teal-soft); color: var(--teal); }
.status-open { background: var(--ok-soft); color: var(--ok); }
.status-closed { background: var(--danger-soft); color: var(--danger); }
.status-unknown { background: var(--gold-soft); color: #7a5b00; }
.status-active { background: var(--teal-soft); color: var(--teal); }
.not-teens-banner {
  background: var(--danger-soft); color: var(--danger);
  border-radius: 10px; padding: 10px 12px; font-weight: 700; margin-bottom: 10px;
}
.warn-note {
  background: var(--gold-soft); border-radius: 10px;
  padding: 10px 12px; font-size: .93rem; margin-bottom: 10px;
}
.pay-note {
  background: var(--gold-soft); border-radius: 10px;
  padding: 10px 12px; font-size: .93rem; margin-bottom: 10px;
}
.pay-note.below-student {
  background: var(--danger-soft); color: var(--danger);
}

/* Career paths */
.path-list { display: grid; gap: 16px; }
.path-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.path-card .entry { font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.path-card .entry strong { color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 16px 34px;
  border-left: 3px solid var(--accent-soft); margin-left: 10px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: -14px; top: 0;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps .step-title { font-weight: 700; display: block; }
.steps .step-time { font-size: .85rem; font-weight: 700; color: var(--accent-dark); }
.steps p { margin: 2px 0 0; font-size: .95rem; }
.path-card .path-notes {
  background: #f8f1e6; border-radius: 10px;
  padding: 10px 12px; font-size: .93rem; margin-top: 12px;
}
.path-card .path-source { font-size: .9rem; margin-top: 10px; }

/* Footer */
.site-footer {
  background: #2e2620; color: #f3e9dc;
  padding: 30px 0 40px; margin-top: 40px;
}
.site-footer h2 { color: #fff; }
.site-footer a { color: var(--gold); }
.source-list { columns: 2; column-gap: 32px; font-size: .92rem; margin: 0 0 16px; padding-left: 20px; }
.source-list li { margin-bottom: 4px; break-inside: avoid; }
.fineprint { font-size: .9rem; color: #cbbba8; }

/* Wider screens */
@media (min-width: 700px) {
  .site-header h1 { font-size: 2.8rem; }
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .chart-card:last-child { grid-column: 1 / -1; }
  .job-list, .card-list, .path-list { grid-template-columns: 1fr 1fr; }
  .job-list .job-card, .card-list .info-card, .path-list .path-card { height: 100%; }
}
