/* CMT Session Hub. Everything is scoped under .cmt-hub so Divi's global styles don't leak in or out. */
.cmt-hub {
  --cmt-green: #006838;
  --cmt-green-dark: #00472A;
  --cmt-green-deep: #00331D;
  --cmt-yellow: #F6D55C;
  --cmt-text: #333333;
  --cmt-muted: #666666;
  --cmt-bg: #F4F8F5;
  --cmt-line: #DCE6DF;
  --cmt-radius: 10px;
  --cmt-btn-radius: 6px;

  background: var(--cmt-bg);
  color: var(--cmt-text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  /* Break out of Divi's row width so the hero can span the page. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}
/* 100vw includes the scrollbar; clip the sliver so there is never a horizontal page scroll. */
body.cmt-hub-page { overflow-x: clip; }
body.cmt-hub-page #page-container, body.cmt-hub-page #et-main-area { overflow-x: clip; }

.cmt-hub *, .cmt-hub *::before, .cmt-hub *::after { box-sizing: border-box; }
.cmt-hub a { color: var(--cmt-green); }
.cmt-hub a:hover { color: var(--cmt-green-dark); }
.cmt-hub img { max-width: 100%; height: auto; }
.cmt-hub h1, .cmt-hub h2, .cmt-hub h3 { margin: 0; padding: 0; font-family: inherit; text-transform: none; letter-spacing: normal; }
.cmt-hub p { margin: 0; padding: 0; }
.cmt-hub button { font: inherit; text-transform: none; letter-spacing: normal; }
.cmt-hub :focus-visible { outline: 3px solid #C99A00; outline-offset: 3px; }

.cmt-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.cmt-wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cmt-hub:not(.is-ready) [data-js-only] { display: none; }

/* Images fill their thumbnail frames */
.cmt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Buttons */
.cmt-hub .cmt-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--cmt-btn-radius);
  font-size: 18px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; border: 0;
}
.cmt-hub .cmt-btn--green { background: var(--cmt-green); color: var(--cmt-yellow) !important; }
.cmt-hub .cmt-btn--green:hover { background: var(--cmt-green-dark); color: var(--cmt-yellow) !important; }
.cmt-hub .cmt-btn--yellow { background: var(--cmt-yellow); color: var(--cmt-green-dark) !important; font-weight: 700; }
.cmt-hub .cmt-btn--yellow:hover { background: #fbe38a; color: var(--cmt-green-dark) !important; }
.cmt-hub .cmt-btn--outline { border: 2px solid var(--cmt-yellow); color: #fff !important; background: transparent; }
.cmt-hub .cmt-btn--outline:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.cmt-hub .cmt-btn--ghost { min-height: 44px; font-size: 15px; padding: 0 16px; border: 1.5px solid #4E8A66; color: #fff !important; background: transparent; }
.cmt-hub .cmt-btn--ghost:hover { color: #fff !important; background: rgba(255,255,255,.08); }

/* Hero */
.cmt-hero { background: var(--cmt-green); color: #fff; }
.cmt-hero__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.cmt-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cmt-hub .cmt-hero .cmt-eyebrow { color: var(--cmt-yellow) !important; }
.cmt-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cmt-yellow); }
.cmt-hub .cmt-hero .cmt-hero__title { font-size: 42px; line-height: 1.15; font-weight: 800; color: #fff !important; }
.cmt-hub .cmt-hero .cmt-hero__speaker { font-size: 18px; font-weight: 600; color: #DDEFE3 !important; }
.cmt-hub .cmt-hero .cmt-hero__blurb { font-size: 18px; line-height: 1.6; color: #EAF5EE !important; max-width: 560px; }
.cmt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.cmt-hero__thumb {
  flex: 1 1 480px; min-width: 0; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  border: 3px solid var(--cmt-yellow); border-radius: 12px; background: var(--cmt-green-dark);
  position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
/* Date badge: CMT green, tucked into the top-left corner of a thumbnail, bottom-right corner rounded. Readable on any video frame. */
.cmt-hub .cmt-day {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 6px 12px 7px 11px; border-radius: 0 0 10px 0;
  background: var(--cmt-green); color: #fff !important;
  font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
}
.cmt-hub .cmt-day:empty { display: none; }
.cmt-hero__thumb .cmt-day { padding: 8px 16px 9px 15px; border-radius: 0 0 12px 0; font-size: 13px; }
.cmt-play { position: relative; z-index: 1; border-radius: 50%; background: var(--cmt-yellow); display: flex; align-items: center; justify-content: center; flex: none; }
.cmt-play--lg { width: 84px; height: 84px; }
.cmt-play--md { width: 76px; height: 76px; }
.cmt-play--sm { width: 46px; height: 46px; }

/* Popup player (native <dialog>) */
body.cmt-modal-open { overflow: hidden; }
.cmt-modal {
  border: 0; padding: 0; margin: auto; background: transparent; color: #fff; overflow: visible;
  width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; text-align: left;
}
.cmt-modal:not([open]) { display: none; }
.cmt-modal::backdrop { background: rgba(0, 26, 15, .86); }
.cmt-modal *, .cmt-modal *::before, .cmt-modal *::after { box-sizing: border-box; }
.cmt-modal :focus-visible { outline: 3px solid var(--cmt-yellow, #F6D55C); outline-offset: 3px; }
.cmt-modal__panel {
  position: relative; background: #00331D; border-radius: 14px; overflow-x: hidden; overflow-y: auto;
  max-height: calc(100vh - 24px); box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.cmt-modal .cmt-video { border-radius: 0; border: 0; border-bottom: 1px solid #1E5A3A; }
.cmt-modal .cmt-modal__close { color: #fff !important; }
.cmt-modal__bar { display: flex; justify-content: flex-end; padding: 8px 10px; background: #00331D; border-bottom: 1px solid #1E5A3A; }
.cmt-modal__close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  border: 1.5px solid #4E8A66; border-radius: 6px; background: transparent;
}
.cmt-modal__close:hover { background: rgba(255,255,255,.1); }
.cmt-modal__body { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 28px; }
.cmt-player__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cmt-player__day { font-size: 14px; color: #B9D4C2; }
.cmt-modal h2.cmt-player__title { margin: 0; padding: 0; font-family: inherit; font-size: 30px; line-height: 1.2; font-weight: 800; text-transform: none; color: #fff !important; }
.cmt-modal h2.cmt-player__title:focus { outline: none; }
.cmt-modal h2.cmt-player__title:focus-visible { outline: 3px solid #F6D55C; outline-offset: 4px; }
.cmt-modal .cmt-player__speaker { font-size: 17px; font-weight: 600; color: #DDEFE3 !important; }
.cmt-modal .cmt-player__desc { margin: 0; font-size: 17px; line-height: 1.6; color: #EAF5EE !important; max-width: 780px; }
.cmt-player__links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; align-items: center; }
.cmt-player__copied { font-size: 14px; color: #F6D55C; }
.cmt-modal .cmt-btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 6px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.cmt-modal .cmt-btn--ghost { min-height: 44px; font-size: 15px; padding: 0 16px; border: 1.5px solid #4E8A66; color: #fff !important; background: transparent; }
.cmt-modal .cmt-btn--ghost:hover { background: rgba(255,255,255,.08); }
.cmt-modal .cmt-badge { align-self: flex-start; }
.cmt-modal__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid #1E5A3A; }
.cmt-modal button.cmt-modal__navbtn {
  display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 10px 14px; margin: 0; cursor: pointer;
  text-align: left; color: #fff; background: rgba(255,255,255,.04); border: 1.5px solid #4E8A66; border-radius: 8px; font: inherit;
}
.cmt-modal button.cmt-modal__navbtn:hover { background: rgba(255,255,255,.1); }
.cmt-modal button.cmt-modal__navbtn--next { grid-column: 2; text-align: right; align-items: flex-end; }
.cmt-modal__navlabel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F6D55C; }
.cmt-modal__navtitle { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmt-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.cmt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cmt-lite { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; background: var(--cmt-green-dark, #00472A); cursor: pointer; text-decoration: none; }
.cmt-video-note { font-size: 15px; color: #B9D4C2; }
.cmt-single .cmt-video { border-radius: 12px; border: 1px solid #1E5A3A; }

/* Main */
.cmt-main { display: flex; flex-direction: column; gap: 40px; padding-top: 44px; padding-bottom: 64px; }
.cmt-hub .cmt-section-title { font-size: 30px; font-weight: 800; color: var(--cmt-green) !important; }
.cmt-search input[type="search"] {
  display: block; height: 52px; width: 100%; max-width: 520px; padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--cmt-text); line-height: normal;
  border: 1.5px solid #B7C9BD; border-radius: var(--cmt-btn-radius); background: #fff; box-shadow: none;
}
.cmt-search input::placeholder { color: #6B6B6B; opacity: 1; }
.cmt-paths-section { display: flex; flex-direction: column; gap: 16px; }
.cmt-paths-section[hidden], .cmt-results[hidden], .cmt-rows[hidden], .cmt-tech-toggle[hidden] { display: none; }
.cmt-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cmt-hub button.cmt-path {
  text-align: left; min-height: 120px; padding: 20px 22px; border-radius: var(--cmt-radius); cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; color: var(--cmt-text);
  background: #fff; border: 1.5px solid #C8D6CC; margin: 0;
}
.cmt-hub button.cmt-path:hover { border-color: var(--cmt-green); }
.cmt-hub button.cmt-path[aria-pressed="true"] {
  background: #FFFDF2; border: 2.5px solid var(--cmt-green);
  box-shadow: inset 0 -5px 0 var(--cmt-yellow), 0 6px 18px rgba(0,72,40,.12);
}
.cmt-path__label { font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--cmt-text); }
.cmt-path__sub { font-size: 15px; line-height: 1.5; color: var(--cmt-muted); }
.cmt-tech-toggle { display: flex; align-items: center; gap: 12px; font-size: 16px; min-height: 44px; cursor: pointer; }
.cmt-tech-toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--cmt-green); }

/* Rows */
.cmt-rows { display: flex; flex-direction: column; gap: 44px; }
.cmt-row { display: flex; flex-direction: column; gap: 14px; }
.cmt-row[hidden] { display: none; }
.cmt-row__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 2px solid var(--cmt-yellow); padding-bottom: 10px; }
.cmt-hub .cmt-row__head h2 { font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--cmt-green) !important; }
.cmt-row__sub { font-size: 16px; color: var(--cmt-muted); }
.cmt-row__count { font-size: 14px; font-weight: 700; color: var(--cmt-muted); }
/* (row scroller styles are in the carousel block at the end of this file) */


/* Cards */
.cmt-hub a.cmt-card {
  text-align: left; border: 1px solid var(--cmt-line); border-radius: var(--cmt-radius); background: #fff;
  overflow: hidden; color: var(--cmt-text); text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cmt-hub a.cmt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,72,40,.16); color: var(--cmt-text); }
.cmt-card[hidden] { display: none; }
.cmt-card__thumb { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cmt-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cmt-card__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.cmt-card__sp { font-size: 14px; color: var(--cmt-muted); line-height: 1.45; }

.cmt-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.cmt-badge--p { background: #FBEFC0; color: #5A4500; }
.cmt-badge--r { background: #E2EFE6; color: var(--cmt-green-dark); }

/* Search */
.cmt-results { display: flex; flex-direction: column; gap: 16px; }
.cmt-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cmt-no-results { font-size: 17px; color: var(--cmt-muted); }

/* Single session page + empty state */
.cmt-hub.cmt-single { width: auto; margin-left: 0; background: none; display: flex; flex-direction: column; gap: 16px; }
.cmt-single .cmt-badge { margin-right: 10px; }
.cmt-single__day { font-size: 14px; color: var(--cmt-muted); }
.cmt-single__speaker { font-weight: 600; font-size: 18px; }
.cmt-single .cmt-lite { background: var(--cmt-green-dark); }
.cmt-hub-empty { padding: 24px; text-align: center; }

@media (max-width: 640px) {
  .cmt-hub .cmt-hero .cmt-hero__title { font-size: 32px; }
  .cmt-modal h2.cmt-player__title { font-size: 24px; }
  .cmt-modal__body { padding: 18px 16px 22px; }
  .cmt-modal__nav { grid-template-columns: 1fr; }
  .cmt-modal button.cmt-modal__navbtn--next { grid-column: 1; text-align: left; align-items: flex-start; }
  .cmt-hub .cmt-section-title { font-size: 24px; }
  .cmt-hub .cmt-btn { font-size: 17px; }
  .cmt-wrap { padding-left: 16px; padding-right: 16px; }
  .cmt-hero__inner { padding-top: 36px; padding-bottom: 36px; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmt-hub a.cmt-card { transition: none; }
  .cmt-hub a.cmt-card:hover { transform: none; }
  .cmt-row__scroll { scroll-behavior: auto; }
}

/* Keep card/up-next text the prototype's dark gray even when the theme colors links/spans. */
.cmt-hub a.cmt-card .cmt-card__title, .cmt-hub a.cmt-upnext .cmt-upnext__title { color: var(--cmt-text) !important; }
.cmt-hub a.cmt-card .cmt-card__sp, .cmt-hub a.cmt-upnext .cmt-upnext__sp { color: var(--cmt-muted) !important; }

/* "More from this convention" links, and the session page container */
.cmt-more { display: flex; flex-direction: column; gap: 16px; }
.cmt-more__links { display: flex; flex-wrap: wrap; gap: 12px; }
.cmt-hub.cmt-empty { width: auto; margin-left: 0; }
.cmt-hub-template .cmt-session-page { padding-top: 40px; padding-bottom: 64px; }
.cmt-hub-template .cmt-session-title { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 36px; font-weight: 800; line-height: 1.2; color: #006838; padding-bottom: 20px; }
@media (max-width: 640px) { .cmt-hub-template .cmt-session-title { font-size: 28px; } }

/* Carousel: exactly N whole cards per page aligned with the row heading, arrows outside the row, dots below */
.cmt-row { --cmt-cols: 4; --cmt-gap: 20px; }
@media (max-width: 1099px) { .cmt-row { --cmt-cols: 3; } }
@media (max-width: 799px) { .cmt-row { --cmt-cols: 2; } }
@media (max-width: 559px) { .cmt-row { --cmt-cols: 1; } }

.cmt-row__track { position: relative; }
.cmt-row__scroll {
  min-width: 0;
  display: flex; gap: var(--cmt-gap); overflow-x: auto; overflow-y: hidden;
  /* Side padding keeps the first/last card's shadow visible; matching negative margin keeps cards aligned with the heading. */
  margin: 0 -14px; padding: 10px 14px 38px;
  scroll-snap-type: x proximity; scroll-padding-left: 14px; scroll-padding-right: 14px; scroll-behavior: smooth;
  scrollbar-width: none;
}
.cmt-row__scroll::-webkit-scrollbar { display: none; }
.cmt-row__scroll .cmt-card {
  flex: 0 0 calc((100% - (var(--cmt-cols) - 1) * var(--cmt-gap)) / var(--cmt-cols));
  min-width: 0; scroll-snap-align: start;
}

.cmt-hub button.cmt-arrow {
  position: absolute; z-index: 3; width: 48px; height: 48px; margin: 0; padding: 0;
  top: calc(50% - 38px); /* mid-card: the scroller has 10px above and 38px below the cards */
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 2px solid var(--cmt-green); border-radius: 50%; background: #fff;
  color: var(--cmt-green) !important; box-shadow: 0 3px 10px rgba(0, 72, 40, .2);
  transition: background .15s ease, color .15s ease;
}
.cmt-hub button.cmt-arrow:hover { background: var(--cmt-green); color: var(--cmt-yellow) !important; }
.cmt-hub button.cmt-arrow:disabled { opacity: .3; cursor: default; box-shadow: none; }
.cmt-hub button.cmt-arrow:disabled:hover { background: #fff; color: var(--cmt-green) !important; }
.cmt-arrow[hidden] { display: none; }
.cmt-arrow--prev { left: -60px; }
.cmt-arrow--next { right: -60px; }

/* Where the page margin is narrower than the arrows need, widen the side padding of the browse area (arrows then sit in it). */
@media (min-width: 700px) and (max-width: 1351px) and (pointer: fine) {
  .cmt-hub .cmt-main { padding-left: 72px; padding-right: 72px; }
}

.cmt-row__dots { display: flex; justify-content: center; flex-wrap: wrap; margin-top: -22px; }
.cmt-row__dots[hidden] { display: none; }
.cmt-hub button.cmt-dot {
  position: relative; width: 28px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.cmt-hub button.cmt-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: #B7C9BD; transition: background .15s ease, transform .15s ease;
}
.cmt-hub button.cmt-dot:hover::before { background: #6E9C80; }
.cmt-hub button.cmt-dot[aria-current="true"]::before { background: var(--cmt-green); transform: scale(1.25); }

/* Small screens and touch: swipe instead of arrows (dots stay). */
@media (max-width: 699px), (pointer: coarse) {
  /* Arrows move under the cards, smaller, flanking the dots (or the page counter). The button stays 44px tall for touch; the visible circle is smaller. */
  .cmt-hub button.cmt-arrow {
    top: auto; bottom: -36px; width: 44px; height: 44px; /* centers on the dots row, which sits 14px (row gap) below the track */ border: 0; background: transparent; box-shadow: none;
  }
  .cmt-hub button.cmt-arrow::before {
    content: ""; position: absolute; inset: 5px; border: 2px solid var(--cmt-green); border-radius: 50%; background: #fff;
    transition: background .15s ease;
  }
  .cmt-hub button.cmt-arrow svg { position: relative; width: 18px; height: 18px; }
  .cmt-hub button.cmt-arrow:hover { background: transparent; }
  .cmt-hub button.cmt-arrow:hover::before { background: var(--cmt-green); }
  .cmt-hub button.cmt-arrow:disabled:hover::before { background: #fff; }
  .cmt-hub button.cmt-arrow:focus-visible { outline-offset: 0; border-radius: 50%; }
  .cmt-arrow--prev { left: 0; }
  .cmt-arrow--next { right: 0; }
  .cmt-row__dots { padding: 0 52px; }
  .cmt-row__scroll { padding-bottom: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmt-row__scroll { scroll-behavior: auto; }
  .cmt-hub button.cmt-arrow, .cmt-hub button.cmt-dot::before { transition: none; }
}

/* No theme link underline on cards (the underline would spread to the title and badge on hover). */
.cmt-hub a.cmt-card, .cmt-hub a.cmt-card:hover, .cmt-hub a.cmt-card:focus { text-decoration: none !important; }

.cmt-pagecount { display: block; min-height: 44px; line-height: 44px; font-size: 15px; font-weight: 700; color: var(--cmt-muted); font-variant-numeric: tabular-nums; }
