/* ============================================================
   Recruiting — profile + board redesign
   A modern recruiting-service look (247/On3-grade) built on the
   Baseline tokens: a dark gradient prospect hero, rating cards with
   prominent star + composite grades, a Crystal-Ball-style prediction
   panel, and crest-rich, mobile-first board rows.
   ============================================================ */

/* -------- shared star line -------- */
.rc-stars { display: inline-flex; gap: 1px; line-height: 1; font-size: 15px; letter-spacing: 0; }
.rc-stars .rc-star { color: var(--gray-300); }
.rc-stars .rc-star.on { color: #e8a317; text-shadow: 0 1px 0 rgba(0,0,0,.06); }
.rc-stars.lg { font-size: 19px; }
.rc-stars.sm { font-size: 12px; }
.rc-stars.on-dark .rc-star { color: rgba(255,255,255,.26); }
.rc-stars.on-dark .rc-star.on { color: #ffc94d; text-shadow: none; }

/* ============================================================ Prospect hero */
.rc-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; margin: 4px 0 16px;
  color: #fff;
  background:
    radial-gradient(circle at 88% -10%, rgba(77,190,122,.34), transparent 42%),
    linear-gradient(135deg, #08201a 0%, #0e3526 52%, #122b40 100%);
  box-shadow: 0 18px 42px rgba(5,16,25,.20);
}
.rc-hero-top { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.rc-avatar {
  flex: none; width: 76px; height: 76px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 26px; letter-spacing: -.02em;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.22); color: #fff; overflow: hidden;
}
.rc-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
.rc-hero-id { min-width: 0; flex: 1; }
.rc-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #9ff0bd;
}
.rc-hero-name {
  margin: 5px 0 6px; font-family: var(--font-display, inherit);
  font-size: clamp(24px, 4.4vw, 38px); line-height: 1.02; letter-spacing: -.025em; font-weight: 800;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rc-hero-name .player-flag { font-size: .7em; }
.rc-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: rgba(255,255,255,.82); }
.rc-hero-meta b { color: #fff; font-weight: 700; }
.rc-hero-stars { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rc-hero-tier {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
.rc-hero-side { flex: none; text-align: right; }
.rc-hero-str { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.rc-hero-str-k { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.rc-hero-str-sub { font-size: 11.5px; color: rgba(255,255,255,.66); margin-top: 3px; }

/* status banner inside the hero */
.rc-hero-banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 24px;
  font-size: 13.5px; background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,255,255,.10);
}
.rc-hero-banner.signed { background: rgba(31,158,61,.30); }
.rc-hero-banner a { color: #aef0c4; font-weight: 700; }
.rc-hero-banner .rc-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9e3d; color: #fff; font-size: 13px; font-weight: 800;
}

/* ============================================================ Rating cards */
.rc-ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.rc-ratecard {
  border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-card);
  padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.rc-ratecard.primary { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 6px 18px rgba(31,122,77,.10); }
.rc-rate-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-rate-svc { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.rc-rate-svc .dot { color: var(--brand); }
.rc-rate-info { font-size: 11px; color: var(--text-faint); }
.rc-rate-body { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 12px; }
.rc-rate-grade { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.rc-rate-grade.composite { font-size: 30px; color: var(--stat-power); }
.rc-rate-stars { display: flex; flex-direction: column; gap: 4px; }
.rc-rate-tier { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
/* rank trio */
.rc-rankrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.rc-rankcell { background: var(--surface-card); padding: 8px 6px; text-align: center; }
.rc-rankcell .k { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.rc-rankcell .v { font-size: 18px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; margin-top: 2px; }
.rc-rankcell .v.muted { color: var(--text-faint); font-weight: 600; }
.rc-rankcell a { color: var(--text-link); text-decoration: none; }

/* ============================================================ Crystal ball */
.rc-cball {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-card);
  padding: 16px 18px; margin-bottom: 16px;
  background-image: radial-gradient(circle at 12% 0%, var(--green-50), transparent 60%);
}
.rc-cball-crest { flex: none; }
.rc-cball-crest .bl-crest { width: 52px; height: 52px; font-size: 15px; }
.rc-cball-main { min-width: 0; }
.rc-cball-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); }
.rc-cball-school { font-size: 20px; font-weight: 800; color: var(--text-primary); letter-spacing: -.01em; margin: 2px 0 5px; }
.rc-cball-school a { color: inherit; text-decoration: none; }
.rc-cball-bar { height: 8px; border-radius: 999px; background: var(--gray-200); overflow: hidden; max-width: 320px; }
.rc-cball-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--green-500)); }
.rc-cball-meta { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.rc-cball-side { flex: none; text-align: right; }
.rc-cball-pct { font-size: 34px; font-weight: 900; line-height: 1; color: var(--brand-strong); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rc-conf { display: inline-block; margin-top: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.rc-conf.HIGH { background: var(--tint-win-bg); color: var(--tint-win-fg); }
.rc-conf.MED { background: var(--tint-even-bg); color: var(--tint-even-fg); }
.rc-conf.LOW { background: var(--gray-150); color: var(--text-muted); }
.rc-cball.empty { background-image: none; color: var(--text-muted); display: block; font-size: 13px; }

/* ============================================================ Board (list) */
.rc-board { border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; background: var(--surface-card); }
.rc-board-head, .rc-prow {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.6fr) minmax(90px, 1fr) 116px 64px 70px;
  align-items: center; gap: 10px; padding: 10px 14px;
}
.rc-board-head {
  background: var(--surface-th); border-bottom: 1px solid var(--border-subtle);
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
}
.rc-board-head .num, .rc-prow .num { text-align: center; }
.rc-prow { border-bottom: 1px solid var(--border-subtle); }
.rc-prow:last-child { border-bottom: 0; }
.rc-prow:hover { background: var(--green-50); }
.rc-prk { font-weight: 800; font-size: 16px; color: var(--text-secondary); text-align: center; font-variant-numeric: tabular-nums; }
.rc-prk.t1 { color: var(--rank-gold); }
.rc-prk.t2 { color: var(--rank-bronze); }
.rc-pident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rc-pavatar {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--brand);
}
.rc-pname { min-width: 0; }
.rc-pname a { font-size: 14.5px; font-weight: 700; color: var(--text-primary); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rc-pname a:hover { color: var(--brand-strong); }
.rc-pname .sub { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-phome { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-prating { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rc-prating .g { font-size: 14px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.rc-pstr { text-align: center; font-weight: 800; color: var(--stat-power); font-variant-numeric: tabular-nums; }
.rc-pcommit { text-align: center; }
.rc-pcommit .bl-crest { width: 26px; height: 26px; font-size: 10px; }
.rc-pcommit .none { color: var(--text-faint); }

/* ============================================================ Analytics Bureau */
.ib-hero {
  position: relative; overflow: hidden; border-radius: 18px; margin: 4px 0 16px; padding: 22px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% -20%, rgba(91,140,255,.30), transparent 46%),
    linear-gradient(135deg, #0a1726 0%, #0f2236 55%, #102a22 100%);
  box-shadow: 0 18px 42px rgba(5,16,25,.22);
}
.ib-hero .rc-eyebrow { color: #8fd0ff; }
.ib-hero h1 { margin: 6px 0 6px; font-size: clamp(24px,4vw,34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.03; }
.ib-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,.78); font-size: 13.5px; line-height: 1.55; }
.ib-godmode { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #aef0c4; padding: 4px 10px; border-radius: 999px;
  background: rgba(86,242,138,.14); border: 1px solid rgba(86,242,138,.3); }
.ib-godmode .dot { width: 8px; height: 8px; border-radius: 50%; background: #56f28a; box-shadow: 0 0 0 4px rgba(86,242,138,.18); }

.ib-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 16px; }
.ib-kpi { border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-card); padding: 14px 16px; }
.ib-kpi .k { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.ib-kpi .v { font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: var(--text-primary); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ib-kpi.flag .v { color: #c0392b; }

/* gap meter: talent vs placement */
.ib-gap { display: inline-flex; align-items: center; gap: 6px; }
.ib-gapbar { position: relative; width: 96px; height: 7px; border-radius: 999px; background: var(--gray-200); overflow: hidden; }
.ib-gapbar > .talent { position: absolute; left: 0; top: 0; height: 100%; background: var(--stat-power); border-radius: 999px; }
.ib-gapbar > .level { position: absolute; top: -2px; width: 2px; height: 11px; background: var(--text-primary); }
.ib-gapval { font-weight: 800; font-variant-numeric: tabular-nums; color: #c0392b; font-size: 12.5px; }

.ib-up { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #1f9e3d; }
.ib-tag { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--green-50); color: var(--brand-strong); }
.ib-tag.up { background: var(--stat-power-bg); color: var(--stat-power); }
.ib-divchip { font-size: 10px; font-weight: 800; letter-spacing: .03em; padding: 1px 6px; border-radius: 5px;
  background: var(--gray-150); color: var(--text-secondary); }

/* ============================================================ Star spread */
/* The 5★→1★ tier breakdown a class actually signed. Each chip is a star count
   in that tier's colour; empty tiers fade so the shape of the class reads at a
   glance (a powerhouse leans red/blue, a developmental program leans grey). */
.rc-spread { display: inline-flex; gap: 3px; align-items: center; }
.rc-spread .tier {
  display: inline-flex; align-items: center; gap: 2px; min-width: 30px; justify-content: center;
  padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1.3;
}
.rc-spread .tier .s { font-size: 9px; opacity: .85; }
.rc-spread .tier.t5 { background: #c0392b; }
.rc-spread .tier.t4 { background: #3071b9; }
.rc-spread .tier.t3 { background: #2faa55; }
.rc-spread .tier.t2 { background: #7a8590; }
.rc-spread .tier.t1 { background: #9098a1; }
.rc-spread .tier.zero { background: var(--gray-150); color: var(--text-faint); }
.rc-spread.sm .tier { min-width: 24px; padding: 1px 4px; font-size: 10px; }

@media (max-width: 760px) {
  .rc-board-head { display: none; }
  .rc-prow {
    grid-template-columns: 34px 1fr auto; grid-template-areas: "rk id rt";
    row-gap: 4px; padding: 11px 12px;
  }
  .rc-prk { grid-area: rk; font-size: 14px; }
  .rc-pident { grid-area: id; }
  .rc-prating { grid-area: rt; align-items: flex-end; }
  .rc-phome, .rc-pstr, .rc-pcommit { display: none; }
  .rc-hero-top { gap: 13px; padding: 18px 16px; }
  .rc-avatar { width: 60px; height: 60px; font-size: 21px; }
  .rc-hero-side { display: none; }
  .rc-cball { grid-template-columns: auto 1fr; }
  .rc-cball-side { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 12px; }
}
