/* ============================================================
   Claim Flow — app chrome + brand tokens
   Reimagined Health design system (deep-blue trinity)
   ============================================================ */

:root {
  /* ─ Brand ─ */
  --rh-dark-blue:   #003357;
  --rh-medium-blue: #0369AD;
  --rh-light-blue:  #26A8E0;
  --rh-mauve:       #9D8CA1;
  --rh-gold:        #F6AE2D;

  /* ─ Neutrals ─ */
  --white:     #FFFFFF;
  --off-white: #F7F9FB;
  --canvas:    #EEF1F5;
  --border:    #E3E9F0;
  --border-2:  #D5DEE8;
  --text-1:    #003357;   /* primary text */
  --text-2:    #3A4A5C;   /* body */
  --text-3:    #6B7A8D;   /* caption / secondary */
  --text-4:    #93A1B0;   /* faint */

  /* ─ Semantic (oklch-tuned to sit with the blues) ─ */
  --ok:        #1F9D74;
  --ok-bg:     #E6F5EF;
  --ok-ink:    #0C6049;
  --warn:      #C98A12;
  --warn-bg:   #FCF2DD;
  --warn-ink:  #855600;
  --danger:    #D14B43;
  --danger-bg: #FBEAE8;
  --danger-ink:#962A24;
  --info:      #0369AD;
  --info-bg:   #E5F0F8;
  --hold:      #8C7E92;
  --hold-bg:   #EFEBF1;

  /* ─ Sidebar ─ */
  --nav-bg:    #022A47;
  --nav-bg-2:  #00233D;
  --nav-hover: rgba(255,255,255,0.07);
  --nav-active:#0369AD;

  /* ─ Type ─ */
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ─ Radii ─ */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

  /* ─ Shadows (dark-blue tinted) ─ */
  --shadow-1: 0 1px 2px rgba(0,51,87,0.06);
  --shadow-2: 0 2px 8px rgba(0,51,87,0.07);
  --shadow-3: 0 8px 24px rgba(0,51,87,0.10);
  --shadow-4: 0 16px 48px rgba(0,51,87,0.16);

  /* ─ Motion ─ */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 120ms; --t: 200ms; --t-slow: 320ms;

  --sidebar-w: 232px;
  --topbar-h: 60px;
}

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

html, body {
  font-family: var(--font-body);
  color: var(--text-2);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5 { font-family: var(--font-display); color: var(--text-1); line-height: 1.2; font-weight: 600; }

a { color: var(--rh-medium-blue); text-decoration: none; }

::selection { background: rgba(38,168,224,0.25); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C7D2DE; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #AEBCCB; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ─────────────── App layout ─────────────── */
#root { height: 100vh; }
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: var(--topbar-h) 1fr; grid-template-areas: "brand main" "nav main"; height: 100vh; overflow: hidden; }

/* ─────────────── Brand (top-left header cell) ─────────────── */
.app-brand {
  grid-area: brand; background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; padding: 0 14px; overflow: visible;
  position: relative; z-index: 6; white-space: nowrap;
}
.app-brand img { height: 26px; width: auto; }
.app-brand .brand-sep { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.app-brand .brand-lockup { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.app-brand .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -.1px; color: var(--rh-dark-blue); white-space: nowrap; }
.app-brand .brand-sub { font-size: 10px; font-weight: 600; letter-spacing: .3px; color: var(--rh-mauve); white-space: nowrap; }

/* ─────────────── Sidebar ─────────────── */
.sidebar {
  grid-area: nav; background: var(--rh-dark-blue);
  color: #fff; display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-brand {
  display: none;
}

.nav-scroll { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.nav-group-label {
  font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255,255,255,0.42); padding: 16px 12px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-md);
  color: rgba(255,255,255,0.74); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast); position: relative; user-select: none;
}
.nav-item:hover { background: var(--nav-hover); color: #fff; }
.nav-item.active { background: #EAF1F7; color: var(--rh-dark-blue); font-weight: 600; box-shadow: var(--shadow-2); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--rh-gold);
}
.nav-item .ni-icon { width: 17px; height: 17px; flex-shrink: 0; opacity: .92; }
.nav-item.active .ni-icon { opacity: 1; color: var(--rh-dark-blue); }
.nav-item .ni-count {
  margin-left: auto; font-family: var(--font-display); font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.14); color: #fff; padding: 1px 8px; border-radius: var(--r-pill); min-width: 22px; text-align: center;
}
.nav-item.active .ni-count { background: rgba(0,51,87,0.10); color: var(--rh-dark-blue); }
.nav-item .ni-count.alert { background: var(--rh-gold); color: #4a3000; }

.sidebar-foot { padding: 14px; }
.sidebar-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-lg); padding: 13px; }
.sidebar-card .live-dot { animation: pulse 2.4s infinite; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--rh-medium-blue); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 12px; flex-shrink: 0; }
.sidebar-foot .who { font-size: 12.5px; line-height: 1.3; }
.sidebar-foot .who b { color: #fff; font-weight: 600; display: block; font-family: var(--font-display); }
.sidebar-foot .who span { color: rgba(255,255,255,0.5); font-size: 11px; }

/* ─────────────── Main ─────────────── */
.main { grid-area: main; display: flex; flex-direction: column; overflow: hidden; background: var(--canvas); }
.topbar {
  height: var(--topbar-h); flex-shrink: 0; background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 26px 0 64px; z-index: 5;
}
.topbar h1 { font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.topbar .crumb { color: var(--text-3); font-size: 12.5px; font-family: var(--font-display); font-weight: 500; }
.topbar .crumb-link { text-decoration: none; cursor: pointer; }
.topbar .crumb-link:hover { color: var(--rh-medium-blue); text-decoration: underline; }
.topbar-spacer { flex: 1; }
.topbar .pill-clock { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.topbar .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31,157,116,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(31,157,116,.45)} 70%{box-shadow:0 0 0 7px rgba(31,157,116,0)} 100%{box-shadow:0 0 0 0 rgba(31,157,116,0)} }

.searchbox {
  display: flex; align-items: center; gap: 8px; background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 7px 12px; width: 280px; color: var(--text-3); font-size: 13px;
}
.searchbox input { border: none; background: none; outline: none; flex: 1; font-family: var(--font-body); font-size: 13px; color: var(--text-2); }

/* topbar right cluster — notification bell + org profile pill */
.topbar { gap: 14px; }
.topbar-bell {
  position: relative; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--rh-dark-blue); flex-shrink: 0; transition: background var(--t), border-color var(--t);
}
.topbar-bell:hover { background: var(--off-white); border-color: var(--border-2); }
.topbar-bell-badge {
  position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  font-family: var(--font-display); min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; border: 2px solid var(--white); padding: 0 3px;
}
.topbar-profile {
  display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 12px; border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; flex-shrink: 0; transition: border-color var(--t), box-shadow var(--t);
}
.topbar-profile:hover { border-color: var(--border-2); box-shadow: var(--shadow-1); }
.topbar-profile-avatar {
  width: 32px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, var(--rh-dark-blue), var(--rh-medium-blue), var(--rh-light-blue));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.content { flex: 1; overflow-y: auto; overflow-x: hidden; }
.page { padding: 26px 30px 60px; max-width: 1440px; margin: 0 auto; }
.page-wide { max-width: 1640px; }

/* ── Lesson page with a subtle, collapsible course-outline rail ── */
.lesson-wrap { display: flex; align-items: flex-start; gap: 32px; max-width: 1340px; margin: 0 auto; padding: 26px 30px 60px; }
.lesson-page { flex: 1; min-width: 0; max-width: 960px; }
.lesson-outline { position: sticky; top: 22px; flex-shrink: 0; }
.lesson-outline.open { width: 246px; }
.lesson-outline.closed { width: 30px; }
.outline-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.outline-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
    border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text-3); cursor: pointer;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.outline-toggle:hover { background: var(--off-white); color: var(--rh-dark-blue); }
.outline-reopen { margin-left: auto; }
.outline-progress { margin-bottom: 16px; }
.outline-nav { display: flex; flex-direction: column; }
.outline-module { font-family: var(--font-display); font-weight: 600; font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-3); margin: 14px 0 4px; }
.outline-module:first-child { margin-top: 0; }
.outline-lesson { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; text-decoration: none;
    color: var(--text-2); font-size: 12.5px; line-height: 1.35; transition: background var(--t-fast) var(--ease); }
.outline-lesson:hover { background: var(--off-white); }
.outline-lesson.current { background: #EAF1F7; color: var(--rh-dark-blue); font-weight: 600; }
.outline-lesson-icon { font-size: 15px !important; flex-shrink: 0; }
.outline-lesson span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .lesson-outline { display: none; } }

/* ─────────────── Reusable bits ─────────────── */
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--rh-medium-blue); }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .sub { color: var(--text-3); font-size: 12.5px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 500;
  font-size: 13px; padding: 8px 15px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer;
  transition: all var(--t-fast) var(--ease); white-space: nowrap; line-height: 1;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--rh-medium-blue); color: #fff; }
.btn-primary:hover { background: var(--rh-dark-blue); }
.btn-dark { background: var(--rh-dark-blue); color: #fff; }
.btn-dark:hover { background: #00223C; }
.btn-outline { background: var(--white); border-color: var(--border-2); color: var(--text-1); }
.btn-outline:hover { border-color: var(--rh-medium-blue); color: var(--rh-medium-blue); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--off-white); }
.btn-gold { background: var(--rh-gold); color: #4a3000; }
.btn-gold:hover { filter: brightness(.96); }
.btn-danger { background: var(--white); border-color: var(--danger); color: var(--danger-ink); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600;
  font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill); line-height: 1.5; letter-spacing: .2px; white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok     { background: var(--ok-bg); color: var(--ok-ink); }
.pill-warn   { background: var(--warn-bg); color: var(--warn-ink); }
.pill-danger { background: var(--danger-bg); color: var(--danger-ink); }
.pill-info   { background: var(--info-bg); color: var(--info); }
.pill-hold   { background: var(--hold-bg); color: var(--hold); }
.pill-neutral{ background: var(--off-white); color: var(--text-3); border: 1px solid var(--border); }
.pill-gold   { background: #FCF0D6; color: #855600; }

.tag {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  padding: 2px 7px; border-radius: var(--r-xs); background: var(--off-white); border: 1px solid var(--border); color: var(--text-2);
}

.kbd { font-family: var(--font-mono); font-size: 11px; background: var(--off-white); border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: var(--r-xs); padding: 1px 6px; color: var(--text-3); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .4px;
  text-transform: uppercase; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--white);
}
.tbl tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.tbl tbody tr { transition: background var(--t-fast); }
.tbl tbody tr:hover { background: var(--off-white); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl .r-strong { color: var(--text-1); font-weight: 600; font-family: var(--font-display); }
.tbl .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* segmented control */
.seg { display: inline-flex; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.seg button {
  font-family: var(--font-display); font-weight: 500; font-size: 12.5px; padding: 6px 14px; border: none; background: none;
  border-radius: var(--r-sm); cursor: pointer; color: var(--text-3); transition: all var(--t-fast); white-space: nowrap;
}
.seg button:hover { color: var(--text-1); }
.seg button.on { background: var(--white); color: var(--rh-dark-blue); box-shadow: var(--shadow-1); }

/* inputs */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 11.5px; color: var(--text-3); letter-spacing: .2px; }
.input, select.input, textarea.input {
  font-family: var(--font-body); font-size: 13px; color: var(--text-1); background: var(--white);
  border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 8px 11px; outline: none; transition: border var(--t-fast), box-shadow var(--t-fast); width: 100%;
}
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--rh-medium-blue); box-shadow: 0 0 0 3px rgba(3,105,173,0.12); }

/* misc */
.divider { height: 1px; background: var(--border); border: none; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn var(--t-slow) var(--ease); }
@keyframes fadeIn { from { transform: translateY(8px); } to { transform: none; } }

[data-tip] { position: relative; }

/* ─────────────── Pipeline river ─────────────── */
@keyframes flow { from { background-position: 0 0; } to { background-position: 28px 0; } }
.flowbar {
  height: 3px; flex: 1; border-radius: 2px;
  background-image: linear-gradient(90deg, var(--rh-light-blue) 0 50%, transparent 50% 100%);
  background-size: 14px 3px; background-repeat: repeat-x;
  animation: flow 0.9s linear infinite; opacity: .8;
}
.flowbar.thin { opacity: .4; animation-duration: 1.6s; }
.stage-node {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 14px 16px; min-width: 124px; position: relative; transition: box-shadow var(--t), transform var(--t);
}
.stage-node:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.stage-node .st-count { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--rh-dark-blue); line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stage-node .st-label { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--rh-medium-blue); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.stage-node .st-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* KPI card */
.kpi { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.kpi.hero { background: linear-gradient(135deg, #022A47 0%, #003357 55%, #024c80 100%); border-color: transparent; color: #fff; box-shadow: var(--shadow-3); }
.kpi .k-label { font-family: var(--font-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--text-3); }
.kpi.hero .k-label { color: rgba(255,255,255,0.7); }
.kpi .k-value { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--rh-dark-blue); line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi.hero .k-value { color: #fff; font-size: 38px; }
.kpi .k-delta { font-size: 11.5px; font-weight: 600; font-family: var(--font-display); display: inline-flex; align-items: center; gap: 3px; }

/* tree rows (EDI / fee) */
.tree-row { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; user-select: none; transition: background var(--t-fast); }
.tree-row:hover { background: var(--off-white); }
.tree-row.sel { background: var(--info-bg); }
.tree-row .tw { font-family: var(--font-mono); font-size: 12px; }

/* drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,30,55,0.32); z-index: 80; animation: fadeIn var(--t) var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 92vw; background: var(--white); box-shadow: var(--shadow-4); z-index: 81; display: flex; flex-direction: column; animation: slideIn var(--t-slow) var(--ease); }
@keyframes slideIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ============================================================
   RH.Recruiting additions (same design language)
   ============================================================ */

/* Blazor host + error UI */
body { height: 100vh; overflow: hidden; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--warn-bg); color: var(--warn-ink); padding: 10px 16px; font-size: 13px; box-shadow: var(--shadow-3); }

/* Star rating */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--rh-gold); }
.stars .star-off { color: var(--border-2); }
.rating-line { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.rating-line .rating-num { font-family: var(--font-display); font-weight: 700; color: var(--rh-dark-blue); font-size: 13.5px; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.course-card { display: flex; flex-direction: column; cursor: pointer; transition: box-shadow var(--t), transform var(--t); overflow: hidden; }
.course-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.course-card .cc-banner { height: 6px; background: linear-gradient(90deg, var(--rh-dark-blue), var(--rh-medium-blue), var(--rh-light-blue)); }
.course-card .cc-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.course-card h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.course-card .cc-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .cc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; border-top: 1px solid var(--border); background: var(--off-white); font-size: 12px; color: var(--text-3); }

/* Progress bar */
.progress-track { height: 6px; border-radius: 999px; background: var(--canvas); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rh-medium-blue), var(--rh-light-blue)); transition: width var(--t-slow) var(--ease); }

/* ============================================================
   MudBlazor → ClaimFlow chrome overrides
   ============================================================ */

/* Nav rail: MudNavLink styled as ClaimFlow .nav-item */
.sidebar .mud-nav-menu { padding: 0; }
.sidebar .mud-nav-item { margin: 0 0 2px; }
.sidebar .mud-nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-md);
  color: rgba(255,255,255,0.74); font-size: 13.5px; font-weight: 500; font-family: var(--font-body);
  transition: background var(--t-fast) var(--ease), color var(--t-fast); position: relative;
}
.sidebar .mud-nav-link .mud-nav-link-icon { color: inherit; opacity: .92; font-size: 19px; margin: 0; }
.sidebar .mud-nav-link .mud-nav-link-text { margin: 0; }
.sidebar .mud-nav-link:hover { background: var(--nav-hover); color: #fff; }
.sidebar .mud-nav-link.active {
  background: #EAF1F7; color: var(--rh-dark-blue); font-weight: 600; box-shadow: var(--shadow-2);
}
.sidebar .mud-nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--rh-gold);
}
.sidebar .mud-nav-link.active .mud-nav-link-icon { opacity: 1; color: var(--rh-dark-blue); }
.sidebar .mud-nav-link:focus-visible { outline: 2px solid var(--rh-light-blue); }

/* Topbar search: MudTextField styled as ClaimFlow .searchbox */
.topbar-search { width: 252px; flex-shrink: 0; }
.topbar-search .mud-input-control-input-container .mud-input.mud-input-outlined {
  background: var(--off-white); border-radius: var(--r-md); font-size: 13px;
}
.topbar-search .mud-input-outlined .mud-input-outlined-border { border-color: var(--border); }
.topbar-search .mud-input.mud-input-outlined:hover .mud-input-outlined-border { border-color: var(--border-2); }
.topbar-search .mud-input-adornment .mud-icon-root { font-size: 18px; color: var(--text-3); }
.topbar-search .mud-input-slot { padding-top: 7px; padding-bottom: 7px; }

/* Topbar bell as the square outlined button */
.mud-icon-button.topbar-bell {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--white); color: var(--rh-dark-blue); padding: 0; flex-shrink: 0;
}
.mud-icon-button.topbar-bell:hover { background: var(--off-white); border-color: var(--border-2); }

/* Profile avatar gradient */
.mud-avatar.topbar-profile-avatar {
  width: 32px; height: 32px; background: linear-gradient(135deg, var(--rh-dark-blue), var(--rh-medium-blue), var(--rh-light-blue));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px;
}

/* Gold rating stars */
.rh-rating .mud-rating-item { color: var(--rh-gold); }
.rh-rating .mud-rating-item.mud-rating-item-empty { color: var(--border-2); }

/* Cards */
.mud-card { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.mud-paper:not(.mud-card):not(.mud-menu-paper):not(.mud-popover) { border-radius: var(--r-lg); }

/* Buttons: Poppins + ClaimFlow hover */
.mud-button-root { border-radius: var(--r-md); letter-spacing: 0; }
.mud-button-filled.mud-button-filled-primary:hover { background-color: var(--rh-dark-blue); }

/* Chips as ClaimFlow pills */
.mud-chip { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .2px; height: 22px; border-radius: var(--r-pill); }

/* Tables */
.mud-table { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.mud-table-head .mud-table-cell {
  font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .4px;
  text-transform: uppercase; color: var(--text-3);
}
.mud-table-row:hover { background: var(--off-white); }

/* Dialogs / drawers */
.mud-dialog { border-radius: var(--r-lg); box-shadow: var(--shadow-4); }

/* Global app dialog — one consistent look everywhere. Apply Class="rh-dialog" on the MudDialog
   and use RecruitingDialog.Options() for width/close-button behaviour. */
.mud-dialog.rh-dialog {
  border-radius: var(--r-lg); box-shadow: var(--shadow-4); overflow: hidden; position: relative;
}
.mud-dialog.rh-dialog::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rh-dark-blue), var(--rh-medium-blue), var(--rh-light-blue));
}
.mud-dialog.rh-dialog .mud-dialog-title {
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--rh-dark-blue);
  padding: 22px 28px 14px; margin: 0; border-bottom: 1px solid var(--border);
}
.mud-dialog.rh-dialog .mud-dialog-title .mud-typography { font-family: inherit; font-weight: inherit; font-size: inherit; }
.mud-dialog.rh-dialog .rh-dialog-sub {
  display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px;
  color: var(--text-3); margin-top: 3px;
}
.mud-dialog.rh-dialog .mud-dialog-content { padding: 24px 28px; }
.mud-dialog.rh-dialog .mud-dialog-content > .mud-input-control + .mud-input-control { margin-top: 16px; }
.mud-dialog.rh-dialog .mud-dialog-actions {
  padding: 14px 28px; gap: 8px; border-top: 1px solid var(--border); background: var(--off-white);
}
/* Close button clears the accent strip. */
.mud-dialog.rh-dialog .mud-dialog-title + .mud-button-root,
.mud-dialog.rh-dialog .mud-dialog-close-button { top: 14px; }

/* Tabs as segmented control accents */
.mud-tabs .mud-tab { font-family: var(--font-display); text-transform: none; font-weight: 500; font-size: 13px; }
.mud-tab-slider { background-color: var(--rh-gold); }

/* Course card built on MudCard */
.mud-card.course-card { display: flex; flex-direction: column; }

/* Markdown lesson content */
.lesson-md { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.lesson-md h1, .lesson-md h2, .lesson-md h3 { margin: 1.2em 0 .5em; }
.lesson-md p, .lesson-md ul, .lesson-md ol { margin-bottom: .9em; }
.lesson-md ul, .lesson-md ol { padding-left: 1.4em; }
.lesson-md code { font-family: var(--font-mono); font-size: 12.5px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 1px 5px; }
.lesson-md pre { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; overflow-x: auto; margin-bottom: .9em; }
.lesson-md pre code { border: none; background: none; padding: 0; }
.lesson-md blockquote { border-left: 3px solid var(--rh-light-blue); padding-left: 14px; color: var(--text-3); margin-bottom: .9em; }
.lesson-md img, .lesson-md video, .lesson-md iframe { max-width: 100%; border-radius: var(--r-md); }
.lesson-md table { border-collapse: collapse; margin-bottom: .9em; }
.lesson-md th, .lesson-md td { border: 1px solid var(--border); padding: 6px 10px; font-size: 13px; }
/* Inline variant for answer options / labels: flow with the control, no block spacing. */
.lesson-md-inline { display: inline; color: inherit; font-size: inherit; line-height: inherit; }
.lesson-md-inline p { display: inline; margin: 0; }
/* One answer option per line: MudBlazor's .mud-radio/.mud-checkbox are inline-flex (icon + label
   centered), and .mud-radio-group is flex-row/wrap — so they sit side by side and wrap. A flex-column
   container stacks each on its own row while leaving each control's internal icon/label alignment intact. */
.option-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ============================================================
   RH.Recruiting Candidate careers site — public layout
   (overrides the internal app-shell rules above)
   ============================================================ */

/* Public pages scroll normally (internal app locked the body). */
html, body { height: auto; overflow: auto; background: var(--canvas); }

.careers { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.careers-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.careers-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 66px;
  display: flex; align-items: center; gap: 14px;
}
.careers-header .logo { height: 30px; width: auto; }
.careers-header .brand-sep { width: 1px; height: 26px; background: var(--border); }
.careers-header .brand-lockup { display: flex; flex-direction: column; line-height: 1.15; }
.careers-header .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--rh-dark-blue); }
.careers-header .brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .4px; color: var(--rh-mauve); text-transform: uppercase; }
.careers-header .head-spacer { flex: 1; }

.careers-main { flex: 1; }
.careers-container { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; width: 100%; }
.careers-narrow { max-width: 760px; }

/* Footer */
.careers-footer {
  border-top: 1px solid var(--border); background: var(--white);
  color: var(--text-3); font-size: 12.5px;
}
.careers-footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.careers-footer .foot-spacer { flex: 1; }

/* Hero on the board */
.careers-hero { margin-bottom: 26px; }
.careers-hero h1 { font-size: 30px; letter-spacing: -.4px; margin-bottom: 6px; }
.careers-hero p { color: var(--text-3); font-size: 15px; max-width: 640px; }

/* Job cards */
.job-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.job-card { cursor: pointer; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.job-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); border-color: var(--border-2); }
.job-card .jc-title { font-size: 17px; font-weight: 600; color: var(--rh-dark-blue); font-family: var(--font-display); }
.job-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Detail / markdown reuse .lesson-md from the base sheet */
.posting-md { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.posting-md h1, .posting-md h2, .posting-md h3 { font-family: var(--font-display); color: var(--text-1); margin: 1.2em 0 .5em; }
.posting-md p, .posting-md ul, .posting-md ol { margin-bottom: .9em; }
.posting-md ul, .posting-md ol { padding-left: 1.4em; }
.posting-md li { margin-bottom: .3em; }
.posting-md a { color: var(--rh-medium-blue); }
.posting-md code { font-family: var(--font-mono); font-size: 13px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 1px 5px; }
.posting-md blockquote { border-left: 3px solid var(--rh-light-blue); padding-left: 14px; color: var(--text-3); margin-bottom: .9em; }

/* Embed layout: no chrome, transparent so the host frame shows through */
.embed-root { padding: 20px; background: transparent; }

@media (max-width: 640px) {
  .careers-container { padding: 22px 16px 48px; }
  .careers-header-inner { padding: 0 16px; }
  .careers-hero h1 { font-size: 25px; }
}
