/* The profile page of a person, rebuilt in the family design (docs/design/FAMILY.md). discover2.js draws it
   (openClinician). It is also the public page at /u/<slug> that a patient opens without signing in.

   What the page is for: who this is, what they have published, and how to follow or reach them. One loud
   thing: the header, a band of soft light in the colour of the person's field (--h, the hue Discover gives
   that field) with a large round portrait on its lower edge. The rest is quiet: a bar that names the parts and
   stays at the top while the page scrolls, one larger post, rows with hairlines in one surface, plain labelled
   lines, a margin column. Nothing is hidden behind a segment: Posts, Videos and About are on the page one under
   the other (6 October 2026).

   Everything on the page is a real row or a real post. Tokens only (family.css); the one colour that is
   computed here is the field's own hue, always mixed into a token. */

#main-content > [data-viewpanel="publicclin"] { max-width: 1120px !important; margin-left: auto; margin-right: auto; }

/* the light of the band: the field's hue, its neighbour and the brand, over the card's own paper */
.pf, .pf-mini { --h: 235;
  --pf-base: color-mix(in oklch, oklch(.5 .13 var(--h)) 46%, var(--color-card));
  --pf-a: color-mix(in oklch, oklch(.7 .2 var(--h)) 58%, transparent);
  --pf-b: color-mix(in oklch, oklch(.62 .19 calc(var(--h) - 38)) 50%, transparent);
  --pf-c: color-mix(in oklch, var(--color-brand) 44%, transparent);
  --pf-word: color-mix(in oklch, oklch(.94 .06 var(--h)) 12%, transparent);
  --pf-spot: color-mix(in oklch, oklch(.82 .14 var(--h)) 26%, transparent); }
html.light .pf, html.light .pf-mini {
  --pf-base: color-mix(in oklch, oklch(.84 .1 var(--h)) 36%, var(--color-card));
  --pf-a: color-mix(in oklch, oklch(.8 .15 var(--h)) 72%, transparent);
  --pf-b: color-mix(in oklch, oklch(.85 .12 calc(var(--h) + 42)) 62%, transparent);
  --pf-c: color-mix(in oklch, var(--color-brand) 24%, transparent);
  --pf-word: color-mix(in oklch, oklch(.5 .17 var(--h)) 13%, transparent);
  --pf-spot: color-mix(in srgb, var(--color-card) 58%, transparent); }
.pf { display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; color: var(--color-foreground); }
.pf :where(button, a) { font: inherit; color: inherit; }
.pf :where(button, a.pf-row, a.pf-chip, a.pf-peer__who) { text-align: left; }
.pf :where(h1, h2, h3, p, ul, dl, dd) { margin: 0; }
.pf :where(ul) { padding: 0; list-style: none; }
.pf [hidden] { display: none !important; }
.pf :where(button, a, [role="button"]):focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }

/* ── the top: the way back inside the app; the small mark and the door for a visitor ── */
.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 36px; margin-bottom: -6px; }
.pf-back { display: inline-flex; align-items: center; gap: 7px; height: 36px; margin-left: -10px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); transition: color .15s var(--ease-out), background-color .15s var(--ease-out); }
.pf-back i { font-size: 16px; }
.pf-back:hover { color: var(--color-foreground); background: var(--oryn-surface-hover); }
.pf-own { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted-foreground); }
.pf-own i { font-size: 15px; }
.pf-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.pf-brand__mark { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--color-primary-foreground); }
.pf-brand__mark i { font-size: 17px; }
.pf-brand__mark--s { width: 18px; height: 18px; border-radius: 6px; }
.pf-brand__mark--s i { font-size: 12px; }
.pf-door { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14px; font-weight: 600; transition: border-color .16s var(--ease-out), color .16s var(--ease-out); }
.pf-door:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); }

/* ── the header: the band of light, the portrait on its edge, the name, the facts, the actions ── */
.pf-head { position: relative; padding: 8px 8px 0; border: 1px solid var(--frost-line); border-radius: 28px; background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow); }
/* the band is a rounded piece of light inside the card; the portrait sits on its lower edge */
.pf-band { position: relative; height: 140px; overflow: hidden; border-radius: 20px; container-type: inline-size;
  background:
    radial-gradient(54% 150% at 6% -10%, var(--pf-a), transparent 70%),
    radial-gradient(46% 130% at 54% 120%, var(--pf-b), transparent 70%),
    radial-gradient(46% 150% at 100% -10%, var(--pf-c), transparent 72%),
    var(--pf-base);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-foreground) 5%, transparent); }
/* a soft light follows the pointer across the band (discover2.js sets --mx and --my) */
.pf-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--pf-spot), transparent 72%); opacity: 0; transition: opacity .45s var(--ease-out); pointer-events: none; }
@media (hover: hover) { .pf-head:hover .pf-band::after { opacity: 1; } }
/* the field, set large and faint, the way a cover in Discover sets its topic */
.pf-band__word { position: absolute; right: 3.2%; bottom: -.13em; font-size: clamp(46px, 9.4cqw, 104px); font-weight: 650; letter-spacing: -.045em; line-height: 1; color: var(--pf-word); white-space: nowrap; user-select: none; }
.pf-headrow { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; column-gap: 24px; align-items: start; padding: 0 22px 26px 24px; }
.pf-portrait { position: relative; display: block; width: 112px; height: 112px; margin-top: -56px; border-radius: 50%; }
.pf-portrait__in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 5px var(--color-card), 0 0 0 6px var(--frost-line), var(--frost-shadow); }
.pf-portrait__in > * { width: 100% !important; height: 100% !important; border-radius: 50%; }
.pf-portrait__in > img { border: 0; object-fit: cover; }
.pp2-photobtn { position: absolute; right: 0; bottom: 0; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--frost-line); border-radius: 50%; background: var(--color-card); box-shadow: var(--frost-shadow); color: var(--oryn-text-2); opacity: 0; transition: opacity .18s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out); }
.pp2-photobtn i { font-size: 15px; }
.pf-portrait:hover .pp2-photobtn, .pp2-photobtn:focus-visible { opacity: 1; }
.pp2-photobtn:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); }
/* initials have no larger version to open */
.pf-portrait:not(:has(img)) .pp2-photobtn { display: none; }
@media (hover: none) { .pp2-photobtn { opacity: 1; } }

.pf-id { min-width: 0; padding-top: 18px; }
.pf-name { font-size: clamp(28px, 2.4vw, 33px); font-weight: 600; letter-spacing: -.022em; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.pp2-degree { font-size: .58em; font-weight: 500; letter-spacing: 0; color: var(--color-muted-foreground); white-space: nowrap; }
/* a Specialty Editor's role under the name, and the board line beneath it when the check is recorded (20 November 2026) */
.pf-editor { margin-top: 8px; }
.pf-editor__role { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--color-foreground); }
.pf-editor__role .bs-og-chip { min-height: 32px; font-size: 15px; color: var(--color-foreground); }
.pf-editor__role > i { flex: none; font-size: 17px; color: var(--color-muted-foreground); }
.pf-editor__board { margin-top: 2px; padding-left: 23px; font-size: 14px; line-height: 1.4; color: var(--color-muted-foreground); }
.pf-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--oryn-text-2); }
.pf-facts > span { display: inline-flex; min-width: 0; align-items: center; gap: 6px; }
.pf-facts > span > i { flex: none; font-size: 16px; color: var(--color-muted-foreground); }
.pf-mark { height: 26px; padding: 0 11px 0 8px; border-radius: 999px; background: var(--frost-well); font-size: 12.5px; font-weight: 600; color: var(--oryn-text-2); white-space: nowrap; }
.pf-facts > .pf-mark > i { font-size: 15px; color: inherit; }
.pf-mark.is-verified { background: var(--brand-soft); color: var(--color-brand-ink); }
/* a demonstration page: the mark beside the showcase mark; the blocks say it in a line */
.pf-mark--demo { background: color-mix(in srgb, var(--brand-soft) 70%, transparent); color: var(--color-brand-ink); }
.pf-demo { margin-bottom: 6px; }
.pf-mark.is-verified > i { color: var(--color-brand); }
/* the small facts under the name: how long in practice, the languages, since when */
.pf-brief { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--color-muted-foreground); }
.pf-brief > span { display: inline-flex; min-width: 0; align-items: center; gap: 6px; }
.pf-brief > span > i { flex: none; font-size: 15px; }
.pp2-hsub { max-width: 64ch; margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--color-muted-foreground); text-wrap: pretty; }

.pf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 520px; padding-top: 18px; }
.pf-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14.5px; font-weight: 600; color: var(--color-foreground); white-space: nowrap; cursor: pointer; transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out), box-shadow .32s var(--ease-out); }
.pf-btn i { font-size: 17px; }
.pf-btn:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); box-shadow: var(--frost-rim), var(--frost-shadow); }
.pf-btn--fill, .pf .follow-btn.pf-follow:not(.is-following) { border-color: transparent; background: var(--color-brand); color: var(--color-primary-foreground); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-primary-foreground) 24%, transparent), 0 8px 18px -10px var(--color-brand); }
.pf-btn--fill:hover, .pf .follow-btn.pf-follow:not(.is-following):hover { background: var(--color-brand-hover); color: var(--color-primary-foreground); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-primary-foreground) 28%, transparent), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
.pf .follow-btn.pf-follow { height: 44px; min-width: 118px; padding: 0 20px; font-size: 14.5px; font-weight: 600; }
.pf .follow-btn.pf-follow.is-following { border-color: transparent; background: var(--brand-soft); color: var(--color-brand-ink); }
.pf-icon { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--frost-line); border-radius: 50%; background: var(--frost-strong); box-shadow: var(--frost-rim); color: var(--oryn-text-2); cursor: pointer; transition: border-color .16s var(--ease-out), color .16s var(--ease-out), box-shadow .32s var(--ease-out); }
.pf-icon i { font-size: 19px; }
.pf-icon:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); box-shadow: var(--frost-rim), var(--frost-shadow); }
.pf-icon--plain { border-color: transparent; background: transparent; box-shadow: none; }

/* the bar under the header: the names of the parts, and the real numbers beside them. It stays at the top while the
   page scrolls (the parts are all on the page, one under the other). Once stuck the numbers step aside and the row of
   names slides to the middle as a small island of frosted glass (discover2.js writes --pf-shift, the distance to the
   middle), so only the names ride along with the reader. */
.pf { --pf-bar-h: 48px; }
.pf-bar { position: sticky; top: calc(var(--frame) + var(--top-h) - 4px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; min-height: var(--pf-bar-h); }
html.pf-public .pf-bar { top: calc(var(--frame) + 8px); }
.pf-stats { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 4px; transition: opacity .28s var(--ease-out), translate .42s var(--ease-out); }
.pf-bar.is-stuck .pf-stats { opacity: 0; translate: 0 -6px; pointer-events: none; }
.pf-stats li { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13.5px; color: var(--color-muted-foreground); }
.pf-stats b { font-size: 20px; font-weight: 600; letter-spacing: -.012em; font-variant-numeric: tabular-nums; color: var(--color-foreground); }

/* the claim prompt of a page nobody has claimed: one sentence, one button */
.pf-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 14px 14px 18px; border: 1px solid color-mix(in srgb, var(--color-brand) 22%, var(--frost-line)); border-radius: 22px; background: color-mix(in srgb, var(--brand-soft) 62%, transparent); box-shadow: var(--frost-rim); }
.pf-claim__ic { display: grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--color-card); color: var(--color-brand); }
.pf-claim__ic i { font-size: 18px; }
.pf-claim__text { flex: 1 1 260px; min-width: 0; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.pf-claim .pf-btn { text-decoration: none; }

/* ── the names of the parts: a row of pills; the raised piece sits under the part the reader is in ── */
.pf-seg { position: relative; display: inline-flex; max-width: 100%; padding: 4px; overflow-x: auto; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--color-muted); scrollbar-width: none; --pf-shift: 0px; translate: 0 0; transition: translate .48s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .42s var(--ease-out); }
.pf-seg::-webkit-scrollbar { display: none; }
/* stuck: an island of frosted glass in the middle of the bar, the page showing through it */
.pf-bar.is-stuck .pf-seg { translate: var(--pf-shift) 0; border-color: var(--float-line); background: var(--frost-float); box-shadow: var(--frost-rim), var(--frost-pop); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
/* a press lifts the row a little while the page travels, and it settles (discover2.js, goPart) */
.pf-seg.is-going { translate: 0 -3px; }
.pf-bar.is-stuck .pf-seg.is-going { translate: var(--pf-shift) -3px; }
.pf-seg button { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; gap: 7px; height: 38px; padding: 0 17px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); white-space: nowrap; cursor: pointer; transition: color .2s var(--ease-out); }
.pf-seg button:hover, .pf-seg button[aria-current="true"] { color: var(--color-foreground); }
/* the count rides in the pill only where the numbers beside the bar have no room (the phone) */
.pf-seg small { display: none; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.pf-seg button[aria-current="true"] small { color: var(--color-brand-ink); }
.pf-seg .tab-ind { border-radius: 999px; }

/* ── the two columns: what was published, and a quiet margin ── */
.pf-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 44px; align-items: start; }
.pf-main { min-width: 0; }
.pf-part + .pf-part { margin-top: 44px; }
.pf-part > section + section { margin-top: 30px; }
.pf-sechead { margin-bottom: 14px; }
.pf-sechead--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pf-h2 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.pf-h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.pf-sub { font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); }
.pf-sechead .pf-h2 + .pf-sub { margin-top: 3px; }
.pf-center { text-align: center; }

/* the post that leads */
.pf-lead { position: relative; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 22px; padding: 14px; border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow); transition: border-color .18s var(--ease-out), box-shadow .32s var(--ease-out); }
.pf-lead .dx-cover { align-self: start; aspect-ratio: 16 / 11; border-radius: 16px; }
.pf-lead .dx-cover__word { font-size: clamp(15px, 10.5cqw, 46px); overflow-wrap: normal; }
.pf-lead__body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 8px 10px 8px 0; }
.pf-lead--plain { grid-template-columns: minmax(0, 1fr); padding: 22px 24px; }
.pf-lead--plain .pf-lead__body { padding: 0; }
.pf-tag { display: inline-flex; align-items: center; height: 24px; margin-bottom: 12px; padding: 0 10px; border-radius: 999px; background: var(--brand-soft); font-size: 12px; font-weight: 600; color: var(--color-brand-ink); }
.pf-lead__title { font-size: 22px; font-weight: 600; letter-spacing: -.018em; line-height: 1.22; text-wrap: balance; }
.pf-lead__title :is(a, button) { display: inline-block; cursor: pointer; }   /* a button drawn inline is one box, and so is the link that took its place */
/* the whole piece is the button: its title stretches over it */
.pf-lead__title :is(a, button)::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.pf-lead__title :is(a, button):focus-visible { outline: 0; }
.pf-lead__title :is(a, button):focus-visible::after { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.pf-lead__sum { display: -webkit-box; margin-top: 10px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 15px; line-height: 1.55; color: var(--oryn-text-2); text-wrap: pretty; }
/* why it matters, when the post says so (the old page's featured block had it) */
.pf-lead__why { display: -webkit-box; margin-top: 10px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 14px; line-height: 1.5; color: var(--oryn-text-2); text-wrap: pretty; }
.pf-lead__why b { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: var(--color-muted-foreground); }
.pf-lead .pf-meta { margin-top: auto; padding-top: 14px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; line-height: 1.5; color: var(--color-muted-foreground); }
.pf-meta > span { min-width: 0; overflow-wrap: anywhere; }
@media (hover: hover) {
  .pf-lead:hover { border-color: var(--oryn-border-hover); box-shadow: var(--frost-rim), var(--frost-shadow-up); }
  .pf-lead:hover .dx-cover img { scale: 1.035; }
}

/* the rest: rows with hairlines inside one surface */
.pf-list { padding: 6px; border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow); }
.pf-list > li + li::before { content: ''; display: block; height: 1px; margin: 0 14px 0 116px; background: var(--frost-line); }
.pf-row { display: grid; width: 100%; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 18px; padding: 10px 16px 10px 10px; border-radius: 18px; cursor: pointer; transition: background-color .18s var(--ease-out); }
.pf-row:hover { background: var(--oryn-surface-hover); }
.pf-row .dx-cover { width: 88px; aspect-ratio: 4 / 3; border-radius: 12px; }
.pf-row:hover .dx-cover img { scale: 1.05; }
.pf-row--plain { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
.pf-list > li:has(.pf-row--plain) + li::before, .pf-list > li + li:has(.pf-row--plain)::before { margin-left: 16px; }
.pf-row__txt { display: block; min-width: 0; }
.pf-row__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 550; line-height: 1.34; letter-spacing: -.006em; }
.pf-row .pf-meta { margin-top: 5px; }
.pf-more { display: flex; align-items: center; justify-content: center; height: 42px; margin: 14px auto 0; padding: 0 20px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .16s var(--ease-out), color .16s var(--ease-out); }
.pf-more:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); }

/* ── videos: the two shelves ──
   The chips (the stages of the patient's journey) and, under them, one shelf per shape. The vertical clips sit in a
   rail that scrolls sideways, each card the shape of a phone with its title on the picture; the widescreen videos sit
   in a grid, each card the shape of a screen with its title under it. Every card shows the video's own first frame over
   a cover in the field's hue, previews without sound under the pointer, and opens the viewer. The words on a picture
   and the veil under them are light words over the dark frost ink in both themes (the toast's own colours). */
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-sechead + .pf-chips, .pp2-unclaimed-label + .pf-chips { margin-bottom: 18px; }
.pf-chip { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 36px; min-height: 0; padding: 0 14px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 13.5px; font-weight: 500; color: var(--oryn-text-2); white-space: nowrap; cursor: pointer; transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out); }
.pf-chip small { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.pf-chip:hover { border-color: var(--oryn-border-hover); color: var(--color-foreground); }
.pf-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--color-brand) 45%, transparent); background: var(--brand-soft); box-shadow: none; color: var(--color-brand-ink); font-weight: 600; }
.pp2-unclaimed-label { max-width: 72ch; margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--oryn-text-2); text-wrap: pretty; }
.pp2-unclaimed-label strong { font-weight: 600; color: var(--color-foreground); }
.pf-empty { padding: 30px 20px; border: 1px dashed var(--frost-line); border-radius: 22px; text-align: center; font-size: 14.5px; line-height: 1.55; color: var(--color-muted-foreground); text-wrap: pretty; }

/* finding one video among many (19 November 2026): a search over the doctor's videos and one chip per condition beside the
   stages, on a page with seven videos or more. The field is the chips' own frost; the count and the empty line are plain
   words under it. The chips wrap; a thin gap separates the conditions from the stages. */
.pv-find { margin: 0 0 14px; }
.pv-find__box { position: relative; display: flex; align-items: center; gap: 10px; max-width: 520px; height: 46px; padding: 0 6px 0 16px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); color: var(--color-muted-foreground); cursor: text; transition: border-color .16s var(--ease-out); }
.pv-find__box:focus-within { border-color: color-mix(in srgb, var(--color-brand) 45%, transparent); }
.pv-find__box > .ph { flex: none; font-size: 18px; }
.pv-find__input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--color-foreground); outline: 0; }
.pv-find__input::placeholder { color: var(--color-muted-foreground); }
.pv-find__clear { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--oryn-text-2); cursor: pointer; }
.pv-find__clear:hover { color: var(--color-foreground); }
.pv-find__clear[hidden] { display: none; }
.pv-find + .pf-chips { margin-bottom: 18px; }
.pv-chipgap { flex: none; width: 1px; height: 22px; margin: 7px 4px; background: var(--frost-line); }
.pv-find__count { margin: -6px 0 14px; font-size: 13.5px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.pv-find__count:empty { display: none; }
.pv-find__none { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 18px; }
.pv-find__none[hidden] { display: none; }
.pv-find__none p { font-size: 14.5px; color: var(--oryn-text-2); }
.pv-said { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--color-muted-foreground); }
.pv-said[hidden] { display: none; }
.pv-more { gap: 8px; margin-top: 22px; }
.pv-more[hidden] { display: none; }

.pv { --pv-ink: var(--color-foreground); --pv-veil: var(--frost-ink); display: flex; flex-direction: column; gap: 34px; min-width: 0; }
html.light .pv { --pv-ink: var(--color-card); }
.pv-sec { position: relative; min-width: 0; }
.pv-sec__head { margin-bottom: 14px; }
.pv-sec__title { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }   /* a shelf's name: third level, under the section's own title */
.pv-sec__head .pv-sec__title + .pf-sub { margin-top: 2px; }

/* the rail: the clips side by side, snapping to each card, bleeding past the column by the card's lift so a raised
   card and its shadow are never cut */
.pv-railwrap { position: relative; }
.pv-rail { margin: -10px -10px -12px; padding: 10px 10px 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pv-rail::-webkit-scrollbar { display: none; }
.pv-track { display: flex; gap: 14px; width: max-content; }
.pv-item { min-width: 0; }
.pv-item--tall { flex: 0 0 196px; width: 196px; scroll-snap-align: start; }
/* the grid: the widescreen videos, three to a row where there is room */
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 24px 18px; }

/* the card: the frame it shows is the video's own shape */
.pp2-reel-card { position: relative; display: block; overflow: hidden; border: 1px solid var(--frost-line); border-radius: 20px; box-shadow: var(--frost-rim), var(--frost-shadow); cursor: pointer; }
.pv-card { aspect-ratio: 16 / 9; background: var(--color-muted); isolation: isolate; }
.pv-item--tall .pv-card { aspect-ratio: 9 / 16; border-radius: 18px; }
.pf-reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background:
  radial-gradient(90% 70% at 14% 8%, color-mix(in oklch, oklch(.82 .13 var(--h)) 70%, transparent), transparent 72%),
  linear-gradient(160deg, color-mix(in oklch, oklch(.74 .15 var(--h)) 38%, var(--color-card)), color-mix(in oklch, oklch(.66 .16 calc(var(--h) + 36)) 46%, var(--color-card))); }
/* the still: the first frame, over the cover, once it has arrived */
.pv-still { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); }
.pv-card.has-still .pv-still { opacity: 1; }
.pf-reel__kind { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--frost-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; color: var(--color-foreground); }
.pv-len { position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 3px 7px; border-radius: 7px; background: var(--frost-ink); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--pv-ink); font-variant-numeric: tabular-nums; transition: opacity .18s var(--ease-out); }
.pv-item--tall .pv-len { top: 10px; right: 10px; bottom: auto; }
.pf-reel__play { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--color-card); box-shadow: var(--frost-shadow-up); color: var(--color-foreground); translate: -50% -50%; transition: opacity .18s var(--ease-out); }
.pf-reel__play i { margin-left: 2px; font-size: 19px; }
/* a tall card: the title on the picture, over a veil that rises from the foot */
.pv-item--tall .pv-card::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, var(--pv-veil), transparent 54%); pointer-events: none; }
.pv-copy { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; gap: 4px; color: var(--pv-ink); }
.pv-copy__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -.008em; text-wrap: balance; }
.pv-copy small { font-size: 12px; opacity: .78; }
/* under a wide card: the title and the facts */
.pf-reel__body { padding: 11px 2px 0; }
.pf-reel__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14.5px; font-weight: 550; line-height: 1.34; }
.pf-reel__meta { margin-top: 3px; font-size: 12.5px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.pf-reel__meta:empty { display: none; }
.pp2-vfoot { padding: 2px 2px 0; }
.pv-item--tall .pp2-vfoot { padding-top: 6px; }
.pv-item--tall .pp2-vfoot .bs-og-chip { min-height: 36px; }
/* under the pointer (22 November 2026, the owner: the hover in and out was not calm): the card does not move and its
   frame does not change. Once the pointer has rested a quarter of a second the moving picture fades in over the still
   (220 ms) and the play button and the length fade back; when it leaves, the picture fades out (180 ms) and the still is
   there again. Keyboard focus is a clean ring only. No preview on a touch screen or with reduced motion (wireShelf). */
.pp2-reel-card:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; }
.pv-card .pv-live { z-index: 1; opacity: 0; transition: opacity .18s var(--ease-out); }
.pv-card.has-live .pv-live { opacity: 1; transition-duration: .22s; }
.pv-card.has-live .pf-reel__play, .pv-card.has-live .pv-len { opacity: 0; transition-duration: .22s; }
/* the quiet hint that a video can be heard in other languages */
.pv-langs { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pv-langs i { font-size: 13px; }
.pv-copy .pv-langs { font-size: 12px; opacity: .78; }
.pv-dot { display: inline-block; width: 3px; height: 3px; margin: 0 7px 2px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }

/* the arrows of the rail: round, at its edges, only where there is a pointer, and each gone at its own end */
.pv-arrow { position: absolute; top: calc(50% - 22px); z-index: 5; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--frost-line); border-radius: 50%; background: var(--frost-float); box-shadow: var(--frost-rim), var(--frost-pop); color: var(--color-foreground); opacity: 0; cursor: pointer; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); transition: opacity .22s var(--ease-out), scale .22s var(--ease-out), color .16s var(--ease-out); }
.pv-arrow i { font-size: 18px; }
.pv-arrow--prev { left: -14px; }
.pv-arrow--next { right: -14px; }
.pv-arrow:hover { color: var(--color-brand-ink); scale: 1.06; }
.pv-arrow:active { scale: .96; }
@media (hover: hover) { .pv-railwrap:hover .pv-arrow, .pv-arrow:focus-visible { opacity: 1; } }
.pv-railwrap.at-start .pv-arrow--prev, .pv-railwrap.at-end .pv-arrow--next, .pv-railwrap.no-scroll .pv-arrow { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .pv-arrow { display: none; } }

/* ── the viewer: one video large, in its own shape (22 November 2026) ──
   A sheet sized to the video over a calm veil. The stage is the picture's own ratio (--pv-ar, written by the script from
   the video), so the whole frame shows: never cropped, never on a band. Wide: the video takes the sheet's width up to
   about two thirds of the window's height, the words under it. Tall: the video on the left, up to 80% of the height, the
   words beside it. One slim bar: the count with its arrows, and Close. */
#modalClinVideo .modal-backdrop { background: color-mix(in srgb, var(--canvas) 72%, transparent); }
#modalClinVideo .modal-panel.pv-viewer { --pv-ar: 16 / 9; --pv-bar-h: 56px; display: flex; flex-direction: column; width: min(1040px, calc(100vw - 48px), calc(68vh * var(--pv-ar))); min-width: min(560px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; overflow: hidden; border-radius: 22px; background: var(--color-card); }
.pv-viewer__bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; height: var(--pv-bar-h); padding: 0 10px 0 12px; }
.pv-viewer__steps { display: inline-flex; align-items: center; gap: 2px; }
.pv-viewer__count { min-width: 64px; text-align: center; font-size: 13.5px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.pv-viewer__count[hidden] { display: none; }
.pv-viewer__step, .pv-viewer__close { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--oryn-text-2); cursor: pointer; transition: background-color .15s var(--ease-out), color .15s var(--ease-out), opacity .15s var(--ease-out); }
.pv-viewer__step { width: 40px; }
.pv-viewer__step i, .pv-viewer__close i { font-size: 18px; }
.pv-viewer__close { padding: 0 14px 0 11px; font-size: 14px; }
.pv-viewer__step:hover, .pv-viewer__close:hover { background: var(--oryn-surface-hover); color: var(--color-foreground); }
.pv-viewer__step:active, .pv-viewer__close:active { scale: .96; }
.pv-viewer__step:disabled { opacity: .3; cursor: default; }
.pv-viewer__step:disabled:hover { background: transparent; color: var(--oryn-text-2); }
.pv-viewer__step:focus-visible, .pv-viewer__close:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 0; }
.pv-viewer__body { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* the stage: exactly the picture's shape; the player fills it and shows the whole frame */
.pv-viewer__stage { position: relative; flex: none; width: 100%; aspect-ratio: var(--pv-ar); min-width: 0; overflow: hidden; }
.pv-viewer__stage .bsp, .pv-viewer__video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.pv-viewer__stage .bsp::after { box-shadow: none; }
/* the player's idle line at the foot of the picture is the feed's; in the viewer the player's own bar says how far */
.pv-viewer__stage .bsp::before { display: none; }
.pv-viewer__video { display: block; object-fit: contain; background: none; }
/* the words: the title block on the left, the actions on the right; the note at the foot across both */
.pv-viewer__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 24px; min-width: 0; padding: 20px 24px 22px; }
.pv-viewer__words { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.pv-viewer__kicker { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 13px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.pv-viewer__kicker span + span { position: relative; }
.pv-viewer__kicker span + span::before { content: ''; position: absolute; top: 50%; left: -8px; width: 3px; height: 3px; margin-top: -1px; border-radius: 50%; background: currentColor; opacity: .5; }
.pv-viewer__title { font-size: 22px; font-weight: 600; letter-spacing: -.016em; line-height: 1.25; text-wrap: balance; }
.pv-viewer__origin { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 2px; }
.pv-viewer__origin .bs-og-chip { min-height: 32px; }
.pv-viewer__ai { font-size: 13px; color: var(--color-muted-foreground); }
.pv-viewer__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.pv-viewer__link { height: 40px; padding: 0 16px 0 14px; font-size: 14px; }
.pv-viewer__note { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--frost-line); font-size: 12.5px; line-height: 1.5; color: var(--color-muted-foreground); text-wrap: pretty; }
/* a tall video: the stage on the left at its own ratio, the words beside it, from the top */
#modalClinVideo .modal-panel.pv-viewer--tall { width: auto; min-width: 0; }
.pv-viewer--tall .pv-viewer__body { flex-direction: row; overflow: hidden; }
.pv-viewer--tall .pv-viewer__stage { width: auto; height: min(80vh, 760px, calc(100vh - 48px - var(--pv-bar-h))); }
.pv-viewer--tall .pv-viewer__side { display: flex; flex-direction: column; align-items: stretch; gap: 18px; width: 340px; padding: 4px 24px 24px; overflow-y: auto; }
.pv-viewer--tall .pv-viewer__actions { justify-content: flex-start; }
.pv-viewer--tall .pv-viewer__note { margin-top: auto; }
.pv-viewer--tall .pv-viewer__title { font-size: 23px; }

/* Languages: the button says the language playing; its choices open as a small panel anchored to it, over the sheet */
.pv-lang { position: relative; display: flex; }
.pv-lang__btn { height: 40px; padding: 0 14px; font-size: 14px; }
.pv-lang__now { font-weight: 500; color: var(--color-muted-foreground); }
.pv-lang__now::before { content: ''; display: inline-block; width: 1px; height: 14px; margin: 0 8px 0 2px; background: var(--frost-line); vertical-align: -2px; }
.pv-lang__caret { font-size: 13px !important; color: var(--color-muted-foreground); }
.pv-lang__panel { position: fixed; top: 0; left: 0; z-index: 40; display: flex; flex-direction: column; gap: 4px; width: 288px; max-height: min(440px, calc(100vh - 24px)); padding: 6px; overflow-y: auto; border: 1px solid var(--frost-line); border-radius: 16px; background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-pop); }
.pv-lang__panel[hidden], .pv-lang__col[hidden] { display: none; }
.pv-lang__col { min-width: 0; }
.pv-lang__col + .pv-lang__col { margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--frost-line); }
.pv-lang__h { display: flex; align-items: center; gap: 6px; padding: 6px 10px 4px; font-size: 12.5px; font-weight: 500; color: var(--color-muted-foreground); }
.pv-lang__h i { font-size: 14px; }
.pv-lang__opt { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 10px; border-radius: 10px; text-align: left; color: var(--color-foreground); cursor: pointer; transition: background-color .12s var(--ease-out); }
.pv-lang__opt span { display: flex; min-width: 0; flex-direction: column; }
.pv-lang__opt b { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pv-lang__opt small { font-size: 12px; line-height: 1.35; color: var(--color-muted-foreground); }
.pv-lang__opt i { flex: none; font-size: 16px; opacity: 0; }
.pv-lang__opt[aria-pressed="true"] i { opacity: 1; }
.pv-lang__opt:hover, .pv-lang__opt:focus-visible { background: var(--oryn-surface-hover); }
.pv-lang__opt:focus-visible { outline: 2px solid var(--color-ring); outline-offset: -2px; }
.pv-lang__scrim { display: none; }
/* the synthetic-media line on the picture, in full screen only, where the words under the stage are not */
.pv-dubmark { display: none; }
.bsp:fullscreen .pv-dubmark, .bsp:-webkit-full-screen .pv-dubmark { position: absolute; top: 14px; left: 14px; z-index: 6; display: block; max-width: min(70%, 460px); padding: 6px 10px; border-radius: 10px; background: var(--frost-ink); color: var(--pv-ink); pointer-events: none; }
.pv-dubmark .bs-ai { margin: 0; color: inherit; }

/* a narrow window: the words stack, the actions under the title */
@media (max-width: 759.98px) {
  .pv-viewer__side { grid-template-columns: minmax(0, 1fr); }
  .pv-viewer__actions { justify-content: flex-start; }
  #modalClinVideo .modal-panel.pv-viewer--tall { width: min(440px, calc(100vw - 40px)); }
  .pv-viewer--tall .pv-viewer__body { flex-direction: column; overflow-y: auto; }
  .pv-viewer--tall .pv-viewer__stage { width: 100%; height: auto; max-height: 62vh; }
  .pv-viewer--tall .pv-viewer__side { width: auto; padding: 18px 20px 22px; overflow: visible; }
}
/* a phone: the sheet is the whole screen, a slim bar, the video edge to edge at the top, the words under it with a 20px
   gutter; Languages is a sheet from the foot */
@media (max-width: 639.98px) {
  #modalClinVideo { padding: 0; place-items: stretch; }
  #modalClinVideo .modal-panel.pv-viewer, #modalClinVideo .modal-panel.pv-viewer--tall { --pv-bar-h: 52px; width: 100vw; min-width: 0; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .pv-viewer__bar { padding: 0 6px 0 8px; }
  .pv-viewer__close { height: 44px; }
  .pv-viewer__step { width: 44px; height: 44px; }
  .pv-viewer--tall .pv-viewer__stage { width: 100%; height: min(70dvh, calc(100vw / (var(--pv-ar)))); max-height: none; aspect-ratio: auto; }
  .pv-viewer__side, .pv-viewer--tall .pv-viewer__side { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
  .pv-viewer__title, .pv-viewer--tall .pv-viewer__title { font-size: 20px; }
  .pv-viewer__link, .pv-lang__btn { height: 44px; }
  .pv-lang.is-sheet .pv-lang__scrim { position: fixed; inset: 0; z-index: 39; display: block; background: color-mix(in srgb, var(--canvas) 55%, transparent); }
  .pv-lang.is-sheet:not(.is-open) .pv-lang__scrim { display: none; }
  .pv-lang.is-sheet .pv-lang__panel { top: auto !important; right: 0; bottom: 0; left: 0 !important; width: auto; max-height: 72vh; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .pv-lang.is-sheet .pv-lang__opt { min-height: 48px; }
}

/* ── about: plain labelled lines ── */
.pf-about { max-width: 720px; }
.pf-about .pf-h2 { margin-bottom: 12px; }
/* the About, larger and in the page's own ink (Jeremy, 20 October 2026: grey and small was hard to read) */
.pf-bio { max-width: 64ch; font-size: 17.5px; line-height: 1.65; color: var(--color-foreground); text-wrap: pretty; }
.pf-bio + .pf-bio { margin-top: 8px; }
.pf-lines { margin-top: 20px; border-bottom: 1px solid var(--frost-line); }
.pf-about .pf-h2 + .pf-lines { margin-top: 4px; }
.pf-line { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--frost-line); }
.pf-line dt { font-size: 13.5px; line-height: 1.6; color: var(--color-muted-foreground); }
.pf-line dd { min-width: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.pf-line__note { display: block; max-width: 60ch; margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--color-muted-foreground); }
.pf-check { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
.pf-check i { font-size: 14px; color: var(--color-brand); }
/* a link out of the app (the doctor's website, their LinkedIn page): it reads as a link and says it leaves */
.pf-out { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--color-brand-ink, var(--color-brand)); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.pf-out i { flex: none; font-size: 14px; }
.pf-out:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-out:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 6px; }
.pf-note { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--color-muted-foreground); }

/* ── the margin: the appointment, topics, other clinicians ── */
.pf-side { display: flex; min-width: 0; flex-direction: column; gap: 30px; }
/* the appointment, back from the old page: the practice's facts, one button, on a verified page only */
.pf-book { padding: 18px 18px 12px; border: 1px solid color-mix(in srgb, var(--color-brand) 18%, var(--frost-line)); border-radius: 22px; background: color-mix(in srgb, var(--brand-soft) 55%, var(--frost)); box-shadow: var(--frost-rim); }
.pf-book .pf-h3 { margin-bottom: 12px; }
.pf-book__btn { width: 100%; }
.pf-book .pf-sub { margin-top: 10px; }
/* the facts in a block of the margin: label over value, a little tighter than in the page */
.pf-side__lines { margin-top: 8px; border-bottom: 0; }
.pf-side__lines .pf-line { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
.pf-side__lines .pf-line dt { font-size: 12.5px; line-height: 1.5; }
.pf-side__lines .pf-line dd { font-size: 14px; }
.pf-side__lines .pf-line__note { margin-top: 4px; font-size: 12px; }
.pf-cred .pf-side__lines { margin-top: 2px; }
/* your own page: what it still cannot show, each a way to fill it */
.pf-todo { padding: 16px 18px 12px; border: 1px dashed color-mix(in srgb, var(--color-brand) 30%, var(--frost-line)); border-radius: 22px; }
.pf-todo .pf-h3 + .pf-sub { margin-top: 2px; }
.pf-todo__list { display: flex; flex-direction: column; margin-top: 8px; }
.pf-todo__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; font-size: 14px; font-weight: 500; color: var(--color-brand-ink); text-decoration: none; }
.pf-todo__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-todo__list a i { flex: none; font-size: 15px; }
.pf-sideblock .pf-h3 + .pf-sub { margin-top: 2px; }
.pf-sideblock .pf-chips { margin-top: 12px; }
.pf-peers { display: flex; flex-direction: column; margin-top: 6px; }
.pf-peer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; }
.pf-peer__who { display: flex; min-width: 0; align-items: center; gap: 12px; border-radius: 12px; text-decoration: none; cursor: pointer; }
.pf-peer__txt { display: block; min-width: 0; }
.pf-peer__txt b { display: block; overflow: hidden; font-size: 14.5px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.pf-peer__txt span { display: block; overflow: hidden; margin-top: 1px; font-size: 12.5px; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.pf-peer__who:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--color-foreground) 30%, transparent); }
.pf-peer .follow-btn { height: 34px; min-width: 0; padding: 0 14px; font-size: 13px; }

/* ── the report line and the foot ── */
.pp2-reportline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; margin-top: 4px; font-size: 13px; color: var(--color-muted-foreground); text-align: center; }
.pp2-reportline button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-weight: 600; color: var(--oryn-text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); cursor: pointer; }
.pp2-reportline button:hover { color: var(--color-brand-ink); }
.pf-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 20px; border-top: 1px solid var(--frost-line); text-align: center; font-size: 12.5px; line-height: 1.55; color: var(--color-muted-foreground); }
.pf-foot > p:first-child { max-width: 76ch; text-wrap: pretty; }
.pf-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.pf-foot__links button { min-height: 40px; color: var(--color-muted-foreground); cursor: pointer; transition: color .15s var(--ease-out); }
.pf-foot__links button:hover { color: var(--color-foreground); }
.pf-foot__by { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; }

/* ── a name nobody answers to ── */
.pf-none { align-items: center; gap: 0; max-width: 420px; margin: 0 auto; padding: 72px 16px 56px; text-align: center; }
.pf-none__ic { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: var(--frost-well); color: var(--color-muted-foreground); }
.pf-none__ic i { font-size: 26px; }
.pf-none__title { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.pf-none__text { max-width: 36ch; margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--color-muted-foreground); }
.pf-none .pf-btn { margin-top: 22px; }

/* ── the sheets: the code to scan, and the small page inside the claim dialog ── */
.pf-sheet.modal-panel { overflow: hidden; padding: 0; }
.pf-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 6px 24px; }
.pf-sheet__body { padding: 8px 24px 24px; }
.pp2-qrcard { display: grid; width: min(248px, 68vw); aspect-ratio: 1; margin: 0 auto 14px; overflow: hidden; place-items: center; border: 1px solid var(--frost-line); border-radius: 22px; box-shadow: var(--frost-shadow); }
.pp2-qrcard svg { display: block; width: 100%; height: 100%; }
.pf-url { margin-top: 4px; text-align: center; font-size: 13.5px; font-weight: 550; color: var(--oryn-text-2); word-break: break-all; }
.pp2-qractions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.pp2-qractions .pf-btn { width: 100%; }
.pf-mini { position: relative; overflow: hidden; border: 1px solid var(--frost-line); border-radius: 20px; background: var(--frost); box-shadow: var(--frost-rim); }
.pf-mini .pf-band { height: 60px; border-radius: 0; box-shadow: none; }
.pf-mini__body { position: relative; padding: 0 16px 16px; }
.pf-mini__av { display: inline-block; margin-top: -30px; border-radius: 50%; box-shadow: 0 0 0 4px var(--color-card); }
.pf-mini__av > * { display: grid; }
.pf-mini__name { margin: 8px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }

/* ── from 1280px the margin sits beside the posts, and stays in view ── */
@media (min-width: 1280px) {
  .pf--side .pf-cols { grid-template-columns: minmax(0, 1fr) 276px; }
  .pf--side .pf-side { position: sticky; top: calc(var(--top-h) + var(--frame) + var(--pf-bar-h) + 14px); padding-top: 4px; }
}

/* ── the public page: no navigation and no top bar, one card in the middle of the canvas ── */
@media (min-width: 1024px) { html.pf-public body { background: var(--canvas); } }
html.pf-public, .pf { --pf-gutter: 20px; }
html.pf-public #appShell { display: block; margin: 0; padding: var(--frame); }
html.pf-public #appShell::before, html.pf-public #appShell::after { content: none; }
html.pf-public #main-content { min-height: 0; margin: 0; padding: 0; }
html.pf-public #main-content > [data-viewpanel="publicclin"] { max-width: 1040px !important; }
.pf--public { padding: 20px 30px 30px; border: 1px solid var(--frost-line); border-radius: var(--frame-r);
  background: radial-gradient(760px 520px at 92% -90px, var(--field-a), transparent 72%), radial-gradient(560px 420px at 2% -60px, var(--field-b), transparent 72%), var(--color-background);
  box-shadow: var(--frost-rim); }
.pf--public .pf-top { margin-bottom: 0; }

/* ── under 1024px: one column, the header stacks, the actions are a row under the name ── */
@media (max-width: 1023.98px) {
  .pf { gap: 18px; padding-bottom: 28px; }
  .pf-head { padding: 6px 6px 0; border-radius: 24px; }
  .pf-band { height: 112px; border-radius: 18px; }
  .pf-headrow { grid-template-columns: minmax(0, 1fr); padding: 0 14px 18px; }
  .pf-portrait { width: 96px; height: 96px; margin-top: -48px; }
  .pf-id { padding-top: 14px; }
  .pf-name { font-size: 27px; }
  .pf-actions { justify-content: flex-start; max-width: none; padding-top: 16px; }
  .pf-actions .pf-follow, .pf-actions .pf-btn { flex: 1 1 auto; }
  /* Follow and the two round buttons share a row; the appointment takes the row under them */
  .pf-actions:has(.pf-follow) [data-pp-book] { order: 3; flex-basis: 100%; }
  /* the bar is the row of pills alone, stuck under the phone's top bar, and at the very top once that bar has gone
     (html.top-away, the feed's own rule; on an inner page like this one the top bar stays for its Back control,
     html.bs-inner, so the bar stays under it); the numbers ride inside the pills */
  .pf-bar { top: 56px; transition: top var(--dur-base) var(--ease-spring); }
  html.top-away:not(.bs-inner) .pf-bar { top: 0; }
  html.pf-public .pf-bar { top: 8px; }
  .pf-stats { display: none; }
  /* the margin's blocks fall in line under the parts, except the appointment, which comes first */
  .pf-side { display: contents; }
  .pf-todo { order: -2; }
  .pf-book { order: -1; }
  .pf-seg small { display: inline; }
  .pf-part + .pf-part { margin-top: 36px; }
  .pf-claim { border-radius: 20px; }
  .pf-claim .pf-btn { flex: 1 1 auto; }
  .pf-lead { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px; border-radius: 22px; }
  .pf-lead .dx-cover { aspect-ratio: 16 / 9; border-radius: 14px; }
  .pf-lead__body { padding: 12px 8px 8px; }
  .pf-lead--plain { padding: 18px; }
  .pf-lead__title { font-size: 20px; }
  .pf-list { border-radius: 22px; }
  .pf-row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 10px 12px 10px 10px; }
  .pf-row .dx-cover { width: 72px; }
  .pf-row--plain { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .pf-list > li + li::before { margin-left: 96px; }
  .pv { gap: 28px; }
  .pv-item--tall { flex-basis: 156px; width: 156px; }
  .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .pv-arrow { display: none; }
  .pf-line { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  /* below the desktop the page is the frame (22 November 2026, the owner: the outer frame was not understood on a phone
     and at 800px, and the content touched the edges): no card around the page, one 20px gutter at every width */
  html.pf-public #appShell { padding: 0 var(--pf-gutter); }
  html.pf-public .pf.pf--public { padding: 14px 0 28px; border: 0; border-radius: 0; background: none; box-shadow: none; }
}
@media (max-width: 479.98px) {
  .pf-own { display: none; }
  .pv-find__box { max-width: none; }
  /* the chips of a page with many videos stay on one line that scrolls sideways, so the videos start near the top */
  .pv-find + .pf-chips { flex-wrap: nowrap; margin: 0 calc(-1 * var(--pf-gutter)) 18px; padding: 0 var(--pf-gutter) 2px; overflow-x: auto; scrollbar-width: none; }
  .pv-find + .pf-chips::-webkit-scrollbar { display: none; }
  .pv-grid { grid-template-columns: minmax(0, 1fr); }
  .pv-item--tall { flex-basis: 148px; width: 148px; }
  .pf-facts { font-size: 14px; }
  /* a patient's row: the appointment and the two round buttons fit side by side */
  .pf-actions:not(:has(.pf-follow)) [data-pp-book] { flex: 1 1 0; min-width: 0; padding: 0 12px; }
  .pf-actions:not(:has(.pf-follow)) [data-pp-book] i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-band::after { display: none; }
  .pf-lead, .pf-row, .pp2-reel-card, .pf-reel__play, .pf-btn, .pf-icon, .pf-chip, .pp2-photobtn, .pf-lead .dx-cover img, .pf-row .dx-cover img, .pv-still, .pv-live, .pv-arrow, .pv-len, .pf-bar, .pf-stats, .pf-seg, .pv-viewer__step, .pv-viewer__close, .pv-lang__opt { transition: none; }
  .pf-bar.is-stuck .pf-seg { translate: 0 0; }
  .pv-lang__caret { transition: none; }
  .pf-lead:hover .dx-cover img, .pf-row:hover .dx-cover img { scale: 1; }
}
html.a11y-reduce-motion :is(.pf-lead, .pf-row, .pp2-reel-card, .pf-reel__play, .pf-btn, .pf-icon, .pf-chip, .pp2-photobtn, .pv-live, .pv-len, .pv-viewer__step, .pv-viewer__close, .pv-lang__opt) { transition: none; }
html.a11y-reduce-motion .pf-band::after { display: none; }

/* ── a touch screen: 44px to the finger ── */
@media (pointer: coarse) {
  .pf-seg button { min-height: 44px; }   /* the row scrolls sideways, so the pills themselves grow */
  .pf-chip, .pf-peer__who, .pf-door, .pf-foot__links button { position: relative; }
  .pf-chip::after, .pf-peer__who::after, .pf-door::after, .pf-foot__links button::after { content: ''; position: absolute; }
  .pf-chip::after { inset: -4px 0; }
  .pf-peer__who::after { inset: -2px 0; }
  .pf-door::after { inset: -2px 0; }
  .pf-foot__links button::after { inset: -3px -6px; }
  /* the round button on the portrait (34px with its hairline): the same, 44px across */
  .pp2-photobtn::after { content: ''; position: absolute; inset: -6px; }
}

/* Doctorpedia's library on a quiet page (21 October 2026): the doctor's specialty, films that open in the library */
.pf-libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pf-libcard { display: grid; gap: 8px; min-width: 0; color: var(--color-foreground); text-decoration: none; }
.pf-libcard__img { position: relative; display: block; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border-radius: 14px; background: var(--oryn-surface-hover); box-shadow: var(--frost-rim); }
.pf-libcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-libcard__img i { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--color-card); color: var(--color-brand); font-size: 18px; box-shadow: var(--frost-rim); }
.pf-libcard__t { font-size: 15px; font-weight: 600; line-height: 1.35; }
.pf-libcard__m { font-size: 13px; color: var(--color-muted-foreground); }
.pf-libcard:hover .pf-libcard__t { color: var(--color-brand-ink); }
.pf-libcard:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; border-radius: 14px; }


/* ---- a doctor's page without a photo (21 October 2026, Jeremy: no copied photos, but someone is home) ----
   The initials on the brand, warmed toward the field's hue at the top, and Doctorpedia's mark beside the portrait, the
   way a page kept by the network carries its seal. The initials take the brand's own foreground, so they read in both
   themes. */
.pf-standin { position: relative; display: grid !important; place-items: center; background: linear-gradient(140deg, color-mix(in oklch, var(--color-brand) 70%, oklch(0.55 0.19 var(--h))) 0%, var(--color-brand) 64%); color: var(--color-primary-foreground); }
.pf-standin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-primary-foreground) 22%, transparent); pointer-events: none; }
.pf-standin__ini { font-size: 36px; font-weight: 650; letter-spacing: -.01em; line-height: 1; }
.pf-portrait__dp { position: absolute; right: -2px; bottom: 2px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--color-card); box-shadow: 0 0 0 1px var(--frost-line), var(--frost-shadow); }
.pf-portrait__dp img { width: 22px; height: 22px; object-fit: contain; }
.pf-portrait__dp:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
@media (max-width: 640px) { .pf-standin__ini { font-size: 30px; } .pf-portrait__dp { width: 32px; height: 32px; } .pf-portrait__dp img { width: 19px; height: 19px; } }

/* ---- what the public records say, on a page nobody has claimed (21 October 2026) ---- */
.pf-record { margin-top: 22px; }
.pf-record__h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--color-muted-foreground); }
.pf-record__h i { font-size: 16px; }
.pf-record .pf-lines { margin-top: 10px; }
.pf-record__src { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--color-muted-foreground); }
.pf-record__src a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.pf-record__src a:hover { color: var(--color-foreground); }
.pf-chip.is-static { height: 30px; padding: 0 12px; font-size: 13.5px; cursor: default; }
.pf-chip.is-static:hover { border-color: var(--frost-line); color: inherit; }
.pf-line__plain { color: var(--color-muted-foreground); font-size: 14px; }

/* ---- the latest in the doctor's field, for patients (21 October 2026) ----
   A reading list, not a wall of cards (19 November 2026, the owner: more space, more air). One column on the page,
   each piece set apart by room and a hairline, the kind and day small above, the title, two or three lines of summary,
   and one quiet line for who wrote it and where it comes from. No box around what is read; nothing moves. */
#pp2-latest .pf-latest__head { margin-bottom: 8px; }
.pf-latest__head .pf-sub { max-width: 58ch; margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--color-muted-foreground); }
.pf-latest { display: flex; flex-direction: column; margin-top: 12px; }
.pf-latest__item { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 28px 0; border-top: 1px solid var(--frost-line); }
.pf-latest__item:last-child { border-bottom: 1px solid var(--frost-line); }
.pf-latest__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; font-size: 13px; line-height: 1.4; color: var(--color-muted-foreground); }
.pf-latest__top > span + span::before { content: "\00b7"; margin: 0 8px; }
.pf-latest__ev { font-weight: 500; color: var(--color-foreground); }
.pf-latest__t { margin: 0; max-width: 34em; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; color: var(--color-foreground); text-wrap: balance; }
.pf-latest__s { margin: 0; max-width: 62ch; font-size: 15.5px; line-height: 1.65; color: var(--color-foreground); opacity: .86; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
/* the foot: who wrote it, then the source, on one quiet line */
.pf-latest__by { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--color-muted-foreground); }
.pf-latest__src { display: inline-flex; min-width: 0; max-width: 100%; }
.pf-latest__by > span + span::before { content: "\00b7"; margin: 0 8px; color: var(--color-muted-foreground); }
.pf-latest__by a { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--color-foreground); font-weight: 500; text-decoration: none; }
.pf-latest__srcname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-latest__by a i { flex: none; font-size: 13px; color: var(--color-muted-foreground); }
.pf-latest__by a:hover .pf-latest__srcname { text-decoration: underline; text-underline-offset: 3px; }
.pf-latest__by a:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 719px) { .pf-latest__item { padding: 24px 0; } .pf-latest__t { font-size: 18px; } }
/* the doctor's own page: "Show in Ask" under each video (ASK-02c). The switch is the app's own (.sw, family.css); one
   line says what it does. */
.pp2-vask { display: flex; align-items: center; gap: 10px; padding: 8px 2px 0; }
.pp2-vask .sw { flex: none; }
.pp2-vask__copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pp2-vask__copy b { font-size: 13px; font-weight: 550; }
.pp2-vask__copy small { font-size: 12px; color: var(--color-muted-foreground); }

/* the doctor on every video card and at the head of the viewer (20 November 2026, the owner: the doctor's presence is as
   important as the video, or more): the face, the name in full, the practitioner's word; monochrome */
.pv-doc { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 10px 0 4px; }
.pv-doc__av { display: grid; flex: none; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: var(--color-muted); font-size: 12.5px; font-weight: 600; color: var(--color-muted-foreground); }
.pv-doc__av img { width: 100%; height: 100%; object-fit: cover; }
.pv-doc__w { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.pv-doc__w b { overflow: hidden; font-size: 15px; font-weight: 600; color: var(--color-foreground); text-overflow: ellipsis; white-space: nowrap; }
.pv-doc__w small { overflow: hidden; font-size: 13px; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.pv-doc--lg { margin: 0 0 14px; }
.pv-doc--lg .pv-doc__av { width: 52px; height: 52px; font-size: 15px; }
.pv-doc--lg .pv-doc__w b { font-size: 18px; }
.pv-doc--lg .pv-doc__w small { font-size: 14px; white-space: normal; }

/* the cards made quieter (20 November 2026, the owner: the thumbnail part was too much): no play circle at rest, a small one
   when the pointer or the focus is on the card, and the still brightens a little at once, so the hover is felt before the
   preview's first frame; the card never moves. Provenance is said once, in the section's header (.pv-prov). */
.pv-card .pf-reel__play { width: 40px; height: 40px; opacity: 0; transition: opacity .18s var(--ease-out); }
.pv-card .pf-reel__play i { font-size: 15px; }
.pv-card:hover .pf-reel__play, .pv-card:focus-visible .pf-reel__play { opacity: .92; }
.pv-card.has-live .pf-reel__play { opacity: 0; }
.pv-card .pv-still, .pv-card .pf-reel__poster, .pv-card img { transition: filter .2s var(--ease-out); }
.pv-card:hover .pv-still, .pv-card:hover .pf-reel__poster, .pv-card:hover > img, .pv-card:focus-visible .pf-reel__poster { filter: brightness(1.07); }
@media (hover: none) { .pv-card .pf-reel__play { opacity: .92; } }
.pv-prov { margin-top: 2px; }
.pv-prov .bs-og-chip { min-height: 32px; font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); }
