/* Six topics stay easy to scan; on phones the labels wrap instead of becoming
   tiny dots or pushing the previous/next controls outside the screen. */
html[data-ui-theme] .site .hc__controls { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px 36px; gap: 10px; }
html[data-ui-theme] .site .hc__dots { display: flex; flex-wrap: wrap; justify-content: center; min-width: 0; gap: 4px; }
html[data-ui-theme] .site .hc__dot { min-width: 0; min-height: 40px; white-space: normal; overflow-wrap: anywhere; }
html[data-ui-theme] .site .hc__btn { flex-shrink: 0; }
html[data-ui-theme] .site .hc__btn--toggle { margin: 0; }
html[data-ui-theme] .site .hc__media.media--conversation {
  display: flex; align-items: center; justify-content: center;
  height: auto; min-height: 390px; padding: 24px;
}
.phone-team { width: 100%; max-width: 470px; }
.phone-team__caller { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.phone-team__symbol { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: var(--link); background: var(--bg-tint); }
.phone-team__path { display: flex; justify-content: center; padding: 6px 0; color: var(--link); }
.phone-team__card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--ui-surface-solid, #fff); }
.phone-team__card strong { display: block; font: 600 17px/24px var(--f); color: var(--text-strong); }
.site .phone-team__card p { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.phone-team__card--people { border-color: var(--link); box-shadow: var(--shadow-float); }
.phone-team__card--people .phone-team__symbol { background: var(--ui-primary-gradient, var(--teal-ink)); color: var(--ui-on-accent, #fff); }
.site .phone-team__note { margin: 16px 0 0; color: var(--text-2); font-size: 12px; line-height: 20px; text-align: center; }
@media (max-width: 700px) {
  html[data-ui-theme] .site .hc__controls { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; }
  html[data-ui-theme] .site .hc__dots { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  html[data-ui-theme] .site .hc__dot { width: 100%; padding: 8px 6px; font-size: 12px; }
  html[data-ui-theme] .site .hc__btn { grid-row: 2; }
  html[data-ui-theme] .site .hc__btn--toggle { justify-self: end; }
  html[data-ui-theme] .site .hc__media.media--conversation { min-height: 0; padding: 18px 14px; }
  .phone-team__card { gap: 10px; padding: 14px; }
  .phone-team__card strong { font-size: 15px; line-height: 22px; }
  .site .phone-team__card p { font-size: 13px; line-height: 20px; }
}

/* First paint: site.js (deferred) adds .is-ready to the carousel. Until then, browsers that will
   run it (html.has-js, set by theme.js in the head) already stack the slides and show only the
   first one, and keep the controls' space, so the slides never flash below each other.
   Without JavaScript the slides stay listed one below the other. */
.has-js .hc:not(.is-ready) .hc__slide { grid-area: 1 / 1; }
.has-js .hc:not(.is-ready) .hc__slide:not(.is-active) { visibility: hidden; opacity: 0; }
.has-js .hc:not(.is-ready) .hc__slide + .hc__slide { border-top: 0; }
html[data-ui-theme].has-js .site .hc:not(.is-ready) .hc__controls[hidden] { display: grid !important; visibility: hidden; }
