/* =========================================================================
   School Blueprint — candidate experience design system (vanilla CSS port
   of the Tailwind/shadcn theme used by the Marketplace app).
   Scoped to the candidate area; load only from templates/candidate/_base.html.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --navy: #1B4F8A;
  --navy-hover: #163f6f;
  --amber: #F5B544;
  --amber-soft: #FBE3A8;

  /* Neutrals (from the shadcn slate token set) */
  --bg: #ffffff;
  --fg: #0f1b2d;             /* near-black slate for body + names */
  --heading: #1B4F8A;        /* navy for section/hero headings */
  --muted: #64748b;          /* secondary text */
  --muted-2: #8a97a8;        /* eyebrow / faint */
  --surface: #f8fafc;        /* muted surface */
  --border: #e6eaf0;         /* hairline borders */
  --card: #ffffff;

  /* Chips (light navy tint) */
  --chip-bg: rgba(27, 79, 138, 0.06);
  --chip-border: rgba(27, 79, 138, 0.16);
  --chip-fg: #1B4F8A;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 27, 45, 0.04);
  --maxw: 1180px;
}

/* ---- base ---- */
.cand { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        color: var(--fg); background: var(--bg); line-height: 1.5; margin: 0; -webkit-font-smoothing: antialiased; }
.cand * { box-sizing: border-box; }
.cand a { color: var(--navy); text-decoration: none; }
.cand a:hover { text-decoration: underline; }
.cand-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- top nav ---- */
.cand-nav { background: #fff; border-bottom: 1px solid var(--border); }
.cand-nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.cand-brand { display: flex; align-items: center; gap: 10px; }
.cand-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff;
             display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.cand-wordmark { color: var(--navy); font-weight: 700; font-size: 17px; }
.cand-navlinks { display: flex; align-items: center; gap: 26px; }
.cand-navlinks a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.cand-navlinks a:hover { color: var(--fg); text-decoration: none; }
.cand-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
               display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       font-weight: 600; font-size: 14.5px; padding: 11px 20px; border-radius: var(--radius);
       border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
/* Prefixed with .cand so these beat the .cand a colour rule when a button
   class is used on an <a> tag — otherwise anchor buttons get navy text on a
   navy background (invisible until hover). */
.cand .btn-primary { background: var(--navy); color: #fff; }
.cand .btn-primary:hover { background: var(--navy-hover); text-decoration: none; color: #fff; }
.cand .btn-secondary { background: #fff; color: var(--fg); border-color: var(--border); }
.cand .btn-secondary:hover { background: var(--surface); text-decoration: none; color: var(--fg); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---- eyebrow + headings ---- */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700; color: var(--navy); }
.eyebrow-muted { color: var(--muted-2); }
.cand h1 { color: var(--heading); font-weight: 800; letter-spacing: -0.02em; font-size: 46px; line-height: 1.08; margin: 0 0 16px; }
.cand h2 { color: var(--heading); font-weight: 700; font-size: 26px; margin: 0 0 18px; }
.cand h3 { color: var(--fg); font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 17px; max-width: 620px; }
.name-xl { color: var(--fg); font-weight: 800; font-size: 34px; letter-spacing: -0.01em; }

/* ---- hero ---- */
.hero { background: linear-gradient(180deg, #eef2f8 0%, #f7f9fc 60%, #ffffff 100%); border-bottom: 1px solid var(--border); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 84px; }
.pill-amber { display: inline-block; background: var(--amber-soft); color: #7a5310;
              font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---- cards ---- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card); padding: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card-link { color: var(--navy); font-weight: 600; font-size: 14px; }

/* numbered feature tile */
.num-tile { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
            font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.num-navy { background: var(--navy); color: #fff; }
.num-amber { background: var(--amber); color: #4a3208; }

/* ---- chips ---- */
.chip { display: inline-block; background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--chip-fg);
        font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: var(--radius-pill); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-muted { background: var(--surface); border-color: var(--border); color: var(--muted); }

/* filter chips (clickable) — toggle data-active instead of inline styles */
.cand .chip[data-active] { cursor: pointer; }
.cand .chip[data-active]:hover { border-color: var(--chip-border); background: rgba(27, 79, 138, 0.10); }
.cand .chip[data-active="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* match bands reuse chips */
.band-strong { background: rgba(16,144,91,.10); border-color: rgba(16,144,91,.25); color: #0c7a4d; }
.band-solid  { background: var(--chip-bg); border-color: var(--chip-border); color: var(--navy); }
.band-stretch{ background: var(--amber-soft); border-color: rgba(245,181,68,.45); color: #7a5310; }

/* ---- label / value detail rows ---- */
.detail-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.detail-row:first-child { border-top: 0; }
.detail-label { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.detail-value { color: var(--fg); font-size: 15px; }
.detail-value .unset { color: var(--muted-2); font-style: italic; }

/* ---- search / controls bar ---- */
.search-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.input, .select { width: 100%; font: inherit; font-size: 14.5px; color: var(--fg); background: #fff;
                  border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; }
.input:focus, .select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,79,138,.12); }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.field { margin-bottom: 16px; }

/* ---- section spacing + footer ---- */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.cand-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; padding: 26px 0; margin-top: 48px; }

/* avatar circle (profile) */
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: #fff;
             display: grid; place-items: center; font-weight: 700; font-size: 26px; }

@media (max-width: 720px) {
  .cand h1 { font-size: 34px; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; }
  .cand-navlinks { gap: 16px; }
}
