/* Event and webinar pages (src/cms/EventPage.astro; owner, 17 October 2026). The banner is the page header, with the
   event's details beside it; then the video recap when there is one, what the session covers, the speakers and three
   more sessions. Colours and type follow the site's article pages and the events list. */
.et-page {
  --et-ink: var(--amlcc-forest, #244140);
  --et-muted: #526b64;
  --et-line: #dce6df;
  --et-band: #f3f7f3;
  --et-chip: #eaf0ea;
  --et-lime: var(--amlcc-lime, #c1f99b);
  color: var(--et-ink);
}
/* Section headings follow the site's type scale (site-type.css); the side panel and "Who it’s for" use its title size. */
.et-page h2 { margin: 0; color: var(--et-ink); font-weight: 600; }
main[data-site-type].et-page :is(.et-aside h2, h2.et-subheading) { font-size: var(--ds-font-title) !important; line-height: 1.25 !important; letter-spacing: -.02em; }
.et-page h3 { margin: 0; color: var(--et-ink); }
.et-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.et-wrap { max-width: 1296px; margin: 0 auto; box-sizing: border-box; padding: 0 48px; }
.et-band { background: var(--et-band); }

/* Header: the banner and the details beside it, the same height on wide screens. */
.et-hero > .et-wrap { padding-top: 24px; padding-bottom: 56px; }
.et-hero-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-top: 16px; align-items: stretch; }
.et-banner { flex: 2 1 560px; min-width: 0; align-self: flex-start; display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; background: var(--et-ink); }
.et-details { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.et-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.et-chip { padding: 4px 9px; border-radius: 4px; background: var(--et-chip); color: var(--et-ink); font-size: 12px; line-height: 1.4; font-weight: 500; }
.et-chip-lime { background: var(--et-lime); }
.et-topic { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--et-muted); }
.et-page .et-facts { display: block; grid-template-columns: none; margin: 20px 0 0; border-top: 1px solid var(--et-line); font-size: inherit; }
.et-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--et-line); }
.et-facts dt { font-size: 14px; color: var(--et-muted); }
.et-facts dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.et-when { margin-top: 20px; }
.et-when p { margin: 0; }
.et-when-date, .et-when-time { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.et-when-time { margin-top: 4px !important; }
.et-when-local { margin-top: 8px !important; font-size: 14px; line-height: 1.45; color: var(--et-muted); }
.et-page .et-button { display: flex; width: 100%; box-sizing: border-box; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.et-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--et-muted); text-wrap: pretty; }
.et-note-locked { display: flex; align-items: center; gap: 8px; }
.et-note-locked svg { flex: none; }

/* The video recap and key takeaways: only when the editor has switched it on and there is a video. */
.et-recap > .et-wrap { padding-top: 72px; }
.et-recap-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.et-recap-video { position: relative; flex: 3 1 560px; min-width: 0; margin: 0; }
.et-recap-video video, .et-recap-link { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1b3633; }
.et-recap-video video { object-fit: cover; }
.et-recap-link { position: relative; }
.et-recap-link img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.et-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--et-lime); color: #203e3b; }
.et-recap-link:hover .et-play { transform: translate(-50%, -50%) scale(1.04); }
.et-recap-duration { position: absolute; left: 18px; top: 16px; padding: 4px 8px; border-radius: 4px; background: rgba(9, 24, 22, .6); color: #f4f8f2; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.et-recap-video figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--et-muted); }
.et-recap-points { flex: 2 1 360px; min-width: 0; }

/* What the session covers, with the side panel. */
.et-content > .et-wrap { padding-top: 72px; padding-bottom: 72px; }
.et-content-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; }
.et-main { flex: 999 1 560px; min-width: 0; }
.et-intro { margin: 14px 0 0; max-width: 640px; font-size: 17px; line-height: 1.65; color: var(--et-muted); }
.et-page .et-subheading { margin-top: 56px; }
.et-subheading + .et-intro { margin-top: 12px; }
.et-rows { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--et-line); }
.et-rows > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--et-line); }
.et-row-number { font-size: 14px; line-height: 26px; color: var(--et-muted); font-variant-numeric: tabular-nums; }
.et-row-title { display: block; font-size: 17px; line-height: 1.5; font-weight: 500; }
.et-row-detail { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--et-muted); }
.et-rows-compact { margin-top: 22px; }
.et-rows-compact > li { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0; font-size: 16px; line-height: 1.55; }
.et-rows-compact .et-row-number { line-height: 25px; }
.et-aside { flex: 1 1 300px; min-width: 0; box-sizing: border-box; padding: 28px 28px 22px; border-radius: 12px; background: var(--et-band); }
.et-aside ul { list-style: none; margin: 16px 0 0; padding: 0; }
.et-aside li { padding: 14px 0; border-top: 1px solid var(--et-line); }
.et-aside li:last-child { border-bottom: 1px solid var(--et-line); }
.et-aside strong { display: block; font-size: 15px; font-weight: 600; }
.et-aside li span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--et-muted); }
.et-aside .et-text-link { margin-top: 10px; }
.et-text-link { color: var(--et-ink); }

/* The speakers: a round photo, as on the live-training page and the homepage faculty. */
.et-people > .et-wrap { padding-bottom: 80px; }
.et-panel { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 28px; }
.et-panel > li { padding-top: 20px; border-top: 1px solid var(--et-line); }
.et-photo { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin-bottom: 16px; border-radius: 50%; object-fit: cover; background: var(--ds-surface-tint, #edf2e9); }
.et-monogram { color: var(--et-ink); font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.et-page .et-panel h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.et-panel p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--et-muted); }
.et-panel .et-profile { margin-top: 4px; font-size: 14px; }

/* Three more sessions. */
.et-archive > .et-wrap { padding-top: 72px; padding-bottom: 88px; }
.et-archive-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.et-archive-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 24px; }
.et-archive-grid a { display: flex; flex-direction: column; gap: 12px; color: var(--et-ink); text-decoration: none; }
.et-archive-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; }
.et-archive-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--et-muted); }
.et-archive-caption svg { flex: none; width: 18px; height: 18px; color: var(--et-ink); }
.et-archive-grid a:hover .et-archive-caption > span:first-child { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .et-wrap { padding: 0 20px; }
  .et-hero > .et-wrap { padding-top: 16px; padding-bottom: 40px; }
  .et-hero-grid { gap: 22px; margin-top: 10px; }
  .et-banner { border-radius: 10px; }
  .et-details { gap: 22px; }
  .et-when-date, .et-when-time { font-size: 24px; }
  .et-note { text-align: center; }
  .et-note-locked { justify-content: center; }
  .et-recap > .et-wrap { padding-top: 48px; }
  .et-content > .et-wrap { padding-top: 48px; padding-bottom: 48px; }
  .et-content-grid { gap: 36px; }
  .et-intro { font-size: 16px; }
  .et-page .et-subheading { margin-top: 40px; }
  .et-rows { margin-top: 22px; }
  .et-rows > li { grid-template-columns: 36px minmax(0, 1fr); gap: 6px; padding: 15px 0; }
  .et-row-number { font-size: 13px; line-height: 24px; }
  .et-row-title { font-size: 16px; }
  .et-aside { padding: 24px 22px 18px; }
  .et-people > .et-wrap { padding-bottom: 52px; }
  .et-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; margin-top: 22px; }
  .et-panel > li { padding-top: 16px; }
  .et-photo { width: 72px; height: 72px; margin-bottom: 12px; }
  .et-monogram { font-size: 20px; }
  .et-page .et-panel h3 { font-size: 16px; }
  .et-panel p { font-size: 13px; }
  .et-archive > .et-wrap { padding-top: 48px; padding-bottom: 56px; }
  .et-archive-grid { gap: 26px; margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .et-recap-link:hover .et-play { transform: translate(-50%, -50%); }
}
