/* PWLBtoday Academy hub */

:root {
  --ac-navy: #0a2540;
  --ac-orange: #fd7e14;
  --ac-orange-soft: #fff5e9;
  --ac-text: #243240;
  --ac-muted: #6c757d;
  --ac-line: #e9ecef;
  --ac-line-soft: #f1f3f5;
  --ac-bg: #f7f8fa;
  --ac-card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Always reserve the scrollbar gutter so switching between a tall view
   (Pathways) and a short one (Start Here) doesn't toggle the vertical
   scrollbar and shift the layout width — kills the small jerk on tab
   changes. */
html { scrollbar-gutter: stable; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ac-text);
  background: var(--ac-bg);
  font-size: 16px;
  line-height: 1.55;
}

/* Header */
.ac-header {
  height: 56px;
  background: var(--ac-card);
  border-bottom: 1px solid var(--ac-line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  position: sticky; top: 0; z-index: 50;
}

.ac-brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none;
}
.ac-brand-mark { font-weight: 700; color: var(--ac-orange); font-size: 1rem; }
.ac-brand-sep { color: #ced4da; }
.ac-brand-name {
  font-weight: 600; color: var(--ac-navy); font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.ac-header-progress {
  flex: 1; display: flex; align-items: center; gap: 12px;
  max-width: 460px;
}
.ac-progress-text {
  font-size: 0.78rem; color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ac-progress-track {
  flex: 1; height: 6px; background: var(--ac-line); border-radius: 3px; overflow: hidden;
}
.ac-progress-fill {
  height: 100%; background: var(--ac-orange); width: 0%;
  transition: width 0.4s ease;
}

.ac-header-right { margin-left: auto; }
.ac-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 5px;
  background: var(--ac-navy); color: #ffffff;
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
}
.ac-back i { color: var(--ac-orange); font-size: 1rem; }
.ac-back:hover { background: #0d2e4f; }

/* Main */
.ac-main {
  max-width: 1320px; margin: 0 auto; padding: 24px 28px 80px 28px;
}

/* Hero */
.ac-hero {
  background: linear-gradient(135deg, #0a2540 0%, #143659 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.ac-hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ac-hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ac-orange); font-weight: 700; margin-bottom: 10px;
}
.ac-hero h1 {
  font-size: 2.2rem; line-height: 1.15; margin: 0 0 12px 0;
  font-weight: 700; letter-spacing: -0.015em;
  max-width: 720px;
}
.ac-hero-sub {
  font-size: 1.02rem; max-width: 720px;
  color: rgba(255,255,255,0.82); margin: 0 0 26px 0;
  line-height: 1.55;
}
.ac-hero-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
}
.ac-stat { display: flex; flex-direction: column; gap: 2px; }
.ac-stat-num {
  font-size: 1.85rem; font-weight: 700; color: var(--ac-orange);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.ac-stat-k {
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Continue banner */
.ac-continue {
  background: var(--ac-orange-soft);
  border: 1px solid #ffd9b3;
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 16px;
}
.ac-continue-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ac-orange); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ac-continue-text { flex: 1; }
.ac-continue-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8a3a00; font-weight: 700;
}
.ac-continue-title {
  font-size: 1rem; font-weight: 600; color: var(--ac-navy);
}
.ac-continue-meta {
  font-size: 0.82rem; color: #8a3a00;
}
.ac-continue a {
  background: var(--ac-navy); color: #ffffff;
  padding: 9px 18px; border-radius: 5px;
  text-decoration: none; font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.ac-continue a:hover { background: #0d2e4f; }
.ac-continue-actions { display: inline-flex; gap: 8px; flex-shrink: 0; }

/* ── Launch buttons (concierge vs slide deck) ───────────────────────
   Used on course tiles (icon-only), the course drawer and the
   Continue banner (icon + label via .ac-launch-lg). */
.ac-launch-row { display: inline-flex; gap: 6px; align-items: center; justify-self: end; }
.ac-launch {
  width: 30px; height: 30px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ac-line-soft); color: var(--ac-navy);
  text-decoration: none; font-size: 0.92rem;
  border: 1px solid var(--ac-line);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  flex-shrink: 0;
}
.ac-launch:hover { background: var(--ac-orange-soft); color: var(--ac-orange); border-color: var(--ac-orange); }
.ac-launch-slides { background: #eef4fb; color: var(--ac-navy); }
.ac-launch-slides:hover { background: #e2edf9; color: var(--ac-navy); border-color: #9bbbe0; }
/* Compact labelled variant — single launch button inside a course row.
   Replaces the old status-text + slides-icon pair. Quiet by default (inherits
   the neutral .ac-launch fill) and warms to orange on hover, so a long list of
   them reads calmly rather than as a wall of solid buttons. */
.ac-launch-go {
  width: auto; height: auto; padding: 5px 12px; gap: 6px;
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
}
.ac-launch-go i { font-size: 0.8rem; transition: transform 0.12s ease; }
.ac-launch-go:hover i { transform: translateX(2px); }
/* Large variant — icon + label, used in drawer + continue banner */
.ac-launch-lg {
  width: auto; height: auto; padding: 10px 16px; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
}
.ac-launch-lg.ac-launch-primary { background: var(--ac-navy); color: #fff; border-color: var(--ac-navy); }
.ac-launch-lg.ac-launch-primary:hover { background: #0d2e4f; color: #fff; }
/* Arrow inherits the white text rather than a saturated orange — keeps the
   navy CTA prominent without the navy/orange clash. */
.ac-launch-lg.ac-launch-primary i { color: #fff; transition: transform 0.12s ease; }
.ac-launch-lg.ac-launch-primary:hover i { transform: translateX(2px); }
.ac-dr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }

/* Live PWLB rate-notice banner */
.ac-todays-rates {
  background: #f1f8ee;
  border: 1px solid #c4dfb6;
  border-radius: 10px;
  padding: 14px 22px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 16px;
}
.ac-tr-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: #1e7d3e; color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.ac-tr-body { flex: 1; min-width: 0; }
.ac-tr-title {
  font-size: 0.95rem; font-weight: 600; color: var(--ac-navy);
  line-height: 1.3;
}
.ac-tr-title b { color: #1e7d3e; }
.ac-tr-sub {
  font-size: 0.78rem; color: #2d5a1c;
  margin-top: 2px;
}
.ac-tr-cta {
  background: #1e7d3e; color: #ffffff;
  padding: 8px 14px; border-radius: 5px;
  text-decoration: none; font-weight: 500;
  font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ac-tr-cta:hover { background: #145c2c; color: #ffffff; }
@media (max-width: 720px) {
  .ac-todays-rates { flex-wrap: wrap; }
  .ac-tr-cta { width: 100%; justify-content: center; }
}

/* Search */
.ac-search-row {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.ac-search {
  flex: 1; min-width: 240px; max-width: 480px;
  position: relative;
}
.ac-search i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ac-muted);
}
.ac-search input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1px solid var(--ac-line); border-radius: 6px;
  font-size: 0.92rem; font-family: inherit;
  background: var(--ac-card);
}
.ac-search input:focus {
  outline: none; border-color: var(--ac-orange);
  box-shadow: 0 0 0 3px rgba(253,126,20,0.15);
}

.ac-filter-pills { display: inline-flex; gap: 4px; }
.ac-pill {
  background: var(--ac-card); border: 1px solid var(--ac-line);
  padding: 7px 14px; border-radius: 14px;
  font-size: 0.82rem; color: var(--ac-text);
  cursor: pointer; font-family: inherit;
  font-weight: 500;
}
.ac-pill:hover { background: var(--ac-line-soft); }
.ac-pill.active {
  background: var(--ac-navy); color: #ffffff;
  border-color: var(--ac-navy);
}

/* Schools */
.ac-schools { display: flex; flex-direction: column; gap: 36px; }

.ac-school-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 2px solid var(--ac-line);
  padding-bottom: 8px; margin-bottom: 18px;
}
.ac-school-icon {
  font-size: 1.2rem; color: var(--ac-orange);
}
.ac-school-title {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ac-navy);
}
.ac-school-count {
  font-size: 0.78rem; color: var(--ac-muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* Course grid */
.ac-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.ac-card {
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 20px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ac-card.is-available:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.06);
  transform: translateY(-1px);
}

.ac-card.is-coming {
  background: #fafbfc;
}

.ac-card-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 8px;
}

.ac-card-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 6px; font-size: 1rem;
}
.ac-card.is-coming .ac-card-icon { background: var(--ac-line-soft); color: var(--ac-muted); }

.ac-card-title {
  font-size: 1rem; font-weight: 600; color: var(--ac-navy);
  line-height: 1.3; flex: 1;
}

.ac-card-status {
  font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  white-space: nowrap;
}
.ac-card-status.complete { background: #d4edda; color: #155724; }
.ac-card-status.in-progress { background: var(--ac-orange-soft); color: #8a3a00; }
.ac-card-status.not-started { background: var(--ac-line-soft); color: var(--ac-muted); }
.ac-card-status.coming { background: #ede7f6; color: #5e35b1; }

.ac-card-desc {
  font-size: 0.86rem; color: var(--ac-text);
  line-height: 1.55; margin: 0 0 14px 0;
  flex: 1;
}

.ac-card-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--ac-muted);
  margin-bottom: 14px;
}
.ac-card-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}
.ac-card-meta i { color: var(--ac-orange); font-size: 0.85rem; }
.ac-card-meta .live-badge {
  background: #d4edda; color: #155724;
  padding: 2px 6px; border-radius: 3px;
  font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.75rem;
}

.ac-card-progress {
  height: 4px; background: var(--ac-line);
  border-radius: 2px; overflow: hidden;
  margin: 0 0 12px 0;
}
.ac-card-progress-fill {
  height: 100%; background: var(--ac-orange);
  width: 0%;
}

.ac-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--ac-navy); color: #ffffff;
  border-radius: 5px;
  text-decoration: none; font-size: 0.85rem;
  font-weight: 500;
  align-self: flex-start;
}
.ac-card-cta:hover { background: #0d2e4f; }
.ac-card.is-coming .ac-card-cta {
  background: var(--ac-line-soft); color: var(--ac-muted);
  pointer-events: none;
}

/* Hidden / filtered */
.ac-card.is-hidden { display: none; }
.ac-school-section.is-empty { display: none; }

/* Footer */
.ac-foot {
  text-align: center;
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--ac-line);
  color: var(--ac-muted); font-size: 0.82rem;
}
.ac-foot-meta {
  margin-top: 4px; font-size: 0.76rem;
  color: #adb5bd;
}

@media (max-width: 720px) {
  .ac-main { padding: 22px 16px 60px 16px; }
  .ac-hero { padding: 24px 22px; }
  .ac-hero h1 { font-size: 1.6rem; }
  .ac-hero-stats { gap: 24px; }
  .ac-grid { grid-template-columns: 1fr; }
}

/* ----- Audience gate (shown until user picks officer / member) ----- */
.ac-audience-gate {
  text-align: center;
  padding: 40px 20px 60px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.ac-gate-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ac-orange); font-weight: 700; margin-bottom: 14px;
}
.ac-audience-gate h1 {
  font-size: 2.4rem; line-height: 1.15; font-weight: 700;
  color: var(--ac-navy); margin: 0 0 14px 0;
  letter-spacing: -0.015em;
}
.ac-gate-sub {
  max-width: 640px; margin: 0 auto 36px auto;
  font-size: 1.02rem; line-height: 1.55; color: var(--ac-text);
}
.ac-gate-cards {
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
  max-width: 920px; margin: 0 auto;
}
@media (max-width: 720px) { .ac-gate-cards { grid-template-columns: 1fr; } }

.ac-gate-card {
  background: var(--ac-card);
  border: 2px solid var(--ac-line);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.ac-gate-card:hover {
  border-color: var(--ac-orange);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.10);
}
.ac-gate-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--ac-orange) 0%, #e56e0c 100%);
  color: #ffffff; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.ac-gate-title {
  font-size: 1.3rem; font-weight: 600; color: var(--ac-navy);
  margin-bottom: 8px;
}
.ac-gate-desc {
  font-size: 0.92rem; line-height: 1.6;
  color: var(--ac-text); flex: 1;
  margin-bottom: 16px;
}
.ac-gate-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--ac-muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-gate-meta i { color: var(--ac-orange); margin-right: 4px; }
.ac-gate-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ac-navy); font-weight: 600; font-size: 0.92rem;
}
.ac-gate-card:hover .ac-gate-cta { color: var(--ac-orange); }
.ac-gate-foot {
  margin-top: 28px; font-size: 0.85rem; color: var(--ac-muted);
}

/* ----- Audience badge + switch in header ----- */
.ac-active-audience {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ac-muted); font-weight: 600;
  border-left: 1px solid var(--ac-line);
  padding-left: 14px; margin-left: 6px;
}
.ac-audience-switch {
  background: transparent; border: 1px solid var(--ac-line);
  color: var(--ac-muted); font-size: 0.78rem; font-weight: 500;
  padding: 6px 12px; border-radius: 5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; margin-right: 10px;
}
.ac-audience-switch:hover {
  background: var(--ac-line-soft); color: var(--ac-navy);
}

/* ----- Document Review tile (hero placement) ----- */
.ac-review-tile {
  display: flex; gap: 22px; align-items: flex-start;
  background: linear-gradient(135deg, #fff5e9 0%, #ffe8d3 100%);
  border: 1px solid #ffd9b3;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.ac-review-tile::after {
  content: "";
  position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ac-review-tile-mark {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--ac-navy); color: var(--ac-orange);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.ac-review-tile-body { flex: 1; }
.ac-review-tile-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ac-orange); font-weight: 700; margin-bottom: 6px;
}
.ac-review-tile h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--ac-navy);
  margin: 0 0 8px 0; letter-spacing: -0.005em;
}
.ac-review-tile p {
  font-size: 0.92rem; line-height: 1.55; color: #5b3811;
  margin: 0 0 14px 0; max-width: 700px;
}
.ac-review-tile-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-review-cta-primary, .ac-review-cta-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 5px;
  text-decoration: none; font-weight: 500; font-size: 0.88rem;
}
.ac-review-cta-primary {
  background: var(--ac-navy); color: #ffffff;
}
.ac-review-cta-primary:hover { background: #0d2e4f; }
.ac-review-cta-secondary {
  background: #ffffff; color: var(--ac-navy);
  border: 1px solid #ffd9b3;
}
.ac-review-cta-secondary:hover { background: #fff5e9; }

/* ----- Reference grid (TMS Mirror sub-surfaces) ----- */
.ac-ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.ac-ref-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ac-ref-card:hover {
  border-color: var(--ac-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.06);
}
.ac-ref-card-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--ac-orange-soft);
  color: var(--ac-orange);
  border: 1px solid #ffd9b3;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.ac-ref-card-body { flex: 1; min-width: 0; }
.ac-ref-card-title {
  font-size: 0.98rem; font-weight: 600; color: var(--ac-navy);
  margin-bottom: 4px;
}
.ac-ref-card-sub {
  font-size: 0.84rem; color: var(--ac-muted); line-height: 1.5;
}
.ac-ref-card-arrow {
  color: var(--ac-muted); font-size: 0.95rem; flex-shrink: 0;
  margin-top: 4px;
  transition: color 0.15s, transform 0.15s;
}
.ac-ref-card:hover .ac-ref-card-arrow {
  color: var(--ac-orange);
  transform: translateX(2px);
}
@media (max-width: 720px) {
  .ac-ref-grid { grid-template-columns: 1fr; }
}

/* ----- Track section subtitle (under each School) ----- */
.ac-school-text { display: flex; flex-direction: column; }
.ac-school-sub {
  font-size: 0.78rem; color: var(--ac-muted);
  font-weight: 400; letter-spacing: 0;
  text-transform: none; margin-top: 1px;
}

/* ===========================================================================
   REDESIGNED CATALOGUE SURFACE
   - Slim hero, view toggle, pathways grid, dense tile catalogue, detail drawer
   =========================================================================== */

/* Slim hero */
.ac-hero-slim {
  display: flex; align-items: center; gap: 32px;
  padding: 22px 32px;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #0a2540 0%, #143659 60%, #1a4775 100%);
}
.ac-hero-slim::after {
  width: 320px; height: 320px;
  right: -120px; top: -140px;
}
.ac-hero-text { flex: 1; min-width: 0; }
.ac-hero-slim h1 {
  font-size: 1.55rem; margin: 4px 0 4px 0;
  letter-spacing: -0.01em;
}
.ac-hero-slim .ac-hero-sub {
  font-size: 0.9rem; margin: 0; max-width: 580px;
}
.ac-hero-slim .ac-hero-eyebrow {
  font-size: 0.75rem; margin-bottom: 4px;
}
.ac-hero-slim .ac-hero-stats {
  border: none; padding: 0; gap: 22px;
  flex-shrink: 0; flex-wrap: nowrap;
}
.ac-hero-slim .ac-stat-num { font-size: 1.5rem; }
.ac-hero-slim .ac-stat-k { font-size: 0.75rem; }

/* Toolbar (view toggle + search) */
.ac-toolbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
  position: sticky;
  top: 60px; /* sits flush below the 60px sticky site header */
  z-index: 10;
  background: var(--ac-bg, #f4f6f9);
  padding: 10px 0 8px;
  margin-top: -10px;
}
.ac-hub-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid rgba(10,37,64,0.20);
  background: #fff; color: var(--ac-navy, #0a2540);
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.ac-hub-pill:hover { border-color: var(--ac-orange, #fd7e14); background: rgba(253,126,20,0.07); color: var(--ac-navy, #0a2540); }
.ac-view-btn--hub {
  text-decoration: none;
  border-right: 1px solid var(--ac-line, #e0e4ea);
  border-radius: 6px 0 0 6px;
  margin-right: 2px;
  padding-right: 14px;
}
.ac-view-toggle {
  display: flex; gap: 2px;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 8px; padding: 3px;
  box-shadow: 0 1px 2px rgba(10,37,64,0.04);
  flex: 1 1 auto; min-width: 0; max-width: 100%;
  flex-wrap: wrap;
}
.ac-view-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 7px 13px; border-radius: 6px;
  font-family: inherit; font-size: 0.83rem; font-weight: 500;
  color: var(--ac-muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  white-space: nowrap; flex: 1 0 auto;
}
.ac-view-btn:hover { color: var(--ac-navy); }
.ac-view-btn.active {
  background: var(--ac-navy); color: #ffffff;
}
.ac-view-btn.active i { color: var(--ac-orange); }
.ac-view-badge {
  background: var(--ac-orange); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 2px 6px; border-radius: 8px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-left: 4px;
}
.ac-toolbar .ac-search { flex: 1; max-width: 380px; min-width: 200px; }

/* ===== Pathways rows ===== */
.ac-pathways-rows {
  display: flex; flex-direction: column;
  gap: 8px;
}

.ac-pw-row {
  position: relative;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 12px 16px 12px 14px;
  text-align: left; cursor: pointer;
  font-family: inherit;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 200px 18px;
  gap: 16px; align-items: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
}
.ac-pw-row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ac-orange) 0%, #ffb877 100%);
  opacity: 0.9;
}
.ac-pw-row:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 6px 18px rgba(10,37,64,0.08);
  transform: translateX(2px);
}
.ac-pw-row.is-done::before { background: linear-gradient(180deg, #2e8540 0%, #6dd382 100%); }

.ac-pw-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #fff5e9 0%, #ffe2c4 100%);
  color: var(--ac-orange);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ac-pw-row.is-done .ac-pw-icon {
  background: linear-gradient(135deg, #d4edda 0%, #a8e0b6 100%);
  color: #2e8540;
}

.ac-pw-body { min-width: 0; }
.ac-pw-line1 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 2px;
}
.ac-pw-title {
  font-size: 0.98rem; font-weight: 700;
  color: var(--ac-navy); line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-pw-level {
  font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
  color: var(--ac-muted);
  background: var(--ac-line-soft);
  padding: 2px 7px; border-radius: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ac-pw-row.level-foundation .ac-pw-level { background: #e8f4fd; color: #1864ab; }
.ac-pw-row.level-practitioner .ac-pw-level { background: #fff5e9; color: #b8541d; }
.ac-pw-row.level-introductory .ac-pw-level { background: #ede7f6; color: #5e35b1; }
.ac-pw-row.level-active-scrutineer .ac-pw-level { background: #e6f7ed; color: #2e8540; }

.ac-pw-tag {
  font-size: 0.82rem; color: var(--ac-muted);
  line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-pw-meta {
  display: flex; gap: 14px;
  font-size: 0.75rem; color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
}
.ac-pw-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ac-pw-meta i { color: var(--ac-orange); font-size: 0.85rem; }

.ac-pw-progress { display: flex; flex-direction: column; gap: 4px; }
.ac-pw-bar {
  height: 5px; background: var(--ac-line-soft);
  border-radius: 3px; overflow: hidden;
}
.ac-pw-bar-fill {
  height: 100%; background: var(--ac-orange);
  transition: width 0.4s;
}
.ac-pw-row.is-done .ac-pw-bar-fill { background: #2e8540; }
.ac-pw-status {
  font-size: 0.75rem; font-weight: 600;
  color: var(--ac-navy);
  display: inline-flex; align-items: center; gap: 4px;
}
.ac-pw-row.is-done .ac-pw-status { color: #2e8540; }
.ac-pw-chev {
  color: var(--ac-orange);
  font-size: 0.95rem;
  transition: transform 0.18s;
}
.ac-pw-row:hover .ac-pw-chev { transform: translateX(3px); }

@media (max-width: 820px) {
  .ac-pw-row {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      "icon body chev"
      "icon meta chev"
      "icon progress chev";
    gap: 4px 12px;
  }
  .ac-pw-icon { grid-area: icon; }
  .ac-pw-body { grid-area: body; }
  .ac-pw-meta { grid-area: meta; }
  .ac-pw-progress { grid-area: progress; width: 100%; }
  .ac-pw-chev { grid-area: chev; align-self: center; }
  .ac-pw-tag { white-space: normal; }
  /* The title + level badge share one flex row. On a phone the badge
     squeezes the (nowrap, ellipsis) title down to a few characters — even
     to zero width on cards with two badges. Let the line wrap and the title
     flow over multiple lines so it stays fully readable. */
  .ac-pw-line1 { flex-wrap: wrap; gap: 4px 8px; }
  .ac-pw-title { white-space: normal; overflow: visible; }
}

/* ===== Compact catalogue (tracks of micro-tiles) ===== */
.ac-tracks-compact {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 16px;
}
.ac-track-block { display: flex; flex-direction: column; gap: 10px; }
.ac-track-block.is-empty { display: none; }

.ac-track-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ac-orange);   /* was 1px solid --ac-line — orange now, cleaner */
}
.ac-track-icon {
  display: none;                                /* hidden — header reads cleaner without it */
}
.ac-track-title {
  font-size: 1.05rem; font-weight: 700; color: var(--ac-navy);
  letter-spacing: 0;
}
.ac-track-sub { font-size: 0.85rem; color: var(--ac-muted); margin-top: 2px; }
.ac-track-text { flex: 1; min-width: 0; }
.ac-track-count {
  display: none;                                /* hidden — count badge removed per request */
  font-size: 0.78rem; font-weight: 600;
  color: var(--ac-orange);
  font-variant-numeric: tabular-nums;
  background: var(--ac-orange-soft);
  padding: 4px 12px; border-radius: 999px;
}

.ac-tile-grid {
  display: grid; gap: 6px;
  grid-template-columns: 1fr;
}
/* Two columns on tablets/laptops, three on wide screens. The lone
   trailing tile of an odd-count track spans the full row, so the grid
   never leaves an empty hole beside it. Ranges don't overlap, so each
   width resolves to exactly one column count. */
@media (min-width: 760px) and (max-width: 1199.98px) {
  .ac-tile-grid { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .ac-tile-grid > .ac-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .ac-tile-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px 12px; }
  .ac-tile-grid > .ac-tile:nth-child(3n+1):last-child { grid-column: 1 / -1; }
}

.ac-tile {
  position: relative;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left; cursor: pointer;
  font-family: inherit;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  overflow: hidden;
  min-height: 60px;
}
.ac-tile:hover {
  border-color: var(--ac-orange);
  background: #fffaf3;
  transform: translateX(2px);
}
/* All-courses grid only: pack the row left so the status + launch
   controls sit right after the title instead of stranded at the far
   edge. Flex (overriding the base grid) lets the title ellipsis-
   truncate while the controls keep their natural size. The suggested-
   next strip (.ac-suggested-grid) is not matched, so it is unaffected. */
.ac-tile-grid .ac-tile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ac-tile-grid .ac-tile > .ac-row-icon { flex: 0 0 44px; }
/* row-body grows to fill — pushes the Start/Continue button to the far right */
.ac-tile-grid .ac-tile > .ac-row-body { flex: 1 1 auto; min-width: 0; }
.ac-tile-grid .ac-tile > .ac-row-status,
.ac-tile-grid .ac-tile > .ac-launch-row { flex: 0 0 auto; margin-left: auto; }
.ac-tile.is-coming {
  background: #fafbfc;
  opacity: 0.78;
}
.ac-tile.is-coming:hover { opacity: 1; background: #fafbfc; }
.ac-tile.is-hidden { display: none; }

.ac-row-icon {
  width: 44px; height: 44px;             /* was 32px — larger so the icon reads at-a-glance */
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem;                    /* was 1rem — proportional to the larger container */
}
.ac-tile.is-coming .ac-row-icon {
  background: var(--ac-line-soft); color: var(--ac-muted);
}
.ac-row-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ac-row-title {
  font-size: 0.86rem; font-weight: 600;
  color: var(--ac-navy);
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-row-sub {
  font-size: 0.75rem; color: var(--ac-muted);
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-row-live {
  background: #d4edda; color: #155724;
  font-size: 0.75rem; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.ac-row-mand {
  background: #fde7e9; color: #a01726;
  font-size: 0.62rem; font-weight: 800;
  padding: 1px 7px; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.ac-row-status {
  font-size: 0.75rem; font-weight: 700;
  color: var(--ac-navy);
  background: var(--ac-line-soft);
  padding: 4px 10px; border-radius: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ac-tile[data-status="complete"] .ac-row-status {
  background: #d4edda; color: #155724;
}
.ac-tile[data-status="in-progress"] .ac-row-status {
  background: var(--ac-orange-soft); color: #8a3a00;
}
.ac-tile[data-status="coming"] .ac-row-status {
  background: #ede7f6; color: #5e35b1;
}

.ac-tile-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ac-tile-dot.dot-done { background: #2e8540; }
.ac-tile-dot.dot-prog { background: var(--ac-orange); }
.ac-tile-dot.dot-new { background: #ced4da; }
.ac-tile-dot.dot-coming { background: #b39ddb; }

.ac-tile-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: transparent;
  display: block;
}
.ac-tile-bar > span {
  display: block; height: 100%;
  background: var(--ac-orange);
}

/* The catalogue is now split into theme tabs, so the per-audience super
   heading ("For officers & practitioners" + its catch-all subtitle) is
   redundant clutter — the active tab already names the context. Hide it
   inside the catalogue only (Pathways still uses .ac-aud-head). */
#acTracksCompact .ac-aud-head { display: none; }

/* Filter pills row inside catalogue (legacy — chip bar retired) */
.ac-view-catalogue .ac-filter-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 4px;
}
.ac-view-catalogue .ac-pill {
  padding: 5px 11px; border-radius: 12px;
  font-size: 0.76rem;
}
.ac-view-catalogue .ac-pill i { margin-right: 4px; font-size: 0.78rem; }

/* ===== Detail drawer ===== */
.ac-drawer {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end;
}
.ac-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 37, 64, 0); cursor: pointer;
  transition: background 0.22s;
}
.ac-drawer.is-open .ac-drawer-backdrop { background: rgba(10, 37, 64, 0.42); }
.ac-drawer-panel {
  position: relative;
  background: var(--ac-card);
  width: min(560px, 96vw);
  height: 100%;
  overflow-y: auto;
  padding: 28px 32px 36px 32px;
  box-shadow: -16px 0 48px rgba(10,37,64,0.18);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ac-drawer.is-open .ac-drawer-panel { transform: translateX(0); }

.ac-dr-close {
  position: absolute; top: 16px; right: 18px;
  background: var(--ac-line-soft); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; color: var(--ac-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.ac-dr-close:hover { background: var(--ac-line); }

.ac-dr-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ac-orange);
  font-weight: 700; margin-bottom: 10px;
}
.ac-dr-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
}
.ac-dr-head h2 {
  margin: 0; font-size: 1.4rem; font-weight: 700;
  color: var(--ac-navy); letter-spacing: -0.01em;
  line-height: 1.2;
}
.ac-dr-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ac-dr-icon-pw {
  background: linear-gradient(135deg, var(--ac-navy) 0%, #1a4775 100%);
  color: var(--ac-orange);
}

.ac-dr-tag {
  font-size: 0.95rem; color: var(--ac-text);
  font-style: italic;
  margin: 0 0 14px 0;
}

.ac-dr-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0 16px 0;
}
.ac-dr-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ac-line-soft);
  color: var(--ac-text);
  padding: 4px 10px; border-radius: 11px;
  font-size: 0.75rem; font-weight: 500;
}
.ac-dr-pill i { color: var(--ac-orange); font-size: 0.82rem; }
.ac-dr-pill.live { background: #d4edda; color: #155724; }
.ac-dr-pill.live i { color: #155724; }
.ac-dr-pill.mandatory { background: #fde7e9; color: #a01726; }
.ac-dr-pill.mandatory i { color: #a01726; }
.ac-dr-pill.status-complete { background: #d4edda; color: #155724; }
.ac-dr-pill.status-in-progress { background: var(--ac-orange-soft); color: #8a3a00; }
.ac-dr-pill.status-coming { background: #ede7f6; color: #5e35b1; }
.ac-dr-pill.status-not-started { background: var(--ac-line-soft); color: var(--ac-muted); }
.ac-dr-pill.status-started { background: var(--ac-line-soft); color: var(--ac-muted); }

.ac-dr-desc {
  font-size: 0.94rem; line-height: 1.6;
  color: var(--ac-text);
  margin: 0 0 18px 0;
}

.ac-dr-progress-wrap { margin-bottom: 18px; }
.ac-dr-progress {
  height: 6px; background: var(--ac-line);
  border-radius: 3px; overflow: hidden;
  margin-bottom: 6px;
}
.ac-dr-progress > div {
  height: 100%; background: var(--ac-orange);
  transition: width 0.4s;
}
.ac-dr-progress-text {
  font-size: 0.78rem; color: var(--ac-muted);
}

.ac-dr-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ac-navy); color: #ffffff;
  padding: 12px 22px; border-radius: 7px;
  text-decoration: none; font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.ac-dr-cta:hover { background: #0d2e4f; }
.ac-dr-cta i { color: var(--ac-orange); }
.ac-dr-cta.is-disabled {
  background: var(--ac-line-soft); color: var(--ac-muted);
  pointer-events: none;
}
.ac-dr-start-pathway {
  font-family: inherit; cursor: pointer;
  margin-bottom: 16px;
}
.ac-dr-pw-joined {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: #2e8540;
  margin-bottom: 16px;
}

.ac-dr-section {
  border-top: 1px solid var(--ac-line);
  margin-top: 24px; padding-top: 18px;
}
.ac-dr-section-head {
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700;
  color: var(--ac-muted);
  margin-bottom: 10px;
}
.ac-dr-link {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: var(--ac-line-soft); border: none;
  padding: 10px 14px; border-radius: 7px;
  font-family: inherit; font-size: 0.88rem;
  color: var(--ac-navy); font-weight: 500;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s;
}
.ac-dr-link:hover { background: var(--ac-orange-soft); color: #8a3a00; }
.ac-dr-link i:first-child { color: var(--ac-orange); }
.ac-dr-link i:last-child { margin-left: auto; }

.ac-dr-courselist {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.ac-dr-courseitem {
  width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent;
  border-radius: 7px; padding: 8px 10px;
  font-family: inherit; cursor: pointer;
  display: grid;
  grid-template-columns: 22px 22px 1fr auto;
  gap: 10px; align-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.ac-dr-courseitem:hover {
  background: var(--ac-line-soft);
  border-color: var(--ac-line);
}
.ac-dr-courseitem-num {
  width: 22px; height: 22px;
  background: var(--ac-line-soft); color: var(--ac-muted);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ac-dr-courseitem-status { font-size: 1rem; color: var(--ac-muted); }
.status-complete .ac-dr-courseitem-status { color: #2e8540; }
.status-in-progress .ac-dr-courseitem-status { color: var(--ac-orange); }
.status-coming .ac-dr-courseitem-status { color: #b39ddb; }
.ac-dr-courseitem-title {
  font-size: 0.88rem; font-weight: 500;
  color: var(--ac-navy);
}
.ac-dr-courseitem-meta {
  font-size: 0.75rem; color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
}

.ac-dr-cert {
  margin-top: 18px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fff5e9 0%, #ffe8d3 100%);
  border: 1px solid #ffd9b3;
  border-radius: 10px;
  padding: 14px 18px;
}
.ac-dr-cert > i {
  font-size: 2rem; color: var(--ac-orange);
}
.ac-dr-cert-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--ac-navy);
}
.ac-dr-cert-sub {
  font-size: 0.78rem; color: #8a3a00;
}

.ac-dr-signup-nudge {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ac-dr-signup-nudge-text {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--ac-navy); font-weight: 500;
}
.ac-dr-signup-nudge-text i { font-size: 1rem; color: var(--ac-orange); flex-shrink: 0; }

.ac-empty {
  text-align: center; padding: 40px 20px;
  color: var(--ac-muted);
}

@media (max-width: 720px) {
  .ac-hero-slim { flex-direction: column; align-items: flex-start; padding: 18px 22px; }
  .ac-hero-slim .ac-hero-stats { gap: 18px; }
  .ac-toolbar { gap: 10px; }
  .ac-view-btn { padding: 7px 11px; font-size: 0.8rem; }
  .ac-tile-grid { grid-template-columns: 1fr; }
  .ac-drawer-panel { width: 100%; padding: 22px; }
}

/* ===========================================================================
   SIGN-UP GATE — nudge banner, modal, user chip, signup button
   =========================================================================== */

/* Nudge banner */
.ac-nudge {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, #0a2540 0%, #1a4775 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px 12px 16px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.ac-nudge::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.ac-nudge-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--ac-orange); color: #fff;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ac-nudge-body { flex: 1; min-width: 0; }
.ac-nudge-title {
  font-size: 0.9rem; font-weight: 600;
  color: #fff; line-height: 1.3;
}
.ac-nudge-sub {
  font-size: 0.78rem; color: rgba(255,255,255,0.72);
  margin-top: 1px;
}
.ac-nudge-cta {
  background: var(--ac-orange); color: #fff;
  border: none; cursor: pointer;
  padding: 9px 18px; border-radius: 6px;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  position: relative; z-index: 1;
}
.ac-nudge-cta:hover { background: #e56e0c; }
.ac-nudge-dismiss {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); font-size: 1.1rem;
  padding: 4px 6px; border-radius: 4px;
  position: relative; z-index: 1;
}
.ac-nudge-dismiss:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Sign-up button (header, when not signed in) */
.ac-signup-btn {
  background: var(--ac-orange); color: #fff;
  border: none; cursor: pointer;
  padding: 7px 14px; border-radius: 5px;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 10px;
  transition: background 0.15s;
}
.ac-signup-btn:hover { background: #e56e0c; }
.ac-signup-btn i { font-size: 0.95rem; }

/* User chip (header, when signed in) */
.ac-user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ac-line-soft);
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
  margin-right: 10px;
  position: relative;
}
.ac-user-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--ac-orange) 0%, #e56e0c 100%);
  color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.ac-user-text { display: flex; flex-direction: column; line-height: 1.1; }
.ac-user-name {
  font-size: 0.8rem; font-weight: 600;
  color: var(--ac-navy);
  max-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-user-org {
  font-size: 0.75rem; color: var(--ac-muted);
  max-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-user-menu-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--ac-muted); font-size: 0.8rem;
  padding: 4px 6px; border-radius: 4px;
}
.ac-user-menu-btn:hover { color: var(--ac-navy); background: var(--ac-line); }
.ac-user-menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(10,37,64,0.14);
  min-width: 200px;
  padding: 4px;
  z-index: 60;
}
.ac-user-menu button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.85rem;
  color: var(--ac-text);
  padding: 8px 12px; border-radius: 5px;
}
.ac-user-menu button:hover { background: var(--ac-line-soft); color: var(--ac-navy); }
.ac-user-menu button i { color: var(--ac-orange); font-size: 0.95rem; }

/* Sign-up modal */
.ac-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ac-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 37, 64, 0); cursor: pointer;
  transition: background 0.22s;
}
.ac-modal.is-open .ac-modal-backdrop { background: rgba(10, 37, 64, 0.55); }
.ac-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px 28px 36px;
  width: min(480px, 96vw);
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(10,37,64,0.28);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.22s;
}
.ac-modal.is-open .ac-modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.ac-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--ac-line-soft); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; color: var(--ac-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.ac-modal-close:hover { background: var(--ac-line); }
.ac-modal-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ac-orange);
  font-weight: 700; margin-bottom: 8px;
}
.ac-modal-panel h2 {
  margin: 0 0 8px 0; font-size: 1.4rem; font-weight: 700;
  color: var(--ac-navy); letter-spacing: -0.01em;
  line-height: 1.2;
}
.ac-modal-sub {
  margin: 0 0 20px 0; font-size: 0.88rem; line-height: 1.5;
  color: var(--ac-muted);
}

.ac-signup-form { display: flex; flex-direction: column; gap: 12px; }
.ac-field { display: flex; flex-direction: column; gap: 4px; }
.ac-field-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ac-navy);
}
.ac-req { color: var(--ac-orange); }
.ac-field input,
.ac-field select {
  padding: 10px 12px;
  border: 1px solid var(--ac-line);
  border-radius: 6px;
  font-family: inherit; font-size: 0.92rem;
  background: #fff; color: var(--ac-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ac-field input:focus,
.ac-field select:focus {
  outline: none; border-color: var(--ac-orange);
  box-shadow: 0 0 0 3px rgba(253,126,20,0.15);
}
.ac-field-check {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.82rem; color: var(--ac-text);
  line-height: 1.45;
  background: var(--ac-orange-soft);
  border: 1px solid #ffd9b3;
  border-radius: 7px; padding: 10px 12px;
  cursor: pointer;
}
.ac-field-check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--ac-orange); }

.ac-signup-error {
  background: #fdecea; color: #b71c1c;
  border: 1px solid #f5c6c0;
  font-size: 0.84rem;
  padding: 9px 12px; border-radius: 6px;
}
.ac-signup-submit {
  background: var(--ac-navy); color: #fff;
  border: none; cursor: pointer;
  padding: 12px 18px; border-radius: 7px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
  transition: background 0.15s;
}
.ac-signup-submit:hover:not(:disabled) { background: #0d2e4f; }
.ac-signup-submit:disabled { opacity: 0.7; cursor: wait; }
.ac-signup-submit i { color: var(--ac-orange); }
.ac-signup-foot {
  font-size: 0.75rem; color: var(--ac-muted);
  line-height: 1.5; text-align: center;
  margin-top: 4px;
}
.ac-signup-foot a { color: var(--ac-navy); }

@media (max-width: 720px) {
  .ac-modal-panel { padding: 24px 22px 20px 22px; }
  .ac-user-name, .ac-user-org { max-width: 100px; }
  .ac-nudge { flex-wrap: wrap; }
}

/* ===== Today's PWLB rates modal ===== */
.ac-modal-rates .ac-rates-panel {
  width: min(1100px, 96vw);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Navy gradient header bar — matches the dashboard tile-header look */
.ac-rates-head {
  flex-shrink: 0;
  padding: 18px 28px 16px;
  background: linear-gradient(120deg, #0a2540 0%, #143659 60%, #1a4775 100%);
  color: #ffffff;
  border-bottom: none;
  margin-bottom: 0;
}
.ac-rates-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-orange);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.ac-rates-eyebrow i { font-size: 0.85rem; }
.ac-rates-head h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.ac-rates-head .ac-rates-no,
.ac-rates-head .ac-rates-meta,
.ac-rates-head small,
.ac-rates-head p { color: rgba(255, 255, 255, 0.85) !important; }
.ac-modal-rates .ac-rates-body { padding: 14px 28px 18px; overflow-y: auto; }
.ac-modal-rates .ac-modal-close {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}
.ac-modal-rates .ac-modal-close:hover {
  background: rgba(255, 255, 255, 0.20);
}
.ac-rates-no {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--ac-orange);
  color: #fff;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 1.2rem;
}
.ac-rates-when {
  font-size: 0.88rem;
  color: var(--ac-muted);
  margin-bottom: 8px;
}
.ac-rates-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--ac-muted);
}
.ac-rates-key span { display: inline-flex; align-items: center; gap: 4px; }
.ac-rates-body {
  flex: 1;
  overflow: auto;
  margin: 0 -8px;
}
.ac-rates-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--ac-muted);
  font-size: 0.92rem;
}
.ac-rates-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ac-muted);
  font-size: 0.92rem;
}
.ac-spin { display: inline-block; animation: ac-spin 0.9s linear infinite; margin-right: 6px; }
@keyframes ac-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.ac-rates-table-wrap {
  padding: 0 8px;
}
.ac-rates-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  table-layout: fixed;
}
.ac-rates-table thead th {
  position: sticky;
  background: #fff;
  z-index: 2;
  text-align: center;
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-rates-table thead .ac-rt-section th { top: 0; }
.ac-rates-table thead .ac-rt-profile th { top: 32px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ac-muted); }
.ac-rt-period-h { top: 0 !important; left: 0; z-index: 3 !important; background: #fff !important; width: 76px; }
.ac-rt-sec-new {
  background: #f0f7ff !important;
  color: #1e3a8a;
  border-bottom: 2px solid #3b82f6 !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-rt-sec-rep {
  background: #fff7ed !important;
  color: #9a3412;
  border-bottom: 2px solid var(--ac-orange) !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-rt-sec-new i, .ac-rt-sec-rep i { margin-right: 4px; }
.ac-rates-table thead .ac-rt-new { color: #1e3a8a; background: #f0f7ff !important; }
.ac-rates-table thead .ac-rt-rep { color: #9a3412; background: #fff7ed !important; }
.ac-rates-table tbody tr:nth-child(odd) td { background: #fafbfc; }
.ac-rates-table tbody tr:hover td { background: #f3f4f6; }
.ac-rates-table tbody tr:hover .ac-rt-period { background: #f3f4f6; }
.ac-rt-period {
  position: sticky;
  left: 0;
  background: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ac-navy);
  text-align: left;
  padding: 6px 8px;
  border-right: 1px solid var(--ac-line-soft, #e5e7eb);
  white-space: nowrap;
  z-index: 1;
}
.ac-rt-cell {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid var(--ac-line-soft, #f1f3f5);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  line-height: 1.2;
}
.ac-rt-cell.ac-rt-new { border-left: 1px solid var(--ac-line-soft, #f1f3f5); }
.ac-rt-cell.ac-rt-rep { border-left: 1px solid var(--ac-line-soft, #f1f3f5); }
.ac-rt-cell.ac-rt-new:first-of-type, .ac-rt-cell.ac-rt-rep:first-of-type { border-left: 2px solid var(--ac-line, #d1d5db); }
.ac-rt-r { display: block; }
.ac-rt-c { display: block; font-size: 0.75rem; margin-top: 1px; opacity: 0.85; }
.ac-rt-rate { font-weight: 700; color: var(--ac-navy); font-size: 0.92rem; }
.ac-rt-rate-pct { color: var(--ac-muted); font-size: 0.75rem; margin-left: 1px; }
.ac-rt-rate-na { color: #c1c7cd; font-size: 0.92rem; font-weight: 500; }
.ac-rt-chg-up { color: #b91c1c; font-weight: 600; font-size: 0.75rem; }
.ac-rt-chg-dn { color: #15803d; font-weight: 600; font-size: 0.75rem; }
.ac-rt-chg-flat { color: var(--ac-muted); font-weight: 500; font-size: 0.75rem; }
.ac-rt-chg-none { color: #c1c7cd; font-size: 0.75rem; }
/* Attractiveness shading is set inline (continuous green→white→red gradient).
   Override row-stripe so the inline style wins on odd rows. */
.ac-rates-table tbody tr:nth-child(odd) td[style*="rgba"] { background-color: inherit; }
.ac-rates-table tbody tr:hover td { filter: brightness(0.97); }

/* Legend gradient bar */
.ac-rt-attr-grad {
  position: relative;
  display: inline-block;
  width: 220px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(22,163,74,0.55) 0%, rgba(255,255,255,0) 50%, rgba(220,38,38,0.55) 100%);
  border: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
  margin: 0 8px;
}
.ac-rt-attr-grad-l, .ac-rt-attr-grad-r {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.ac-rt-attr-grad-l { left: 6px; color: #14532d; }
.ac-rt-attr-grad-r { right: 6px; color: #7f1d1d; }

/* Multi-row legend */
.ac-rates-keys { display: flex; flex-direction: column; gap: 4px; }
.ac-rates-key-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.75rem; color: var(--ac-muted);
  align-items: center;
}
.ac-rates-key-row span { display: inline-flex; align-items: center; gap: 4px; }
.ac-rates-key-lbl {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ac-navy); min-width: 96px;
}
.ac-rates-key-note { font-style: italic; color: #9ca3af; }

/* Toolbar above table */
.ac-rates-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 8px 12px;
  border-bottom: 1px solid var(--ac-line-soft, #f1f3f5);
  margin-bottom: 6px;
}
.ac-rates-mode {
  font-size: 0.82rem; color: var(--ac-muted);
}
.ac-rates-mode b { color: var(--ac-navy); }
.ac-rates-toggle {
  font: inherit; font-size: 0.82rem; font-weight: 600;
  background: var(--ac-orange-soft, #fff7ed);
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.ac-rates-toggle:hover { background: #ffe4c8; }
.ac-rates-toggle i { font-size: 0.95rem; }

.ac-rates-foot {
  flex-shrink: 0;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--ac-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ac-muted);
}
.ac-rates-foot i { color: var(--ac-orange); margin-right: 4px; }
.ac-rates-foot a { color: var(--ac-orange); text-decoration: none; }
.ac-rates-foot a:hover { text-decoration: underline; }

/* Make the trigger CTA look like a button (it was an <a> before) */
button.ac-tr-cta {
  font: inherit;
  border: none;
  cursor: pointer;
}

@media (max-width: 720px) {
  .ac-modal-rates .ac-rates-panel { padding: 18px 14px 14px; }
  .ac-rates-table { font-size: 0.78rem; }
  .ac-rt-period-h { width: 60px; }
  .ac-rt-period { font-size: 0.75rem; padding: 5px 6px; }
  .ac-rt-rate { font-size: 0.84rem; }
  .ac-rates-key { font-size: 0.75rem; gap: 10px; }
}

/* ===========================================================
   Coming-soon banner (top of academy main, every view).
   Soft orange-tinted bar with a small icon + heading + subtext.
   =========================================================== */
.ac-coming-soon-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 18px 0 28px;
  background: linear-gradient(120deg, #fff5e9 0%, #fff9f1 100%);
  border: 1px solid rgba(253, 126, 20, 0.30);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.08);
}

.ac-coming-soon-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--ac-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ac-coming-soon-body { flex: 1 1 auto; min-width: 0; }

.ac-coming-soon-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ac-navy);
  letter-spacing: -0.005em;
}

.ac-coming-soon-sub {
  margin-top: 2px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ac-text);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .ac-coming-soon-banner { padding: 12px 14px; gap: 10px; }
  .ac-coming-soon-icon  { width: 32px; height: 32px; font-size: 0.95rem; }
  .ac-coming-soon-title { font-size: 0.88rem; }
  .ac-coming-soon-sub   { font-size: 0.78rem; }
}

/* The legacy audience gate stays retired; the header audience switch is
   re-enabled (officers can preview the councillor track and vice-versa). */
#acAudienceGate,
.ac-user-menu [data-user-action="switch-audience"] { display: none !important; }

/* ===== Full-value hero (anonymous visitors) ===== */
.ac-hero-full {
  display: flex; flex-direction: column;
  padding: 52px 44px 44px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #0a2540 0%, #143659 60%, #1a4775 100%);
}
.ac-hero-full::after {
  width: 400px; height: 400px;
  right: -120px; top: -120px;
}
.ac-hero-full h1 {
  font-size: 2.6rem; margin: 6px 0 16px;
  max-width: 800px;
}
.ac-hero-full .ac-hero-sub {
  font-size: 1.05rem; max-width: 620px; margin: 0 0 28px;
}
.ac-hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}
.ac-hero-cta-primary {
  background: var(--ac-orange); color: #fff;
  border: none; cursor: pointer;
  padding: 12px 24px; border-radius: 7px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.ac-hero-cta-primary:hover { background: #e56e0c; color: #fff; }
.ac-hero-cta-secondary {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.3); cursor: pointer;
  padding: 12px 24px; border-radius: 7px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.ac-hero-cta-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }
.ac-hero-stats-row {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ac-hero-stats-row .ac-stat-num { font-size: 1.8rem; }

/* Signed-in welcome bar replaces full hero */
/* ===== Signed-in welcome hero ===== */
.ac-welcome-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0e3460 100%);
  color: #fff; border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  position: relative; overflow: hidden; flex-wrap: wrap;
}
.ac-welcome-hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(253,126,20,0.18) 0%, transparent 68%);
  pointer-events: none;
}
.ac-welcome-hero-left { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.ac-welcome-eyebrow {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ac-orange, #fd7e14);
  margin-bottom: 8px;
}
.ac-welcome-name {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 6px;
}
.ac-welcome-sub {
  font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px;
}
.ac-welcome-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ac-welcome-resume-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ac-orange, #fd7e14); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.ac-welcome-resume-btn:hover { background: #e06b00; color: #fff; }
.ac-welcome-progress-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 8px;
  padding: 10px 18px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.ac-welcome-progress-btn:hover { background: rgba(255,255,255,0.22); }
.ac-welcome-stats {
  display: flex; gap: 24px; flex-shrink: 0; position: relative; z-index: 1;
  flex-wrap: wrap; align-items: center;
}
.ac-welcome-stat { text-align: center; }
.ac-welcome-stat-num {
  display: block; font-size: 1.8rem; font-weight: 800;
  color: var(--ac-orange, #fd7e14); line-height: 1;
}
.ac-welcome-stat-label {
  display: block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 5px; line-height: 1.3;
}
@media (max-width: 600px) {
  .ac-welcome-hero { padding: 20px 18px; }
  .ac-welcome-name { font-size: 1.25rem; }
  .ac-welcome-stats { gap: 16px; }
  .ac-welcome-stat-num { font-size: 1.35rem; }
}

/* ===== Credibility strip ===== */
.ac-cred-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-bottom: 28px;
  font-size: 0.82rem; color: var(--ac-muted);
}
.ac-cred-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 18px;
}
.ac-cred-item i { color: var(--ac-orange); font-size: 0.9rem; }
.ac-cred-sep {
  color: var(--ac-line); font-size: 1rem;
  display: inline-block; width: 1px; height: 16px;
  background: var(--ac-line);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .ac-cred-strip { gap: 4px; }
  .ac-cred-sep { display: none; }
  .ac-cred-item { padding: 2px 10px; }
}

/* ===== Role chooser (anonymous visitors) ===== */
.ac-role-chooser {
  margin-bottom: 28px;
}
.ac-role-chooser-head {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ac-muted); font-weight: 700;
  margin-bottom: 12px;
}
.ac-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ac-role-tile {
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 16px 18px;
  text-align: left; cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ac-role-tile:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 4px 14px rgba(10,37,64,0.08);
  transform: translateY(-1px);
}
.ac-role-tile-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.ac-role-tile-body { flex: 1; min-width: 0; }
.ac-role-tile-title {
  display: block;
  font-size: 0.9rem; font-weight: 600; color: var(--ac-navy);
  line-height: 1.3; margin-bottom: 3px;
}
.ac-role-tile-sub {
  display: block;
  font-size: 0.75rem; color: var(--ac-muted); line-height: 1.4;
}
@media (max-width: 820px) {
  .ac-role-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ac-role-grid { grid-template-columns: 1fr; }
  .ac-hero-full { padding: 32px 22px 28px; }
  .ac-hero-full h1 { font-size: 1.8rem; }
}

/* ===== Resume strip (signed-in, in-progress courses) ===== */
.ac-resume-strip {
  margin-bottom: 24px;
}
.ac-resume-head {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ac-muted); font-weight: 700;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.ac-resume-head i { color: var(--ac-orange); }
.ac-resume-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.ac-resume-card {
  background: var(--ac-card);
  border: 1px solid #ffd9b3;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.ac-resume-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ac-orange);
}
.ac-resume-card-top {
  display: flex; align-items: flex-start; gap: 10px;
}
.ac-resume-card-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.ac-resume-card-body { flex: 1; min-width: 0; }
.ac-resume-card-context {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ac-muted); font-weight: 600; margin-bottom: 2px;
}
.ac-resume-card-title {
  font-size: 0.92rem; font-weight: 600; color: var(--ac-navy);
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-resume-card-progress {
  display: flex; align-items: center; gap: 10px;
}
.ac-resume-card-bar {
  flex: 1; height: 4px; background: var(--ac-line); border-radius: 2px; overflow: hidden;
}
.ac-resume-card-bar-fill {
  height: 100%; background: var(--ac-orange);
  transition: width 0.4s;
}
.ac-resume-card-pct {
  font-size: 0.75rem; font-weight: 700; color: #8a3a00;
  white-space: nowrap;
}
.ac-resume-card-modules {
  font-size: 0.75rem; color: #666; margin-top: 4px;
}
.ac-resume-card-actions { display: flex; gap: 8px; }
.ac-resume-card-actions .ac-launch-lg {
  flex: 1; justify-content: center; font-size: 0.85rem; padding: 8px 12px;
}
@media (max-width: 560px) {
  .ac-resume-cards { grid-template-columns: 1fr; }
}

/* ===== Resume pill in hubbar ===== */
.ac-resume-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ac-orange-soft);
  border: 1px solid #ffd9b3;
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-size: 0.8rem; font-weight: 600;
  color: #8a3a00;
  text-decoration: none;
  max-width: 220px;
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ac-resume-pill:hover {
  background: #ffe4c8; border-color: var(--ac-orange); color: #6b2d00;
}
.ac-resume-pill i { color: var(--ac-orange); font-size: 0.9rem; flex-shrink: 0; }
.ac-resume-pill-title {
  flex: 1; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Pathway row: Free-to-start badge ===== */
.ac-pw-free-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #d4edda; color: #155724;
  padding: 2px 7px; border-radius: 9px;
  white-space: nowrap; flex-shrink: 0;
}

/* ── My progress view ─────────────────────────────────────────── */
.ac-progress-view { padding: 24px 0 40px; }

.ac-progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 640px) { .ac-progress-stats { grid-template-columns: repeat(2, 1fr); } }

.ac-progress-stat {
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.ac-progress-stat-num {
  font-size: 2rem; font-weight: 700; color: var(--ac-navy); line-height: 1;
}
.ac-progress-stat-label {
  font-size: 0.78rem; color: var(--ac-muted);
}

.ac-progress-section {
  margin-bottom: 0;
  padding: 20px 0;
  border-top: 1px solid var(--ac-line-soft);
}
.ac-progress-section:first-child { border-top: none; padding-top: 0; }
.ac-progress-section-head {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ac-muted);
  margin-bottom: 4px;
}
.ac-progress-section-sub {
  font-size: 0.78rem; color: var(--ac-muted); margin-bottom: 10px; font-style: italic;
}
.ac-progress-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 4px; padding: 2px 7px; vertical-align: middle; margin-left: 6px;
}
.ac-progress-badge--started {
  background: #e8f4fd; color: #1a6fa8; border: 1px solid #b3d7f0;
}
.ac-progress-badge--in-progress {
  background: #fff3e8; color: #c45d00; border: 1px solid #fcd5a8;
}

.ac-progress-course-list, .ac-progress-cert-list {
  display: flex; flex-direction: column; gap: 8px;
}

.ac-progress-course-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.ac-progress-course-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.ac-progress-course-icon--done {
  background: #e6f4ea; color: #2e7d32;
}
.ac-progress-course-body { flex: 1; min-width: 0; }
.ac-progress-course-title {
  font-size: 0.88rem; font-weight: 600; color: var(--ac-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-progress-course-context {
  font-size: 0.75rem; color: var(--ac-muted); margin-top: 1px;
}
.ac-asg-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 1px 8px; border-radius: 999px; letter-spacing: .02em;
  margin-right: 8px; vertical-align: middle;
}
.ac-asg-badge--required { background: #fff3e8; color: #b5560a; }
.ac-asg-badge--optional { background: var(--ac-line-soft); color: var(--ac-muted); }
.ac-asg-badge--mandatory { background: #fdecec; color: #b3261e; }
.ac-asg-badge--council { background: #e8f1fb; color: #1a4775; }
.ac-progress-locked-note {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; color: var(--ac-muted); white-space: nowrap;
}
.ac-asg-deadline { vertical-align: middle; }
.ac-asg-deadline--over { color: #b3261e; font-weight: 600; }
.ac-progress-bar-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.ac-progress-bar {
  flex: 1; height: 5px; background: var(--ac-line); border-radius: 3px; overflow: hidden;
}
.ac-progress-bar-fill {
  height: 100%; background: var(--ac-orange); border-radius: 3px;
}
.ac-progress-bar-pct {
  font-size: 0.72rem; color: var(--ac-muted); flex-shrink: 0;
}
.ac-progress-course-btn {
  flex-shrink: 0;
  font-size: 0.8rem; font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--ac-orange); color: #fff;
  text-decoration: none; border: none; cursor: pointer;
}
.ac-progress-course-btn--review {
  background: transparent; color: var(--ac-navy);
  border: 1px solid var(--ac-line);
}
.ac-progress-course-btn--review:hover { border-color: var(--ac-orange); color: var(--ac-orange); }
.ac-progress-course-btn--resume {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ac-orange); color: #fff;
  font-weight: 700; letter-spacing: 0.01em;
}
.ac-progress-course-btn--resume:hover { background: #e06b00; }
.ac-progress-module-label {
  font-style: italic; color: var(--ac-orange);
}

.ac-progress-cert-row {
  display: flex; align-items: center; gap: 12px;
  background: #fffbf5;
  border: 1px solid #f5ddb0;
  border-radius: 10px;
  padding: 12px 14px;
}
.ac-progress-cert-icon {
  font-size: 1.5rem; color: var(--ac-orange); flex-shrink: 0;
}
.ac-progress-cert-title {
  font-size: 0.88rem; font-weight: 600; color: var(--ac-navy);
}
.ac-progress-cert-sub {
  font-size: 0.75rem; color: var(--ac-muted); margin-top: 2px;
}

.ac-progress-section-head-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.ac-cpd-month-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--ac-muted); font-weight: 500;
}
.ac-cpd-month-select {
  font-size: 0.78rem; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--ac-line); background: var(--ac-card);
  color: var(--ac-navy); cursor: pointer;
}
.ac-cpd-year-list { display: flex; flex-direction: column; gap: 8px; }

/* Year block — wraps the toggle pill + expandable course list */
.ac-cpd-year-block { border: 1px solid var(--ac-line); border-radius: 8px; overflow: hidden; }

/* Toggle pill (replaces the old static row) */
.ac-cpd-year-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ac-card);
  padding: 10px 16px;
  width: 100%; text-align: left;
  border: none; cursor: pointer;
  transition: background 0.15s;
}
.ac-cpd-year-row:hover { background: #f0f4fb; }
.ac-cpd-year-toggle--open { background: #eef3fb; }

.ac-cpd-year-left { display: flex; align-items: center; gap: 8px; }

/* Chevron — rotates when expanded */
.ac-cpd-chevron {
  font-size: 0.75rem; color: var(--ac-muted);
  transition: transform 0.2s;
}
.ac-cpd-year-toggle--open .ac-cpd-chevron { transform: rotate(90deg); }

.ac-cpd-year-label { font-size: 0.88rem; font-weight: 600; color: var(--ac-navy); }
.ac-cpd-year-count {
  font-size: 0.75rem; color: var(--ac-muted);
  background: #edf1f7; border-radius: 20px; padding: 1px 8px;
}
.ac-cpd-year-hours { font-size: 0.88rem; font-weight: 700; color: var(--ac-orange); }
.ac-cpd-export-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; font-weight: 700; color: var(--ac-navy);
  background: #fff; border: 1px solid var(--ac-line); border-radius: 999px;
  padding: 4px 10px; margin-left: 12px; cursor: pointer;
}
.ac-cpd-export-btn:hover { border-color: var(--ac-orange); color: var(--ac-orange); }
.ac-cpd-year-empty { font-size: 0.82rem; color: var(--ac-muted); padding: 8px 0; }

/* Expandable course list inside a year block */
.ac-cpd-course-list {
  border-top: 1px solid var(--ac-line);
  background: #fafbfd;
  padding: 6px 0;
}
.ac-cpd-course-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #eef1f6;
}
.ac-cpd-course-row--indented {
  padding-left: 44px;
  border-left: 2px solid var(--ac-line);
  margin-left: 16px;
}
.ac-cpd-pw-group { border-bottom: 1px solid #eef1f6; }
.ac-cpd-pw-group:last-child { border-bottom: none; }
.ac-cpd-pw-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 16px;
  background: none; border: none; cursor: pointer; text-align: left;
}
.ac-cpd-pw-header:hover { background: #f5f7fb; }
.ac-cpd-pw-header-left { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.ac-cpd-pw-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ac-cpd-pw-icon { color: var(--ac-navy); font-size: 0.8rem; }
.ac-cpd-pw-title { font-size: 0.84rem; font-weight: 700; color: var(--ac-navy); }
.ac-cpd-course-row:last-child { border-bottom: none; }
.ac-cpd-course-icon {
  flex-shrink: 0;
  color: #2e7d32; font-size: 0.9rem;
}
.ac-cpd-course-body { flex: 1; min-width: 0; }
.ac-cpd-course-title {
  font-size: 0.84rem; font-weight: 600; color: var(--ac-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-cpd-course-pathway { font-size: 0.74rem; color: var(--ac-muted); margin-top: 1px; }
.ac-cpd-course-date {
  font-size: 0.72rem; color: var(--ac-muted); margin-top: 2px;
  display: flex; align-items: center; gap: 4px;
}
.ac-cpd-course-time {
  flex-shrink: 0; font-size: 0.78rem; font-weight: 700;
  color: var(--ac-orange); white-space: nowrap;
}
.ac-cpd-course-review {
  flex-shrink: 0; align-self: center; margin-left: 8px;
  font-size: 0.75rem !important;
}

.ac-progress-course-date {
  font-size: 0.72rem; color: var(--ac-muted); margin-top: 3px;
  display: flex; align-items: center; gap: 4px;
}

/* ── Progress view — collapsible section toggle ───────────────────── */
.ac-progress-section-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 0;
  margin-bottom: 0; text-align: left;
}
.ac-progress-section-toggle:hover .ac-progress-section-head { color: var(--ac-orange); }
.ac-progress-section-toggle-meta {
  font-size: 0.78rem; color: var(--ac-muted); font-weight: 400; margin-left: 6px;
}
.ac-progress-section-chev {
  font-size: 0.8rem; color: var(--ac-muted);
  transition: transform .2s; flex-shrink: 0;
}
.ac-progress-section-toggle[aria-expanded="true"] .ac-progress-section-chev {
  transform: rotate(90deg);
}

/* ── Progress view — pathway cards ───────────────────────────────── */
.ac-pw-card-list { display: flex; flex-direction: column; gap: 12px; }

.ac-pw-card {
  position: relative;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 14px 16px 12px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.ac-pw-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ac-orange) 0%, #ffb877 100%);
}
.ac-pw-card--complete::before { background: linear-gradient(180deg, #2e8540 0%, #6dd382 100%); }
.ac-pw-card:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 6px 18px rgba(10,37,64,0.08);
  transform: translateX(2px);
}
.ac-pw-card--complete:hover { border-color: #2e8540; }

.ac-pw-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.ac-pw-card-left  { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.ac-pw-card-right { flex-shrink: 0; }

.ac-pw-status-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.ac-pw-status-icon--done { color: #2e8540; }
.ac-pw-status-icon--prog { color: var(--ac-orange); }

.ac-pw-card-info { min-width: 0; }
.ac-pw-card-title {
  font-size: 0.9rem; font-weight: 700; color: var(--ac-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-pw-card-cert-name {
  font-size: 0.75rem; color: var(--ac-muted); margin-top: 2px;
}
.ac-pw-card-count {
  font-size: 0.75rem; color: var(--ac-muted); white-space: nowrap;
}

.ac-pw-progress-wrap {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.ac-pw-progress-bar {
  flex: 1; height: 6px; background: var(--ac-line); border-radius: 3px; overflow: hidden;
}
.ac-pw-progress-fill {
  height: 100%; background: var(--ac-orange); border-radius: 3px; transition: width .3s;
}
.ac-pw-card--complete .ac-pw-progress-fill { background: #2e8540; }
.ac-pw-progress-pct {
  font-size: 0.72rem; font-weight: 600; color: var(--ac-muted); flex-shrink: 0; min-width: 32px; text-align: right;
}

.ac-pw-card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.ac-pw-card-cpd {
  font-size: 0.78rem; color: var(--ac-muted);
  display: flex; align-items: center; gap: 5px;
}
.ac-pw-card-actions { display: flex; gap: 8px; }

.ac-pw-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 14px; border-radius: 6px;
  text-decoration: none; cursor: pointer; border: none;
  white-space: nowrap;
}
.ac-pw-btn--resume {
  background: var(--ac-orange); color: #fff;
}
.ac-pw-btn--resume:hover { background: #e06b00; }
.ac-pw-btn--cert {
  background: transparent; color: var(--ac-navy);
  border: 1px solid var(--ac-line);
}
.ac-pw-btn--cert:hover { border-color: var(--ac-navy); background: var(--ac-line-soft); }
.ac-pw-btn--join {
  background: transparent; color: var(--ac-orange);
  border: 1px solid var(--ac-orange); font-size: 0.74rem; padding: 4px 10px;
}
.ac-pw-btn--join:hover { background: var(--ac-orange); color: #fff; }

/* ── Learning Record — Join Related Pathways prompt ──────────────────── */
.ac-cpd-related-pathways {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.ac-cpd-related-pathways-label {
  font-size: 0.72rem; font-weight: 700; color: var(--ac-muted);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.ac-cpd-pw-pills {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: middle;
}
.ac-cpd-pw-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  background: var(--ac-line-soft, #f0f2f5); color: var(--ac-muted, #6c757d);
  border: 1px solid var(--ac-line, #e0e4ea);
  cursor: pointer; transition: background .15s, color .15s;
  font-family: inherit; line-height: 1.4;
}
.ac-cpd-pw-pill i { font-size: 0.7rem; }
.ac-cpd-pw-pill:hover { background: var(--ac-navy, #0a2540); color: #fff; border-color: var(--ac-navy, #0a2540); }
.ac-cpd-pw-pill--joined {
  background: transparent; border-color: var(--ac-line, #e0e4ea);
  color: var(--ac-muted, #6c757d); cursor: default;
}
.ac-cpd-pw-pill--joined:hover { background: transparent; color: var(--ac-muted, #6c757d); border-color: var(--ac-line, #e0e4ea); }

.ac-quit-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px; border-radius: 6px;
  background: none; border: 1px solid var(--ac-line);
  color: var(--ac-muted); font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  margin-left: 4px;
}
.ac-quit-btn:hover { background: var(--ac-line-soft); color: var(--ac-navy); border-color: var(--ac-line); }
.ac-quit-btn--pathway { align-self: center; }

@media (max-width: 500px) {
  .ac-pw-card-title { white-space: normal; }
  .ac-pw-card-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Entry blocks (pathway vs build-your-own) ─────────────────── */
.ac-entry-block {
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  padding: 20px 24px 24px;
  margin-bottom: 0;
}
.ac-entry-block-header { margin-bottom: 16px; }
.ac-entry-block-title {
  font-size: 1rem; font-weight: 700; color: var(--ac-navy);
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.ac-entry-block-title i { color: var(--ac-orange); }
.ac-entry-block-sub { font-size: 0.82rem; color: var(--ac-muted); }

.ac-entry-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--ac-muted); font-size: 0.8rem;
}
.ac-entry-divider::before, .ac-entry-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--ac-line);
}

.ac-entry-block--own { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ac-entry-block--own .ac-entry-block-header { margin-bottom: 0; flex: 1; }

.ac-entry-own-btn {
  flex-shrink: 0;
  background: var(--ac-navy); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.ac-entry-own-btn:hover { background: var(--ac-orange); }

/* ── How do you want to learn? — 3-option grid ─────────────────── */
/* ===== Three-option chooser (matches start.html layout) ===== */
.ac-start-cards {
  display: flex; flex-direction: row; align-items: stretch; gap: 0;
  margin-bottom: 28px;
}
@media (max-width: 820px) {
  .ac-start-cards { flex-direction: column; }
}
.ac-start-card {
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  padding: 22px 22px 20px;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ac-start-card-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
}
.ac-start-card-icon-wrap {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--ac-orange-soft); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--ac-orange);
}
.ac-start-card-text { flex: 1; }
.ac-start-card-title {
  font-size: 0.97rem; font-weight: 700; color: var(--ac-navy);
  margin-bottom: 3px;
}
.ac-start-card-sub {
  font-size: 0.8rem; color: var(--ac-muted); line-height: 1.5;
}

/* Role tile grid inside card 1 */
.ac-start-role-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px;
  flex: 1; align-content: start; margin-bottom: 0;
}
@media (max-width: 480px) { .ac-start-role-grid { grid-template-columns: 1fr; } }
.ac-start-role-tile {
  display: flex; align-items: center; gap: 9px;
  background: var(--ac-bg); border: 1px solid var(--ac-line);
  border-radius: 8px; padding: 9px 11px;
  text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ac-start-role-tile:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 2px 8px rgba(10,37,64,0.07);
}
.ac-start-role-tile-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.ac-start-role-tile-title {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--ac-navy); line-height: 1.3;
}
.ac-start-role-tile-sub {
  display: block; font-size: 0.7rem; color: var(--ac-muted); line-height: 1.3;
}

/* Pathway preview list inside card 2 */
.ac-start-preview-list {
  flex: 1; display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px;
}
.ac-start-preview-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font-size: 0.82rem; color: var(--ac-navy);
  padding: 7px 10px;
  background: var(--ac-bg); border: 1px solid transparent; border-radius: 7px;
  text-align: left; font-family: inherit; cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.ac-start-preview-item:hover { background: #fff; border-color: var(--ac-orange); }
.ac-start-preview-item i { color: var(--ac-orange); font-size: 0.8rem; flex-shrink: 0; }
.ac-start-preview-badge {
  margin-left: auto; font-size: 0.68rem; font-weight: 600;
  color: var(--ac-muted); background: #fff; border: 1px solid var(--ac-line);
  border-radius: 4px; padding: 1px 6px; flex-shrink: 0;
}
.ac-start-preview-arrow { color: var(--ac-muted); font-size: 0.75rem; flex-shrink: 0; margin-left: 2px; }
.ac-start-preview-more { color: var(--ac-muted); font-style: italic; }
.ac-start-preview-more i { color: var(--ac-muted); }

/* Topic chips inside card 3 */
.ac-start-topic-chips {
  flex: 1; display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start;
  margin-bottom: 14px;
}
.ac-start-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--ac-navy);
  background: var(--ac-bg); border: 1px solid var(--ac-line);
  border-radius: 20px; padding: 5px 11px;
  font-family: inherit; cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.ac-start-chip:hover { background: #fff; border-color: var(--ac-orange); }
.ac-start-chip i { color: var(--ac-orange); font-size: 0.78rem; }
.ac-start-chip--more { color: var(--ac-muted); font-style: italic; cursor: default; border: none; background: none; }

/* Shared CTA button for cards 2 & 3 */
.ac-start-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px 20px;
  background: var(--ac-navy); color: #fff;
  border: none; border-radius: 8px; font-family: inherit;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background 0.15s;
}
.ac-start-cta-btn:hover { background: var(--ac-orange); color: #fff; }

/* OR divider — vertical on desktop, horizontal on mobile */
.ac-start-divider {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; padding: 0 10px;
  color: var(--ac-muted); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 0;
}
.ac-start-divider::before, .ac-start-divider::after {
  content: ""; flex: 1; width: 1px; background: var(--ac-line);
}
@media (max-width: 820px) {
  .ac-start-divider { flex-direction: row; padding: 6px 0; }
  .ac-start-divider::before, .ac-start-divider::after { width: auto; height: 1px; flex: 1; }
}
.ac-role-grid--compact { margin-top: 4px; }

/* Hide landing sections when catalogue view is active */
.ac-view-is-catalogue #acHeroAnon,
.ac-view-is-catalogue #acWelcomeBar,
.ac-view-is-catalogue #acCredStrip,
.ac-view-is-catalogue #acRoleChooser,
.ac-view-is-catalogue #acResumeStrip,
.ac-view-is-catalogue #acTodaysRates,
.ac-view-is-catalogue #acSuggested,
.ac-view-is-catalogue #acContinueBanner { display: none !important; }

/* Landing = Continue + chooser only: hide the browse toolbar (the chooser's
   own CTAs drive browsing; the Hub pill returns here from a browse view). */
body.ac-on-landing .ac-toolbar .ac-search { display: none; }

/* ── Integrated hub: audience grouping + councillor signposting ──────── */
.ac-aud-super.is-empty { display: none; }
.ac-aud-super { margin: 0 0 8px; }
.ac-aud-head { margin: 20px 4px 12px; }
.ac-aud-head h2 {
  font-size: 1.05rem; color: var(--ac-navy, #0a2540); font-weight: 800;
  margin: 0; display: flex; align-items: center; gap: 8px;
}
.ac-aud-count {
  font-size: 0.78rem; font-weight: 700; color: var(--ac-orange, #fd7e14);
  background: var(--ac-orange-soft, #fff3e8); border-radius: 999px; padding: 1px 9px;
}
.ac-aud-sub { font-size: 0.85rem; color: var(--ac-muted, #6b7a90); margin: 3px 0 0; }

/* "For councillors" / "Councillor" badges on pathway rows + course tiles. */
.ac-aud-badge, .ac-row-aud {
  display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: #5b3ea8; background: #efeaff;
  border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}
.ac-row-aud { font-size: 0.62rem; padding: 1px 7px; }

/* Audience filter chip group (All / Officers / Councillors). */
.ac-pill-group {
  display: inline-flex; gap: 4px; margin-right: 8px; padding-right: 8px;
  border-right: 1px solid var(--ac-line, #dde3ec);
}
.ac-pill-aud.active { background: var(--ac-navy, #0a2540); color: #fff; border-color: var(--ac-navy, #0a2540); }

/* Dedicated councillor front-door banner on the landing chooser. */
.ac-councillor-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, #efeaff 0%, #f6f3ff 55%, #ffffff 100%);
  border: 1px solid #d9cffb; border-left: 4px solid #6b4fce;
  border-radius: 12px; padding: 16px 18px; margin: 0 0 16px;
}
.ac-councillor-banner-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: #6b4fce;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.ac-councillor-banner-body { flex: 1 1 280px; }
.ac-councillor-banner-title { font-size: 1.05rem; font-weight: 800; color: #2c1d66; margin-bottom: 3px; }
.ac-councillor-banner-sub { font-size: 0.88rem; color: #4a4068; line-height: 1.45; }
.ac-councillor-banner-meta { font-size: 0.76rem; font-weight: 700; color: #6b4fce; margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.ac-councillor-banner-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.ac-councillor-banner-actions .ac-start-cta-btn { white-space: nowrap; }
.ac-start-cta-btn.ghost { background: #fff; color: #2c1d66; border: 1px solid #d9cffb; }
@media (max-width: 720px) {
  /* On a phone the actions column sits on its own wrapped row beneath the
     banner body. Constrain it to the banner width and let the two CTAs
     stretch to fill / wrap — otherwise their nowrap labels keep the column
     at its natural ~470px and push the buttons off the right edge. */
  .ac-councillor-banner-actions {
    flex: 1 1 100%; width: 100%;
    flex-direction: row; flex-wrap: wrap;
  }
  .ac-councillor-banner-actions .ac-start-cta-btn {
    flex: 1 1 auto; justify-content: center; white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   My Progress View (mpv-*) — redesigned progress tab
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Hero header strip */
.mpv-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0d3259 100%);
  border-radius: 12px;
  padding: 28px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.mpv-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mpv-ring {
  width: 72px; height: 72px; flex-shrink: 0; position: relative;
}
.mpv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mpv-ring-bg { fill: none; stroke: rgba(255,255,255,0.15); stroke-width: 5; }
.mpv-ring-fg { fill: none; stroke: #fd7e14; stroke-width: 5; stroke-linecap: round; }
.mpv-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.mpv-hero-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.mpv-hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-top: 2px;
}
.mpv-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.mpv-hero-stat {
  text-align: center;
}
.mpv-hero-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fd7e14;
  line-height: 1.2;
}
.mpv-hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section wrapper */
.mpv-section {
  margin-bottom: 20px;
}

/* Card container (white, bordered) */
.mpv-card {
  background: #fff;
  border: 1px solid var(--pt-line, #e9ecef);
  border-radius: 10px;
  overflow: hidden;
}

/* Section header row */
.mpv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.mpv-section-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mpv-section-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mpv-section-icon {
  font-size: 16px;
  color: var(--pt-navy, #0a2540);
}
.mpv-section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pt-navy, #0a2540);
}

/* Count pill */
.mpv-count-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--pt-navy, #0a2540);
  background: #edf2f7;
  border-radius: 10px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* CPD month picker */
.mpv-cpd-month-label {
  font-size: 12px;
  color: var(--pt-muted, #6c757d);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mpv-cpd-month-select {
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--pt-line, #e9ecef);
  border-radius: 4px;
  background: #fff;
}

/* Year block */
.mpv-year-block {
  margin-bottom: 8px;
}
.mpv-year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pt-navy, #0a2540);
  color: #fff;
  border-radius: 8px 8px 0 0;
  padding: 10px 16px;
  border: none;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  gap: 12px;
  flex-wrap: wrap;
}
.mpv-year-head[aria-expanded="false"] {
  border-radius: 8px;
}
.mpv-year-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mpv-year-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mpv-year-label {
  font-weight: 600;
}
.mpv-year-count {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}
.mpv-year-cpd {
  color: #fd7e14;
  font-size: 13px;
  font-weight: 600;
}
.mpv-year-body {
  background: #fff;
  border: 1px solid var(--pt-line, #e9ecef);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* Item row (course rows in learning record, in-progress, assigned) */
.mpv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f1f3f5;
  flex-wrap: wrap;
}
.mpv-item:last-child {
  border-bottom: none;
}
.mpv-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.mpv-item-icon--done {
  background: #e8f5e9;
  color: #2e7d32;
}
.mpv-item-body {
  flex: 1;
  min-width: 0;
}
.mpv-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-navy, #0a2540);
  line-height: 1.3;
}
.mpv-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 12px;
  color: var(--pt-muted, #6c757d);
}
.mpv-item-date {
  font-size: 12px;
  color: var(--pt-muted, #6c757d);
}
.mpv-item-pw-pills {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mpv-item-cpd {
  font-size: 12px;
  color: var(--pt-muted, #6c757d);
  white-space: nowrap;
  flex-shrink: 0;
}
.mpv-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.mpv-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  background: #fff;
  color: var(--pt-navy, #0a2540);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.mpv-btn:hover {
  background: #f8f9fa;
  border-color: #ced4da;
}
.mpv-btn--navy {
  background: var(--pt-navy, #0a2540);
  color: #fff;
  border-color: var(--pt-navy, #0a2540);
}
.mpv-btn--navy:hover {
  background: #0d3259;
  border-color: #0d3259;
}

/* Pathway pills on course rows */
.mpv-pw-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #fd7e14;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  white-space: nowrap;
}
.mpv-pw-pill--join {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.mpv-pw-pill--join:hover {
  color: #e06900;
}

/* Pathway cards */
.mpv-pw-card {
  padding: 16px;
  margin-bottom: 10px;
}
.mpv-pw-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.mpv-pw-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--pt-navy, #0a2540);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mpv-pw-card-info {
  flex: 1;
  min-width: 0;
}
.mpv-pw-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-navy, #0a2540);
  line-height: 1.3;
}
.mpv-pw-card-meta {
  font-size: 12px;
  color: var(--pt-muted, #6c757d);
  margin-top: 2px;
}

/* Pathway progress bar */
.mpv-pw-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mpv-pw-bar {
  flex: 1;
  height: 6px;
  background: #edf2f7;
  border-radius: 3px;
  overflow: hidden;
}
.mpv-pw-bar-fill {
  height: 100%;
  background: #fd7e14;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.mpv-pw-bar-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--pt-navy, #0a2540);
  white-space: nowrap;
}

/* Pathway checklist */
.mpv-pw-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.mpv-pw-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #adb5bd;
}
.mpv-pw-check--done {
  color: #2e7d32;
}
.mpv-pw-check-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pathway card bottom */
.mpv-pw-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.mpv-pw-card-cpd {
  font-size: 12px;
  color: var(--pt-muted, #6c757d);
}
.mpv-pw-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Empty state */
.mpv-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--pt-muted, #6c757d);
}

/* Responsive */
@media (max-width: 600px) {
  .mpv-hero {
    padding: 20px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .mpv-hero-stats {
    gap: 16px;
  }
  .mpv-hero-stat-num {
    font-size: 22px;
  }
  .mpv-item {
    padding: 10px 12px;
  }
  .mpv-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .mpv-year-head {
    padding: 8px 12px;
    font-size: 12px;
  }
  .mpv-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mpv-pw-check-label {
    max-width: 120px;
  }
}

/* Course drawer "What you'll learn" — module list (generated: course-extras.json). */
.ac-dr-learn { margin: 0.9rem 0 0; }
.ac-dr-learn h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pt-muted, #6c757d); margin: 0 0 0.4rem; }
.ac-dr-learn ul { margin: 0; padding-left: 1.15rem; }
.ac-dr-learn li { font-size: 0.88rem; line-height: 1.5; margin: 0.15rem 0; color: #3a4654; }
