/* ─── PRESCRIBE PAGE SPECIFIC ─── */
.results-count {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-light);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-light);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.program-card {
  animation: fadeUp 0.4s var(--ease) both;
  cursor: default;
}

.program-card:hover { cursor: default; }
.program-link { cursor: pointer !important; }

.program-location {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-light);
  opacity: 0.6;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.program-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.program-card {
  display: flex;
  flex-direction: column;
}

.program-desc {
  flex-grow: 1;
}

.bottom-note {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
}

.bottom-note a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.3s;
}

.bottom-note a:hover {
  color: var(--ink);
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem 0;
}

.pagination button {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(44,36,22,0.12);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.pagination button:hover {
  border-color: var(--amber);
  color: var(--ink);
}

.pagination button.active {
  background: var(--ink);
  color: var(--warm-white);
  border-color: var(--ink);
}

.pagination .page-arrow {
  background: none;
  border: 1px solid rgba(44,36,22,0.12);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.pagination .page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 900px) {
  .results-count { padding: 0 1.5rem 1rem; }
  .bottom-note { padding: 0 1.5rem; }

  /* Hero — tighten so filters land in the initial viewport */
  .page-header h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.05;
  }
  .page-header .page-desc { font-size: 0.95rem; }

  /* Filter pills — meet 44px tap target, single horizontal scroll row */
  .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-pill {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 44px;
    padding: 0.7rem 1.1rem;
    scroll-snap-align: start;
  }

  /* Program cards — tighter padding, smaller body, clear CTA hit area */
  .program-card { padding: 1.25rem; }
  .program-desc { font-size: 0.9rem; }
  .program-name { font-size: 1.05rem; }
  .program-footer { gap: 0.75rem; margin-top: 0.5rem; }
  .program-link {
    display: flex !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(58, 90, 48, 0.35);
    background: rgba(58, 90, 48, 0.06);
    border-radius: var(--radius-sm);
    min-height: 44px;
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
  }
  .program-footer { flex-direction: column; align-items: stretch; }

  /* Footer link tap targets */
  .footer-col a {
    min-height: 44px;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
  }

  /* Pagination — wrap on narrow viewports to prevent horizontal overflow */
  .pagination {
    flex-wrap: wrap;
    padding: 2rem 1rem 0;
    row-gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .page-header h1 { font-size: clamp(1.85rem, 9.5vw, 2.5rem); }
  .filter-pill { font-size: 0.82rem; padding: 0.7rem 1rem; }
  .search-input { font-size: 0.95rem; }
  .program-card { padding: 1.1rem; }
  .program-desc { font-size: 0.88rem; line-height: 1.55; }
}

@media (max-width: 420px) {
  /* Use shorter placeholder on tiny screens */
  .search-input::placeholder { font-size: 0.85rem; }
}
