/* Content-closeout slice: responsive participation grid for /passe-services-grid/. */

.grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Constrain to the viewport so the min-width table scrolls INSIDE this box
     instead of pushing page width. min-width:0 defeats the flex/grid child
     auto-min-width that was letting the 640px table overflow on mobile. */
  max-width: 100%;
  min-width: 0;
  margin: 8px 0 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.grid-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 1rem;
  background: var(--color-white);
}

.grid-table caption {
  caption-side: top;
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
}

.grid-table th,
.grid-table td {
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: center;
  vertical-align: middle;
  color: var(--color-text-body);
}

.grid-table thead th {
  background: var(--color-light);
  color: var(--color-secondary);
  font-weight: 700;
}

.grid-table tbody th {
  text-align: left;
  background: var(--color-light);
  color: var(--color-secondary);
  font-weight: 700;
}

.grid-table .in-network {
  color: var(--color-secondary); /* Navy check, readable; positive reads via the teal chip */
  background: rgba(88, 197, 141, 0.18); /* Teal #58c58d accent */
  border-radius: 4px;
  padding: 2px 9px;
  font-weight: 700;
  font-size: 1.125rem;
}

.grid-table .not-network {
  color: var(--color-text-light);
}

@media (max-width: 640px) {
  .grid-table { font-size: 1rem; }
}

/* Staleness note on the participation grid (eas-easterseals#40, 2026-10-15).
   The grid says network participation "starting January 1, 2025", in the
   future tense, and that date passed 21 months ago. This is Medicaid
   managed-care data for a disability services organisation, so it decides who
   can actually receive CES Waiver services from Easterseals. We will not
   restate it ourselves, and the question is with the client.
   Styled as a notice rather than body copy so a reader cannot skim past the
   date. Yellow 10% ground with the navy left rule: both are approved tokens,
   and navy on Yellow 10% measures well clear of 4.5.
   REMOVE THIS RULE when the note is removed. */
.passe-asof {
  background: var(--es-yellow-10, #fff6e5);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}
/* .prose a sets orange and outranks a bare .passe-asof a, so this needs the
   extra specificity. It matters: orange measures 4.20 on Yellow 10%, under
   the 4.5 this needs at 1rem, and the house rule in css/site.css only
   licenses orange text on a non-white ground at 19px bold. Navy is 9.43.
   check-contrast.mjs passed this file either way, because it reads the
   stylesheet's own annotations rather than computed styles, which is exactly
   why the rendered page still has to be looked at. */
.prose .passe-asof a {
  color: var(--color-secondary);
  font-weight: 700;
}
