body {
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #f0f2f8;
}

.main-content {
  padding: 24px;
  margin-left: 260px;
  min-height: 100vh;
}

/* Login page */
.login-bg {
  background: linear-gradient(135deg, #0a1070 0%, #1742f5 100%);
  min-height: 100vh;
}
.login-card .card-header {
  border-radius: 12px 12px 0 0 !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.card-header {
  background: linear-gradient(to right, #1742f5, #070d63);
  color: white;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 20px;
  font-weight: 600;
}

/* ── Dashboard cards: clickable vs information-only ────────────────────────
   A plain .stat-card is information only: no hover, default cursor. A card
   that goes somewhere (an <a class="stat-card"> or .is-clickable) gets the
   pointer, a lift + shadow + border tint on hover, a keyboard focus ring and
   a small chevron in the corner, so "can I click this?" is never a guess. */
.stat-card {
  cursor: default;
}
a.stat-card,
.is-clickable {
  cursor: pointer;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
a.stat-card:hover,
.is-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: rgba(23, 66, 245, 0.55) !important;
}
a.stat-card:focus-visible,
.is-clickable:focus-visible {
  outline: 3px solid rgba(23, 66, 245, 0.6);
  outline-offset: 2px;
}
a.stat-card::after,
.is-clickable::after {
  content: "\F285"; /* bootstrap-icons chevron-right */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  line-height: 1;
  color: #6c757d;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.stat-card:hover::after,
.is-clickable:hover::after {
  opacity: 1;
  transform: translateX(2px);
}
@media (prefers-reduced-motion: reduce) {
  a.stat-card, .is-clickable, a.stat-card::after, .is-clickable::after { transition: none; }
  a.stat-card:hover, .is-clickable:hover { transform: none; }
}
/* Text links inside dashboard cards (e.g. Discipleship Journey steps). */
.dash-link {
  cursor: pointer;
}
.dash-link:hover,
.dash-link:focus-visible {
  text-decoration: underline !important;
  color: #1742f5 !important;
}

/* ── Purple theme colour (Bootstrap 5 has no built-in purple) ──────────────
   #51154B is the aubergine sampled from the Spiritual Foundations curriculum
   sheet header, so the module matches the printed material it represents.
   Bootstrap's `info` cyan was previously reused for SF; these utilities give
   purple the same full variant set (bg / text / border / btn / subtle), so
   markup can just say `purple` wherever it said `info`. */
:root {
  --vb-purple: #51154b;
  --vb-purple-rgb: 81, 21, 75;
  --vb-purple-dark: #3c0f38;   /* hover / active */
  --vb-purple-soft: #f3e8f2;   /* tinted surfaces */

  /* Lighter tint of the same Spiritual Foundations hue, for Purple Book Class —
     same family, visually distinguishable from SF's darker aubergine. */
  --vb-purple-light: #99298e;
  --vb-purple-light-rgb: 153, 41, 142;
  --vb-purple-light-dark: #7d2174;
  --vb-purple-light-soft: #f8ecf6;
}

.bg-purple      { background-color: var(--vb-purple) !important; color: #fff !important; }
.text-bg-purple { background-color: var(--vb-purple) !important; color: #fff !important; }
.text-purple    { color: var(--vb-purple) !important; }
.border-purple  { border-color: var(--vb-purple) !important; }

/* Subtle variants, mirroring Bootstrap's -subtle scale. */
.bg-purple-subtle     { background-color: var(--vb-purple-soft) !important; }
.border-purple-subtle { border-color: rgba(var(--vb-purple-rgb), .35) !important; }

/* `bg-purple bg-opacity-10` etc. need the RGB channel set. */
.bg-purple { --bs-bg-opacity: 1; background-color: rgba(var(--vb-purple-rgb), var(--bs-bg-opacity)) !important; }

.btn-purple {
  background-color: var(--vb-purple);
  border-color: var(--vb-purple);
  color: #fff;
}
.btn-purple:hover,
.btn-purple:focus,
.btn-purple:active {
  background-color: var(--vb-purple-dark);
  border-color: var(--vb-purple-dark);
  color: #fff;
}
.btn-outline-purple {
  color: var(--vb-purple);
  border-color: var(--vb-purple);
  background-color: transparent;
}
.btn-outline-purple:hover,
.btn-outline-purple:focus,
.btn-outline-purple:active {
  background-color: var(--vb-purple);
  border-color: var(--vb-purple);
  color: #fff;
}
.btn-check:checked + .btn-outline-purple {
  background-color: var(--vb-purple);
  border-color: var(--vb-purple);
  color: #fff;
}
.progress-bar.bg-purple { background-color: var(--vb-purple) !important; }

/* ── Purple Book Class — lighter tint of the purple family ───────────────── */
.bg-purple-light      { background-color: var(--vb-purple-light) !important; color: #fff !important; }
.text-bg-purple-light { background-color: var(--vb-purple-light) !important; color: #fff !important; }
.text-purple-light    { color: var(--vb-purple-light) !important; }
.border-purple-light  { border-color: var(--vb-purple-light) !important; }

.bg-purple-light-subtle     { background-color: var(--vb-purple-light-soft) !important; }
.border-purple-light-subtle { border-color: rgba(var(--vb-purple-light-rgb), .35) !important; }

.bg-purple-light { --bs-bg-opacity: 1; background-color: rgba(var(--vb-purple-light-rgb), var(--bs-bg-opacity)) !important; }

.btn-purple-light {
  background-color: var(--vb-purple-light);
  border-color: var(--vb-purple-light);
  color: #fff;
}
.btn-purple-light:hover,
.btn-purple-light:focus,
.btn-purple-light:active {
  background-color: var(--vb-purple-light-dark);
  border-color: var(--vb-purple-light-dark);
  color: #fff;
}
.btn-outline-purple-light {
  color: var(--vb-purple-light);
  border-color: var(--vb-purple-light);
  background-color: transparent;
}
.btn-outline-purple-light:hover,
.btn-outline-purple-light:focus,
.btn-outline-purple-light:active {
  background-color: var(--vb-purple-light);
  border-color: var(--vb-purple-light);
  color: #fff;
}
.btn-check:checked + .btn-outline-purple-light {
  background-color: var(--vb-purple-light);
  border-color: var(--vb-purple-light);
  color: #fff;
}
.progress-bar.bg-purple-light { background-color: var(--vb-purple-light) !important; }

/* Select2 dropdowns parented to <body> must layer above Bootstrap modals (z-index 1055) */
.select2-container--open {
  z-index: 1100;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(to right, #1742f5, #070d63);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 66, 245, 0.35);
}

/* Form controls */
.form-control,
.form-select {
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: #1742f5;
  box-shadow: 0 0 0 0.2rem rgba(23, 66, 245, 0.15);
}

/* Tables */
.table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  font-size: 13px;
  padding: 12px;
}
.table td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f4;
  font-size: 14px;
}
.table tbody tr:hover {
  background-color: #f8f9ff;
}

/* Badges */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 11px;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
}

/* Modals */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.modal-header {
  border-bottom: 1px solid #f1f3f4;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(to right, #1742f5, #070d63);
  color: white;
}
.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

/* ── Local "initials" avatar — replaces the previous dicebear external image
   so the page has no third-party dependency for avatars (works regardless of
   strict CSP / offline / external service downtime). */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1742f5, #070d63);
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  user-select: none;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
  z-index: 1040;
}

/* :not(.btn) because the profile modal lives inside #main-menu: this id-level
   rule otherwise beats Bootstrap's button colours (dark text on the blue
   "Edit Profile" button, dark text on the outline "Change Password" one). */
#main-menu a:not(.btn) {
  color: #272626;
  font-size: 15px;
}

.nav-link.active {
  background: linear-gradient(to right, #1742f5, #070d63) !important;
  color: white !important;
  border-radius: 8px;
}

ul li.nav-item:hover {
  background-color: #e9ecef;
  border-radius: 5px;
}

/* Progress bars */
.progress {
  border-radius: 10px;
  background-color: #e9ecef;
}
.progress-bar {
  border-radius: 10px;
}

/* DataTables styling */
.dataTables_length select {
  padding-right: 30px !important;
  background-position: calc(100% - 8px) center !important;
  background-size: 12px !important;
  background-repeat: no-repeat !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}
.dataTables_wrapper .dataTables_length select {
  min-width: 65px;
  padding: 4px 30px 4px 8px !important;
  margin: 0 5px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  height: auto;
}
.dataTables_wrapper .dataTables_filter input {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
}
div.dt-container .dt-paging .dt-paging-button {
  padding: 1em 0.15em !important;
}

/* Profile Modal fix */
.modal-backdrop {
  z-index: 1040 !important;
}
.modal {
  z-index: 1050 !important;
}
#profileModal {
  z-index: 1060 !important;
}
#profileModal .modal-dialog {
  z-index: 1061 !important;
  position: relative;
}
#profileModal .modal-content {
  z-index: 1062 !important;
  position: relative;
  background-color: white !important;
}
#profileModal .modal-header,
#profileModal .modal-body,
#profileModal .modal-footer,
#profileModal .btn,
#profileModal .btn-close {
  z-index: 1063 !important;
  position: relative;
  pointer-events: auto !important;
}

/* Profile modal header should match other modals */
#profileModal .modal-header {
  background: linear-gradient(to right, #1742f5, #070d63);
  color: white;
  border-radius: 12px 12px 0 0;
}
#profileModal .modal-header h5 {
  color: white;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  max-width: 350px;
}

/* 5-column layout for discipleship analytics cards */
@media (min-width: 1200px) {
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* Discipleship analytics card hover */
.program-analytics-card .card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.program-analytics-card .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Profile year block transitions */
.profile-year-block {
  transition: opacity 0.15s ease;
}

/* ── Mobile / tablet responsive: off-canvas sidebar drawer ─────────────────
   On screens < 992px the sidebar slides off-screen by default. A floating
   hamburger button toggles it in/out. A semi-transparent backdrop catches
   taps outside the drawer to close it. */

/* Floating hamburger toggle — hidden on desktop, shown on mobile/tablet */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1045;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(to right, #1742f5, #070d63);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 22px;
  line-height: 1;
}
.sidebar-toggle:focus { outline: 2px solid #fff; outline-offset: 2px; }

/* Backdrop dimming layer when drawer is open on mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1039;
}
.sidebar-backdrop.show { display: block; }

@media (max-width: 991.98px) {
  .main-content {
    margin-left: 0;
    padding: 16px;
    padding-top: 64px; /* reserve space for the floating hamburger */
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    will-change: transform;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* When the drawer is open, prevent body scroll behind it */
  body.sidebar-open {
    overflow: hidden;
  }
}

/* On very small phones, make the drawer a touch narrower so it doesn't cover everything */
@media (max-width: 400px) {
  #main-menu.sidebar { width: 240px !important; }
}

/* Select2 — overrides */
.select2-container--default .select2-selection--multiple {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: text;
  padding-bottom: 4px;
  padding-right: 4px;
  min-height: 38px;
}
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border: 1px solid #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 0;
}
.select2-container .select2-selection--multiple {
  min-height: 38px;
}
.select2-container--default .select2-selection--single {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  height: 38px;
}
.select2-container .select2-selection--single {
  height: 38px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 36px;
  color: #212529;
  padding-left: 10px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 36px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  height: 36px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #0d6efd;
  border: none;
  border-radius: 4px;
  color: #fff;
  padding: 2px 8px;
  margin-top: 5px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 4px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: #fff;
  background: transparent;
}
.select2-dropdown {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #0d6efd;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 4px 8px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__display {
  padding-left: 15px !important;
}

/* ── Bounded chart containers ──────────────────────────────────────────────
   Chart.js sizes its canvas from the PARENT box. Giving a chart an explicit
   height attribute (or letting it keep maintainAspectRatio) makes it compute
   its own aspect ratio against the card width, which is what produced the
   zoomed / clipped look. A fixed-height wrapper plus maintainAspectRatio:false
   lets the canvas fill this box exactly, and it reflows on resize because the
   height is fixed while the width is fluid.
   position:relative is required — Chart.js needs a positioned parent. */
.chart-box {
  position: relative;
  width: 100%;
  height: 320px;
  /* The box owns its size; nothing inside may grow it. */
  overflow: hidden;
}

/* THE fix for "the chart shrinks every time I hover".
   A canvas left in normal flow contributes to its parent's measured height.
   Chart.js watches that height, so drawing a tooltip nudged the layout, which
   fired the resize observer, which shrank the canvas, which nudged the layout
   again — a feedback loop that ratcheted the chart smaller on every hover.
   Taking the canvas out of flow with absolute positioning means its size can
   never feed back into the container, so the loop cannot start. */
.chart-box > canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chart-box-sm { height: 240px; }
.chart-box-lg { height: 420px; }

@media (max-width: 991.98px) {
  .chart-box    { height: 300px; }
  .chart-box-lg { height: 340px; }
}
@media (max-width: 575.98px) {
  .chart-box    { height: 260px; }
  .chart-box-sm { height: 220px; }
  .chart-box-lg { height: 280px; }
}

/* ── Scrollable modals whose body is wrapped in a <form> ───────────────────
   Bootstrap's .modal-dialog-scrollable assumes .modal-body is a DIRECT child
   of .modal-content: it caps .modal-content at the viewport with
   overflow:hidden and relies on the flex chain to give .modal-body a bounded
   height so its overflow-y:auto can scroll.

   Wrapping the body in a <form> (so the footer's submit button posts the
   fields) inserts a non-flex element into that chain. The form has no height
   constraint, so .modal-body grows to its natural size, .modal-content clips
   it, and the overflow never becomes scrollable — the bottom of a tall form
   is simply unreachable.

   Making the form a shrinkable flex item restores the intended behaviour:
   min-height:0 is the important part, because flex items default to
   min-height:auto and refuse to shrink below their content. */
.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.modal-dialog-scrollable .modal-content > form > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
/* Header and footer stay put while the body scrolls. */
.modal-dialog-scrollable .modal-content > form > .modal-footer {
  flex-shrink: 0;
}

/* ═══ Greeting banner (dashboard + welcome page) ═══════════════════════════
   One banner, two pages: views/shared/greeting_banner.php. */
.hm-hero { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between;
           padding:1.4rem 1.75rem; border-radius:.9rem; color:#fff;
           background:linear-gradient(135deg,#0a1070 0%,#1742f5 100%); box-shadow:0 6px 18px rgba(23,66,245,.18); }
.hm-hello { font-size:1.65rem; font-weight:700; line-height:1.2; }
.hm-sub   { opacity:.85; margin-top:.15rem; }
.hm-meta  { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.hm-pill  { background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:.3rem .8rem; font-size:.85rem; white-space:nowrap; color:#fff; }
.hm-pill-btn { cursor:pointer; text-decoration:none; }
.hm-pill-btn:hover, .hm-pill-btn:focus-visible { background:rgba(255,255,255,.28); color:#fff; }
.hm-hero-stats { flex:1 1 100%; display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.2rem; }
.hm-hero-stat { flex:1 1 150px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); border-radius:.65rem;
                padding:.55rem .8rem; color:#fff; text-decoration:none; line-height:1.15; }
a.hm-hero-stat:hover, a.hm-hero-stat:focus-visible { background:rgba(255,255,255,.22); color:#fff; }
.hm-hero-stat .n { display:block; font-size:1.4rem; font-weight:700; }
.hm-hero-stat .l { display:block; font-size:.72rem; opacity:.85; }
.hm-hero-stat .d { display:block; font-size:.68rem; opacity:.7; }
@media (max-width: 575.98px) { .hm-hello { font-size:1.35rem; } .hm-hero { padding:1.1rem 1.2rem; } }

/* ═══ Chart toolbar (js/chart-tools.js) ═══════════════════════════════════ */
.vb-chart-bar { display:flex; flex-wrap:wrap; gap:.3rem; justify-content:flex-end; margin-top:.35rem; }
.vb-chart-btn { --bs-btn-padding-y:.1rem; --bs-btn-padding-x:.45rem; --bs-btn-font-size:.72rem; }
@media print { .vb-chart-bar, .db-filterbar, .db-noprint { display:none !important; } }

/* ═══ Dashboard filter bar ════════════════════════════════════════════════ */
.db-filterbar { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.96); backdrop-filter:blur(4px);
                border:1px solid #e6e8ee; border-radius:.75rem; padding:.6rem .8rem; box-shadow:0 2px 8px rgba(16,24,40,.05); }
.db-filterbar .form-select, .db-filterbar .form-control { min-width:0; }
.db-filterbar label { font-size:.68rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#6c757d; margin-bottom:.1rem; }
.db-chip { display:inline-flex; align-items:center; gap:.3rem; font-size:.75rem; background:#eef2ff; color:#2b3a8c;
           border:1px solid #d6defc; border-radius:999px; padding:.15rem .6rem; text-decoration:none; }
.db-chip:hover { background:#e1e8ff; color:#2b3a8c; }

/* ═══ Dashboard print / Save-as-PDF ═══════════════════════════════════════
   Hides the chrome (sidebar, filters, buttons, chart toolbars) and lets the
   content fill the page, keeping each card and chart whole across page breaks. */
@media print {
  #main-menu, #sidebarToggle, #sidebarBackdrop, .sidebar, .navbar, .btn, .dropdown,
  .alert-dismissible .btn-close, .modal, .db-filterbar, .vb-chart-bar, .hm-meta { display:none !important; }
  .main-content { margin:0 !important; padding:0 !important; width:100% !important; }
  body { background:#fff !important; }
  .hm-hero { background:#0a1070 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; box-shadow:none; }
  .card, .hm-hero, .chart-box { break-inside:avoid; page-break-inside:avoid; }
  .card { box-shadow:none !important; border:1px solid #ddd !important; }
  a[href]:after { content:none !important; }
}

/* While a card is being captured to an image, drop effects html2canvas mis-renders. */
.vb-capturing, .vb-capturing * { box-shadow:none !important; transition:none !important; animation:none !important; }
.vb-capturing a.stat-card::after { display:none !important; }

/* ═══ Equal-height columns (dashboard) ═══════════════════════════════════════
   Put .dash-equal on a .row whose columns each hold stacked cards. Both columns
   then end on the same line: the LAST card in each column grows to fill the gap.
   Cards always keep a 1rem gap below them (so stacked cards never touch on a
   phone); the equal-height behaviour only starts at the md breakpoint, where
   the columns sit side by side. Below it there is nothing to line up. */
.dash-equal > [class*="col"] > .card { margin-bottom:1rem; }
@media (min-width: 768px) {
  .dash-equal > [class*="col"] { display:flex; flex-direction:column; }
  .dash-equal > [class*="col"] > .card:last-child { flex:1 1 auto; margin-bottom:0; }
  .dash-equal > [class*="col"] > .card:last-child > .card-body { flex:1 1 auto; }
}
