/* Continuing education — tabs: CE videos · Observation · Live CE (templates/ce/index.twig).
   Figma: Catalog — Continuing Education › "CE — 04 Redesign · tabs + list" (04b Observation, 04c Live CE, 04d Mobile).
   Event and observation rows keep their .ce-row styles from store.css. */

/* Title: copy on the left (eyebrow and intro 20px in from the heading), the teaser and Sign up button on the right */
.cex-title {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding: 48px var(--gutter) 24px;
}
.cex-title__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cex-title__copy p {
  margin: 0;
}
.cex-inset {
  padding-inline: 20px;
}
/* Right side: the event teaser (when on) at the top, the Sign up button at the bottom */
.cex-title__side {
  flex: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
}
/* "Upcoming event" teaser — Figma: Catalog — Continuing Education › Event teaser; hangs from the nav */
.cex-teaser {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 443px;
  margin-top: -48px; /* up to the nav */
  margin-bottom: auto;
  padding: 20px 28px;
  border: 1px solid #dddbd6;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fdfdfd;
}
.cex-teaser__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cex-teaser p {
  margin: 0;
}
.cex-teaser__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-800);
}
.cex-teaser__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pcli-color-text-primary);
}
.cex-teaser__date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--pcli-color-text-secondary);
}
.cex-teaser__date svg {
  flex: none;
  color: var(--teal-800);
}
.cex-teaser__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ff9706;
  border-radius: 6px;
  background: #fff;
  color: #ed9004;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.cex-teaser__btn:hover {
  background: #fff6ea;
}
.cex-title__actions {
  flex: 0 0 auto;
  width: 236px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cex-title__actions .btn {
  justify-content: center;
  width: 100%;
}

/* Tabs — same look as the account tabs */
.cex {
  padding: 0 var(--gutter);
}
/* Tabs — folder tabs on a tan band (Figma: CE — 05e Tabs option · Folder tabs). The band runs edge to edge; the
   selected tab is white with an orange top edge and joins the page below. CE pages only. */
.cex-tabs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0 20px;
  padding-top: 20px;
  background: var(--pcli-color-bg-muted);
  box-shadow: 0 0 0 100vmax var(--pcli-color-bg-muted);
  clip-path: inset(0 -100vmax);
}
.cex-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 10px 10px 0 0;
  background: #e9e6e0;
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  color: var(--pcli-color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cex-tabs__icon {
  flex: none;
}
.cex-tabs__tab:hover {
  background: #dfdbd3;
  color: var(--pcli-color-text-primary);
}
.cex-tabs__tab.is-active {
  border-top: 4px solid var(--pcli-color-action-primary);
  background: #fff;
  font-weight: 700;
  color: var(--pcli-color-text-primary);
}
.cex-tabs__tab.is-active .cex-tabs__icon {
  color: var(--pcli-color-action-primary);
}

/* Panel: heading + intro (+ a link at the right), then the list */
.cex-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 20px 80px;
}
.cex-panel[hidden] {
  display: none;
}
.cex-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.cex-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}
.cex-panel__title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--pcli-color-text-primary);
}
.cex-panel__intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pcli-color-text-secondary);
}
.cex-panel__more {
  flex: none;
  font-size: 14px;
  font-weight: 600;
}
.cex-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pcli-color-border-default);
}

/* CE video row: hours | title … Watch now ↗ */
.cex-video {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--pcli-color-border-default);
}
.cex-video__hours {
  flex: 0 0 104px;
} /* fixed slot so the titles line up; the pill hugs its text */
.cex-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f0ec;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pcli-color-text-secondary);
  white-space: nowrap;
}
.cex-video__rule {
  flex: none;
  width: 1px;
  height: 28px;
  background: var(--pcli-color-border-default);
}
.cex-video__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--pcli-color-text-primary);
}
.cex-video__watch {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-800);
  text-decoration: none;
}
.cex-video__watch:hover {
  text-decoration: underline;
}

/* State CE requirements box (Figma "CE / State CE requirements"): the whole card links to ARBO, 48px under the list */
.cex-state {
  display: flex;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
  max-width: 716px;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--pcli-color-bg-muted);
  color: var(--pcli-color-text-primary);
  text-decoration: none;
  transition: background 0.15s;
}
.cex-state__lead {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cex-state__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  color: #e07a00;
}
.cex-state__text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cex-state__btn {
  flex: none;
}
.cex-state:hover {
  background: #ece9e2;
}
.cex-state:hover .cex-state__btn {
  background: #fff;
}
.cex-state:focus-visible {
  outline: 2px solid var(--teal-800);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .cex-state {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
  }
  .cex-state__text {
    font-size: 17px;
  }
  .cex-state__btn {
    justify-content: center;
  }
}

/* Articles (OD News): issue | title + author … Read article ↗ — Figma component "CE / Article row".
   Rounded rows with a 1px rule between them (4px clear of each row); the issue is plain text, no tag. */
.cex-list--articles {
  display: flex;
  flex-direction: column;
  gap: 9px; /* 4px + the 1px rule + 4px */
}
.cex-article {
  position: relative;
  border-bottom: 0;
  border-radius: 12px;
  transition: background 0.15s;
}
.cex-article + .cex-article::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background: #e4e2dd;
  pointer-events: none;
}
.cex-article .cex-pill {
  background: none;
}
.cex-article__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cex-article__author {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--pcli-color-text-secondary);
}
/* the whole row opens the article: the link's ::after covers the row */
.cex-article .cex-video__watch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
.cex-article:hover {
  background: var(--pcli-color-bg-muted);
}
.cex-article:hover .cex-video__title {
  color: var(--teal-800);
}
.cex-article:hover .cex-video__watch {
  text-decoration: underline;
}
.cex-article .cex-video__watch:focus-visible {
  outline: none;
}
.cex-article:has(.cex-video__watch:focus-visible) {
  outline: 2px solid var(--teal-800);
  outline-offset: -2px;
}
@media (max-width: 900px) {
  .cex-list .cex-article {
    margin-inline: -12px;
    padding-inline: 12px;
  } /* text stays aligned with the page; the rounded hover tint gets room either side */
  .cex-article + .cex-article::before {
    left: 12px;
    right: 12px;
  }
}
@media (min-width: 901px) {
  .cex-article .cex-video__hours {
    flex-basis: 124px;
  } /* "Summer 2026" is wider than an hours pill */
}
@media (max-width: 900px) {
  .cex-title {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .cex-title__side {
    align-items: stretch;
  }
  .cex-teaser {
    order: -1;
    width: auto;
    margin-top: 0;
    border-top: 1px solid #dddbd6;
    border-radius: 10px;
  }
  .cex-title__actions {
    flex: none;
    width: auto;
    max-width: 360px;
  }
}
/* Phones — Figma 04d: buttons full width, tabs scroll sideways, each video stacks (hours, title, Watch now) */
@media (max-width: 720px) {
  .cex-title {
    padding: 32px var(--gutter) 24px;
  }
  .cex-inset {
    padding-inline: 0;
  }
  .cex-title__actions {
    max-width: none;
  }
  .cex {
    padding: 0;
  }
  .cex-tabs {
    gap: 4px;
    margin: 0;
    padding: 14px var(--gutter) 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cex-tabs::-webkit-scrollbar {
    display: none;
  }
  .cex-tabs__tab {
    padding: 12px 16px;
    font-size: 15px;
  }
  .cex-tabs__icon {
    display: none;
  } /* phones: text-only tabs */
  .cex-panel {
    gap: 16px;
    padding: 28px var(--gutter) 56px;
  }
  .cex-panel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cex-panel__title {
    font-size: 24px;
  }
  .cex-panel__intro {
    font-size: 14px;
  }
  .cex-video {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0;
  }
  .cex-video__hours {
    flex: none;
  }
  .cex-video__rule {
    display: none;
  }
  .cex-video__title {
    font-size: 16px;
  }
  .cex-video__watch {
    font-size: 14px;
  }
}

/* Featured Live CE event — Figma: CE › "CE / Live event · A Save the date poster" (templates/ce/_featured.twig).
   Desktop: headline across the top; calendar + clock art | tag, rule-led details, chip, Register / Add to calendar.
   Phones: small art beside the headline, details full width, buttons stacked full width. */
.cex-feature {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: 'head head' 'icon details';
  column-gap: 48px;
  margin: 0 0 40px;
  padding: 36px 48px 40px;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
}
.cex-feature p {
  margin: 0;
}
.cex-feature__headline {
  grid-area: head;
  margin: 0 0 8px;
  font-family: var(--pcli-font-sans);
  font-weight: 300;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--teal-800);
}
.cex-feature__icon {
  grid-area: icon;
  display: flex;
  justify-content: center;
  padding-top: 44px;
  color: var(--teal-800);
}
.cex-feature__icon svg {
  width: 190px;
  height: 190px;
}
.cex-feature__details {
  grid-area: details;
  min-width: 0;
}
.cex-feature__tag {
  display: inline-block;
  padding: 14px 28px;
  background: var(--orange-600);
  color: #fff;
  font-family: var(--pcli-font-sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.cex-feature__tag--closed {
  background: var(--charcoal-600);
}
.cex-feature__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0 0 28px;
  border-left: 2px solid #dbd9d4;
}
.cex-feature__when {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-900);
}
.cex-feature__title {
  font-weight: 600;
  font-size: 18px;
}
.cex-feature__title a {
  color: var(--teal-800);
  text-decoration: none;
}
.cex-feature__title a:hover {
  text-decoration: underline;
}
.cex-feature__desc {
  max-width: 684px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--charcoal-600);
}
.cex-feature__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cex-feature__chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f4f2ee;
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal-600);
}
.cex-feature__status {
  font-weight: 600;
  font-size: 16px;
  color: var(--teal-800);
}
.cex-feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
}
.cex-feature__cal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cex-feature__more {
  margin-left: 6px;
  font-weight: 600;
}
.cex-more {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pcli-color-text-eyebrow);
}
@media (max-width: 1100px) {
  .cex-feature {
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 32px;
    padding: 32px;
  }
  .cex-feature__icon svg {
    width: 150px;
    height: 150px;
  }
}
@media (max-width: 720px) {
  .cex-feature {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: 'icon head' 'details details';
    column-gap: 14px;
    padding: 24px 20px 24px;
  }
  .cex-feature__headline {
    align-self: center;
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.02em;
  }
  .cex-feature__icon {
    padding-top: 0;
    align-self: center;
  }
  .cex-feature__icon svg {
    width: 64px;
    height: 64px;
  }
  .cex-feature__details {
    padding-top: 20px;
  }
  .cex-feature__tag {
    padding: 10px 18px;
    font-size: 15px;
    letter-spacing: 0.22em;
  }
  .cex-feature__text {
    padding: 18px 0 0 16px;
  }
  .cex-feature__when {
    font-size: 15px;
    letter-spacing: 0.06em;
  }
  .cex-feature__desc {
    font-size: 16px;
  }
  .cex-feature__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cex-feature__actions .btn {
    justify-content: center;
  }
  .cex-feature__more {
    margin: 4px 0 0;
    text-align: center;
  }
}
