/* NAEJOBS - "Connect with employers" (connect.html) and the employer / owner page (employers.html). Normal scrolling pages,
   same colours as the job map. */
@import url("area-picker.css");   /* datafilter-map (2026-11-09): the drawing map's .ap-* rules now live there (the job map loads that file alone) */
:root {
    --bg: #f4f6f9; --panel: #ffffff; --ink: #14263a; --muted: #5f7285; --line: #e3e8ef; --line2: #cfdbe7;
    --brand: #1f6b4f; --navy: #0a2847; --blue: #2563eb; --blue-ink: #1d4ed8; --red: #b42318; --red-bg: #fdeceb; --ok: #157347; --ok-bg: #e7f6ee;
    --chip: #eef2f6; --radius: 12px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- top bar ---- */
.cx-top { position: sticky; top: 0; z-index: 50; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--navy); color: #fff; }
.cx-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: .2px; color: #fff; text-decoration: none; white-space: nowrap; }
.cx-brand img { width: 30px; height: 30px; display: block; }
.cx-top-mid { flex: 1 1 auto; min-width: 0; font-size: 14px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-top a.cx-back { color: #fff; font-size: 13px; text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); white-space: nowrap; }
.cx-top a.cx-back:hover { background: rgba(255, 255, 255, .12); }

/* ---- layout ---- */
.cx-main { max-width: 880px; margin: 0 auto; padding: 22px 16px 120px; }
.cx-wide { max-width: 1240px; }
.cx-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(10, 40, 71, .04); }
.cx-card h2 { margin: 0 0 4px; font-size: 18px; }
.cx-card h3 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: #34506b; }
.cx-sub { color: var(--muted); margin: 0 0 14px; }
.cx-hero { background: linear-gradient(115deg, #0a2847 0%, #143d68 55%, #1f5f8f 100%); color: #fff; border: 0; padding: 26px 24px; }
.cx-hero h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; }
.cx-hero p { margin: 0 0 6px; opacity: .92; }
.cx-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.cx-points li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.cx-points b { color: #8ce0b8; }

/* ---- form bits ---- */
.cx-field { margin: 0 0 14px; }
.cx-field > label, .cx-label { display: block; font-weight: 650; margin: 0 0 5px; }
.cx-help { color: var(--muted); font-size: 13px; margin: -2px 0 6px; }
.cx-input, .cx-select, .cx-textarea { width: 100%; max-width: 100%; border: 1px solid var(--line2); background: #fff; border-radius: 9px; padding: 9px 11px; outline: none; transition: border-color .12s, box-shadow .12s; }
.cx-input:focus, .cx-select:focus, .cx-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.cx-textarea { min-height: 110px; resize: vertical; }
.cx-code { font-size: 26px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; }
.cx-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cx-row > .cx-grow { flex: 1 1 220px; min-width: 0; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 18px; }
.cx-count { color: var(--muted); font-size: 12px; text-align: right; margin-top: 3px; }
.cx-other { margin-top: 7px; }

.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 999px; padding: 9px 18px; font-weight: 650; cursor: pointer;
    background: var(--blue); color: #fff; transition: background .12s, box-shadow .12s, opacity .12s; text-decoration: none; white-space: nowrap; }
.cx-btn:hover { background: var(--blue-ink); }
.cx-btn:disabled { opacity: .55; cursor: default; }
.cx-btn:focus-visible, .cx-link:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.cx-btn-2 { background: #fff; color: var(--ink); border-color: var(--line2); }
.cx-btn-2:hover { background: #f3f7fb; }
.cx-btn-red { background: var(--red); }
.cx-btn-red:hover { background: #8f1c13; }
.cx-btn-sm { padding: 5px 12px; font-size: 13px; }
.cx-link { background: none; border: 0; padding: 0; color: var(--blue-ink); text-decoration: underline; cursor: pointer; }

.cx-msg { border-radius: 9px; padding: 9px 12px; margin: 10px 0 0; font-size: 14px; }
.cx-msg.is-err { background: var(--red-bg); color: var(--red); }
.cx-msg.is-ok { background: var(--ok-bg); color: var(--ok); }

/* picks (a dropdown that adds chips) */
.cx-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 7px; }
.cx-pick { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(#3b82f6, #2563eb); color: #fff; border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 13px; max-width: 100%; }
.cx-pick span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-pick button { border: 0; background: rgba(255, 255, 255, .22); color: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; padding: 0; flex: 0 0 auto; }
.cx-pick button:hover { background: rgba(255, 255, 255, .4); }
.cx-pick.is-other { background: linear-gradient(#64748b, #475569); }

/* resume box */
.cx-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px dashed #b8cbe0; background: #f7fafd; border-radius: 10px; padding: 12px 14px; }
.cx-file-ic { font-size: 26px; }
.cx-file-name { font-weight: 650; word-break: break-word; }
.cx-file-meta { color: var(--muted); font-size: 13px; }

.cx-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.cx-toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.cx-pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; vertical-align: middle; }
.cx-pill.is-on { background: var(--ok-bg); color: var(--ok); }
.cx-pill.is-off { background: #fff4e0; color: #8a5300; }

/* sticky save bar */
.cx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(10, 40, 71, .08);
    padding: 10px 16px; display: flex; justify-content: center; }
.cx-bar-in { width: 100%; max-width: 880px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-bar-note { flex: 1 1 200px; color: var(--muted); font-size: 14px; }
.cx-bar-note.is-dirty { color: #8a5300; font-weight: 600; }

.cx-danger { border-color: #f3c7c3; }
.cx-danger h3 { color: var(--red); }
.cx-fine { color: var(--muted); font-size: 13px; }
.cx-fine ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- owner dashboard ---- */
.cx-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.cx-tab { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 7px 16px; cursor: pointer; font-weight: 650; }
.cx-tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.cx-tab span { font-weight: 500; opacity: .75; margin-left: 4px; }
.cx-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.cx-tools .cx-input, .cx-tools .cx-select { width: auto; flex: 1 1 160px; min-width: 0; }
.cx-tools .cx-input { flex: 2 1 240px; }
.cx-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cx-table th, .cx-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cx-table th { background: #f3f7fb; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #34506b; position: sticky; top: 0; white-space: nowrap; }
.cx-table tr.is-click { cursor: pointer; }
.cx-table tr.is-click:hover td { background: #f7fbff; }
.cx-table td.cx-nowrap { white-space: nowrap; }
.cx-tag { display: inline-block; background: var(--chip); border-radius: 999px; padding: 2px 8px; font-size: 12px; margin: 1px 3px 1px 0; }
.cx-empty { padding: 26px; text-align: center; color: var(--muted); }
.cx-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 80; background: #fff; box-shadow: -12px 0 32px rgba(10, 40, 71, .22); overflow-y: auto; padding: 18px 20px 40px; }
.cx-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cx-drawer-head h2 { margin: 0; font-size: 20px; }
.cx-shade { position: fixed; inset: 0; background: rgba(10, 40, 71, .3); z-index: 70; }
.cx-dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 10px 0 16px; font-size: 14px; }
.cx-dl dt { color: var(--muted); }
.cx-dl dd { margin: 0; word-break: break-word; white-space: pre-wrap; }
.cx-org { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; background: #fff; }
.cx-org-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-org-head b { font-size: 16px; }
.cx-seats { list-style: none; margin: 8px 0; padding: 0; }
.cx-seats li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cx-seats li:last-child { border-bottom: 0; }
.cx-seats li span { flex: 1 1 200px; min-width: 0; word-break: break-all; }
.cx-log td { font-size: 13px; }

/* drawn areas (job seeker "Add location" + the owner's area filter) - js/area-picker.js (its own .ap-* look: css/area-picker.css, @imported at the top) */
.cx-area i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; margin-left: -6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.cx-pick.cx-area { background: #eef4fb; color: var(--ink); border: 1px solid #c9d9ea; }
.cx-pick.cx-area button { background: rgba(10, 40, 71, .1); color: var(--ink); }
.cx-pick.cx-area button:hover { background: rgba(10, 40, 71, .2); }
@media (max-width: 640px) {
    .cx-top-mid { display: none; }
    .cx-hero h1 { font-size: 22px; }
    .cx-card { padding: 16px; }
    .cx-dl { grid-template-columns: 1fr; }
    .cx-dl dt { margin-top: 6px; }
}
/* ---- v442: Terms of Service + Privacy Policy pages (terms.html, privacy.html) ---- */
.lg h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; }
.lg h2 { margin: 0 0 8px; font-size: 18px; }
.lg p, .lg li { line-height: 1.55; }
.lg ul { margin: 6px 0; padding-left: 20px; }
.lg li { margin: 4px 0; }
.lg section[id] { scroll-margin-top: 64px; }
.lg-meta { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.lg-box { margin: 12px 0; padding: 12px 14px; background: var(--ok-bg); border: 1px solid #c6e6d1; border-radius: 10px; }
.lg-box ul { margin: 6px 0 0; }
.lg-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.lg-foot { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ---- v442: Accept / Decline before a profile or resume is submitted (js/connect.js askTerms) ---- */
.cx-terms { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; }
.cx-terms-shade { position: absolute; inset: 0; background: rgba(10, 40, 71, .45); }
.cx-terms-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 14px; padding: 20px 22px;
    box-shadow: 0 18px 50px rgba(10, 40, 71, .3); }
.cx-terms-card h2 { margin: 0 0 8px; font-size: 19px; }
.cx-terms-card ul { margin: 8px 0 12px; padding-left: 20px; }
.cx-terms-card li { margin: 4px 0; line-height: 1.5; }
.cx-terms-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; font-weight: 600; }
.cx-terms-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cx-terms-fine { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* v443 phones: a text box under 16px makes an iPhone zoom the whole page in when it is tapped - so 16px on phones */
@media (max-width: 900px), (pointer: coarse) and (max-height: 500px) {
    .cx-input, .cx-select, .cx-textarea, .cx-main input:not([type=checkbox]):not([type=radio]):not([type=file]), .cx-main select, .cx-main textarea { font-size: 16px; }
}
