/* Screen styles for the admin insights screens (builder I, December design update):
   A9 Reports, A14 Impact, A15 Mentoring, A16 Interview prep, A21 Success stories.
   Values copied from Sterling Connect Admin.dc.html. Every class is prefixed ai-
   because all screen files load on every page. Layout values stay inline in the
   views, as in the design; these classes add what inline styles can't (hover,
   focus, form controls that look like the design's divs and buttons). */

.ai-screen { display: flex; flex-direction: column; gap: 20px; }
.ai-screen form { margin: 0; }
.ai-screen a { text-decoration: none; }
.ai-eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px/16px 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #127A00; }
.ai-eyebrow > span { width: 20px; height: 3px; background: #31FE01; flex: none; }
.ai-h1 { margin: 10px 0 6px; font: 800 36px/44px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: #01204E; }
.ai-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.ai-inline { display: inline-flex; margin: 0; }

/* Buttons: values from the design's primary, outline and ghost buttons */
.ai-btn { height: 40px; padding: 0 16px; border: none; border-radius: 999px; background: #01204E; color: #FFFFFF; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ai-btn:hover { background: #0D2F63; color: #FFFFFF; text-decoration: none; }
.ai-btn-outline { height: 40px; padding: 0 16px; border: 1.5px solid #01204E; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ai-btn-outline:hover { background: #F2F5FA; color: #01204E; text-decoration: none; }
.ai-btn-ghost { height: 40px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; color: #01204E; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.ai-btn-ghost:hover { background: #F2F5FA; color: #01204E; text-decoration: none; }
.ai-btn-ghost.is-red { color: #9E2A21; }
.ai-btn-ghost.is-red:hover { background: #FDECEA; }
.ai-44 { height: 44px; }
.ai-36 { height: 36px; font-size: 13px; }
.ai-34 { height: 34px; font-size: 13px; }
.ai-32 { height: 32px; font-size: 13px; }
.ai-ic { width: 18px; height: 18px; display: block; flex: none; }
.ai-btn.is-off, .ai-btn.is-off:hover { background: #DFE3EA; color: #6B7485; }
.ai-btn.is-done, .ai-btn-ghost.is-done { cursor: default; }
.ai-btn-ghost.is-done:hover { background: transparent; }

/* Filter chips and underline tabs (links) */
.ai-chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #E6EAF0; background: #FFFFFF; color: #01204E; font: 600 13px/34px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-block; text-decoration: none; }
.ai-chip:hover { border-color: #01204E; color: #01204E; text-decoration: none; }
.ai-chip[aria-current="true"] { background: #01204E; border-color: #01204E; color: #FFFFFF; }
.ai-tabs { display: flex; gap: 24px; border-bottom: 1px solid #E6EAF0; overflow-x: auto; scrollbar-width: none; }
.ai-tabs::-webkit-scrollbar { display: none; }
.ai-tab { padding: 12px 0; border: none; background: transparent; color: #3A4352; font: 500 15px/20px 'DM Sans', sans-serif; box-shadow: none; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ai-tab:hover { color: #01204E; text-decoration: none; }
.ai-tab[aria-current="page"] { color: #01204E; font-weight: 600; box-shadow: inset 0 -2px 0 #01204E; }

/* Segmented control: <div class="ai-seg"><a|button class="ai-seg-o" aria-current="true"> */
.ai-seg { display: flex; padding: 3px; background: #EEF0F4; border-radius: 999px; gap: 3px; width: max-content; max-width: 100%; overflow-x: auto; }
.ai-seg-o { height: 34px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; color: #01204E; box-shadow: none; font: 600 13px/34px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-block; text-decoration: none; }
.ai-seg-o:hover { color: #01204E; text-decoration: none; background: rgba(255, 255, 255, .55); }
.ai-seg-o[aria-current="true"] { background: #FFFFFF; box-shadow: 0 1px 3px rgba(1, 32, 78, .12); }

/* Switch drawn exactly as the design's span pair; used inside buttons that post */
.ai-sw { width: 44px; height: 26px; border-radius: 999px; background: #C5CBD5; position: relative; flex: none; transition: background .2s; display: inline-block; }
.ai-sw > span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(1, 32, 78, .3); transition: left .2s; }
.ai-sw.is-on { background: #01204E; }
.ai-sw.is-on > span { left: 21px; }
.ai-plain-btn { all: unset; box-sizing: border-box; cursor: pointer; }
.ai-plain-btn:focus-visible, .ai-tick-btn:focus-visible { outline: 3px solid #31FE01; outline-offset: 2px; border-radius: 12px; }
.ai-plain-btn[disabled] { cursor: default; }

/* Checkbox drawn as the design's 22px tick box: <label class="ai-tick"><input type="checkbox"><span class="ai-box">✓</span>…</label> */
.ai-tick { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; }
.ai-tick input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 0; top: 1px; cursor: pointer; }
.ai-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #01204E; background: #FFFFFF; color: transparent; font: 700 14px/20px 'DM Sans', sans-serif; text-align: center; flex: none; margin-top: 1px; }
.ai-tick input:checked + .ai-box { background: #01204E; color: #31FE01; }
.ai-tick input:focus-visible + .ai-box { outline: 3px solid #31FE01; outline-offset: 2px; }
.ai-tick-btn { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }

/* Category chips on prep questions: radio inputs */
.ai-cat { position: relative; display: inline-flex; }
.ai-cat input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ai-cat > span { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid #DFE3EA; background: #FFFFFF; color: #3A4352; font: 600 12px/26px 'DM Sans', sans-serif; white-space: nowrap; }
.ai-cat input:checked + span { background: #01204E; border-color: #01204E; color: #FFFFFF; }
.ai-cat input:focus-visible + span { outline: 3px solid #31FE01; outline-offset: 2px; }

/* Inputs (design values) */
.ai-select-wrap { position: relative; }
.ai-select { width: 100%; height: 44px; padding: 0 40px 0 14px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/20px 'DM Sans', sans-serif; color: #121826; background: #FFFFFF; appearance: none; -webkit-appearance: none; }
.ai-select-wrap > .ai-caret { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; pointer-events: none; display: block; }
.ai-input { height: 46px; padding: 0 14px; border: 1px solid #C5CBD5; border-radius: 14px; font: 400 15px/20px 'DM Sans', sans-serif; color: #121826; outline: none; width: 100%; background: #FFFFFF; }
.ai-textarea { padding: 10px 12px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 14px/22px 'DM Sans', sans-serif; color: #121826; resize: vertical; outline: none; width: 100%; background: #FFFFFF; }
.ai-input:focus, .ai-textarea:focus, .ai-select:focus { border-color: #01204E; }
.ai-move { width: 32px; height: 32px; border: 1px solid #E6EAF0; border-radius: 10px; background: #FFFFFF; color: #01204E; font: 700 14px/1 'DM Sans', sans-serif; cursor: pointer; padding: 0; }
.ai-move:hover { background: #F2F5FA; }
.ai-move[disabled] { opacity: .35; cursor: default; }
.ai-move[disabled]:hover { background: #FFFFFF; }

.ai-empty { padding: 32px; text-align: center; background: #FFFFFF; border: 1px solid #E6EAF0; border-radius: 24px; color: #6B7485; }
.ai-row-hover:hover { background: #F7F8FA; }

@media (max-width: 760px) {
  .ai-h1 { font-size: 30px; line-height: 38px; }
}

/* Printable reports (Impact report, sponsor report, PDF summary) */
@media print {
  .admin .topbar, .admin .sidebar, .admin .scrim, .ai-no-print, .toast-host, .skip-link { display: none !important; }
  .admin .main { padding: 0 !important; }
  .admin .shell { display: block !important; }
  .ai-print-card { break-inside: avoid; }
  body { background: #FFFFFF !important; }
}
