/* Shared page header — the same plain header used on the redesigned pages
   (eyebrow + title + lead, actions on the right, hairline below). Loaded on
   every page from base.html. Theme tokens only. */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding: 0.25rem 0 1.4rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.ph-main { display: grid; gap: 0.55rem; min-width: 0; flex: 1 1 420px; }
.ph-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.ph h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; overflow-wrap: anywhere; }
.ph-lead { margin: 0; max-width: 680px; font-size: 1rem; line-height: 1.6; color: var(--text-soft); }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.1rem; font-size: 0.86rem; color: var(--text-soft); }
.ph-meta i { margin-right: 0.3rem; }
.ph-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ph-actions form { margin: 0; }

/* Older pages: the pill-style eyebrow becomes the plain label. */
.academy-eyebrow { display: inline-flex; width: auto; padding: 0; border: 0; border-radius: 0; background: none; font-family: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--primary); }
.academy-eyebrow > i { display: none; }

/* Page titles are plain text now (no gradient words). */
h1 .accent, .start-title .accent, .koh-title .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: inherit; animation: none; }

/* Boxed hero banners on older pages become the plain header. */
html body .classroom-hero,
html body .start-hero,
html body .sysadmin-hero,
html body .panel.koh-hero,
html body .panel.academy-hero {
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow: visible;
  padding: 0.25rem 0 1.4rem;
}
html body .start-hero::before, html body .start-hero::after,
html body .classroom-hero::before, html body .classroom-hero::after,
html body .panel.academy-hero::before, html body .panel.academy-hero::after,
html body .panel.koh-hero::before, html body .panel.koh-hero::after,
html body .sysadmin-hero::before, html body .sysadmin-hero::after { display: none; }
html body .classroom-hero h1, html body .classroom-course-head h1, html body .sysadmin-hero h1, html body .koh-title, html body .start-title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
html body .classroom-course-head { align-items: flex-end; padding: 0.25rem 0 1.4rem; border-bottom: 1px solid var(--line); }

/* Formatted challenge descriptions (markdown) */
.ch-desc { white-space: normal; line-height: 1.65; overflow-wrap: anywhere; }
.ch-desc > :first-child { margin-top: 0; }
.ch-desc > :last-child { margin-bottom: 0; }
.ch-desc p { margin: 0 0 0.75rem; }
.ch-desc ul, .ch-desc ol { margin: 0 0 0.75rem; padding-left: 1.3rem; }
.ch-desc li + li { margin-top: 0.25rem; }
.ch-desc h1, .ch-desc h2, .ch-desc h3, .ch-desc h4 { margin: 1rem 0 0.5rem; font-size: 1rem; color: var(--text); }
.ch-desc strong { color: var(--text); }
.ch-desc code { padding: 0.08rem 0.32rem; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); font-family: var(--font-mono-code, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); font-size: 0.88em; color: var(--text); }
.ch-desc pre { margin: 0 0 0.75rem; padding: 0.75rem 0.9rem; border-radius: 8px; border: 1px solid var(--line-soft, var(--line)); background: color-mix(in srgb, var(--text) 5%, transparent); overflow-x: auto; white-space: pre; }
.ch-desc pre code { padding: 0; background: none; }
.ch-desc blockquote { margin: 0 0 0.75rem; padding-left: 0.85rem; border-left: 3px solid var(--line); color: var(--text-soft); }
.ch-desc table { border-collapse: collapse; margin: 0 0 0.75rem; }
.ch-desc th, .ch-desc td { padding: 0.35rem 0.6rem; border: 1px solid var(--line-soft, var(--line)); }
