/* ==========================================================================
   Compliance as Infrastructure — video series
   Scoped to .cai-series so it can sit inside template pages without
   touching their base styles. Colours match the template palette in
   style.css (--text #455359, --text-strong #0a5879, --brand-blue #bdced7).
   ========================================================================== */

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/font/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

.cai-series {
  --cs-ink: #455359;
  --cs-ink-soft: #5f6e74;
  --cs-accent: #0a5879;
  --cs-rule: #bdced7;
  --cs-panel: #f6f6f6;
  --cs-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 2.5rem 0 3rem;
}

.cai-series__head { margin-bottom: 1.25rem; }
.cai-series__head p { color: var(--cs-ink-soft); margin: 0.25rem 0 0; }

.cai-series__eyebrow,
.cai-ep__eyebrow {
  display: block;
  font-family: var(--cs-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cai-series__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cai-ep { margin: 0; }

.cai-ep__title {
  font-size: 18px;
  line-height: 1.3;
  margin: 0.35rem 0 0.4rem;
  color: var(--cs-ink);
  text-transform: none;
}

.cai-ep__summary { font-size: 15px; color: var(--cs-ink-soft); margin: 0 0 0.5rem; }

.cai-ep__link { font-size: 14px; margin: 0.6rem 0 0; }

/* --- Player facade --------------------------------------------------------
   No third-party request until the visitor clicks. The poster is type, not a
   thumbnail, so the page fetches nothing from YouTube at all on load.
   -------------------------------------------------------------------------- */

.cai-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cs-ink);
  border-radius: 6px;
  overflow: hidden;
}

.cai-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.cai-player__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--cs-ink);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.cai-player__num {
  font-family: var(--cs-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #c5d2da;
}

.cai-player__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 18ch;
}

.cai-player__play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cs-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.cai-player__play::before {
  content: "";
  width: 0; height: 0;
  border-left: 11px solid #ffffff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.cai-player__poster:hover .cai-player__play,
.cai-player__poster:focus-visible .cai-player__play { text-decoration: underline; }

.cai-series__note {
  font-size: 12.5px;
  color: var(--cs-ink-soft);
  margin-top: 1rem;
}

/* --- Homepage strip ------------------------------------------------------- */

/* The template footer pulls its contact card up ~160px over whatever precedes it. */
.cai-strip { border-top: 1px solid #bdced7; padding-bottom: 220px; }
.cai-strip .cai-series { margin: 0; }
