/* ============================================
   imPower Technologies - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --color-darkest-blue: #004075;
  --color-dark-blue: #004A87;
  --color-light-blue: #69c3e8;
  --color-green: #93d50a;
  --color-dark-green: #6a9d00;
  --color-gray: #F4F4F4;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;

  /* Gradients */
  --gradient-blue: linear-gradient(to right, #004A87, #69c3e8);
  --gradient-green: radial-gradient(circle, #93d50a, #6a9d00);
  --gradient-blue-vertical: linear-gradient(to bottom, #004A87, #69c3e8);

  /* Typography */
  --font-family: 'Open Sans', sans-serif;
  --font-size-base: 21px;
  --font-size-small: 19px;
  /* 18px, not the 24px the designer's style doc specifies (18pt). She saw the
     built pages and asked for the CTAs and header menu to come down; this token
     drives every .btn, so one change covers the header pill and every page
     button. Two NON-button rules also consume it (.demo-form-content p and
     .faq-item__question) and are pinned to 24px at their own declarations so
     schedule-a-demo keeps the type Michelle signed off on. */
  --font-size-cta: 18px;
  --font-size-h3: 27px;
  --font-size-h2: 33px;
  --font-size-h1: 48px;
  --font-size-h1-home: 60px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;

  /* Layout */
  /* 1248, not 1200 (T-1187). The design's CONTENT box is 1200px wide, and
     .container subtracts its own 24px padding from each side — so a 1200px
     max-width delivered 1152px of content and every page sat 48px narrower
     than the mockup. That gap is what made two accordion bars wrap to a second
     line and the cards read narrower than the design.

     This is site-wide by construction. Anything derived from the content box
     has to be re-derived with it: the logo-carousel slot below went 183 -> 195
     for exactly this reason. Grep for "1152" before assuming nothing else did. */
  --max-width: 1248px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-dark-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-green);
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark-blue);
}

h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--spacing-md);
}

.home h1,
h1.hero-title {
  font-size: var(--font-size-h1-home);
}

h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: var(--font-size-h3);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
}

.text-white {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-gray {
  background-color: var(--color-gray);
}

.section-dark {
  background-color: var(--color-darkest-blue);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-gradient-blue {
  background: var(--gradient-blue);
  color: var(--color-white);
}

.section-gradient-blue h2,
.section-gradient-blue h3 {
  color: var(--color-white);
}

.section-gradient-green {
  background: var(--gradient-green);
  color: var(--color-white);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header--transparent {
  background-color: transparent;
}

/* The menu bar is --color-darkest-blue on every page until it turns white on
   scroll. It is the ONLY thing on the page in that darker blue — the hero and
   anything below it are --color-dark-blue.

   This deliberately supersedes .header--transparent (it is the more specific
   selector). Before this, the un-scrolled bar had no background of its own and
   simply showed whatever hero was behind it. */
.header:not(.header--scrolled) {
  background-color: var(--color-darkest-blue);
}

.header--scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-light);
}

/* Header CTA. Over the hero the design shows a WHITE pill with dark-blue text,
   not the green primary button. Scoped on :not(.header--scrolled) rather than
   on .header--transparent because .header has no background of its own, so the
   un-scrolled state is transparent on every page whether or not a page sets
   the flag. Once the header turns white on scroll it reverts to green — a
   white pill on a white bar would disappear. */
.header:not(.header--scrolled) .header__cta {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark-blue);
}

.header:not(.header--scrolled) .header__cta:hover {
  background-color: var(--color-gray);
  border-color: var(--color-gray);
  color: var(--color-dark-blue);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.header__logo {
  height: 50px;
  transition: opacity var(--transition-fast);
}

.header__logo--white {
  display: block;
}

.header__logo--color {
  display: none;
}

.header--scrolled .header__logo--white {
  display: none;
}

.header--scrolled .header__logo--color {
  display: block;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav__link {
  /* 17px. Was inheriting --font-size-base (21px, the doc's 16pt) and the
     designer asked for the header menu to come down after seeing it built.
     Explicit rather than a token because the nav is the only thing at this
     size — body copy stays 21px. */
  font-size: 17px;
  font-weight: 600;
  color: var(--color-white);
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.header--scrolled .nav__link {
  color: var(--color-dark-blue);
}

.nav__link:hover {
  color: var(--color-green);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-green);
  transition: width var(--transition-fast);
}

.nav__link:hover::after {
  width: 100%;
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-medium);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  /* The panel is positioned but its SIBLINGS (.nav__item--dropdown) are
     position:relative too and come later in the DOM, so without a z-index they
     paint on top of it. Harmless side by side on desktop; in the stacked
     hamburger menu it made the course names look transparent with EVENTS and
     RESOURCES struck through them. Michelle, 2026-09-26. */
  z-index: 10;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--spacing-sm);
  color: var(--color-dark-blue);
  transition: background-color var(--transition-fast);
}

/* Mobile submenu caret. Hidden on desktop — :hover opens the panel there, so
   the button would be a control with nothing to do. In the hamburger it is the
   ONLY way to expand a submenu, which is what lets the parent label keep its
   own destination (our-courses.php, events.php) instead of being spent on the
   toggle. */
.nav__submenu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 8px;
  margin-left: 2px;
  line-height: 0;
  cursor: pointer;
  color: inherit;
}

.nav__submenu-toggle::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);          /* chevron down */
  transition: transform var(--transition-fast);
}

.nav__item--dropdown.is-open > .nav__submenu-toggle::before {
  transform: rotate(-135deg);        /* chevron up */
}

.nav__dropdown-link:hover {
  background-color: var(--color-gray);
  color: var(--color-green);
}

/* Mobile Navigation Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  transition: background-color var(--transition-fast);
}

.header--scrolled .nav__toggle span {
  background-color: var(--color-dark-blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: var(--font-size-cta);
  font-weight: 700;
  text-align: center;
  border: 2px solid transparent;
  /* Design: every button is a full pill, not a rounded rectangle. */
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

.btn--primary:hover {
  background-color: var(--color-dark-green);
  border-color: var(--color-dark-green);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
}

.btn--outline-dark:hover {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

/* 16px, matching the nav (17px) rather than body copy — this class IS the
   header's SCHEDULE A DEMO pill, which is half of what the designer asked to
   shrink. Its 21px came from --font-size-base by inheritance, not by intent. */
.btn--small {
  padding: 8px 20px;
  font-size: 16px;
}

/* 20px, down from --font-size-h3 (27px). These are the hero/CTA-box buttons —
   the "main CTAs" in the designer's note. Left a step above the 18px standard
   button so the hierarchy survives; at 27px they were half again as large as a
   normal button, which is what read as oversized. */
.btn--large {
  padding: 16px 36px;
  font-size: 20px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 64, 117, 0.9), rgba(0, 64, 117, 0.7));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__title {
  font-size: var(--font-size-h1-home);
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.hero__subtitle {
  font-size: var(--font-size-h3);
  font-weight: 400;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.hero--video {
  min-height: 600px;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__content {
  padding: var(--spacing-md);
}

.card__title {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-xs);
}

.card__text {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

/* Course Cards */
.course-card {
  position: relative;
  background: var(--gradient-blue);
  border-radius: 8px;
  padding: var(--spacing-lg);
  color: var(--color-white);
  text-align: center;
  transition: transform var(--transition-normal);
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
}

.course-card__title {
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.course-card__description {
  font-size: var(--font-size-small);
  opacity: 0.9;
  margin-bottom: var(--spacing-sm);
}

/* Flip Cards */
.flip-card {
  perspective: 1000px;
  height: 300px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.flip-card__front {
  background: var(--gradient-blue);
  color: var(--color-white);
}

.flip-card__back {
  background-color: var(--color-white);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-medium);
}

/* ---------- Accordion ---------- */
.accordion {
  border-radius: 8px;
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-gray);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--color-white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--color-dark-blue);
  transition: background-color var(--transition-fast);
}

.accordion__header:hover {
  background-color: var(--color-gray);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.accordion__item--active .accordion__icon {
  transform: rotate(180deg);
}

/* Open panels size to their own content via a 0fr→1fr grid row rather than a
   max-height cap. The cap used to be 500px, which silently clipped any panel
   taller than that — at the design's body size (16pt = 21px) the case-study
   panels run to 589px, so real copy was being cut off. A bigger magic number
   would only move the cliff; this has none. */
.accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--transition-normal);
}

/* The grid item must be the unpadded .accordion__panel: a grid item cannot
   shrink below its own padding, so putting .accordion__body (which is padded)
   here directly held every collapsed panel open by 24px. */
.accordion__panel {
  min-height: 0;
  overflow: hidden;
}

.accordion__item--active .accordion__content {
  grid-template-rows: 1fr;
}

.accordion__body {
  padding: 0 var(--spacing-md) var(--spacing-md);
}

/* Green Bar Accordion (for requirements).
   The five course designs draw SOLID green bars with a white label and a white
   plus, open or closed — not white bars with a green left stripe that turn
   green only when active, which is what this used to be and what the four live
   course pages have been rendering. The open panel's body is white below the
   bar, and the bars are separated by a small gap rather than a hairline. */
.accordion--green {
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.accordion--green .accordion__item {
  border-bottom: none;
}

.accordion--green .accordion__header {
  background-color: var(--color-green);
  color: var(--color-white);
  border-radius: 6px;
  padding: var(--spacing-sm) var(--spacing-md);
}

.accordion--green .accordion__header:hover {
  background-color: var(--color-dark-green);
}

.accordion--green .accordion__item--active .accordion__header {
  background-color: var(--color-green);
  color: var(--color-white);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion--green .accordion__content {
  background-color: var(--color-white);
}

.accordion--green .accordion__item--active .accordion__content {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.accordion--green .accordion__body {
  padding: var(--spacing-md);
  color: var(--color-dark-blue);
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slider__track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slider__slide {
  flex: 0 0 100%;
  padding: var(--spacing-md);
}

.testimonial {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-light);
  text-align: center;
}

.testimonial__quote {
  position: relative;
  font-size: var(--font-size-h3);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  padding: 0 var(--spacing-lg);
}

.testimonial__quote::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 40px;
  height: 30px;
  background-image: url('https://uonthei-impower.s3.us-east-2.amazonaws.com/moodlefiles/website/global/icons/quote-blue.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.testimonial__photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name {
  font-weight: 700;
  color: var(--color-dark-blue);
}

.testimonial__company {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-dark-blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--color-green);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.slider-dots {
  display: flex;
  gap: var(--spacing-xs);
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-gray);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.slider-dot--active {
  background-color: var(--color-green);
}

/* ---------- Logo Carousel ---------- */
.logo-carousel {
  overflow: hidden;
  padding: var(--spacing-lg) 0;
  background-color: var(--color-gray);
}

.logo-carousel__track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.logo-carousel__logo {
  flex: 0 0 150px;
  height: 60px;
  margin: 0 var(--spacing-md);
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.logo-carousel__logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Course Format Grid ---------- */
/* TWO columns of large discs, per the five Jenn course designs. It was three
   columns of 60px icons; measured off the mockup the disc is 210px against a
   1162px content width, which is 1:1 with this container, and the two column
   centres sit at ~1/4 and ~3/4. Edited in place rather than appended: the
   1024px and 768px .format-grid rules live BELOW this one, and an appended
   single-class rule would win on source order and take the phone layout with
   it. */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg) var(--spacing-xl);
}

/* An odd tile count (the RESTful workshop drops Progress Reports, so it has
   five) leaves the last tile alone on its row — centre it at one column's
   width instead of letting it sit against the left edge. Undone in the
   single-column phone layout below. */
.format-grid > .format-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--spacing-xl)) / 2);
}

.format-item {
  text-align: center;
  padding: var(--spacing-md);
}

/* Capped by width as well as a percentage so the disc cannot outgrow its
   column on a wide viewport or overflow a narrow one. */
.format-item__icon {
  width: 100%;
  max-width: 210px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto var(--spacing-sm);
}

.format-item__title {
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-xs);
}

/* Dark blue, not the light body gray — sampled off the design capture, where
   the tile body and its title are the same #004A87. */
.format-item__text {
  font-size: var(--font-size-small);
  color: var(--color-dark-blue);
}

/* ---------- CTA Sections ---------- */
.cta-section {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta-section--dark {
  background-color: var(--color-darkest-blue);
  color: var(--color-white);
}

.cta-section--gradient {
  background: var(--gradient-blue);
  color: var(--color-white);
}

.cta-section__title {
  color: inherit;
  margin-bottom: var(--spacing-sm);
}

.cta-section__text {
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
  opacity: 0.9;
}

/* ---------- Instructor Bio ---------- */
/* SQL Queries design (Canva DAG9fSQoFWU): a rounded-square photo in a blue
   gradient frame on the left with a green LinkedIn mark beneath, heading and
   bio ranged left on the right, on WHITE. No card, no shadow, no circle —
   the previous treatment was the old component-library draft.
   Measured off the mockup: frame 456px against 1162px of content, so ~39%. */
.instructor {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.instructor__figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

/* The frame is CSS because the asset is an unframed studio portrait —
   global/team/birgitta-hauser.jpg, 770x1024, straight from the designer's
   folder. Check the file before adding a frame anywhere else in this bucket;
   the team headshots already carry theirs in the pixels. */
.instructor__frame {
  background: var(--gradient-blue);
  border-radius: 16px;
  padding: 10px;
  width: 100%;
  line-height: 0;
}

.instructor__frame img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.instructor__linkedin {
  display: inline-flex;
  color: var(--color-green);
  transition: color var(--transition-fast);
}

.instructor__linkedin svg {
  width: 32px;
  height: 32px;
}

.instructor__linkedin:hover {
  color: var(--color-dark-green);
}

.instructor__content h2 {
  margin-bottom: var(--spacing-sm);
}

.instructor__title {
  color: var(--color-green);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-darkest-blue);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

/* Four columns: Our Courses / Resources / Connect With Us / newsletter signup,
   matching the V2 design (specs/home-design/canva-07.png). The last column is
   widest because it holds a form, not a link list.
   Was `2fr 1fr 1fr 1fr` when the first cell was the logo-and-blurb brand
   column; restoring that column means restoring this value too — see the note
   at the top of inc/footer.php. .footer__brand / __logo / __description below
   are kept for exactly that reason and are unused until then. */
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer__logo {
  height: 40px;
  margin-bottom: var(--spacing-sm);
}

.footer__description {
  font-size: var(--font-size-small);
  opacity: 0.8;
  max-width: 300px;
}

.footer__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-white);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer__link {
  color: var(--color-white);
  opacity: 0.8;
  font-size: var(--font-size-small);
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer__link:hover {
  opacity: 1;
  color: var(--color-green);
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-dark-green);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.footer__bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--font-size-small);
  opacity: 0.7;
}

/* ---------- Course Page Components ---------- */

/* Solid Blue Hero (for course pages) */
.hero--solid-blue {
  background-color: var(--color-dark-blue);
  background-image: none;
}

/* .hero::before lays rgba(0,64,117,.9) over the hero to darken a PHOTOGRAPH so
   white text stays readable on it. A solid-colour hero has no photograph, so
   all that overlay does is repaint #004A87 as very nearly #004075 — which is
   why this hero looked darker than the band below it and produced a visible
   seam where the two met. No image, no overlay. */
.hero--solid-blue::before {
  display: none;
}

.hero__content--centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Learn Cards (What You'll Learn section) */
.learn-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: var(--spacing-md);
  text-align: center;
}

.learn-card__text {
  color: var(--color-dark-blue);
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: 0;
}

/* Opt-in (schedule-a-demo): every card the same height, text centred both
   ways. grid-auto-rows: 1fr equalises ACROSS rows too — without it the grid
   only equalises within a row, so a two-row grid gets a short row and a tall
   one whenever one card's text wraps further than the rest. */
.learn-grid--equal {
  grid-auto-rows: 1fr;
}

.learn-grid--equal .learn-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Course Testimonials (on blue gradient background) */
.testimonial--course .testimonial-slider__slide {
  padding: var(--spacing-md) var(--spacing-xl);
}

.testimonial--course .testimonial--light {
  background-color: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--spacing-md) var(--spacing-lg);
  align-items: start;
  text-align: left;
  padding: 0;
  position: relative;
}

.testimonial--course .testimonial__quote-icon {
  position: absolute;
  top: 0;
  right: 180px;
  width: 60px;
  height: auto;
  opacity: 0.6;
}

.testimonial--course .testimonial__quote {
  grid-column: 1;
  grid-row: 1;
  font-size: var(--font-size-base);
  /* Upright, per all five designs — it was italic from the older draft. */
  font-style: normal;
  color: var(--color-white);
  line-height: 1.7;
  padding: 0;
  margin: 0;
}

.testimonial--course .testimonial__quote::before {
  display: none;
}

.testimonial--course .testimonial__photo {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 8px solid var(--color-dark-blue);
  object-fit: cover;
  align-self: center;
}

.testimonial--course .testimonial__author {
  grid-column: 1;
  grid-row: 2;
  display: block;
  text-align: left;
  margin-top: var(--spacing-sm);
}

.testimonial--course .testimonial__name {
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: 2px;
}

.testimonial--course .testimonial__company {
  color: var(--color-white);
  font-size: var(--font-size-base);
  font-weight: 700;
  font-style: normal;
}

/* Slider controls for course testimonials - positioned right */
.testimonial--course .slider-controls {
  justify-content: flex-end;
  margin-top: var(--spacing-lg);
  padding-right: var(--spacing-xl);
}

.slider-controls--light .slider-arrow {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.slider-controls--light .slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.slider-controls--light .slider-arrow svg {
  stroke: var(--color-white);
}

/* Responsive testimonial course */
@media (max-width: 768px) {
  .testimonial--course .testimonial--light {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial--course .testimonial__photo {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
  }

  .testimonial--course .testimonial__quote {
    grid-row: 2;
  }

  .testimonial--course .testimonial__author {
    grid-row: 3;
    text-align: center;
  }

  .testimonial--course .testimonial__quote-icon {
    position: static;
    margin: 0 auto var(--spacing-sm);
  }

  .testimonial--course .slider-controls {
    justify-content: center;
    padding-right: 0;
  }
}

/* Case Study Slider (Green background) */
/* The copy sits DIRECTLY ON THE GREEN in the course designs — no white card.
   Heading and arrows share a head row above the viewport; both stay inside
   .case-study-slider because initSliders() looks for the arrows there. */
.case-study-slider {
  position: relative;
}

.case-study-slider__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* TWO classes on purpose. `.section-green h2` a few hundred lines below sets
   dark blue and is (0,1,1); a bare `.case-study-slider__heading` is (0,1,0)
   and loses, so the heading would silently render dark-blue-on-green. */
.section-green .case-study-slider__heading {
  color: var(--color-white);
  margin-bottom: 0;
}

/* Clipping belongs on this fixed viewport, NEVER on __track — the track is
   what gets translateX, and clipping it makes it its own moving clip box so
   every slide after the first disappears. */
.case-study-slider__viewport {
  overflow: hidden;
}

.case-study-slider__track {
  display: flex;
  transition: transform var(--transition-normal);
}

.case-study-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* 651 / 450 of content in the mockup, with the badge column capped so it
   cannot grow past the artwork's own 1080px. */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: var(--spacing-xl);
  align-items: center;
}

.case-study-card__title {
  color: var(--color-dark-blue);
  font-size: var(--font-size-h3);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.case-study-card__text {
  color: var(--color-dark-blue);
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin-bottom: 0;
}

.case-study-card__logo {
  text-align: center;
}

/* No CSS ring. case-studies/manhattanlife-logo.png and
   …/burgers-smokehouse-logo.png are 1080x1080 with the white disc and the
   blue ring already in the pixels; a frame here draws a second one. */
.case-study-card__logo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.slider-controls--white .slider-arrow {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.slider-controls--white .slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Related Course Cards */
/* A green disc straddles the top edge of a blue-gradient card, the title sits
   under it and a white pill button sits inside the card near the bottom.
   Measured off the mockup: card 388 wide, disc 260 (67% of the card) with
   101px of it (26% of the card) above the top edge.
   The disc is CSS, not a raster `*-green.png`: those exist for four of the five
   subjects and not for RESTful APIs, so a derived filename would 404 the day
   web-services is published. ICON_URL (the white glyph) is set on all five. */
.related-course-card {
  position: relative;
  padding-top: 26%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.related-course-card__disc {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 67%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.related-course-card__icon {
  width: 52%;
  height: 52%;
  object-fit: contain;
}

/* One flexible row inside the card so the buttons bottom-align across three
   cards whose titles wrap to different line counts. A grid whose rows are all
   auto spreads the surplus instead, which is how the catalog cards ended up
   with mismatched headers. */
.related-course-card__gradient {
  background: var(--gradient-blue);
  border-radius: 12px;
  width: 100%;
  flex: 1;
  padding: calc(41% + var(--spacing-md)) var(--spacing-md) var(--spacing-lg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
}

.related-course-card__title {
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-weight: 700;
  font-style: normal;
  margin-bottom: 0;
}

.related-course-card__btn {
  grid-row: 3;
}

/* White Button Style */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  border: none;
  font-weight: 700;
}

.btn--white:hover {
  background-color: var(--color-gray);
  color: var(--color-dark-blue);
}

/* Secondary Button (blue outline on white) */
.btn--secondary {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border: 2px solid var(--color-dark-blue);
}

.btn--secondary:hover {
  background-color: var(--color-darkest-blue);
  border-color: var(--color-darkest-blue);
}

/* Accordion with Plus Icon */
.accordion__icon-plus {
  font-size: 32px;
  font-weight: 700;
  margin-left: var(--spacing-sm);
  line-height: 1;
}

/* DEAD RULE, fixed 2026-09-23. This keyed on [data-expanded="true"], an
   attribute nothing ever sets -- js/main.js toggles the CLASS
   .accordion__item--active and writes aria-expanded onto the BUTTON. So the
   marker never changed and an OPEN panel still showed "+", on every page with
   a green accordion, since the component was written.

   The glyph becomes an UP ARROW rather than a rotated "+": the Case Studies
   design (DAG-4Wl3Axk) is the only mockup in hand that draws an accordion in
   its open state, and it shows an arrow -- as does its doc, which specs
   "Plus Sign & Up arrow: #FFFFFF". The five course designs draw every bar
   closed, so nothing contradicts it.

   Swapped with font-size rather than by changing the markup, because the
   course pages' requirements accordions share this component and emit the
   literal "+" -- this way they gain the working marker with no markup change.
   SITE-WIDE: flagged to Michelle, since the four course pages in her check
   queue are affected the moment someone opens a requirements panel. */
.accordion__item--active .accordion__icon-plus {
  font-size: 0;
}
.accordion__item--active .accordion__icon-plus::before {
  content: "\2191";
  font-size: 32px;
  line-height: 1;
}

/* Removed 2026-09-23 (T-1654): `related-course-card--workshop` painted the SQL
   and Modular cards green. All four course designs draw EVERY related card
   blue, workshops included, and the component no longer emits the class. */

/* ---------- Utilities ---------- */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* The desktop nav swaps to the hamburger at 1180px, not 768px. At the design's
   nav size (16pt = 21px) the five links measure 633px; with the logo and the
   CTA pill either side, the row needs about 1180px to keep clear air between
   the logo and the first link — at 1101 they were exactly flush. It was flush against the
   logo at 1024 and by 900 "WHO WE ARE" wrapped to three lines and clipped out
   of the 80px header while the CTA broke in two. Raise this breakpoint if the
   HOME link is ever dropped (the design has no HOME link — that frees 63px). */
@media (max-width: 1180px) {
  .nav__list {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav--open .nav__list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-medium);
  }

  .nav--open .nav__link {
    color: var(--color-dark-blue);
    padding: var(--spacing-sm) 0;
  }

  /* In the stacked menu the dropdown has to FLOW, not float. It was keeping the
     desktop rules — absolutely positioned over whatever came next — so the
     course list landed on top of EVENTS and RESOURCES and read as transparent.
     z-index above stops the see-through; this stops the overlap.

     Second half of the same bug: these sublinks were hover-only, and a phone
     has no hover. Tapping OUR COURSES just followed the parent link, so the
     individual courses were unreachable from the hamburger. Open by default,
     indented under the parent — the usual mobile pattern. */
  /* The parent row is label + caret side by side; the submenu takes a full
     row of its own underneath via flex-basis. */
  .nav--open .nav__item--dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .nav--open .nav__submenu-toggle {
    display: block;
    color: var(--color-dark-blue);
  }

  /* Closed until the caret is tapped. display:none rather than the desktop
     opacity/visibility pair, so a sticky :hover on a touch device can't spring
     it open and so a shut submenu takes no vertical space — the first cut of
     this fix left all three expanded at once and the menu ran off the screen. */
  .nav--open .nav__dropdown {
    display: none;
    flex-basis: 100%;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 0;   /* .nav__list's own gap separates the groups */
  }

  .nav--open .nav__item--dropdown.is-open .nav__dropdown {
    display: block;
  }

  .nav--open .nav__dropdown-link {
    padding: 6px 0;
    font-size: 15px;
    text-align: center;
  }

  .nav--open .nav__dropdown-link:hover {
    background-color: transparent;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 37px;
    --font-size-h1-home: 48px;
    --font-size-h2: 29px;
  }

  /* The CTA pill keeps the desktop --font-size-cta (24px) by default, and on a
     390px screen "SCHEDULE A DEMO" then wraps to two lines — which makes the
     pill TALLER than the fixed 80px header, so it spills out of the bar and
     over the hero. nowrap is the part that actually fixes it; the smaller type
     and tighter padding are what make nowrap fit beside the logo and the
     hamburger. */
  .header__cta {
    font-size: 15px;
    padding: 8px 16px;
    white-space: nowrap;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-grid > .format-item:last-child:nth-child(odd) {
    width: auto;
  }

  .hero {
    min-height: 400px;
  }

  .hero__title {
    font-size: var(--font-size-h1);
  }

  /* Stacked: the frame is now a grid column, not a flex item, and it reads
     better ranged left under the heading than centred. */
  .instructor {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__description {
    max-width: none;
  }

  .footer__social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .btn {
    width: 100%;
  }

  .hero {
    min-height: 350px;
  }
}

/* ============================================
   Schedule a Demo Page Styles
   ============================================ */

/* Short Hero Variant */
.hero--short {
  min-height: auto;
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl);
}

/* Demo Form Section */
/* The blue continues below the hero as a short band, the green form card
   straddles it, and the intro copy sits below it on white.

   Everything here is driven by the two custom properties, so the band moves by
   editing ONE number and the copy follows it automatically:

   - the band is a ::before of --demo-blue-height, not a background-gradient
     stop, so nothing depends on the section's total height (which changes with
     the form fields and with how the copy wraps — the percentage stop this
     replaced drifted every time it did);
   - the card starts at the section's top padding, i.e. INSIDE the band, which
     is what makes it straddle the boundary;
   - the copy is pushed clear of the band by --demo-copy-gap. That offset is
     the whole point: the copy is dark blue, so a first line that lands ON the
     band is blue-on-blue and effectively invisible. Keep the gap positive. */
.demo-form-section {
  --demo-blue-height: 200px;
  --demo-copy-gap: 120px;
  /* How far the form card rises ABOVE this section, up into the hero. The
     hero and this section are the same blue now, so the card reads as sitting
     in one continuous blue field rather than crossing a boundary. */
  --demo-card-lift: 90px;
  position: relative;
  background: var(--color-white);
  padding: var(--spacing-md) 0 var(--spacing-xxl);
}

.demo-form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--demo-blue-height);
  background: var(--color-dark-blue);
}

/* The band is absolutely positioned, so the content needs its own stacking
   context to be certain it paints above it. */
.demo-form-section > .container {
  position: relative;
  z-index: 1;
}

/* Top-aligned: the card and the copy start at different heights by design —
   the card up in the blue, the copy down on the white. */
.demo-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

/* Clears the blue band: band height, less the padding already applied to the
   section, plus the gap the design leaves below the band. */
.demo-form-content {
  padding-top: calc(var(--demo-blue-height) - var(--spacing-md) + var(--demo-copy-gap));
}

/* Rises into the hero. The copy's offset is computed from the band, not from
   the card, so lifting the card never drags the heading back onto the blue. */
.demo-form-box {
  margin-top: calc(-1 * var(--demo-card-lift));
}

.demo-form-content {
  color: var(--color-dark-blue);
}

.demo-form-content h2 {
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-md);
}

.demo-form-content p {
  margin-bottom: var(--spacing-md);
  /* Pinned: this is body copy, not a CTA. It borrowed --font-size-cta back when
     that token was 24px, so dropping the token to 18px would have shrunk the
     schedule-a-demo intro copy that Michelle already approved. */
  font-size: 24px;
}

.demo-form-list {
  list-style: disc;
  padding-left: 20px;
}

.demo-form-list li {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-base);
}

.demo-form-box {
  background: var(--gradient-green);
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-heavy);
}

.demo-form-box h3 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-h2);
}

.demo-form .form-group {
  margin-bottom: var(--spacing-sm);
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: #545454;
  background-color: var(--color-white);
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: #999;
}

.demo-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23545454' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.demo-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* An unanswered required select shows its prompt option ("How did you hear
   about us?") in placeholder grey, like the empty text fields, instead of
   dark text that reads as already filled in. :invalid is exactly "required
   and still on the empty option"; the options themselves stay dark. */
.demo-form select:invalid {
  color: #999;
}

.demo-form select option {
  color: #545454;
}

/* Course checkboxes (2026-11-16): a <details> drawn as one white box the same
   size and colour as the inputs around it. Closed, the summary looks like the
   selects (same padding, same chevron, which flips when open); js/main.js
   swaps the placeholder text for the ticked course names. */
.demo-form .form-checkboxes {
  margin: 0 0 var(--spacing-sm);
  padding: 0;
  border-radius: 6px;
  background-color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: #545454;
  text-align: left;
}

.demo-form .form-checkboxes summary {
  list-style: none;
  padding: 14px 40px 14px 16px;
  line-height: 24px;        /* = the 52px inputs/selects (14 + 24 + 14); the body's 1.6 made it 62 */
  cursor: pointer;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23545454' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.demo-form .form-checkboxes summary::-webkit-details-marker {
  display: none;
}

.demo-form .form-checkboxes[open] summary {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23545454' d='M6 4l5 5H1z'/%3E%3C/svg%3E");
}

/* Once something is ticked the summary shows real values, so it takes the
   input text colour instead of the placeholder grey. */
.demo-form .form-checkboxes summary.is-filled {
  color: #545454;
}

.demo-form .form-checkboxes__list {
  padding: 0 16px 12px;
}

.demo-form .form-checkbox {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
}

/* Undo the full-width text-input styling above for the boxes themselves. */
.demo-form .form-checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--color-dark-blue);
  cursor: pointer;
}

.btn--full-width {
  width: 100%;
}

/* Team Cards */
.team-grid {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.team-card {
  text-align: center;
  max-width: 320px;
}

/* SQUARE, and the blue gradient frame comes from the ASSET, not from CSS.
   The designer's headshots are 540x540 with a 24px gradient stroke and a 34px
   corner radius baked in. That stroke is 4.44% of the image width, so at 300px
   it renders at 13.3px — which is what the design doc's "14 stroke weight"
   asks for. Changing this width changes the apparent stroke; keep them
   together. No border-radius and no background here: either would draw a
   second frame around the one already in the picture. */
.team-card__image-wrapper {
  width: 300px;
  height: 300px;
  margin: 0 auto var(--spacing-md);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Four-person variant. The frame is baked into the photo, so a smaller card
   draws a proportionally thinner stroke: 240px gives ~10.7px against the
   300px card's 13.3px, close enough that the four read as one set. */
.team-grid.team-grid--four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-lg);
}
.team-grid--four .team-card { max-width: none; }
.team-grid--four .team-card__image-wrapper {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1 / 1;
}
@media (max-width: 1100px) {
  .team-grid.team-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .team-grid.team-grid--four { grid-template-columns: 1fr; }
}

.team-card__name {
  font-size: var(--font-size-h3);
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-xs);
}

/* Blue, not grey — the design sets the name and the role in the same blue. */
.team-card__title {
  color: var(--color-dark-blue);
  font-size: var(--font-size-base);
}

/* "Meet the Experts" section. Its bottom padding is trimmed so the logo row
   below sits close under the photos, per the design — the logo section also
   carries .section--tight-top, and BOTH are needed: one section's bottom
   padding and the next one's top padding both contribute to that gap. */
/* NOTE the doubled class. `.section` is declared TWICE in this file — once
   near the top at --spacing-xl and again further down at --spacing-xxl — and
   the second one sits BELOW this rule, so a plain `.team-section` loses to it
   on source order and the padding silently stays at 80px. Doubling the class
   raises specificity so the override holds wherever it happens to sit. The
   same applies to .section--tight-top below. */
.section.team-section {
  padding-bottom: var(--spacing-lg);
}

/* The heading is constrained so it sets on TWO lines as in the design rather
   than running full-container width. */
.team-section__heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.team-section__subtitle {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-dark-blue);
}

/* Blank colour band (see web_section_band). Deliberately empty — the
   schedule-a-demo design shows one between the FAQ and the footer. The blue is
   --color-dark-blue so it reads slightly LIGHTER than the footer below it,
   which is --color-darkest-blue. */
.section-band {
  height: 120px;
}

.section-band--blue {
  background-color: var(--color-dark-blue);
}

.section-band--green {
  background-color: var(--color-green);
}

/* Pulls a section up against the one above it. Used on schedule-a-demo so the
   logo row sits close under the experts cards, per the design.

   THREE separate paddings stack up in that gap and all three have to go, which
   is why trimming only the section padding barely moved it: the section's own
   top padding, the carousel block's padding, and the track's padding. */
.section.section--tight-top {
  padding-top: 0;
}

.section--tight-top .logo-carousel--inline {
  padding-top: 0;
}

.section--tight-top .logo-carousel__track {
  padding-top: 0;
}

/* Green Section */
.section-green {
  background-color: var(--color-green);
}

.section-green h2 {
  color: var(--color-dark-blue);
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background-color: transparent;
}

.faq-item__question {
  color: var(--color-dark-blue);
  /* Pinned for the same reason as .demo-form-content p — an FAQ question is a
     heading, not a CTA, and the designer did not ask for these to change. */
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.faq-item__answer {
  color: var(--color-white);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.faq-item__answer a {
  color: var(--color-dark-blue);
  text-decoration: underline;
}

.faq-item__answer a:hover {
  color: var(--color-darkest-blue);
}

/* Logo Carousel */
.logo-carousel {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.logo-carousel__title {
  flex-shrink: 0;
  font-size: var(--font-size-h2);
  color: var(--color-dark-blue);
  max-width: 200px;
  line-height: 1.3;
}

.logo-carousel__track {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  /* NO overflow here. The track is the element the marquee translates (see
     `animation: scroll` above), so clipping it makes it its own moving clip
     box: logos past the first viewport-width are cut away and none can ever
     scroll in from the right. The clip belongs on the fixed parent —
     .logo-carousel for the default variant, .logo-carousel__viewport for the
     inline one. Same bug the testimonial track had. */
  padding: var(--spacing-sm) 0;
}

.logo-carousel__logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.logo-carousel__logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive for Schedule Demo page */
@media (max-width: 992px) {
  .demo-form-wrapper {
    grid-template-columns: 1fr;
  }

  /* One column, so the overlap effect is switched OFF rather than scaled down.
     It only works with the copy and the card side by side: stacked, the band
     would sit behind the COPY (dark blue text on dark blue), the 296px offset
     that clears the band would open a huge empty gap above the heading, and
     the card's negative lift would drag it up into that copy.

     Zeroing the three custom properties collapses the band, and the two
     explicit resets below are needed because a calc() that goes negative is
     not simply ignored. */
  .demo-form-section {
    --demo-blue-height: 0px;
    --demo-copy-gap: 0px;
    --demo-card-lift: 0px;
    padding-top: var(--spacing-xl);
  }

  .demo-form-content {
    padding-top: 0;
  }

  .demo-form-box {
    margin-top: 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .logo-carousel {
    flex-direction: column;
    text-align: center;
  }

  .logo-carousel__title {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  /* The grid is one column here, and "every row the same height" then means
     every card is as tall as the wordiest one — six near-identical boxes each
     padded out to the height of the longest. Equal heights only earn their
     keep when the cards sit side by side. */
  .learn-grid--equal {
    grid-auto-rows: auto;
  }

  /* Proportionate to a phone screen; 120px is a lot of empty blue on a 390px
     viewport. */
  .section-band {
    height: 60px;
  }

  /* NOT flex-wrap: wrap. main.js clones the track for the seamless marquee, so
     wrapping stacks all 46 logos into one column — the section measured 3,845px
     tall at 390px wide. The marquee scrolls horizontally at every width; it
     needs the single row to stay a single row. */
  .logo-carousel__track {
    justify-content: center;
  }
}

/* ============================================
   Who We Are page (also reusable on other inner pages)
   ============================================ */

/* Inner-page hero — short, centered, solid navy. No background image. */
.hero--page-header {
  min-height: auto;
  padding: calc(var(--header-height) + var(--spacing-xxl)) 0 var(--spacing-xxl);
  background-color: var(--color-dark-blue);
  text-align: center;
}
.hero--page-header::before {
  display: none;
}
.hero--page-header .hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero--page-header .hero__title {
  /* 60px, NOT the 48px (--font-size-h1) this used to force.
     The designer's style doc says H1 is 45pt on the home page and 36pt
     elsewhere, and 36pt = 48px is exactly what was built. But the Events,
     Speaking Sessions and Session-template DESIGNS all draw this headline at
     the 45pt size, and the design wins over the doc (Michelle, 2026-08-10).
     Measured rather than guessed: the same three words in the Events design
     and the built page came out at a live/design ratio of 0.762 / 0.760 /
     0.769, while the hero lead and the H2 on the same page measured 0.95 and
     0.94. One element was wrong, not the type scale.
     This is the shared inner-page hero, so it also resizes who-we-are, books,
     articles and case-studies -- flagged to Michelle rather than scoped to the
     new pages, because two different inner-page H1 sizes would be worse than
     either one. */
  font-size: var(--font-size-h1-home);
  margin-bottom: var(--spacing-sm);
}
.hero--page-header .hero__subtitle {
  font-size: 24px;
  opacity: 1;
}

/* Plain section blocks (used across inner pages) */
.section {
  padding: var(--spacing-xxl) 0;
}
.section--gray { background-color: var(--color-gray); }
.section--white { background-color: var(--color-white); }
.section--gradient-blue {
  background: var(--gradient-blue);
  color: var(--color-white);
}
.section--gradient-blue h2,
.section--gradient-blue h3 { color: var(--color-white); }
.section--green { background-color: var(--color-green); }

.section__intro {
  max-width: 900px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
}
.section__intro h2 { margin-bottom: var(--spacing-sm); }

/* Green-pill accordion — closed state is a fully-green pill with white text;
   open state inverts to a white pill with dark-blue text. Reusable wherever
   we want the "Goals & Vision / Who We Are / Our Story" look. */
.accordion--green-pill .accordion__item {
  border: none;
  margin-bottom: var(--spacing-xs);
}
.accordion--green-pill .accordion__header {
  background-color: var(--color-green);
  color: var(--color-white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 21px;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.accordion--green-pill .accordion__icon {
  color: var(--color-white);
  font-size: 27px;
  line-height: 1;
}
/* The open bar STAYS green with white text — only the body panel below it is
   white. It used to flip to white-on-blue, which came from the June prototype and
   does not match the V2 About Us design: that shows all three bars green with the
   open one's white panel hanging under it. Harmless when the accordion was alone
   and centered; obvious once it sits beside the photo, because the open item read
   as a plain heading rather than a bar. Only the radius changes, so the pill and
   its panel join into one shape. */
.accordion--green-pill .accordion__item--active .accordion__header {
  border-radius: 8px 8px 0 0;
}
.accordion--green-pill .accordion__content {
  background-color: var(--color-white);
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
}
.accordion--green-pill .accordion__body {
  padding: var(--spacing-md);
  color: var(--color-dark-blue);
}
.accordion--green-pill .accordion__body p { margin-bottom: 0; }

/* Gray open panel, opt-in via accordion(['panel' => 'gray']).

   The panel has to contrast with the SECTION behind it and that flips per
   page: who-we-are's accordion sits on gray so its panel is white, Our
   Courses' sits on white so the design (#F4F4F4) makes it gray. Doubled class
   so it beats the white rule above regardless of where either ends up in the
   sheet. */
.accordion--green-pill.accordion--panel-gray .accordion__content {
  background-color: var(--color-gray);
}

/* Team bio row — image on one side, copy on the other. Alternates layout
   via .team-bio--reverse. Used on blue-gradient background. */
.team-bio {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xxl);
}
.team-bio:last-child { margin-bottom: 0; }
.team-bio--reverse { grid-template-columns: 3fr 2fr; }
.team-bio--reverse .team-bio__photo { order: 2; }
.team-bio--reverse .team-bio__body { order: 1; }
.team-bio__photo img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.team-bio__name {
  font-size: 29px;
  margin-bottom: 4px;
  color: var(--color-white);
}
.team-bio__role {
  color: var(--color-green);
  font-size: 21px;
  font-weight: 700;
  text-transform: none;
  margin-bottom: var(--spacing-sm);
}
.team-bio__body p {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}
.team-bio__awards {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 19px;
  line-height: 1.8;
}
.team-bio__awards li::before {
  content: "\25CF";
  margin-right: 8px;
  color: var(--color-green);
}
.team-bio__linkedin {
  display: inline-block;
  margin-top: var(--spacing-xs);
}
.team-bio__linkedin img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}
.team-bio__linkedin:hover img { opacity: 1; }
/* Links inside a bio paragraph (bio_links). White text on the blue gradient,
   so the link is marked by weight + underline rather than by color alone. */
.team-bio__body p a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-bio__body p a:hover { color: var(--color-green); }

/* Organizations We Support, inline: heading left, logos in a row beside it.
   Column widths mirror .logo-carousel--inline so the two read as the same device.

   The logo slots are FLUID (minmax(0, 1fr)), deliberately unlike the carousel's
   fixed 195px. A fixed slot is right there because the marquee scrolls and every
   slot must be identical; here there are three static logos and a fixed width is
   actively wrong — 3 x 244px derived from the 1152px content box stayed 732px
   wide when the container shrank below 1200, overflowing the page by 72px at
   1024. minmax(0, ...) rather than plain 1fr so a column may shrink below its
   image's intrinsic width instead of forcing the grid wider.

   Equal-weight logos come from the fixed height + object-fit below, which is what
   the carousel's fixed slot was really buying. */
.org-logos-inline {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.org-logos-inline .org-logos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  gap: 0;
}

.org-logos-inline .org-logo {
  padding: 0 var(--spacing-sm);
  min-height: 0;
}

/* Letterbox each mark into an identical box. Without this the base rule sizes by
   max-height with auto width, so the wide COMMON and Mitec marks render several
   times wider than the squarer WMCPA badge — the same unequal-logo trap the
   customer carousel hit. */
.org-logos-inline .org-logo img {
  width: 100%;
  height: 80px;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.org-logos__title {
  text-align: left;
  margin: 0;
  color: var(--color-dark-blue);
}

/* Organizations We Support — row of logo tiles on white. */
.org-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
}
.org-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  min-height: 120px;
}
.org-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* Green CTA block — half text/button, half embedded form panel. */
.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}
.cta-block__copy h2 {
  font-size: 37px;
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-sm);
}
.cta-block__copy p {
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-md);
}
.cta-block__copy .btn {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border-color: var(--color-dark-blue);
}
.cta-block__copy .btn:hover {
  background-color: var(--color-darkest-blue);
  border-color: var(--color-darkest-blue);
}
.cta-block__form {
  background: var(--color-gray);
  border-radius: 12px;
  padding: var(--spacing-lg) var(--spacing-md);
  /* A grid/flex item defaults to min-width: auto, so the one-line course
     summary ("What courses are you interested in?", nowrap) pushed the form
     45px past a 390px phone. min-width: 0 lets it shrink and the summary
     ellipsises instead. */
  min-width: 0;
}
.cta-block__form-title {
  color: var(--color-dark-blue);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-sm);
}
.cta-block__form .form-field {
  margin-bottom: 12px;
}
.cta-block__form input,
.cta-block__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 4px;
  font-size: 19px;
  font-family: var(--font-family);
  background: var(--color-white);
  color: var(--color-text);
}
.cta-block__form textarea {
  resize: vertical;
}
.cta-block__form .btn--submit {
  width: 100%;
}
/* Phone / "How did you hear" / course checkboxes (go-live 2026-12-05, same
   questions as the demo form). Drawn at THIS form's input size (12px 14px,
   19px, 4px radius) so the new controls line up with the fields above them;
   the behaviour (chevron, placeholder grey, open/closed) copies .demo-form. */
.cta-block__form select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: none;
  border-radius: 4px;
  font-size: 19px;
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23545454' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.cta-block__form select:invalid {
  color: #757575;
}
.cta-block__form select option {
  color: var(--color-text);
}
.cta-block__form .form-checkboxes {
  border-radius: 4px;
  background-color: var(--color-white);
  font-family: var(--font-family);
  font-size: 19px;
  color: var(--color-text);
  text-align: left;
}
.cta-block__form .form-checkboxes summary {
  list-style: none;
  padding: 12px 40px 12px 14px;
  cursor: pointer;
  color: #757575;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23545454' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.cta-block__form .form-checkboxes summary::-webkit-details-marker {
  display: none;
}
.cta-block__form .form-checkboxes[open] summary {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23545454' d='M6 4l5 5H1z'/%3E%3C/svg%3E");
}
.cta-block__form .form-checkboxes summary.is-filled {
  color: var(--color-text);
}
.cta-block__form .form-checkboxes__list {
  padding: 0 14px 10px;
}
.cta-block__form .form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 17px;
}
.cta-block__form .form-checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--color-dark-blue);
  cursor: pointer;
}
/* .cta-block__form-note was the "Contact form coming soon" line under the
   placeholder form. Phase 4 replaced it with the shared .form-status element
   at the end of this file, which reports the real result of a submission. */

@media (max-width: 900px) {
  .team-bio,
  .team-bio--reverse,
  .cta-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  .team-bio--reverse .team-bio__photo { order: 0; }
  .team-bio--reverse .team-bio__body { order: 0; }
  .org-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }
}

@media (max-width: 600px) {
  .org-logos {
    grid-template-columns: 1fr;
  }
  /* Two classes, for the specificity reason documented at the 992 breakpoint. */
  .org-logos-inline .org-logos {
    grid-template-columns: 1fr;
  }
}

/* Blue article cards (Our Courses + article previews). */
/* Home blue article cards */
.article-card--blue {
  background: var(--gradient-blue);
  border-radius: 12px;
  padding: var(--spacing-lg);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.article-card--blue__image {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-white);
}
.article-card--blue__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card--blue h3 {
  color: var(--color-white);
  font-size: 24px;
  margin-bottom: var(--spacing-md);
}
.article-card--blue .btn {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  border-color: var(--color-white);
  align-self: center;
}
.article-card--blue .btn:hover {
  background-color: var(--color-gray);
  border-color: var(--color-gray);
}

/* Green face, opt-in via article_card_grid(['card_color' => 'green']).
   Sampled off the Our Courses design: #83BF06 at the top of the card down to
   #72A802 at the bottom — the same radial green the V2 card gradient already
   defines, so it reuses that token instead of minting a second green.
   Doubled class: .article-card--blue sets `background` a few lines up and a
   single-class modifier here would be a source-order coin flip. */
.article-card--blue.article-card--green {
  background: var(--gradient-green-card);
}

/* ============================================================================
   Resource page components (Phase 3) — Articles, Books, Events, Case Studies.
   Back inc/sections/{article_card_grid,book_list,event_list,case_study_detail}.
   ============================================================================ */

/* Standard article card (white) — Articles page */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.article-card__image { height: 180px; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--spacing-md);
}
.article-card__category {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-green);
  margin-bottom: var(--spacing-xs);
}
.article-card__title {
  font-size: var(--font-size-h3);
  font-style: normal;
  margin-bottom: var(--spacing-xs);
}
.article-card__excerpt {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}
.article-card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-dark-blue);
}
.article-card__link:hover { color: var(--color-green); }

/* Book list — alternating cover/detail rows */
.book-list {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxl);
}
.book-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}
.book-row--reverse .book-row__cover { order: 2; }
.book-row__cover { text-align: center; }
.book-row__cover img {
  max-width: 220px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: var(--shadow-medium);
}
.book-row__title { font-style: normal; margin-bottom: var(--spacing-xs); }
.book-row__authors {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}
.book-row__meta {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

/* Event list — date badge + details */
.event-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--spacing-lg);
  align-items: start;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  padding: var(--spacing-md) var(--spacing-lg);
  border-left: 4px solid var(--color-green);
}
.event-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-blue);
  color: var(--color-white);
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-xs);
}
.event-item__month {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-item__day { font-size: 27px; font-weight: 700; line-height: 1.2; }
.event-item__name { font-style: normal; margin-bottom: 4px; }
.event-item__meta {
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: var(--spacing-xs);
}
.event-item__desc {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}
.event-item__link { font-weight: 700; color: var(--color-dark-blue); }
.event-item__link:hover { color: var(--color-green); }

/* Case study detail — header + stat grid + accordion + quote */
.case-study-detail { max-width: 900px; margin: 0 auto; }
.case-study-detail__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.case-study-detail__logo {
  flex: 0 0 160px;
  text-align: center;
}
.case-study-detail__logo img { max-width: 160px; max-height: 90px; object-fit: contain; }
.case-study-detail__name { margin-bottom: 2px; }
.case-study-detail__industry {
  color: var(--color-text-light);
  font-size: var(--font-size-small);
  margin-bottom: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-gray);
  border-radius: 8px;
  padding: var(--spacing-md);
}
.stat__value {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--color-dark-blue);
}
.stat__label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-top: 4px;
}
.case-study-detail__quote {
  margin: var(--spacing-lg) 0 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-left: 4px solid var(--color-green);
  background: var(--color-gray);
  border-radius: 0 8px 8px 0;
}
.case-study-detail__quote p {
  font-style: italic;
  font-size: var(--font-size-h3);
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-xs);
}
.case-study-detail__quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: var(--font-size-small);
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .book-row,
  .book-row--reverse {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  .book-row--reverse .book-row__cover { order: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .case-study-detail__header { flex-direction: column; text-align: center; }
}

/* ============================================
   Home Page (V2 design — Canva DAG5qtLcW6E)
   ============================================
   Built for the 9-module home page. Every class here is driven by an
   OPTION on an existing inc/sections/ component, not by page-local markup,
   so any page can reuse these treatments:

     .hero--video          hero(['variant' => 'video'])
     .accordion--split     accordion([...], ['layout' => 'split'])
     .flip-card--course    course_card_grid($rows, ['flip' => true])
     .media-block          media_block([...])            (module 4 + module 6)
     .cta-panel            cta_box(['variant' => 'panel'])
     .logo-carousel--inline logo_carousel($logos, ['variant' => 'inline'])
     .testimonial--feature testimonial_slider($rows, ['variant' => 'feature'])
     .article-card--blue   article_card_grid($rows, ['variant' => 'blue'])

   Section background rhythm across the page:
   blue → gray → white → gray → blue → gray → white → gray → white
   ============================================ */

/* Diagonal reading of the brand gradients — the V2 design runs them corner
   to corner on cards rather than straight left-to-right. */
:root {
  --gradient-blue-diagonal: linear-gradient(125deg, #004A87 0%, #1c7fbe 55%, #69c3e8 100%);
  --gradient-green-card: radial-gradient(circle at 28% 22%, #93d50a 0%, #7fbb06 55%, #6a9d00 100%);
  --radius-card: 24px;
}

/* ---------- Module 1: hero with framed video ---------- */
/* The blue field stops partway down the video and gray takes over, so the
   frame straddles the boundary as the design shows.

   The split lives on .hero__band — a block whose only content is the video
   frame, so its height IS the frame's height and the 69.2% stop always lands
   at the same point on the video. Measured off the design capture: frame
   spans y 489-1089, boundary at y 904. Putting the gradient on the section
   instead would drift every time the headline rewrapped. */
.hero--video {
  min-height: 0;
  display: block;                 /* .hero is a flex centring box */
  padding: 0 0 var(--spacing-xxl);
  background-color: var(--color-gray);
  text-align: center;
}

/* .hero draws a dark scrim over background images; the video hero has no
   background image, and the scrim would sit over the two-tone split. */
.hero--video::before { content: none; }

.hero__copy {
  background-color: var(--color-dark-blue);
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-lg);
}

.hero__band {
  background: linear-gradient(to bottom,
              var(--color-dark-blue) 69.2%,
              var(--color-gray) 69.2%);
}

/* These two widths carry the design's line breaks — headline on two lines, lead
   on three. They were measured against the design capture (headline 1160px on
   line 1, lead 845px), so they had to grow with the type when the scale went
   from px to its intended pt. Narrower and the headline wraps to three lines. */
.hero--video .hero__content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero--video .hero__title {
  font-size: var(--font-size-h1-home);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.hero--video .hero__subtitle {
  font-size: var(--font-size-h3);
  max-width: 880px;
  margin: 0 auto var(--spacing-lg);
}

/* The framed player. 10pt green stroke per the design; radius matches cards. */
.hero__video-frame {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  border: 10px solid var(--color-green);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: #000;
  box-shadow: var(--shadow-medium);
  line-height: 0;
}

.hero__video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* White circular play button, centred. It is a real <button> so the poster
   is keyboard-reachable; JS swaps in the controls on first play. */
.hero__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  padding: 0;
}

.hero__video-play:hover,
.hero__video-play:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.06);
}

.hero__video-play svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;           /* optically centre the triangle in the circle */
  fill: #fff;
}

.hero__video-frame.is-playing .hero__video-play { display: none; }

/* Hosted video (hero 'embed'): the frame carries the aspect-ratio inline, and
   the iframe fills it. Vimeo/YouTube draw their own play button. */
.hero__video-frame--embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Module 2: "Why imPower" split accordion ---------- */
/* Intro copy + CTA on the left, dark-blue accordion bars on the right. */
.accordion-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.accordion-split__intro h2 {
  margin-bottom: var(--spacing-sm);
}

.accordion-split__intro p {
  margin-bottom: var(--spacing-md);
  color: var(--color-dark-blue);
}

/* About Us module 1: framed photo left, accordion right, centered heading above.

   5fr/7fr matches .accordion-split and the design capture — measured off the
   mockup the photo occupies ~41% of the content row and the accordion ~59%.
   align-items:start so the photo's top edge lines up with the first bar rather
   than centering against a column whose height changes as panels open. */
.accordion-media {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.accordion-media__figure {
  display: flex;
  justify-content: flex-start;
}

/* Green sibling of .media-frame--rounded. The frame is CSS here, NOT baked into
   the asset — global/team/jim-teaching.jpg is an unframed photograph, unlike the
   team headshots whose blue border is part of the picture. Check the asset before
   adding a frame anywhere else; both mistakes exist in this bucket.

   The selector is DOUBLED on purpose. .media-frame--rounded sets the blue
   diagonal gradient and is declared ~250 lines further down the sheet, so at one
   class each it won on source order and this frame rendered blue — caught by
   screenshotting it, not by any geometry check. Doubling makes position
   irrelevant, the same guard .section.team-section uses. */
.media-frame--rounded.media-frame--green {
  padding: 8px;
  background: var(--gradient-green);
  max-width: 100%;
}

/* Dark-blue bars, white bold label, white plus. Separate bars, not a
   single bordered stack — hence the gap and the per-item radius. */
.accordion--split {
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion--split .accordion__item {
  border-bottom: none;
}

.accordion--split .accordion__header {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border-radius: 6px;
  font-size: var(--font-size-h3);
  font-weight: 700;
  padding: var(--spacing-sm) var(--spacing-md);
  gap: var(--spacing-md);
}

.accordion--split .accordion__header:hover {
  background-color: #005ba8;
}

.accordion--split .accordion__icon {
  flex: 0 0 auto;
  color: var(--color-white);
  width: 26px;
  height: 26px;
  transition: transform var(--transition-normal);
}

/* The design keeps a "+" on every bar, open or closed — no rotate-to-× here.
   The open state is signalled by the white panel below the bar. */

/* Open panel is white, flush under its bar. */
.accordion--split .accordion__content {
  background-color: var(--color-white);
}

.accordion--split .accordion__item--active .accordion__content {
  border-radius: 0 0 6px 6px;
}

.accordion--split .accordion__body {
  padding: var(--spacing-md);
  color: var(--color-dark-blue);
}

.accordion--split .accordion__body p + p {
  margin-top: var(--spacing-sm);
}

/* ---------- Module 3: course / workshop flip cards ---------- */
/* Front = eyebrow + icon + title. Back = eyebrow + title + description.
   Hover flips on pointer devices; .is-flipped (JS) covers touch + keyboard. */
.card-grid-courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.card-grid-workshops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* 360px, not the 300px this was built at: the titles are centred in the face
   while the eyebrow is positioned over it, so at the design's title size (20pt
   = 27px) a three-line name grew up under the eyebrow — "Modular Programming
   Workshop" overlapped it by 13px and two others cleared by 3px. The extra
   height plus the reserved padding-top below keep the two apart. */
.flip-card--catalog {
  height: 360px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.flip-card--catalog .flip-card__front,
.flip-card--catalog .flip-card__back {
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  /* Reserve the eyebrow's band so centred content starts below it. */
  padding-top: calc(var(--spacing-md) + var(--font-size-small) * 1.4 + var(--spacing-md));
  color: var(--color-white);
  text-align: center;
  justify-content: center;
  box-shadow: none;
}

.flip-card--course .flip-card__front,
.flip-card--course .flip-card__back {
  background: var(--gradient-blue-diagonal);
}

.flip-card--workshop .flip-card__front,
.flip-card--workshop .flip-card__back {
  background: var(--gradient-green-card);
}

/* Eyebrow sits top-left on BOTH faces so it doesn't jump during the flip. */
.flip-card__eyebrow {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-lg);
  font-size: var(--font-size-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 400;
}

.flip-card__icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: var(--spacing-md);
}

.flip-card__title {
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-weight: 700;
  font-style: normal;
  margin: 0;
  /* Even out the wrap so short trailing words don't strand on their own line —
     "Web Services on IBM i" was breaking with a lone "i" underneath. */
  text-wrap: balance;
}

.flip-card__back .flip-card__title {
  margin-bottom: var(--spacing-sm);
}

.flip-card__text {
  font-size: var(--font-size-base);
  line-height: 1.5;
  margin: 0;
}

.flip-card__note {
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-small);
  opacity: 0.9;
}

.flip-card--catalog.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card--catalog:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 4px;
  border-radius: var(--radius-card);
}

/* ---------- Modules 4 + 6: text beside framed media ---------- */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.media-block--media-left .media-block__media { order: -1; }

.media-block__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark-blue);
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-xs);
}

.media-block__title {
  margin-bottom: var(--spacing-sm);
}

.media-block__text {
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-md);
}

.media-block__media {
  display: flex;
  justify-content: center;
}

/* Module 4 frame: logo centred in a white disc inside a thick blue ring. */
.media-frame--ring {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 12px solid transparent;
  background-image: linear-gradient(var(--color-white), var(--color-white)),
                    var(--gradient-blue);
  background-origin: border-box;
  background-clip: content-box, border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.media-frame--ring img {
  /* ~70% of the circle's outer diameter, matching the design. Smaller than
     this and the ring plus the mark read as concentric rings. */
  max-width: 88%;
  max-height: 62%;
  object-fit: contain;
}

/* Module 6 frame: photo in a rounded blue-gradient border. */
.media-frame--rounded {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-card);
  padding: 7px;                       /* the design's 14pt border, halved to px */
  background: var(--gradient-blue-diagonal);
  line-height: 0;
}

.media-frame--rounded img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* Course Videos (T-1830): a video in the same rounded frame. Doubled class so
   the 440px photo cap above cannot win on source order — a 16:9 player needs
   the whole column. */
.media-frame--rounded.media-frame--video {
  max-width: 100%;
}

.media-frame--video video,
.media-frame--video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 18px;
  background: var(--color-darkest-blue);
}

/* Chapter list under a video's copy. Times are buttons that seek the player
   (js/main.js initVideoChapters); on a hosted embed they are plain text. */
.video-chapters {
  margin-bottom: var(--spacing-md);
}

.video-chapters__heading {
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-xs);
}

.video-chapters__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: var(--spacing-md);
}

.video-chapters__list li {
  break-inside: avoid;
  color: var(--color-dark-blue);
  padding: 2px 0;
}

/* Time in its own column so a wrapped title hangs under the title, not
   under the time. The li carries it on an embed (plain text); the button
   carries it on an mp4. */
.video-chapters__list li,
.video-chapters__link {
  display: grid;
  grid-template-columns: 3.2em 1fr;
}

.video-chapters__list li:has(> .video-chapters__link) {
  display: block;
}

.video-chapters__link {
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-dark-blue);
  text-align: left;
  cursor: pointer;
}

.video-chapters__link:hover,
.video-chapters__link:focus-visible {
  text-decoration: underline;
}

.video-chapters__time {
  display: inline-block;
  min-width: 3.2em;
  font-weight: 700;
  color: var(--color-dark-green);
}

@media (max-width: 560px) {
  .video-chapters__list { columns: 1; }
}

/* ---------- Module 5: light-blue CTA panel on blue ---------- */
.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  background-color: var(--color-light-blue);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
}

.cta-panel__media img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.cta-panel__title {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.cta-panel__text {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

/* Our Courses module 9: the same panel in green on the gray section.
   Doubled class (.cta-panel.cta-panel--green) on purpose — .cta-panel sets the
   light-blue fill and a single-class modifier placed here would be a coin flip
   against any later rule touching the same property. This sheet has already
   burned one modifier that way (.media-frame--green rendered blue). */
.cta-panel.cta-panel--green {
  background-color: var(--color-green);
}

/* ---------- Module 7: inline logo carousel ---------- */
/* Heading pinned left, logos scrolling beside it on white, in full colour. */
.logo-carousel--inline {
  background-color: transparent;
  padding: var(--spacing-md) 0;
  display: grid;
  /* Wide enough that the heading sets on two lines, as in the design, and
     leaves room for four logos beside it at 1440. */
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.logo-carousel--inline .logo-carousel__title {
  text-align: left;
  margin: 0;
  color: var(--color-dark-blue);
  /* The base rule caps this at 200px, which forces a THIRD line and is why the
     heading never matched the design. The grid column above already governs
     the width, so let it. */
  max-width: none;
}

.logo-carousel--inline .logo-carousel__viewport {
  overflow: hidden;
}

/* Four logos per viewport, each in an identical fixed slot.

   The old rule sized logos by HEIGHT with width:auto, so a wide mark like
   H.T. Hackney came out several times wider than a square one — inconsistent
   weight, and far fewer than four visible at a time. A fixed slot plus
   object-fit: contain letterboxes every logo into the same box instead, which
   scales the wide ones down rather than letting them dominate.

   195px is derived, not picked: .container is max-width 1248 with 24px padding
   each side, so the real content width is 1200. Less the 380px heading column
   and the 40px gap leaves a 780px viewport — exactly four 195px slots.
   This was 183 while .container was 1200/1152; T-1187 raised the container and
   this had to move with it. Re-derive if either number changes again. */
.logo-carousel--inline .logo-carousel__logo {
  flex: 0 0 195px;
  width: 195px;
  height: 58px;
  object-fit: contain;
  margin: 0;
  padding: 0 var(--spacing-sm);
  box-sizing: border-box;
  filter: none;
  opacity: 1;
}

/* ---------- Module 8: feature testimonial ---------- */
/* Quote on the left, photo (when there is one) in a green-gradient ring on
   the right, green quote mark over its top-left, arrows bottom-right. */
.testimonial--feature .testimonial-slider__slide {
  padding: 0 4px;
}

.testimonial--feature .testimonial {
  background: none;
  box-shadow: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--spacing-xl);
  align-items: start;
  text-align: left;
}

/* Quote-only slides (most testimonials have no photo yet) go full width
   rather than leaving a 360px hole. */
.testimonial--feature .testimonial--no-photo {
  grid-template-columns: 1fr;
}

.testimonial--feature .testimonial__quote {
  font-size: var(--font-size-base);
  font-style: normal;
  line-height: 1.6;
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-md);
  /* Base .testimonial__quote reserves 40px either side for the ::before
     quote glyph. This variant puts the quote mark on the photo instead, so
     the padding would just misalign the quote against its attribution. */
  padding: 0;
}

.testimonial--feature .testimonial__quote::before { content: none; }

/* Name and role stack on two bold lines, as in the design — the base
   .testimonial__author is a flex row, which ran them together. */
.testimonial--feature .testimonial__author {
  display: block;
  color: var(--color-dark-blue);
  font-weight: 700;
}

.testimonial--feature .testimonial__name,
.testimonial--feature .testimonial__company {
  display: block;
  color: var(--color-dark-blue);
  font-weight: 700;
  font-size: var(--font-size-base);
  opacity: 1;
}

/* Long quotes must be allowed to shrink inside the grid column. */
.testimonial--feature .testimonial__body {
  min-width: 0;
}

/* Short quotes pin to the top, and main.js resizes the track to the visible
   slide (data-adaptive-height) so a long quote doesn't reserve empty space
   under every short one. The height transition matches the slide transition. */
/* NO overflow here. The track is the element that gets translated, so clipping
   it makes it its own moving clip box and slides 2..n can never scroll into
   view — only the first slide ever renders. The vertical clipping the adaptive
   height needs already comes from .testimonial-slider's overflow: hidden,
   which is a fixed box the track slides underneath. */
.testimonial--feature .testimonial-slider__track {
  align-items: flex-start;
  transition: transform var(--transition-slow), height var(--transition-normal);
}

.testimonial-feature__media {
  position: relative;
  padding-top: 26px;
  justify-self: end;
}

.testimonial-feature__photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 6px;                        /* the design's 11pt green ring */
  background: var(--gradient-green);
  box-sizing: border-box;
}

.testimonial-feature__photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.testimonial-feature__quote-mark {
  position: absolute;
  top: 0;
  left: 4px;
  width: 92px;
  height: auto;
  z-index: 1;
}

/* Heading left, arrows right, on one row above the quote.

   The arrows were bottom-right under the track. This variant sets the track's
   height to the CURRENT slide (data-adaptive-height, because the quotes run
   from ~90 to ~960 characters), so the arrows rode that height up and down on
   every advance — the movement the designer flagged. Anchored to the heading
   row they are independent of quote length and cannot shift. */
.testimonial--feature .testimonial-feature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.testimonial--feature .testimonial-feature__head h2 {
  margin: 0;
}

/* Green circular arrows, no dots (the design shows none). margin-top:0 because
   they are no longer stacked under anything. */
.testimonial--feature .slider-controls {
  justify-content: flex-end;
  gap: var(--spacing-sm);
  margin-top: 0;
  flex: 0 0 auto;
}

.testimonial--feature .slider-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--color-green);
  background: transparent;
  color: var(--color-green);
}

.testimonial--feature .slider-arrow:hover {
  background: var(--color-green);
  color: var(--color-white);
}

/* ---------- Module 9: blue article cards ---------- */
/* Circular image overlaps the top of the card; white pill button below. */
.article-card--blue {
  position: relative;
  background: var(--gradient-blue-diagonal);
  border-radius: var(--radius-card);
  color: var(--color-white);
  text-align: center;
  padding: 120px var(--spacing-md) var(--spacing-lg);
  margin-top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* No artwork → drop the internal padding that made room for the circle and
   centre the content instead, so the card reads as deliberate rather than
   top-heavy with a gap. margin-top deliberately stays: it keeps every card
   box in the row starting at the same height, with only the imaged cards'
   circles rising above the row. */
.article-card--blue--no-image {
  padding-top: var(--spacing-lg);
  justify-content: center;
}

.article-card--blue__image {
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-white);
}

.article-card--blue__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card--blue h3 {
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-style: normal;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.article-card--blue .btn {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  border-color: var(--color-white);
  font-weight: 700;
}

.article-card--blue .btn:hover {
  background-color: var(--color-gray);
  color: var(--color-dark-blue);
}

/* ---------- Home responsive ---------- */
@media (max-width: 900px) {
  .accordion-split,
  .accordion-media,
  .media-block,
  .cta-panel {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Stacked, the photo reads better centered than pinned left. */
  .accordion-media__figure {
    justify-content: center;
  }

  /* Heading over the logos instead of beside them.

     .org-logos-inline .org-logos MUST be restated at two classes here: the
     desktop rule that sets three fixed 244px slots is also two classes, so it
     outranks the single-class .org-logos mobile rules further down the sheet no
     matter what order they appear in. Without this, 3 x 244px = 732px stays put
     on a 390px screen and the page scrolls sideways. */
  .org-logos-inline {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .org-logos-inline .org-logos {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }

  .org-logos__title {
    text-align: center;
  }

  /* Keep the image above the copy on BOTH media blocks when stacked, so the
     page reads image-then-text consistently instead of alternating. */
  .media-block--media-right .media-block__media { order: -1; }

  .card-grid-courses,
  .card-grid-workshops {
    grid-template-columns: 1fr;
  }

  .logo-carousel--inline {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .logo-carousel--inline .logo-carousel__title {
    text-align: center;
  }

  .testimonial--feature .testimonial {
    grid-template-columns: 1fr;
  }

  .testimonial-feature__media {
    justify-self: center;
  }

  /* Stacked: a 25px heading and two 54px arrows do not share a phone-width row
     without squeezing the heading to two or three lines. Arrows stay centred
     under it — still a fixed position, which is the point of the change. */
  .testimonial--feature .testimonial-feature__head {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
  }

  .testimonial--feature .slider-controls {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero__copy {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
  }

  .hero__video-play {
    width: 64px;
    height: 64px;
  }

  .hero__video-play svg {
    width: 24px;
    height: 24px;
  }

  .flip-card--catalog {
    height: 260px;
  }

  .testimonial-feature__photo {
    width: 220px;
    height: 220px;
  }

  .testimonial-feature__quote-mark {
    width: 64px;
  }

  .article-card--blue {
    margin-top: 90px;
    padding-top: 100px;
  }

  .article-card--blue__image {
    top: -90px;
    width: 180px;
    height: 180px;
  }
}

/* ============================================================================
   PHASE 4 — LEAD + NEWSLETTER FORMS (T-1035, T-1189)
   ----------------------------------------------------------------------------
   Shared chrome for the three live forms: the schedule-a-demo form, the
   who-we-are contact form (both -> api/web-lead.php) and the footer newsletter
   signup (-> api/web-newsletter.php). Each form's FIELDS are already styled by
   its own block above (.demo-form, .cta-block__form); what is here is only the
   parts they have in common — the bot trap, the status line, the sent state —
   plus the footer signup, which is new markup and needs its own rules.
   ========================================================================== */

/* The honeypot. Pulled off-canvas rather than display:none: some form-filling
   bots skip anything display:none, and the entire point is that a bot fills it.
   It stays out of the tab order and out of the accessibility tree via the
   tabindex and aria-hidden on the markup side (db.php::web_form_honeypot). */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The result line under every form. Empty and invisible until JavaScript puts
   a message in it, so it takes no vertical space on a form nobody has
   submitted — margin and padding only apply once it has content. */
.form-status:empty {
  display: none;
}

.form-status {
  margin: var(--spacing-sm) 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: var(--font-size-small);
  line-height: 1.4;
  text-align: center;
}

/* Success and error read as themselves on ANY background this can land on —
   the navy demo-form box, the grey contact card, the dark blue footer. Hence
   solid fills rather than tinted text: a green-on-white message would be
   invisible in the footer, and white-on-transparent unreadable on the grey
   card. */
.form-status--success {
  background-color: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
}

.form-status--error {
  background-color: #b3261e;
  color: var(--color-white);
  font-weight: 700;
}

/* Once a submission succeeds the fields go away and only the confirmation is
   left, so there is no half-filled form inviting a second identical send.
   (The server would absorb one anyway — SP_WEB_LEAD_CREATE ignores a repeat
   inside two minutes — but the visitor should not have to wonder.) */
.demo-form.is-sent .form-group,
.demo-form.is-sent button,
.cta-block__form.is-sent .form-field,
.cta-block__form.is-sent button,
.newsletter-form.is-sent .newsletter-form__field,
.newsletter-form.is-sent button {
  display: none;
}

/* ---------- Footer newsletter signup ---------- */
.footer__newsletter .footer__title {
  text-transform: none;   /* the other three footer headings are caps; the
                             design renders this one as a sentence */
  margin-bottom: var(--spacing-sm);
}

.newsletter-form__field {
  margin-bottom: 12px;
}

/* White pills with centred placeholder text, per the design. The explicit
   color/background matter: these inputs sit on the dark blue footer, where a
   browser default would render white-on-white text as the visitor types. */
.newsletter-form input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  text-align: center;
}

.newsletter-form input::placeholder {
  color: rgba(0, 74, 135, 0.65);
  opacity: 1;   /* Firefox dims placeholders to 54% by default */
}

/* The keyboard focus ring has to be drawn explicitly here — the inputs have
   no border to change, and the footer is too dark for the browser default to
   be visible against it. */
.newsletter-form input:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

.newsletter-form button {
  margin-top: 4px;
}

@media (max-width: 768px) {
  /* The footer collapses to a single centred column at this width, so the
     form would otherwise stretch the full page. */
  .footer__newsletter .newsletter-form {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* The conditional "who referred you?" box on the demo form. Rendered with the
   `hidden` attribute and unhidden by js/main.js only when the dropdown answer
   needs a name — so with JavaScript off it stays visible rather than becoming
   unreachable. [hidden] needs the explicit display:none because .form-group
   sets a display that would otherwise win. */
.demo-form .form-group[hidden] {
  display: none;
}

/* FAQ question badge (schedule-a-demo, Module 5). The design sets a circular
   "?" beside each question with the text starting to its right and wrapping
   flush, so the icon and heading share a grid row rather than the icon being
   an inline character in the heading — an inline icon would let the second
   line of a wrapped question slide underneath it. */
.faq-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  color: var(--color-dark-blue);   /* the circle fill — the glyph stays white */
  flex-shrink: 0;
  margin-top: 2px;                 /* optical alignment with the cap height */
}

/* The answer starts under the question, not under the icon. */
.faq-item__answer {
  grid-column: 2;
}


/* ============================================================================
   OUR COURSES PAGE (design — Canva DAG8wCyOIZc, "imPower Classes Page V1")
   ----------------------------------------------------------------------------
   Only ONE module on that page needed new CSS: the catalog cards. Everything
   else is an existing component under a different option —

     module 2  accordion(['layout' => 'split', 'variant' => 'green'])
     module 7  logo_carousel(['variant' => 'inline'])
     module 8  testimonial_slider(['variant' => 'feature'])
     module 9  cta_box(['variant' => 'panel', 'panel_variant' => 'green'])
     module 10 article_card_grid(['variant' => 'blue'])

   Colours below are SAMPLED off the design capture, not read off the doc:
     course card stroke   #0B6BA9 -> #1B99D7 left to right   (the blue gradient)
     workshop card stroke #8CCB08 -> #6B9F00 left to right   (LINEAR, not the
       radial --gradient-green; the doc says "green gradient" and a radial one
       would darken visibly at the corners, which the design does not do)
     card button          #93D50A pill with #004A87 label    (NOT the white
       label of .btn--primary everywhere else on the site)
     eyebrow              #004A87

   The stroke is a gradient, so it cannot be a border-color. Both cards use the
   two-background padding-box/border-box trick: a flat white fill clipped to the
   padding box painted OVER the gradient clipped to the border box, with a
   transparent border letting the gradient show through as the stroke.
   ========================================================================== */

.catalog-grid {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* Two courses side by side, then the workshops full width underneath —
   exactly how the design stacks them. minmax(0, 1fr) rather than 1fr so a long
   unbroken topic string can never force the column wider than its share. */
.catalog-grid--courses {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-grid--workshops {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-grid:last-child {
  margin-bottom: 0;
}

.catalog-card {
  display: grid;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  border: 3px solid transparent;
  border-radius: var(--radius-card);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Both layouts end in a SPARE 1fr row that exists only to soak up slack.

   Without it the cards misrender in two different ways, and both were live
   until they were measured:

   - Course cards stretch to their tallest sibling (the grid's default
     align-content), and with every row `auto` that surplus is shared out
     across ALL of them — so the shorter card's header grew from 48px to 76px
     and its "Topics Covered:" sat 83px below its neighbour's. The design has
     the two aligned. One flexible row takes the surplus instead and every
     other row stays at its content height.
   - Workshop cards have a topics column far taller than the copy beside it,
     and that excess likewise spread into the copy rows, pushing the button to
     the bottom of the card. The design puts it directly under the blurb with
     the whitespace below it. Letting `topics` span down into the spare row
     parks the excess there. */
.catalog-card--course {
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(to right, #004A87, #69c3e8);
  grid-template-columns: minmax(0, 1fr);
  /* The spare row sits BETWEEN topics and cta, not after it: the design bottom-
     aligns the two cards' buttons and lets the shorter card's whitespace fall
     above its button. Putting the flexible row last would have pushed that
     card's button up instead, breaking the alignment. */
  grid-template-areas: "head" "title" "blurb" "topics" "spare" "cta";
  grid-template-rows: auto auto auto auto 1fr auto;
  text-align: center;
}

.catalog-card--workshop {
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(to right, var(--color-green), var(--color-dark-green));
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: var(--spacing-lg);
  grid-template-areas:
    "head  head"
    "title topics"
    "blurb topics"
    "cta   topics"
    ".     topics";
  grid-template-rows: auto auto auto auto 1fr;
  text-align: left;
}

.catalog-card__head   { grid-area: head; }
.catalog-card__title  { grid-area: title; }
.catalog-card__blurb  { grid-area: blurb; }
.catalog-card__topics { grid-area: topics; }
.catalog-card__cta    { grid-area: cta; }

/* Eyebrow left, icon right, on one row above everything. */
.catalog-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.catalog-card__eyebrow {
  font-size: var(--font-size-small);
  letter-spacing: 0.04em;
  color: var(--color-dark-blue);
  text-transform: uppercase;
}

/* Fixed box + contain: the five source glyphs are all 540x540 but their ink
   fills between 52% and 76% of it, so sizing by width alone would make the
   RDi cubes read noticeably larger than the database mark. */
.catalog-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Upright, against the site-wide h3 rule.

   The style doc says "H3: 20pt, Bold Italized" and styles.css applies that to
   every h3, but the DESIGN sets these card titles — and the article card
   titles beside them — in upright bold. Design wins over doc (Michelle,
   2026-08-10). Scoped to the card rather than changed globally: dropping the
   italic site-wide is a real decision that touches every h3 on every page and
   belongs to her, not to this pass. */
.catalog-card__title {
  margin: 0 0 var(--spacing-sm);
  color: var(--color-dark-blue);
  font-style: normal;
}

.catalog-card__blurb {
  margin: 0 0 var(--spacing-md);
  color: var(--color-dark-blue);
}

.catalog-card__topics-title {
  margin: 0 0 var(--spacing-xs);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-dark-blue);
  /* The list is left-aligned even on the centred course card — the design
     centres the title and blurb only. */
  text-align: left;
}

/* Discs, explicitly. The sheet's global reset sets list-style: none on every
   ul (correct for the nav and footer menus), which silently swallowed the
   bullets the design shows — the text still indented, so it read as a styling
   near-miss rather than a missing marker. */
.catalog-card__topics-list {
  margin: 0 0 var(--spacing-md);
  padding-left: 1.25em;
  text-align: left;
  color: var(--color-dark-blue);
  list-style: disc outside;
}

.catalog-card__topics-list li {
  margin-bottom: 4px;
}

/* Bottom-aligned so the two course cards' buttons line up even when one has
   more topics than the other. align-self:end on the last row of the grid. */
.catalog-card__cta {
  align-self: end;
  margin-top: auto;
}

.catalog-card--course .catalog-card__cta {
  display: flex;
  justify-content: center;
}

/* The one place on the site where the green pill takes a dark-blue label
   (design + the page's style doc both call it out). Scoped to the card so
   .btn--primary keeps its white label everywhere else. */
.catalog-card .btn--primary {
  color: var(--color-dark-blue);
}

.catalog-card .btn--primary:hover {
  color: var(--color-white);
}

.catalog-card__soon {
  display: inline-block;
  padding: 12px 28px;
  font-size: var(--font-size-cta);
  font-weight: 700;
  color: var(--color-dark-blue);
  border: 2px dashed var(--color-green);
  border-radius: 999px;
  opacity: 0.75;
}

/* ---------- Our Courses responsive ----------
   The two-column workshop card and the 2-up course row both collapse at the
   same width the home page's paired layouts do, so the whole site steps down
   together. Restated at TWO classes because the desktop rules above are two
   classes: a single-class override here would lose regardless of order. */
@media (max-width: 900px) {
  .catalog-grid.catalog-grid--courses {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-card.catalog-card--workshop {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "title"
      "blurb"
      "topics"
      "cta";
    grid-template-rows: auto;
    row-gap: 0;
  }
}

/* ============================================================
   EVENTS + SPEAKING SESSIONS (Canva DAHBi53z2-s / DAHSe9htsFQ /
   DAHSfDE1w_I). Everything below is appended at the END of the
   sheet on purpose: .section is declared TWICE in this file and
   several other single-class rules sit far down it, so anything
   placed "next to the component it serves" can silently lose on
   source order. Modifiers are still written at two classes where
   a later rule could reach them.
   ============================================================ */

/* ---------- Secondary hero button (white fill, green ring, green label) ------
   Both new designs draw the hero's SECOND button this way. The site's existing
   .btn--outline is transparent with a white ring and white label, which is what
   course.php's closing CTA uses on a gradient -- so this is a new modifier
   rather than a change to that one. Restated at .btn.btn--white-green because
   .btn sets its own background and border above. */
.btn.btn--white-green {
  background-color: var(--color-white);
  color: var(--color-green);
  border: 2px solid var(--color-green);
  font-weight: 700;
}

.btn.btn--white-green:hover {
  background-color: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

/* ---------- Dark button (Book this Session / Schedule a Call) ----------
   The session designs use a solid dark-blue pill where the rest of the site
   uses green. It is the only button on those pages that must NOT read as the
   primary conversion colour, so it gets its own modifier rather than an
   inline style. */
.btn--dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border: none;
  font-weight: 700;
}

.btn--dark:hover {
  background-color: var(--color-darkest-blue);
  color: var(--color-white);
}

/* ---------- "Available Sessions" band ----------
   A label for the three sliders under it, not a section of its own, so the
   vertical padding is deliberately a fraction of a normal section's. */
.section.section-band {
  background-color: var(--color-darkest-blue);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.section.section-band h2 {
  color: var(--color-white);
  margin-bottom: 0;
}

/* ---------- Bare chevron arrows (event + session sliders) ----------
   The global .slider-arrow is a filled dark-blue circle. Both of these designs
   draw a bare chevron outside the card instead, so the circle is unset here.
   `fill: none` has to be restated in CSS: .slider-arrow svg sets
   `fill: var(--color-white)`, and a stylesheet rule beats the fill="none"
   presentation attribute on the polyline — without this the chevrons render as
   solid white triangles. */
/* The `hidden` attribute's UA default is display:none, and the rule below sets
   display:flex on the same element -- a stylesheet rule beats the UA default,
   so an arrow that JS has correctly marked hidden (nothing to page through)
   stays on screen. Found by LOOKING at the render: the DOM said hidden:true and
   the picture showed two arrows. */
.slider-arrow[hidden] {
  display: none;
}

.event-slider .slider-arrow,
.session-slider .slider-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background-color: transparent;
  color: var(--color-dark-blue);
}

.event-slider .slider-arrow:hover,
.session-slider .slider-arrow:hover {
  background-color: transparent;
  color: var(--color-green);
}

.event-slider .slider-arrow svg,
.session-slider .slider-arrow svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
}

/* Green cards get green chevrons (design). Two classes, so a later
   single-class rule cannot take the colour back. */
.session-slider.session-slider--green .slider-arrow {
  color: var(--color-green);
}

.session-slider.session-slider--green .slider-arrow:hover {
  color: var(--color-dark-green);
}

/* ---------- Upcoming event cards (Events module 2) ---------- */
.event-slider {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* The fixed viewport is what clips; the TRACK is what moves. Clipping the
   track would make it its own moving clip box and hide every slide after the
   first — the bug that has bitten three components in this sheet. */
.event-slider__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.event-slider__track {
  display: flex;
  transition: transform var(--transition-base, 0.3s ease);
}

/* Two cards per view on desktop. initSliders() advances by 100% of the TRACK,
   so at 50% per slide the pair steps two at a time — which is what the design's
   two-up row implies. */
.event-slider__slide {
  flex: 0 0 50%;
  min-width: 0;
  padding: 0 var(--spacing-sm);
  box-sizing: border-box;
  display: flex;
}

.event-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-white);
  border: 2px solid var(--color-light-blue);
  border-radius: 16px;
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
}

/* Fixed slot + object-fit, NOT height with width:auto. Conference logos run
   from a 6:1 banner (iCON) to a 2.3:1 mark (MITEC); sized by height they would
   render at wildly different widths and the row would stop looking like a set.
   The slot is a fraction, never a pixel width, so it shrinks with .container
   below 1200 instead of overflowing it. */
.event-card__logo {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.event-card__name {
  font-style: normal;
  color: var(--color-dark-blue);
  margin: 0;
}

.event-card__meta {
  color: var(--color-dark-blue);
  margin: 0;
}

/* One flexible row so the buttons bottom-align across cards whose names wrap
   to different numbers of lines. margin-top:auto inside a flex column does the
   same job as a spacer track in a grid. */
.event-card__btn {
  margin-top: auto;
}

.event-cards__empty {
  font-style: normal;
  text-align: center;
  color: var(--color-dark-blue);
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Past events, year tabs (Events module 3) ---------- */
.year-tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: 0;
}

.year-tabs__tab {
  appearance: none;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--color-dark-blue);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px 8px 0 0;
  transition: background-color var(--transition-fast);
}

.year-tabs__tab:hover {
  background-color: var(--color-gray);
}

/* The active tab shares the panel's fill so the two read as one shape — the
   design's selected year sits on a tab that merges into the panel below it. */
.year-tabs__tab.year-tabs__tab--active {
  background-color: var(--color-gray);
}

.year-tabs__panel {
  background-color: var(--color-gray);
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.year-tabs__panel[hidden] {
  display: none;
}

.past-event {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: var(--spacing-lg);
}

.past-event__logo {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.past-event__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.past-event__name {
  font-style: normal;
  color: var(--color-dark-blue);
  margin: 0 0 4px;
}

.past-event__meta {
  color: var(--color-dark-blue);
  margin: 0;
}

/* ---------- Session sliders (Speaking Sessions module 3) ---------- */
.session-slider {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.session-slider__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.session-slider__track {
  display: flex;
  transition: transform var(--transition-base, 0.3s ease), height var(--transition-base, 0.3s ease);
}

.session-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-self: flex-start;
}

.session-card {
  flex: 1 1 auto;
  background: var(--gradient-blue);
  color: var(--color-white);
  border-radius: 28px;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
}

/* Two classes: .session-card sets the blue gradient above and a single-class
   --green would be a coin toss on source order against it. */
.session-card.session-card--green {
  background: linear-gradient(to right, #93d50a, #6a9d00);
}

.session-card__title {
  font-style: normal;
  color: var(--color-white);
  margin: 0 0 var(--spacing-md);
}

.session-card__text p {
  color: var(--color-white);
  margin: 0 auto var(--spacing-md);
  max-width: 900px;
}

.session-card__text p:last-child {
  margin-bottom: 0;
}

.session-card__btn {
  margin-top: var(--spacing-md);
}

/* The three-part RPG series repeats the same footnote on each of its parts —
   smaller, italic, under the button (design). */
.session-card__note {
  margin: var(--spacing-lg) auto 0;
  max-width: 900px;
  font-size: var(--font-size-small);
  font-style: italic;
  color: var(--color-white);
}

/* ---------- Session detail body (session.php) ---------- */
.session-body {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--color-dark-blue);
}

.session-body h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.session-body h2:first-child {
  margin-top: 0;
}

.session-body p {
  color: var(--color-dark-blue);
}

/* The sheet's global reset sets list-style:none on every ul (right for the nav
   and footer menus, wrong for real content — the text still indents, so a
   missing bullet reads as a near-miss rather than a bug). Restated here. */
.session-body ul {
  list-style: disc outside;
  padding-left: 1.5em;
  margin-bottom: var(--spacing-md);
}

.session-body ol {
  list-style: decimal outside;
  padding-left: 1.5em;
  margin-bottom: var(--spacing-md);
}

.session-body li {
  margin-bottom: 6px;
  color: var(--color-dark-blue);
}

.session-body__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-lg);
}

/* ---------- Session cards on the detail page's "More sessions" strip ----------
   Same three-up grid as related courses, but the design puts the button INSIDE
   the gradient and makes it green. Two classes so the base
   .related-course-card__gradient rules further up cannot win back the padding. */
.related-course-card.related-course-card--session .related-course-card__gradient {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  min-height: 290px;
  padding: var(--spacing-lg) var(--spacing-md);
}

.related-course-card.related-course-card--session .related-course-card__btn {
  margin-top: auto;
}

/* ---------- Narrow screens ----------
   Restated at two classes wherever the desktop rule above is two classes; a
   single-class override loses to a two-class rule at every breakpoint
   regardless of order. */
@media (max-width: 900px) {
  .event-slider__slide {
    flex: 0 0 100%;
  }

  .past-event {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-sm);
    text-align: center;
    justify-items: center;
  }

  .past-event__logo {
    height: 70px;
  }

  .year-tabs__tab {
    font-size: var(--font-size-base);
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .session-card {
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 20px;
  }

  .event-slider .slider-arrow,
  .session-slider .slider-arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .event-slider .slider-arrow svg,
  .session-slider .slider-arrow svg {
    width: 22px;
    height: 22px;
  }

  .session-body__actions {
    justify-content: center;
  }
}

/* ============================================
   Books Page (Canva DAG-49bimOI)
   Capture: specs/books-design/canva-01..04.png
   Appended at the end of the stylesheet deliberately: every rule here is a
   new class name (grepped — no collisions), and being last means no later
   single-class rule can take a property back the way .media-frame--rounded
   silently beat .media-frame--green.
   ============================================ */

/* The intro prose and the featured card share one gray field, so the card's
   section drops its top padding. Doubled class: `.section` is declared twice
   in this file and a single-class override between the two loses on source
   order. */
.section.book-feature-section {
  padding-top: 0;
}

/* ---------- Module 2: the featured green card ----------
   Square corners, not rounded — sampled the capture's corner pixel and it is
   #93D50A right to the edge. Title and button are dark blue on the green;
   the body copy is white. */
.book-feature {
  display: grid;
  grid-template-columns: 1fr minmax(0, 320px);
  gap: var(--spacing-xl);
  background-color: var(--color-green);
  padding: var(--spacing-xl) var(--spacing-lg);
  align-items: start;
}

.book-feature__title {
  color: var(--color-dark-blue);
  margin: 0 0 var(--spacing-sm);
}

.book-feature__meta {
  color: var(--color-white);
  font-weight: 600;
  margin: 0 0 4px;
}

.book-feature__text {
  margin-top: var(--spacing-md);
}

.book-feature__text p {
  color: var(--color-white);
  margin: 0 0 var(--spacing-md);
}

.book-feature__text p:last-child {
  margin-bottom: 0;
}

.book-feature__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

/* The cover sits on a white mat, as the design draws it. min-width:0 so the
   column may shrink below the image's intrinsic width instead of forcing the
   grid wider — the trap that overflowed 1024 by 72px on Our Courses. */
.book-feature__cover {
  background-color: var(--color-white);
  padding: 10px;
  line-height: 0;
  min-width: 0;
  max-width: 100%;
}

.book-feature__cover img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.book-feature__btn {
  align-self: center;
}

/* ---------- Module 8: the one-up book slider ----------
   Same contract as .session-slider: flex row, arrows are flex children of the
   slider itself, overflow lives on the viewport and never on the track. */
.book-slider {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.book-slider__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.book-slider__track {
  display: flex;
  transition: transform var(--transition-base, 0.3s ease), height var(--transition-base, 0.3s ease);
}

.book-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-self: flex-start;
}

/* White chevrons on the gradient. `fill: none` has to be restated: the global
   .slider-arrow svg sets fill:white, and a stylesheet rule beats the
   fill="none" presentation attribute — without this the chevrons render as
   solid white triangles. */
.book-slider .slider-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background-color: transparent;
  color: var(--color-white);
}

.book-slider .slider-arrow:hover {
  background-color: transparent;
  color: var(--color-green);
}

.book-slider .slider-arrow svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
}

.book-card {
  flex: 1 1 auto;
  text-align: center;
  color: var(--color-white);
}

.book-card__cover {
  margin: 0 auto var(--spacing-lg);
  max-width: 260px;
  line-height: 0;
}

.book-card__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.book-card__title {
  font-style: normal;
  color: var(--color-white);
  margin: 0 0 var(--spacing-sm);
}

.book-card__meta {
  color: var(--color-white);
  font-weight: 600;
  margin: 0 0 4px;
}

.book-card__text {
  margin-top: var(--spacing-md);
}

.book-card__text p {
  color: var(--color-white);
  margin: 0 auto var(--spacing-md);
  max-width: 900px;
}

.book-card__text p:last-child {
  margin-bottom: 0;
}

.book-card__btn {
  margin-top: var(--spacing-lg);
}

/* ---------- Module 9: unframed graphic beside the copy ----------
   media_block's 'none' frame. Sized here because the bare wrapper carries no
   rules of its own. */
.media-frame--none {
  width: 100%;
  line-height: 0;
}

.media-frame--none img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .book-feature {
    grid-template-columns: 1fr;
    padding: var(--spacing-lg) var(--spacing-md);
  }

  /* The cover leads on a phone — a wall of body copy above it buries the book
     the card is about. */
  .book-feature__aside {
    order: -1;
  }

  .book-slider .slider-arrow {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .book-slider .slider-arrow svg {
    width: 24px;
    height: 24px;
  }

  .book-card__cover {
    max-width: 200px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Course page — T-1654 design pass (Jenn's five course designs)
   Only pieces with NO earlier competing rule live here. Everything that
   overrides an existing declaration was edited in place instead, because a
   single-class rule appended at the end of this file also outranks the
   responsive media queries above it — that is how the 200px .section gap and
   the blue .media-frame--green both survived a "fix".
   ════════════════════════════════════════════════════════════════════════ */

/* The overview CTA is ONE pill with two lines ("Book a Demo" over "Group
   Discounts Available"), not a button with a caption beside it. */
.btn--stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.btn--stacked .btn__sub {
  font-size: var(--font-size-small);
  font-weight: 400;
}

/* The overview graphic is the subject's green gradient panel, square, and it
   should not stretch to the column the way a photo would. */
.page-course .grid-2 img {
  max-width: 420px;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  /* Heading over the arrows rather than beside them once the row is tight. */
  .case-study-slider__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .case-study-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* The badge is decorative next to the narrative; cap it so it does not
     take a whole phone screen before the copy is reached. */
  .case-study-card__logo img {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  /* One column, so the disc no longer needs to be 67% of a third of the row. */
  .related-course-card {
    padding-top: 110px;
  }

  .related-course-card__disc {
    width: 200px;
  }

  .related-course-card__gradient {
    padding-top: calc(100px + var(--spacing-md));
  }
}

/* Adaptive height needs BOTH halves, and the attribute alone is a no-op.
   A flex track stretches every slide to the track's own height, so
   syncHeight()'s `slides[i].offsetHeight` just reads back the height it set
   and the track latches at the tallest slide forever — the section kept 1192px
   whichever quote was showing. `align-items: flex-start` lets each slide be
   its natural height so there is a real number to measure. The feature variant
   has carried this pair since the home build; the course variant did not.
   Two classes, so it outranks the single-class base track rule above. */
.testimonial--course .testimonial-slider__track {
  align-items: flex-start;
  transition: transform var(--transition-slow), height var(--transition-normal);
}

/* No photo and no LinkedIn — the figure column is omitted entirely, so the
   grid must stop reserving a ~420px track for it. This is the state the SQL
   Workshop ships in until Michelle settles the headshot question. */
.instructor--no-figure {
  grid-template-columns: 1fr;
}

/* Session cards carry no disc, so they must not reserve the space one would
   occupy. `.related-course-card` sets `padding-top: 26%` for the disc overlap
   on COURSE cards; without this the speaking-session strip gains ~95px of
   empty space above every card. Two classes so it outranks that rule. */
.related-course-card.related-course-card--session {
  padding-top: 0;
}

/* ============================================
   Case Studies (Canva DAG-4Wl3Axk)
   ============================================
   Emitted by inc/sections/case_study_detail.php, three sections per row in
   WEB_CASE_STUDIES: stats band, dark-blue story + quote, download CTA.
   Every class here is new to the sheet (nothing matched `.cs-` before), so
   none of these can be taken back by an earlier single-class rule.
   ============================================ */

/* ---------- 1. Stats: gray heading band over a white stat band ---------- */
.cs-stats__head {
  background-color: var(--color-gray);
  padding: var(--spacing-lg) 0;
}
.cs-stats__head > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}
.cs-stats__name {
  color: var(--color-dark-blue);
  margin-bottom: 0;
}
/* Fixed slot + object-fit, NOT height with width:auto: these two logos are a
   tall circular badge and a wide wordmark, and sizing by height alone renders
   them at wildly different visual weights. minmax-free because the slot must
   not grow, but max-width keeps it inside a narrow viewport. */
.cs-stats__logo {
  flex: 0 0 auto;
  width: 260px;
  max-width: 40%;
  height: 90px;
}
.cs-stats__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.cs-stats__body {
  background-color: var(--color-white);
  padding: var(--spacing-xl) 0;
}
.cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-md);
}
/* Three rows, and the CAPTION row is the flexible one. A grid whose rows are
   all `auto` shares the stretch out across every row, which would push the
   circles to different heights column by column; giving the last row the slack
   pins every circle to the same line and lets captions of 1-3 lines hang below.
   (`0fr` does NOT work here — it is a flexible track with a zero factor, so it
   absorbs nothing and the stretch spreads again.) */
.cs-stat {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  text-align: center;
  gap: var(--spacing-sm);
}
.cs-stat__label {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-dark-blue);
  line-height: 1.2;
}
.cs-stat__circles {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.cs-stat__circle {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The glyphs are #004A87 line drawings on transparent, sized to sit inside the
   circle rather than fill it — they are not discs and must not touch the edge. */
.cs-stat__circle img {
  width: 55%;
  height: 55%;
  object-fit: contain;
}
.cs-stat__value {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-dark-blue);
  line-height: 1;
}
.cs-stat__caption {
  font-size: var(--font-size-small);
  color: var(--color-dark-blue);
  line-height: 1.35;
}

/* ---------- 2. Story: headline + photo beside the toggles, then the quote --- */
.cs-story {
  background-color: var(--color-dark-blue);
  padding: var(--spacing-xxl) 0;
}
.cs-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--spacing-xl);
  align-items: start;
}
.cs-story__grid--no-photo { grid-template-columns: minmax(0, 1fr); }
.cs-story__headline {
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}
.cs-story__intro .media-frame--rounded { max-width: 100%; }

/* The accordion body carries real bullet lists (the Challenge/Strategy/Results
   columns are written "- " per line). The sheet's global reset sets
   list-style:none on every ul — right for the nav and footer menus, silently
   wrong here: the text still indents, so a missing marker reads as a styling
   near-miss rather than a missing bullet. */
.accordion__body ul {
  list-style: disc outside;
  margin: 0 0 var(--spacing-sm) var(--spacing-md);
}
.accordion__body ul li { margin-bottom: 4px; }
.accordion__body ul:last-child { margin-bottom: 0; }

/* Green block on the blue field, with the design's oversized opening quote
   mark hanging off its top-left corner. */
.cs-quote {
  position: relative;
  margin: var(--spacing-xxl) 0 0;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
  background-color: var(--color-green);
  border-radius: var(--radius-card);
  text-align: center;
}
.cs-quote::before {
  content: "\201C";
  position: absolute;
  top: -34px;
  left: 6px;
  font-size: 150px;
  line-height: 1;
  color: var(--color-white);
  font-weight: 700;
}
.cs-quote__text {
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-xs);
}
.cs-quote__cite {
  font-style: normal;
  font-size: var(--font-size-base);
  color: var(--color-dark-blue);
}

/* ---------- 3. Download CTA ---------- */
.cs-download { background-color: var(--color-white); }
.cs-download--gray { background-color: var(--color-gray); }
.cs-download__heading {
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-lg);
}

/* ---------- Module 9: the closing form, plain colourway ---------- */
/* Doubled on purpose: .demo-form-section sets the blue band and the card lift
   for schedule-a-demo, and this has to take both back wherever it lands in the
   sheet. The Case Studies design draws a plain white section with a gray card
   and both columns top-aligned. */
.demo-form-section.demo-form-section--plain {
  padding: var(--spacing-xxl) 0;
}
.demo-form-section.demo-form-section--plain::before { display: none; }
.demo-form-section.demo-form-section--plain .demo-form-content { padding-top: 0; }
.demo-form-section.demo-form-section--plain .demo-form-box { margin-top: 0; }

/* The CARD itself, which the band/lift reset above does not touch. Caught by
   LOOKING at the render, not by the geometry sweep: the card kept
   schedule-a-demo's green gradient and white centered heading while the Case
   Studies design specs a flat #F4F4F4 card with a dark-blue heading. Every
   selector here is doubled so it cannot be taken back by a single-class rule
   further down the sheet. */
.demo-form-section.demo-form-section--plain .demo-form-box {
  background: var(--color-gray);
  box-shadow: none;
  border-radius: 16px;
}
.demo-form-section.demo-form-section--plain .demo-form-box h3 {
  color: var(--color-dark-blue);
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .cs-stat__circle { width: 118px; height: 118px; }
  .cs-stat__value { font-size: 34px; }
}

@media (max-width: 900px) {
  .cs-story__grid { grid-template-columns: minmax(0, 1fr); }
  .cs-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
  .cs-stats__head > .container { flex-direction: column; align-items: flex-start; gap: var(--spacing-md); }
  .cs-stats__logo { width: 220px; max-width: 100%; height: 72px; }
  .cs-stats__logo img { object-position: left center; }
  .cs-quote { padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md); }
  .cs-quote::before { font-size: 110px; top: -24px; left: 2px; }
}

@media (max-width: 520px) {
  .cs-stat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The Case Studies design draws the hero lead in GREEN, not the white every
   other inner-page hero uses. Scoped to this page rather than changed on the
   shared .hero--page-header: this is the only design in hand that shows it
   green, and quietly recolouring the lead on who-we-are, books, events,
   speaking sessions and the session template — all of them sitting in
   Michelle's check queue — off one page's mockup would be a worse guess than
   an inconsistency she can see and rule on. Flagged to her. */
.page-case-studies .hero--page-header .hero__subtitle { color: var(--color-green); }

/* ════════════════════════════════════════════════════════════════════════
   ARTICLES PAGE (articles.php) — Canva DAG-42c5ggU
   Appended at the end of the file on purpose. `.article-card--blue` is
   declared TWICE in here (~2491 and ~3410) and the later one wins, so any
   new single-class rule placed near its neighbours can silently lose on
   source order. Nothing below shares a class with it.
   ════════════════════════════════════════════════════════════════════════ */

/* ---------- Module 2: numbered "Essential Reading" cards ---------- */
/* Square corners and a green button — deliberately NOT .article-card--blue,
   which is rounded with a white button and serves the home page and Our
   Courses. See the component docblock. */
.article-numbered__intro { max-width: 1000px; }

.article-numbered {
  margin-top: 60px;          /* room for the discs to rise above the row */
  align-items: stretch;
}

.article-card--numbered {
  position: relative;
  background: var(--gradient-blue-diagonal);
  color: var(--color-white);
  text-align: center;
  padding: 72px var(--spacing-md) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0;          /* the design draws hard corners */
}

.article-card--numbered__num {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 46px;
  font-weight: 700;
  line-height: 96px;
  text-align: center;
}

.article-card--numbered h3 {
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-style: normal;
  margin-bottom: var(--spacing-md);
}

/* The one flexible element in the column. Without it the cards stretch to the
   tallest sibling and the surplus is shared across every row, so the shorter
   card's button floats mid-air instead of sitting on the baseline the design
   draws. margin-top:auto on the button does the same job more directly than a
   grid-template-rows track, because this card is a flex column. */
.article-card--numbered p {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.article-card--numbered__btn {
  margin-top: auto;
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
}

.article-card--numbered__btn:hover {
  background-color: var(--color-dark-green);
  border-color: var(--color-dark-green);
  color: var(--color-white);
}

/* ---------- Module 3: the 3-up slider of imPower's own posts ---------- */
/* Same contract as .book-slider: flex row, arrows are flex children of the
   slider itself, overflow on the viewport and NEVER on the track. */
.article-slider__intro { max-width: 900px; margin-left: auto; margin-right: auto; }

.article-slider {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.article-slider__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* Centre a SHORT row (1-2 articles, which otherwise sit against the left edge
   with two thirds of the row empty) with auto margins on the end slides — NOT
   justify-content: center. That was here first, on the claim that centring
   is a no-op once the row overflows. It is not: a centred flex row that is
   wider than its box spills out BOTH sides, so with 13 articles the list
   started ~5 cards off-screen left and ended in ~5 cards of empty white
   (Michelle, 2026-10-08). Auto margins resolve to 0 when there is no free
   space, so an overflowing row starts at the left edge and pages normally. */
.article-slider__track {
  display: flex;
  align-items: stretch;
  transition: transform var(--transition-base, 0.3s ease);
}

.article-slider__slide:first-child { margin-left: auto; }
.article-slider__slide:last-child  { margin-right: auto; }

.article-slider__slide {
  flex: 0 0 33.3333%;
  min-width: 0;
  display: flex;
  padding: 0 var(--spacing-sm);
  box-sizing: border-box;
}

/* Dark-blue chevrons on white, outside the viewport. */
.article-slider .slider-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background-color: transparent;
  color: var(--color-dark-blue);
}

.article-slider .slider-arrow:hover {
  background-color: transparent;
  color: var(--color-green);
}

.article-slider .slider-arrow svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
}

.article-card--solid {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: var(--color-darkest-blue);
  color: var(--color-white);
  text-align: center;
}

/* The green rule the design draws between the image and the card body. */
.article-card--solid__image {
  height: 200px;
  border-bottom: 8px solid var(--color-green);
}

.article-card--solid__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-card--solid__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.article-card--solid__body h3 {
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-style: normal;
  margin-bottom: var(--spacing-md);
}

.article-card--solid__body p { color: var(--color-white); margin-bottom: var(--spacing-md); }

.article-card--solid__btn {
  margin-top: auto;
  align-self: center;
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-dark-blue);
  font-weight: 700;
}

.article-card--solid__btn:hover {
  background-color: var(--color-dark-green);
  border-color: var(--color-dark-green);
  color: var(--color-dark-blue);
}

/* ---------- Module 8: the one-up slider of off-site articles ---------- */
.article-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.article-feature__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* align-items: flex-start is REQUIRED, not cosmetic. A flex track stretches
   every slide to the track's own height, so syncHeight() reads back the
   height it just set and the track latches at the tallest slide forever —
   data-adaptive-height does nothing without it. */
.article-feature__track {
  display: flex;
  align-items: flex-start;
  transition: transform var(--transition-base, 0.3s ease), height var(--transition-base, 0.3s ease);
}

.article-feature__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-self: flex-start;
}

.article-feature__card {
  flex: 1 1 auto;
  text-align: center;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-feature__image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.article-feature__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-feature__title {
  color: var(--color-white);
  font-size: var(--font-size-h2);
  font-style: normal;
  margin-bottom: var(--spacing-md);
  max-width: 900px;
}

.article-feature__text {
  color: var(--color-white);
  max-width: 800px;
  margin-bottom: var(--spacing-lg);
}

.article-feature__btn {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
}

.article-feature__btn:hover {
  background-color: var(--color-dark-green);
  border-color: var(--color-dark-green);
  color: var(--color-white);
}

/* White chevrons on the gradient. `fill: none` has to be restated — the
   global .slider-arrow svg sets fill:white and a stylesheet rule beats the
   fill="none" presentation attribute, so without this they render as solid
   white triangles. */
.article-feature .slider-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background-color: transparent;
  color: var(--color-white);
}

.article-feature .slider-arrow:hover {
  background-color: transparent;
  color: var(--color-green);
}

.article-feature .slider-arrow svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
}

/* ---------- Articles responsive ---------- */
@media (max-width: 900px) {
  .article-slider__slide { flex: 0 0 50%; }
}

@media (max-width: 640px) {
  .article-slider__slide { flex: 0 0 100%; }
  .article-numbered { margin-top: 56px; }
  .article-card--numbered__num {
    width: 76px; height: 76px; line-height: 76px; font-size: 36px; top: -38px;
  }
  .article-card--numbered { padding-top: 56px; }
  .article-feature__image { width: 150px; height: 150px; }
  .article-slider .slider-arrow,
  .article-feature .slider-arrow { width: 32px; height: 32px; flex: 0 0 32px; }
  .article-slider .slider-arrow svg,
  .article-feature .slider-arrow svg { width: 24px; height: 24px; }
}

/* ============================================================
   BLOG ARTICLE DETAIL — article.php
   Canva DAHBh1hXzf0 + "Articles.Blog Template Page" (Jenn, 2026-09).

   Type scale note: the designer specs this page in POINTS, and the site's
   tokens already encode her scale (--font-size-base 21px = her 16pt, so the
   factor is 21/16). Her H2 25pt and H3 20pt land exactly on --font-size-h2
   (33px) and --font-size-h3 (27px), which is the confirmation the scale is
   right. Only the body paragraph differs from the rest of the site — she
   specs 18pt here against 16pt elsewhere — so it is derived rather than
   hardcoded, and it tracks if the base ever moves.
   ============================================================ */

/* ---------- Hero with a cover image straddling the boundary ---------- */
/* Same mechanism as .hero--video and for the same reason: the blue/gray split
   has to land at a fixed point ON THE IMAGE. Putting it on the section would
   move it every time a headline rewrapped to a second or third line — and blog
   headlines vary far more than the home page's one fixed string.

   63%, measured off the design capture: cover spans y 450-910, boundary at
   y 740, so (740-450)/460. */
.hero--article {
  min-height: 0;
  display: block;                 /* .hero is a flex centring box */
  padding: 0;                     /* the body section supplies the gap below */
  background-color: var(--color-gray);
  text-align: center;
}

.hero--article::before { content: none; }   /* no scrim: there is no bg image */

.hero--article .hero__copy {
  background-color: var(--color-dark-blue);
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl);
}

.hero--article .hero__band {
  background: linear-gradient(to bottom,
              var(--color-dark-blue) 63%,
              var(--color-gray)      63%);
}

/* A cover-less article does NOT use this variant at all — article.php passes
   plain 'solid-blue' instead. hero.php emits .hero__copy only when there is a
   band, so every rule scoped to .hero--article .hero__copy is unreachable
   without a cover, and .hero--article's own padding:0 + gray background would
   leave the title clipped under the fixed header. Do not "fix" that here by
   styling .hero--article directly; the variant means "there is a band". */

.hero--article .hero__title {
  font-size: var(--font-size-h1);
  line-height: 1.2;
  max-width: 1040px;
  margin: 0 auto;
}

/* 815x450 per the design. No green stroke — that belongs to the home page's
   VIDEO frame; this design draws the cover as a plain image. */
.hero__cover-frame {
  position: relative;
  z-index: 1;
  max-width: 815px;
  margin: 0 auto;
  line-height: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* The design specs an 815x450 cover and the band's 63% split is measured
   against THAT shape, so the ratio is pinned here rather than trusted from
   the upload. A portrait source (the first test used a 770x1024 headshot)
   otherwise renders over 1000px tall, pushes the whole body down and moves
   the blue/gray boundary to a meaningless point on the image. Same treatment
   as .instructor__frame img, for the same reason. */
.hero__cover-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 815 / 450;
  object-fit: cover;
}

/* ---------- Module 2: the article body ---------- */
/* 1040px, not the full 1200px content box: the design insets the reading
   column about 80px each side, which is also simply better for reading. */
.article-body {
  max-width: 1040px;
  margin: 0 auto;
  color: var(--color-dark-blue);
  font-size: calc(var(--font-size-base) * 18 / 16);   /* her 18pt */
  line-height: 1.65;
}

/* Everything below is SCOPED to .article-body on purpose. This is the only
   markup on the site we do not write ourselves — it comes out of the hub's
   TinyMCE — so its element selectors must not be able to leak into any other
   page's typography. */
.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child  { margin-bottom: 0; }

.article-body p {
  margin: 0 0 var(--spacing-md);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.article-body h2 {
  font-size: var(--font-size-h2);           /* her 25pt */
  font-weight: 700;
  color: var(--color-dark-blue);
  margin: var(--spacing-xl) 0 var(--spacing-md);
}

.article-body h3 {
  font-size: var(--font-size-h3);           /* her 20pt, bold italic */
  font-weight: 700;
  font-style: italic;
  color: var(--color-dark-blue);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.article-body a {
  color: var(--color-dark-blue);
  text-decoration: underline;
}

.article-body a:hover { color: var(--color-light-blue); }

/* Markers, explicitly. The sheet's global reset sets list-style:none on every
   ul/ol -- right for the nav and footer menus, silently wrong here. The text
   still indents, so a missing marker reads as a styling near-miss rather than
   a missing bullet, which is how it survived: article 5 has shipped two
   bulleted lists with no bullets since sql/24. Same fix the accordion body,
   the prose block and the book list already carry. */
.article-body ul,
.article-body ol { margin: 0 0 var(--spacing-md); padding-left: var(--spacing-lg); }
.article-body ul { list-style: disc outside; }
.article-body ol { list-style: decimal outside; }
.article-body li { margin-bottom: var(--spacing-xs); }

/* Her "Quotes: #69c3e8, 18pt, Italized". */
.article-body blockquote {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-md);
  border-left: 4px solid var(--color-light-blue);
  color: var(--color-light-blue);
  font-style: italic;
}

/* An in-body image — the design floats one left in the "Help Tickets"
   section with the copy wrapping beside it. Authored in the hub, so the
   float is opt-in via TinyMCE's alignment, and a bare <img> just goes full
   width and stays responsive. */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.article-body img[style*="float: left"],
.article-body img[align="left"]  { margin: 0 var(--spacing-md) var(--spacing-sm) 0; }
.article-body img[style*="float: right"],
.article-body img[align="right"] { margin: 0 0 var(--spacing-sm) var(--spacing-md); }

/* ---------- Previous / Next ---------- */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 1040px;
  margin: var(--spacing-xl) auto 0;
}

.article-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-dark-blue);
  font-size: var(--font-size-cta);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Holds the row's shape at the first and last article instead of letting the
   one remaining control slide to the middle. */
.article-nav__link.is-disabled { visibility: hidden; }

.article-nav__link--next { margin-left: auto; }

.article-nav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid var(--color-dark-blue);
  border-radius: 50%;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.article-nav__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-dark-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-fast);
}

.article-nav__link:hover .article-nav__arrow {
  background-color: var(--color-dark-blue);
}

.article-nav__link:hover .article-nav__arrow svg { stroke: var(--color-white); }

@media (max-width: 768px) {
  .hero--article .hero__title { font-size: var(--font-size-h2); }
  .article-body { font-size: var(--font-size-base); }
  .article-nav__label { font-size: var(--font-size-small); }
}

@media (max-width: 480px) {
  /* The label alone would push the pair onto two lines at 390px; the arrows
     stay, and each link keeps its accessible name from aria-label. */
  .article-nav__label { position: absolute; width: 1px; height: 1px;
                        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
