/* Team bio reading panel (text only), opened by "Read more" on a team card (see bio-dialog.js).
   Shared by the ANS and CarrierTrack® sites; only the four --bd-* colours below differ between them. */
.bio-dialog {
  --bd-accent: var(--accent, var(--cyan-ink));
  --bd-line: var(--border, var(--line));
  --bd-tint: var(--tint, var(--paper));
  --bd-head: var(--navy);
  position: fixed; inset: 0; margin: auto;
  width: min(calc(100vw - 32px), 46rem); max-height: min(88vh, 46rem); height: fit-content;
  padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: var(--white); color: var(--ink);
  box-shadow: 0 32px 80px -24px rgba(3, 12, 20, 0.55);
}
.bio-dialog[open] { animation: bio-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bio-dialog::backdrop { background: rgba(6, 18, 30, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html:has(.bio-dialog[open]) { overflow: hidden; }

.bio-text { padding: 48px 52px 44px; max-height: min(88vh, 46rem); overflow-y: auto; overscroll-behavior: contain; }

.bio-name { margin: 0; padding-right: 2.5rem; font-size: clamp(1.625rem, 2.4vw, 2.125rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--bd-head); }
.bio-role { margin: 10px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--bd-line); font-weight: 700; font-size: 1rem; line-height: 1.45; color: var(--bd-accent); }
.bio-copy p { margin: 1.1rem 0 0; max-width: 62ch; font-size: 1rem; line-height: 1.75; color: var(--muted); }
.bio-copy p:first-child { margin-top: 24px; font-size: 1.0938rem; line-height: 1.7; color: var(--ink); }

.bio-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--bd-line); border-radius: 50%; background: var(--white);
  color: var(--bd-head); font-size: 1.625rem; line-height: 1; cursor: pointer;
  transition: background-color 0.2s;
}
.bio-close:hover { background: var(--bd-tint); }
.bio-close:focus-visible { outline: 2px solid var(--bd-accent); outline-offset: 2px; }

@keyframes bio-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) { .bio-dialog[open] { animation: none; } }

/* Phones: nearly full width, smaller type; the text scrolls inside the panel. */
@media (max-width: 760px) {
  .bio-dialog { width: calc(100vw - 24px); max-height: 88vh; border-radius: 18px; }
  .bio-text { max-height: 88vh; padding: 26px 22px 30px; }
  .bio-name { padding-right: 2.75rem; font-size: 1.5rem; }
  .bio-role { margin-top: 8px; padding-bottom: 18px; font-size: 0.875rem; }
  .bio-copy p { font-size: 0.9375rem; line-height: 1.7; }
  .bio-copy p:first-child { margin-top: 18px; font-size: 1rem; }
  .bio-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}
