﻿/* ===== 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 */
  /* removed border-right to eliminate vertical lines */
}

.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;
  }

  /* Center mobile header text */
  .cmp-card-header {
    background-color: #041e42;
    color: #ffffff;
    padding: 0.875rem 1rem;
    text-align: center;
  }

  .cmp-card-title {
    margin: 0;
    line-height: 1.2;
  }

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

  .cmp-item {
    margin: 0;
    padding: 0;
    border-top: 1px solid #e9e9e9;
  }

  .cmp-term,
  .cmp-def {
    display: block;
    margin: 0;
    padding: 0.75rem 1rem;
    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;
}

