/* Cares4Seniors live availability — sage + lavender, accessible pulse */
.availability-section{background:#eff4ed}
.availability-widget{border:1px solid #d7e3d8;background:#fffefa;border-radius:var(--radius-lg);padding:28px;box-shadow:0 13px 35px rgba(55,91,72,.06)}
.av-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.av-legend{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:12px;font-weight:700;color:#486252}
.av-legend-item{display:inline-flex;align-items:center;gap:7px}
.av-led{width:10px;height:10px;display:inline-block;flex:none;border-radius:50%;background:#26954e;box-shadow:0 0 0 2px #bee4c6;animation:av-pulse 2.1s ease-in-out infinite}
@keyframes av-pulse{0%,100%{opacity:1;box-shadow:0 0 0 2px #bee4c6}50%{opacity:.58;box-shadow:0 0 0 6px rgba(48,156,83,.12)}}
.av-x{display:inline-block;font-family:Arial,sans-serif;font-size:21px;line-height:16px;font-weight:700;color:#b63f4a}
.av-legend-x{font-size:18px}
.av-controls{display:flex;align-items:center;gap:10px}
.av-control{border:1px solid #c6d5c7;color:#315642;background:#fffefa;border-radius:10px;padding:9px 13px;cursor:pointer;font-size:12px;font-weight:700;min-height:38px}
.av-control:hover:not(:disabled){background:#eef2ec}
.av-control:disabled{opacity:.4;cursor:not-allowed}
.av-control.primary{background:#e6e3f0;border-color:#d6cde6}
.av-week-title{font-family:Georgia,serif;font-size:27px;letter-spacing:-.02em;line-height:1.2;margin:0 0 17px}
.av-segments{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 16px}
.av-segments button{border:1px solid #cddacb;color:#4a6252;background:#fff;border-radius:999px;padding:11px 19px;cursor:pointer;font-size:12px;font-weight:700}
.av-segments button.is-active,.av-segments button[aria-pressed=true]{background:#8b7bab;color:white;border-color:#8b7bab}
.av-loading{color:#5a6b61;font-size:12px;line-height:1.6;min-height:20px;margin:0 0 12px}
.av-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid #dce6dc;border-radius:13px;background:#fff;scrollbar-color:#b7c9b8 transparent}
.av-grid{width:100%;border-collapse:collapse;table-layout:fixed;min-width:800px;margin:0}
.av-grid th,.av-grid td{text-align:center;border-right:1px solid #e8eee6;border-bottom:1px solid #e8eee6;padding:7px 5px}
.av-grid tr:last-child th,.av-grid tr:last-child td{border-bottom:0}
.av-grid tr th:last-child,.av-grid tr td:last-child{border-right:0}
.av-grid thead th{background:#e8efe6;color:#3b5b49;font-size:12px;font-weight:700;padding:15px 4px;position:sticky;top:0;z-index:1}
.av-grid thead th.av-today{background:#eae6f3}
.av-grid tbody th{background:#f6f7f2;color:#4d6553;font-size:11px;font-weight:700;width:96px;white-space:nowrap;position:sticky;left:0;z-index:1}
.av-grid tbody td{background:#fff;min-width:95px}
.av-cell{display:flex;gap:8px;justify-content:center;align-items:center;min-height:28px;line-height:1.3;border-radius:8px;font-size:11px;font-weight:700;color:#52705b;text-decoration:none}
.av-cell.av-open{background:#e4f5e8;color:#206b3d;border:1px solid #a5d6b2}
.av-cell.av-open:hover{background:#cef1d5}
.av-cell.av-closed{color:#a74450;background:#fff5f5;border:1px solid #f1d8db}
.av-cell.av-unknown{color:#68766b;background:#f1f2ee;border:1px solid #e2e4e1}
.av-cell-word{font-size:11px}
.av-extra{margin:18px 0 0;font-size:12px;line-height:1.85;color:#5f7064}
.av-extra a{text-decoration:underline;text-underline-offset:3px;color:#3d6550;font-weight:700}
.av-more{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:26px}
.av-more .text-link{white-space:normal}
.availability-intro{max-width:660px;color:#5f7163;line-height:1.8;font-size:15px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:760px){.availability-widget{padding:19px 14px}.av-toolbar{gap:14px}.av-week-title{font-size:22px}.av-grid{min-width:700px}.av-grid th,.av-grid td{padding:6px 3px}.av-cell{min-height:31px}.av-more{display:block}.av-more .text-link{display:block;margin-top:12px}}
@media(prefers-reduced-motion:reduce){.av-led{animation:none!important;box-shadow:0 0 0 2px #bee4c6}}
