.cmba-speakers-directory {
  --cmba-line-strong: oklch(18% 0.04 254 / 0.18);
  background: #f4f1e9;
  color: var(--cmba-ink);
  padding: clamp(42px, 7vw, 88px) 0;
}

.cmba-speakers-directory [hidden] {
  display: none !important;
}

.cmba-speakers-directory__header {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 46px);
}

.cmba-speakers-directory__header h1 {
  margin: 0;
  color: var(--cmba-blue-dark);
  font-size: clamp(2.45rem, 6vw, 5.75rem);
  line-height: 0.88;
}

.cmba-speakers-directory__header > p:not(.cmba-kicker):not(.cmba-speakers-directory__count) {
  max-width: 62ch;
  margin: 0;
  color: var(--cmba-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.cmba-speakers-directory__controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--cmba-line-strong);
}

.cmba-speakers-directory__controls label {
  display: grid;
  gap: 6px;
  color: var(--cmba-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmba-speakers-directory__controls input,
.cmba-speakers-directory__controls select,
.cmba-speakers-directory button {
  min-height: 44px;
  border: 1px solid var(--cmba-line-strong);
  border-radius: 0;
  font: inherit;
}

.cmba-speakers-directory__controls input,
.cmba-speakers-directory__controls select {
  width: 100%;
  padding: 0 12px;
  background: var(--cmba-white);
  color: var(--cmba-ink);
}

.cmba-speakers-directory button {
  padding: 0 16px;
  background: var(--cmba-blue-dark);
  color: var(--cmba-white);
  cursor: pointer;
  font-weight: 800;
}

.cmba-speakers-directory button:hover {
  background: var(--cmba-blue);
}

body .cmba-speakers-directory :is(a, button, input, select):focus-visible,
body .cmba-speaker-profile--atlas :is(a, button):focus-visible {
  outline: 3px solid #bd4c00 !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #bd4c00;
}

.cmba-speakers-directory__count {
  margin: 2px 0 0;
  color: var(--cmba-green);
  font-family: var(--cmba-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cmba-speakers-directory__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(12px, 1.6vw, 22px);
}

.cmba-speaker-atlas-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--cmba-line-strong);
  background: var(--cmba-white);
}

.cmba-speaker-atlas-card__link {
  display: grid;
  grid-template-rows: auto 96px 92px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cmba-speaker-atlas-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dfe7e4;
}

.cmba-speaker-atlas-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.cmba-speaker-atlas-card__media img[data-speaker-deferred-image] {
  display: none;
}

.cmba-speaker-atlas-card__noscript-portrait {
  display: block;
  width: 100%;
  height: 100%;
}

.cmba-speaker-atlas-card__media-initials {
  color: var(--cmba-blue-dark);
  font-family: var(--cmba-font-mono);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cmba-speaker-atlas-card__identity,
.cmba-speaker-atlas-card__programme {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 15px;
}

.cmba-speaker-atlas-card__identity h2,
.cmba-speaker-atlas-card__programme strong {
  display: -webkit-box;
  min-height: 2.2em;
  overflow: hidden;
  color: var(--cmba-ink);
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cmba-speaker-atlas-card__identity h2 {
  margin: 0;
  font-size: 1rem;
}

.cmba-speaker-atlas-card__identity > span,
.cmba-speaker-atlas-card__programme > span {
  color: var(--cmba-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cmba-speaker-atlas-card__programme {
  border-top: 1px solid var(--cmba-line-strong);
  background: #e8efec;
}

.cmba-speakers-directory__empty,
.cmba-speakers-directory__more {
  width: calc(100% - 32px);
  max-width: var(--cmba-wide);
  margin: 24px auto 0;
}

.cmba-speakers-directory__empty {
  padding: 16px;
  border: 1px solid var(--cmba-line-strong);
  background: var(--cmba-white);
}

.cmba-speakers-directory__empty button {
  margin-left: 8px;
}

.cmba-speakers-directory__more {
  display: flex;
  justify-content: center;
}

@media (max-width: 1439px) {
  .cmba-speakers-directory__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .cmba-speakers-directory__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmba-speakers-directory__controls button {
    grid-column: 1 / -1;
  }

  .cmba-speakers-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cmba-speaker-profile--atlas .cmba-speaker-profile__ledger article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__ledger p {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .cmba-speakers-directory__controls {
    grid-template-columns: 1fr;
  }

  .cmba-speakers-directory__grid { grid-template-columns: 1fr; }

  .cmba-speaker-atlas-card__link {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: 82px 82px;
  }

  .cmba-speaker-atlas-card__media {
    grid-row: 1 / 3;
    aspect-ratio: auto;
    min-height: 146px;
  }

  .cmba-speakers-directory__empty button {
    width: 100%;
    margin: 12px 0 0;
  }
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger {
  display: grid;
  gap: 0;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 2px solid var(--cmba-profile-line);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger h2 {
  margin: 0 0 4px;
  color: var(--cmba-blue-dark);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 950;
  line-height: 1;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger article {
  display: grid;
  grid-template-columns: minmax(104px, 0.45fr) 1fr;
  gap: 18px;
  border-top: 1px solid var(--cmba-profile-line);
  padding: 18px 0;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger time {
  color: var(--cmba-green);
  font-family: var(--cmba-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger h3 {
  margin: 0;
  color: var(--cmba-ink);
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  font-weight: 900;
  line-height: 1.08;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__ledger p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--cmba-muted);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .cmba-speaker-atlas-card,
  .cmba-speaker-atlas-card__link { transition: none; }
}

@media print {
  .cmba-speakers-directory {
    background: var(--cmba-white);
    padding: 0;
  }

  .cmba-speakers-directory__controls,
  .cmba-speakers-directory__more {
    display: none !important;
  }

  .cmba-speakers-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmba-speaker-atlas-card {
    break-inside: avoid;
  }
}

.cmba-speaker-profile--atlas {
  --cmba-profile-line: oklch(18% 0.04 254 / 0.18);
  background: #f4f1e9;
  color: var(--cmba-ink);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__breadcrumb {
  display: flex;
  gap: 8px;
  padding-block: 16px;
  color: var(--cmba-muted);
  font-family: var(--cmba-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__breadcrumb a {
  color: var(--cmba-blue-dark);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__hero {
  border-block: 1px solid var(--cmba-profile-line);
  background: #e8efec;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
  padding-block: clamp(24px, 4vw, 56px);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #d3dfda;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__portrait--fallback span {
  color: var(--cmba-blue-dark);
  font-family: var(--cmba-font-mono);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__intro {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 52px);
  background: var(--cmba-blue-dark);
  color: var(--cmba-white);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__intro h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--cmba-white);
  font-size: clamp(2.25rem, 4.8vw, 4.8rem);
  line-height: 0.92;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts div {
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 28%);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts dt {
  color: #c7d6e8;
  font-family: var(--cmba-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__facts dd {
  margin: 4px 0 0;
  color: var(--cmba-white);
  font-weight: 700;
  line-height: 1.35;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions :is(a, button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--cmba-white);
  border-radius: 0;
  background: transparent;
  color: var(--cmba-white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__actions .cmba-speaker-profile__programme-link {
  background: var(--cmba-white);
  color: var(--cmba-blue-dark);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__intro .cmba-kicker {
  color: #c7d6e8;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session {
  border-bottom: 1px solid var(--cmba-profile-line);
  background: var(--cmba-white);
  padding-block: clamp(24px, 4vw, 48px);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session-grid {
  display: grid;
  grid-template-columns: minmax(140px, .3fr) minmax(0, .7fr) auto;
  gap: 12px 24px;
  align-items: start;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session time {
  color: var(--cmba-green);
  font-family: var(--cmba-font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session h2,
.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session p {
  margin: 0;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session h2 {
  color: var(--cmba-blue-dark);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session p {
  grid-column: 2;
  color: var(--cmba-muted);
  line-height: 1.45;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__next-session a {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--cmba-blue-dark);
  font-weight: 800;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__body {
  padding-block: clamp(42px, 7vw, 88px);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: clamp(28px, 6vw, 88px);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__bio,
.cmba-speaker-profile--atlas .cmba-speaker-profile__side {
  min-width: 0;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__bio h2,
.cmba-speaker-profile--atlas .cmba-speaker-profile__side h2 {
  margin-top: 0;
  color: var(--cmba-blue-dark);
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__summary {
  color: var(--cmba-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 700;
  line-height: 1.5;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.cmba-speaker-profile--atlas .cmba-speaker-profile__side section {
  padding-top: 18px;
  border-top: 1px solid var(--cmba-profile-line);
}

@media (max-width: 760px) {
  .cmba-speaker-profile--atlas .cmba-speaker-profile__hero-grid,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__body-grid,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session-grid {
    grid-template-columns: 1fr;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__portrait {
    width: 100%;
    height: clamp(180px, 52vw, 220px);
    aspect-ratio: auto;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__portrait img {
    object-position: 50% 18%;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__facts {
    grid-template-columns: 1fr;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session p,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session a {
    grid-column: auto;
    grid-row: auto;
  }

  .cmba-speaker-profile--atlas .cmba-speaker-profile__actions :is(a, button) {
    flex: 1 1 100%;
    min-height: 44px;
  }
}

@media print {
  .ct-header,
  .site-header,
  #header,
  .ct-footer,
  .site-footer,
  footer,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__breadcrumb,
  .cmba-speaker-profile--atlas button,
  .cmba-speaker-profile--atlas nav {
    display: none !important;
  }

  .cmba-speaker-profile--atlas,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__hero,
  .cmba-speaker-profile--atlas .cmba-speaker-profile__next-session {
    background: var(--cmba-white);
  }

  .cmba-speaker-profile--atlas :is(section, article, figure) {
    break-inside: avoid;
  }
}
