/* Theme: warm and encouraging (cream, forest green, amber) */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f6f0e6;
  --border: #ece3d4;
  --text: #22221c;
  --muted: #736d60;
  --accent: #2f6b47;
  --accent-strong: #1f4a31;
  --accent-soft: #e6efe8;
  --warm: #c96f16;
  --warm-soft: #fdebd2;
  --heading: #1f3d2b;
  --good: #2f7a4b;
  --good-soft: #e3f1e7;
  --warn: #9a5a0f;
  --warn-soft: #fbeedb;
  --bad: #b3392b;
  --bad-soft: #fbe9e5;
  --info-soft: #eef2ea;
  --info: #3e5f4a;
  --access: #4b4f9e;
  --access-soft: #ecebfa;
  --shadow: 0 1px 2px rgba(60, 50, 30, .05), 0 6px 20px rgba(60, 50, 30, .07);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161915; --surface: #1e221d; --surface-2: #262b25; --border: #343b32; --text: #ece8df; --muted: #a9a394;
    --accent: #7cc49a; --accent-strong: #a8dcbb; --accent-soft: #1f3327; --warm: #f0a35a; --warm-soft: #3a2a16; --heading: #cfe8d6;
    --good: #7cc49a; --good-soft: #1c3024; --warn: #f0b35e; --warn-soft: #36291a; --bad: #f08a7c; --bad-soft: #3a201c;
    --info-soft: #232b24; --info: #b7cdbd; --access: #b9bcf5; --access-soft: #2a2b45; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161915; --surface: #1e221d; --surface-2: #262b25; --border: #343b32; --text: #ece8df; --muted: #a9a394;
  --accent: #7cc49a; --accent-strong: #a8dcbb; --accent-soft: #1f3327; --warm: #f0a35a; --warm-soft: #3a2a16; --heading: #cfe8d6;
  --good: #7cc49a; --good-soft: #1c3024; --warn: #f0b35e; --warn-soft: #36291a; --bad: #f08a7c; --bad-soft: #3a201c;
  --info-soft: #232b24; --info: #b7cdbd; --access: #b9bcf5; --access-soft: #2a2b45; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--surface); padding: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.topbar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: 1.15rem; }
.brand strong { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-strong); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); font-size: .75rem; text-align: center; color: var(--muted); }
.count:empty { display: none; }
.count.alert { background: var(--bad); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 1.2rem; cursor: pointer; }

.main { max-width: 1320px; margin: 0 auto; padding: 20px 16px 40px; min-height: 70vh; }
.footer { max-width: 1320px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #062421; } }
.btn.primary:hover { background: var(--accent-strong); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: .85rem; }
.btn.link { border: none; background: none; color: var(--accent); padding: 4px 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search], input[type=month], input[type=number], input[type=password], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-height: 38px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 4px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-title h2 { margin: 0; }
.segmented { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.segmented button { flex: 1 1 auto; border: none; background: var(--surface); padding: 6px 3px; cursor: pointer; font-size: .78rem; border-right: 1px solid var(--border); white-space: nowrap; }
.segmented button:last-child { border-right: none; }
.segmented button.on { background: var(--accent); color: #fff; }

/* Chips & badges */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); white-space: nowrap; }
.chip.type { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.type.inferred { background: transparent; border: 1px dashed var(--info); }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.verified { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.chip button { border: none; background: none; cursor: pointer; padding: 0 0 0 2px; color: inherit; font-size: .9rem; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Search layout */
.hero { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.hero .kw { flex: 1; min-width: 240px; position: relative; }
.hero .kw input { min-height: 46px; font-size: 1rem; padding-left: 38px; }
.hero .kw svg { position: absolute; left: 12px; top: 14px; color: var(--muted); }
.hero .btn { min-height: 46px; }
.search-layout { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters-toggle { display: none; }
.results-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head .summary { flex: 1; min-width: 200px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.errors { font-size: .8rem; color: var(--muted); margin: 6px 0 12px; }

.job { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.job:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.job h3 { margin: 0 0 2px; font-size: 1.05rem; }
.job .company { font-weight: 500; }
.job .meta { color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 8px; }
.job .side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.icon-btn { background: none; border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.icon-btn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.ring { --p: 0; --c: var(--accent); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); flex: none; }
.ring > span { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.ring.lg { width: 96px; height: 96px; }
.ring.lg > span { width: 78px; height: 78px; font-size: 1.4rem; }
.ring.na > span { color: var(--muted); font-weight: 500; font-size: .75rem; text-align: center; }
.ring-label { font-size: .7rem; color: var(--muted); text-align: center; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty svg { color: var(--border); margin-bottom: 8px; }

/* Drawer */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(8, 12, 18, .45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--bg); z-index: 50; transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; box-shadow: -8px 0 32px rgba(0, 0, 0, .18); }
.drawer.open { transform: none; }
.drawer-head { background: var(--surface); padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.drawer-head h2 { font-size: 1.3rem; margin: 0 0 2px; padding-right: 36px; }
.drawer-close { position: absolute; top: 14px; right: 14px; }
.drawer-body { padding: 16px 20px 40px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 12px 0 0; }
.tabs button { background: none; border: none; padding: 8px 12px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--accent-strong); border-color: var(--accent); }
.desc { white-space: pre-wrap; font-size: .92rem; line-height: 1.6; }
.bars { display: grid; gap: 10px; flex: 1; min-width: 240px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 44px; gap: 10px; align-items: center; font-size: .86rem; }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 4px; }
.bar-note { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; margin-top: -6px; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface); padding: 10px 12px; border-radius: 8px; }
.tips li.gap { border-left-color: var(--warn); }
.tips li strong { display: block; margin-bottom: 2px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.checks .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; }
.checks .ok .ic { background: var(--good); }
.checks .warn .ic { background: var(--warn); }
.checks .bad .ic { background: var(--bad); }
.checks .info .ic { background: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checks .ic { color: #0e1319; } }

/* Modal */
.modal-backdrop { display: grid; place-items: center; padding: 16px; z-index: 60; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 20px; width: min(480px, 100%); box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Toasts */
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); font-size: .9rem; }

/* Privacy callout */
.privacy { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid var(--accent); }
.privacy-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.privacy strong { display: block; font-size: 1.05rem; color: var(--accent-strong); margin-bottom: 2px; }
.privacy p { margin: 0; color: var(--text); font-size: .92rem; }
.privacy.compact { margin: 0 0 16px; padding: 10px 14px; }
.privacy.compact .privacy-icon { width: 38px; height: 38px; }
.privacy.compact strong { font-size: .95rem; }
.footer p { margin: 0 0 4px; }

/* Profile */
.profile-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.choice .opt { border: 2px dashed var(--border); border-radius: var(--radius); padding: 18px; text-align: center; background: var(--surface); cursor: pointer; }
.choice .opt:hover, .choice .opt.drag { border-color: var(--accent); background: var(--accent-soft); }
.choice .opt strong { display: block; margin: 6px 0 2px; }
.entry { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.entry .row { margin-top: 4px; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-height: 42px; }
.tag-input input { border: none; flex: 1; min-width: 140px; min-height: 28px; padding: 2px 4px; box-shadow: none !important; background: transparent; }
.sticky-side { position: sticky; top: 72px; }
.meter { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; margin: 6px 0; }
.meter > div { height: 100%; background: var(--accent); }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; font-size: .88rem; }
.checklist li { padding: 3px 0; }
.checklist li.done { color: var(--good); }

/* Tables / lists */
.list-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-item:last-child { border-bottom: none; }
.list-item .grow { flex: 1; min-width: 220px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.new-jobs { margin-top: 10px; display: grid; gap: 6px; }
.new-job { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: .88rem; cursor: pointer; }
.new-job:hover { outline: 1px solid var(--accent); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--info-soft); color: var(--text); font-size: .88rem; margin-bottom: 14px; border: 1px solid transparent; }
.notice.warn { background: var(--warn-soft); }

@media (max-width: 960px) {
  .search-layout, .profile-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .sticky-side { position: static; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 8px 16px; }
  .nav.open { display: flex; }
  .topbar-inner { position: relative; }
  .grid2, .grid3, .choice { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 40px; }
  .job { grid-template-columns: 1fr; }
  .hero .btn { flex: 1; }
  .job .side { flex-direction: row; justify-content: flex-start; }
  h1 { font-size: 1.35rem; }
}

/* ---------- v2: staffing, filters, docs, tracker ---------- */
.mode-banner { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.mode-banner h1 { margin-bottom: 4px; }
.mode-banner p { margin: 0; color: var(--muted); font-size: .92rem; }
.mode-banner > div:first-child { color: var(--accent); padding-top: 4px; }
.index-note { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin: -4px 0 10px; }
.job.seen { opacity: .82; }
.job .meta .pay { color: var(--good); font-weight: 600; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plain li { display: flex; gap: 8px; align-items: flex-start; }
.plain li svg { flex: none; margin-top: 3px; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.stat strong { display: block; font-size: 1.4rem; }
.stat span { font-size: .8rem; color: var(--muted); }
.modal.wide { width: min(760px, 100%); }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs button { white-space: nowrap; }
.letter-edit { min-height: 420px; font-family: Georgia, "Times New Roman", serif; font-size: .95rem; line-height: 1.55; }

/* document preview & print */
.doc-preview { background: #fff; color: #111; border: 1px solid var(--border); border-radius: 8px; padding: 28px 32px; box-shadow: var(--shadow); }
.doc { font-family: Georgia, "Times New Roman", serif; color: #111; line-height: 1.4; }
.doc h1 { font-size: 1.6rem; margin: 0 0 2px; color: #111; }
.doc h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid #999; padding-bottom: 2px; margin: 16px 0 6px; color: #111; }
.doc p { margin: 0 0 6px; }
.doc ul { margin: 4px 0 8px 18px; padding: 0; }
.doc li { margin-bottom: 2px; }
.doc-contact { font-size: .85rem; color: #333; }
.doc-row { display: flex; justify-content: space-between; gap: 12px; }
.doc-entry { margin-bottom: 8px; }
.doc.letter p { margin: 0; }
.doc.letter p.gap { height: .9em; }
#printArea { display: none; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block; }
  body.printing { background: #fff; }
  @page { margin: 0.6in; }
}

/* tracker board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.column { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); min-height: 260px; display: flex; flex-direction: column; }
.column.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.column header { padding: 10px 12px 6px; }
.column header strong { margin-right: 6px; }
.column header .hint { margin-top: 2px; }
.column-body { padding: 6px 10px 12px; display: grid; gap: 8px; }
.column-empty { color: var(--muted); font-size: .82rem; text-align: center; padding: 18px 0; border: 1px dashed var(--border); border-radius: 8px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tcard.dragging { opacity: .5; }
.tcard-title { font-weight: 600; text-decoration: none; color: var(--text); display: block; margin-bottom: 2px; }
.tcard-title:hover { color: var(--accent); }
.small-select { width: auto; min-height: 30px; padding: 2px 6px; font-size: .82rem; flex: 1; }
details summary { cursor: pointer; margin: 6px 0; }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 8px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .topbar-inner { position: relative; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: 1fr; }
  .doc-preview { padding: 16px; }
  .mode-banner { flex-direction: column; gap: 6px; }
}

/* ---------- Organizations sample page ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step p { margin: 2px 0 0; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-n { color: #062421; } }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.org-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.org-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.org-head .chip { font-size: .7rem; }
.org-verified { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .8rem; color: var(--good); font-weight: 500; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Job category filter */
.cat-filter summary { cursor: pointer; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: .9rem; margin-bottom: 6px; }
.cat-filter[open] summary { margin-bottom: 8px; }

.chip.arrangement { background: var(--surface-2); font-weight: 600; }

/* Free training */
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.train-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.train-card p { margin: 0; }
.train-head a { color: var(--text); text-decoration: none; }
.train-head a:hover { color: var(--accent); text-decoration: underline; }
.train-why { font-size: .8rem; color: var(--accent-strong); display: flex; gap: 5px; align-items: flex-start; margin-top: 2px; }
.train-why svg { flex: none; margin-top: 2px; }
a.link-chip { text-decoration: none; cursor: pointer; }
a.link-chip:hover { border-color: var(--accent); color: var(--accent-strong); }

/* =====================================================================
   Option B theme: component styling (overrides earlier rules)
   ===================================================================== */
h1, h2, h3 { color: var(--heading); letter-spacing: -.015em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-weight: 700; }
a { color: var(--accent); text-underline-offset: 2px; }

/* Top bar */
.topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { padding: 14px 20px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--heading); gap: 10px; }
.brand strong { color: var(--heading); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.nav a { border-radius: 999px; padding: 8px 14px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-strong); }
.count { background: var(--warm-soft); color: var(--warn); font-weight: 700; }

/* Buttons & inputs */
.btn { border-radius: 999px; padding: 9px 18px; font-weight: 600; border-color: var(--border); }
.btn.small { padding: 5px 12px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #10231a; } }
:root[data-theme="dark"] .btn.primary { color: #10231a; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search], input[type=month], input[type=number], input[type=password], input[type=date], select, textarea {
  border-radius: 12px; border-color: var(--border); background: var(--surface);
}
.check input { accent-color: var(--accent); }
.segmented { border-radius: 999px; padding: 3px; background: var(--surface-2); border: none; gap: 2px; }
.segmented button { border: none; border-radius: 999px; background: transparent; font-weight: 600; color: var(--muted); }
.segmented button.on { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow); }

/* Cards, chips, notices */
.card { border-radius: 20px; border-color: var(--border); box-shadow: none; padding: 20px 22px; }
.chip { border-radius: 999px; background: var(--surface-2); border-color: transparent; color: var(--muted); font-weight: 600; padding: 3px 10px; }
.chip.verified, .chip.good { background: var(--accent-soft); color: var(--accent-strong); }
.chip.type { background: var(--info-soft); color: var(--info); }
.chip.type.inferred { border-color: var(--info); }
.chip.warn { background: var(--warm-soft); color: var(--warn); }
.chip.arrangement { background: var(--surface-2); color: var(--text); }
.notice { border-radius: 14px; background: var(--info-soft); }
.notice.warn { background: var(--warm-soft); }
.filters { border-radius: 20px; }
.filters h3 { color: var(--muted); letter-spacing: .06em; font-size: .72rem; font-weight: 700; }
.cat-filter summary { border-radius: 12px; }
.privacy { border-radius: 20px; background: var(--accent-soft); border-color: transparent; }
.privacy-icon { background: var(--accent); }
.index-note { color: var(--accent-strong); font-weight: 600; }

/* Home hero */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: center; padding: 18px 4px 26px; }
.home-hero.compact { grid-template-columns: 1fr; padding: 4px 0 16px; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; background: var(--warm-soft); color: var(--warn); font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.home-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.07; margin: 14px 0 12px; letter-spacing: -.025em; }
.home-hero h1 em { font-style: normal; color: var(--warm); }
.home-hero .lede { color: var(--muted); font-size: 1.06rem; max-width: 560px; margin: 0 0 22px; }
.search-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 7px 7px 20px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.search-pill .kw-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.search-pill input[type=search] { border: none; background: transparent; padding: 8px 0; min-height: 40px; font-size: 1rem; box-shadow: none !important; }
.search-pill .sep { width: 1px; height: 28px; background: var(--border); }
.search-pill .loc-btn { border: none; background: transparent; display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; cursor: pointer; padding: 8px 6px; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 999px; }
.search-pill .loc-btn:hover { background: var(--surface-2); }
.search-pill .btn.primary { padding: 12px 24px; font-size: 1rem; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hero-actions .btn { font-size: .85rem; padding: 6px 14px; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.trust-row div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.trust-row b { color: var(--heading); font-size: 1.1rem; }
.hero-art { position: relative; height: 290px; }
.hero-art .blob { position: absolute; border-radius: 50%; }
.hero-art .blob.green { width: 240px; height: 240px; background: var(--accent-soft); right: 30px; top: 10px; }
.hero-art .blob.amber { width: 130px; height: 130px; background: var(--warm-soft); right: 0; bottom: 6px; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.float-card b { display: block; font-size: .95rem; color: var(--heading); }
.float-card .fc-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.float-card .fc-icon.amber { background: var(--warm-soft); color: var(--warm); }

/* Job cards */
.job { display: block; border-radius: 20px; padding: 18px 20px; border-color: var(--border); box-shadow: none; }
.job:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow); transform: translateY(-1px); }
.job { transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-top { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.co-badge { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: var(--accent-soft); color: var(--accent-strong); }
.co-badge.alt1 { background: var(--warm-soft); color: var(--warn); }
.co-badge.alt2 { background: var(--info-soft); color: var(--info); }
.job h3 { font-size: 1.05rem; margin: 1px 0 2px; color: var(--text); }
.job .company { color: var(--muted); font-weight: 600; font-size: .9rem; }
.job .meta { margin: 6px 0 10px; }
.job-foot { display: flex; align-items: center; gap: 14px; border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; flex-wrap: wrap; }
.job-foot .pay-lg { font-weight: 800; color: var(--text); font-size: 1rem; }
.job-foot .pay-lg.none { font-weight: 500; color: var(--muted); font-size: .88rem; }
.match-meter { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--accent-strong); }
.match-meter i { width: 96px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.match-meter i s { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.match-meter.mid i s { background: var(--warm); }
.match-meter.none { color: var(--muted); font-weight: 500; }
.icon-btn { border-radius: 12px; }
.icon-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }

/* Drawer, modal, tracker, training */
.drawer { background: var(--bg); }
.drawer-head { background: var(--surface); }
.tabs button { font-weight: 600; }
.tabs button.on { color: var(--accent-strong); border-color: var(--accent); }
.modal { border-radius: 22px; }
.ring > span { font-weight: 800; }
.column { border-radius: 20px; background: var(--surface-2); border-color: transparent; }
.tcard, .train-card, .org-card { border-radius: 16px; }
.mode-banner { border-radius: 20px; border-left-width: 1px; background: var(--warm-soft); border-color: transparent; }
.mode-banner > div:first-child { color: var(--warm); }
.stat { border-radius: 16px; }
.step-n { background: var(--accent); }
.footer { border-top: 1px solid var(--border); }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 640px) {
  .search-pill { border-radius: 22px; flex-wrap: wrap; padding: 10px; }
  .search-pill .kw-input { flex-basis: 100%; }
  .search-pill .sep { display: none; }
  .search-pill .btn.primary { margin-left: auto; }
  .match-meter i { width: 64px; }
  .job-top { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .co-badge { width: 40px; height: 40px; }
}
.home-hero.compact .hero-copy, .home-hero.compact .trust-row, .home-hero.compact .hero-art { display: none; }
.home-hero.compact { grid-template-columns: 1fr; padding: 2px 0 14px; }
.home-hero.compact .hero-actions { margin-top: 10px; }
.job .meta svg { vertical-align: -1px; }
.filters .segmented { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.filters .segmented button { padding: 6px 0; font-size: .72rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Experience level descriptions */
.level-check { align-items: flex-start; margin: 6px 0; }
.level-check input { margin-top: 3px; }
.level-range { display: inline-block; margin-left: 4px; font-size: .75rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: 0 7px; border-radius: 999px; }
.level-desc { display: block; font-size: .76rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.chip.level { cursor: help; }
.level-note { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; }
.level-note svg { flex: none; margin-top: 2px; }

/* Accessibility, sharing, certifications */
.chip.access { background: var(--access-soft); color: var(--access); border-color: transparent; font-weight: 600; }
a.chip.access { text-decoration: none; }
.access-note { margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--access-soft); color: var(--text); display: grid; gap: 4px; }
.access-note strong { color: var(--access); display: flex; gap: 6px; align-items: center; }
.access-card .grid2 { gap: 4px 16px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.share-actions .btn { text-decoration: none; }
.cert-acc { margin-top: 4px; border-top: 1px dashed var(--border); padding-top: 6px; }
.cert-acc summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--access); display: flex; gap: 6px; align-items: center; }
.cert-acc p { margin: 6px 0 4px; }
.nav { flex-wrap: wrap; }.search-layout > * { min-width: 0; }
.results-head { flex-wrap: wrap; }
.job .chips, .drawer .chips { flex-wrap: wrap; }

/* Logo */
.brand-logo { width: 36px; height: 36px; display: block; flex: none; }

/* ---- Apply kit ---- */
.kit-details { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.kit-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--border); }
.kit-row:first-child { border-top: 0; }
.kit-label { flex: 0 0 116px; color: var(--muted); font-size: .85rem; }
.kit-value { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.kit-q { margin-bottom: 14px; }
.kit-q label { display: block; font-weight: 600; margin-bottom: 5px; }
.kit-q textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; background: var(--surface); resize: vertical; }
.kit-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.kit-check li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 7px; }
.kit-check svg { flex: 0 0 auto; margin-top: 3px; color: var(--good); }
.kit-actions { margin-top: 18px; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; }
@media (max-width: 560px) {
  .kit-row { flex-wrap: wrap; }
  .kit-label { flex-basis: 100%; }
}

/* ---- Apply walkthrough ---- */
.kit-intro { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.kit-intro h3 { color: var(--heading); }
.kit-step { padding: 4px 0 8px; }
.kit-step h3 { font-size: 1.15rem; margin: 10px 0 4px; }
.kit-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.kit-progress i { flex: 1; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.kit-progress s { display: block; height: 100%; background: var(--accent); text-decoration: none; transition: width .18s ease; }
.kit-progress span { font-size: .78rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.kit-stepvalue { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-size: 1.02rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.kit-stepnav { margin-top: 16px; flex-wrap: wrap; gap: 8px; }
.btn.big { font-size: 1rem; padding: 11px 18px; }
.kit-q .chip.from { background: var(--info-soft); color: var(--info); font-weight: 600; }

/* ---- Opening paragraph in the job drawer ---- */
.job-opening { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0 2px; }
.job-opening p { margin: 0 0 10px; line-height: 1.6; }
.job-opening .row { gap: 8px; flex-wrap: wrap; }

/* ---- Repeated postings for one role ---- */
.job-also { border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 8px; }
.job-also > button.link { font-size: .85rem; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.also-list { margin: 8px 0 0; }
.also-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border); font-size: .88rem; }
.also-list li:first-child { border-top: 0; }
.also-list li span { flex: 1; min-width: 0; color: var(--muted); }
