/* Showcase profiles (showcase.js draws them; docs/design/FAMILY.md is the language). Tokens only.
   The mark is a quiet frost pill with the asterisk in the brand colour, so it never reads as the filled seal of a
   verified physician. The sheet is real glass over the page, a bottom sheet on a phone. */

/* ── the mark ── */
.sc-mark {
  display: inline-flex; flex: none; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; margin: 0;
  border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-well);
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; line-height: 1; color: var(--oryn-text-2);
  white-space: nowrap; vertical-align: middle; cursor: pointer;
  transition: color .16s var(--ease-out), border-color .16s var(--ease-out), box-shadow .32s var(--ease-out);
}
.sc-mark > i { font-size: 11px; color: var(--color-brand); }
.sc-mark:hover { color: var(--color-brand-ink); border-color: var(--oryn-border-hover); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 14%, transparent); }
.sc-mark:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.sc-mark:active { scale: .96; }
.sc-mark--sm { height: 20px; padding: 0 7px 0 5px; font-size: 11px; }
.sc-mark--lg { height: 26px; padding: 0 11px 0 8px; font-size: 12.5px; }
.sc-mark--lg > i { font-size: 13px; }
/* beside a name on a card or a row: a little air, and the name keeps its room */
.fc-who .sc-mark, .pp-by__who .sc-mark, .cl-who .sc-mark, .dx-voice__who .sc-mark { margin-left: 6px; }
.fc-who, .pp-by__who { min-width: 0; }
/* only a name the mark follows gives it room. The room was taken from every name, so on a phone a doctor's own name
   was cut to three letters ("Pri…") beside a mark that was not there (seen at 390 when the two lines of 3 October
   were joined). On a phone the mark is its asterisk alone and needs a third of that room. */
.fc-who > .fc-name:has(+ .sc-mark), .pp-by__who > .pp-by__name:has(+ .sc-mark) { max-width: calc(100% - 92px); }
@media (max-width: 480px) { .fc-who .sc-mark > span, .cl-who .sc-mark > span, .pp-by__who .sc-mark > span { display: none; } .fc-who .sc-mark, .cl-who .sc-mark, .pp-by__who .sc-mark { padding: 0 5px; } .fc-who > .fc-name:has(+ .sc-mark), .pp-by__who > .pp-by__name:has(+ .sc-mark) { max-width: calc(100% - 36px); } }
/* 44 px to the finger (the phone audit of 3 October, carried to the mark when the two lines were joined): on a touch
   screen the mark, the "Why" in the line under a name and the sheet's close take a 44 px press and look as they did */
@media (pointer: coarse) {
  .sc-mark, .sc-why { position: relative; }
  .sc-mark::after, .sc-why::after, .sc-sheet__x::after { content: ''; position: absolute; }
  .sc-mark::after { inset: -13px -2px; }
  .sc-mark--lg::after { inset: -10px 0; }
  .sc-why::after { inset: -13px -10px; }
  .sc-sheet__x::after { inset: -4px; }
}

/* the "Why" inside a line of text */
.sc-why { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--color-brand-ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; cursor: pointer; transition: text-decoration-color .15s var(--ease-out); }
.sc-why:hover, .sc-why:focus-visible { text-decoration-color: currentColor; outline: none; }

/* ── the sheet ── */
.sc-sheet { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 16px; font-family: var(--font-sans, inherit); color: var(--color-foreground); }
.sc-sheet__veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--canvas) 56%, transparent); opacity: 0; transition: opacity .28s var(--ease-out); }
html.light .sc-sheet__veil { background: color-mix(in srgb, var(--color-foreground) 28%, transparent); }
.sc-sheet.is-open .sc-sheet__veil { opacity: 1; }
.sc-sheet__card {
  position: relative; width: min(460px, 100%); padding: 26px 26px 22px;
  border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost-float);
  box-shadow: var(--frost-rim), var(--frost-pop);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity .22s var(--ease-out), transform .42s var(--ease-out);
}
.sc-sheet__card:focus { outline: none; }
.sc-sheet.is-open .sc-sheet__card { opacity: 1; transform: none; }
.sc-sheet__card :where(h2, p) { margin: 0; }
.sc-sheet__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--color-brand-ink); }
.sc-sheet__eyebrow > i { font-size: 13px; color: var(--color-brand); }
.sc-sheet__title { margin-top: 10px; font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.18; text-wrap: balance; }
.sc-sheet__text { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--oryn-text-2); text-wrap: pretty; }
.sc-sheet__text--quiet { font-size: 13.5px; color: var(--color-muted-foreground); }
.sc-sheet__pitch { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--color-foreground); }
.sc-sheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.sc-btn {
  display: inline-flex; 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: inherit; font-size: 14.5px; font-weight: 600; color: var(--color-foreground); text-decoration: none; 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);
}
.sc-btn > i { font-size: 17px; }
.sc-btn:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); box-shadow: var(--frost-rim), var(--frost-shadow); }
.sc-btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.sc-btn:active { scale: .96; }
.sc-btn--fill { 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); }
.sc-btn--fill: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); }
.sc-sheet__x { position: absolute; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--color-muted-foreground); cursor: pointer; transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.sc-sheet__x > i { font-size: 16px; }
.sc-sheet__x:hover { background: var(--frost-well); color: var(--color-foreground); }
.sc-sheet__x:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

@media (max-width: 640px) {
  .sc-sheet { place-items: end center; padding: 0; }
  .sc-sheet__card { width: 100%; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; transform: translateY(24px); }
  .sc-sheet__foot .sc-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-sheet__veil, .sc-sheet__card, .sc-mark, .sc-btn { transition: none; }
  .sc-sheet__card { transform: none; }
}
html.a11y-reduce-motion .sc-sheet__card { transition: opacity .2s var(--ease-out); transform: none; }
