  ﻿/* ===== Weekend Programs Comparison (Foundation-friendly, no CSS Grid) ===== */

/* Base wrapper aligns to your existing 12-col container */
.cmp-wrap {
  width: 100%;
  max-width: 100%;
}

/* -------- Desktop / Table-like view (medium & up) -------- */
.cmp-table {
  display: table;
  width: 100%;
  border-collapse: collapse; /* remove extra spacing */
}

.cmp-row {
  display: table-row;
}

.cmp-cell {
  display: table-cell;
  padding: 0.875rem 1rem;
  vertical-align: top;
  line-height: 1.4;
  border-top: 1px solid #d9d9d9; /* horizontal dividers only */
}

.cmp-row .cmp-cell:first-child { border-left: none; }
.cmp-row .cmp-cell:last-child  { border-right: none; }

/* Header row styling (desktop only) */
@media screen and (min-width: 641px) {
  .cmp-header .cmp-cell {
    background-color: #041e42;
    color: #ffffff;
    border-top: none;
  }

  /* Larger header font */
  .cmp-header .cmp-cell.large-body {
    font-size: 1.1rem;
  }
}

/* Alternating row backgrounds */
.cmp-row:nth-child(odd):not(.cmp-header) .cmp-cell { background-color: #ffffff; }
.cmp-row:nth-child(even):not(.cmp-header) .cmp-cell { background-color: #efefef; }

.cmp-row:last-child .cmp-cell { border-bottom: none; }

.cmp-col-feature { width: 28%; }

.cmp-cell { color: #000000; }

/* -------- Mobile Cards (small only) -------- */
.cmp-cards { display: none; }

@media screen and (max-width: 640px) {
  .cmp-table { display: none; }
  .cmp-cards { display: block; }

  .cmp-card {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #ffffff;
    padding: 1rem 1.25rem 1.25rem; /* inner card padding for breathing room */
  }

  /* Icon + title alignment in card header */
  .cmp-card-header {
    display: flex;
    align-items: flex-start; 
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0; 
    background: transparent; 
    color: #041e42; 
    text-align: left;
  }

  /* 🔽 MOBILE ICON SIZE UPDATE (28px) */
  .cmp-card-header .img {
    flex: 0 0 auto;
    margin: 0;
    width: 28px !important;
    height: auto !important;
  }

  .cmp-card-header h4,
  .cmp-card-title {
    margin: 0;
    line-height: 1.2;
    font-size: 1.1rem;
  }

  .cmp-card-body {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Term/definition structure (kept for consistency) */
  .cmp-item {
    margin: 0;
    padding: 0;
    border-top: 1px solid #e9e9e9;
  }

  .cmp-term,
  .cmp-def {
    display: block;
    margin: 0;
    padding: 0.75rem 0;
    line-height: 1.35;
    color: #000000;
  }

  .cmp-term {
    border-bottom: 1px solid #efefef;
  }

  .cmp-card-body .cmp-item:nth-child(odd) .cmp-term,
  .cmp-card-body .cmp-item:nth-child(odd) .cmp-def { background-color: #ffffff; }

  .cmp-card-body .cmp-item:nth-child(even) .cmp-term,
  .cmp-card-body .cmp-item:nth-child(even) .cmp-def { background-color: #efefef; }
}

/* -------- Accessibility helpers -------- */
.show-for-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

/* Row hover highlight for tables */
.cmp-table .cmp-row:not(.cmp-header):hover .cmp-cell {
  background-color: #eef2f6;
}