/* Mentor Connect: mockup styles for a Group-wide portal (Telkom Business, Openserve, BCX, Corporate Centre). */

/* Group-neutral palette: charcoal and white chrome, warm amber for calls to action, muted steel for interactive
   elements. The business-unit brand colours (Telkom blue, Openserve green, BCX red) only appear on unit tags
   and avatars, so no unit's look dominates. */
:root {
  --ink-strong: #1b2430;
  --charcoal: #141b24;
  --steel: #3b5b7c;
  --steel-600: #4a6b8c;
  --steel-500: #6f93b3;
  --steel-300: #a9c0d6;
  --steel-200: #d3dfea;
  --steel-100: #e9eff5;
  --accent: #f5a623;
  --accent-600: #d98e12;
  --accent-100: #fff3dc;
  --purple: #6b4fbb;
  --amber: #b26a00;
  --amber-bg: #fff4e0;
  --red: #c0392b;

  --ink: #3a4653;
  --muted: #6b7682;
  --line: #d8dde3;
  --line-soft: #e6e9ed;
  --surface: #f4f6f8;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(27, 36, 48, 0.08);
  --shadow: 0 2px 6px rgba(27, 36, 48, 0.06), 0 10px 28px rgba(27, 36, 48, 0.07);
  --shadow-lg: 0 18px 50px rgba(27, 36, 48, 0.24);

  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-strong); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--steel); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--steel-500); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); box-shadow: var(--shadow-sm); }
.topbar-dark { background: var(--charcoal); color: var(--white); }
.topbar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; color: var(--white); }
.brand-logos { display: block; height: 32px; width: auto; }
.brand-sep { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.25); }
.product { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white); line-height: 1.05; letter-spacing: 0.01em; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; color: rgba(255, 255, 255, 0.85); padding: 6px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 500;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.badge-dot { position: absolute; top: 5px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--charcoal); }
.me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); padding: 4px 10px 4px 4px; border-radius: 999px; margin-left: 8px; border: 1px solid rgba(255, 255, 255, 0.18); }
.me:hover { background: rgba(255, 255, 255, 0.1); }
.me .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.me-text { display: flex; flex-direction: column; line-height: 1.15; }
.me-name { font-weight: 700; font-size: 14px; }
.me-role { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); }

.mainnav { border-top: 1px solid var(--line-soft); background: var(--white); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; align-items: stretch; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-role { display: flex; align-items: center; gap: 8px; padding-right: 16px; margin-right: 8px; border-right: 1px solid var(--line-soft); white-space: nowrap; }
.nav-role-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-strong); }
.nav-link {
  display: flex; align-items: center; gap: 8px; padding: 13px 14px 11px; text-decoration: none; white-space: nowrap;
  color: var(--ink); font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent;
}
.nav-link:hover { color: var(--ink-strong); background: var(--surface); }
.nav-link.active { color: var(--ink-strong); border-bottom-color: var(--accent); }
.nav-link .count { background: var(--accent); color: var(--ink-strong); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 0 7px; line-height: 20px; }

.unit-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--u-ink); background: var(--u-tint); padding: 2px 10px 2px 7px; border-radius: 999px; white-space: nowrap; }
.unit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--u); flex: none; }

/* ---------- Buttons, chips, badges ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 20px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--ink-strong); box-shadow: 0 2px 0 var(--accent-600); }
.btn-accent:hover { background: #f7b545; }
.btn-primary { background: var(--ink-strong); color: var(--white); }
.btn-primary:hover { background: var(--charcoal); }
.btn-outline { background: var(--white); color: var(--steel); border-color: var(--line); }
.btn-outline:hover { border-color: var(--steel-500); background: var(--steel-100); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn-text { background: none; border: 0; color: var(--steel); font-weight: 600; padding: 6px 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; }
.btn-text:hover { background: var(--steel-100); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; }
.linklike:hover { color: var(--steel-500); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; transition: border-color 0.12s, background 0.12s;
}
.chip:hover:not([disabled]) { border-color: var(--steel-500); }
.chip.on { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--white); }
.chip.on::before { content: '✓'; font-weight: 700; font-size: 13px; }
.chip[disabled] { opacity: 0.4; cursor: not-allowed; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); }
.tag-match { background: var(--steel-100); border-color: var(--steel-300); color: var(--ink-strong); font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 6px; }
.b-cert { background: #f0e9ff; color: var(--purple); }
.b-open { background: #eefbd8; color: #3d6b00; }
.b-wait { background: var(--amber-bg); color: var(--amber); }
.b-status { background: var(--steel-100); color: var(--steel); }
.b-active { background: var(--steel); color: var(--white); }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--steel); }
.seg button.on { background: var(--white); color: var(--ink-strong); box-shadow: var(--shadow-sm); }
.seg button:hover:not(.on) { background: rgba(255, 255, 255, 0.6); }

/* ---------- Avatars and score rings ---------- */

.avatar {
  flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: var(--white); font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.02em; width: 44px; height: 44px; font-size: 16px;
}
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }

.ring { position: relative; flex: none; display: inline-grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--steel-100); }
.ring-val { fill: none; stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.ring-excellent .ring-val { stroke: var(--accent); }
.ring-strong .ring-val { stroke: var(--steel); }
.ring-good .ring-val { stroke: var(--steel-300); }
.ring-partial .ring-val { stroke: #b6c3cc; }
.ring-num { position: relative; font-family: var(--font-display); font-weight: 800; color: var(--ink-strong); font-size: 18px; line-height: 1; }
.ring-num small { font-size: 0.6em; font-weight: 700; }
.tier { font-size: 13px; font-weight: 700; }
.tier-excellent { color: var(--amber); }
.tier-strong { color: var(--steel); }
.tier-good { color: var(--steel); }
.tier-partial { color: var(--muted); }

/* Score breakdown bars */
.bd { display: grid; gap: 7px; }
.bd-row { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; }
.bd-label { color: var(--ink); white-space: nowrap; }
.bd-label em { font-style: normal; color: var(--muted); font-size: 12px; }
.bd-track { height: 8px; border-radius: 999px; background: var(--steel-100); overflow: hidden; }
.bd-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--steel), var(--steel-500)); }
.bd-val { text-align: right; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }

/* ---------- Generic layout ---------- */

.page { padding-top: 32px; padding-bottom: 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 34px; font-weight: 800; }
.page-head p { margin-top: 6px; max-width: 680px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.card-pad { padding: 24px; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.section-sub { margin-bottom: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.aside-sticky { position: sticky; top: 136px; display: grid; gap: 16px; }

/* ---------- Home ---------- */

.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(900px 420px at 88% -20%, rgba(111, 147, 179, 0.35), transparent 60%),
    linear-gradient(120deg, var(--charcoal) 0%, #233041 60%, #2e4157 100%);
}
.hero-landing .wrap { padding-top: 56px; padding-bottom: 100px; max-width: 820px; text-align: center; }
.hero-landing h1 { margin: 14px auto 14px; }
.hero-landing .lede { margin: 0 auto; max-width: 620px; }
.hero-compact .hero-inner { padding-top: 40px; padding-bottom: 72px; }
.eyebrow-light { color: var(--accent); }
.hero::after {
  content: ''; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(245, 166, 35, 0.14); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.025em; margin: 10px 0 16px; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { font-size: 18px; color: rgba(255, 255, 255, 0.88); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.seg-hero { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
.seg-hero button { color: var(--white); }
.seg-hero button.on { background: var(--white); color: var(--ink-strong); }
.seg-hero button:hover:not(.on) { background: rgba(255, 255, 255, 0.12); }

.hero-visual { position: relative; min-height: 340px; }
.float-card { position: absolute; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; }
.float-main { right: 0; top: 0; width: min(400px, 100%); z-index: 2; }
.float-back { right: 46px; top: 36px; width: min(360px, 90%); height: 300px; opacity: 0.35; transform: rotate(-4deg); z-index: 1; }
.float-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-600); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.float-person { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.float-person h3 { font-size: 18px; }
.float-person p { font-size: 13px; color: var(--muted); }
.float-person .ring { margin-left: auto; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.mini-row:first-of-type { border-top: 0; }
.mini-row .who { min-width: 0; flex: 1; }
.mini-row .who strong { display: block; color: var(--ink-strong); font-size: 14px; }
.mini-row .who span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tiles { position: relative; z-index: 2; margin-top: -48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink-strong); font-weight: 700; font-size: 15px; border: 1px solid var(--line-soft);
  transition: transform 0.12s, box-shadow 0.12s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27, 36, 48, 0.14); }
.icon-circle { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--steel-100); color: var(--steel); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.stat { padding: 20px 22px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--ink-strong); line-height: 1; }
.stat-label { margin-top: 6px; font-size: 14px; }

.home-section { margin-top: 56px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 22px; position: relative; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--ink-strong); background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; }

.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dim { padding: 22px; border-top: 4px solid var(--steel); }
.dim-weight { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--steel); line-height: 1; }
.dim h3 { font-size: 18px; margin: 8px 0 6px; }
.dim p { font-size: 14.5px; }
.dim .tags { margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }

/* Demand vs supply chart */
.demand { padding: 24px; }
.demand-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 92px; align-items: center; gap: 14px; padding: 7px 0; }
.demand-label { font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.demand-bars { display: grid; gap: 3px; }
.demand-bar { height: 9px; border-radius: 999px; }
.demand-bar.d { background: var(--steel); }
.demand-bar.s { background: var(--accent); }
.demand-ratio { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.demand-ratio strong { color: var(--ink-strong); font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; align-items: center; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }

/* ---------- Profile builder and mentor form ---------- */

.form-card { padding: 24px; margin-bottom: 18px; }
.form-card > header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.form-card > header h2 { font-size: 20px; }
.form-card > header p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.form-card .counter { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--steel); background: var(--steel-100); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.step-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--steel-200); color: var(--steel); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-strong); }
.field-full { grid-column: 1 / -1; }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); padding: 10px 12px; font-size: 15px; color: var(--ink);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--steel-500); box-shadow: 0 0 0 3px rgba(59, 91, 124, 0.18); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--steel); flex: none; }
.cluster { margin-bottom: 14px; }
.cluster:last-child { margin-bottom: 0; }
.cluster-label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Style sliders */
.trait { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.trait:first-of-type { border-top: 0; padding-top: 0; }
.trait-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.trait-name { font-weight: 700; color: var(--ink-strong); font-size: 15px; }
.trait-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 2px; gap: 12px; }
.trait-ends span:last-child { text-align: right; }
.trait.is-any .range { opacity: 0.35; }
.any-toggle { font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--line); background: var(--white); color: var(--muted); border-radius: 999px; padding: 3px 10px; }
.any-toggle.on { background: var(--surface); border-color: var(--muted); color: var(--ink-strong); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--steel-200), var(--steel-500)); outline: none; margin: 8px 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--steel); box-shadow: var(--shadow-sm); cursor: grab; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 4px solid var(--steel); cursor: grab; }
.range:focus-visible { outline: 3px solid var(--steel-500); outline-offset: 4px; }

/* Aside panels */
.aside-card { padding: 20px; }
.aside-card h3 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.meter { height: 10px; background: var(--steel-100); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-600), var(--accent)); border-radius: 999px; transition: width 0.3s; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.checklist .ok { color: #4a8000; }
.checklist .no { color: var(--red); }
.checklist .soft { color: var(--amber); }
.checklist li > .ic { margin-top: 2px; }
.notice { font-size: 13.5px; padding: 10px 12px; border-radius: 8px; background: var(--steel-100); color: var(--ink-strong); display: flex; gap: 8px; align-items: flex-start; }
.notice .ic { margin-top: 2px; }
.notice-warn { background: var(--amber-bg); color: #7a4a00; }

/* ---------- Match cards ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 20px; }
.toolbar .select { width: auto; padding: 8px 10px; font-size: 14px; }
.toolbar .check { font-size: 14px; align-items: center; }
.toolbar .check input { margin-top: 0; }
.toolbar .spacer { flex: 1; }
.toolbar-label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mcard { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mcard-head { display: flex; gap: 14px; align-items: flex-start; }
.mcard-id { min-width: 0; flex: 1; }
.mcard-id h3 { font-size: 19px; }
.mcard-id .role { font-size: 14px; margin-top: 2px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; }
.reasons li .ic { color: #4a8000; margin-top: 3px; }
.reasons li.flag .ic { color: var(--amber); }
.mcard-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.mcard-foot .btn { flex: 1; }
.rank { font-family: var(--font-display); font-weight: 800; color: var(--steel-300); font-size: 14px; }
.empty { text-align: center; padding: 48px 24px; }
.empty h3 { margin: 12px 0 6px; }

/* ---------- Match matrix ---------- */

.matrix-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 16px; }
.insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.insight { padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.insight p { font-size: 14px; }
.insight strong { color: var(--ink-strong); }

.matrix-wrap { overflow: auto; max-height: calc(100vh - 210px); min-height: 420px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.matrix th, .matrix td { padding: 0; text-align: center; border-bottom: 1px solid var(--line-soft); }
.matrix thead th { position: sticky; background: var(--white); z-index: 3; }
.matrix thead tr.groups th { top: 0; height: 34px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink-strong); border-left: 2px solid var(--white); text-align: left; padding: 0 10px; white-space: nowrap; }
.matrix thead tr.groups th.g-interests { background: var(--steel-100); }
.matrix thead tr.groups th.g-goals { background: #eefbd8; }
.matrix thead tr.groups th.g-traits { background: #f0e9ff; }
.matrix thead tr.groups th.g-practical { background: #fff4e0; }
.matrix thead tr.groups th.g-total { background: var(--ink-strong); color: var(--white); text-align: center; }
.matrix thead tr.cols th { top: 34px; height: 128px; vertical-align: bottom; border-bottom: 2px solid var(--line); }
.matrix thead tr.you th, .matrix thead tr.you td { top: 162px; background: #fff8e8; border-bottom: 2px solid var(--accent); height: 40px; }
.matrix .corner { position: sticky; left: 0; z-index: 5 !important; text-align: left; }
.matrix thead tr.cols th.corner { vertical-align: bottom; padding: 10px 12px; }
.col-btn { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; background: none; border: 0; padding: 8px 0 6px; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.col-btn:hover { background: var(--surface); color: var(--ink-strong); }
.vlabel { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; line-height: 1; }
.col-mine .col-btn { color: var(--ink-strong); font-weight: 800; }
.col-mine .col-btn .vlabel { border-right: 3px solid var(--steel-500); padding-right: 2px; }
.sort-ind { font-size: 10px; height: 10px; line-height: 10px; color: var(--steel-500); }
.matrix td.cell, .matrix th.cell { width: 40px; min-width: 40px; max-width: 40px; height: 44px; }
.matrix .gstart { border-left: 2px solid var(--line); }
.matrix tbody td.col-mine { background: rgba(59, 91, 124, 0.04); }

.row-head { position: sticky; left: 0; z-index: 2; background: var(--white); text-align: left !important; padding: 6px 12px !important; min-width: 230px; max-width: 230px; border-right: 2px solid var(--line); }
.row-head .row-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.row-head .row-btn > div > strong { display: block; color: var(--ink-strong); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-head .row-btn > div > span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-head .row-btn > div { min-width: 0; }
.matrix tbody tr:hover td, .matrix tbody tr:hover th { background-color: #f5f7f9; }
.matrix tbody tr:hover td.heat { filter: brightness(0.97); }
.matrix tbody tr { cursor: pointer; }
.you-row-head { background: #fff8e8 !important; }

.m-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--steel-200); }
.m-match { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--steel); color: var(--white); }
.m-near { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 2px dashed var(--steel-300); color: var(--steel-600); font-weight: 800; font-size: 13px; }
.m-want { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--ink-strong); }
.m-gap { display: inline-block; width: 14px; height: 2px; background: #f1b3aa; border-radius: 2px; }
.heat { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12px; }
.you-val { font-size: 11.5px; font-weight: 700; color: var(--ink-strong); }
.score-cell { min-width: 84px; padding: 0 10px !important; position: sticky; right: 0; background: var(--white); border-left: 2px solid var(--line); z-index: 1; }
.matrix thead .score-cell { z-index: 4; }
.score-cell .s { font-family: var(--font-display); font-weight: 800; color: var(--ink-strong); font-size: 16px; }
.score-cell .sbar { height: 5px; background: var(--steel-100); border-radius: 999px; margin-top: 3px; overflow: hidden; }
.score-cell .sbar span { display: block; height: 100%; background: var(--steel-500); }
.matrix tfoot td, .matrix tfoot th { position: sticky; bottom: 0; background: var(--surface); border-top: 2px solid var(--line); height: 38px; font-weight: 700; color: var(--ink-strong); font-size: 12.5px; z-index: 2; }
.matrix tfoot .row-head { z-index: 4; background: var(--surface); font-size: 12.5px; }
.matrix tfoot .score-cell { z-index: 3; background: var(--surface); }
.heat-scale { display: inline-flex; border-radius: 4px; overflow: hidden; }
.heat-scale span { width: 18px; height: 14px; }

/* ---------- Drawer ---------- */

.overlay { position: fixed; inset: 0; background: rgba(20, 27, 36, 0.5); z-index: 40; animation: fade 0.18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--white); z-index: 41; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slide 0.22s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--steel-100), var(--white)); }
.drawer-head h2 { font-size: 24px; }
.drawer-head .close { margin-left: auto; flex: none; background: var(--white); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-strong); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 28px; display: grid; gap: 24px; align-content: start; }
.drawer-foot { padding: 16px 24px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; background: var(--white); }
.drawer-foot .btn { flex: 1; }
.drawer h4 { font-size: 15px; margin-bottom: 10px; font-family: var(--font-display); }
.score-block { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.score-block .bd { flex: 1; }
.quals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qual { background: var(--surface); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.qual b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qual span { font-size: 12px; color: var(--muted); }
.cmp { display: grid; gap: 16px; }
.cmp-row .cmp-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.cmp-row .cmp-top b { color: var(--ink-strong); }
.cmp-track { position: relative; height: 8px; background: var(--steel-100); border-radius: 999px; margin: 0 9px; }
.cmp-you, .cmp-them { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.cmp-them { width: 16px; height: 16px; background: var(--steel); box-shadow: 0 0 0 3px var(--white); }
.cmp-you { width: 22px; height: 22px; border: 3px solid var(--accent-600); background: transparent; }
.cmp-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.status-banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--steel-100); color: var(--ink-strong); font-size: 14px; font-weight: 600; }
.success { text-align: center; padding: 24px 8px; display: grid; gap: 12px; justify-items: center; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--ink-strong); display: grid; place-items: center; }
.success h3 { font-size: 24px; }
.next-steps { text-align: left; width: 100%; list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; counter-reset: ns; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; background: var(--surface); border-radius: 10px; padding: 12px 14px; counter-increment: ns; }
.next-steps li::before { content: counter(ns); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--steel); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- My mentorships ---------- */

.mentorship { padding: 0; overflow: hidden; }
.ms-head { display: flex; gap: 16px; align-items: center; padding: 22px 24px; background: linear-gradient(120deg, var(--charcoal), #2e4157); color: var(--white); flex-wrap: wrap; }
.ms-head h2 { color: var(--white); font-size: 22px; }
.ms-head p { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.ms-head .ms-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ms-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ms-col { padding: 22px 24px; border-right: 1px solid var(--line-soft); min-width: 0; }
.ms-col:last-child { border-right: 0; }
.ms-col h3 { font-size: 16px; margin-bottom: 14px; }
.next-session { background: var(--steel-100); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.date-block { flex: none; width: 56px; text-align: center; background: var(--white); border-radius: 10px; padding: 6px 0; box-shadow: var(--shadow-sm); }
.date-block .mo { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--steel-600); }
.date-block .dy { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink-strong); line-height: 1.05; }
.progress-list { display: grid; gap: 12px; }
.progress-item .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { position: relative; padding-left: 22px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--steel-500); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 20px; bottom: -14px; width: 2px; background: var(--steel-100); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: 12.5px; color: var(--muted); }
.timeline .what { font-weight: 700; color: var(--ink-strong); font-size: 14.5px; }
.timeline .notes { font-size: 13.5px; }
.req-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.req-row:first-child { border-top: 0; }
.req-row .who { flex: 1; min-width: 200px; }
.req-row .who strong { color: var(--ink-strong); display: block; }
.req-row .who span { font-size: 13.5px; color: var(--muted); }
.milestones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.milestone { text-align: center; position: relative; padding: 0 8px; }
.milestone::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--steel-200); z-index: 0; }
.milestone:first-child::before { display: none; }
.milestone.done::before, .milestone.now::before { background: var(--steel-500); }
.milestone .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: var(--white); border: 3px solid var(--steel-200); color: var(--steel); }
.milestone.done .dot { background: var(--steel-500); border-color: var(--steel-500); color: var(--white); }
.milestone.now .dot { border-color: var(--accent-600); background: var(--accent); color: var(--ink-strong); }
.milestone strong { display: block; color: var(--ink-strong); font-size: 14px; }
.milestone span { font-size: 12.5px; color: var(--muted); }

/* ---------- Toast and footer ---------- */

#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--ink-strong); color: var(--white); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14.5px; display: flex; gap: 10px; align-items: center; animation: toast 0.25s ease; }
.toast .ic { color: var(--accent); }
@keyframes toast { from { transform: translateY(12px); opacity: 0; } }

.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.72); padding: 28px 0; font-size: 13.5px; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand img { height: 28px; width: auto; opacity: 0.9; }
.site-footer .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-footer button { background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); border-radius: 8px; padding: 7px 12px; font-size: 13px; }
.site-footer button:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
  .ms-body { grid-template-columns: 1fr 1fr; }
  .ms-col:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 88px; }
  .hero-visual { min-height: 0; }
  .float-card { position: relative; right: auto; top: auto; width: 100%; }
  .float-back { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .aside-sticky { position: static; }
  .steps, .dims, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .insights { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: 1fr; }
  .product { display: none; }
  .brand-sep { display: none; }
  .role-cards, .team-grid { grid-template-columns: 1fr; }
  .kick-steps { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .topbar { height: 58px; gap: 10px; }
  .icon-btn .icon-label, .me-text { display: none; }
  .brand-logos { height: 26px; }
  .aside-sticky { top: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 12px; font-size: 14px; gap: 10px; }
  .tile .icon-circle { width: 36px; height: 36px; }
  .steps, .dims, .kick-steps { grid-template-columns: 1fr; }
  .stat-num { font-size: 28px; }
  .kick-head { flex-direction: column; align-items: flex-start; }
  .sigs { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 28px; }
  .fields, .fields-3 { grid-template-columns: 1fr; }
  .bd-row { grid-template-columns: 112px 1fr 28px; }
  .quals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demand-row { grid-template-columns: 1fr 72px; }
  .demand-row .demand-bars { grid-column: 1 / -1; grid-row: 2; }
  .ms-body { grid-template-columns: 1fr; }
  .ms-col { border-right: 0; border-top: 1px solid var(--line-soft); }
  .ms-col:first-child { border-top: 0; }
  .milestones { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .milestone:nth-child(3)::before { display: none; }
  .row-head { min-width: 150px; max-width: 150px; }
  .row-head .avatar { display: none; }
  .matrix-wrap { max-height: 70vh; }
  .score-block { flex-direction: column; align-items: stretch; }
  .score-block .ring { align-self: center; }
  .drawer-body, .drawer-head, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .form-card, .card-pad { padding: 18px; }
}

/* ---------- Additions ---------- */

#view:focus { outline: none; }
.home { padding-bottom: 72px; }
.mini-row-btn { width: 100%; background: none; border: 0; border-top: 1px solid var(--line-soft); text-align: left; border-radius: 0; color: inherit; }
.mini-row-btn:first-of-type { border-top: 0; }
.mini-row-btn:hover .who strong { color: var(--steel-500); text-decoration: underline; }
.done-text { text-decoration: line-through; color: var(--muted); }
.cmp-key-them, .cmp-key-you { display: inline-block; border-radius: 50%; }
.cmp-key-them { width: 12px; height: 12px; background: var(--steel); }
.cmp-key-you { width: 14px; height: 14px; border: 3px solid var(--accent-600); }
.matrix thead td { position: sticky; z-index: 3; }
.glabel { display: block; width: 0; min-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix thead tr.groups th.row-head { background: var(--white); }
.row-head .row-btn .avatar { flex: none; }
/* Keep the hero card in normal flow so the hero grows to fit it. */
.hero-visual { min-height: 0; display: flex; justify-content: flex-end; }
.float-main { position: relative; right: auto; top: auto; }
.float-back { top: 28px; right: 40px; height: calc(100% - 40px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .overlay, .drawer, .toast { animation: none; }
  .ring-val, .meter span, .tile { transition: none; }
}

/* Sticky "You" label must sit above the header cells that scroll beneath it. */
.matrix thead .row-head { z-index: 5; }

@media (max-width: 720px) {
  .row-head { min-width: 118px; max-width: 118px; padding: 6px 8px !important; }
  .row-head .row-btn > div > span { display: none; }
  .score-cell { min-width: 52px; padding: 0 6px !important; }
  .score-cell .s { font-size: 14px; }
  .score-cell .sbar { display: none; }
}

/* ---------- Registration form, pairs and programme team ---------- */

.hero-period { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.8); display: flex; align-items: center; gap: 8px; }
.tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.purpose { padding: 24px; }
.purpose .icon-circle { width: 48px; height: 48px; background: var(--accent-100); color: var(--amber); margin-bottom: 14px; }
.purpose h3 { font-size: 19px; margin-bottom: 8px; }
.purpose p { font-size: 14.5px; }
.consent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.consent .check { font-size: 14px; }
.facts { margin: 14px 0 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.quote { margin: 12px 0 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--ink-strong); font-style: italic; }
.quote cite { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pair-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pair-meta div { background: var(--surface); border-radius: 10px; padding: 8px 10px; text-align: center; }
.pair-meta b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink-strong); }
.pair-meta span { font-size: 11.5px; color: var(--muted); }
.ms-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.reminder-bar { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: #eefbd8; color: #3d6b00; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.reminder-bar.off { background: var(--surface); color: var(--muted); }
.reminder-bar .btn-text { margin-left: auto; }
.card-inset { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line); }
.card-inset .fields { gap: 10px; }
.reminder-settings { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reminder-settings .seg button { padding: 5px 10px; font-size: 13px; }
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.session { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-soft); }
.session.planned { background: var(--steel-100); border-color: var(--steel-200); }
.session.missed { opacity: 0.8; }
.session-date { flex: none; width: 48px; text-align: center; background: var(--white); border-radius: 8px; padding: 4px 0; box-shadow: var(--shadow-sm); }
.session-date .mo { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--steel-600); }
.session-date .dy { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink-strong); line-height: 1.05; }
.session-body { min-width: 0; flex: 1; }
.session-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-strong); }
.session-meta { font-size: 12.5px; color: var(--ink); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.session-notes { margin-top: 8px; font-size: 13.5px; min-height: 0; }
.session-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.session-actions .btn-text { font-size: 13px; }
.rhythm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rhythm-item { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.rhythm-item b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink-strong); line-height: 1.1; }
.rhythm-item span { font-size: 12.5px; color: var(--muted); }
.b-ok { background: #eefbd8; color: #3d6b00; }
.b-risk { background: #fdecea; color: var(--red); }
.count-warn { background: var(--amber) !important; color: var(--white) !important; }
.split-wide { grid-template-columns: minmax(0, 1fr) 380px; }
.table-wrap { overflow-x: auto; }
.pairs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pairs th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 12px 12px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.pairs td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.pair-row { cursor: pointer; }
.pair-row:hover td { background: #f5f7f9; }
.pair-row.open td { background: var(--steel-100); border-bottom-color: transparent; }
.pair-row .chev { color: var(--muted); display: inline-block; transition: transform 0.15s; }
.pair-row.open .chev { transform: rotate(180deg); }
.who-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.who-cell strong { display: block; color: var(--ink-strong); font-size: 14px; white-space: nowrap; }
.who-cell span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pair-detail td { background: #f5f7f9; padding: 16px 20px 20px; }
.pair-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.pair-detail h4 { font-family: var(--font-display); font-size: 14px; margin-bottom: 8px; }
.session-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.session-list .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--steel-500); }
.session-list .dot.missed { background: var(--red); }
.session-list .dot.planned { background: var(--white); border: 2px solid var(--steel-500); }
.assign-list { display: grid; gap: 6px; }
.assign-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line-soft); cursor: pointer; }
.assign-row:hover { border-color: var(--steel-300); }
.assign-row.on { border-color: var(--steel-500); background: var(--steel-100); }
.assign-row.full { opacity: 0.5; cursor: not-allowed; }
.assign-row input { accent-color: var(--steel); }
.assign-row strong { display: block; color: var(--ink-strong); font-size: 14px; }
.assign-row span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .tiles-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .pair-detail-grid { grid-template-columns: 1fr; }
  .reminder-bar { padding: 12px 16px; }
  .pairs th:nth-child(3), .pairs td:nth-child(3), .pairs th:nth-child(5), .pairs td:nth-child(5), .pairs th:nth-child(9), .pairs td:nth-child(9) { display: none; }
}
.split > * { min-width: 0; }
.aside-sticky > * { min-width: 0; }
#assign .select { max-width: 100%; }
.assign-list { min-width: 0; }
.assign-row { min-width: 0; }
.assign-row > div { min-width: 0; flex: 1; }
.assign-row .ring { flex: none; }


/* ---------- Recommended matches (programme team) ---------- */
.recs { display: grid; gap: 18px; }
.rec { overflow: hidden; }
.rec-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.rec-head h3 { font-size: 18px; }
.rec-interests { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 360px; justify-content: flex-end; }
.rec-interests .field-label { margin-right: 4px; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.rec-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px 8px; border-bottom: 1px solid var(--line-soft); }
.rec-table th:first-child { width: 38%; }
.rec-table th.num, .rec-table td.num { text-align: center; }
.rec-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.rec-table .who-cell { min-width: 0; }
.rec-table .who-cell strong, .rec-table .who-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-table .who-cell > div { min-width: 0; }
.rec-row { cursor: pointer; }
.rec-row:hover td { filter: brightness(0.97); }
.rec-row.full .who-cell { opacity: 0.55; }
.rec-row.open td { border-bottom-color: transparent; }
.dim-cell { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; width: 11%; }
.rec-score { font-family: var(--font-display); font-size: 17px; color: var(--ink-strong); }
.rec-act { text-align: right; width: 96px; }
.rec-detail td { background: #f5f7f9; padding: 14px 20px 18px; }
.rec-detail h4 { font-family: var(--font-display); font-size: 14px; margin-bottom: 8px; }
@media (max-width: 720px) {
  .rec-table th:nth-child(n+2):nth-child(-n+5), .rec-table td.dim-cell { display: none; }
  .rec-table th:first-child { width: auto; }
  .rec-interests { justify-content: flex-start; max-width: none; }
}

/* ---------- Landing role cards ---------- */

.role-cards { position: relative; z-index: 2; margin-top: -56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.role-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; text-decoration: none; color: var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.role-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(27, 36, 48, 0.16); }
.role-card .icon-circle { width: 52px; height: 52px; background: var(--accent-100); color: var(--amber); }
.role-card h2 { font-size: 22px; margin-top: 4px; }
.role-card p { font-size: 14.5px; }
.role-card .role-who { font-size: 13px; color: var(--muted); flex: 1; }
.role-card .btn { margin-top: 6px; }
.role-demo { font-size: 12px; color: var(--muted); text-align: center; }
.todo-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-top: 24px; flex-wrap: wrap; font-size: 14.5px; }
.todo-strip > div { flex: 1; min-width: 240px; }
.todo-strip strong { color: var(--ink-strong); }
.notice-accent { background: var(--accent-100); color: #6b4300; }
.b-accent { background: var(--accent-100); color: var(--amber); }
.quote-plain { font-style: normal; font-size: 14px; color: var(--ink); }

/* ---------- Mentor requests ---------- */

.req-card { padding: 20px 22px; display: grid; gap: 16px; margin-bottom: 16px; }
.req-card-head { display: flex; gap: 14px; align-items: flex-start; }
.req-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.req-card h4 { font-family: var(--font-display); font-size: 14px; margin-bottom: 8px; }
.req-card .mcard-foot { justify-content: flex-end; }
.req-card .mcard-foot .btn { flex: 0 0 auto; }

/* ---------- Programme team overview ---------- */

.team-grid { align-items: start; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.team-row:first-of-type { border-top: 0; }
.team-row .who-cell { flex: 1; min-width: 0; }
.team-row .who-cell > span { min-width: 0; }
.team-row .who-cell strong { display: flex; align-items: center; gap: 4px; white-space: normal; }
.team-row .who-cell span span { white-space: normal; }
.team-row:hover strong { color: var(--steel); }
.kick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.kick-list li { display: flex; align-items: center; gap: 8px; }
.kick-list li em { font-style: normal; margin-left: auto; font-size: 12px; color: var(--muted); }
.kick-list li.done .ic { color: #3d6b00; }
.kick-list li.todo .ic { color: var(--amber); }
.kick-list li.booked .ic, .kick-list li.half .ic { color: var(--steel); }

/* ---------- Getting started (kick-off) ---------- */

.kickoff { padding: 22px 24px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--accent-100), var(--white) 70%); }
.kickoff.collapsed { padding: 16px 24px; background: var(--surface); }
.kick-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kick-head > div:first-child { flex: 1; min-width: 240px; }
.kick-head h3 { font-size: 20px; margin: 2px 0 4px; }
.kick-head .eyebrow { color: var(--amber); margin-bottom: 0; }
.kick-dots { display: inline-flex; gap: 6px; }
.kick-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--steel-300); box-sizing: border-box; }
.kick-dots.sm .kick-dot { width: 10px; height: 10px; border-width: 1.5px; }
.kick-dot.done { background: #5aa800; border-color: #5aa800; }
.kick-dot.booked, .kick-dot.half { background: var(--steel); border-color: var(--steel); box-shadow: inset 0 0 0 3px var(--white); }
.kick-dot.todo { border-color: var(--accent); }
.kick-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kick-step { background: var(--white); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.kick-step.is-next { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100), var(--shadow); }
.kick-step.done { opacity: 0.85; }
.kick-step-top { display: flex; gap: 10px; align-items: flex-start; }
.kick-step-top .badge { flex: none; }
.kick-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; background: var(--ink-strong); color: var(--white); }
.kick-step.done .kick-num { background: #5aa800; }
.kick-step.is-next .kick-num { background: var(--accent); color: var(--ink-strong); }
.kick-step h4 { font-family: var(--font-display); font-size: 15.5px; margin: 0; }
.kick-when { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kick-summary { font-size: 13.5px; }
.kick-tips { font-size: 13.5px; }
.kick-tips summary { cursor: pointer; font-weight: 700; color: var(--steel); font-size: 13px; list-style: none; display: flex; align-items: center; gap: 6px; }
.kick-tips summary::before { content: '\25B8'; font-size: 11px; transition: transform 0.15s; }
.kick-tips[open] summary::before { transform: rotate(90deg); }
.kick-tips summary::-webkit-details-marker { display: none; }
.kick-tips ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.kick-tips li { display: flex; gap: 6px; align-items: flex-start; }
.kick-tips li .ic { color: #3d6b00; margin-top: 3px; }
.starters li { display: list-item; font-style: italic; color: var(--ink-strong); margin-left: 16px; list-style: disc; }
.kick-action { margin-top: auto; }
.kick-action .btn-sm { width: 100%; }

/* ---------- Mentoring agreement ---------- */

.ms-foot { padding: 22px 24px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.agreement { padding: 20px 22px; }
.agreement.is-signed { border-color: #c9e4a8; }
.agreement-head { display: flex; gap: 14px; align-items: center; }
.agreement-head h3 { font-size: 18px; }
.agreement.is-signed .icon-circle { background: #eefbd8; color: #3d6b00; }
.agreement-body { margin-top: 18px; }
.agreement-body .textarea { min-height: 0; }
.agreement-body .textarea[readonly] { background: var(--surface); color: var(--ink); }
.sigs { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.sig { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13.5px; flex: 1; min-width: 220px; }
.sig strong { display: block; color: var(--ink-strong); font-size: 14px; }
.sig span { font-size: 12.5px; color: var(--muted); }
.sig.signed { border-color: #c9e4a8; background: #f6fbee; }
.sig.signed .ic { color: #3d6b00; margin-left: auto; }
.sigs .btn { flex: none; }
.objectives { font-size: 14px; line-height: 1.55; }
.card-inset.is-meet { border-color: var(--accent); border-style: solid; background: var(--accent-100); }

/* Breakpoints for the components above (kept last so they win over the base rules). */
@media (max-width: 960px) {
  .role-cards { grid-template-columns: 1fr; margin-top: -40px; }
  .team-grid { grid-template-columns: 1fr; }
  .kick-steps { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kick-steps { grid-template-columns: 1fr; }
  .kick-head { flex-direction: column; align-items: flex-start; }
  .kickoff, .kickoff.collapsed, .ms-foot { padding-left: 16px; padding-right: 16px; }
  .sigs { flex-direction: column; align-items: stretch; }
  .req-card { padding: 16px; }
  .req-card .mcard-foot .btn { flex: 1; }
}
.team-row .who-cell strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row .who-cell strong .ic { vertical-align: -2px; margin: 0 2px; }

/* ---------- Landing: the three purposes front and centre ---------- */
.purposes { position: relative; z-index: 2; margin-top: -56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.purposes .purpose { position: relative; padding: 28px 26px 26px; border-top: 4px solid var(--accent); }
.purposes .purpose h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.015em; }
.purposes .purpose p { font-size: 15px; }
.purpose-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--steel-200); }
.purposes-note { margin-top: 16px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.role-cards { margin-top: 0; }
.role-card h3 { font-size: 21px; margin-top: 4px; }
@media (max-width: 960px) {
  .purposes { grid-template-columns: 1fr; margin-top: -40px; }
  .role-cards { margin-top: 0; }
}

/* ---------- Sign-in page ---------- */
body[data-role='landing'] .site-header { display: none; }
.login { position: relative; min-height: calc(100vh - 92px); background: linear-gradient(120deg, var(--charcoal) 0%, #1f2b3a 55%, #2e4157 100%); color: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.login-art { position: absolute; inset: 0; pointer-events: none; }
.login-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.orb-1 { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(111, 147, 179, 0.7), transparent 70%); }
.orb-2 { width: 420px; height: 420px; left: -140px; bottom: -120px; background: radial-gradient(circle, rgba(245, 166, 35, 0.35), transparent 70%); }
.orb-3 { width: 300px; height: 300px; left: 45%; top: 55%; background: radial-gradient(circle, rgba(0, 168, 45, 0.18), transparent 70%); }
.login-inner { position: relative; z-index: 1; flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); gap: 48px; align-items: center; }
.login-logos { display: block; height: 60px; width: auto; margin-bottom: 36px; }
.login-copy h1 { color: var(--white); font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 14px; }
.login-copy .lede { font-size: 18px; color: rgba(255, 255, 255, 0.85); max-width: 520px; }
.login-card { padding: 28px; color: var(--ink); box-shadow: var(--shadow-lg); }
.login-card h2 { font-size: 24px; margin-bottom: 4px; }
.login-card > .muted { font-size: 14px; margin-bottom: 18px; }
.login-roles { display: grid; gap: 10px; }
.login-role { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color 0.12s, background 0.12s, transform 0.05s; }
.login-role:hover { border-color: var(--accent); background: var(--accent-100); }
.login-role:active { transform: translateY(1px); }
.login-role .icon-circle { width: 40px; height: 40px; }
.login-role-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.login-role-text strong { color: var(--ink-strong); font-size: 15px; }
.login-role-text span { font-size: 12.5px; color: var(--muted); }
.login-role > .ic:last-child { color: var(--steel); }
.login-foot { font-size: 12.5px; margin-top: 16px; text-align: center; }
.login-keywords { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.18); padding: 22px 0 24px; }
.keywords { list-style: none; margin: 8px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keywords li { font-size: 13.5px; font-weight: 600; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 6px 14px; }
.login-period { font-size: 13px; color: rgba(255, 255, 255, 0.65); }
@media (max-width: 960px) {
  .login-inner { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
  .login-logos { height: 44px; margin-bottom: 24px; }
}

/* ---------- Shared space tabs ---------- */
.ms-tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: var(--white); overflow-x: auto; scrollbar-width: none; }
.ms-tabs::-webkit-scrollbar { display: none; }
.ms-tab { display: flex; align-items: center; gap: 7px; padding: 14px 14px 12px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; border-radius: 0; }
.ms-tab:hover { color: var(--ink-strong); background: var(--surface); }
.ms-tab.on { color: var(--ink-strong); border-bottom-color: var(--accent); }
.ms-tab .count { background: var(--accent-100); color: var(--amber); border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 0 7px; line-height: 18px; }
.ms-tab .count-warn { background: var(--amber) !important; color: var(--white) !important; }
.ms-two { grid-template-columns: 1fr 1fr; }
.ms-col-wide { grid-column: 1 / -1; }
.sessions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-panel .kickoff { border-bottom: 0; }
.ms-panel .ms-foot { border-top: 0; }
@media (max-width: 720px) {
  .ms-two, .sessions-grid { grid-template-columns: 1fr; }
  .ms-tabs { padding: 0 8px; }
  .ms-tab { padding: 12px 10px 10px; font-size: 13px; }
}

/* Avatars inside a who-cell keep their own display and colour (the generic span rule was overriding them). */
.who-cell .avatar, .team-row .avatar { display: inline-grid; color: var(--white); white-space: normal; }

/* ---------- Mentor hub ---------- */
.hub-grid { align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hub-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hub-card.is-pinned { border-color: var(--accent); }
.hub-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hub-date { margin-left: auto; font-size: 12.5px; }
.hub-card h3 { font-size: 17.5px; letter-spacing: -0.01em; }
.hub-card p { font-size: 14px; }
.hub-quote { font-style: italic; color: var(--ink-strong); border-left: 3px solid var(--accent); padding-left: 12px; }
.hub-by { font-size: 12.5px; }
.hub-foot { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.b-hub-article { background: var(--steel-100); color: var(--steel); }
.b-hub-resource { background: #eefbd8; color: #3d6b00; }
.b-hub-testimonial { background: var(--accent-100); color: var(--amber); }
.b-hub-event { background: #f0e9ff; color: var(--purple); }
#hub-form .seg { flex-wrap: wrap; }
#hub-form .seg button { padding: 6px 10px; font-size: 13px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Applications: match map ---------- */
.rec.card { overflow: visible; }
.map { display: grid; grid-template-columns: 280px 72px minmax(0, 1fr); align-items: stretch; }
.map-mentee { padding: 22px 22px 22px 24px; border-right: 1px solid var(--line-soft); background: var(--surface); border-radius: var(--radius) 0 0 var(--radius); display: flex; flex-direction: column; }
.map-mentee .avatar { margin: 4px 0 10px; }
.map-mentee h3 { font-size: 19px; }
.map-facts { font-size: 12.5px; color: var(--muted); }
.map-links { width: 100%; height: 100%; min-height: 100%; display: block; align-self: stretch; margin: 22px 0; height: calc(100% - 44px); }
.map-links path { fill: none; stroke-width: 2; }
.map-links .link-strong { stroke: var(--accent); stroke-width: 3.5; }
.map-links .link-good { stroke: var(--steel-500); stroke-width: 2.5; }
.map-links .link-weak { stroke: var(--steel-200); stroke-width: 1.5; stroke-dasharray: 4 4; }
.map-links .link-on { stroke: var(--ink-strong); stroke-width: 4; }
.map-mentors { padding: 22px 22px 22px 0; display: flex; flex-direction: column; }
.map-mentors .eyebrow { margin-bottom: 0; height: 0; overflow: visible; position: relative; top: -14px; }
.map-row { position: relative; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 64px; border-top: 1px solid var(--line-soft); }
.map-row:first-of-type { border-top: 0; }
.map-row.full .map-who, .map-row.full .map-score { opacity: 0.55; }
.map-mentor { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 6px; text-align: left; border-radius: 10px; color: inherit; }
.map-mentor:hover { background: var(--surface); }
.map-row.open .map-mentor { background: var(--accent-100); }
.map-score { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.map-score b { font-family: var(--font-display); font-size: 19px; }
.map-score small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.map-who { flex: 1; min-width: 0; }
.map-who strong { display: block; color: var(--ink-strong); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-who span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-dims { display: inline-flex; gap: 3px; flex: none; }
.map-dims span { width: 34px; height: 24px; display: grid; place-items: center; border-radius: 6px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.map-mentor .chev { color: var(--muted); flex: none; transition: transform 0.15s; }
.map-row.open .chev { transform: rotate(180deg); }
.map-assign { flex: none; }
.map-detail { flex-basis: 100%; padding: 6px 6px 16px; }
@media (max-width: 1100px) { .map-dims { display: none; } }
@media (max-width: 960px) {
  .map { grid-template-columns: 1fr; }
  .map-links { display: none; }
  .map-mentee { border-right: 0; border-bottom: 1px solid var(--line-soft); border-radius: var(--radius) var(--radius) 0 0; }
  .map-mentors { padding: 18px 16px; }
  .map-mentors .eyebrow { position: static; height: auto; margin-bottom: 8px; }
}

/* ---------- Preferences and the programme-team channel ---------- */
.pref-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 20px; }
.pref-strip .field-label { display: inline-flex; align-items: center; gap: 6px; }
.pref-strip .chip.on { background: var(--accent-100); border-color: var(--accent); color: var(--ink-strong); }
.pref-strip .chip.on::before { content: '★'; color: var(--amber); }
.mcard.is-pref { border-color: var(--accent); }
.btn.is-pref { border-color: var(--accent); background: var(--accent-100); color: var(--ink-strong); }
.pref-mark { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--amber); margin-left: 6px; vertical-align: 1px; }
.map-links .link-pref { stroke: var(--amber); stroke-dasharray: none; }
.thread { padding: 20px 22px; }
.msgs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.msg p { white-space: pre-line; }
.msg-who { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.msg.theirs { background: var(--surface); border-bottom-left-radius: 4px; justify-self: start; }
.msg.mine { background: var(--steel-100); border-bottom-right-radius: 4px; justify-self: end; }
.msg-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.msg-form .textarea { min-height: 0; flex: 1; }
.app-status { display: flex; }
@media (max-width: 720px) { .msg { max-width: 92%; } .msg-form { flex-direction: column; align-items: stretch; } }

/* ---------- Home sections: why, quick links; hub testimonials; preference step ---------- */
.purpose-compact { padding: 20px; }
.purpose-compact .icon-circle { width: 40px; height: 40px; margin-bottom: 10px; }
.purpose-compact h3 { font-size: 17px; }
.purpose-compact p { font-size: 14px; }
.why-strip { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); gap: 24px; padding: 24px 26px; background: var(--charcoal); color: var(--white); border: 0; }
.why-strip .eyebrow { color: var(--accent); }
.keywords-dark { margin-top: 6px; }
.keywords-dark li { border-color: rgba(255, 255, 255, 0.25); font-size: 13px; padding: 5px 12px; }
.quick-links { display: grid; gap: 6px; align-content: start; }
.quick-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid rgba(255, 255, 255, 0.14); }
.quick-links a span { flex: 1; }
.quick-links a:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent); }
.hub-testimonial { position: relative; background: var(--charcoal); color: rgba(255, 255, 255, 0.9); border: 0; overflow: hidden; }
.hub-testimonial.is-pinned { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.hub-testimonial .hub-mark { position: absolute; right: 14px; top: -22px; font-family: var(--font-display); font-size: 120px; line-height: 1; color: rgba(245, 166, 35, 0.35); pointer-events: none; }
.hub-testimonial h3 { color: var(--white); font-size: 19px; font-style: italic; letter-spacing: -0.01em; }
.hub-testimonial p { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.hub-testimonial .hub-by { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.hub-testimonial .hub-aud { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.hub-testimonial .btn-text { color: var(--accent); }
.hub-testimonial .b-hub-testimonial { background: rgba(245, 166, 35, 0.18); color: var(--accent); }
.hub-testimonial .b-accent { background: var(--accent); color: var(--ink-strong); }
.pref-list { display: grid; gap: 8px; }
.pref-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-soft); }
.pref-row.on { border-color: var(--accent); background: var(--accent-100); }
.pref-row .who { flex: 1; min-width: 0; }
.pref-row .who strong { display: block; color: var(--ink-strong); font-size: 14.5px; }
.pref-row .who span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pref-row .btn { flex: none; }
@media (max-width: 960px) { .why-strip { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .pref-row { flex-wrap: wrap; } .pref-row .btn { width: 100%; } }
