/* Bobby S. Lee, DDS: group "bio" (meet-dr-lee.html). Owner: B5a (INTERIOR-PLAN 10.7).
   1. BIO, the doctor bio split (v2-specs/components/BIO.md; newlife-int/11 + newlife-mobile/12 + newlife-interactive/06),
      a single-builder component: this is its only implementation.
   2. meet-dr-lee page rules, scoped with body[data-page="meet-dr-lee"] (v2-specs/pages/meet-dr-lee.md).
   Tokens only; layout is pure CSS @media; no script. */

/* ================================================================ 1. BIO (.bio)
   Two vw/2 tracks, no cap, gap 0. The row is max(text cell, portrait at its natural ratio); the 4rem mat is a
   border on the <img> itself, and object-fit:cover crops the photo's sides when the text is taller. */
.bio { padding: calc(var(--chrome-h) + 0px) 0 0; }
.bio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bio__text { display: flex; justify-content: center; align-items: center; padding: 64px; }
.bio__well { width: 100%; max-width: 576px; }
.bio__name {
  max-width: 22ch; margin: 0 0 32px; font: 700 48px/60px var(--font-display); color: var(--grey-logo); text-wrap: balance;
}
/* TITLES (owner ruling 2026-09-27: titles too wide; BIO.md ADDENDUM TITLES, class A): the 800 56 / 64 name takes the
   interior H1 tier, the homepage H1 weight and ratio: 700 48/60, 40/50 at <= 900, 32/40 at <= 600, 22ch measure (17ch at <= 600) */
@media (max-width: 900px) { .bio__name { font-size: 40px; line-height: 50px; } }
.bio__cred {
  margin: 0; font: 700 14px/24.5px var(--font-body); letter-spacing: 2.8px; text-transform: uppercase;
  color: var(--grey-logo);
}
.bio__rule { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--sky-strong); }
.bio__body p { margin: 0 0 16px; font: 400 16px/28px var(--font-body); color: var(--body-ink); }
.bio__body p:last-child { margin-bottom: 0; }
.bio__body a {
  color: var(--link, var(--primary)); font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
@media (hover: hover) { .bio__body a:hover { text-decoration-thickness: 2px; } }
.bio__img {
  display: block; width: 100%; height: 100%;
  border: 4rem solid var(--sky-strong); object-fit: cover; object-position: 50% 50%;
}
.bio__assoc { grid-column: 1 / -1; padding: 64px; }
.bio__assoc-rule { border-top: 2px solid var(--sky-strong); padding-top: 32px; }
.bio__assoc-label {
  margin: 0 0 12px; font: 400 16px/28px var(--font-body); letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--card-sub);
}
.bio__assoc-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 32px; margin: 0; padding: 0; list-style: none;
}
.bio__assoc-list li {
  display: flex; align-items: center; min-height: 40px;
  font: 700 16px/20px var(--font-display); color: var(--grey-logo);
}
@media (min-width: 1920px) {
  .bio__img { border-width: 8rem; }
  .bio__well { max-width: 44rem; }
}
/* stack (BI.7): portrait first, no mat, native ratio; full-bleed on phones, a centred 640 x 800 portrait on tablets */
@media (max-width: 1119px) {
  .bio__grid { grid-template-columns: 1fr; }
  .bio__img { order: -1; width: min(100%, 640px); height: auto; margin: 0 auto; border-width: 0; }
  .bio__assoc { padding: 0 64px 64px; }
  .bio__assoc-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bio__text { padding: 32px; }
  .bio__name { max-width: 17ch; font-size: 32px; line-height: 40px; }
  .bio__assoc { padding: 0 32px 32px; }
  .bio__assoc-list { gap: 16px; }
}

/* ================================================================ 2. meet-dr-lee page rules */
/* BI.12 (steps re-cut by POLISH-C2, 2026-09-27): the real portrait's head sits right of centre (hair from x 339,
   right ear to x 757, of 928) and the coat's embroidered "BOBBY S. LEE," runs from x 719 to the photo's right edge.
   The ear overlaps the name's x range, so the name can never leave the frame without cutting the ear: where the
   frame allows it, the crop keeps the name WHOLE by pinning the photo's right edge (100%). The crop narrows with
   the viewport (the text column lengthens), so the focus steps with it:
   - 100% at >= 1250: the frame shows 599 or more source px, window left edge <= 328 (hair clear by >= 11 source
     px), name whole; 1280: window 326 to 928, face centre at 34% of the frame; 1440: 153 to 928, 49%.
   - 72% at 1200 to 1249 and 68% at 1120 to 1199: these frames show only 452 to 594 source px, too few for the
     hair and the whole name together, so the head is centred and the name is partly visible (logged). */
body[data-page="meet-dr-lee"] .bio__img { object-position: 72% 50%; }
@media (min-width: 1250px) {
  body[data-page="meet-dr-lee"] .bio__img { object-position: 100% 50%; }
}
@media (min-width: 1120px) and (max-width: 1199px) {
  body[data-page="meet-dr-lee"] .bio__img { object-position: 68% 50%; }
}

/* Tara's own photo, inset in the COLS "Outside the office" column at its native 175 x 229 (never upscaled).
   MD-P11: an 8px --sky-strong mat (content-box, so the photo itself stays 175 x 229) gives the collage's white
   corner an edge on the white band and echoes the portrait's 64px mat above. */
body[data-page="meet-dr-lee"] .tara-photo {
  float: right; display: block; box-sizing: content-box; width: 175px; height: 229px;
  border: 8px solid var(--sky-strong); margin: 4px 0 12px 24px;
}
@media (max-width: 767px) {
  body[data-page="meet-dr-lee"] .tara-photo { float: none; margin: 0 0 16px; }
}
