/* Educator layouts reuse the shared frontend and category catalog primitives. */
.qp-educator-catalog .qp-educator-hero { grid-template-columns: minmax(0,1fr) auto; }
.qp-educator-hero .qp-ui-title-row { align-items: center; margin-bottom: 16px; }
.qp-educator-hero .qp-ui-title-row > div { min-width: 0; }
.qp-educator-hero h1 { margin-bottom: 0; }
.qp-educator-hero > div > .qp-ui-description { max-width: 760px; }
.qp-educator-byline { display: flex; align-items: center; gap: 13px; align-self: center; padding: 20px; background: var(--qp-ui-primary-soft); border: 1px solid #dfeafd; border-radius: 15px; color: var(--qp-ui-secondary); text-decoration: none; max-width: 300px; min-width: 220px; }
.qp-educator-byline > span:last-child { min-width: 0; }
.qp-educator-byline small { display: block; font-size: 12px; margin-bottom: 5px; }
.qp-educator-byline strong { display: block; color: var(--qp-ui-strong); font-size: 16px; overflow-wrap: anywhere; }
.qp-educator-byline span > span { display: block; font-size: 13px; color: var(--qp-ui-primary); margin-top: 7px; }
.qp-educator-byline:hover { border-color: #b3cdf5; }
.qp-educator-avatar { width: 76px; height: 76px; border: 4px solid white; border-radius: 18px; object-fit: cover; background: var(--qp-ui-primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 650; color: var(--qp-ui-primary); }
.qp-educator-avatar-large { width: 92px; height: 92px; flex-shrink: 0; }
.qp-educator-bio { margin: 20px 5px 0; max-width: 900px; white-space: pre-line; overflow-wrap: anywhere; }
.qp-educator-catalog .qp-educator-own-profile { margin-top: 23px; padding: 22px 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.qp-educator-catalog .qp-educator-search { padding: 24px; margin-top: 24px; }
.qp-educator-search-form { display: flex; align-items: end; gap: 12px; }
.qp-educator-search-wrap { flex: 1; min-width: 0; position: relative; }
.qp-educator-search .form-label { font-size: 14px; font-weight: 600; color: var(--qp-ui-strong); }
.qp-educator-search .form-control { min-height: 46px; font-size: 14px; border-color: var(--qp-ui-border); }
.qp-educator-search .input-group-text { color: var(--qp-ui-muted); border-color: var(--qp-ui-border); }
.qp-educator-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; padding: 7px; margin-top: 6px; border: 1px solid var(--qp-ui-border); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(23,32,51,.1); max-height: 300px; overflow-y: auto; }
.qp-educator-suggestions[hidden] { display: none; }
.qp-educator-suggestions a { display: block; padding: 12px; border-radius: 7px; color: var(--qp-ui-strong); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.qp-educator-suggestions a:hover, .qp-educator-suggestions a:focus-visible { background: var(--qp-ui-primary-soft); color: var(--qp-ui-primary); }
.qp-educator-suggestions .qp-educator-suggestion { display: flex; gap: 12px; margin-bottom: 0; }
.qp-educator-avatar-suggestion { width: 42px; height: 42px; border: 0; border-radius: 10px; flex-shrink: 0; font-size: 14px; overflow: hidden; }
.qp-educator-avatar-suggestion img { width: 100%; height: 100%; object-fit: cover; }
.qp-educator-suggestion-identity { min-width: 0; }
.qp-educator-suggestion-identity strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.qp-educator-suggestion-identity small { display: block; margin-top: 2px; color: var(--qp-ui-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.qp-educator-suggestions > li:not(:has(a)) { padding: 12px; color: var(--qp-ui-muted); font-size: 14px; }
.qp-educator-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.qp-educator-directory-card { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.qp-educator-card-cover { height: 75px; background: linear-gradient(115deg,#edf4ff,#f7faff); border-bottom: 1px solid var(--qp-ui-border); }
.qp-educator-card-body { padding: 0 25px 25px; display: flex; flex-direction: column; flex: 1; }
.qp-educator-card-body > .qp-educator-avatar { position: relative; margin-top: -38px; margin-bottom: 15px; }
.qp-educator-card-identity { margin-bottom: 22px; }
.qp-educator-card-identity .qp-ui-card-title { font-size: 21px; overflow-wrap: anywhere; margin-bottom: 7px; }
.qp-educator-card-identity .qp-ui-description { font-size: 14px; overflow-wrap: anywhere; }
.qp-educator-card-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border-block: 1px solid var(--qp-ui-border); padding: 18px 0; margin-top: auto; margin-bottom: 20px; }
.qp-educator-card-metrics strong { display: block; font-size: 22px; color: var(--qp-ui-strong); line-height: 1.25; }
.qp-educator-card-metrics span { display: block; font-size: 12px; color: var(--qp-ui-muted); margin-top: 6px; }
.qp-educator-grid-empty { grid-column: 1/-1; margin-top: 0; }
.qp-educator-catalog [aria-busy="true"] { opacity: .6; pointer-events: none; }
@media (max-width: 991.98px) {
 .qp-educator-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .qp-educator-catalog .qp-educator-hero { grid-template-columns: 1fr; }
 .qp-educator-byline { max-width: none; min-width: 0; padding: 16px; }
}
@media (max-width: 575.98px) {
 .qp-educator-directory-grid { grid-template-columns: 1fr; gap: 16px; }
 .qp-educator-search-form { flex-wrap: wrap; }
 .qp-educator-search-wrap { flex-basis: 100%; }
 .qp-educator-search-form > .btn { flex: 1; }
 .qp-educator-catalog .qp-educator-search { padding: 21px; }
 .qp-educator-card-body { padding: 0 21px 21px; }
 .qp-educator-avatar-large { width: 64px; height: 64px; }
 .qp-educator-hero .qp-ui-title-row > .qp-ui-symbol { width: 42px; height: 42px; font-size: 20px; }
 .qp-educator-hero h1 { font-size: 30px; }
 .qp-educator-card-metrics strong { font-size: 21px; }
 .qp-educator-card-metrics span { font-size: 11px; }
}
