/* Programmes page (loaded only by programmes.php) */
.prog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: none; }
.prog-head .lead { margin-bottom: 0; }
.prog-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #DDE5E0; background: #fff; font: inherit; font-weight: 600; font-size: .86rem; color: #334155; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pf-chip:hover { border-color: #9FCDB0; }
.pf-chip.is-on { background: #15803D; border-color: #15803D; color: #fff; }
.pf-chip:focus-visible { outline: 3px solid rgba(22, 163, 74, .35); outline-offset: 2px; }
.prog-grid > .prog[hidden] { display: none; }
.prog-none { margin-top: 18px; }

/* cards */
.prog-grid .prog2 { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.prog-grid .prog2:hover { transform: translateY(-3px); border-color: #BFDCCB; box-shadow: 0 22px 44px -28px rgba(5, 46, 22, .45); }
.prog-grid .prog-top { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico pill" "ico aud"; column-gap: 12px; row-gap: 4px; align-items: center; }
.prog-ico { grid-area: ico; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #ECFDF3; color: #15803D; }
.prog-ico svg { width: 22px; height: 22px; }
.prog-ico.t1, .prog-ico.t4 { background: #FEF3DC; color: #B45309; }
.prog-ico.t2 { background: #F3EEFE; color: #6D28D9; }
.prog-ico.t3 { background: #EAF2FF; color: #1D4ED8; }
.prog-ico.t5 { background: #FDECF3; color: #BE185D; }
.prog-grid .prog-top .tag-pill { grid-area: pill; justify-self: start; }
.prog-grid .prog-top .prog-aud { grid-area: aud; text-align: left; font-size: .8rem; line-height: 1.35; }
.prog-grid .prog2 > p { flex: 1; }
.prog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #E3EAE5; }
.prog-actions .card-link { margin: 0; }

/* schedule: readable font, stacked rows on phones */
.sched-prog .sp-when { font-family: inherit; font-size: .88rem; color: #E7E5E4; }
@media (max-width: 720px) {
  .sched-prog, .sched-prog tbody, .sched-prog tr, .sched-prog td, .sched-prog th { display: block; width: 100%; }
  .sched-prog thead { display: none; }
  .sched-prog tr { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .sched-prog tr:last-child { border-bottom: 0; }
  .sched-prog td, .sched-prog th { padding: 2px 0 !important; border: 0 !important; }
  .sched-prog th { font-size: 1rem; order: -1; }
  .sched-prog tr { display: grid; }
  .sched-prog th[scope="row"] { grid-row: 1; }
  .sched-prog td[data-label="Cost"] { margin-top: 6px; }
  .sched-prog td[data-label="Who it serves"] { color: #A8A29E; font-size: .84rem; }
}

/* quick verify card */
.verify-mini { padding: 20px 22px; background: linear-gradient(135deg, #F3FAF5, #fff); }
.verify-mini h3 { font-size: 1.05rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.verify-mini p { font-size: .9rem; margin: 0 0 12px; }
.vm-row { display: flex; gap: 8px; }
.vm-row input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; text-transform: uppercase; letter-spacing: .1em; font-family: ui-monospace, Consolas, monospace; }
.vm-row input::placeholder { letter-spacing: .04em; text-transform: none; font-family: inherit; }
.vm-row .btn { height: 42px; }

@media (max-width: 760px) {
  .prog-head { align-items: flex-start; }
  .prog-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; width: calc(100% + 32px); }
  .prog-filter::-webkit-scrollbar { display: none; }
  .pf-chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .prog-grid .prog2, .pf-chip { transition: none; } }
@media (max-width: 760px) {
  .banner .jump { display: flex; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .banner .jump::-webkit-scrollbar { display: none; }
  .banner .jump .gal-chip { flex: none; }
}
