/* ============================================================================
   Honch Design System — shared styles for the redesigned app.
   Extracted from the finished dashboard + people-search pages so every page
   renders as one consistent system. Load AFTER the Google Font links and
   BEFORE any page-specific <style>. The shared top bar is injected by
   honch-nav.js (which carries its own #hn-bar CSS too); the tokens + nav
   styles below are kept here so pages look right even before that runs.
   ============================================================================ */

:root{
  --white:#ffffff; --bg:#f5f6f9;
  --border:#e6e9ef; --border2:#eef0f4;
  --navy:#17233d; --navy2:#212f4e;
  --ink:#1b2233; --ink2:#3a4356; --ink3:#5b6474; --ink4:#8a93a3;
  --blue-dim:#eef1f6; --blue-mid:#3557b7;
  --accent:#e0952e; --orange:#F97316;
  --green:#12a668; --red:#d94c4c;
  --radius:12px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg);color:#101828;-webkit-font-smoothing:antialiased}
a{color:var(--blue-mid);text-decoration:none}
a:hover{color:var(--navy)}
.ms{font-family:'Material Symbols Rounded';font-weight:normal;font-style:normal;line-height:1;vertical-align:middle}
.mono{font-family:'JetBrains Mono',monospace}

/* ── shared top nav bar (also injected by honch-nav.js) ── */
#hn-bar{display:flex;align-items:center;gap:10px;height:60px;padding:0 20px;background:var(--white);border-bottom:1px solid var(--border);flex:none}

/* ── SUB TABS (People / Companies style) ── */
.subtabs{height:38px;flex:none;display:flex;align-items:center;gap:4px;padding:0 16px;background:#fff;border-bottom:1px solid #E8EAF0}
.stab{padding:5px 10px;border-radius:6px;font-size:13px;font-weight:500;color:#0a0a0a;cursor:pointer}
.stab:hover{background:rgba(0,0,0,.035)}
.stab.active{background:rgba(0,0,0,.06);font-weight:600}

/* ── APP SHELL LAYOUT ── */
.app-shell{height:100vh;display:flex;flex-direction:column;overflow:hidden;background:#F7F8FA}
.layout{display:flex;flex:1;min-height:0}
.main{flex:1;display:flex;flex-direction:column;min-width:0;background:#fff;overflow-y:auto}
.page-wrap{max-width:1180px;width:100%;margin:0 auto;padding:26px 30px 56px}
.page-narrow{max-width:820px}

/* ── PAGE HEADER ── */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px;flex-wrap:wrap}
.page-title{font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--navy)}
.page-sub{font-size:13.5px;color:var(--ink3);margin-top:3px}
.page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* ── CARDS ── */
.card{background:#fff;border:1px solid #eaecf1;border-radius:var(--radius);box-shadow:0 1px 2px rgba(23,35,61,.04)}
.card-pad{padding:18px 20px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-bottom:1px solid #f2f4f7}
.card-title{font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--navy)}
.card-sub{font-size:12.5px;color:var(--ink4);margin-top:1px}
.sec-title{font-size:14px;font-weight:700;color:#0a0a0a;letter-spacing:-.01em;margin:0 0 10px}

/* ── BUTTONS ── */
.tbtn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #E8EAF0;border-radius:6px;font-size:12.5px;font-weight:500;color:#0a0a0a;cursor:pointer;background:#fff;font-family:inherit;white-space:nowrap;transition:background-color .1s ease;text-decoration:none}
.tbtn:hover{background:rgba(0,0,0,.035)}
.tbtn.prim{padding:6px 13px;border-color:#0a0a0a;background:#0a0a0a;color:#fff}
.tbtn.prim:hover{background:#000;color:#fff}
.tbtn .ms{font-size:16px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border:1px solid var(--border);border-radius:10px;font-size:13.5px;font-weight:600;color:var(--ink2);background:#fff;cursor:pointer;font-family:inherit;text-decoration:none}
.btn:hover{border-color:#c9cdd7;background:#fafbfc}
.btn.prim{border-color:var(--navy);background:var(--navy);color:#fff}
.btn.prim:hover{background:var(--navy2);color:#fff}
.btn.orange{border-color:var(--orange);background:var(--orange);color:#fff}
.btn.danger{border-color:var(--red);background:#fff;color:var(--red)}
.btn.danger:hover{background:#fdf2f2}

/* ── FORM FIELDS ── */
.fi{width:100%;height:34px;border:1px solid #e6e9ef;border-radius:8px;background:#fbfbfc;padding:0 11px;font-family:inherit;font-size:13px;color:#1b2233}
.fi:focus{outline:none;border-color:#17233d;background:#fff}
textarea.fi,select.fi{height:auto;padding:8px 11px}
.fl{font-size:11.5px;color:#8a93a3;font-weight:600;margin-top:9px;display:block}
.sub-label{font-size:11px;font-weight:700;color:#9198a6;text-transform:uppercase;letter-spacing:.06em;margin-top:11px;display:block}
.form-row{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
.form-row label{font-size:12.5px;font-weight:600;color:var(--ink2)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* ── TAG INPUTS ── */
.tag-wrap{border:1px solid #e6e9ef;border-radius:8px;background:#fbfbfc;padding:5px 8px;min-height:34px;display:flex;flex-wrap:wrap;align-items:center;gap:5px;cursor:text}
.tag-wrap:focus-within{border-color:#17233d;background:#fff}
.tp{background:#eef1f6;color:#17233d;font-size:12px;font-weight:600;border-radius:6px;padding:3px 8px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;flex:none}
.tp-x{background:none;border:none;color:#17233d;cursor:pointer;font-size:14px;line-height:1;padding:0;opacity:.55;display:flex;align-items:center}
.tp-x:hover{opacity:1}
.ti{border:none;outline:none;font-size:13px;font-family:inherit;background:transparent;min-width:80px;flex:1;color:#1b2233;padding:2px 0}

/* ── CHECKBOXES / TOGGLES ── */
.cb-list{display:flex;flex-direction:column;gap:8px}
.cb-item{display:flex;align-items:center;gap:9px;font-size:13px;color:#3a4356;cursor:pointer}
.cb-item:hover{color:#1b2233}
.cb-item input{width:15px;height:15px;accent-color:#17233d;cursor:pointer;flex:none;border-radius:4px}
.switch{position:relative;width:38px;height:22px;border-radius:99px;background:#d8dce4;cursor:pointer;transition:background .15s;flex:none}
.switch.on{background:var(--green)}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
.switch.on::after{left:18px}

/* ── PILLS / BADGES ── */
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:20px;font-size:11.5px;font-weight:700}
.pill.grey{background:#f1f2f4;color:#5b6474}.pill.blue{background:#DCE7FB;color:#2F6FED}
.pill.green{background:#DCF3E4;color:#15803d}.pill.amber{background:#FDF1D9;color:#B45309}
.pill.red{background:#fdeceb;color:#b3402f}.pill.purple{background:#F1EAFB;color:#7c3aed}
.sen-pill{display:inline-flex;padding:3px 9px;border-radius:6px;font-size:11.5px;font-weight:700}
.sen-pill.ceo{background:#f3e8fd;color:#7c3aed}.sen-pill.clevel{background:#fdeceb;color:#b3402f}
.sen-pill.director{background:#e7f0fd;color:#2456c9}.sen-pill.head{background:#e7f6ee;color:#0b7a4f}
.sen-pill.manager{background:#fdf3e3;color:#a1650a}.sen-pill.senior{background:#f2f4f7;color:#5b6474}

/* ── TABLES ── */
.results-body{flex:1;overflow:auto;min-height:0}
table.hd{width:max-content;min-width:100%;border-collapse:collapse}
table.hd th{position:sticky;top:0;z-index:5;height:32px;padding:0 14px;text-align:left;background:#fff;border-bottom:1px solid #E8EAF0;font-size:10.5px;font-weight:600;letter-spacing:.04em;color:rgba(0,0,0,.5);text-transform:uppercase;white-space:nowrap}
table.hd td{padding:10px 14px;border-bottom:1px solid #EFF1F4;font-size:12.5px;white-space:nowrap;color:rgba(0,0,0,.72)}
table.hd tbody tr:hover td{background:rgba(0,0,0,.02)}
.nlink{font-weight:600;color:#000;cursor:pointer;text-decoration:none}
.nlink:hover{color:#3557b7}
.co-cell{display:flex;align-items:center;gap:10px;min-width:0}
.co-av{width:26px;height:26px;flex:none;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;letter-spacing:.02em}
.co-logo{width:26px;height:26px;flex:none;border-radius:7px;object-fit:contain;background:#fff;border:1px solid #eef0f4}
.co-link{color:#2b3346;font-weight:500;text-decoration:none}
.co-link:hover{color:#3557b7}
.muted{color:#aab2c0}

/* ── EMPTY / LOADING STATES ── */
.empty{padding:48px 20px;text-align:center;color:#9aa2b1;font-size:13.5px}
.loading{padding:60px 20px;text-align:center;color:#9aa2b1;font-size:13.5px}
.empty-card{border:1px dashed #E0E3E8;border-radius:10px;padding:24px 20px;text-align:center}
.empty-title{font-size:13px;font-weight:600;color:#0a0a0a;margin-bottom:5px}
.empty-sub{font-size:12.5px;color:rgba(0,0,0,.5);margin-bottom:14px}

/* ── MODAL ── */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(23,35,61,.5);z-index:400;align-items:center;justify-content:center;padding:22px}
.modal-overlay.open{display:flex}
.modal{background:#fff;border-radius:16px;width:100%;max-width:460px;overflow:hidden;box-shadow:0 24px 60px -20px rgba(23,35,61,.4)}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;background:#17233d;color:#fff}
.modal-title{font-size:15px;font-weight:700}
.modal-close{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);color:#fff;width:28px;height:28px;border-radius:7px;cursor:pointer;font-size:15px}
.modal-body{padding:20px 22px}
.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:0 22px 20px}

/* A page that flags a live-app feature not yet in this build */
.flag-note{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border:1px dashed #F2C879;background:#FFFBF2;border-radius:9px;font-size:12.5px;color:#8a5a12;margin:10px 0}
.flag-note b{color:#6b4310}
