/* ============================================================
   HiringNotice — Design System Kit  (hn.css)
   One consolidated stylesheet: tokens · base · components.
   Font: Rubik (load via <link> in the page <head>).
   Usage: <link rel="stylesheet" href="/kit/hn.css">
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root{
  /* brand */
  --blue:#2563EB;  --blue-ink:#1d4fd7;  --blue-2:#5B8DEF;   /* dark-bg blue  */
  --purple:#7C3AED; --purple-ink:#6a2fd6; --purple-2:#9F72FF; /* dark-bg purple */
  /* semantic */
  --green:#16A34A; --amber:#F59E0B; --focus:#B45309; --red:#DC2626;
  /* neutrals (cool-warm balanced, not pure grey) */
  --ink:#0d1220; --slate:#516074; --mute:#6b7688;
  --line:#e6e8ee; --soft:#f7f9fc; --bg:#ffffff;
  /* dark hero surfaces */
  --navy:#070b18; --navy-2:#0b1226;
  /* type scale */
  --fs-12:12px; --fs-14:14px; --fs-16:16px; --fs-18:18px; --fs-20:20px;
  --fs-24:24px; --fs-30:30px; --fs-38:38px; --fs-48:48px; --fs-64:64px;
  /* radius / shadow / z */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:22px; --r-pill:999px;
  --sh-1:0 8px 22px rgba(15,23,42,.06);
  --sh-2:0 14px 34px rgba(15,23,42,.09);
  --sh-3:0 24px 60px rgba(2,6,20,.5);
  --z-nav:50; --z-mega:45; --z-modal:100;
}

/* ---------- 2. RESET + BASE ---------- */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ font-family:"Rubik",system-ui,sans-serif; color:var(--ink); background:var(--bg);
  line-height:1.5; -webkit-font-smoothing:antialiased; }
a{ text-decoration:none; color:inherit; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input,select,textarea{ font-family:inherit; }
img{ max-width:100%; display:block; }
:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } html{ scroll-behavior:auto; } }

.wrap{ max-width:1240px; margin:0 auto; padding:0 32px; }
@media(max-width:600px){ .wrap{ padding:0 20px; } }

h1,h2,h3,h4{ font-family:"Rubik",system-ui,sans-serif; letter-spacing:-.02em; text-wrap:balance; }
.display{ font-weight:800; letter-spacing:-.03em; line-height:1.02; }

/* ---------- 3. BUTTONS ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:var(--r-md); font-weight:700; font-size:var(--fs-14); min-height:44px;
  padding:0 18px; transition:transform .18s, box-shadow .18s, background .18s; }
.btn-lg{ min-height:52px; padding:0 26px; font-size:var(--fs-16); }
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--blue-ink); }
.btn-purple{ background:var(--purple); color:#fff; }
.btn-purple:hover{ background:var(--purple-ink); }
.btn-white{ background:#fff; color:var(--blue); }
.btn-white:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(0,0,0,.2); }
.btn-ghost{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--line); color:var(--ink); }
.btn-ghost:hover{ box-shadow:inset 0 0 0 1.5px #c3c8d4; }
.btn-ghost-light{ background:transparent; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.25); color:#fff; }

/* ---------- 4. CHIPS / PILLS / BADGES ---------- */
.pill{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700;
  padding:7px 14px; border-radius:var(--r-pill); }
.pill-blue{ background:#eef2ff; color:var(--blue); }
.pill-purple{ background:#f3eefe; color:var(--purple); }
.pill-glass{ background:rgba(255,255,255,.16); color:#fff; }
.chip{ font-size:13.5px; font-weight:600; color:var(--slate); border:1px solid var(--line);
  padding:8px 14px; border-radius:var(--r-pill); background:#fff; transition:.16s; }
.chip:hover{ border-color:#c3c8d4; color:var(--ink); }
.chip.active{ background:var(--ink); color:#fff; border-color:var(--ink); }
.tag{ font-size:12.5px; color:#334155; background:#f1f5f9; padding:5px 11px; border-radius:var(--r-sm); font-weight:600; }
.tag-skill{ font-size:12.5px; color:var(--blue); background:#eef2ff; padding:5px 11px; border-radius:var(--r-sm); font-weight:600; }
.verified{ display:inline-flex; align-items:center; gap:4px; color:var(--green); font-size:12px; font-weight:700; }
.trust-badge{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700;
  color:#0f5132; background:#eafaf1; border:1px solid #c7ecd6; padding:9px 14px; border-radius:var(--r-md); }

/* ---------- 5. FORMS ---------- */
.field{ display:flex; align-items:center; gap:11px; padding:0 14px; }
.field input{ border:none; outline:none; font-size:15.5px; padding:15px 0; width:100%; background:transparent; color:var(--ink); }
.searchbar{ display:flex; gap:8px; background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:8px; box-shadow:var(--sh-3); }
.searchbar .field{ flex:1; }
label.lbl{ display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.select, .input{ width:100%; border:1px solid var(--line); border-radius:var(--r-md); padding:12px 14px; font-size:15px; color:var(--ink); background:#fff; }
.select:focus, .input:focus{ border-color:var(--blue); outline:none; }

/* ---------- 6. HEADER (scroll-reactive) ---------- */
header.hn{ position:fixed; top:0; left:0; right:0; z-index:var(--z-nav); background:transparent;
  transition:background .35s ease, box-shadow .35s ease;
  --logo-h:#fff; --logo-n:#fff; --wm-b:#fff; --wm-p:#fff; --nav-h:98px; --logo-scale:1.18; }
header.hn.scrolled{ background:rgba(9,12,26,.9); backdrop-filter:blur(12px); box-shadow:0 10px 34px rgba(0,0,0,.4);
  --logo-h:var(--blue-2); --logo-n:var(--purple-2); --wm-b:#fff; --wm-p:var(--purple-2); --nav-h:66px; --logo-scale:1; }
/* light header variant (content pages, not over a hero) */
header.hn.solid{ position:sticky; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
  --logo-h:var(--blue); --logo-n:var(--purple); --wm-b:var(--blue); --wm-p:var(--purple); --nav-h:66px; --logo-scale:1; box-shadow:none; }
header.hn.solid .menu>a, header.hn.solid .navtrigger{ color:var(--slate); }
header.hn.solid .menu>a:hover{ color:var(--ink); }
header.hn.solid .login{ color:var(--ink); }
header.hn.solid .post{ background:var(--blue); color:#fff; }
.hn .nav{ display:flex; align-items:center; justify-content:space-between; height:var(--nav-h); transition:height .35s ease; }
.hn .brand{ display:flex; align-items:center; gap:11px; transform:scale(var(--logo-scale)); transform-origin:left center; transition:transform .35s ease; }
/* The scaled logo (transform, no layout) must not run into the menu beside it. */
.hn .brand + .menu{ margin-left:calc((var(--logo-scale) - 1) * 200px); transition:margin-left .35s ease; }
.hn .brand .hs{ stroke:var(--logo-h); transition:stroke .35s ease; }
.hn .brand .ns{ stroke:var(--logo-n); transition:stroke .35s ease; }
.hn .brand .wm{ font-weight:800; font-size:22px; letter-spacing:-.02em; }
.hn .brand .wm .b{ color:var(--wm-b); transition:color .35s ease; }
.hn .brand .wm .p{ color:var(--wm-p); transition:color .35s ease; }
.hn .menu{ display:flex; align-items:center; gap:32px; }
.hn .menu>a, .hn .navtrigger{ font-size:15px; font-weight:600; color:rgba(255,255,255,.85); display:inline-flex; align-items:center; gap:6px; }
.hn .menu>a:hover, .hn .navtrigger:hover{ color:#fff; }
.hn .right{ display:flex; align-items:center; gap:20px; }
.hn .login{ font-size:15px; font-weight:700; color:#fff; }
.hn .post{ background:#fff; color:var(--blue); border-radius:11px; padding:0 20px; min-height:46px; font-weight:700; font-size:15px; display:inline-flex; align-items:center; gap:8px; transition:transform .2s, box-shadow .2s; }
.hn .post:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(0,0,0,.22); }
.hn .caret{ transition:transform .2s; }
@media(max-width:900px){ .hn .menu, .hn .login{ display:none; } }

/* ---------- 7. MEGA MENU (contained, ≤920px) ---------- */
.hasmega{ position:static; }
.mega{ position:absolute; top:100%; left:50%; width:min(920px, calc(100vw - 40px)); padding-top:14px;
  opacity:0; visibility:hidden; transform:translateX(-50%) translateY(-6px); transition:.16s; z-index:var(--z-mega); }
.hasmega.open .mega{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.hasmega.open .caret{ transform:rotate(180deg); }
.mega-card{ background:#fff; color:var(--ink); border-radius:var(--r-lg); border:1px solid var(--line); box-shadow:0 34px 80px rgba(4,8,20,.55); overflow:hidden; }
.mega-in{ display:grid; grid-template-columns:224px 1fr 244px; min-height:376px; }
@media(max-width:900px){ .mega-in{ grid-template-columns:1fr; } }
.mega .cats{ border-right:1px solid var(--line); padding:16px 12px; }
.mega .catbtn{ display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left; padding:11px 14px; border-radius:10px; font-size:14.5px; font-weight:600; color:var(--slate); }
.mega .catbtn:hover, .mega .catbtn.active{ background:#eef2ff; color:var(--blue); }
.mega .roles{ padding:26px 30px; }
.mega .roles h3{ font-weight:700; font-size:15px; margin-bottom:18px; }
.mega .rolegrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px 22px; }
.mega .rolegrid a{ font-size:14px; color:#334155; line-height:1.35; }
.mega .rolegrid a:hover{ color:var(--blue); }
.mega .alllink{ display:inline-flex; align-items:center; gap:7px; margin-top:22px; color:var(--blue); font-weight:700; font-size:14.5px; }
.mega .popular{ border-left:1px solid var(--line); padding:26px 28px; }
.mega .popular h4{ font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:#94a3b8; font-weight:700; margin-bottom:16px; }
.mega .popular a{ display:block; font-size:14px; color:#334155; padding:7px 0; }
.mega .popular a:hover{ color:var(--blue); }

/* ---------- 8. HERO (brand gradient) ---------- */
.hero-gradient{ position:relative; text-align:center; padding:158px 0 0; overflow:hidden;
  background:
    radial-gradient(900px 520px at 80% -12%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(700px 460px at 8% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(135deg, #1d4fd7 0%, #4b39d6 52%, var(--purple) 100%); color:#fff; }
.hero-gradient h1{ font-weight:800; font-size:clamp(38px,5.6vw,66px); line-height:1.02; color:#fff; max-width:16ch; margin:14px auto 20px; }
.hero-gradient h1 .p{ color:var(--purple-2); }
.hero-gradient .lead{ color:rgba(255,255,255,.86); font-size:19px; line-height:1.55; max-width:56ch; margin:0 auto 34px; }
.hero-gradient .lead b{ color:#fff; }

/* ---------- 9. JOB CARD ---------- */
.jobcard{ border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; background:#fff; display:flex; flex-direction:column; gap:14px; transition:.16s; }
.jobcard:hover{ box-shadow:var(--sh-2); transform:translateY(-3px); border-color:#d5dae6; }
.jc-logo{ width:46px; height:46px; border-radius:var(--r-md); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; color:#fff; flex-shrink:0; }
.jc-role{ font-weight:700; font-size:17px; color:var(--ink); line-height:1.25; }
.jc-co{ font-size:14px; color:var(--slate); display:flex; align-items:center; gap:8px; margin-top:4px; flex-wrap:wrap; }
.jc-meta{ display:flex; flex-wrap:wrap; gap:8px; }
.jc-foot{ display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding-top:14px; }
.jc-sal{ font-weight:700; color:var(--ink); font-size:14.5px; font-variant-numeric:tabular-nums; }
.jc-time{ font-size:12.5px; color:#94a3b8; }

/* ---------- 10. FACETS / FILTERS ---------- */
/* link facets → separate pages (crawlable) */
.facet-links{ display:flex; flex-wrap:wrap; gap:8px; }
.facet-links a{ font-size:13.5px; font-weight:600; color:var(--slate); border:1px solid var(--line); padding:8px 14px; border-radius:var(--r-pill); background:#fff; }
.facet-links a:hover{ border-color:var(--blue); color:var(--blue); }
/* in-page filters → narrow list (buttons) */
.filter-chips{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.flabel{ font-size:12.5px; font-weight:700; color:var(--mute); letter-spacing:.04em; text-transform:uppercase; margin-right:4px; }

/* ---------- 11. BREADCRUMB ---------- */
.crumb{ font-size:13px; color:var(--mute); }
.crumb a:hover{ color:var(--blue); }
.crumb span{ color:var(--ink); font-weight:600; }

/* ---------- 12. SECTIONS / FOOTER / UTIL ---------- */
.section{ padding:74px 0; }
.section.alt{ background:var(--soft); }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:32px; flex-wrap:wrap; }
.sec-head h2{ font-weight:800; font-size:clamp(26px,3.4vw,38px); }
.sec-head .st{ color:var(--slate); font-size:16px; margin-top:7px; }
.seelink{ color:var(--blue); font-weight:700; font-size:15px; display:inline-flex; gap:6px; align-items:center; white-space:nowrap; }
.seelink:hover{ gap:9px; }
footer.hn-foot{ background:var(--navy); color:#9aa5bb; }
footer.hn-foot a{ color:#9aa5bb; } footer.hn-foot a:hover{ color:#fff; }
footer.hn-foot .fcol h4{ font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:#fff; font-weight:700; margin-bottom:16px; }
footer.hn-foot .fcol a{ display:block; font-size:14px; padding:6px 0; }

/* ---- mobile bottom tab bar (contextual per page, injected by logo.js) ---- */
.mobnav{ display:none; }
@media(max-width:820px){
  .mobnav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:80;
    background:#fff; border-top:1px solid var(--line);
    box-shadow:0 -2px 14px rgba(13,18,32,.07);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .mobnav a{
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; min-height:56px; padding:8px 2px 7px;
    color:var(--mute); font-size:11px; font-weight:600;
    -webkit-tap-highlight-color:transparent;
  }
  .mobnav a svg{ width:23px; height:23px; }
  .mobnav a .lbl{ line-height:1; }
  .mobnav a.on{ color:var(--blue); }
  .mobnav a:active{ background:var(--soft); }
  /* emphasized centre action (e.g. employer Post) */
  .mobnav a.act{ color:var(--blue); }
  .mobnav a.act .ic{
    width:44px; height:44px; margin-top:-16px; border-radius:50%;
    background:var(--blue); display:flex; align-items:center; justify-content:center;
    box-shadow:0 5px 14px rgba(37,99,235,.42);
  }
  .mobnav a.act .ic svg{ width:24px; height:24px; color:#fff; }
  body:has(.mobnav){ padding-bottom:calc(58px + env(safe-area-inset-bottom)); }
}

/* ---------- Time-bound offer (kit/offer.js) ---------- */
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
[data-price]{ position:relative; }
p .was, td .was{ font-size:1em; font-weight:500; }
.was{ color:var(--mute); font-weight:600; font-size:.58em; text-decoration-thickness:2px; margin-right:4px; letter-spacing:0; }
[data-offer]{ background:linear-gradient(100deg,#7a1fa2,#c2410c 60%,#f59e0b); color:#fff; border-radius:var(--r-lg); box-shadow:0 14px 34px rgba(194,65,12,.28); }
.offer-in{ display:flex; align-items:center; gap:14px; padding:14px 20px; flex-wrap:wrap; }
.offer-in > svg{ color:#fde68a; flex-shrink:0; }
.offer-t{ flex:1; min-width:200px; }
.offer-t b{ display:block; font-weight:800; font-size:18px; letter-spacing:-.01em; }
.offer-t span{ font-size:14px; color:rgba(255,255,255,.92); }
.offer-c{ display:flex; align-items:baseline; gap:3px; font-variant-numeric:tabular-nums; }
.offer-c span{ background:rgba(0,0,0,.22); border-radius:8px; padding:6px 8px; font-weight:800; font-size:22px; min-width:44px; text-align:center; }
.offer-c i{ font-style:normal; font-size:12px; font-weight:700; margin-right:6px; color:#fde68a; }

/* ---------- Site footer (shared, 2 rows of link columns + bottom bar) ---------- */
footer.sf{ background:var(--navy); color:#9aa5bb; font-size:14px; }
footer.sf a{ color:#aeb7c9; } footer.sf a:hover{ color:#fff; }
.sf-row{ display:grid; grid-template-columns:1.5fr repeat(4,1fr); gap:28px 30px; padding:52px 0 36px; }
.sf-row + .sf-row{ border-top:1px solid rgba(255,255,255,.07); padding-top:34px; }
.sf-brand p{ font-size:14px; line-height:1.6; margin-top:14px; max-width:32ch; color:#8793aa; }
.sf-brand .sf-free{ display:inline-block; margin-top:14px; font-size:13px; font-weight:700; color:#86efac; }
.sf-col .sf-h{ font-size:12.5px; letter-spacing:.07em; text-transform:uppercase; color:#fff; font-weight:700; margin-bottom:12px; }
.sf-col a{ display:block; padding:5px 0; }
.sf-bottom{ border-top:1px solid rgba(255,255,255,.08); padding:20px 0 30px; display:flex; justify-content:space-between; gap:10px 20px; flex-wrap:wrap; font-size:13px; color:#8793aa; }
.sf-bottom nav{ display:flex; gap:6px 18px; flex-wrap:wrap; }
@media(max-width:900px){ .sf-row{ grid-template-columns:repeat(3,1fr); } .sf-brand{ grid-column:1/-1; } .sf-sp{ display:none; } }
@media(max-width:560px){ .sf-row{ grid-template-columns:1fr 1fr; gap:24px 18px; padding:40px 0 28px; } }

/* ---------- Info tooltip: <span class="tip"><button type="button" aria-describedby="x">i</button><span role="tooltip" id="x">…</span></span> ---------- */
.tip{ position:relative; display:inline-flex; vertical-align:middle; margin-left:5px; }
.tip > button{ width:17px; height:17px; border-radius:50%; border:1.5px solid #b9c0cf; background:#fff; color:var(--slate); font:700 10.5px/1 inherit; font-style:italic; font-family:Georgia,serif; display:inline-flex; align-items:center; justify-content:center; cursor:help; padding:0; }
.tip > button:hover, .tip > button:focus-visible{ border-color:var(--blue); color:var(--blue); }
.tip [role="tooltip"]{ display:none; position:absolute; bottom:calc(100% + 9px); left:50%; transform:translateX(-50%); width:max-content; max-width:min(250px,70vw); background:var(--ink); color:#fff; font-size:12.5px; line-height:1.45; font-weight:500; text-align:left; padding:9px 11px; border-radius:9px; box-shadow:0 6px 18px rgba(7,11,24,.2); z-index:40; }
.tip [role="tooltip"]::after{ content:""; position:absolute; top:100%; left:calc(50% + var(--arw, 0px)); margin-left:-6px; border:6px solid transparent; border-top-color:var(--ink); }
.tip:hover [role="tooltip"], .tip:focus-within [role="tooltip"]{ display:block; }
.tip.off [role="tooltip"]{ display:none; }
