/* /courses/ — builds on /index.css. Mobile first; also shown inside the IPWCF Tracker app (?app=1). */

.courses-main { padding: 32px 0 64px; min-height: 70vh; }
.courses-filters { display: grid; gap: 12px; margin-bottom: 18px; }
.courses-field { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.courses-field select, .courses-field input {
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--text);
  min-height: 48px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; width: 100%;
}
.courses-status { color: var(--text-muted); margin-bottom: 12px; }
.courses-status[data-kind="error"] { color: #a3341f; font-weight: 600; }

.courses-list { display: grid; gap: 22px; }
.courses-country { font-family: var(--head); font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
.courses-cards { display: grid; gap: 10px; }
.course-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  display: grid; gap: 10px;
}
.course-card h3 { font-family: var(--head); font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.course-region { color: var(--text-muted); font-size: 0.95rem; }
.course-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.92rem; color: var(--text); }
.course-facts span { white-space: nowrap; }
.course-facts b { font-weight: 700; color: var(--navy); }
.course-action { width: 100%; min-height: 56px; font-size: 1.05rem; }
.course-soon { font-size: 0.9rem; color: var(--text-muted); }

/* Inside the app: no site chrome, bigger targets. */
body.in-app .courses-main { padding-top: 16px; }
body.in-app [data-site-only] { display: none !important; }

@media (min-width: 720px) {
  .courses-filters { grid-template-columns: 240px 1fr; align-items: end; }
  .courses-cards { grid-template-columns: repeat(2, 1fr); }
  .course-action { width: auto; justify-self: start; }
}
