/* Extracted for clinical.html */
/* ── Dashboard layout ── */
    .dash-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 1.2rem;
      margin-bottom: 3rem;
    }
    .stat-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.6rem 1.4rem;
      box-shadow: var(--shadow-sm);
      text-align: center;
      transition: var(--transition);
    }
    .stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
    .stat-card--accent { border-top: 4px solid var(--teal); }
    .stat-card--navy  { background: var(--navy); border-color: var(--navy); }
    .stat-card--navy .stat-num  { color: var(--teal-mid); }
    .stat-card--navy .stat-label { color: rgba(255,255,255,0.75); }
    .stat-card--navy .stat-sub  { color: rgba(255,255,255,0.5); }
    .stat-num {
      font-family: var(--font-head);
      font-size: 2.4rem;
      font-weight: 700;
      color: var(--teal-text);
      line-height: 1;
      margin-bottom: 0.3rem;
    }
    .stat-label {
      font-family: var(--font-head);
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 0.2rem;
    }
    .stat-sub {
      font-size: 0.78rem;
      color: var(--slate-light);
      margin: 0;
    }

    /* ── Section sub-header ── */
    .dash-section { margin-bottom: 3.6rem; }
    .dash-section-title {
      font-family: var(--font-head);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 1.2rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--teal-mid);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* ── Course progress ── */
    .course-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.2rem;
    }
    .course-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.4rem 1.6rem;
      box-shadow: var(--shadow-sm);
    }
    .course-name {
      font-family: var(--font-head);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--teal-text);
      margin-bottom: 0.3rem;
    }
    .course-title {
      font-weight: 600;
      color: var(--navy);
      font-size: 0.97rem;
      margin-bottom: 0.9rem;
    }
    .progress-wrap { margin-bottom: 0.7rem; }
    .progress-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.82rem;
      color: var(--slate);
      margin-bottom: 0.3rem;
    }
    .progress-bar {
      height: 10px;
      background: var(--teal-mid);
      border-radius: 5px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background: var(--teal);
      border-radius: 5px;
      transition: width 0.6s ease;
    }
    .progress-fill--complete { background: #1F7A42; }
    .course-meta {
      display: flex;
      gap: 0.8rem;
      flex-wrap: wrap;
      margin-top: 0.8rem;
    }
    .course-meta-item {
      font-size: 0.8rem;
      color: var(--slate-light);
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    .course-meta-item strong { color: var(--navy); }

    /* ── Horizontal bar chart ── */
    .bar-chart { display: flex; flex-direction: column; gap: 0.7rem; }
    .bar-row {
      display: grid;
      grid-template-columns: 180px 1fr 52px;
      align-items: center;
      gap: 0.8rem;
    }
    @media (max-width: 560px) {
      .bar-row { grid-template-columns: 130px 1fr 44px; }
    }
    .bar-label {
      font-size: 0.85rem;
      color: var(--slate);
      text-align: right;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .bar-track {
      height: 12px;
      background: var(--teal-light);
      border-radius: 6px;
      overflow: hidden;
    }
    .bar-fill {
      height: 100%;
      background: var(--teal);
      border-radius: 6px;
    }
    .bar-fill--navy { background: var(--navy); }
    .bar-fill--gold { background: #C97A1A; }
    .bar-count {
      font-family: var(--font-head);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--navy);
      text-align: right;
    }

    /* ── Two-up demographics ── */
    .demo-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }
    @media (max-width: 640px) { .demo-grid { grid-template-columns: 1fr; } }
    .demo-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.4rem 1.6rem;
      box-shadow: var(--shadow-sm);
    }
    .demo-title {
      font-family: var(--font-head);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--teal-text);
      margin-bottom: 1rem;
    }

    /* ── Donut-style percentage pills ── */
    .pct-row {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 0.6rem;
    }
    .pct-swatch {
      width: 12px;
      height: 12px;
      border-radius: 3px;
      flex-shrink: 0;
    }
    .pct-name { font-size: 0.88rem; color: var(--slate); flex: 1; }
    .pct-val  { font-family: var(--font-head); font-size: 0.88rem; font-weight: 700; color: var(--navy); }
    .swatch-teal    { background: var(--teal); }
    .swatch-navy    { background: var(--navy); }
    .swatch-gold    { background: #C97A1A; }
    .swatch-slate   { background: #8A95A8; }
    .swatch-green   { background: #1F7A42; }
    .swatch-purple  { background: #6B4FA2; }

    /* ── Diagnosis table ── */
    .dx-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
    .dx-table th {
      font-family: var(--font-head);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--slate-light);
      text-align: left;
      padding: 0.5rem 0.8rem;
      border-bottom: 2px solid var(--border);
    }
    .dx-table th:last-child { text-align: right; }
    .dx-table td {
      padding: 0.65rem 0.8rem;
      border-bottom: 1px solid var(--border);
      color: var(--slate);
      vertical-align: middle;
    }
    .dx-table tr:last-child td { border-bottom: none; }
    .dx-table tr:hover td { background: var(--off-white); }
    .dx-code {
      font-family: var(--font-head);
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--teal-text);
      background: var(--teal-light);
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      white-space: nowrap;
    }
    .dx-count {
      font-family: var(--font-head);
      font-weight: 700;
      color: var(--navy);
      text-align: right;
    }
    .dx-bar-inline {
      display: inline-block;
      height: 6px;
      background: var(--teal);
      border-radius: 3px;
      vertical-align: middle;
      margin-left: 0.5rem;
      opacity: 0.45;
    }

    /* ── Procedure cards ── */
    .proc-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1rem;
    }
    .proc-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.1rem 1.2rem;
      box-shadow: var(--shadow-sm);
    }
    .proc-name {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 0.6rem;
      line-height: 1.35;
    }
    .proc-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .proc-pill {
      font-family: var(--font-head);
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.18rem 0.5rem;
      border-radius: 4px;
    }
    .pill-obs   { background: #EDF2FF; color: #3B5BDB; }
    .pill-asst  { background: var(--teal-light); color: var(--teal-text); }
    .pill-perf  { background: #E8F5E9; color: #1F7A42; }

    /* ── Highlight callout ── */
    .callout {
      background: var(--navy);
      border-radius: var(--radius-md);
      padding: 2rem 2.4rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 1.5rem 2rem;
      margin-bottom: 3rem;
    }
    .callout-item { text-align: center; }
    .callout-num {
      font-family: var(--font-head);
      font-size: 2rem;
      font-weight: 700;
      color: var(--teal-mid);
      line-height: 1;
      margin-bottom: 0.3rem;
    }
    .callout-label {
      font-family: var(--font-head);
      font-size: 0.8rem;
      font-weight: 600;
      color: rgba(255,255,255,0.7);
    }

    /* ── Insight badge ── */
    .insight {
      background: var(--teal-light);
      border-left: 3px solid var(--teal);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 0.8rem 1.2rem;
      font-size: 0.9rem;
      color: var(--slate);
      margin-top: 1.2rem;
    }
    .insight strong { color: var(--teal-text); }

    @media print {
      .nav, .footer, .btn { display: none; }
    }

/* Classes replacing all remaining inline styles — required for CSP without unsafe-inline */
.course-site { font-size: 0.8rem; margin-bottom: 0.7rem; }
.course-site a { color: var(--teal-text); }
.tag--sm { font-size: 0.72rem; }
.over-req { color: var(--teal-text); font-size: 0.78rem; }
.dash-section-sub { font-size: 0.82rem; font-weight: 400; color: var(--slate-light); }
.demo-card--mb { margin-bottom: 1.2rem; }
.insight--mt { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
.col-right { text-align: right; }
.dash-note { font-size: 0.88rem; color: var(--slate-light); margin-bottom: 1.2rem; }
.source-note { text-align: center; padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 1rem; }
.source-note p { font-size: 0.83rem; color: var(--slate-light); margin: 0; }
