/* XCN team: shared typography, category accent and existing button primitives. */
.xcn-speakers { padding: clamp(48px, 7vw, 96px) 0; margin-top: 64px; background: #f5f5f5; }
.xcn-speakers[hidden], .xcn-speakers [hidden] { display: none !important; }
.xcn-speakers__intro { max-width: 720px; margin-bottom: 36px; }
.xcn-speakers__eyebrow { display: block; color: #b60000; font-size: .875rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.xcn-speakers__intro .section-title { margin: 0 0 16px; }
.xcn-speakers__intro p { color: #555; line-height: 1.6; margin: 0; }
.xcn-speakers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.xcn-speakers__card { appearance: none; background: none; border: 0; padding: 0; color: #121212; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.xcn-speakers__portrait { display: flex; align-items: center; justify-content: center; width: min(100%, 152px); aspect-ratio: 1; overflow: hidden; background: #e6e6e6; border-radius: 3px; font-size: 2rem; color: #555; }
.xcn-speakers__photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.xcn-speakers__name { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.35; margin: 16px 0 8px; overflow-wrap: anywhere; }
.xcn-speakers__bio-link { color: #a90000; font-size: .875rem; }
.xcn-speakers__card:hover .xcn-speakers__bio-link { text-decoration: underline; text-underline-offset: 4px; }
.xcn-speakers :is(button, a):focus-visible { outline: 3px solid #121212; outline-offset: 5px; }
.xcn-speakers__more { margin-top: 36px; }
.xcn-speakers__dialog { position: fixed; inset: 0; margin: auto; width: min(760px, calc(100% - 32px)); max-height: 85dvh; padding: clamp(24px, 5vw, 48px); border: 0; border-radius: 3px; color: #121212; overflow: auto; overscroll-behavior: contain; }
.xcn-speakers__dialog::backdrop { background: rgb(0 0 0 / 55%); }
body:has(.xcn-speakers__dialog[open]) { overflow: hidden; }
.xcn-speakers__close { display: block; margin: -12px -12px 12px auto; width: 44px; height: 44px; border: 1px solid #ccc; border-radius: 50%; background: white; color: #121212; font-size: 28px; cursor: pointer; }
.xcn-speakers__profile-header { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.xcn-speakers__profile-header img { width: 96px; height: 112px; border-radius: 3px; flex-shrink: 0; }
.xcn-speakers__profile-header h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.xcn-speakers__curriculum { line-height: 1.7; overflow-wrap: anywhere; }
.xcn-speakers__curriculum a { color: #a90000; text-decoration: underline; }
.xcn-speakers__curriculum + a { margin-top: 24px; }
@media (max-width: 900px) { .xcn-speakers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .xcn-speakers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .xcn-speakers__portrait { width: min(100%, 112px); }
  .xcn-speakers__name { font-size: 1rem; }
  .xcn-speakers__profile-header { align-items: flex-start; gap: 16px; }
  .xcn-speakers__profile-header img { width: 64px; height: 80px; }
}

/* Collapsed red band; all profiles are revealed together. */
.xcn-speakers { padding: 0; background: var(--page-accent, #ff0000); color: #fff; }
.xcn-speakers__heading { margin: 0; }
.xcn-speakers__toggle { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 210px; padding: 48px 0; border: 0; background: none; color: #fff; text-align: left; font: inherit; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 700; cursor: pointer; }
.xcn-speakers__toggle-label { display: block; margin-top: 12px; font-size: 1.25rem; font-weight: 700; }
.xcn-speakers__chevron { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex-shrink: 0; border: 2px solid #fff; border-radius: 50%; font-size: 28px; transition: transform 250ms ease; }
.xcn-speakers.is-open .xcn-speakers__chevron { transform: rotate(180deg); }
.xcn-speakers__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 250ms ease, visibility 250ms; }
.xcn-speakers.is-open .xcn-speakers__panel { grid-template-rows: 1fr; visibility: visible; }
.xcn-speakers__panel-inner { min-height: 0; overflow: hidden; }
#xcn-speakers-description { max-width: 720px; margin: 0 0 36px; color: #fff; line-height: 1.6; }
.xcn-speakers__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 24px; margin-bottom: 48px; }
.xcn-speakers__card { color: #fff; text-align: center; }
.xcn-speakers__portrait { width: min(100%, 128px); margin-inline: auto; border-radius: 50%; background: #fff; }
.xcn-speakers__portrait img { filter: grayscale(1); }
.xcn-speakers__name { font-size: 1.1875rem; margin-top: 14px; color: #fff; }
.xcn-speakers__bio-link { color: #fff; }
.xcn-speakers :is(button, a):focus-visible { outline-color: #fff; }
.xcn-speakers__dialog :is(button, a):focus-visible { outline-color: #121212; }
#xcn-speakers-retry { color: #fff; border-color: #fff; margin-bottom: 36px; }
@media (max-width: 1100px) { .xcn-speakers__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .xcn-speakers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .xcn-speakers__portrait { width: min(100%, 112px); }
  .xcn-speakers__toggle { min-height: 168px; padding: 32px 0; }
  .xcn-speakers__chevron { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .xcn-speakers__panel, .xcn-speakers__chevron { transition: none; }
}

/* Match the site's periodical band composition using the implantology red. */
.xcn-speakers { position: relative; overflow: hidden; }
.xcn-speakers::before, .xcn-speakers::after { content: ""; position: absolute; width: 430px; height: 430px; right: -120px; top: 36px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; pointer-events: none; }
.xcn-speakers::after { width: 360px; height: 360px; right: 90px; top: 150px; border-color: rgb(255 255 255 / 16%); }
.xcn-speakers > .container { position: relative; z-index: 1; }
.xcn-speakers__band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: 240px; padding: clamp(36px, 5vw, 72px) 0; }
.xcn-speakers__heading { color: #fff; font-size: var(--fs-h2, 2.5rem); line-height: var(--lh-h2, 1.15); font-weight: 700; margin: 0 0 24px; }
#xcn-speakers-description { margin: 0; max-width: 70ch; font-size: 1.1875rem; line-height: 1.65; font-weight: 400; }
.xcn-speakers__toggle { display: inline-flex; width: auto; min-height: 56px; gap: 20px; justify-content: center; padding: 18px 26px; border: 1px solid #fff; border-radius: 3px; background: #fff; color: #b00000; font-size: .9375rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; }
.xcn-speakers__toggle:hover { background: #f1f1f1; }
.xcn-speakers__toggle > span:last-child { font-size: 1.25rem; }
@media (max-width: 900px) {
  .xcn-speakers__band { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .xcn-speakers__toggle { justify-self: start; }
}
@media (max-width: 600px) {
  .xcn-speakers__heading { font-size: 2rem; }
  .xcn-speakers__toggle { min-height: 56px; padding: 16px 22px; }
}

/* Academy uses the established orthodontics blue. */
.xcn-speakers--ortho { --page-accent: var(--blue-1, #214ecd); }
.xcn-speakers--ortho .xcn-speakers__toggle { color: #214ecd; }
.xcn-speakers__filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.xcn-speakers__filter { min-height: 44px; padding: 10px 22px; border: 1px solid #fff; border-radius: 3px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.xcn-speakers__filter[aria-pressed="true"] { background: #fff; color: #214ecd; font-weight: 700; }
.xcn-speakers__filter:hover { text-decoration: underline; text-underline-offset: 4px; }
