/* Smile4U v8 · Team template: /team/ and /team/dr-markiel-haimov/ (V8-TEMPLATES-BRIEF Builder C). Markup
   _tools/pages/team.py. Concept: the practice's staff board: the lead stands on the head's ground (cut-out 27,
   no frame, no radius), the colleagues follow as ruled name plates; the profile opens his plate up.
   Adjacency /team/: head (mist, person) / name plates (paper, ruled type) / related run / Termin band.
   Adjacency profile: head (mist, person + readout) / treatments (paper, type + link index) / foto-30 full bleed with
   the text under it / statement / related run / Termin band. Shared sections (pages.css) are placed, never restyled. */

/* ---- head: the person stands on the head's bottom edge ---- */
.page-team { --tm-bleed: max(0px, min(96px, (100vw - var(--container)) / 2 - 24px)); }
.page-team .pgh { padding-bottom: 0; }
.page-team .pgh-row { align-items: end; row-gap: 0; }
.page-team .pgh-text { align-self: start; }
.page-team .tm-fig { grid-column: 1 / -1; min-width: 0; justify-self: center; width: 78%; margin-top: 32px; }
.page-team .tm-cut { display: block; width: 100%; height: auto; }
@media (max-width: 809.98px) {
  /* the file's cut edge sits on the screen edge, never mid-panel (V8-PHONE-CROPS #3) */
  .page-team .tm-fig { justify-self: end; margin-right: calc(-1 * var(--side)); }
}
@media (min-width: 810px) {
  .page-team .pgh-text { grid-column: 1 / 7; padding-bottom: 96px; }
  /* cols 7–12 plus the right margin (never past the viewport), never taller than the window under the header */
  .page-team .tm-fig {
    grid-column: 7 / 13; grid-row: 1; justify-self: start; margin-top: 0;
    width: min(calc(100% + var(--tm-bleed)), calc(100svh - var(--nav-bottom) - 64px));
  }
}

/* /team/: the lead's entry under the lede */
.page-team .tm-lead { margin-top: var(--gap-stack); }
.page-team .tm-lead-name { font-weight: var(--fw-display); }
.page-team .tm-lead-a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 16px; color: var(--ink); text-decoration: none; }
.page-team .tm-arrow { display: inline-flex; }
.page-team .tm-arrow svg { width: .56em; height: .56em; transition: transform .45s var(--spring-enter); }
@media (hover: hover) {
  .page-team .tm-lead-a:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
  .page-team .tm-lead-a:hover .tm-arrow svg, .page-team .tm-tr-a:hover .tm-arrow svg { transform: translateX(6px); }
}
.page-team .tm-lead-role { margin-top: 8px; }
.page-team .tm-lead-langs { margin-top: 24px; }
.page-team .tm-lead-bio { margin-top: 8px; max-width: 30em; }

/* profile: the readout card under the lede (shared .sk-ro: paper rows on its own mist, here on the head's mist) */
.page-team .tm-ro { margin-top: 40px; }
.page-team .tm-ro .sk-ro { padding: 0; }
.page-team .tm-ro-a { color: inherit; text-decoration-color: var(--ink-64); }
.page-team .tm-ro-a:hover { text-decoration-color: var(--ink); }

/* ---- /team/: the name plates, ruled (CP: no cards), name at --fs-h3, role and languages beside it ---- */
.page-team .tm-roster { background: var(--paper); padding-block: 96px; }
.page-team .tm-plates { border-bottom: 1px solid var(--ink-64); }
.page-team .tm-plate {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-grid); row-gap: 4px;
  align-items: baseline; padding: 32px 0; border-top: 1px solid var(--ink-64);
}
.page-team .tm-pname { grid-column: 1 / -1; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.page-team .tm-prole, .page-team .tm-plangs { grid-column: 1 / -1; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); }
@media (min-width: 810px) {
  .page-team .tm-pname { grid-column: 1 / 7; }
  .page-team .tm-prole { grid-column: 7 / 10; }
  .page-team .tm-plangs { grid-column: 10 / 13; }
}
.page-team .tm-related { padding-top: 0; }

/* ---- profile: Was er behandelt (paper): H2 cols 1–5, paragraph and the three treatments cols 7–12 ---- */
.page-team .tm-treats .g12 { row-gap: 32px; }
.page-team .tm-tr-h { grid-column: 1 / -1; }
.page-team .tm-tr-body { grid-column: 1 / -1; min-width: 0; }
.page-team .tm-tr-p { max-width: 34em; }
.page-team .tm-tr-list { margin-top: 40px; border-bottom: 1px solid var(--ink-64); }
.page-team .tm-tr-list li { border-top: 1px solid var(--ink-64); }
.page-team .tm-tr-a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); color: var(--ink); text-decoration: none;
}
@media (hover: hover) { .page-team .tm-tr-a:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; } }
@media (min-width: 810px) {
  .page-team .tm-tr-h { grid-column: 1 / 6; }
  .page-team .tm-tr-body { grid-column: 7 / 13; }
}

/* ---- profile: Zahnarzt und Zahntechniker: foto-30 full bleed (its white ground is the room's), text under it ---- */
.page-team .tm-craft { background: var(--paper); }
.page-team .tm-craft-photo { height: auto; aspect-ratio: 4 / 5; overflow: hidden; }
.page-team .tm-craft-photo picture { display: block; height: 100%; }
.page-team .tm-craft-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; max-width: none; }   /* P: craft-foto-30-p fills the 4:5 whole */
.page-team .tm-craft-text { padding-block: 48px var(--sec-pad); row-gap: 24px; }
.page-team .tm-craft-h { grid-column: 1 / -1; }
.page-team .tm-craft-body { grid-column: 1 / -1; display: grid; gap: 16px; max-width: 34em; }
@media (min-width: 810px) {
  /* the photo's own aspect, capped at the window (a height, not aspect-ratio + max-height: that pair narrows the width) */
  .page-team .tm-craft-photo { aspect-ratio: auto; height: min(56.25vw, calc(100svh - 48px)); }
  .page-team .tm-craft-img { object-position: 50% 30%; }   /* craft-foto-30-d (1.85 : 1): the prosthesis kept in the band */
  .page-team .tm-craft-h { grid-column: 1 / 7; }
  .page-team .tm-craft-body { grid-column: 7 / 13; }
}
.page-team .tm-langs { padding-bottom: 120px; }
.page-team .tm-langs .sk-first { text-wrap: balance; }      /* two even lines, no one-word last line */
