/* The public course pages (/courses, /courses/<slug>), drawn by
   worker/pages.js. Standalone — they do not load the app shell — but in the
   colours of the Relief Coaching logo (navy and orange) and fonts, so a visitor arriving
   from reliefcoaching.org feels they are on the same site. */

:root {
  --sage: #0D475C; --deep: #0D475C; --deeper: #093544; --coral: #F0A443; --gold: #F0A443;
  --cream: #FBF7F0; --ink: #1B2A33; --muted: #55636B; --line: #E2DCD2; --card: #fff;
  --head: "Fraunces", Georgia, serif; --body: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--deep); }
h1, h2 { font-family: var(--head); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
img { max-width: 100%; }

.pub-demo { background: #fdf3dd; color: #6b4d05; text-align: center; font-size: .85rem; padding: 6px 16px; }
.pub-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 24px; background: #fff; border-bottom: 3px solid var(--coral);
}
.pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-family: var(--head); font-size: 1.2rem; }
.pub-brand img { height: 48px; width: auto; }
.pub-top nav { display: flex; align-items: center; gap: 16px; font-size: .95rem; }
.pub-btn {
  display: inline-block; background: var(--deep); color: #fff; text-decoration: none; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; text-align: center;
}
.pub-btn:hover { background: var(--deeper); }
.pub-btn-wide { display: block; margin-top: 10px; }
.pub-btn-quiet { background: transparent; color: var(--deep); border: 2px solid var(--deep); }
.pub-btn-quiet:hover { background: #E2EDF1; }

/* Bottom room so the floating chat button never sits over the last thing on the page. */
.pub-main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 104px; }
.pub-hero { text-align: center; padding: 28px 0 8px; }
.pub-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 8px; }
.pub-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.pub-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 26px; }
.pub-filter a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; color: var(--ink); }
.pub-filter a[aria-current="page"] { background: var(--deep); border-color: var(--deep); color: #fff; }

.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.pub-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s;
}
.pub-card:hover { box-shadow: 0 10px 28px rgba(35, 54, 45, .12); transform: translateY(-2px); }
.pub-card-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--gold), var(--deep)); }
.pub-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pub-card-body h2 { font-size: 1.3rem; margin: 4px 0 2px; }
.pub-card-body p { margin: 6px 0 0; font-size: .95rem; }
.pub-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.pub-sub { color: var(--muted); }
.pub-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto !important; padding-top: 12px; font-size: .9rem; color: var(--muted); }
.pub-meta strong { color: var(--ink); }
.pub-empty { text-align: center; color: var(--muted); padding: 40px 0; }
/* Events come from the Operations Hub; each card opens the event's one page. */
.pub-events { margin: 8px 0 34px; }
.pub-events h2, .pub-section-title { font-size: 1.5rem; margin: 0 0 14px; }
.pub-card-body h3 { font-family: var(--head); font-weight: 600; font-size: 1.3rem; margin: 4px 0 2px; }
.pub-when { color: var(--deep); font-weight: 700; font-size: .92rem !important; }

.pub-course-head { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.pub-course-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 6px 0 6px; }
.pub-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; margin-top: 18px; }
.pub-course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 860px) { .pub-course-grid { grid-template-columns: 1fr; } }
.pub-course-text h2 { font-size: 1.4rem; margin-top: 28px; }
.pub-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: sticky; top: 16px; }
.pub-box h2 { font-size: 1.2rem; margin: 0 0 8px; }
.pub-prices { list-style: none; padding: 0; margin: 0 0 14px; }
.pub-prices li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pub-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; margin: 0 0 12px; }
.pub-box dt { color: var(--muted); }
.pub-box dd { margin: 0; }
.pub-soon { font-size: .88rem; color: var(--muted); margin: 0; }
.pub-coach { display: flex; gap: 16px; align-items: flex-start; }
.pub-coach img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px; }
.pub-coach span { color: var(--muted); font-size: .95rem; }
.pub-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 32px; border-top: 1px solid var(--line); }

/* Day, date and time: the first thing a visitor needs, so it is big. */
.pub-when { display: inline-flex; flex-direction: column; gap: 2px; margin: 14px auto 6px; padding: 12px 22px;
  background: var(--deep); color: #fff; border-radius: 12px; border-bottom: 4px solid var(--coral); }
.pub-when-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F7D9A8; }
.pub-when strong { font-size: clamp(1.1rem, 2.6vw, 1.4rem); line-height: 1.35; }
.pub-card-when { font-weight: 700; color: var(--deep); margin: 4px 0; }
.pub-guest { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* What's inside: chapter and lesson titles of a course with lessons. */
.pub-outline { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 10px; }
.pub-outline h3 { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin: 14px 0 4px; color: var(--deep); }
.pub-outline ol { margin: 0; padding-left: 1.4em; }
.pub-outline li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.pub-outline li:last-child { border-bottom: 0; }
.pub-outline li span { margin-right: 8px; }
.pub-outline small { color: var(--muted); white-space: nowrap; }
.pub-btn-big { font-size: 1.08rem; padding: 13px 18px; background: var(--coral); color: var(--deeper); }
.pub-btn-big:hover { background: #e8932a; }
