/* Bir Adım İleri — Profiller. Account editor (/hesabim/profilim/) and public pages (/uzmanlarimiz/…),
   inside the v2 design system (.bai-v2 tokens). Owner rules: one flat navy, no gold-tinted surfaces
   (gold only for borders, lines, small accents and the primary button), mobile first. */

.bai-v2 { --pf-ok: #7ED9AC; --pf-wait: #9EC5FF; --pf-warn: #F2C879; --pf-bad: #F3A193; --pf-ring: rgba(185, 138, 46, .55); }

/* ---------------------------------------------------------------- shared */
.bai-v2 .bai-pf-muted, .bai-v2 .bai-pf-small { color: var(--bai-text-muted); }
.bai-v2 .bai-pf-small { font-size: 14px; line-height: 1.5; }
.bai-v2 .bai-pf-chip { min-height: 26px; font-size: 13px; margin: 0 6px 6px 0; }
.bai-v2 .bai-pf-chip.is-ok { color: var(--pf-ok); border-color: rgba(126, 217, 172, .5); }
.bai-v2 .bai-pf-chip.is-wait { color: var(--pf-wait); border-color: rgba(158, 197, 255, .5); }
.bai-v2 .bai-pf-chip.is-warn { color: var(--pf-warn); border-color: rgba(242, 200, 121, .5); }
.bai-v2 .bai-pf-mono { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  font: 600 28px/1 var(--bai-font-display); letter-spacing: .02em; color: var(--bai-gold-light); background: var(--bai-wash); border: 1px solid var(--pf-ring); }
.bai-v2 .bai-pf-mono--lg { width: 100%; height: 100%; font-size: clamp(48px, 10vw, 80px); }
.bai-v2 .bai-pf-checked { display: inline-flex; align-items: center; gap: 6px; color: var(--pf-ok); font-weight: 600; }
.bai-v2 .bai-pf-checked svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- account: frame */
.bai-v2 .bai-pf { display: grid; gap: var(--s-3); max-width: 52rem; }
.bai-v2 .bai-pf > * { min-width: 0; }
.bai-v2 .bai-pf .bai-card { padding: clamp(1.1rem, .8rem + 1.5vw, 1.75rem); gap: var(--s-2); }
.bai-v2 .bai-pf-h2 { font-size: 1.35rem; line-height: 1.25; margin: 0; color: var(--bai-text); }
.bai-v2 .bai-pf-flash:focus { outline: 2px solid var(--bai-focus); outline-offset: 2px; }
.bai-v2 .bai-pf-status__top { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; align-items: flex-start; }
.bai-v2 .bai-pf-status__top .bai-eyebrow { margin: 0 0 4px; }
.bai-v2 .bai-pf-status__chips { margin: 8px 0 0; }
.bai-v2 .bai-pf-status__links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bai-v2 .bai-pf-callout { margin: 0; padding: .85rem 1rem; border-radius: var(--r-md); border: 1px solid var(--bai-line-strong); border-left: 3px solid var(--pf-wait); background: var(--bai-wash); color: var(--bai-text-body); font-size: 15px; }
.bai-v2 .bai-pf-callout.is-warn { border-left-color: var(--pf-warn); }
.bai-v2 .bai-pf-callout p { margin: .4rem 0 0; }
.bai-v2 .bai-pf-blockers { margin: 0; padding-left: 1.2rem; color: var(--bai-text-body); font-size: 15px; }
.bai-v2 .bai-pf-blockers li { margin: 2px 0; }
.bai-v2 .bai-pf-who { padding: .85rem 1rem; border-radius: var(--r-md); border: 1px dashed var(--bai-line-strong); font-size: 15px; color: var(--bai-text-body); }

.bai-v2 .bai-pf-meter__head { display: flex; justify-content: space-between; font-size: 14px; color: var(--bai-text-muted); margin-bottom: 6px; }
.bai-v2 .bai-pf-meter__head strong { color: var(--bai-text); }
.bai-v2 .bai-pf-meter__bar { height: 8px; border-radius: 8px; background: var(--bai-wash-strong, rgba(255, 255, 255, .08)); overflow: hidden; }
.bai-v2 .bai-pf-meter__bar span { display: block; height: 100%; border-radius: inherit; background: var(--bai-gold); transition: width .4s var(--e-out); }
.bai-v2 .bai-pf-todo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 4px 16px; font-size: 14px; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-todo li.is-done { color: var(--bai-text-body); }
.bai-v2 .bai-pf-todo li.is-done span[aria-hidden] { color: var(--pf-ok); }

.bai-v2 .bai-pf-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.bai-v2 .bai-pf-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--bai-line-strong); color: var(--bai-text-body); text-decoration: none; font-size: 14px; font-weight: 600; }
.bai-v2 .bai-pf-toc a:hover { border-color: var(--pf-ring); color: var(--bai-text); }
.bai-v2 .bai-pf-sec { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- account: forms */
.bai-v2.bai-acct .bai-pf form { margin: 0; }
.bai-v2.bai-acct .bai-pf form :is(input[type="number"], input[type="url"], input[type="date"]) {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--bai-line-strong);
  background: var(--bai-raised, #1D2D4D); color: var(--bai-text); font: inherit; font-size: 16px; color-scheme: dark; }
.bai-v2.bai-acct .bai-pf form textarea { height: auto; min-height: 7.5em; resize: vertical; line-height: 1.55; }
.bai-v2.bai-acct .bai-pf form textarea[rows="8"] { min-height: 15em; }
.bai-v2.bai-acct .bai-pf form textarea[rows="2"], .bai-v2.bai-acct .bai-pf form textarea[rows="3"] { min-height: 5em; }
.bai-v2.bai-acct .bai-pf form input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--bai-line-strong); border-radius: var(--r-sm); color: var(--bai-text-body); font-size: 15px; background: transparent; }
.bai-v2.bai-acct .bai-pf form input[type="file"]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--bai-line-strong); background: var(--bai-wash); color: var(--bai-text); font: 600 14px/1 var(--bai-font-body); cursor: pointer; }
.bai-v2.bai-acct .bai-pf form fieldset.bai-pf-checks { margin: var(--s-2) 0; padding: 0; border: 0; background: none; }
.bai-v2.bai-acct .bai-pf form fieldset.bai-pf-checks legend { padding: 0; margin-bottom: 6px; font-size: 15px; }
.bai-v2.bai-acct .bai-pf form fieldset.bai-pf-group { margin: 0 0 var(--s-2); }
.bai-v2 .bai-pf-checks__group { margin: 12px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-checks__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 8px; }
.bai-v2.bai-acct .bai-pf label.bai-pf-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--bai-line); font-weight: 500; font-size: 15px; color: var(--bai-text-body); cursor: pointer; }
.bai-v2.bai-acct .bai-pf label.bai-pf-check:has(input:checked) { border-color: var(--pf-ring); color: var(--bai-text); }
.bai-v2 .bai-pf-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bai-gold); }
.bai-v2 .bai-pf-check input:focus-visible { outline: 2px solid var(--bai-focus); outline-offset: 2px; }
.bai-v2 .bai-pf-field .description { margin-top: 6px; }
.bai-v2 .bai-pf-count { display: block; margin-top: 4px; font-size: 13px; color: var(--bai-text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.bai-v2 .bai-pf-count.is-near { color: var(--pf-warn); }
.bai-v2 .bai-pf-bi { margin: 0 0 var(--s-1); }
.bai-v2 .bai-pf-bi__other { margin: -4px 0 var(--s-2); }
.bai-v2 .bai-pf-bi__other summary { cursor: pointer; color: var(--bai-gold-light); font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.bai-v2 .bai-pf-two, .bai-v2 .bai-pf-three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.bai-v2 .bai-pf-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bai-v2 .bai-pf-langs { display: grid; gap: 4px; }
.bai-v2 .bai-pf-langs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.bai-v2 .bai-pf-langs__row .form-row { margin-bottom: 8px !important; }
.bai-v2 .bai-pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-2); }
.bai-v2 .bai-pf-inline { display: inline-flex; margin: 0; }
.bai-v2 .bai-pf .bai-btn--text.bai-pf-btn--danger, .bai-v2 .bai-pf-btn--danger { color: var(--pf-bad) !important; }
.bai-v2 .bai-pf .bai-pf-btn--danger::after, .bai-v2 .bai-pf .bai-pf-btn--danger::before { content: none !important; display: none !important; }
.bai-v2 .bai-pf-btn--warn { color: var(--pf-warn) !important; border-color: rgba(242, 200, 121, .5) !important; }

/* photo */
.bai-v2 .bai-pf-photo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.bai-v2 .bai-pf-photo__frame { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; border: 1px solid var(--pf-ring); background: var(--bai-wash); display: grid; place-items: center; }
.bai-v2 .bai-pf-photo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.bai-v2 .bai-pf-photo__empty { font: 600 44px/1 var(--bai-font-display); color: var(--bai-gold-light); }
.bai-v2 .bai-pf-tips { margin: 0 0 var(--s-2); padding-left: 1.1rem; font-size: 14px; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-upload { display: grid; gap: 8px; justify-items: start; margin-bottom: 8px !important; }
.bai-v2 .bai-pf-upload .form-row { width: 100%; margin: 0 !important; }
.bai-v2 .bai-pf-upload__msg { font-size: 14px; color: var(--pf-warn); margin: 0; }

/* permissions */
.bai-v2 .bai-pf-consent { padding: 1rem; border-radius: var(--r-md); border: 1px solid var(--bai-line); margin-top: var(--s-2); }
.bai-v2 .bai-pf-consent.is-on { border-color: rgba(126, 217, 172, .45); }
.bai-v2 .bai-pf-consent__text { margin: 0 0 10px; font-size: 15px; color: var(--bai-text-body); }
.bai-v2 .bai-pf-consent__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bai-v2 .bai-pf-consent__row .bai-pf-chip { margin: 0; }
.bai-v2 .bai-pf-consent__row form { margin-left: auto; }
.bai-v2 .bai-pf-visibility { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--bai-line); }

/* qualifications */
.bai-v2 .bai-pf-creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bai-v2 .bai-pf-cred { padding: 1rem; border-radius: var(--r-md); border: 1px solid var(--bai-line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.bai-v2 .bai-pf-cred__main { flex: 1 1 100%; display: grid; gap: 4px; }
.bai-v2 .bai-pf-cred__edit[open] { flex: 1 1 100%; order: 3; }
.bai-v2 .bai-pf-cred .bai-pf-inline { order: 2; }
.bai-v2 .bai-pf-cred p { margin: 0; }
.bai-v2 .bai-pf-cred__kind, .bai-v2 .bai-pf-qual__kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-cred__title { font-weight: 700; color: var(--bai-text); }
.bai-v2 .bai-pf-cred__chips { margin-top: 4px !important; }
.bai-v2 .bai-pf-doc { font-size: 14px; color: var(--bai-gold-light); }
.bai-v2 .bai-pf-cred__edit summary, .bai-v2 .bai-pf-add > summary { cursor: pointer; list-style: none; }
.bai-v2 .bai-pf-cred__edit summary { color: var(--bai-gold-light); font-size: 14px; font-weight: 600; display: inline-flex; min-height: 36px; align-items: center; }
.bai-v2 .bai-pf-add > summary::-webkit-details-marker, .bai-v2 .bai-pf-cred__edit summary::-webkit-details-marker { display: none; }
.bai-v2 .bai-pf-add[open] > summary { margin-bottom: var(--s-2); }
.bai-v2 .bai-pf-credform { padding-top: 8px; }
.bai-v2 .bai-pf-students, .bai-v2 .bai-pf-progs, .bai-v2 .bai-pf-guardians { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.bai-v2 .bai-pf-progs li { display: grid; }
.bai-v2 .bai-pf-dl { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); gap: 10px 16px; margin: var(--s-2) 0; }
.bai-v2 .bai-pf-dl dt { color: var(--bai-text-muted); font-size: 14px; font-weight: 600; }
.bai-v2 .bai-pf-dl dd { margin: 0; color: var(--bai-text-body); }
.bai-v2 .bai-pf-dl dd p { margin: .3rem 0 0; }
.bai-v2 .bai-pf-preview { border: 1px dashed var(--bai-line-strong); border-radius: var(--r-lg); overflow: hidden; }

/* ---------------------------------------------------------------- directory cards */
.bai-v2 .bai-pf-dir { margin-top: var(--s-4); }
.bai-v2 .bai-pf-dir__head { max-width: 46rem; margin-bottom: var(--s-3); }
.bai-v2 .bai-pf-dir__head h3 { margin: 0 0 .4rem; }
.bai-v2 .bai-pf-dir__head p { margin: 0; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: var(--s-3); }
.bai-v2 .bai-pf-filter[hidden], .bai-v2 .bai-pf-empty[hidden] { display: none; }
.bai-v2 .bai-pf-filter__f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--bai-text-muted); min-width: min(100%, 12rem); }
.bai-v2 .bai-pf-filter select { min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--bai-line-strong); background: var(--bai-raised, #1D2D4D); color: var(--bai-text); font: inherit; font-size: 15px; color-scheme: dark; }
.bai-v2 .bai-pf-filter select:focus-visible { outline: 2px solid var(--bai-focus); outline-offset: 1px; }
.bai-v2 .bai-pf-filter__count { margin: 0 0 10px auto; font-size: 14px; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--s-3); align-items: stretch; }
.bai-v2 .bai-card.bai-pf-card { position: relative; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--d-fast) var(--e-out); }
.bai-v2 .bai-card.bai-pf-card[hidden] { display: none; }
.bai-v2 .bai-pf-card:hover { border-color: var(--pf-ring); }
.bai-v2 .bai-pf-card:focus-within { outline: 2px solid var(--bai-focus); outline-offset: 3px; }
.bai-v2 .bai-pf-card__top { display: flex; gap: 14px; align-items: center; }
.bai-v2 .bai-pf-card__img { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1px solid var(--pf-ring); }
.bai-v2 .bai-pf-card__id { min-width: 0; }
.bai-v2 .bai-pf-card__name { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.bai-v2 .bai-pf-card__link { color: var(--bai-text) !important; text-decoration: none !important; }
.bai-v2 .bai-pf-card__link:focus-visible { outline: none; }
.bai-v2 .bai-pf-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bai-v2 .bai-card .bai-pf-card__head { margin: 4px 0 0; font-size: 15px; color: var(--bai-gold-light); line-height: 1.4; }
.bai-v2 .bai-card .bai-pf-card__short { margin: 0; font-size: 15px; color: var(--bai-text-body); }
.bai-v2 .bai-pf-card__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; align-content: flex-start; flex: none; }
.bai-v2 .bai-pf-card__chips .bai-chip { min-height: 28px; font-size: 13px; }
.bai-v2 .bai-card .bai-pf-card__meta { margin: 0; font-size: 14px; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--bai-gold-light); }
.bai-v2 .bai-pf-card__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d-fast) var(--e-out); }
.bai-v2 .bai-pf-card:hover .bai-pf-card__more svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- one profile */
.bai-v2 .bai-pf-hero__grid { display: grid; grid-template-columns: clamp(180px, 22vw, 260px) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; margin-top: var(--s-3); }
.bai-v2 .bai-pf-hero__photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--pf-ring); background: var(--bai-wash); display: grid; place-items: center; }
.bai-v2 .bai-pf-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bai-v2 .bai-pf-hero__text h1 { margin: 0 0 .4rem; }
.bai-v2 .bai-pf-hero__text .bai-eyebrow { margin: 0 0 .5rem; }
.bai-v2 .bai-pf-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-2) 0 0; }
.bai-v2 .bai-pf-facts { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--bai-text-muted); font-size: 15px; }
.bai-v2 .bai-pf-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bai-gold); margin: 0 8px 2px 0; }
.bai-v2 .bai-pf-hero .bai-btn-group { margin-top: var(--s-3); }
.bai-v2 .bai-pf-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.bai-v2 .bai-pf-detail__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); min-width: 0; }
.bai-v2 .bai-pf-detail__main > * { min-width: 0; }
.bai-v2 .bai-pf-detail__side { display: grid; gap: var(--s-3); position: sticky; top: 24px; min-width: 0; }
.bai-v2 .bai-pf-block h2 { margin: 0 0 var(--s-2); }
.bai-v2 .bai-pf-lead p { font-size: 1.15rem; line-height: 1.6; color: var(--bai-text); }
.bai-v2 .bai-pf-prose { max-width: 42rem; }
.bai-v2 .bai-pf-prose p, .bai-v2 .bai-pf-lead p { margin: 0 0 1rem; }
.bai-v2 .bai-pf-qual { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bai-v2 .bai-pf-qual li { padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--bai-line); }
.bai-v2 .bai-pf-qual p { margin: 0; }
.bai-v2 .bai-pf-qual__title { font-weight: 700; color: var(--bai-text); margin-top: 2px !important; }
.bai-v2 .bai-pf-qual__org { color: var(--bai-text-muted); font-size: 15px; }
.bai-v2 .bai-pf-qual .bai-pf-checked { margin-top: 8px; font-size: 14px; }
.bai-v2 .bai-pf-side, .bai-v2 .bai-pf-next { gap: 10px; }
.bai-v2 .bai-pf-side__h { font-size: 1.15rem; margin: 0; }
.bai-v2 .bai-pf-side__h3 { font-size: 1rem; margin: var(--s-2) 0 0; color: var(--bai-text); }
.bai-v2 .bai-card .bai-pf-side p { margin: 0; font-size: 15px; }
.bai-v2 .bai-pf-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bai-v2 .bai-pf-areas a { color: var(--bai-text-body); text-decoration-color: var(--pf-ring); text-underline-offset: 3px; }
.bai-v2 .bai-pf-areas a:hover { color: var(--bai-text); }
.bai-v2 .bai-pf-langlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.bai-v2 .bai-pf-langlist li { display: flex; justify-content: space-between; gap: 12px; }
.bai-v2 .bai-pf-steps { margin: 0; padding: 0; list-style: none; counter-reset: pf; display: grid; gap: 12px; }
.bai-v2 .bai-pf-steps li { counter-increment: pf; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; font-size: 15px; }
.bai-v2 .bai-pf-steps li::before { content: counter(pf); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--bai-gold-light); border: 1px solid var(--pf-ring); position: relative; z-index: 1; }
.bai-v2 .bai-pf-steps strong { color: var(--bai-text); }
.bai-v2 .bai-pf-steps span { color: var(--bai-text-muted); }
.bai-v2 .bai-pf-next .bai-btn { justify-self: start; }
.bai-v2 .bai-pf-back { margin: var(--s-4) 0 0; }

/* video: nothing loads from YouTube/Vimeo until "play" */
.bai-v2 .bai-pf-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); border: 1px solid var(--bai-line-strong); background: var(--bai-wash); display: grid; place-items: center; align-content: center; gap: 10px; overflow: hidden; padding: 1rem; text-align: center; }
.bai-v2 .bai-pf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bai-v2 .bai-pf-video__play { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--pf-ring); background: var(--bai-gold); color: var(--bai-on-gold); font: 700 16px/1 var(--bai-font-body); cursor: pointer; }
.bai-v2 .bai-pf-video__play svg { width: 20px; height: 20px; fill: currentColor; }
.bai-v2 .bai-pf-video__play:focus-visible { outline: 2px solid var(--bai-focus); outline-offset: 3px; }
.bai-v2 .bai-pf-video__note { margin: 0; font-size: 13px; color: var(--bai-text-muted); }
.bai-v2 .bai-pf-video__note a { color: var(--bai-gold-light); }

/* ---------------------------------------------------------------- own sections (extra.php) */
.bai-v2 .bai-pf-xsec { margin: 0 0 var(--s-1); border: 1px solid var(--bai-line-strong); border-radius: var(--r-md); }
.bai-v2 .bai-pf-xsec > summary { cursor: pointer; padding: 12px 14px; min-height: 48px; display: flex; align-items: center; font-weight: 600; color: var(--bai-text); }
.bai-v2 .bai-pf-xsec > summary:focus-visible { outline: 2px solid var(--bai-focus); outline-offset: 2px; }
.bai-v2 .bai-pf-xsec__body { padding: 0 14px 14px; }
.bai-v2 .bai-pf-xhint { margin: var(--s-1) 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--bai-text-muted); }
.bai-v2.bai-acct .bai-pf-xitem { margin: 0 0 8px; }
.bai-v2 .bai-pf-xgrid { display: grid; gap: 8px; }
.bai-v2 .bai-pf-xrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bai-v2.bai-acct .bai-pf-xrow input { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.bai-v2.bai-acct .bai-pf-xrow--head input { font-weight: 700; border-color: var(--pf-ring); }
.bai-v2 .bai-pf-xlist { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; max-width: 42rem; }
.bai-v2 .bai-pf-xtable { overflow-x: auto; max-width: 100%; border: 1px solid var(--bai-line); border-radius: var(--r-md); }
.bai-v2 .bai-pf-xtable:focus-visible { outline: 2px solid var(--bai-focus); outline-offset: 2px; }
.bai-v2 .bai-pf-xtable table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 15px; }
.bai-v2 .bai-pf-xtable th, .bai-v2 .bai-pf-xtable td { padding: 10px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--bai-line); color: var(--bai-text-body); }
.bai-v2 .bai-pf-xtable th { color: var(--bai-text); font-weight: 700; background: var(--bai-wash); white-space: nowrap; }
.bai-v2 .bai-pf-xtable tr:last-child td { border-bottom: 0; }
.bai-v2 .bai-pf-xstudent { margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.bai-v2 .bai-pf-xs h3 { margin: 0 0 6px; font-size: 1.05rem; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 860px) {
  .bai-v2 .bai-pf-detail { grid-template-columns: minmax(0, 1fr); }
  .bai-v2 .bai-pf-detail__side { position: static; }
}
@media (max-width: 640px) {
  .bai-v2 .bai-pf-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .bai-v2 .bai-pf-hero__photo { width: 148px; }
  .bai-v2 .bai-pf-photo { grid-template-columns: minmax(0, 1fr); }
  .bai-v2 .bai-pf-photo__frame { width: 132px; height: 132px; }
  .bai-v2 .bai-pf-two, .bai-v2 .bai-pf-three { grid-template-columns: minmax(0, 1fr); }
  .bai-v2 .bai-pf-xgrid { overflow-x: auto; }
  .bai-v2 .bai-pf-xrow { grid-template-columns: repeat(5, minmax(8.5rem, 1fr)); }
  .bai-v2 .bai-pf-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bai-v2 .bai-pf-dl dd { margin-bottom: 10px; }
  .bai-v2 .bai-pf-consent__row form { margin-left: 0; width: 100%; }
  .bai-v2 .bai-pf-consent__row form .bai-btn { width: 100%; }
  .bai-v2 .bai-pf-actions .bai-btn { width: 100%; }
  .bai-v2 .bai-pf-filter__f { flex: 1 1 100%; }
  .bai-v2 .bai-pf-filter__count { margin-left: 0; }
  .bai-v2 .bai-pf-card__img, .bai-v2 .bai-pf-card .bai-pf-mono { width: 72px; height: 72px; }
  .bai-v2 .bai-pf-card .bai-pf-mono { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bai-v2 .bai-pf-meter__bar span, .bai-v2 .bai-pf-card__more svg, .bai-v2 .bai-card.bai-pf-card { transition: none; }
}

/* Compact directory tiles; a single profile occupies one column instead of the whole row. */
.bai-v2 .bai-pf-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),21rem)); justify-content:start; gap:20px; }
.bai-v2 .bai-card.bai-pf-card { padding:20px; gap:10px; min-width:0; height:auto; }
.bai-v2 .bai-pf-card .bai-pf-mono,.bai-v2 .bai-pf-card__img { width:56px; height:56px; font-size:20px; }
.bai-v2 .bai-pf-card__name { font-size:20px; }
.bai-v2 .bai-pf-card__short { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; line-height:1.5; }
.bai-v2 .bai-pf-card__head { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bai-v2 .bai-pf-card__meta svg,.bai-v2 .bai-pf-card__more svg { width:18px!important; height:18px!important; max-width:18px; flex:0 0 18px; }
@media(max-width:600px){.bai-v2 .bai-pf-grid{grid-template-columns:minmax(0,1fr);}.bai-v2 .bai-card.bai-pf-card{padding:18px;}}
