/* 1435 Capital ATS — brand: ink #0E1013 / #08090B, white, accent #005aff → #00b2ff */
:root {
  --ink: #0E1013; --ink-2: #08090B; --ink-3: #1a1d22; --line: #e3e6eb; --line-2: #cfd4dc;
  --bg: #f5f6f8; --card: #ffffff; --text: #14171c; --muted: #5b6472; --faint: #8a93a1;
  --accent: #005aff; --accent-2: #00b2ff; --accent-soft: #e8f0ff;
  --ok: #0f7b4d; --ok-soft: #e6f4ed; --warn: #9a5b00; --warn-soft: #fff4e0; --bad: #b42318; --bad-soft: #fdecea;
  --radius: 10px; --shadow: 0 1px 2px rgba(14,16,19,.06), 0 4px 16px rgba(14,16,19,.04);
  --f-head: "Archivo", "Inter", system-ui, sans-serif; --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 700; } h2 { font-size: 21px; font-weight: 650; } h3 { font-size: 17px; font-weight: 650; } h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--f-mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .row.top { align-items: flex-start; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .split, .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

/* ---------- public site ---------- */
.pub-header { background: var(--ink); color: #fff; }
.pub-header .inner { max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.pub-header img { height: 34px; display: block; }
.pub-header nav { margin-left: auto; display: flex; gap: 20px; }
.pub-header nav a { color: #cfd6e0; font-size: 14px; }
.pub-header nav a:hover { color: #fff; text-decoration: none; }
.hero { background: radial-gradient(1200px 400px at 80% -20%, rgba(0,90,255,.35), transparent 60%), var(--ink-2); color: #fff; }
.hero .inner { max-width: 1080px; margin: 0 auto; padding: 56px 24px 64px; }
.hero h1 { color: #fff; font-size: 40px; max-width: 760px; }
.hero p { color: #b8c1cf; max-width: 680px; font-size: 17px; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.pub-main { max-width: 1080px; margin: 0 auto; padding: 36px 24px 72px; }
.pub-narrow { max-width: 820px; }
.pub-footer { border-top: 1px solid var(--line); background: #fff; }
.pub-footer .inner { max-width: 1080px; margin: 0 auto; padding: 24px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.job-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.job-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.job-card h2 { margin-bottom: 6px; }
.meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.prose { font-size: 16px; } .prose h2 { margin-top: 1.4em; } .prose h3 { margin-top: 1.2em; } .prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .3em; }

/* ---------- staff shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #c9d1dc; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 0 20px 18px; border-bottom: 1px solid #22262d; margin-bottom: 10px; }
.side .brand img { height: 28px; display: block; }
.side .brand .sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: #7f8a99; margin-top: 8px; text-transform: uppercase; }
.side .sec { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6c7686; padding: 14px 20px 6px; }
.side a { display: flex; align-items: center; gap: 8px; padding: 7px 20px; color: #c9d1dc; font-size: 14px; border-left: 3px solid transparent; }
.side a:hover { background: #161a20; color: #fff; text-decoration: none; }
.side a.on { background: #161a20; color: #fff; border-left-color: var(--accent); }
.side .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 7px; font-weight: 600; }
.main { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 5; }
.topbar .who { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.content { padding: 24px 28px 64px; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } }

/* ---------- components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.tight { padding: 14px 16px; }
.card .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card .card-head h2, .card .card-head h3 { margin: 0; }
.card .card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-family: var(--f-head); font-size: 26px; font-weight: 700; color: var(--ink); }
.stat .l { color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; font: 500 14px/1.2 var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0049d1; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--bad); border-color: #f0c6c2; } .btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; } .btn.lg { padding: 12px 22px; font-size: 16px; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 0; }
form.inline { display: inline; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef0f3; color: var(--ink-3); white-space: nowrap; }
.badge.blue { background: var(--accent-soft); color: #0040b8; } .badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.dark { background: var(--ink); color: #fff; }
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.flash.ok { background: var(--ok-soft); border-color: #bfe3cf; color: #0b5c3a; } .flash.error { background: var(--bad-soft); border-color: #f3c3be; color: #8f1c13; } .flash.warn, .flash.message { background: var(--warn-soft); border-color: #f2d7a6; color: #7a4800; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin-bottom: 14px; }
.callout.warn { border-color: #e0a100; background: var(--warn-soft); } .callout.bad { border-color: var(--bad); background: var(--bad-soft); } .callout.ok { border-color: var(--ok); background: var(--ok-soft); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: #fafbfc; }
.table-wrap { overflow-x: auto; }
dl.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; word-break: break-word; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field .help { font-size: 13px; color: var(--muted); margin: -2px 0 6px; font-weight: 400; }
.field .err { color: var(--bad); font-size: 13px; margin-top: 4px; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--bad); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font: 15px/1.4 var(--f-body); background: #fff; color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0,90,255,.25); border-color: var(--accent); }
input[type=file] { font-size: 14px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-bottom: 8px; }
.check input { margin-top: 3px; }
.req { color: var(--bad); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 4px; margin-bottom: 18px; background: #fff; }
.fieldset > legend { font-family: var(--f-head); font-weight: 650; font-size: 16px; padding: 0 6px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tabs a:hover { color: var(--ink); text-decoration: none; }

.steps { display: flex; gap: 0; margin: 4px 0 16px; overflow-x: auto; }
.steps .s { flex: 1; min-width: 110px; padding: 8px 10px; border-top: 3px solid var(--line); font-size: 12.5px; color: var(--faint); }
.steps .s.done { border-color: var(--ink); color: var(--ink-3); } .steps .s.cur { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 760px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.msg.mine { align-self: flex-end; background: #f2f6ff; border-color: #d6e2ff; }
.msg.system { align-self: center; background: #f6f7f9; font-size: 14px; }
.msg .h { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.msg .b { white-space: pre-wrap; word-break: break-word; }

.score-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.score-pick label { margin: 0; }
.score-pick input { position: absolute; opacity: 0; pointer-events: none; }
.score-pick span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--f-mono); font-weight: 600; cursor: pointer; background: #fff; }
.score-pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.score-pick input:focus-visible + span { outline: 2px solid var(--accent); }
.rubric td:first-child { font-family: var(--f-mono); white-space: nowrap; }
.crit { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.crit .bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 8px 0 10px; font-size: 12.5px; color: var(--muted); }
.crit .bands div { background: #f7f8fa; border-radius: 6px; padding: 7px 9px; }
.crit .bands b { display: block; color: var(--ink-3); font-family: var(--f-mono); font-size: 11.5px; }
.video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blind { background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 10px, #eceef1 10px, #eceef1 20px); border: 1px dashed var(--line-2); border-radius: 10px; padding: 16px; color: var(--muted); font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline .when { color: var(--faint); font-size: 12px; font-family: var(--f-mono); }
.kbd { font-family: var(--f-mono); font-size: 12px; background: #f0f2f5; border-radius: 4px; padding: 1px 6px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 400px at 70% -10%, rgba(0,90,255,.3), transparent 60%), var(--ink-2); padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 30px 30px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.auth-card .logo { height: 30px; margin-bottom: 22px; }
.empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.pill-list { display: flex; gap: 6px; flex-wrap: wrap; }
details > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details[open] > summary { margin-bottom: 10px; }
.drop { border: 2px dashed var(--line-2); border-radius: 10px; padding: 16px; background: #fafbfc; }
/* enhancements */
.autofilled { background: #f3f8ff; }
.opt-list { display: grid; gap: 6px; }
.qblock { padding: 14px 0; border-top: 1px solid var(--line); }
.qblock:first-child { border-top: 0; }
/* inline filter bars */
.row > select, .row > input[type=search], .row > input[type=text] { width: auto; flex: 0 1 280px; min-width: 160px; }
/* fieldset legends sit inside the card rather than on its border */
.fieldset { padding-top: 16px; }
.fieldset > legend { float: left; width: 100%; padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.fieldset > legend + * { clear: both; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .pub-main, body > .shell { flex: 1 0 auto; width: 100%; }

/* Posting images */
.job-cover { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.job-cover img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.job-cover figcaption, .post-figure figcaption { font-size: 13px; color: var(--muted, #5b6472); padding: 8px 12px; }
.post-figure { margin: 1.2em 0; }
.post-figure img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.post-figure figcaption { padding: 6px 0 0; }
.job-card.has-thumb { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; }
.job-thumb { width: 200px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 640px) { .job-card.has-thumb { grid-template-columns: 1fr; } .job-thumb { width: 100%; height: 160px; } }
.img-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.img-row > img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.img-meta input { font-size: 13px; padding: 6px 8px; }
.img-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* WYSIWYG description editor (static/js/editor.js) */
.rte { border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); overflow: clip; }
.rte:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: var(--rte-top, 0px); z-index: 4; border-radius: 8px 8px 0 0; }
.rte-btn { font: inherit; font-size: 13px; line-height: 1; padding: 7px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; white-space: nowrap; }
.rte-btn:hover:not(:disabled) { background: var(--card); border-color: var(--line); }
.rte-btn.on { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.rte-btn:disabled { opacity: .4; cursor: default; }
.rte-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rte-sep { width: 1px; align-self: stretch; margin: 3px 4px; background: var(--line-2); }
.rte-spacer { flex: 1; }
.rte-body { min-height: 360px; max-height: 70vh; overflow-y: auto; padding: 14px 18px; outline: none; font-size: 15px; line-height: 1.6; }
.rte-body > :first-child { margin-top: 0; }
.rte-body p { margin: 0 0 .8em; }
.rte-body a { text-decoration: underline; cursor: text; }
.rte-figure { position: relative; margin: 1em 0; user-select: none; }
.rte-figure img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.rte-figure figcaption { font-size: 13px; color: var(--muted); padding: 6px 0 0; }
.rte-figure:hover img, .rte-figure:focus-within img { outline: 2px solid var(--accent); outline-offset: 2px; }
.rte-fig-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.rte-figure:hover .rte-fig-remove, .rte-fig-remove:focus-visible { opacity: 1; }
.rte-missing { padding: 14px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: 13px; }
.rte textarea.rte-source { display: block; width: 100%; min-height: 360px; border: 0; border-radius: 0; padding: 14px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; resize: vertical; box-shadow: none; }
.rte textarea.rte-source[hidden] { display: none; }
.rte textarea.rte-source:focus { outline: none; box-shadow: none; }
