/*
 * Onespot Web Integration - Staff front end styles
 * styles/staff.css
 * Version 1.05.0 (27/11/2026)
 * 1.05.0 - Years badges (.staff-years-badge): the site's own picture or a drawn
 *   badge (--staff-years-bg / --staff-years-text, default the staff accent), at
 *   the top of the bio (left / centre / right) and / or on the card.
 * 1.04.0 - Site buttons (Skin Admin > Buttons): a Read more / Bio / View profile
 *   button with the os-btn class keeps only its spacing here - its look comes
 *   from the site's button style. :where(:not(.os-btn)) adds no weight.
 * 1.03.0 - Stage 7: carousel layout (.staff-carousel, run by the Sliders system's
 *   site-slider.js; slider.css gives equal-height slides).
 * 1.02.0 - Stage 6: profile page (.staff-profile-page) and the links to it
 *   (.staff-name-link, .staff-photo-link, .staff-profile-more).
 * 1.01.0 - Rules raised to one class (theme rules such as div { padding: 0 } and
 *   p { text-align: left } were winning) and rem sizes changed to em (themes with
 *   html { font-size: 62.5% } made the text tiny). Found on demo50.
 * 1.00.0 - Staff rebuild stage 5. Grid, round photos, directory, accordion,
 *   pop-up, read more, flip, filter, search, badges. The list / tiles / cards
 *   layouts keep the old classes, so the skin's own CSS still styles them;
 *   only the new pieces are added for those.
 * Rules are one class strong (the context is wrapped in :where()), so they beat a
 * theme's plain p / div / h3 rules, and any skin rule with two classes wins.
 * Sizes are in em (some themes set html { font-size: 62.5% }). A skin can
 * replace this whole file with skins/<skin>/styles/staff.css, or just set
 * the variables below.
 */
.staff-display {
    --staff-accent: var(--bs-primary, #2f6f9f);
    --staff-text: inherit;
    --staff-muted: #666;
    --staff-card-bg: #fff;
    --staff-border: #e3e3e3;
    --staff-radius: 10px;
    --staff-gap: 1.5em;
    --staff-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    --staff-badge-bg: #eef3f7;
    --staff-badge-text: #234;
    clear: both;
    margin: 0 0 2em;
}
:where(.staff-display) *, :where(.staff-display) *::before, :where(.staff-display) *::after { box-sizing: border-box; }
:where(.staff-display) .staff-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.staff-display) [hidden] { display: none !important; }

/* Element resets: one class, so they beat the theme's plain ul / li / h3 / button rules
   but any skin rule with a class (and loaded after) still wins. */
.staff-grid, .staff-directory, .staff-card-fields { list-style: none; margin-left: 0; padding-left: 0; }
.staff-grid { margin: 0; }
.staff-card-fields > li, .staff-grid > li, .staff-directory > li { margin-left: 0; padding-left: 0; }
.staff-name, .staff-dialog-name, .staff-bio-label { margin-top: 0; }
.staff-name { font-size: 1.1em; line-height: 1.25; margin-bottom: 0; }
.staff-position { margin-bottom: 0; }
.staff-filter-btn, .staff-open:where(:not(.os-btn)), .staff-more-btn:where(:not(.os-btn)), .staff-dialog-close { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
.staff-accordion summary { list-style: none; display: flex; }
/* themes often set p { text-align: left } - keep the card's alignment */
:where(.staff-display) :is(.staff-name, .staff-position, .staff-card-fields, .staff-contact) { text-align: inherit; }

/* ---- headings, description ---- */
:where(.staff-display) .staffSubHeading { font-size: .9em; opacity: .85; }
:where(.staff-display) .staff-category-desc { max-width: 60em; margin: 0 auto 1.25em; text-align: center; }
:where(.staff-display .staff-group) + :where(.staff-group) { margin-top: 2em; }

/* ---- tools: filter + search ---- */
:where(.staff-display) .staff-tools { display: flex; flex-wrap: wrap; gap: .75em; align-items: center; justify-content: center; margin: 0 0 1.5em; }
:where(.staff-display.staff-align-left) .staff-tools { justify-content: flex-start; }
:where(.staff-display) .staff-filter { display: flex; flex-wrap: wrap; gap: .4em; }
:where(.staff-display) .staff-filter-btn {
    font: inherit; font-size: .9em; line-height: 1.2; padding: .45em .9em; border-radius: 999px;
    border: 1px solid var(--staff-accent); background: transparent; color: var(--staff-accent); cursor: pointer;
}
:where(.staff-display) .staff-filter-btn:hover { background: var(--staff-badge-bg); }
:where(.staff-display) .staff-filter-btn.is-active { background: var(--staff-accent); color: #fff; }
:where(.staff-display) .staff-filter-sub { font-size: .82em; }
:where(.staff-display) .staff-search { font: inherit; font-size: .95em; padding: .45em .8em; border: 1px solid var(--staff-border); border-radius: 6px; min-width: 14em; max-width: 100%; }
:where(.staff-display) .staff-none { text-align: center; color: var(--staff-muted); padding: 1em; }
:where(.staff-display) .staff-filtered-out { display: none !important; }

/* ---- shared bits ---- */
:where(.staff-display) :is(.staff-name) { margin: 0; font-size: 1.1em; line-height: 1.25; }
:where(.staff-display) :is(.staff-position) { margin: .2em 0 0; color: var(--staff-muted); font-size: .92em; }
:where(.staff-display) .staff-card-fields { list-style: none; margin: .6em 0 0; padding: 0; font-size: .88em; }
:where(.staff-display .staff-card-fields) li { margin: .2em 0; padding: 0; background: none; }
:where(.staff-display .staff-card-fields) li::before { content: none; }
:where(.staff-display) .staff-badge {
    display: inline-block; margin: .15em .1em; padding: .2em .55em; border-radius: 999px;
    background: var(--staff-badge-bg); color: var(--staff-badge-text); font-size: .88em; line-height: 1.3; white-space: nowrap;
}
:where(.staff-display) .staff-bio-fields { margin: 0 0 1em; }
:where(.staff-display) .staff-bio-field { margin: 0 0 .85em; }
:where(.staff-display) .staff-bio-label { margin: 0 0 .2em; font-size: .95em; font-weight: 700; }
:where(.staff-display .staff-bio-value) > :last-child { margin-bottom: 0; }
:where(.staff-display) .staff-contact { margin: .75em 0 0; font-size: .9em; }
:where(.staff-display) .staff-sep { color: var(--staff-muted); padding: 0 .2em; }
:where(.staff-display) .staff-initials {
    display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1;
    background: var(--staff-badge-bg); color: var(--staff-accent); font-size: 2.2em; font-weight: 700; letter-spacing: .05em;
}
:where(.staff-display) :is(.staff-open, .staff-more-btn, .staff-profile-link) { margin-top: .75em; }
/* a site button keeps its own width in the grid / carousel cards (they are flex columns) */
:where(.staff-display :is(.staff-grid, .staff-carousel) .staff-body) > :is(.staff-more-btn, .staff-profile-link).os-btn { align-self: center; }
:where(.staff-display) :is(.staff-open, .staff-more-btn, .staff-profile-link):where(:not(.os-btn)) {
    display: inline-block; padding: .4em .9em; font: inherit; font-size: .88em;
    border: 1px solid var(--staff-accent); border-radius: 6px; background: transparent; color: var(--staff-accent); cursor: pointer; text-decoration: none;
}
:where(.staff-display) :is(.staff-open, .staff-more-btn, .staff-profile-link):where(:not(.os-btn)):hover { background: var(--staff-accent); color: #fff; }

/* "read more" */
:where(.staff-display) .staff-more { position: relative; max-height: 7.5em; overflow: hidden; transition: max-height .35s ease; }
:where(.staff-display) .staff-more::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3em; background: linear-gradient(rgba(255,255,255,0), var(--staff-card-bg)); pointer-events: none; }
:where(.staff-display) .staff-more.is-open { max-height: none; }
:where(.staff-display) .staff-more.is-open::after { display: none; }
:where(.staff-display) .staff-more.is-short { max-height: none; }
:where(.staff-display) .staff-more.is-short::after { display: none; }

/* second photo on hover */
:where(.staff-display) .has-photo-2 { position: relative; }
:where(.staff-display) .staff-photo-2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
:where(.staff-display) .has-photo-2 picture:has(.staff-photo-2) { position: absolute; inset: 0; }
:where(.staff-display) :is(.has-photo-2:hover, .has-photo-2:focus-within) .staff-photo-2 { opacity: 1; }
@media (hover: none) { :where(.staff-display) .staff-photo-2 { display: none; } }

/* ---- grid + round photos ---- */
:where(.staff-display) .staff-grid {
    list-style: none; margin: 0; padding: 0; display: grid; gap: var(--staff-gap);
    grid-template-columns: repeat(var(--staff-cols, 4), minmax(0, 1fr));
}
@media (max-width: 991px) { :where(.staff-display) .staff-grid { grid-template-columns: repeat(var(--staff-cols-md, 3), minmax(0, 1fr)); } }
@media (max-width: 575px) { :where(.staff-display) .staff-grid { grid-template-columns: repeat(var(--staff-cols-sm, 2), minmax(0, 1fr)); gap: 1em; } }
:where(.staff-display .staff-grid) > li { margin: 0; padding: 0; background: none; display: flex; }
:where(.staff-display .staff-grid > li) > .staff-card { flex: 1 1 auto; min-width: 0; }
:where(.staff-display .staff-grid) > li::before { content: none; }
:where(.staff-display .staff-grid) .staff-card {
    height: 100%; display: flex; flex-direction: column; background: var(--staff-card-bg); border-radius: var(--staff-radius);
    box-shadow: var(--staff-shadow); overflow: hidden;
}
:where(.staff-display .staff-grid) .staff-photo-wrap { position: relative; overflow: hidden; }
:where(.staff-display .staff-grid .staff-photo-wrap) img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
:where(.staff-display.staff-shape-portrait .staff-grid .staff-photo-wrap) img { aspect-ratio: 4 / 5; }
:where(.staff-display.staff-shape-original .staff-grid .staff-photo-wrap) img { aspect-ratio: auto; }
:where(.staff-display .staff-grid) .staff-body { padding: 1em 1em 1.25em; flex: 1 1 auto; display: flex; flex-direction: column; }
:where(.staff-display .staff-grid .staff-body) > .staff-open { margin-top: auto; align-self: center; }
:where(.staff-display .staff-grid .staff-body) > :where(:not(.staff-open)):has(+ .staff-open) { margin-bottom: .75em; }
:where(.staff-display.staff-align-center .staff-grid) .staff-body { text-align: center; }
:where(.staff-display .staff-grid) .staff-bio { margin-top: .75em; font-size: .94em; text-align: left; }

:where(.staff-display .staff-circles) .staff-card { background: none; box-shadow: none; overflow: visible; }
:where(.staff-display .staff-circles) .staff-photo-wrap { width: min(180px, 80%); margin: 0 auto; border-radius: 50%; }
:where(.staff-display .staff-circles .staff-photo-wrap) :is(img, .staff-initials) { border-radius: 50%; aspect-ratio: 1; }
:where(.staff-display.staff-shape-circle .staff-grid:not(.staff-circles)) .staff-photo-wrap { width: min(200px, 80%); margin: 1.25em auto 0; border-radius: 50%; }
:where(.staff-display.staff-shape-circle .staff-grid:not(.staff-circles) .staff-photo-wrap) :is(img, .staff-initials) { border-radius: 50%; aspect-ratio: 1; }
:where(.staff-display .staff-circles) .staff-body { padding: .85em .25em 0; }

/* flip card: .staff-flip > .staff-flip-inner > .staff-flip-front + .staff-flip-back */
:where(.staff-display) .staff-flip { position: relative; perspective: 1200px; cursor: pointer; background: none; box-shadow: none; overflow: visible; }
:where(.staff-display) .staff-flip-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .6s ease; }
:where(.staff-display) .staff-flip-front, :where(.staff-display) .staff-flip-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--staff-radius); }
:where(.staff-display) .staff-flip-front { position: relative; height: 100%; background: var(--staff-card-bg); box-shadow: var(--staff-shadow); overflow: hidden; }
:where(.staff-display .staff-circles) .staff-flip-front { background: none; box-shadow: none; overflow: visible; }
:where(.staff-display) .staff-flip-back {
    position: absolute; inset: 0; transform: rotateY(180deg); background: var(--staff-card-bg); box-shadow: var(--staff-shadow);
    padding: 1em 1.1em; overflow-y: auto; font-size: .9em; text-align: left;
}
:where(.staff-display .staff-circles) .staff-flip-back { min-height: 100%; }
:where(.staff-display .staff-flip-back) .staff-name { margin-bottom: .5em; }
:where(.staff-display .staff-flip.is-flipped) .staff-flip-inner { transform: rotateY(180deg); }
:where(.staff-display) .staff-flip-hint {
    position: absolute; top: .5em; right: .5em; width: 2em; height: 2em; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.9); color: var(--staff-accent); font-size: 1.1em; box-shadow: var(--staff-shadow);
}
:where(.staff-display) .staff-flip:focus-visible { outline: 3px solid var(--staff-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { :where(.staff-display) .staff-flip-inner { transition: none; } }

/* ---- directory ---- */
:where(.staff-display) .staff-directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--staff-border); }
:where(.staff-display .staff-directory) > li { margin: 0; padding: .75em 0; border-bottom: 1px solid var(--staff-border); background: none; }
:where(.staff-display .staff-directory) > li::before { content: none; }
:where(.staff-display) .staff-row { display: grid; grid-template-columns: 64px minmax(10em, 1fr) 2fr auto; gap: 1em; align-items: center; }
:where(.staff-display .staff-directory .staff-photo-wrap) :is(img, .staff-initials) { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; font-size: 1.2em; }
:where(.staff-display .staff-directory) .staff-card-fields { margin: 0; }
:where(.staff-display .staff-directory) .staff-open { margin-top: 0; }
:where(.staff-display .staff-directory) .staff-bio { margin: .75em 0 0 calc(64px + 1em); }
@media (max-width: 767px) {
    :where(.staff-display) .staff-row { grid-template-columns: 56px 1fr auto; }
    :where(.staff-display .staff-directory) .staff-extra { grid-column: 2 / -1; grid-row: 2; }
    :where(.staff-display .staff-directory .staff-photo-wrap) :is(img, .staff-initials) { width: 56px; height: 56px; }
    :where(.staff-display .staff-directory) .staff-bio { margin-left: 0; }
}

/* ---- accordion ---- */
:where(.staff-display) .staff-accordion { border-top: 1px solid var(--staff-border); }
:where(.staff-display .staff-accordion) details { border-bottom: 1px solid var(--staff-border); }
:where(.staff-display .staff-accordion) summary {
    display: flex; align-items: center; gap: 1em; padding: .75em .25em; cursor: pointer; list-style: none;
}
:where(.staff-display .staff-accordion) summary::-webkit-details-marker { display: none; }
:where(.staff-display .staff-accordion) summary::after { content: "+"; margin-left: auto; font-size: 1.5em; line-height: 1; color: var(--staff-accent); }
:where(.staff-display .staff-accordion details[open]) > summary::after { content: "\2212"; }
:where(.staff-display .staff-accordion summary .staff-photo-wrap) :is(img, .staff-initials) { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 50%; font-size: 1.1em; }
:where(.staff-display .staff-accordion) .staff-name { display: block; font-weight: 700; font-size: 1.05em; }
:where(.staff-display .staff-accordion) .staff-position { display: block; margin: 0; }
:where(.staff-display) .staff-accordion-body { padding: 0 .25em 1.25em calc(56px + 1.25em); }
@media (max-width: 575px) { :where(.staff-display) .staff-accordion-body { padding-left: .25em; } }

/* ---- old layouts (skin CSS styles these): only the new pieces ---- */
:where(.staff-display) :is(.staffListv1, .staffListv2, .staffList) .staff-card-fields { text-align: inherit; }
:where(.staff-display .staffListv1) .wrap { position: relative; }
:where(.staff-display .staffListv1) .staff-stretch {
    position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; font-size: 0; cursor: pointer;
}
:where(.staff-display .staffListv1) .staff-stretch:focus-visible { outline: 3px solid var(--staff-accent); outline-offset: -3px; }
:where(.staff-display .staffListv1) .staff-stretch:hover { background: transparent; color: transparent; }

/* ---- pop-up ---- */
:where(.staff-dialog) {
    width: min(760px, calc(100vw - 2em)); max-height: calc(100vh - 2em); padding: 0; border: 0; border-radius: var(--staff-radius, 10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3); color: inherit; background: #fff;
}
:where(.staff-dialog)::backdrop { background: rgba(0, 0, 0, .55); }
:where(.staff-dialog) .staff-dialog-box { position: relative; padding: 1.75em 1.75em 1.5em; }
:where(.staff-dialog) .staff-dialog-close {
    position: absolute; top: .5em; right: .6em; width: 2.4em; height: 2.4em; border: 0; border-radius: 50%;
    background: transparent; font-size: 1.8em; line-height: 1; cursor: pointer; color: #555;
}
:where(.staff-dialog) .staff-dialog-close:hover { background: #f0f0f0; }
:where(.staff-dialog) .staff-dialog-head { display: flex; gap: 1.25em; align-items: center; margin: 0 2em 1.25em 0; }
:where(.staff-dialog .staff-dialog-photo) :is(img, .staff-initials) { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; font-size: 2em; }
:where(.staff-dialog) .staff-dialog-photo:empty { display: none; }
:where(.staff-dialog) .staff-dialog-name { margin: 0; font-size: 1.4em; }
:where(.staff-dialog) .staff-dialog-position { margin: .25em 0 0; color: #666; }
:where(.staff-dialog) .staff-dialog-position:empty { display: none; }
:where(.staff-dialog .staff-dialog-body) img { max-width: 100%; height: auto; }
:where(.staff-dialog) .staff-badge {
    display: inline-block; margin: .15em .1em; padding: .2em .55em; border-radius: 999px; background: #eef3f7; color: #234; font-size: .8em;
}
:where(.staff-dialog) .staff-bio-label { margin: 0 0 .2em; font-size: 1em; font-weight: 700; }
:where(.staff-dialog) .staff-bio-field { margin: 0 0 .85em; }
@media (max-width: 575px) {
    :where(.staff-dialog) .staff-dialog-box { padding: 1.25em 1em 1em; }
    :where(.staff-dialog) .staff-dialog-head { flex-direction: column; text-align: center; margin-right: 0; }
}
html:has(.staff-dialog[open]) { overflow: hidden; }

/* ---- links to profile pages ---- */
:where(.staff-display) .staff-name-link { color: inherit; text-decoration: none; }
:where(.staff-display) .staff-name-link:hover, :where(.staff-display) .staff-name-link:focus-visible { text-decoration: underline; }
:where(.staff-display) .staff-photo-link { display: block; }
:where(.staff-display, .staff-dialog) .staff-profile-more { margin: 1em 0 0; }
:where(.staff-display, .staff-dialog) .staff-profile-more a { font-weight: 600; }

/* ---- profile page ---- */
:where(.staff-profile-page) .staff-profile { margin: 0 0 2em; text-align: left; }
:where(.staff-profile-page) .staff-profile-back { margin: 0 0 1.25em; font-size: .95em; text-align: left; }
:where(.staff-profile-page) .staff-profile-back a { text-decoration: none; }
:where(.staff-profile-page) .staff-profile-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2.5em; align-items: start; }
:where(.staff-profile-page) .staff-profile-nophoto { grid-template-columns: minmax(0, 1fr); }
:where(.staff-profile-page) .staff-profile-photo { position: relative; border-radius: var(--staff-radius); overflow: hidden; box-shadow: var(--staff-shadow); }
:where(.staff-profile-page) .staff-profile-photo img { display: block; width: 100%; height: auto; }
:where(.staff-display.staff-profile-page) .staff-profile-position { margin: 0 0 1em; font-size: 1.15em; color: var(--staff-muted); text-align: left; }
:where(.staff-profile-page) .staff-profile-roles { list-style: none; margin: 0 0 1em; padding: 0; }
:where(.staff-profile-page) .staff-profile-roles li { margin: 0 0 .35em; padding: 0; background: none; }
:where(.staff-profile-page) .staff-profile-roles li::before { content: none; }
:where(.staff-profile-page .staff-profile-roles) .staff-profile-position { display: inline; margin: 0; font-size: 1.05em; }
:where(.staff-profile-page) .staff-profile-in { color: var(--staff-muted); font-size: .92em; }
:where(.staff-profile-page .staff-profile-in)::before { content: "\2013\00a0"; }
:where(.staff-profile-page) .staff-bio-fields { margin: 0 0 1.5em; }
:where(.staff-profile-page) .staff-bio-field { margin: 0 0 1.1em; }
:where(.staff-profile-page) .staff-bio-label { margin: 0 0 .3em; font-size: 1.05em; font-weight: 700; }
:where(.staff-profile-page) .staff-bio-text { text-align: left; }
:where(.staff-profile-page) .staff-bio-text img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
    :where(.staff-profile-page) .staff-profile-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5em; }
    :where(.staff-profile-page) .staff-profile-photo { max-width: min(20em, 80%); }
}

/* ---- carousel (Sliders system card slider) ---- */
:where(.staff-display) .staff-carousel { margin: 0 0 1em; }
:where(.staff-display .staff-carousel) .ss-track { margin: 0; padding: 0; list-style: none; }
:where(.staff-display .staff-carousel) .owl-stage-outer { padding: 6px 0 14px; }
:where(.staff-display .staff-carousel) .ss-item { margin: 0; padding: 0; background: none; }
:where(.staff-display .staff-carousel) .ss-item::before { content: none; }
:where(.staff-display .staff-carousel) .staff-card {
    display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--staff-card-bg);
    border-radius: var(--staff-radius); box-shadow: var(--staff-shadow); overflow: hidden;
}
:where(.staff-display .staff-carousel) .staff-photo-wrap { position: relative; overflow: hidden; }
:where(.staff-display .staff-carousel .staff-photo-wrap) img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
:where(.staff-display.staff-shape-portrait .staff-carousel .staff-photo-wrap) img { aspect-ratio: 4 / 5; }
:where(.staff-display.staff-shape-original .staff-carousel .staff-photo-wrap) img { aspect-ratio: auto; }
:where(.staff-display.staff-shape-circle .staff-carousel) .staff-photo-wrap { width: min(200px, 80%); margin: 1.25em auto 0; border-radius: 50%; }
:where(.staff-display.staff-shape-circle .staff-carousel .staff-photo-wrap) :is(img, .staff-initials) { border-radius: 50%; aspect-ratio: 1; }
:where(.staff-display .staff-carousel) .staff-body { padding: 1em 1em 1.25em; flex: 1 1 auto; display: flex; flex-direction: column; }
:where(.staff-display.staff-align-center .staff-carousel) .staff-body { text-align: center; }
:where(.staff-display .staff-carousel .staff-body) > .staff-open { margin-top: auto; align-self: center; }
:where(.staff-display .staff-carousel .staff-body) > :where(:not(.staff-open)):has(+ .staff-open) { margin-bottom: .75em; }
:where(.staff-display .staff-carousel) .staff-bio { margin-top: .75em; font-size: .94em; text-align: left; }
:where(.staff-display .staff-carousel .staff-flip) { height: 100%; }
/* Arrows / dots: slider.css gives plain ones; these match the staff look */
:where(.staff-display .staff-carousel .owl-nav) button {
    width: 2.2em; height: 2.2em; margin: 0 .3em; border-radius: 50%; border: 1px solid var(--staff-border) !important;
    background: #fff !important; color: var(--staff-accent) !important; font-size: 1.4em !important; line-height: 1;
}
:where(.staff-display .staff-carousel) .owl-dot.active span { background: var(--staff-accent); }
/* Admin preview (no Owl): the first cards in one row */
:where(.staff-display) .staff-carousel-preview .ss-track { display: flex; gap: 16px; position: relative; overflow: hidden; contain: paint; padding: 2px 2px 10px; }
:where(.staff-display .staff-carousel-preview) .ss-item { flex: 0 0 calc((100% - (var(--staff-cols, 4) - 1) * 16px) / var(--staff-cols, 4)); min-width: 0; display: flex; }
:where(.staff-display) .staff-carousel-preview { max-width: 100%; overflow: hidden; }

/* ---- 1.05.0 Years badges ---- */
.staff-display, .staff-profile-page {
    --staff-years-bg: var(--staff-accent, #2f6f9f);
    --staff-years-text: #fff;
}
:where(.staff-display) .staff-years-badge { line-height: 1; margin: 0 0 .8em; padding: 0; }
:where(.staff-display) .staff-years-picture img { display: block; width: 100%; height: auto; max-width: none; margin: 0; border: 0; box-shadow: none; border-radius: 0; }
/* with the bio: sizes are the badge's width */
:where(.staff-display) .staff-years-bio.staff-years-small { width: 5em; }
:where(.staff-display) .staff-years-bio.staff-years-medium { width: 8em; }
:where(.staff-display) .staff-years-bio.staff-years-large { width: 11em; }
:where(.staff-display) .staff-years-bio { max-width: 40%; }
:where(.staff-display) .staff-years-right { float: right; margin-left: 1em; }
:where(.staff-display) .staff-years-left { float: left; margin-right: 1em; }
:where(.staff-display) .staff-years-center { margin-left: auto; margin-right: auto; }
:where(.staff-display) :is(.staff-bio, .staff-more-inner, .staff-bio-full, .staff-flip-back, .staff-accordion-body, .staff-dialog-body, .staff-profile-main)::after { content: ""; display: table; clear: both; }
/* on the card: smaller, centred in centred layouts */
:where(.staff-display) .staff-years-card.staff-years-small { width: 3em; }
:where(.staff-display) .staff-years-card.staff-years-medium { width: 4.5em; }
:where(.staff-display) .staff-years-card.staff-years-large { width: 6em; }
:where(.staff-display) .staff-years-card { margin: .6em 0 .2em; }
:where(.staff-display.staff-align-center) .staff-years-card { margin-left: auto; margin-right: auto; }
/* the drawn badge: a round number with the word under it */
:where(.staff-display) .staff-years-drawn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1; border-radius: 50%;
    background: var(--staff-years-bg); color: var(--staff-years-text);
    box-shadow: inset 0 0 0 .18em rgba(255, 255, 255, .55), 0 1px 4px rgba(0, 0, 0, .15);
    text-align: center; font-weight: 700;
}
:where(.staff-display) .staff-years-drawn .staff-years-n { display: block; font-size: 2.1em; line-height: 1; }
:where(.staff-display) .staff-years-drawn .staff-years-word { display: block; font-size: .72em; letter-spacing: .04em; text-transform: uppercase; margin-top: .15em; }
:where(.staff-display) .staff-years-drawn.staff-years-small { font-size: .75em; width: 5.4em; }
:where(.staff-display) .staff-years-drawn.staff-years-large { font-size: 1.3em; width: 8.5em; }
:where(.staff-display) .staff-years-drawn.staff-years-medium { width: 6.2em; }
:where(.staff-display) .staff-years-card.staff-years-drawn { font-size: .62em; }
:where(.staff-display) .staff-years-card.staff-years-drawn.staff-years-large { font-size: .8em; }
:where(.staff-display) .staff-years-card.staff-years-drawn.staff-years-small { font-size: .5em; }
