/* The practice on a doctor's page (views/practice.js), 18 November 2026. Loaded after views/profile-pass.css, whose
   Appointments card it keeps as the owner set it (the lilac wash, the calendar tile, the one wide ink button) and adds
   to: a line that says open or closed, lines that open the week and the map, and the two dialogs. Clean tokens only;
   lilac means open, grey means closed; nothing turns or follows the pointer. */

/* ── 1. The card: open now or closed, just above the one button ───────────────────────────────────────────────────── */
/* it reads as the answer to "can I call now?": under the line about scheduling, before the button that calls */
html body .pf-side > .pf-book > .pf-open { order: 2; align-self: stretch; display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 15px; line-height: 1.4; text-align: left; color: var(--cl-ink-3); cursor: pointer; }
html body .pf-open__txt { min-width: 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .18s var(--cl-out); }
html body .pf-open__txt > b { font-weight: 500; color: var(--cl-ink); }
html body .pf-open:hover .pf-open__txt { text-decoration-color: var(--cl-line-3); }
html body .pf-open:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 3px; border-radius: 8px; }
/* the dot: lilac with a soft ring when open, grey when closed; it sits on the first line of the words */
html body .pf-open__dot, .prc-status__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--cl-ink-4); }
html body .pf-open.is-open .pf-open__dot, .prc-status.is-open .prc-status__dot { background: var(--cl-lilac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 22%, transparent); }
/* the button may be a link that calls; the line under it says what a call to a practice is not for */
html body .pf .pf-book a.pf-book__btn { text-decoration: none; }
html body .pf-side > .pf-book > .pf-book__sos { order: 2; display: flex; align-items: flex-start; gap: 7px; margin: 2px 2px 10px; font-size: 13px; line-height: 1.45; color: var(--cl-ink-4); }
html body .pf-book__sos > i { flex: none; margin-top: 2px; font-size: 14px; }

/* a line that opens something: the whole line is the button, a soft plate under it when the pointer is on it, and a
   few words in the brand's ink that say what it opens */
html body .pf-side .pf-line.is-act { z-index: 0; isolation: isolate; }
html body .pf-line__btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; line-height: inherit; letter-spacing: inherit; text-align: left; color: inherit; cursor: pointer; }
html body .pf-line__btn::after { content: ''; position: absolute; z-index: -1; inset: 3px -10px; border-radius: 14px; background: transparent; transition: background-color .18s var(--cl-out); }
html body .pf-line.is-act:hover .pf-line__btn::after { background: var(--cl-hover); }
html body .pf-line__btn:focus-visible { outline: none; }
html body .pf-line__btn:focus-visible::after { box-shadow: 0 0 0 2px var(--cl-lilac); }
html body .pf-line__go { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13.5px; line-height: 1.3; color: color-mix(in srgb, var(--cl-lilac) 70%, var(--cl-ink)); }
html body .pf-line__go > i { font-size: 15px; }
html body .pf-line__soon { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--cl-ink-3); }
html body .pf-line__tel { padding: 0; border: 0; background: none; font: inherit; color: var(--cl-ink); text-decoration: underline; text-decoration-color: var(--cl-line-3); text-underline-offset: 3px; cursor: pointer; font-variant-numeric: tabular-nums; }
html body .pf-line__tel:hover { text-decoration-color: currentColor; }
html body .pf-line__tel:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; border-radius: 4px; }

/* ── 2. The dialogs: the house dialog (the clean tokens, a hairline, the ink pill), centred; a sheet on a phone ────── */
html.prc-open, html.prc-open body { overflow: hidden; }
/* a notice said from inside a dialog (Address copied) shows above it */
html.prc-open .bs-toast { z-index: 1300; }
.prc-root { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.prc-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--cl-page, #0e0e12) 62%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s var(--cl-out); }
.prc { position: relative; display: flex; width: min(480px, 100%); max-height: calc(100vh - 48px); flex-direction: column; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--cl-line); border-radius: 26px; background: var(--cl-surface); box-shadow: var(--cl-shadow-pop); font-family: var(--cl-sans); color: var(--cl-ink); outline: none; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .26s var(--cl-out), transform .5s var(--cl-spring); }
.prc-root--map .prc { width: min(560px, 100%); }
.prc-root.is-in .prc-scrim { opacity: 1; }
.prc-root.is-in .prc { opacity: 1; transform: none; }
.prc-root.is-out .prc-scrim, .prc-root.is-out .prc { opacity: 0; transition-duration: .2s; }

.prc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 22px 2px 28px; }
.prc-title { margin: 0; font-family: var(--cl-serif); font-size: 27px; font-weight: 400; letter-spacing: -.012em; line-height: 1.15; color: var(--cl-ink); }
.prc-status { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--cl-ink-3); }
.prc-status__txt > b { font-weight: 500; color: var(--cl-ink); }
.prc-addr { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--cl-ink-2); }
.prc-x { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: none; font-size: 18px; color: var(--cl-ink-3); cursor: pointer; transition: background-color .16s var(--cl-out), color .16s var(--cl-out); }
.prc-x:hover { background: var(--cl-hover); color: var(--cl-ink); }

.prc-body { padding: 18px 28px 4px; }

/* the week: seven rows, Monday first; today on a soft grey plate, a closed day's words quiet */
.prc-week { display: grid; gap: 2px; margin: 0 -12px; padding: 0; list-style: none; }
.prc-day { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 8px 12px; border-radius: 14px; font-size: 15.5px; line-height: 1.35; }
.prc-day__name { display: flex; align-items: baseline; gap: 10px; color: var(--cl-ink); }
.prc-day__name > small { font-size: 13px; color: var(--cl-ink-4); font-variant-numeric: tabular-nums; }
.prc-day__hours { text-align: right; color: var(--cl-ink-2); font-variant-numeric: tabular-nums; }
.prc-day.is-shut .prc-day__hours { color: var(--cl-ink-4); }
.prc-day.is-today { background: var(--cl-surface-2); box-shadow: inset 0 0 0 1px var(--cl-line); }
.prc-day.is-today .prc-day__name { font-weight: 500; }
.prc-day.is-today .prc-day__name > small { font-weight: 500; color: color-mix(in srgb, var(--cl-lilac) 70%, var(--cl-ink)); }
.prc-root.is-in .prc-day { animation: prc-rise .44s var(--cl-out) both; animation-delay: calc(var(--i, 0) * 28ms + 90ms); }
@keyframes prc-rise { from { opacity: 0; transform: translateY(6px); } }

.prc-h { margin: 24px 0 6px; font-size: 13.5px; font-weight: 400; line-height: 1.3; color: var(--cl-ink-4); }
.prc-closed { margin: 0; padding: 0; list-style: none; }
.prc-closed > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-top: 1px solid var(--cl-line); font-size: 15px; line-height: 1.4; }
.prc-closed > li:first-child { border-top: 0; padding-top: 4px; }
.prc-closed__when { color: var(--cl-ink); font-variant-numeric: tabular-nums; }
.prc-closed__note { color: var(--cl-ink-3); }
.prc-plain { margin: 0; font-size: 16px; line-height: 1.5; color: var(--cl-ink); }
.prc-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cl-ink-4); }
.prc-note + .prc-note { margin-top: 4px; }

/* the map: rounded, a hairline, its colours softened so it sits calmly in the page; the brand's texture and a pin
   while it comes */
.prc-map { position: relative; overflow: hidden; height: 270px; border-radius: 18px; background:
    radial-gradient(circle at 2px 2px, color-mix(in srgb, var(--cl-lilac) 40%, transparent) 1.1px, transparent 1.6px) 0 0 / 9px 9px,
    linear-gradient(170deg, color-mix(in srgb, var(--cl-lilac) 18%, var(--cl-surface)), color-mix(in srgb, var(--cl-lilac) 6%, var(--cl-surface))); }
.prc-map::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--cl-line); pointer-events: none; }
.prc-map__wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; color: color-mix(in srgb, var(--cl-lilac) 72%, var(--cl-ink)); transition: opacity .3s var(--cl-out); }
.prc-map__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; opacity: 0; filter: saturate(.55) contrast(.97) brightness(1.02); transition: opacity .5s var(--cl-out); }
.prc-map.is-ready .prc-map__frame { opacity: 1; }
.prc-map.is-ready .prc-map__wait { opacity: 0; }
html:not(.light) .prc-map__frame { filter: invert(.9) hue-rotate(180deg) saturate(.5) brightness(.92) contrast(.94); }

.prc-dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prc-dirs .prc-btn { justify-content: center; }

.prc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding: 18px 28px 24px; border-top: 1px solid var(--cl-line); }
.prc-foot > .prc-btn--ink { flex: 1; justify-content: center; }
.prc-sos { display: flex; flex: 1 0 100%; align-items: flex-start; gap: 7px; margin: 2px 2px 0; font-size: 13px; line-height: 1.45; color: var(--cl-ink-4); }
.prc-sos > i { flex: none; margin-top: 2px; font-size: 14px; }
.prc-foot--quiet { margin-top: 14px; padding-top: 10px; border-top: 0; }
.prc-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); font: inherit; font-size: 15px; line-height: 1; color: var(--cl-ink); text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .16s var(--cl-out), background-color .16s var(--cl-out), scale .12s var(--cl-out); }
.prc-btn > i { font-size: 17px; color: var(--cl-ink-3); }
.prc-btn > .prc-btn__out { font-size: 14px; color: var(--cl-ink-4); }
.prc-btn:hover { border-color: var(--cl-line-3); }
.prc-btn:active { scale: .97; }
.prc-btn--ink { height: 50px; border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); }
.prc-btn--ink > i { color: var(--cl-surface); }
.prc-btn--ink:hover { border-color: var(--cl-ink); background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); }
.prc-btn--quiet { height: 40px; padding: 0 14px 0 12px; border-color: transparent; background: transparent; font-size: 14.5px; color: var(--cl-ink-3); }
.prc-btn--quiet:hover { border-color: transparent; background: var(--cl-hover); color: var(--cl-ink); }
.prc :is(.prc-btn, .prc-x):focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }

/* a phone: the dialog rises from the bottom as a sheet, with a small handle; the buttons take the width */
@media (max-width: 640px) {
  .prc-root { padding: 0; place-items: end stretch; }
  .prc, .prc-root--map .prc { width: 100%; max-height: 92vh; border-width: 1px 0 0; border-radius: 24px 24px 0 0; transform: translateY(28px); }
  .prc::before { content: ''; display: block; flex: none; width: 38px; height: 4px; margin: 9px auto 0; border-radius: 99px; background: var(--cl-line-3); }
  .prc-head { padding: 14px 14px 2px 20px; }
  .prc-title { font-size: 24px; }
  .prc-body { padding: 14px 20px 4px; }
  .prc-week { margin: 0 -10px; }
  .prc-day { min-height: 44px; padding: 8px 10px; font-size: 15px; }
  .prc-map { height: 220px; }
  .prc-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
  .prc-foot--quiet { padding-top: 6px; }
}

/* ── 3. Settings: the phone's country code beside the number, and the closed days ──────────────────────────────── */
.sf-phone { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 300px); gap: 12px; }
.sf-phone > .bsf-trigger, .sf-phone > select, .sf-phone > input { width: 100%; min-width: 0; }
.sf-closed { min-width: 0; }
.sf-closed__hint { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--cl-ink-3); }
.sf-closed__list { margin: 0 0 6px; padding: 0; overflow: hidden; border: 1px solid var(--cl-line); border-radius: 16px; list-style: none; }
.sf-closed__list.hidden { display: none; }
.sf-closed__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 8px 8px 16px; border-top: 1px solid var(--cl-line); animation: prc-rise .36s var(--cl-out) both; }
.sf-closed__row:first-child { border-top: 0; }
.sf-closed__what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; font-size: 15px; line-height: 1.4; }
.sf-closed__when { color: var(--cl-ink); font-variant-numeric: tabular-nums; }
.sf-closed__note { color: var(--cl-ink-3); }
.sf-closed__new { font-size: 12.5px; color: color-mix(in srgb, var(--cl-lilac) 70%, var(--cl-ink)); }
.sf-closed__x { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 11px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13.5px; color: var(--cl-ink-3); cursor: pointer; transition: background-color .16s var(--cl-out), color .16s var(--cl-out); }
.sf-closed__x > i { font-size: 15px; }
.sf-closed__x:hover { background: var(--cl-hover); color: var(--cl-ink); }
.sf-closed__form { margin-top: 4px; padding: 18px; border: 1px solid var(--cl-line); border-radius: 18px; background: var(--cl-surface-2); animation: prc-rise .32s var(--cl-out) both; }
.sf-closed__form.hidden { display: none; }
.sf-closed__form .fld, .sf-closed__form .bsf-trigger { background: var(--cl-surface); }
.sf-closed__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); gap: 16px; min-width: 0; }
.sf-closed__dates > div { min-width: 0; }
.sf-closed__dates .bsf-trigger { width: 100%; }
.sf-closed__notebox { max-width: 476px; margin-top: 16px; }
.sf-closed__notebox > .fld { width: 100%; }
.sf-closed__picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sf-closed__msg { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--cl-bad-ink, var(--cl-ink)); }
.sf-closed__msg.hidden { display: none; }
.sf-closed__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; white-space: nowrap; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); font: inherit; font-size: 14.5px; color: var(--cl-ink); cursor: pointer; transition: border-color .16s var(--cl-out), background-color .16s var(--cl-out), scale .12s var(--cl-out); }
.sf-btn > i { font-size: 16px; }
.sf-btn:hover { border-color: var(--cl-line-3); }
.sf-btn:active { scale: .97; }
.sf-btn--ink { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); }
.sf-btn--ink:hover { border-color: var(--cl-ink); background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); }
.sf-btn:focus-visible, .sf-closed__x:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }
@media (max-width: 640px) {
  .sf-phone { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sf-closed__form { padding: 14px; }
  .sf-closed__dates { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sf-closed__acts .sf-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .prc, .prc-scrim, .prc-map__frame, .prc-map__wait { transition: opacity .12s linear !important; transform: none !important; }
  .prc-root.is-in .prc-day, .sf-closed__row, .sf-closed__form { animation: none; }
}
html.a11y-reduce-motion .prc, html.a11y-reduce-motion .prc-scrim { transition: opacity .12s linear !important; transform: none !important; }
html.a11y-reduce-motion .prc-root.is-in .prc-day, html.a11y-reduce-motion .sf-closed__row, html.a11y-reduce-motion .sf-closed__form { animation: none; }
