/* ==========================================================================
   Everblue course page — visual pass, v0.1 (proposed, 2026-11-17)
   Loads after training.css, on the course page only (<main class="crs">).

   Answers the Oct 26 review notes on BPI Building Analyst:
     - "very text-heavy ... more pictures/visual elements ... section
       backgrounds more bold in their color"  -> real photographs in three
       sections, the steps on medium blue, stronger alternating backgrounds
     - "Stylize text links with the underline"  -> every text link underlined
     - "text on yellow #2C2C2C"                 -> yellow buttons
   The structure, the copy, the session list and the registration card are
   unchanged. Nothing here moves.
   ========================================================================== */

/* Links read as links; text on yellow is near black */
.crs :where(a:not(.btn):not(.cc)) { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.crs .subnav a { text-decoration: none; }
.crs .rc-alt a { text-decoration: none; }
.crs .rc-alt a span { color: var(--eb-blue); font-weight: var(--w-semibold); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.crs .cc .go { color: var(--eb-blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.crs .link-arrow, .crs .tel { color: var(--eb-blue); }
.crs .btn-primary { color: var(--eb-ink); }

/* Stronger alternating backgrounds: the quiet grey becomes the light blue tint */
.crs .tr-sec.bg-surface { background: var(--eb-sky-100); }
.crs .bg-surface .cpath > li::before { box-shadow: 0 0 0 6px var(--eb-sky-100); }

/* A section with words on one side and one real photograph on the other, shown whole */
.crs-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.crs-split > figure.crs-ph { margin: 0; }
.crs-ph img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.crs-split .tr-h { margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.crs-split .trio { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.crs-split .trio li { padding-top: 0.9rem; }
.crs-split .tq { max-width: none; }

/* Two field photographs under the topic list, side by side and whole */
.crs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 1.75rem 0 0; }
.crs-pair figure { margin: 0; }
.crs-pair img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); }

/* The steps on medium blue: the one bold band on the page */
/* The section also carries .bg-sky so training.css gives it, and the section after it, full padding */
.crs .tr-sec.crs-blue { background: var(--eb-blue); }
.crs-blue .tr-h h2, .crs-blue .tr-h p, .crs-blue .kicker, .crs-blue .cpath h3, .crs-blue .cpath p, .crs-blue .cpath .lbl { color: var(--eb-white); }
.crs-blue .cpath > li::before { background: var(--eb-white); color: var(--eb-blue); box-shadow: 0 0 0 6px var(--eb-blue); }
.crs-blue .cpath > li::after { background: rgba(255,255,255,0.45); }
.crs-blue .path-note { background: var(--eb-white); color: var(--eb-ink); }

/* Who it is for, and prerequisites: the first thing under the page's section bar */
.crs-who { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(0.9rem, 0.75rem + 0.6vw, 1.4rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.crs-who > div { padding: clamp(1.1rem, 1rem + 0.6vw, 1.6rem); border-radius: var(--r-md); background: var(--eb-sky-100); border-left: 4px solid var(--eb-blue); }
.crs-who h3 { margin: 0 0 0.4rem; font-size: 1.125rem; }
.crs-who p { margin: 0; color: var(--eb-ink); }

/* Session filters: month and format beside the state filter */
.sched-sel { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.sched-sel label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: var(--w-heading); color: var(--eb-navy); }
.sched-sel select { min-height: 2.5rem; padding: 0.4rem 2rem 0.4rem 0.7rem; border: 1px solid var(--eb-line); border-radius: var(--r-sm); background-color: var(--eb-white); color: var(--eb-ink); font: inherit; font-size: 0.875rem; font-weight: var(--w-semibold); cursor: pointer; }
.sched-sel select:focus-visible { outline: 3px solid var(--eb-blue); outline-offset: 2px; }
.crs .sched-tools { justify-content: flex-start; }
.crs .sched-src { margin-left: auto; }
.sched-empty { margin: 0; padding: 1.25rem; border: 1px solid var(--eb-line); border-radius: var(--r-md); background: var(--eb-surface); color: var(--eb-ink); font-weight: var(--w-semibold); }
.sched-empty[hidden] { display: none; }
.sched-empty button { margin-left: 0.5rem; padding: 0; border: 0; background: none; color: var(--eb-blue); font: inherit; font-weight: var(--w-bold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.crs .sched[hidden] { display: none; }

/* A full class stays in the list, greyed, with no way to register */
.sched tr.is-full td { color: var(--eb-ink-2); }
.sched tr.is-full td b { color: var(--eb-ink-2); }
.sched tr.is-full .fmt { background: var(--eb-surface); color: var(--eb-ink-2); }
.sched .full { display: inline-block; padding: 0.55rem 0.9rem; border-radius: var(--r-sm); background: var(--eb-surface); border: 1px solid var(--eb-line); color: var(--eb-ink); font-size: 0.875rem; font-weight: var(--w-bold); white-space: nowrap; }
.sched-demo { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--eb-ink-2); }

/* The training room under the FAQ heading */
.crs-room { margin: 1.5rem 0 0; max-width: 24rem; }

@media (max-width: 56em) {
  .crs-split { grid-template-columns: minmax(0, 1fr); }
}
