/* ==========================================================================
   Espacio.aero — Design System v1.0 (hand-authored, no build step)
   Tokens & components per docs/DESIGN_SYSTEM.md
   Navy = authority · Sky = the single interactive accent · saturated = status only
   Type: Hanken Grotesk (human) + JetBrains Mono (machine-issued data)
   ========================================================================== */

:root {
  /* Navy — surfaces & ink (Claude Design navy #0A1B33 / navy2 #13294D) */
  --navy-900: #0A1B33;
  --navy-800: #0F2647;
  --navy-700: #13294D;
  --navy-600: #1B3A6B;

  /* Slate — text (design --muted #586274 / --faint #8A93A3) */
  --slate-600: #3f4a5c;
  --slate-500: #586274;
  --slate-400: #8A93A3;

  /* Sky — interactive accent (Claude Design sky #1667C8 / sky2 #2E86E0) */
  --sky-700: #0E447F;
  --sky-600: #1257A8;
  --sky-500: #1667C8;
  --sky-2:   #2E86E0;
  --sky-100: #E7F0FB;

  /* Neutrals */
  --canvas: #F5F7FA;
  --white: #FFFFFF;
  --line: #E6E9EF;
  --line-2: #EFF2F6;

  /* Semantic — status only */
  --status-current: #158463;
  --status-expiring: #B57708;
  --status-expired: #C6413B;
  --status-current-bg: #E4F3ED;
  --status-expiring-bg: #FBF0DA;
  --status-expired-bg: #FBE9E7;

  /* Type */
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Radii & layout */
  --r-control: 8px;
  --r-card: 14px;
  --maxw: 1180px;

  --ink: #0F1A2B;
  --shadow-card: 0 1px 2px rgba(10, 27, 51, .04), 0 4px 16px rgba(10, 27, 51, .05);
  --shadow-hover: 0 8px 26px rgba(10, 27, 51, .1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: keep the footer pinned to the viewport bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; }
a { color: var(--sky-600); text-decoration: none; }
a:hover { color: var(--sky-700); }

/* Horizontal-only padding: `.container` is a centering gutter and must never zero the
   vertical padding of elements that also carry a component class (footer-top, job-detail,
   apply-wrap, profile-wrap…). Using the shorthand `padding:0 X` did exactly that at ≤520. */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.mono { font-family: var(--mono); }

/* --------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  border-radius: var(--r-control); padding: .6rem 1.15rem; min-height: 42px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--sky-500); color: #fff; }
.btn-primary:hover { background: var(--sky-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: transparent; }
.btn-ghost:hover { background: var(--line-2); color: var(--navy-900); }
.btn-outline { background: #fff; color: var(--navy-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--slate-400); color: var(--navy-900); }
.btn-lg { min-height: 50px; padding: .8rem 1.5rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--status-expired-bg); color: var(--status-expired); border-color: #f0c9c6; }
.btn-danger:hover { background: var(--status-expired); color: #fff; border-color: var(--status-expired); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line-2); color: var(--slate-400); border-color: var(--line); cursor: default; pointer-events: none; }

/* --------------------------------------------------------- header */
.site-header {
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
  transition: box-shadow .18s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(10,27,51,.07); }
.header-inner { display: flex; align-items: center; gap: 1.75rem; height: 78px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 55px; width: auto; display: block; }
.header-collapse { display: flex; flex: 1; align-items: center; gap: 1.75rem; }
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a { color: var(--slate-500); font-size: .95rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.is-active { color: var(--navy-900); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .7rem; }

/* Header global search */
.header-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 300px; }
.header-search-icon { position: absolute; left: .7rem; color: var(--slate-400); pointer-events: none; }
.header-search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--canvas); padding: 0 .9rem 0 2.1rem; font-family: var(--sans); font-size: .88rem; color: var(--navy-900); }
.header-search input:focus { outline: none; border-color: var(--sky-500); background: #fff; box-shadow: 0 0 0 3px rgba(0,137,218,.12); }

/* CSS-only mobile menu toggle (hidden on desktop) */
.nav-toggle-cb { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; margin-left: auto; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; border-radius: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; }
.lang-toggle button {
  background: #fff; border: 0; cursor: pointer; font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; padding: .4rem .55rem; color: var(--slate-400);
}
.lang-toggle button.is-active { background: var(--navy-900); color: #fff; }
/* Language toggle on the dark dashboard/admin sidebar */
.dash-lang { margin-bottom: .9rem; }
.dash-lang .lang-toggle { border-color: rgba(255,255,255,.16); }
.dash-lang .lang-toggle button { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
.dash-lang .lang-toggle button.is-active { background: var(--sky-500); color: #fff; }
.inline-form { display: inline; }

/* --------------------------------------------------------- hero / marquee */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(0,137,218,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff; padding: 5rem 0 4.5rem;
}
.hero::after { /* estela — jet wake motif */
  content: ""; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; max-width: 60%;
  background: url('/assets/img/estela.svg') no-repeat center center / contain;
  filter: brightness(0) invert(1); opacity: .14; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9CC8F5;
  border: 1px solid rgba(156,200,245,.28); border-radius: 999px; padding: .4rem .85rem; margin-bottom: 1.5rem;
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-current); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.5rem); max-width: 21ch; margin-bottom: 1.35rem; letter-spacing: -0.03em; line-height: 1.05; color: #fff; }
.hero-sub { color: #b9c8db; max-width: 48ch; font-size: 1.18rem; line-height: 1.6; margin-bottom: 2.25rem; }

/* hero search */
.hero-search {
  display: flex; gap: .5rem; background: #fff; border-radius: 12px; padding: .5rem;
  box-shadow: 0 12px 40px rgba(10,27,51,.28); max-width: 780px;
}
.hero-search .field { flex: 1; display: flex; flex-direction: column; padding: .35rem .75rem; text-align: left; }
.hero-search .field + .field { border-left: 1px solid var(--line); }
.hero-search label { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); }
.hero-search input { border: 0; outline: 0; font-family: var(--sans); font-size: .95rem; color: var(--ink); background: transparent; padding: .15rem 0; }
.hero-search input::placeholder { color: var(--slate-400); }
.hero-search .btn { align-self: stretch; }
.hero-authorities { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: #7f93ad; }
.hero-chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-chips a {
  font-size: .82rem; color: #cfe0f2; border: 1px solid rgba(156,200,245,.22); border-radius: 999px;
  padding: .35rem .8rem; background: rgba(255,255,255,.03);
}
.hero-chips a:hover { border-color: var(--sky-500); color: #fff; }

/* --------------------------------------------------------- value / feature band */
.band { padding: 4rem 0; }
.band-head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.band-head h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.band-head p { color: var(--slate-500); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.feature-card .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-600); }
.feature-card h3 { font-size: 1.15rem; margin: .5rem 0 .4rem; }
.feature-card p { color: var(--slate-500); font-size: .95rem; }

/* --------------------------------------------------------- home: enriched sections */
.band-tight { padding: 3.5rem 0; }
.band-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
.section-kicker { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-600); margin-bottom: .35rem; }
.section-sub { color: var(--slate-500); font-size: 1rem; margin-top: .2rem; }
.section-link { color: var(--sky-600); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.section-link:hover { color: var(--sky-700); }

.trust-band { padding: 2rem 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-label { text-align: center; color: var(--slate-400); font-size: .66rem; letter-spacing: .12em; margin-bottom: 1.1rem; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.8rem; }
.trust-logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--slate-600); font-weight: 600; font-size: .9rem; }
.trust-logo:hover { color: var(--navy-900); }
.trust-logo .avatar { width: 34px; height: 34px; font-size: .78rem; }

/* auto-scrolling marquee (logos + jobs) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-logos .marquee-track { gap: 1.1rem 2.4rem; align-items: center; padding: 0 1.2rem; }
/* Featured jobs — 3-column grid of cards (Claude Design "Vacantes destacadas") */
.jobm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.jobm-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.jobm-card:hover { box-shadow: var(--shadow-hover, 0 8px 26px rgba(10,27,51,.1)); transform: translateY(-2px); }
.jobm-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.jobm-head .avatar-square { width: 42px; height: 42px; border-radius: 11px; }
.jobm-badge { padding: 4px 9px; border-radius: 100px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.jobm-badge.is-match { background: var(--status-current-bg); color: var(--status-current); }
.jobm-badge.is-new { background: var(--sky-100); color: var(--sky-500); }
.jobm-id { min-width: 0; }
.jobm-id h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.jobm-co { font-size: .8rem; font-weight: 500; color: var(--slate-500); margin-top: 2px; }
.jobm-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .55rem; border-top: 1px solid var(--line-2); }
.jobm-salary { font-weight: 700; color: var(--navy-900); font-size: .85rem; }
.jobm-cat { font-weight: 600; color: var(--slate-500); font-size: .8rem; }
.jobm-time { font-weight: 500; color: var(--slate-400); font-size: .75rem; }
@media (max-width: 860px) { .jobm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .jobm-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } }

/* Stats: rounded navy card per design (18px radius, sans-bold figures, left-aligned) */
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; color: #fff;
  border-radius: 18px; padding: 2.5rem 2.75rem;
  background: radial-gradient(700px 300px at 50% -60%, rgba(0,137,218,.25), transparent 60%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.home-stat { display: flex; flex-direction: column; gap: .3rem; }
.home-stat-num { font-family: var(--sans); font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.home-stat-label { color: #b9c8db; font-size: .85rem; }
.salaries-note { font-size: .7rem; letter-spacing: .06em; color: var(--slate-400); margin-top: 1.1rem; }

/* News cards ("Desde la cabina") */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.news-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; border-radius: 16px; }
.news-card { transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.news-card:hover { border-color: var(--sky-500); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-img { aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--line-2), #e3e9f2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: var(--slate-400); font-size: 1.4rem; }
.news-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.news-cat { font-size: .64rem; letter-spacing: .1em; color: var(--sky-600); }
.news-body h3 { font-size: 1.08rem; line-height: 1.3; }
.news-excerpt { color: var(--slate-500); font-size: .9rem; line-height: 1.55; }
.news-meta { font-size: .7rem; color: var(--slate-400); margin-top: auto; padding-top: .4rem; }
.news-hero-img { aspect-ratio: 16 / 9; border-radius: 16px; background: var(--line-2) center/cover no-repeat; }
.article-body p { color: var(--slate-600); font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.1rem; }
.article-body blockquote { border-left: 3px solid var(--sky-500); margin: 1.4rem 0; padding: .4rem 0 .4rem 1.1rem;
  color: var(--navy-700); font-size: 1.08rem; font-weight: 600; }
.article-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy-900); margin: 1.8rem 0 .7rem; }
.article-body h4 { font-size: 1.08rem; font-weight: 700; color: var(--navy-900); margin: 1.4rem 0 .5rem; }
.article-body ul, .article-body ol { color: var(--slate-600); font-size: 1.02rem; line-height: 1.8; margin: 0 0 1.1rem 1.3rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--sky-600); text-decoration: underline; }
.article-body strong { color: var(--navy-900); }

.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.person-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.5rem 1rem; color: inherit;  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.person-card:hover { border-color: var(--sky-500); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.person-card .avatar { margin-bottom: .3rem; }
.person-name { font-size: 1rem; color: var(--navy-900); }
.person-role { font-size: .85rem; color: var(--slate-500); }
.person-loc { font-size: .72rem; color: var(--slate-400); }

.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cta-panel { border-radius: var(--r-card); padding: 2.25rem; }
.cta-tag { font-size: .68rem; letter-spacing: .1em; }
.cta-panel h2 { font-size: 1.7rem; margin: .5rem 0 .6rem; }
.cta-panel p { margin-bottom: 1.4rem; }
.cta-pro { color: #fff;
  background: radial-gradient(500px 240px at 90% -20%, rgba(0,137,218,.28), transparent 60%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.cta-pro h2 { color: #fff; }
.cta-pro p { color: #b9c8db; }
.cta-pro .cta-tag { color: #7fc4f5; }
.cta-emp { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.cta-emp p { color: var(--slate-500); }
.cta-emp .cta-tag { color: var(--sky-600); }

@media (max-width: 900px) {
  .stats-card { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; padding: 1.75rem 1.5rem; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- auth split-screen */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(900px 500px at 20% 110%, rgba(0,137,218,.22), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
}
.auth-brand::after {
  content: ""; position: absolute; left: -180px; bottom: -220px; width: 560px; height: 560px;
  border: 1px solid rgba(156,200,245,.18); border-radius: 50%; pointer-events: none;
}
.auth-brand .brand img { height: 23px; }
.auth-brand-body { position: relative; z-index: 1; max-width: 26ch; }
.auth-brand-body h2 { font-size: 2.1rem; color: #fff; margin-bottom: 1.25rem; }
.auth-brand-body p { color: #b9c8db; }
.auth-bullets { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.auth-bullets li { display: flex; align-items: center; gap: .7rem; color: #dbe6f2; font-size: 1rem; }
.auth-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,137,218,.25); color: var(--sky-500); font-size: .8rem; flex: none; }
.auth-terms { margin-top: 1rem; text-align: center; font-size: .78rem; color: var(--slate-400); }
.auth-brand-foot { position: relative; z-index: 1; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: #7f93ad; }
.auth-brand-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; background: var(--canvas); }
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-wrap h1 { font-size: 1.7rem; margin-bottom: .35rem; }
.auth-lead { color: var(--slate-500); margin-bottom: 1.5rem; }

/* forms */
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-700); margin: 1rem 0 .35rem; }
.form-input {
  width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r-control);
  font-family: var(--sans); font-size: .95rem; color: var(--ink); background: #fff;
}
.form-input:focus { outline: 2px solid var(--sky-500); outline-offset: 0; border-color: var(--sky-500); }
/* inline validation states (design system §forms) */
.form-input.is-invalid { border-color: var(--status-expired); background: #fffafa; }
.form-input.is-invalid:focus { outline-color: var(--status-expired); }
.form-input.is-valid { border-color: var(--status-current); }
.danger-zone { border-color: #f0c9c6; }
.danger-zone h2 { color: var(--status-expired); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.type-option { border: 1px solid var(--line); border-radius: var(--r-control); padding: .7rem; text-align: center; cursor: pointer; font-size: .9rem; background: #fff; }
.type-option:has(input:checked) { border-color: var(--sky-500); background: var(--sky-100); color: var(--navy-900); font-weight: 600; }
.type-option input { position: absolute; opacity: 0; }
.field-error { color: var(--status-expired); font-size: .83rem; margin-top: .3rem; }
.form-hint { text-align: right; margin-top: .5rem; font-size: .88rem; }
/* Consistent breathing room above the primary action in every auth form (24px, design scale) */
.auth-form-wrap form button[type="submit"] { margin-top: 1.5rem; }
.auth-alt { margin-top: 1.4rem; text-align: center; font-size: .92rem; color: var(--slate-500); }
.auth-divider { display: flex; align-items: center; gap: .8rem; color: var(--slate-400); font-size: .8rem; margin: 1.2rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.alert { border-radius: var(--r-control); padding: .7rem .9rem; font-size: .9rem; margin-bottom: 1rem; }
.alert-success { background: var(--status-current-bg); color: var(--status-current); border: 1px solid #bfe5cd; }

/* --------------------------------------------------------- simple auth card (forgot/reset) */
.auth-page { padding: 4rem 1rem; display: flex; justify-content: center; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 2rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.auth-text { color: var(--slate-500); font-size: .95rem; margin-bottom: 1rem; }

/* --------------------------------------------------------- coming soon */
.coming { padding: 6rem 0; text-align: center; }
.coming .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-600); }
.coming h1 { margin: .6rem 0; }
.coming p { color: var(--slate-500); max-width: 46ch; margin: 0 auto 1.5rem; }

/* --------------------------------------------------------- error pages */
.error-page { padding: 6rem 0; text-align: center; }
.error-code { font-family: var(--mono); font-size: 3.5rem; font-weight: 700; color: var(--sky-500); }
.error-page h1 { margin: .4rem 0 .6rem; }
.error-page p { color: var(--slate-500); margin-bottom: 1.4rem; }

/* --------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.6); margin-top: 0; }
/* NB: footer-top/bottom also carry `.container`; keep the `.site-footer` prefix so
   their padding beats `.container { padding }` (incl. the ≤520 rule later in the file). */
.site-footer .footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem; padding: 3rem 1.5rem 2.25rem; align-items: start; }
.footer-brand img { height: 20px; margin-bottom: 1.1rem; display: block; }
.footer-tagline { font-size: .92rem; color: rgba(255,255,255,.7); max-width: 30ch; margin-bottom: .8rem; }
.footer-operator { font-size: .72rem; color: rgba(255,255,255,.4); letter-spacing: .02em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col-title { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .3rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.site-footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer-copy { font-size: .72rem; color: rgba(255,255,255,.4); }
.footer-lang .lang-toggle { border-color: rgba(255,255,255,.18); }
.footer-lang .lang-toggle button { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
.footer-lang .lang-toggle button.is-active { background: var(--sky-500); color: #fff; }
/* Tablet: brand stacks above the link groups, which stay 3-up (they fit) */
@media (max-width: 760px) {
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 1.5rem 2rem; }
}
/* Phone: 2 balanced columns that fill both sides — Producto + Legal stacked
   on the left, Compañía on the right. Avoids the lopsided 2+1 and the tall,
   half-empty single column. */
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .footer-col:nth-child(1) { grid-column: 1; grid-row: 1; }
  .footer-col:nth-child(3) { grid-column: 1; grid-row: 2; }
  .footer-col:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .site-footer .footer-top { padding: 2.25rem 1.25rem 1.5rem; gap: 1.5rem; }
  .site-footer .footer-bottom { padding: 1rem 1.25rem; }
}

/* --------------------------------------------------------- shared: cards, avatars, pills */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.muted { color: var(--slate-400); }
.notice { background: var(--sky-100); border: 1px solid #cfe2fb; border-radius: var(--r-control); padding: .8rem 1rem; font-size: .92rem; margin: 1rem 0; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700;
  font-size: .95rem; flex: none; font-family: var(--sans);
}
.avatar-xl { width: 96px; height: 96px; font-size: 2rem; border: 3px solid #fff; }
/* Photo avatars: the <img> fills the same box the monogram would occupy. */
.avatar-photo { overflow: hidden; background: var(--line-2); padding: 0; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Profile editor — photo uploader */
.photo-edit { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.photo-edit .avatar-xl { margin: 0; }
.photo-edit-actions { display: flex; flex-direction: column; gap: .5rem; }
.photo-edit-actions .file-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.photo-edit-hint { font-size: .78rem; color: var(--slate-400); }
.photo-file { font-size: .85rem; }
.photo-file::file-selector-button {
  font-family: var(--sans); font-weight: 600; font-size: .82rem; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy-700);
  border-radius: 8px; padding: .5rem .9rem; margin-right: .7rem;
}
.photo-file::file-selector-button:hover { background: var(--line-2); }

.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .25rem .7rem; }
.pill-avail.avail-actively_looking { background: var(--status-current-bg); color: var(--status-current); }
.pill-avail.avail-open_to_offers { background: var(--sky-100); color: var(--sky-600); }
.pill-avail.avail-not_looking { background: var(--line-2); color: var(--slate-500); }
.pill-ok { background: var(--status-current-bg); color: var(--status-current); }
.pill-warn { background: var(--status-expiring-bg); color: var(--status-expiring); }
/* Admin news pipeline (import → rewrite → draft) */
.news-config { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: center; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.news-config-k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin-right: .5rem; }
.news-config code { font-family: var(--mono); font-size: .82rem; background: var(--line-2); padding: .05rem .3rem; border-radius: 4px; }
.news-editorial { font-size: .88rem; margin-bottom: 1.1rem; }
.news-candidates { display: flex; flex-direction: column; gap: .7rem; }
.news-cand { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.15rem; }
.news-cand-main { min-width: 0; flex: 1; }
.news-cand-main h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.news-cand-meta { font-size: .72rem; color: var(--slate-400); margin-bottom: .35rem; }
.news-cand-sum { font-size: .88rem; margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-cand-action { flex-shrink: 0; }
@media (max-width: 560px) { .news-cand { flex-direction: column; align-items: stretch; } .news-cand-action .btn { width: 100%; } }
.radar-pill { background: linear-gradient(120deg, var(--navy-700), var(--sky-600)); color: #fff; font-weight: 700; }

/* --------------------------------------------------------- public profile */
.profile-cover { height: 160px; background: radial-gradient(700px 300px at 80% -40%, rgba(46,134,224,.28), transparent 60%), linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.profile-wrap { margin-top: -60px; padding-bottom: 4rem; }
.profile-head { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; flex-wrap: wrap; }
.profile-head .avatar-xl { margin-top: -10px; }
.profile-id { flex: 1; min-width: 220px; }
.profile-id h1 { font-size: 1.75rem; }
.profile-headline { color: var(--slate-600); font-size: 1.05rem; margin: .2rem 0 .5rem; }
.profile-meta { color: var(--slate-500); font-size: .92rem; display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.profile-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.profile-cols { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; margin-top: 1.25rem; }
/* Tabbed profile layout (Claude Design: 340px credentials + tabbed main) */
.profile-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; margin-top: 1.25rem; align-items: start; }
.profile-main-narrow { max-width: 720px; margin-top: 1.25rem; }
.profile-side { position: sticky; top: 82px; }
.profile-tabs { margin-bottom: 1.25rem; }
.profile-tabs .tab { cursor: pointer; }
/* CSS-only tabs: hidden radios drive panel visibility + active tab */
.ptab-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.ptab-panel { display: none; }
#ptab-overview:checked ~ .ptab-panel[data-tab="overview"],
#ptab-exp:checked ~ .ptab-panel[data-tab="exp"],
#ptab-act:checked ~ .ptab-panel[data-tab="act"] { display: block; }
#ptab-overview:checked ~ .profile-tabs .tab[for="ptab-overview"],
#ptab-exp:checked ~ .profile-tabs .tab[for="ptab-exp"],
#ptab-act:checked ~ .profile-tabs .tab[for="ptab-act"] { color: var(--ink); border-bottom-color: var(--sky-500); }
.profile-empty { padding: 2rem 0; }
.profile-empty-card { text-align: center; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.profile-section { padding: 1.5rem; margin-bottom: 1.25rem; }
.profile-section h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.profile-cv-locked { text-align: center; padding: 2.5rem 1.5rem; border-style: dashed; }
.profile-cv-locked .cv-lock-icon { font-size: 1.8rem; margin-bottom: .4rem; opacity: .7; }
.profile-cv-locked h2 { margin-bottom: .5rem; }
.profile-cv-locked p { max-width: 46ch; margin: 0 auto; }
.profile-bio { color: var(--slate-600); }
.side-card { padding: 1.25rem; margin-bottom: 1.25rem; }
.side-card h3 { font-size: .95rem; margin-bottom: .8rem; }

/* hours bar */
.hours-total { font-size: 1.4rem; margin-bottom: .8rem; }
.hours-total .mono { font-weight: 600; }
.hours-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line-2); }
.hours-seg { height: 100%; }
.hours-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .9rem; font-size: .85rem; color: var(--slate-500); }
.hours-legend li { display: flex; align-items: center; gap: .4rem; }
.hours-legend .dot { width: 9px; height: 9px; border-radius: 2px; }
.hours-legend b { color: var(--ink); }

/* credential cards */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cred-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: linear-gradient(160deg, #fff, #fbfdff); }
.cred-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cred-authority { font-size: .85rem; font-weight: 600; color: var(--navy-900); letter-spacing: .04em; }
.cred-verified { font-size: .72rem; font-weight: 600; color: var(--status-current); background: var(--status-current-bg); padding: .15rem .5rem; border-radius: 999px; }
.cred-type { font-size: 1.05rem; }
.cred-no, .cred-valid { font-size: .8rem; color: var(--slate-500); margin-top: .35rem; }

/* type ratings */
.rating-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.rating { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; display: flex; flex-direction: column; gap: .15rem; }
.rating.is-current { border-color: var(--sky-500); background: #f4f9fe; }
.rating.is-lapsed { opacity: .65; }
.rating-code { font-size: 1.1rem; font-weight: 600; color: var(--navy-900); }
.rating-name { font-size: .82rem; color: var(--slate-500); }
.rating-hours { font-size: .8rem; color: var(--slate-600); }

/* timeline */
.timeline { list-style: none; }
.timeline-item { display: flex; gap: 1rem; padding-bottom: 1.3rem; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sky-500); margin-top: 4px; flex: none; z-index: 1; }
.timeline-body h3 { font-size: 1rem; }
.chip-inline { font-size: .72rem; background: var(--line-2); padding: .1rem .4rem; border-radius: 5px; color: var(--slate-600); }
.timeline-org { color: var(--slate-600); font-size: .92rem; }
.timeline-dates { color: var(--slate-400); font-size: .8rem; margin: .1rem 0; }
.timeline-desc { color: var(--slate-500); font-size: .9rem; margin-top: .3rem; }

/* side chips / lists */
.authority-chips, .skill-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.authority-chip { border: 1px solid var(--line); border-radius: 6px; padding: .25rem .6rem; font-size: .82rem; font-weight: 600; color: var(--navy-900); }
.skill-chip { background: var(--line-2); border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; color: var(--slate-600); }
.plain-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }

/* --------------------------------------------------------- dashboard */
.dash-body { background: var(--canvas); }
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--navy-900); color: #c9d6e6; padding: 1.5rem 1.1rem; display: flex; flex-direction: column; gap: 1.2rem; }
.dash-bar { display: flex; align-items: center; gap: .6rem; }
.dash-burger { display: none; }
.dash-panel { display: flex; flex-direction: column; gap: 1.2rem; flex: 1 1 auto; min-height: 0; }
.dash-brand img { height: 22px; }
.dash-me { display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: .7rem; color: #fff; }
.dash-me-text { display: flex; flex-direction: column; overflow: hidden; }
.dash-me-text strong { font-size: .92rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.dash-me-text small { color: var(--slate-400); font-size: .78rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.dash-nav-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #5f7ea0; }
.dash-nav { display: flex; flex-direction: column; gap: .2rem; }
.dash-nav a { color: #c9d6e6; padding: .6rem .75rem; border-radius: 8px; font-size: .95rem; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav a.is-active { background: var(--sky-500); color: #fff; font-weight: 600; }
.dash-foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }
.dash-back { color: var(--slate-400); font-size: .88rem; }
.dash-back:hover { color: #fff; }
.dash-logout { background: transparent; border: 0; color: var(--slate-400); cursor: pointer; font-size: .88rem; text-align: left; padding: 0; }
.dash-logout:hover { color: #fff; }

.dash-main { padding: 2rem 2.25rem; max-width: 1180px; }
/* Wider content for data-heavy panels (employer tools, admin) */
.dash-main.admin-wide, .dash-main.dash-wide { max-width: 1320px; }
.dash-bar .admin-tag { margin: 0; }
.dash-group { display: flex; flex-direction: column; gap: .45rem; }
.dash-group + .dash-group { margin-top: .35rem; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.6rem; }
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; }
.completeness-card { padding: 1.5rem; display: flex; gap: 1.25rem; align-items: center; }
.completeness-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.completeness-card p { font-size: .88rem; margin-bottom: .8rem; }
.ring {
  --pct: 0; flex: none; width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(var(--sky-500) calc(var(--pct) * 1%), var(--line-2) 0);
  display: grid; place-items: center;
}
.ring::before { content: ""; position: absolute; width: 68px; height: 68px; border-radius: 50%; background: #fff; }
.ring span { position: relative; font-weight: 700; font-size: 1.05rem; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
.stat { padding: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.stat-label { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); }
.stat-value { font-size: 1.7rem; font-weight: 700; }

/* --------------------------------------------------------- Radar (analytics + plans) */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.radar-section { padding: 1.5rem; margin-bottom: 1.25rem; }
.radar-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.radar-locked-card { padding: 0; overflow: hidden; }
.radar-tease { padding: 1.2rem 1.5rem 0; font-size: 1.05rem; color: var(--navy-900); }
.radar-lock { text-align: center; padding: 2.2rem 1.5rem; }
.radar-lock-icon { font-size: 2rem; margin-bottom: .3rem; }
.radar-lock h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.radar-lock p { max-width: 46ch; margin: 0 auto 1.1rem; }

.viewer-list { display: flex; flex-direction: column; }
.viewer-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.viewer-row:last-child { border-bottom: 0; }
.viewer-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.viewer-id strong { color: var(--navy-900); }
.viewer-id .muted { font-size: .85rem; }
.viewer-when { font-size: .74rem; color: var(--slate-400); white-space: nowrap; }

.radar-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.radar-bar { flex: 1; min-width: 3px; background: linear-gradient(var(--sky-500), var(--navy-700)); border-radius: 3px 3px 0 0; }

.radar-hero { padding: 4rem 0 3.5rem; }
.radar-active-note { color: #9CC8F5; margin-top: 1rem; }
.radar-active-note a { color: #fff; text-decoration: underline; }
.radar-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 820px; margin: 0 auto; }
.radar-plan { padding: 2rem; display: flex; flex-direction: column; }
.radar-plan .cta-tag { color: var(--sky-600); font-size: .68rem; letter-spacing: .1em; }
.radar-price { font-size: 2rem; font-weight: 800; margin: .3rem 0 1.1rem; color: var(--navy-900); }
.radar-feats { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; flex: 1; }
.radar-feats li { color: var(--slate-600); font-size: .95rem; }
.radar-plan-dark { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; }
.radar-plan-dark .cta-tag { color: #7fc4f5; }
.radar-plan-dark .radar-price, .radar-plan-dark .radar-feats li { color: #fff; }
.radar-note { text-align: center; margin-top: 1.25rem; font-size: .85rem; }

/* --------------------------------------------------------- onboarding wizard */
.onb-wrap { max-width: 640px; }
.onb-head { text-align: center; margin-bottom: 1.5rem; }
.onb-head h1 { font-size: 1.8rem; }
.onb-progress { list-style: none; display: flex; justify-content: center; gap: .4rem 1.6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.onb-progress li { display: flex; align-items: center; gap: .45rem; color: var(--slate-400); font-size: .85rem; }
.onb-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: .72rem; }
.onb-progress li.is-current { color: var(--navy-900); font-weight: 600; }
.onb-progress li.is-current .onb-dot { background: var(--sky-500); color: #fff; border-color: var(--sky-500); }
.onb-progress li.is-done { color: var(--status-current); }
.onb-progress li.is-done .onb-dot { background: var(--status-current-bg); color: var(--status-current); border-color: var(--status-current-bg); }
.onb-card { padding: 1.75rem; }
.onb-card h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.onb-sub { font-size: .95rem; margin-bottom: 1.25rem; }
.onb-actions { margin-top: 1.4rem; display: flex; gap: .6rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.onb-actions-center { justify-content: center; }
.onb-cta-card { text-align: center; padding: 2.5rem 1.75rem; }
.onb-cta-icon { font-size: 2.2rem; margin-bottom: .5rem; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row-2 { grid-template-columns: 1fr; } }
.onb-lic-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.1rem; }
.onb-lic-list li { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; font-size: .92rem; background: var(--canvas); }
.onb-lic-form { margin-bottom: .4rem; }
.onb-lic-form .btn { margin-top: .7rem; }
.onb-done { text-align: center; padding: 2.5rem 1.75rem; }
.onb-done-icon { font-size: 2.4rem; margin-bottom: .4rem; }
.onb-done-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.onb-share { font-size: .88rem; }
.onb-skip { text-align: center; margin-top: 1rem; }
.link-muted { background: none; border: 0; cursor: pointer; color: var(--slate-400); font-family: var(--sans); font-size: .88rem; text-decoration: underline; }
.link-muted:hover { color: var(--slate-600); }

/* --------------------------------------------------------- static/legal pages */
.legal-page { max-width: 760px; }
.legal-page h1 { margin-bottom: .35rem; }
.legal-updated { font-size: .72rem; color: var(--slate-400); letter-spacing: .06em; margin-bottom: 1.6rem; }
.legal-page h2 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.legal-page h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.legal-page p, .legal-page li { color: var(--slate-600); font-size: .97rem; line-height: 1.75; }
.legal-page ul { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.legal-page li { margin-bottom: .45rem; }
.pricing-group-title { font-size: 1.35rem; margin: 2.2rem 0 1.1rem; text-align: center; }

/* FAQ accordion (pricing) */
.faq { max-width: 760px; margin: 3.5rem auto 0; }
.faq-title { font-size: 1.5rem; text-align: center; margin-bottom: 1.5rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; transition: border-color .15s, box-shadow .15s; }
.faq-item:hover { border-color: var(--sky-500); }
.faq-item[open] { box-shadow: var(--shadow-card); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; font-weight: 600; font-size: 1.02rem; color: var(--navy-900); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-chevron { flex-shrink: 0; color: var(--sky-500); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-item > p { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--slate-600); line-height: 1.65; }
.faq-item > p a { color: var(--sky-600); }

/* admin plan editor */
.plan-edit { padding: 1.25rem; margin-bottom: 1rem; }
.plan-grid { display: grid; grid-template-columns: 1.7fr 1.1fr .9fr .7fr 1.1fr .7fr auto; gap: .7rem; align-items: end; margin-bottom: .7rem; }
.plan-edit .ff { margin-bottom: .6rem; }
.plan-edit .ff-check, .ff-check { flex-direction: row; align-items: center; gap: .45rem; padding-bottom: .8rem; white-space: nowrap; }
.plan-actions-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .radar-plans { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- profile editor */
.edit-section { padding: 1.5rem; margin-bottom: 1.25rem; }
.edit-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.edit-section .btn { margin-top: 1.1rem; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
.field-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; align-items: end; }
.ff { display: flex; flex-direction: column; }
.mini-label { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-400); margin-bottom: .28rem; }
input[type="month"].form-input, input[type="date"].form-input { min-height: 44px; }
.hours-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
select.form-input { background: #fff; }
textarea.form-input { resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .92rem; }
.checkbox-row input { width: 16px; height: 16px; }
.editable-list { list-style: none; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.editable-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: var(--canvas); border-radius: 8px; font-size: .9rem; }
.add-form { border-top: 1px dashed var(--line); padding-top: 1rem; }
.add-inline { display: flex; gap: .6rem; align-items: center; }
.add-inline .form-input { flex: 1; }
.edit-chips { margin-bottom: 1rem; }
.skill-chip .inline-form { display: inline; }
.chip-x { background: 0; border: 0; color: var(--slate-400); cursor: pointer; font-size: .72rem; margin-left: .2rem; padding: 0; }
.chip-x:hover { color: var(--status-expired); }
.link-danger { background: 0; border: 0; color: var(--status-expired); cursor: pointer; font-size: .82rem; }
.link-danger:hover { text-decoration: underline; }

/* --------------------------------------------------------- companies */
.avatar-square { border-radius: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.company-cover { background: radial-gradient(700px 300px at 20% -40%, rgba(0,137,218,.22), transparent 60%), linear-gradient(150deg, var(--navy-800), var(--navy-900)); }
.verified-tick { color: var(--sky-500); font-size: .8em; vertical-align: middle; }
.claim-notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Company directory — kicker + icon search + category chips + rich cards */
.dir-head { margin-bottom: 1.4rem; }
.dir-head h1 { font-size: 2rem; margin: .2rem 0 .4rem; }
.dir-sub { color: var(--slate-600); max-width: 62ch; }
.dir-search { position: relative; max-width: 720px; margin-bottom: 1.1rem; }
.dir-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--slate-400); pointer-events: none; }
.dir-search-input { width: 100%; height: 52px; padding-left: 2.9rem; border-radius: 14px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.cat-chip { display: inline-block; padding: .5rem 1.1rem; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--slate-600); font-size: .9rem; font-weight: 600; transition: border-color .12s, background .12s, color .12s; }
.cat-chip:hover { border-color: var(--sky-500); color: var(--navy-900); }
.cat-chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: .4rem; }
.company-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.company-card:hover { border-color: var(--sky-500); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.company-cover { display: block; height: 66px; background-color: var(--cc); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.10) 0 11px, rgba(0,0,0,.10) 11px 22px); }
.company-card-body { position: relative; padding: 0 1.15rem 1.15rem; }
.company-avatar { position: absolute; top: -22px; left: 1.15rem; width: 46px; height: 46px; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(10,27,51,.18); }
.company-name { font-size: 1.05rem; margin-top: 32px; }
.company-name a { color: var(--navy-900); }
.company-name a:hover { color: var(--sky-600); }
.company-meta { font-size: .85rem; margin: .15rem 0 .9rem; }
.company-stats { display: flex; gap: 2.2rem; margin-bottom: 1rem; }
.company-stat { display: flex; flex-direction: column; }
.company-stat strong { font-size: 1.05rem; color: var(--navy-900); }
.company-stat span { font-size: .78rem; color: var(--slate-500); text-transform: capitalize; }
.company-follow-btn { width: 100%; }

.company-summary { padding: 1.5rem; display: flex; gap: 1.25rem; align-items: center; }
.company-summary h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.company-summary .btn { margin-top: .6rem; }
.empty-cta { padding: 2.5rem; text-align: center; }
.empty-cta h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.empty-cta p { margin-bottom: 1.2rem; }

/* --------------------------------------------------------- jobs */
.btn-sm { min-height: 34px; padding: .35rem .8rem; font-size: .85rem; }
/* Jobs search: light band (design) — search leads, currency toggle below */
.jobs-hero { background: var(--canvas); padding: 1.6rem 0 .25rem; }
.jobs-searchbar { display: flex; gap: .6rem; }
.jobs-searchbar .form-input { flex: 1; height: 52px; }
.jobs-searchbar .btn { height: 52px; padding-inline: 1.6rem; }
.searchbar-filter-btn { flex: none; display: inline-flex; align-items: center; gap: .5rem; height: 52px; padding: 0 1.1rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; }
.searchbar-filter-btn:hover { border-color: var(--sky-500); }
.searchbar-filter-btn svg { width: 16px; height: 16px; }
.jc-more { cursor: pointer; border-style: dashed; color: var(--sky-600); border-color: var(--sky-500); }
.jc-more:hover { background: var(--sky-100); color: var(--sky-600); }
.jobs-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.jobs-currency-note { font-family: var(--mono); font-size: .75rem; color: var(--slate-400); }
.jobs-currency { display: flex; align-items: center; gap: .5rem; }
.jobs-currency label { font-size: .8rem; color: var(--slate-600); }
.jobs-currency select { width: auto; height: auto; padding: .32rem 1.9rem .32rem .8rem; border-radius: 100px; font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--navy-900); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.jobs-band { padding-top: 1.25rem; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.filters-head h3 { font-size: 1rem; }
/* Talent still uses the ≤960 slide-in aside; hide its controls on desktop */
.filter-open-btn, .filter-close { display: none; }

/* ---- Jobs: top filter bar (design) ---- */
.jobs-filterbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .9rem; }
.jc-cats { display: flex; gap: .4rem; flex-wrap: wrap; }
.jc-chip { display: inline-flex; align-items: center; padding: .42rem .85rem; border-radius: 100px;
  border: 1px solid var(--line); background: #fff; color: var(--slate-600); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.jc-chip:hover { border-color: var(--sky-500); color: var(--navy-900); }
.jc-chip.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.jc-divider { width: 1px; align-self: stretch; min-height: 24px; background: var(--line-2); }
.jc-quick { display: flex; gap: .4rem; flex-wrap: wrap; }
.quick-chip { display: inline-flex; align-items: center; padding: .32rem .7rem; border-radius: 100px;
  background: var(--sky-100); color: var(--sky-600); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.quick-chip:hover { background: var(--sky-200, #d4e6fa); }
.quick-chip.is-on { background: var(--navy-900); color: #fff; }
.filters-btn { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; cursor: pointer;
  padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; }
.filters-btn:hover { border-color: var(--sky-500); }
.filters-btn svg { width: 15px; height: 15px; }
.filters-btn-count { background: var(--navy-900); color: #fff; font-size: .64rem; border-radius: 100px; padding: .05rem .45rem; }

/* ---- Jobs: active filter pills ---- */
.active-filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.af-label { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); }
.filter-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 8px;
  background: var(--sky-100); color: var(--sky-600); font-size: .74rem; font-weight: 600; }
.filter-pill span { opacity: .7; }
.filter-pill:hover { background: var(--sky-200, #d4e6fa); }
.clear-all { font-size: .78rem; color: var(--slate-600); text-decoration: underline; }

/* ---- Jobs: currency inline toggle ---- */
.jobs-currency-inline { display: inline-flex; align-items: center; gap: .35rem; }
.cur-opt { padding: .28rem .6rem; border-radius: 100px; border: 1px solid var(--line); font-size: .72rem; font-weight: 600; color: var(--slate-600); }
.cur-opt.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.jobs-head-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---- Jobs: all-filters right slide-in drawer ---- */
.jobs-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 94vw; background: #fff;
  z-index: 1501; box-shadow: -14px 0 44px rgba(10,27,51,.24); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s ease; }
.jobs-band > .filter-toggle-cb:checked ~ .jobs-drawer,
.talent-page > .filter-toggle-cb:checked ~ .jobs-drawer { transform: translateX(0); }
.jobs-band > .filter-scrim, .talent-page > .filter-scrim { display: block; position: fixed; inset: 0; z-index: 1500; background: rgba(10,27,51,.42);
  opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.jobs-band > .filter-toggle-cb:checked ~ .filter-scrim,
.talent-page > .filter-toggle-cb:checked ~ .filter-scrim { opacity: 1; pointer-events: auto; }
.jobs-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.jobs-drawer-head h3 { font-size: 1.1rem; color: var(--navy-900); }
.jobs-drawer-head .filter-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--slate-600); }
.jobs-drawer-head .filter-close:hover { background: var(--canvas); color: var(--ink); }
.jobs-drawer-body { flex: 1; overflow-y: auto; padding: 1.3rem 1.4rem; }
.jobs-drawer-body .filter-label { margin-top: 1rem; }
.jobs-drawer-body .filter-label:first-of-type { margin-top: 0; }
.jobs-drawer-body .filter-chips { margin-bottom: .3rem; }
.drawer-sep { height: 1px; background: var(--line-2); margin: 1.2rem 0; }
.jobs-drawer-foot { display: flex; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.jobs-drawer-foot .btn-primary { flex: 1; }
.jobs-results.is-loading { opacity: .5; pointer-events: none; transition: opacity .12s ease; }
.job-source-note { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); font-size: .78rem; color: var(--slate-400); }
.job-source-note a { color: var(--sky-600); }
.filter-group { margin-bottom: 1.25rem; }
.filter-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin-bottom: .6rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
/* Contextual section divider (e.g. "Requisitos de vuelo") — appears only for flight professions */
.filter-section-head { display: flex; align-items: center; gap: .6rem; margin: .25rem 0 1rem; }
.filter-section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.filter-section-head span { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-600); font-weight: 600; white-space: nowrap; }
/* Category chip block: cap height so 17 categories don't dominate the rail */
.filter-group-cats .filter-chips { gap: .4rem; }
.filter-chip { cursor: pointer; }
.filter-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.filter-chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .82rem; color: var(--slate-600); background: #fff; transition: border-color .12s, background .12s, color .12s; }
.filter-chip span:hover { border-color: var(--sky-500); color: var(--navy-900); }
.filter-chip:has(input:checked) span { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.filter-chip input:focus-visible + span { outline: 2px solid var(--sky-500); outline-offset: 1px; }
/* Checkbox chip (multi-select facet with a count) — same look, toggles independently */
.filter-chip-check:has(input:checked) span .muted { color: rgba(255,255,255,.7); }

/* Aircraft-type facet: checkbox rows with a right-aligned count */
.filter-facet { display: flex; flex-direction: column; gap: .1rem; max-height: 260px; overflow-y: auto; margin: -.2rem -.2rem 0; padding: 0 .2rem; }
.facet-row { display: flex; align-items: center; gap: .55rem; padding: .32rem .35rem; border-radius: 8px; cursor: pointer; }
.facet-row:hover { background: var(--canvas); }
.facet-row input { width: 15px; height: 15px; accent-color: var(--sky-600); flex: none; }
.facet-name { flex: 1; font-size: .82rem; color: var(--slate-700); }
.facet-row:has(input:checked) .facet-name { color: var(--navy-900); font-weight: 600; }
.facet-count { font-size: .72rem; color: var(--slate-400); background: var(--line-2); border-radius: 999px; padding: .05rem .5rem; }
.hours-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line-2); outline: none; margin: .35rem 0 .1rem; }
.hours-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--sky-500); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(10,27,51,.25); cursor: pointer; }
.hours-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sky-500); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(10,27,51,.25); cursor: pointer; }
.hours-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--slate-400); margin-top: .1rem; }
.hours-scale .hours-val { color: var(--sky-600); font-weight: 600; }
.req-extra { margin: .5rem 0 1rem; }
.req-extra > summary { cursor: pointer; list-style: revert; }
.req-extra > summary::marker { color: var(--sky-500); }
.jobs-count { color: var(--slate-500); font-size: .9rem; margin-bottom: 1rem; }
.jobs-results { display: flex; flex-direction: column; gap: .8rem; }

.job-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; color: inherit;  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.job-card:hover { border-color: var(--sky-500); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.job-card-body { flex: 1; min-width: 0; }
.job-card-body h3 { font-size: 1.08rem; }
.job-card-company { color: var(--slate-500); font-size: .88rem; margin: .1rem 0 .5rem; }
.job-card-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.mini-chip { font-size: .74rem; background: var(--line-2); color: var(--slate-600); border-radius: 999px; padding: .2rem .6rem; }
.mini-chip.mono { background: var(--sky-100); color: var(--sky-600); }
/* Job listing card chips follow the design: rounded-rect, canvas fill, hairline border */
.job-card-chips .mini-chip { border-radius: 6px; background: var(--canvas); border: 1px solid var(--line-2); color: var(--slate-500); font-weight: 500; font-size: .72rem; padding: .18rem .5rem; }
.job-card-salary { font-weight: 600; color: var(--navy-900); font-size: .92rem; white-space: nowrap; }
.job-card-aside { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; white-space: nowrap; flex-shrink: 0; }
.job-card-time { color: var(--slate-400); font-size: .78rem; }
/* Featured (promoted) jobs — amber accent (B2B monetization) */
.featured-badge { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--status-expiring); background: var(--status-expiring-bg); border-radius: 100px; padding: .14rem .5rem; margin-bottom: .35rem; }
.job-card.is-featured { border-color: #E6C67C; box-shadow: inset 0 0 0 1px #E6C67C; }
.job-card.is-featured:hover { border-color: var(--sky-500); }
.job-manage-row.is-featured { border-color: #E6C67C; box-shadow: inset 0 0 0 1px #E6C67C; }
.btn-feature { background: var(--status-expiring); color: #fff; border: 1px solid var(--status-expiring); }
.btn-feature:hover { background: #94620a; border-color: #94620a; }

/* Global search + people directory */
.search-page, .dir-page { padding: 2rem 0 4rem; }
.search-hero { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.search-hero-input { flex: 1; height: 52px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 1.1rem; font-family: var(--sans); font-size: 1.05rem; color: var(--navy-900); background: #fff; }
.search-hero-input:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(0,137,218,.12); }
.search-empty { padding: 2rem 0; font-size: 1rem; }
.search-tabs { display: flex; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.search-tab { padding: .6rem .9rem; font-weight: 600; font-size: .92rem; color: var(--slate-500);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.search-tab:hover { color: var(--navy-900); }
.search-tab.is-active { color: var(--navy-900); border-bottom-color: var(--sky-500); }
.tab-count { font-size: .74rem; font-family: var(--mono); color: var(--slate-400); }
.search-tab.is-active .tab-count { color: var(--sky-600); }
.search-block { margin-bottom: 2rem; }
.search-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .9rem; }
.search-block-head h2 { font-size: 1.15rem; }
.search-list { display: flex; flex-direction: column; gap: .75rem; }
.search-foot { margin-top: 1rem; }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
/* .person-card base (centered column) is defined once above; add its inner parts */
.person-card-body { min-width: 0; width: 100%; }
.person-card-body h3 { font-size: 1.02rem; line-height: 1.25; }
.person-headline { color: var(--slate-500); font-size: .85rem; margin: .15rem 0 .45rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-card-chips { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.chip-avail { background: var(--status-current-bg); color: var(--status-current); font-weight: 600; }

.people-gate { text-align: center; padding: 2.5rem 1.5rem; }
.people-gate h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.people-gate p { color: var(--slate-500); max-width: 460px; margin: 0 auto 1.25rem; }
.people-gate-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

.dir-head { margin-bottom: 1.5rem; }
.dir-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dir-filters .dir-q { flex: 1; min-width: 200px; }
.dir-filters .form-input { height: 44px; }
.dir-count { margin-bottom: 1rem; font-size: .85rem; }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }

/* Save-search bar (on /jobs) */
/* Results header: count on the left, collapsible alert toggle on the right */
.jobs-results-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.jobs-results-head .jobs-count { margin: 0; }
/* Save-search is a <details>: a slim toggle by default, expands to the form only on demand */
.save-search { margin: 0; }
.save-search-toggle { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--sky-600); padding: .38rem .8rem;
  border: 1px solid var(--sky-500); border-radius: 100px; background: var(--sky-100); white-space: nowrap; user-select: none; }
.save-search-toggle::-webkit-details-marker { display: none; }
.save-search-toggle::marker { content: ""; }
.save-search-toggle:hover { border-color: var(--sky-500); }
.save-search[open] { flex: 1 1 100%; }
.save-search[open] .save-search-toggle { border-color: var(--sky-500); color: var(--navy-900); margin-bottom: .6rem; }
.save-search-form { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .7rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.save-search-name { flex: 1; min-width: 160px; height: 40px; }
.save-search-freq { width: auto; height: 40px; }
/* Phones: full-width toggle, then name full-width and freq + button split a row */
@media (max-width: 560px) {
  .save-search { width: 100%; }
  .save-search-toggle { width: 100%; justify-content: center; }
  .save-search-form { gap: .5rem; }
  .save-search-name { flex: 1 1 100%; min-width: 0; }
  .save-search-freq { flex: 1 1 0; width: auto; }
  .save-search-form .btn { flex: 1 1 0; }
}

/* Alerts management (/dashboard/alerts) */
.alert-list { display: flex; flex-direction: column; gap: .85rem; }
.alert-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; flex-wrap: wrap; }
.alert-card-main { min-width: 0; flex: 1; }
.alert-card-main h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.alert-kind { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-600); background: var(--sky-100); border-radius: 100px; padding: .12rem .5rem; vertical-align: middle; margin-left: .35rem; }
.talent-alert-bar { margin: 0 0 1.1rem; }
.alert-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.alert-see { font-size: .85rem; }
.alert-card-actions { display: flex; align-items: flex-end; gap: .9rem; }
.alert-freq { display: flex; flex-direction: column; gap: .2rem; }
.alert-freq .form-input { height: 40px; width: auto; }

/* Notification preferences matrix (settings). NB: distinct from the notifications
   feed's `.notif-row` (further down) — they used to collide on the same class. */
.notif-pref-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.notif-pref-row:last-of-type { border-bottom: 0; }
.notif-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.notif-name { font-weight: 600; color: var(--navy-900); }
.notif-desc { font-size: .84rem; color: var(--slate-500); }

/* affinity / match badge */
.affinity-pill { display: inline-block; vertical-align: middle; font-size: .7rem; font-weight: 700; color: var(--status-current); background: var(--status-current-bg); border-radius: 999px; padding: .1rem .5rem; margin-left: .35rem; white-space: nowrap; }
.affinity-pill-lg { font-size: .8rem; padding: .15rem .6rem; }

/* dashboard recommendations */
.dash-reco { margin-top: 1.75rem; }
.dash-reco-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.dash-reco-head h2 { font-size: 1.2rem; }
.reco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.reco-card { padding: 1.1rem; color: inherit; display: flex; flex-direction: column; gap: .3rem;  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.reco-card:hover { border-color: var(--sky-500); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.reco-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.reco-card-top .affinity-pill { margin-left: 0; }
.reco-card h3 { font-size: .98rem; line-height: 1.3; }

/* job detail */
.job-detail { padding: 2rem 1.5rem 4rem; }
.job-detail-head { padding: 1.5rem; display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.job-detail-top { display: flex; gap: 1rem; align-items: flex-start; }
.job-detail-head h1 { font-size: 1.5rem; }
.job-detail-company { color: var(--slate-600); font-size: .95rem; margin: .2rem 0 .6rem; }
.job-detail-apply { text-align: right; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.job-detail-salary { font-size: 1.15rem; font-weight: 600; }
.job-prose { color: var(--slate-600); line-height: 1.7; }
.job-prose p { margin: 0 0 .8rem; }
.job-prose h3, .job-prose h4 { color: var(--navy-900); margin: 1.2rem 0 .5rem; font-size: 1rem; }
.job-prose ul, .job-prose ol { margin: 0 0 .9rem; padding-left: 1.3rem; }
.job-prose li { margin-bottom: .35rem; }
.job-prose a { color: var(--sky-600); }
.job-prose blockquote { margin: 0 0 .9rem; padding-left: .9rem; border-left: 3px solid var(--line-2); color: var(--slate-500); }

/* Rich-text editor (company job form). No-JS: plain textarea; JS: contenteditable. */
.rte-toolbar, .rte-editor { display: none; }
.rte.is-live .rte-source { display: none; }
.rte.is-live .rte-toolbar, .rte.is-live .rte-editor { display: block; }
.rte-toolbar { display: none; gap: .3rem; padding: .4rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--canvas); }
.rte.is-live .rte-toolbar { display: flex; }
.rte-btn { width: 30px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--slate-600); font-size: .82rem; cursor: pointer; }
.rte-btn:hover { border-color: var(--sky-500); color: var(--navy-900); }
.rte-editor { min-height: 150px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #fff; color: var(--ink); line-height: 1.6; overflow-y: auto; }
.rte-editor:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px var(--sky-100); }
.rte-editor h3 { font-size: 1rem; color: var(--navy-900); margin: .8rem 0 .3rem; }
.rte-editor ul, .rte-editor ol { padding-left: 1.3rem; margin: .3rem 0; }
.rte-editor:empty::before { content: attr(data-ph); color: var(--slate-400); }
.job-reqs li { margin-bottom: .5rem; }
.company-mini { display: flex; align-items: center; gap: .7rem; color: inherit; font-weight: 600; }
.company-jobs-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; }
.company-jobs-filter .jc-chip { cursor: pointer; }
.company-jobs-filter .cjf-n { opacity: .6; margin-left: .15rem; }
.company-jobs-filter .jc-chip.is-on .cjf-n { color: #fff; opacity: .85; }
.company-jobs { display: flex; flex-direction: column; }
.company-job-row[hidden] { display: none; }
.company-job-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line-2); color: inherit; }
.company-job-row:last-child { border-bottom: 0; }
.company-job-row:hover { background: var(--canvas); }
.company-job-info h3 { font-size: 1rem; color: var(--navy-900); }
.company-job-info p { font-size: .85rem; margin-top: .15rem; }
.company-job-cta { color: var(--sky-600); font-size: 1.1rem; flex: none; }

/* employer job management */
.job-manage-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; flex-wrap: wrap; }
.job-manage-main { flex: 1; min-width: 180px; }
.job-manage-main h3 { font-size: 1.02rem; }
.job-manage-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.status-pill { font-size: .74rem; font-weight: 600; border-radius: 999px; padding: .2rem .65rem; }
.status-published { background: var(--status-current-bg); color: var(--status-current); }
.status-pending_approval { background: var(--status-expiring-bg); color: var(--status-expiring); }
.status-rejected, .status-expired { background: var(--status-expired-bg); color: var(--status-expired); }
.status-draft, .status-archived { background: var(--line-2); color: var(--slate-500); }
.form-subhead { font-size: 1rem; margin: 1.5rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.job-form-actions { display: flex; gap: .6rem; margin-top: 1.3rem; }
.job-form-note { font-size: .82rem; margin-top: .6rem; }
.dash-cta-row { margin-top: 1.25rem; }

/* --------------------------------------------------------- applications */
.apply-row { display: flex; gap: .8rem; align-items: center; }
.btn-save { background: #fff; border: 1px solid var(--line); border-radius: var(--r-control); padding: .55rem .9rem; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--slate-600); }
.btn-save:hover { border-color: var(--sky-500); color: var(--navy-900); }
.btn-save.is-saved { border-color: var(--sky-500); color: var(--sky-600); background: var(--sky-100); }

.apply-wrap { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: .9rem; color: var(--slate-500); }
.back-link:hover { color: var(--navy-900); }
.apply-card { padding: 2rem; }
.apply-card h1 { font-size: 1.5rem; }
.apply-job { color: var(--slate-500); margin-bottom: 1.25rem; }
.apply-share { display: flex; gap: .8rem; align-items: center; background: var(--canvas); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.apply-share-note { font-size: .82rem; color: var(--slate-500); margin-bottom: .2rem; }
.apply-view-profile { display: block; font-size: .85rem; margin-top: .2rem; }
.apply-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; }

.app-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; }
.app-row-main h3 { font-size: 1.02rem; }
.app-status-submitted, .app-status-viewed { background: var(--sky-100); color: var(--sky-600); }
.app-status-shortlisted, .app-status-hired { background: var(--status-current-bg); color: var(--status-current); }
.app-status-rejected { background: var(--status-expired-bg); color: var(--status-expired); }

.saved-card { padding: 0; }
.saved-card-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; flex: 1; color: inherit; }
.saved-remove { padding-right: 1rem; }

.applicant-card { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .8rem; }
.applicant-main { display: flex; gap: .9rem; align-items: flex-start; }
.applicant-id { flex: 1; min-width: 0; }
.applicant-match { align-self: flex-start; flex: none; }
.applicant-main h3 { font-size: 1.05rem; }
.applicant-date { font-size: .78rem; color: var(--slate-400); margin-top: .2rem; }
.applicant-cover { background: var(--canvas); border-radius: 8px; padding: .8rem 1rem; font-size: .92rem; color: var(--slate-600); }
.applicant-status { display: flex; gap: .5rem; align-items: center; }
.applicant-status .form-input { max-width: 200px; }

/* --------------------------------------------------------- feed / network */
.feed-wrap { padding: 1.5rem 1.5rem 4rem; }
.feed-grid { display: grid; grid-template-columns: 260px 1fr 300px; gap: 1.25rem; align-items: start; }
.feed-single { max-width: 680px; }

/* left rail */
.feed-me { padding-bottom: 1.1rem; text-align: center; overflow: hidden; }
.feed-me-cover { height: 60px; margin: -1px -1px 0; background: radial-gradient(300px 120px at 70% -20%, rgba(0,137,218,.35), transparent), linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.feed-me-avatar { margin: -32px auto .6rem; border: 3px solid #fff; display: flex; }
.feed-me-name { font-weight: 700; color: var(--navy-900); display: block; }
.feed-me-headline { color: var(--slate-500); font-size: .85rem; padding: 0 1rem; margin-top: .2rem; }
.feed-me-stats { display: flex; justify-content: center; gap: 1.2rem; margin-top: .9rem; font-size: .82rem; color: var(--slate-500); }
.feed-me-stats strong { color: var(--navy-900); }
.feed-link-card { display: block; padding: .8rem 1rem; margin-top: 1rem; font-weight: 600; color: var(--navy-700); text-align: center; }
.feed-link-card:hover { border-color: var(--sky-500); }
.feed-join { padding: 1.5rem; text-align: center; }
.feed-join h3 { margin-bottom: .4rem; }
.feed-join p { margin-bottom: 1rem; font-size: .9rem; }

/* composer */
.composer { padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.composer-row { display: flex; gap: .8rem; align-items: flex-start; }
.composer-row textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; font-family: var(--sans); font-size: .95rem; resize: vertical; min-height: 46px; }
.composer-row textarea:focus { outline: 2px solid var(--sky-500); border-color: var(--sky-500); }
.composer-actions { display: flex; justify-content: flex-end; margin-top: .7rem; }
.composer-login { display: block; padding: 1rem 1.1rem; margin-bottom: 1.25rem; color: var(--slate-500); text-align: center; }
.composer-login:hover { color: var(--sky-600); }

/* post card */
.post-card { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.post-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; }
.post-head-text { display: flex; flex-direction: column; line-height: 1.3; }
.post-author { font-weight: 600; color: var(--navy-900); }
.post-headline { font-size: .82rem; color: var(--slate-500); }
.post-time { font-size: .72rem; color: var(--slate-400); }
.post-body { color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.post-image { width: 100%; border-radius: 10px; margin-top: .8rem; }
.post-actions { display: flex; gap: .5rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line-2); }
.post-action { background: 0; border: 0; cursor: pointer; font-family: var(--sans); font-size: .9rem; color: var(--slate-500); padding: .35rem .7rem; border-radius: 8px; }
.post-action:hover { background: var(--line-2); color: var(--navy-900); }
.post-action.is-liked { color: var(--status-expired); font-weight: 600; }

/* right rail */
.rail-card { padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.rail-card h3 { font-size: .95rem; margin-bottom: .9rem; }
.rail-person { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.rail-person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rail-person-text a { font-size: .9rem; font-weight: 600; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-person-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-follow { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sky-500); background: #fff; color: var(--sky-600); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.rail-follow:hover { background: var(--sky-100); }
.rail-company { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; color: inherit; }
.rail-company-text { display: flex; flex-direction: column; }
.rail-company-text strong { font-size: .9rem; }

/* comments */
.comments-card { padding: 1.25rem; margin-top: 1.25rem; }
.comments-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.comment-form { display: flex; gap: .6rem; margin-bottom: 1.25rem; align-items: flex-start; }
.comment-form textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; font-family: var(--sans); resize: vertical; }
.comment-form textarea:focus { outline: 2px solid var(--sky-500); border-color: var(--sky-500); }
.comment-login { display: block; margin-bottom: 1rem; color: var(--sky-600); }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.comment { display: flex; gap: .7rem; }
.comment-body { background: var(--canvas); border-radius: 10px; padding: .7rem .9rem; flex: 1; }
.comment-author { font-weight: 600; color: var(--navy-900); font-size: .9rem; }
.comment-time { font-size: .72rem; color: var(--slate-400); margin-left: .5rem; }
.comment-body p { margin-top: .2rem; font-size: .92rem; color: var(--slate-600); }

/* --------------------------------------------------------- notifications */
.notif-dd { position: relative; }
.notif-dd > summary { list-style: none; }
.notif-dd > summary::-webkit-details-marker { display: none; }
.header-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; text-decoration: none; cursor: pointer; color: var(--navy-700); }
.header-bell:hover { background: var(--line-2); }
.notif-dd[open] > .header-bell { background: var(--line-2); }
.icon-tower { width: 22px; height: 22px; }
.header-bell-badge { position: absolute; top: 1px; right: 1px; margin-left: 0; }
.notif-dd-panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(340px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(10,27,51,.14); overflow: hidden; z-index: 60; }
.notif-dd-head { padding: .8rem 1rem; font-weight: 700; font-size: .9rem; border-bottom: 1px solid var(--line-2); }
.notif-dd-item { display: flex; flex-direction: column; gap: .1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-2); color: inherit; }
.notif-dd-item:hover { background: var(--canvas); }
.notif-dd-item.is-unread { background: #f4f9fe; }
.notif-dd-text { font-size: .88rem; color: var(--ink); line-height: 1.35; }
.notif-dd-item.is-unread .notif-dd-text { font-weight: 600; }
.notif-dd-time { font-size: .66rem; color: var(--slate-400); }
.notif-dd-empty { padding: 1.6rem 1rem; text-align: center; color: var(--slate-400); font-size: .88rem; }
.notif-dd-foot { display: block; padding: .7rem 1rem; text-align: center; font-size: .85rem; font-weight: 600; color: var(--sky-600); }
.notif-dd-foot:hover { background: var(--canvas); }

/* Account dropdown (header, logged in) — CSS-only via <details> */
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }
.user-dd { position: relative; }
.user-dd > summary { list-style: none; cursor: pointer; }
.user-dd > summary::-webkit-details-marker { display: none; }
.user-dd-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .5rem .3rem .3rem;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: border-color .12s, background .12s; }
.user-dd-btn:hover { border-color: var(--sky-500); }
.user-dd[open] .user-dd-btn { border-color: var(--sky-500); background: var(--canvas); }
.user-dd-name { font-size: .9rem; font-weight: 600; color: var(--navy-900); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dd-caret { color: var(--slate-400); flex-shrink: 0; }
.user-dd-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(10,27,51,.14); overflow: hidden; z-index: 60; padding: .3rem; }
.user-dd-item { display: block; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: 8px;
  font-size: .9rem; color: var(--slate-600); background: none; border: 0; cursor: pointer; font-family: var(--sans); }
.user-dd-item:hover { background: var(--canvas); color: var(--navy-900); }
.user-dd-sep { height: 1px; background: var(--line-2); margin: .3rem 0; }
.user-dd-logout { color: var(--status-expired); font-weight: 600; }
.notif-list { padding: 0; overflow: hidden; }
.notif-row { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); color: inherit; }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--canvas); }
.notif-row.is-unread { background: #f4f9fe; }
.notif-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.notif-row.is-unread .notif-dot { background: var(--sky-500); }
.notif-text { flex: 1; font-size: .93rem; color: var(--ink); }
.notif-row.is-unread .notif-text { font-weight: 600; }
.notif-time { font-size: .72rem; color: var(--slate-400); white-space: nowrap; }

/* --------------------------------------------------------- messaging */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: .35rem; font-size: .68rem; font-weight: 700; background: var(--sky-500); color: #fff; border-radius: 999px; }

.convo-list { padding: 0; overflow: hidden; }
.convo-row { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-2); color: inherit; }
.convo-row:last-child { border-bottom: 0; }
.convo-row:hover { background: var(--canvas); }
.convo-row.is-unread { background: #f4f9fe; }
.convo-main { flex: 1; min-width: 0; }
.convo-top { display: flex; justify-content: space-between; gap: .5rem; }
.convo-top strong { font-size: .95rem; color: var(--navy-900); }
.convo-time { font-size: .72rem; color: var(--slate-400); }
.convo-snippet { color: var(--slate-500); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-row.is-unread .convo-snippet { color: var(--navy-900); font-weight: 600; }
.convo-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--sky-500); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; }

.convo-view { padding: 0; display: flex; flex-direction: column; max-height: calc(100vh - 180px); }
.convo-view-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.convo-view-name { font-weight: 700; color: var(--navy-900); }
.convo-thread { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; min-height: 240px; }
.convo-empty { text-align: center; margin: auto; }
.bubble-row { display: flex; }
.bubble-row.is-mine { justify-content: flex-end; }
.bubble { max-width: 75%; background: var(--line-2); color: var(--ink); padding: .6rem .85rem; border-radius: 14px; border-bottom-left-radius: 4px; font-size: .93rem; }
.bubble-row.is-mine .bubble { background: var(--sky-500); color: #fff; border-radius: 14px; border-bottom-right-radius: 4px; }
.bubble-time { display: block; font-size: .64rem; opacity: .6; margin-top: .25rem; }
.convo-composer { display: flex; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line); }
.convo-composer textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; font-family: var(--sans); font-size: .95rem; resize: none; }
.convo-composer textarea:focus { outline: 2px solid var(--sky-500); border-color: var(--sky-500); }

/* --------------------------------------------------------- admin */
.admin-bar { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 40; }
.admin-bar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; height: 60px; padding: 0 1.5rem; }
.admin-bar .brand img { height: 19px; }
.admin-tag { font-size: .64rem; letter-spacing: .12em; background: var(--sky-500); color: #fff; padding: .15rem .45rem; border-radius: 5px; }
.admin-nav { display: flex; gap: 1rem; margin-left: 1rem; }
.admin-nav a { color: #c9d6e6; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.is-active { color: #fff; }
.admin-bar-actions { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.admin-link { background: 0; border: 0; color: var(--slate-400); cursor: pointer; font-size: .85rem; }
.admin-link:hover { color: #fff; }
.admin-main { padding: 2rem 1.5rem 4rem; }
.admin-h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.admin-h2 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin: 1.75rem 0 .9rem; }

/* KPI dashboard */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: .5rem; }
.kpi { padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; min-height: 132px; }
.kpi-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; color: var(--slate-400); }
.kpi-value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); line-height: 1.05; display: flex; align-items: baseline; gap: .35rem; }
.kpi-unit { font-size: .78rem; font-weight: 600; color: var(--slate-400); letter-spacing: 0; }
.kpi-sub { font-size: .76rem; color: var(--slate-500); margin-top: auto; }
.kpi-foot { color: var(--sky-500); margin: .1rem 0; }
.kpi-spark { width: 100%; height: 34px; display: block; }
.kpi-bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin: .15rem 0; }
.kpi-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--sky-500); }
.kpi-accent { background: var(--navy-900); }
.kpi-accent .kpi-label { color: rgba(255,255,255,.6); }
.kpi-accent .kpi-value { color: #fff; }
.kpi-accent .kpi-sub { color: rgba(255,255,255,.7); }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .kpi-grid { grid-template-columns: 1fr; } }

/* Email template editor */
.tpl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tpl-head .admin-h1 { margin-bottom: 0; }
.tpl-edit { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.25rem; align-items: start; }
.tpl-form-col .form-label { margin-top: .9rem; }
.tpl-form-col .form-label:first-child { margin-top: 0; }
.tpl-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.tpl-tab { font-family: var(--sans); font-weight: 600; font-size: .85rem; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--slate-500);
  border-radius: 8px; padding: .45rem .9rem; }
.tpl-tab.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tpl-actions { margin-top: 1.1rem; }
.tpl-test { margin-top: .9rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-2); padding-top: .9rem; }
.tpl-preview-col { position: sticky; top: 76px; }
.tpl-preview-head { font-size: .66rem; letter-spacing: .1em; color: var(--slate-400); margin-bottom: .4rem; }
.tpl-preview { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 12px; background: #eef1f6; }
@media (max-width: 900px) {
  .tpl-edit { grid-template-columns: 1fr; }
  .tpl-preview-col { position: static; }
  .tpl-preview { height: 560px; }
}
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat { padding: 1.2rem; display: flex; flex-direction: column; gap: .3rem; color: inherit; }
.admin-stat.is-alert { border-color: var(--status-expiring); background: var(--status-expiring-bg); }
.admin-note { font-size: .9rem; }
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-tabs a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--slate-600); background: #fff; }
.admin-tabs a.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.admin-table th { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-400); }
.admin-row-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.admin-search { display: flex; gap: .6rem; max-width: 480px; margin-bottom: 1.25rem; }
.admin-search .form-input { flex: 1; }
.admin-subh { font-size: 1.05rem; margin: 1.5rem 0 .8rem; }
.user-st-active { background: var(--status-current-bg); color: var(--status-current); }
.user-st-pending { background: var(--sky-100); color: var(--sky-600); }
.user-st-suspended, .user-st-deleted { background: var(--status-expired-bg); color: var(--status-expired); }
.admin-msgs { display: flex; flex-direction: column; gap: 1rem; }
.admin-msg { padding: 1.1rem 1.25rem; }
.admin-msg.is-handled { opacity: .65; }
.admin-msg-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; flex-wrap: wrap; }
.admin-msg-head a { margin-left: .5rem; }
.admin-msg-subject { display: block; font-weight: 600; margin-top: .2rem; }
.admin-msg-body { color: var(--slate-600); font-size: .95rem; }
.admin-msg-actions { margin-top: .8rem; }

/* --------------------------------------------------------- responsive */
/* Prevent any wide element from causing horizontal scroll.
   `clip` clips like `hidden` but WITHOUT creating a scroll container, so it does
   not break `position: sticky` on the header/filter bars (hidden fallback first). */
html, body { overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; }

@media (max-width: 960px) {
  .profile-cols { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row-4 { grid-template-columns: 1fr 1fr; }
  /* form.talent-layout (0,1,1) outranks the desktop .talent-layout rule that sits later in the file */
  .jobs-layout, form.talent-layout { grid-template-columns: 1fr; }

  /* Filters become a slide-in drawer (CSS-only). Applies to jobs + talent. */
  .filter-open-btn { display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; margin-bottom: 1.1rem; padding: .8rem 1rem; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    font-weight: 600; font-size: .95rem; color: var(--ink); }
  .filter-open-btn svg { width: 17px; height: 17px; }
  .filter-open-btn .fo-count { font-family: var(--mono); font-size: .72rem; line-height: 1;
    background: var(--sky-500); color: #fff; border-radius: 100px; padding: 0 .45rem;
    min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
  /* Child combinator raises specificity above the desktop .talent-filters rule
     that sits later in the file, so the drawer wins at ≤960px regardless of order. */
  .jobs-layout > .jobs-filters, .talent-layout > .talent-filters {
    position: fixed; top: 0; left: 0; z-index: 70;
    width: 87%; max-width: 340px; height: 100dvh; overflow-y: auto;
    margin: 0; border-radius: 0; box-shadow: 0 0 40px rgba(10,27,51,.28);
    transform: translateX(-100%); transition: transform .25s ease; }
  .filter-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(10,27,51,.5);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .filter-close { display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin: -.4rem -.4rem -.4rem 0; border-radius: 8px;
    font-size: 1.2rem; color: var(--slate-500); cursor: pointer; }
  .filter-close:hover { background: var(--line-2); color: var(--ink); }
  .jobs-layout > .filter-toggle-cb:checked ~ .jobs-filters,
  .talent-layout > .filter-toggle-cb:checked ~ .talent-filters { transform: translateX(0); }
  .filter-toggle-cb:checked ~ .filter-scrim { opacity: 1; pointer-events: auto; }

  .admin-cards { grid-template-columns: 1fr 1fr; }
  .feed-grid { grid-template-columns: 220px 1fr; }
  .feed-right { display: none; }
  .reco-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Tablet & phone: collapsible header menu ---- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-collapse {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.5rem; box-shadow: 0 10px 24px rgba(10,27,51,.08);
  }
  .nav-toggle-cb:checked ~ .header-collapse { display: flex; }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { flex-direction: column; gap: .25rem; }
  .main-nav a { padding: .5rem 0; }
  .header-search { max-width: none; order: -1; }
  .header-actions { margin-left: 0; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .9rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .hero-search { flex-direction: column; }
  .hero-search .field + .field { border-left: 0; border-top: 1px solid var(--line); }

  .feed-grid { grid-template-columns: 1fr; }
  .feed-left { display: none; }

  /* Dashboard: sidebar collapses into a hamburger top bar (CSS-only toggle) */
  .dash { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dash-sidebar { display: block; align-self: start; padding: 0; gap: 0; position: sticky; top: 0; z-index: 40; }
  .dash-bar { justify-content: space-between; padding: .7rem 1.1rem; }
  .dash-brand img { height: 18px; }
  .dash-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
                 width: 44px; height: 40px; padding: 0 11px; border-radius: 9px;
                 background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
  .dash-burger span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .dash-menu-cb:checked ~ .dash-bar .dash-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .dash-menu-cb:checked ~ .dash-bar .dash-burger span:nth-child(2) { opacity: 0; }
  .dash-menu-cb:checked ~ .dash-bar .dash-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .dash-panel { display: none; padding: .3rem 1.1rem 1.2rem; gap: 1rem; }
  .dash-menu-cb:checked ~ .dash-panel { display: flex; }
  .dash-me { display: flex; }
  .dash-nav a { padding: .72rem .8rem; font-size: 1rem; }
  .dash-foot { margin-top: .4rem; }
  .dash-main { padding: 1.5rem; }

  .field-row-3, .field-row-4, .hours-grid, .stat-cards { grid-template-columns: 1fr 1fr; }

  /* Admin bar collapses */
  .admin-bar-inner { flex-wrap: wrap; height: auto; padding: .7rem 1rem; gap: .5rem 1rem; }
  .admin-nav { margin-left: 0; order: 3; width: 100%; flex-wrap: wrap; gap: .5rem .9rem;
               border-top: 1px solid rgba(255,255,255,.1); padding-top: .6rem; }
  .admin-bar-actions { margin-left: auto; }
}

/* ---- Small phones ---- */
@media (max-width: 520px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .profile-head { flex-direction: column; }
  .profile-actions { width: 100%; }
  .profile-actions .btn { flex: 1; }
  .field-row, .field-row-3, .field-row-4, .hours-grid, .stat-cards, .type-toggle, .cred-grid { grid-template-columns: 1fr; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .dir-search { flex-direction: column; }
  .company-summary { flex-direction: column; text-align: center; }
  .jobs-searchbar { flex-direction: column; }
  .job-card { flex-wrap: wrap; }
  .job-card-aside { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .job-detail-head { flex-direction: column; }
  .job-detail-apply { text-align: left; align-items: stretch; }
  .job-detail-apply .btn { width: 100%; }
  .job-form-actions { flex-direction: column; }
  .admin-cards { grid-template-columns: 1fr; }
  .reco-grid { grid-template-columns: 1fr; }
  .apply-actions { flex-direction: column-reverse; }
  .apply-actions .btn { width: 100%; }
  .applicant-status { flex-direction: column; align-items: stretch; }
  .applicant-status .form-input { max-width: none; }
  .app-row { flex-wrap: wrap; }
}

/* ==========================================================================
   Design-system shared components (F1) — toggle · tabs · modal · toast · table
   Values matched to Espacio Design System.dc.html
   ========================================================================== */

/* Toggle switch (design §05 forms) — 44×26 track, 20 knob, ON = sky */
.switch { position: relative; display: inline-flex; flex-shrink: 0; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 13px; background: var(--line);
  transition: background .18s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--sky-500); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--sky-500); outline-offset: 2px; }

/* Generic tabs (design pattern §15) — border-bottom sky when active */
.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: .4rem; padding: .9rem .1rem; margin-bottom: -1px;
  font-weight: 600; font-size: .95rem; color: var(--slate-400); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--navy-900); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--sky-500); }

/* Modal + scrim (design §18) — CSS-only via a hidden checkbox toggle */
.modal-toggle { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.modal-scrim { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  background: rgba(10,27,51,.55); padding: 1.5rem; }
.modal-toggle:checked ~ .modal-scrim { display: flex; }
.modal { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(10,27,51,.35);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 1.6rem; position: relative;
  animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal-head h2 { font-size: 1.25rem; }
.modal-close { cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--slate-400); background: none; border: none; }
.modal-close:hover { color: var(--navy-900); }

/* Toast (design §17) — a flash message that slides in top-right and fades */
.toast-wrap { position: fixed; top: 1rem; right: 1rem; z-index: 70; display: flex; flex-direction: column; gap: .5rem; }
.toast { display: flex; align-items: center; gap: .6rem; background: var(--navy-900); color: #fff;
  border-radius: 12px; padding: .8rem 1.1rem; font-size: .9rem; font-weight: 500; box-shadow: 0 12px 30px rgba(10,27,51,.3);
  animation: toastIn .22s ease, toastOut .4s ease 5.2s forwards; max-width: 340px; }
.toast.toast-error { background: var(--status-expired); }
.toast::before { content: "✓"; font-weight: 700; color: #7BE3B8; }
.toast.toast-error::before { content: "!"; color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }

/* Data table (design §16) — candidate rows with match %. Aliases admin-table look. */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); font-size: .92rem; vertical-align: middle; }
.data-table th { font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-400); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--canvas); }
.data-match { font-family: var(--mono); font-weight: 700; }
.data-match.is-high { color: var(--status-current); }
.data-match.is-mid  { color: var(--status-expiring); }
.data-match.is-low  { color: var(--slate-400); }

/* Employer talent search (design isESearch) — 246px filters + candidate grid */
.talent-layout { display: grid; grid-template-columns: 246px 1fr; gap: 1.5rem; align-items: start; }
.talent-filters { position: sticky; top: 82px; padding: 1.25rem; }
.talent-filters .form-input { margin-bottom: 1rem; }
.talent-gate { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
  background: var(--navy-900); color: #fff; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.talent-gate h2 { font-size: 1.1rem; color: #fff; margin-bottom: .2rem; }
.talent-gate .muted { color: rgba(255,255,255,.7); }
.talent-toolbar { display: flex; gap: .7rem; margin-bottom: 1rem; align-items: center; }
.talent-search { position: relative; display: flex; align-items: center; flex: 1; }
.talent-search-icon { position: absolute; left: .8rem; color: var(--slate-400); pointer-events: none; }
.talent-search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 0 2.6rem 0 2.4rem; font-family: var(--sans); font-size: .95rem; color: var(--navy-900); }
.talent-search input:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(22,103,200,.12); }
.talent-kbd { position: absolute; right: .7rem; font-size: .68rem; color: var(--slate-400); background: var(--canvas);
  border: 1px solid var(--line); border-radius: 6px; padding: .1rem .35rem; }
.talent-sort { width: auto; height: 44px; flex-shrink: 0; }
.talent-empty { padding: 2rem 0; }
/* View toggle (grid / list) */
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.view-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 44px; color: var(--slate-400); background: #fff; }
.view-btn + .view-btn { border-left: 1px solid var(--line); }
.view-btn:hover { color: var(--navy-900); }
.view-btn.is-active { background: var(--navy-900); color: #fff; }

/* Shared candidate-card parts */
.talent-card { padding: 1.1rem; position: relative; }
.talent-card-id { display: flex; gap: .8rem; align-items: flex-start; min-width: 0; }
.talent-id-text { min-width: 0; }
.talent-name { font-size: 1.02rem; display: flex; align-items: center; gap: .35rem; }
.talent-headline { color: var(--slate-500); font-size: .84rem; margin-top: .1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.talent-card-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.talent-card-status { display: flex; align-items: center; gap: .4rem; }
.talent-card-score { font-family: var(--mono); font-weight: 700; font-size: .95rem; }
.talent-card-actions { display: flex; gap: .4rem; }
.avail-label { font-size: .8rem; }
.avail-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.avail-dot.is-active { background: var(--status-current); }
.avail-dot.is-open { background: var(--status-expiring); }
.avail-dot.is-off { background: var(--slate-400); }
.talent-grid.is-locked .talent-blur, .talent-list.is-locked .talent-blur { filter: blur(5px); user-select: none; }

/* GRID view — roomy cards; 2 columns by default, 3 only on very wide screens */
.talent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.talent-grid .talent-card { display: flex; flex-direction: column; gap: .55rem; }
.talent-grid .talent-card-score { position: absolute; top: 1.1rem; right: 1.1rem; }
.talent-grid .talent-card-actions { margin-top: auto; padding-top: .1rem; }
.talent-grid .talent-card-actions .btn { flex: 1; }
@media (min-width: 1700px) { .talent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .talent-grid { grid-template-columns: 1fr; } }

/* LIST view — dense aligned rows */
.talent-list { display: flex; flex-direction: column; gap: .55rem; }
.talent-list .talent-card { display: grid; grid-template-columns: minmax(170px,1.5fr) 1.3fr 1.2fr 56px auto;
  align-items: center; gap: 1rem; padding: .8rem 1.1rem; }
.talent-list .talent-headline { -webkit-line-clamp: 1; }
.talent-list .talent-card-actions { flex-shrink: 0; }
/* On mobile the 1-column grid and the list looked near-identical. Make the list
   read as a true list: one white panel of dense, divided rows (no per-card
   shadow, small avatar, chips on a single line, no headline/status). */
@media (max-width: 960px) {
  .talent-list { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
  .talent-list .talent-card { box-shadow: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line-2);
    grid-template-columns: 1fr auto; column-gap: .7rem; row-gap: .35rem; padding: .7rem .85rem; }
  .talent-list .talent-card:last-child { border-bottom: 0; }
  .talent-list .talent-card-id { grid-column: 1; grid-row: 1; align-items: center; }
  .talent-list .talent-card-id .avatar { width: 40px; height: 40px; font-size: .8rem; }
  .talent-list .talent-name { font-size: .95rem; }
  .talent-list .talent-headline { display: none; }
  .talent-list .talent-card-score { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; }
  .talent-list .talent-card-chips { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow: hidden; }
  .talent-list .talent-card-chips .mini-chip { flex-shrink: 0; }
  .talent-list .talent-card-status { display: none; }
  .talent-list .talent-card-actions { grid-column: 1 / -1; grid-row: 3; margin-top: .1rem; }
  .talent-list .talent-card-actions .btn { flex: 1; padding: .4rem; font-size: .8rem; }
}

/* talent-layout collapses + drawers at ≤960px (see the filter-drawer block above) */

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; margin: 2rem 0 .5rem; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--slate-600); font-size: .9rem; font-weight: 600; }
.page-btn:hover { border-color: var(--sky-500); color: var(--navy-900); }
.page-btn.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.page-btn.is-disabled { color: var(--slate-400); background: var(--canvas); pointer-events: none; }
.page-gap { color: var(--slate-400); padding: 0 .2rem; }

/* Card hover lift (design cards §08) — apply where cards are clickable */
.card-hover { transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.card-hover:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* Dashed "add filter" chip (design §15) */
.chip-add { border: 1px dashed var(--line); background: #fff; color: var(--sky-600);
  border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.chip-add:hover { border-color: var(--sky-500); }

/* Credential card — passport treatment (design §09B), navy variant for hero licence */
.cred-card--passport { background: var(--navy-900); color: #fff; border-color: var(--navy-900); position: relative; overflow: hidden; }
.cred-card--passport .cred-label { color: rgba(255,255,255,.55); }
.cred-card--passport .cred-value { color: #fff; }
.cred-card--passport .verified-pill { background: rgba(46,134,224,.28); color: #9CC8F5; }
