/* Webinar program: the desk (/webinars/desk), the board report, and the member
   pages (/webinars). Uses the NACA theme tokens from /shared/naca-wa.css;
   the pieces it shares with the other apps are in /shared/app-kit.css.
   Checklist colors: green = done or on track, orange = coming up,
   red = overdue or critical, gray = no date yet. */

.wb-lead { max-width: 760px; }
.wb-main { width: var(--naca-page-column, calc(100% - 20px)); max-width: none; margin: 0 auto; padding: 0 0 56px; color: var(--naca-heading);
  display: flex; flex-direction: column; gap: 16px; }
.wb-member .wb-main { max-width: 900px; }
.wb-body { display: flex; flex-direction: column; gap: 16px; }
.naca-scope .wb-h1 { margin: 6px 0 0; font-size: 22px; color: var(--naca-navy-deep); }
.naca-scope .wb-h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--naca-navy-deep); }
.naca-scope .wb-h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 700; color: var(--naca-heading); }
.wb-crumb { margin: 0; font-size: 14px; color: var(--naca-muted); }
.wb-when { margin: 4px 0; font-size: 15px; font-weight: 600; color: var(--naca-text-meta); }
.wb-plain { margin: 0; padding-left: 18px; }
.wb-plain li { margin: 2px 0; }
.wb-late { color: #9b1c1c; font-weight: 600; }

/* Session sub-tabs: a smaller version of the shared tabs */
.wb-subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; border-bottom: 1px solid var(--naca-border); }
.wb-subtab { display: inline-flex; align-items: center; padding: 8px 12px; min-height: 40px; box-sizing: border-box; border: 0; border-radius: var(--naca-radius-sm) var(--naca-radius-sm) 0 0;
  background: transparent; font: inherit; font-size: 14px; font-weight: var(--naca-weight-semi); color: var(--naca-navy); cursor: pointer; transition: background var(--naca-transition); }
.wb-subtab:hover { background: var(--naca-tint-200); }
.wb-subtab.is-current, .wb-subtab.is-current:hover { background: var(--naca-button); color: var(--naca-on-navy); }
.wb-subtab:focus-visible { outline: 2px solid var(--naca-gold); outline-offset: 2px; }

/* Links and toolbars (buttons are the theme's .naca-button) */
.naca-scope .wb-link { color: var(--naca-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.wb-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wb-toolbar .ak-input { width: auto; min-width: 180px; }
.wb-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Fields */
.wb-form { display: flex; flex-direction: column; gap: 12px; }
.wa-app .wb-input-xs { width: 80px; }

/* Cards and panels */
.wb-callout { border-color: var(--naca-tint-400); background: var(--naca-tint-100); }
.wb-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wb-two-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-side { display: flex; flex-direction: column; gap: 16px; }
.wb-side .ak-row3, .wb-side .ak-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-scroll { overflow-x: auto; }

/* Stat tiles */
.wb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.wb-stat, .naca-scope a.wb-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--naca-radius-sm); background: var(--naca-tint-100);
  border: 1px solid var(--naca-border); color: var(--naca-heading); text-decoration: none; }
.wb-stat .wb-k { font-size: 13px; color: var(--naca-muted); }
.wb-stat .wb-v { font-size: 22px; font-weight: 700; color: var(--naca-navy-deep); }
.wb-stat .wb-s { font-size: 13px; color: var(--naca-text-secondary); }
.wb-stat-warn { background: #fff4e5; border-color: #f0c789; }
.wb-stat-warn .wb-v, .wb-stat-warn .wb-k, .wb-stat-warn .wb-s { color: #7a4100; }
.wb-stat-bad { background: #fdecec; border-color: #f0b0b0; }
.wb-stat-bad .wb-v, .wb-stat-bad .wb-k, .wb-stat-bad .wb-s { color: #8a1f1f; }

/* Tags and the four colors */
.wb-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef1f5; color: #3f4a5a; }
.wb-tag-aud { background: var(--naca-tint-200); color: var(--naca-navy); }
.wb-tag-ok { background: #eaf5ec; color: #1a5c37; }
.wb-tag-warn { background: #fff4e5; color: #7a4100; }
.wb-tag-bad { background: #fdecec; color: #8a1f1f; }
.wb-state { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wb-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.wb-state-green { background: #eaf5ec; color: #1a6b3f; }
.wb-state-orange { background: #fff1de; color: #8a4b00; }
.wb-state-red { background: #fdecec; color: #a11d1d; }
.wb-state-gray { background: #eef1f5; color: #4a5568; }
.wb-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* Board */
.wb-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.wb-lanes-aside { margin-top: 10px; grid-auto-columns: minmax(230px, 280px); }
.wb-lane { background: var(--naca-tint-100); border: 1px solid var(--naca-border); border-radius: var(--naca-radius-lg, 10px); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.wb-lane.is-over { outline: 2px dashed var(--naca-navy); }
.wb-lane-head { display: flex; justify-content: space-between; align-items: baseline; }
.wb-lane-name { font-weight: 700; color: var(--naca-navy-deep); font-size: 15px; }
.wb-lane-n { font-size: 13px; color: var(--naca-muted); }
.wb-lane-hint { margin: 0; font-size: 12.5px; color: var(--naca-muted); }
.naca-scope a.wb-card { display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--naca-border); border-left: 4px solid #cdd5e0; border-radius: 0;
  padding: 10px 12px; text-decoration: none; color: var(--naca-text); cursor: pointer; }
.naca-scope a.wb-card:hover { border-color: var(--naca-tint-400); box-shadow: 0 1px 4px rgba(14, 30, 60, .08); text-decoration: none; }
.naca-scope a.wb-card.wb-health-green { border-left-color: #2f9e5f; }
.naca-scope a.wb-card.wb-health-orange { border-left-color: #e08a00; }
.naca-scope a.wb-card.wb-health-red { border-left-color: #c62828; }
.wb-card-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--naca-navy-deep); }
.wb-card-meta, .wb-card-next, .wb-card-count { font-size: 12.5px; color: var(--naca-text-secondary); }
.wb-card-health { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wb-meter { display: block; height: 4px; background: #e8edf4; border-radius: 2px; overflow: hidden; }
.wb-meter span { display: block; height: 4px; background: #2f9e5f; border-radius: 2px; }

/* Session */
.wb-shead { display: flex; flex-direction: column; gap: 6px; }
.wb-shead-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wb-shead-bar .ak-label { display: inline-flex; align-items: center; gap: 8px; }
.wb-shead-bar .ak-input { width: auto; }
.wb-pane { display: flex; flex-direction: column; gap: 16px; }
.wb-checkgroup { display: flex; flex-direction: column; gap: 8px; }
.wb-checkgroup.is-current .wb-h2 { color: var(--naca-navy); }
.wb-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wb-task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: start; background: #fff; border: 1px solid var(--naca-border);
  border-left: 4px solid #cdd5e0; padding: 10px 12px; }
.wb-task-green { border-left-color: #2f9e5f; }
.wb-task-orange { border-left-color: #e08a00; background: #fffaf2; }
.wb-task-red { border-left-color: #c62828; background: #fff6f6; }
.wb-task.is-done { background: #f7fbf8; }
.wb-task.is-done .wb-task-title { color: var(--naca-muted); text-decoration: line-through; text-decoration-color: #9fb3a6; }
.wb-task input[type=checkbox] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #2f9e5f; cursor: pointer; }
.wb-task-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wb-task-title { font-weight: 600; font-size: 15px; color: var(--naca-heading); }
.wb-task-details { font-size: 13.5px; color: var(--naca-text-secondary); }
.wb-task-meta { font-size: 13px; color: var(--naca-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wb-task-edit { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--naca-border); }
.wb-important { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #c62828; color: #fff;
  font-size: 12px; font-weight: 800; vertical-align: 1px; }
.wb-cadence-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wb-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wb-tl a { display: flex; flex-direction: column; padding: 6px 10px; border: 1px solid var(--naca-border); border-radius: 8px; background: #fff; text-decoration: none; color: var(--naca-text); font-size: 13px; max-width: 220px; }
.wb-tl a strong { color: var(--naca-navy-deep); }
.wb-tl.is-tentative a { border-style: dashed; }
.wb-tl.is-past a { background: var(--naca-tint-100); }
.wb-gap { padding: 4px 10px; border-radius: 999px; background: #fdecec; color: #a11d1d; font-size: 12.5px; font-weight: 700; }
/* The two-sided topics form */
.wb-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wb-half { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 2px solid var(--naca-border); border-radius: 10px; background: var(--naca-tint-100); }
.wb-half-h { margin: 0; font-size: 16px; color: var(--naca-heading); }
@media (max-width: 700px) { .wb-halves { grid-template-columns: 1fr; } }

/* The cadence calendar */
.wb-cal-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wb-cal-bar .ak-input { width: auto; min-height: 38px; }
.wb-cal-nav { display: inline-flex; gap: 4px; margin-left: auto; }
.wb-cal-note { gap: 4px; }
.wb-cal-line { margin: 0; font-size: 15px; font-weight: 600; color: var(--naca-heading); }
.wb-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.wb-cal-month { background: #fff; border: 1px solid var(--naca-border); border-radius: 10px; padding: 10px; }
.wb-cal-month .wb-h2 { margin: 0 0 6px; font-size: 15px; }
.wb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wb-cal-dow { font-size: 11px; font-weight: 700; color: var(--naca-muted); text-align: center; padding-bottom: 4px; }
.wb-cal-day { position: relative; min-height: 54px; padding: 2px 3px; border-top: 1px solid var(--naca-border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wb-cal-day.is-blank { border-top-color: transparent; }
.wb-cal-n { font-size: 11px; color: var(--naca-muted); }
.wb-cal-day.is-today .wb-cal-n { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: var(--naca-navy); color: #fff; font-weight: 700; }
.wb-cal-day.in-win { background: #fffaf0; }
.wb-cal-day.in-win::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 0 dotted #b7791f; }
.wb-cal-day.w-l::after { border-left-width: 3px; }
.wb-cal-day.w-r::after { border-right-width: 3px; }
.wb-cal-day.w-t::after { border-top-width: 3px; }
.wb-cal-day.w-b::after { border-bottom-width: 3px; }
.naca-scope .wb-cal-s { display: block; font-size: 11px; line-height: 1.3; padding: 1px 4px; border-radius: 4px; background: var(--naca-navy); color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.naca-scope .wb-cal-s.is-past { background: #6b7a90; }
.naca-scope .wb-cal-s.is-tentative { background: #fff; color: var(--naca-navy); border: 1px dashed var(--naca-navy); }
.wb-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.wb-month { background: #fff; border: 1px solid var(--naca-border); border-radius: 10px; padding: 10px 12px; }
.wb-month.is-empty { background: #fff8eb; border-color: #f0d199; }
.naca-scope .wb-month h4 { margin: 0 0 6px; font-size: 15px; color: var(--naca-navy-deep); }
.wb-month ul { margin: 0; padding-left: 16px; font-size: 13.5px; }
.wb-month li { margin: 4px 0; }

/* Tables */
.wb-star { color: #b7791f; }
.wb-addrow { margin-top: 8px; }

/* Conversations */
.wb-threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wb-threads li a { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; border-bottom: 1px solid var(--naca-border); text-decoration: none; color: var(--naca-text); }
.wb-threads li a:hover { background: var(--naca-tint-100); }
.wb-threads li.is-waiting a { border-left: 4px solid #c62828; padding-left: 10px; }
.wb-thread-who { font-weight: 700; color: var(--naca-navy-deep); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wb-thread-subj { font-size: 14px; }
.wb-thread-last { font-size: 13px; color: var(--naca-muted); }
.wb-messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wb-msg { border: 1px solid var(--naca-border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.wb-msg-in { border-left: 4px solid var(--naca-navy); }
.wb-msg-out { background: var(--naca-tint-100); }
.wb-msg-note { background: #fffbea; border-color: #f0dd9a; }
.wb-msg-head { font-size: 12.5px; color: var(--naca-muted); margin-bottom: 6px; }
.wb-msg-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; }

/* Questions */
.wb-qlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wb-q { border: 1px solid var(--naca-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.wb-q.is-off { opacity: .6; }
.wb-q-body { margin: 0; font-weight: 600; }
.wb-q-answer { margin: 0; white-space: pre-wrap; }

/* Survey results and mini bars */
.wb-results { display: flex; flex-direction: column; gap: 8px; }
.wb-result { border-top: 1px solid var(--naca-border); padding-top: 8px; }
.wb-result-q { margin: 0 0 4px; font-weight: 600; }
.wb-texts { margin: 0; padding-left: 18px; font-size: 14px; }
.wb-minibars { display: flex; flex-direction: column; gap: 4px; }
.wb-minibar { display: grid; grid-template-columns: minmax(80px, 260px) minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 13px; }
.wb-minibar-label { color: var(--naca-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-minibar-track { height: 10px; background: #edf1f6; border-radius: 4px; overflow: hidden; }
.wb-minibar-fill { display: block; height: 10px; background: var(--naca-navy); border-radius: 0 4px 4px 0; }
.wb-minibar-n { text-align: right; font-weight: 600; color: var(--naca-heading); }
.wb-survey-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--naca-border); }

/* Setup */
.wb-optrow { display: grid; grid-template-columns: 1.2fr 2fr 1.4fr 1.2fr auto auto; gap: 10px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--naca-border); }
.wb-tplrow { display: grid; grid-template-columns: 2.4fr 1fr 70px 1.1fr 1.2fr 1fr auto auto; gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--naca-border); }
.wb-tpl-main { display: flex; flex-direction: column; gap: 4px; }
.wb-optrow.is-off, .wb-tplrow.is-off { opacity: .6; }
.wb-survey { border: 1px solid var(--naca-border); border-radius: 10px; padding: 10px 12px; }
.wb-survey summary { cursor: pointer; font-weight: 700; color: var(--naca-navy-deep); }
.wb-qbuilder { display: flex; flex-direction: column; gap: 8px; }
.wb-qrow { display: grid; grid-template-columns: 26px 2.4fr 1.2fr 1.4fr auto auto; gap: 8px; align-items: end; padding: 6px 0; border-bottom: 1px dashed var(--naca-border); }
.wb-qn { font-weight: 700; color: var(--naca-muted); padding-bottom: 12px; }

/* Peer mentoring topics */
.wb-topic { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--naca-border); }
.wb-topic input { width: 20px; height: 20px; margin-top: 2px; }
.wb-topic p { margin: 0 0 4px; }

/* Report */
.wb-report { display: flex; flex-direction: column; gap: 16px; }
.wb-chartwrap { width: 100%; }
.wb-chart { width: 100%; height: auto; display: block; }
.wb-chart .wb-grid { stroke: #e6ebf2; stroke-width: 1; }
.wb-chart .wb-axis { font-size: 11px; fill: #5b6675; }
.wb-chart .wb-val { font-size: 11.5px; font-weight: 700; fill: #13243d; }
.wb-chart .wb-bar { fill: #1e395e; }
.wb-chart .wb-hit { fill: transparent; }
.wb-chart .wb-barg:hover .wb-bar { fill: #2c5182; }
.wb-chart .wb-barg:hover .wb-hit { fill: rgba(30, 57, 94, .06); }
.wb-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wb-comments p { margin: 0; }

/* Member pages */
.wb-list { display: flex; flex-direction: column; gap: 12px; }
.wb-session .wb-desc { margin: 0; color: var(--naca-text-secondary); }
.wb-signin { align-items: flex-start; }
.wb-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wb-role { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--naca-border-strong); background: #fff;
  font: inherit; color: var(--naca-text); cursor: pointer; }
.wb-role strong { color: var(--naca-navy-deep); font-size: 15px; }
.wb-role span { font-size: 14px; color: var(--naca-text-secondary); }
.wb-role.is-on { border: 2px solid var(--naca-navy); background: var(--naca-tint-100); }
.wb-role:focus-visible { outline: 2px solid var(--naca-gold); outline-offset: 2px; }
.wb-presenter p { margin: 0 0 6px; }
.wb-qa dt { font-weight: 700; margin-top: 10px; color: var(--naca-navy-deep); }
.wb-qa dd { margin: 4px 0 0; }
.wb-qa dd p { margin: 0 0 6px; }
.wb-surveyform { gap: 14px; }
.wb-sq { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wb-sq legend, .wb-sq > .ak-label { font-weight: 600; font-size: 15.5px; margin-bottom: 6px; color: var(--naca-heading); }
.wb-req { color: #a11d1d; }
.wb-scale { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-scale-pt { position: relative; }
.wb-scale-pt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wb-scale-pt span { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--naca-border-strong);
  font-weight: 700; font-size: 16px; color: var(--naca-navy); cursor: pointer; background: #fff; }
.wb-scale-pt input:checked + span { background: var(--naca-button); color: #fff; border-color: var(--naca-button); }
.wb-scale-pt input:focus-visible + span { outline: 2px solid var(--naca-gold); outline-offset: 2px; }
.wb-choices { display: flex; flex-direction: column; gap: 6px; }
.wb-choice { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; min-height: 36px; cursor: pointer; }
.wb-choice input { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .wb-two, .wb-two-even { grid-template-columns: minmax(0, 1fr); }
  .ak-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-optrow, .wb-tplrow, .wb-qrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wb-roles { grid-template-columns: minmax(0, 1fr); }
  .wb-task { grid-template-columns: 28px minmax(0, 1fr); }
  .wb-task > .naca-button { grid-column: 2; justify-self: start; }
}
@media print {
  .ak-tabs, .wb-noprint, .site-header, .site-footer { display: none !important; }
  .wb-stat { break-inside: avoid; }
}
