/* ==========================================================================
   Doctors: the list (pages/doctors.php, assets/js/doctors.js), one doctor (pages/doctor.php) and the booking panel
   both use (assets/js/booking.js). The homepage's clinic at the blue hour: a deep teal sky, the body drawn in cyan
   light (the part picked turns the brand's lime), glass for the panels, light text; lime for what is picked and for
   booking. Each card draws this week's free appointments as seven bars, so the soonest doctor is seen, not read.
   Both builds: the desktop frame and the phones' (.v-m).
   ========================================================================== */
.page-doctors, .page-doctor {
  --k-night: #04101A; --k-deep: #0A2230; --k-teal: #123A45;
  --k-ink: #E8F3F1; --k-ink-2: #9CB7B6; --k-line: rgb(170 225 220 / .14); --k-glass: rgb(12 34 44 / .66);
  --k-cyan: #8FE3E6; --lime: #9AF21E; --lime-ink: #0E1A07;
  background: var(--k-night); color: var(--k-ink);
}
.dr, .dd {
  padding: calc(var(--header-h, 76px) + 26px) var(--gutter, 16px) 96px;
  background:
    radial-gradient(60% 420px at 78% 0, rgb(40 120 128 / .34), rgb(40 120 128 / 0) 70%),
    linear-gradient(to bottom, var(--k-night), var(--k-deep) 520px, #0B2731 1400px, var(--k-night));
}
.v-m .dr, .v-m .dd { padding: calc(var(--m-bar) + 16px) 16px calc(var(--m-tabs) + 40px); }
.dr .sr-only, .dd .sr-only, .bk .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dr :focus-visible, .dd :focus-visible, .dr-dlg :focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.dr-head, .dr-body, .dd-head, .dd-body, .dd-more { max-width: 1400px; margin-inline: auto; }

/* ---------- the head ---------- */
.dr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "crumbs crumbs" "eyebrow eyebrow" "title stats" "lead stats"; column-gap: 48px; align-items: end; }
.dr-head .crumbs, .dd-head .crumbs { grid-area: crumbs; color: var(--k-ink-2); }
.dr-eyebrow { grid-area: eyebrow; display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--k-cyan); font-size: 13px; font-weight: 700; }
.dr-eyebrow .chap__no { font-family: var(--font-ka); font-size: 22px; font-weight: 300; line-height: 1; color: var(--lime); }
.dr-title { grid-area: title; max-width: 16em; margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 54px); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.dr-lead { grid-area: lead; max-width: 46em; margin: 14px 0 0; color: var(--k-ink-2); font-size: 15.5px; line-height: 1.95; }
.dr-stats { grid-area: stats; display: flex; margin: 0; padding-bottom: 6px; }
.dr-stats div { display: flex; flex-direction: column-reverse; max-width: 150px; padding: 0 22px; border-inline-start: 1px solid var(--k-line); }
.dr-stats div:first-child { border: 0; padding-inline-start: 0; }
.dr-stats dt { color: var(--k-ink-2); font-size: 12.5px; line-height: 1.5; }
.dr-stats dd { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.3; }

/* ---------- the two columns ---------- */
.dr-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 32px; }

/* ---------- the filters ---------- */
.dr-filters {
  position: sticky; top: calc(var(--header-h, 76px) + 14px); max-height: calc(100vh - var(--header-h, 76px) - 28px);
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(170 225 220 / .25) transparent;
  padding: 18px 20px 20px; border-radius: 26px; background: var(--k-glass); box-shadow: inset 0 0 0 1px var(--k-line), 0 30px 60px -40px rgb(0 0 0 / .8);
}
html:not([data-tier="lite"]) .dr-filters { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dr-filters__top { display: flex; align-items: center; gap: 10px; }
.dr-filters__top h2 { flex: 1; margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.dr-link { padding: 4px 0; border: 0; background: none; color: var(--k-cyan); font: 700 13px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dr-x { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--k-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.dr-filters__show { display: none; }
.dr-f { min-width: 0; margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--k-line); }
.dr-f legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: 14px; font-weight: 800; }
.dr-f legend + * { clear: both; }
.dr-f input[type="radio"], .dr-f input[type="checkbox"], .dr-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* where in the body: the figure in cyan light, a dot on each part that has doctors */
.dr-bodymap { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.dr-bodymap legend { grid-column: 1 / -1; }
.dr-fig { position: relative; width: 92px; aspect-ratio: 160 / 300; }
.dr-fig__line { width: 100%; height: 100%; overflow: visible; }
.dr-fig__line path { fill: rgb(143 227 230 / .06); stroke: var(--k-cyan); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgb(143 227 230 / .45)); }
.dr-spot { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.dr-spot i { width: 11px; height: 11px; border-radius: 50%; background: var(--k-cyan); box-shadow: 0 0 0 4px rgb(143 227 230 / .16), 0 0 12px rgb(143 227 230 / .7); transition: background-color .25s, box-shadow .25s, scale .3s var(--ease-out); }
.dr-spot:hover i { scale: 1.25; }
.dr-spot[aria-pressed="true"] i { background: var(--lime); box-shadow: 0 0 0 3px var(--k-deep), 0 0 0 7px rgb(154 242 30 / .45), 0 0 18px rgb(154 242 30 / .7); }
.dr-parts { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.dr-hint { width: 100%; margin: 0 0 4px; color: var(--k-ink-2); font-size: 12px; line-height: 1.6; }
.dr-part, .dr-chips span, .dr-seg span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--k-line); color: var(--k-ink); font: 600 13px var(--font-body); cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.dr-part i, .dr-chips i, .dr-seg i { font-style: normal; font-size: 11.5px; opacity: .6; }
.dr-part:hover, .dr-chips span:hover, .dr-seg span:hover { box-shadow: inset 0 0 0 1px rgb(170 225 220 / .4); }
.dr-part[aria-pressed="true"], .dr-chips input:checked + span, .dr-seg input:checked + span { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.dr-f input:focus-visible + span, .dr-switch input:focus-visible ~ .dr-switch__k { outline: 2px solid var(--lime); outline-offset: 2px; }
.dr-chips, .dr-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-chips label[hidden] { display: none; }
.dr-seg--col { flex-direction: column; align-items: stretch; }
.dr-seg--col span { justify-content: space-between; min-height: 40px; border-radius: 14px; }
.dr-switch { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--k-line); font-size: 13.5px; line-height: 1.6; cursor: pointer; }
.dr-switch__k { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: rgb(255 255 255 / .12); transition: background-color .25s; }
.dr-switch__k::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--k-ink); transition: inset-inline-start .25s var(--ease-out), background-color .25s; }
.dr-switch input:checked ~ .dr-switch__k { background: var(--lime); }
.dr-switch input:checked ~ .dr-switch__k::after { inset-inline-start: 21px; background: var(--lime-ink); }
.dr-search { display: block; margin-top: 16px; }
.dr-search input, .bk-field input {
  width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 14px;
  background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--k-line); color: var(--k-ink); font: 500 14px var(--font-body);
}
.dr-search input::placeholder, .bk-field input::placeholder { color: rgb(156 183 182 / .75); }
.dr-search input:focus, .bk-field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime); background: rgb(255 255 255 / .09); }
.dr-search input:-webkit-autofill, .bk-field input:-webkit-autofill { -webkit-text-fill-color: var(--k-ink); -webkit-box-shadow: 0 0 0 40px #12313C inset; caret-color: var(--k-ink); }

.dr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--k-ink); font: 700 14px var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.dr-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dr-btn--go { background: var(--lime); color: var(--lime-ink); }
.dr-btn--go:hover { background: #B4FF4A; }
.dr-btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--k-line); }
.dr-btn--line:hover { box-shadow: inset 0 0 0 1.5px rgb(170 225 220 / .5); }
.dr-btn i { font-style: normal; }

/* ---------- the doctors ---------- */
.dr-bar { display: flex; align-items: center; gap: 12px 16px; margin: 0 0 16px; }
.dr-count { flex: 1; margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 800; white-space: nowrap; }
.dr-bar__filters { display: none; min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.dr-bar__filters i:empty { display: none; }
.dr-bar__filters i { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; }
.dr-sort { display: flex; align-items: center; gap: 8px; color: var(--k-ink-2); font-size: 13px; }
.dr-sort select {
  height: 40px; padding: 0 16px; padding-inline-end: 36px; border: 0; border-radius: 999px; -webkit-appearance: none; appearance: none;
  background: rgb(255 255 255 / .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8F3F1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  box-shadow: inset 0 0 0 1px var(--k-line); color: var(--k-ink); font: 700 13.5px var(--font-body); cursor: pointer;
}
html[dir="rtl"] .dr-sort select { background-position: left 12px center; }
.dr-sort option { background: var(--k-deep); color: var(--k-ink); }

.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dr-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px; background: var(--k-glass); box-shadow: inset 0 0 0 1px var(--k-line); transition: box-shadow .3s, translate .4s var(--ease-out); }
.dr-card[hidden] { display: none; }
.dr-card:hover { box-shadow: inset 0 0 0 1px rgb(143 227 230 / .35), 0 24px 50px -34px rgb(0 0 0 / .9); translate: 0 -2px; }
.dr-card__who { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.dr-face {
  position: relative; flex: none; display: block; width: 78px; height: 78px; overflow: hidden; border-radius: 50%; container-type: inline-size;
  background: var(--k-teal); box-shadow: 0 0 0 2px rgb(143 227 230 / .35), 0 0 0 6px rgb(143 227 230 / .06);
}
.dr-face img { position: absolute; left: 50%; top: 40%; width: calc(var(--z, 3.2) * 100cqw); max-width: none; height: auto; translate: calc(var(--fx, .5) * -100%) calc(var(--fy, .2) * -100%); }
.dr-face.is-none { display: grid; place-items: center; color: var(--k-cyan); font: 700 22px var(--font-latin); }
.dr-card__txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.dr-card__name { font-family: var(--font-latin); font-size: 17px; font-weight: 700; line-height: 1.35; text-align: start; }
html[dir="rtl"] .dr-card__name { text-align: right; }
.dr-card__what { color: var(--k-ink); font-size: 13.5px; font-weight: 600; }
.dr-card__where { color: var(--k-ink-2); font-size: 12.5px; }
.dr-card__who:hover .dr-card__name { text-decoration: underline; text-decoration-color: rgb(143 227 230 / .5); text-underline-offset: 4px; }

/* this week's free appointments: a bar a day, lime where there are some */
.dr-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 10px 12px 8px; border-radius: 16px; background: rgb(0 0 0 / .18); }
.dr-week span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dr-week i { display: block; width: 100%; max-width: 22px; height: 34px; border-radius: 6px; background: linear-gradient(to top, var(--lime) var(--h), rgb(255 255 255 / .06) var(--h)); }
.dr-week .is-0 i { background: rgb(255 255 255 / .06); }
.dr-week b { color: var(--k-ink-2); font-size: 11px; font-weight: 600; line-height: 1; }
.dr-next { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0; font-size: 13px; }
.dr-next span { color: var(--k-ink-2); }
.dr-next b { color: var(--lime); font-size: 14.5px; }
.dr-next.is-none { color: var(--k-ink-2); line-height: 1.7; }
.dr-card__acts { display: flex; gap: 8px; margin-top: auto; }
.dr-card__acts .dr-btn--go { flex: 1; }

.dr-empty { padding: 44px 24px; border: 1.5px dashed var(--k-line); border-radius: 24px; text-align: center; }
.dr-empty[hidden] { display: none; }
.dr-empty p { max-width: 36em; margin: 0 auto 18px; color: var(--k-ink-2); line-height: 1.9; }

/* ---------- the booking panel over the list ---------- */
.dr-dlg {
  position: fixed; inset: 12px 12px 12px auto; width: min(480px, calc(100% - 24px)); max-width: none; height: auto; max-height: none; margin: 0; padding: 0; border: 0;
  border-radius: 28px; background: #0B2530; color: var(--k-ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8), inset 0 0 0 1px var(--k-line); overflow: auto; overscroll-behavior: contain;
}
html[dir="rtl"] .dr-dlg { inset: 12px auto 12px 12px; }
.dr-dlg::backdrop { background: rgb(2 8 12 / .6); }
html:not([data-tier="lite"]) .dr-dlg::backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dr-dlg[open] { animation: dr-in .45s var(--ease-out); }
@keyframes dr-in { from { opacity: 0; translate: calc(var(--dir, 1) * 40px) 0; } }
html[dir="rtl"] .dr-dlg { --dir: -1; }
.dr-dlg__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(#0B2530 80%, rgb(11 37 48 / 0)); }
.dr-dlg__head > div { flex: 1; min-width: 0; }
.dr-dlg__face .dr-face { width: 60px; height: 60px; }
.dr-dlg__k { margin: 0; color: var(--k-cyan); font-size: 12.5px; font-weight: 700; }
.dr-dlg h2 { margin: 2px 0 0; font-family: var(--font-latin); font-size: 18px; font-weight: 700; text-align: start; }
html[dir="rtl"] .dr-dlg h2 { text-align: right; }
.dr-dlg__what { margin: 2px 0 0; color: var(--k-ink-2); font-size: 13px; }
.dr-dlg__x { display: grid; place-items: center; align-self: flex-start; }
.dr-dlg .bk { padding: 0 20px 22px; }

/* ---------- the booking panel (the list's drawer, a doctor's page) ---------- */
.bk-k { margin: 18px 0 10px; color: var(--k-ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.bk-k:first-child { margin-top: 4px; }
.bk-days { display: flex; gap: 6px; margin: 0 -4px; padding: 4px 4px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgb(170 225 220 / .2) transparent; }
.bk-day {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; padding: 9px 0 8px; border: 0; border-radius: 16px; scroll-snap-align: start;
  background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--k-line); color: var(--k-ink); font: 600 12px var(--font-body); cursor: pointer; transition: background-color .2s, box-shadow .2s;
}
.bk-day b { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.2; }
.bk-day small { color: var(--k-ink-2); font-size: 11px; }
.bk-day i { width: 6px; height: 6px; margin-top: 3px; border-radius: 50%; background: var(--lime); }
.bk-day:disabled { opacity: .35; cursor: default; }
.bk-day:disabled i { background: transparent; }
.bk-day:not(:disabled):hover { box-shadow: inset 0 0 0 1px rgb(170 225 220 / .45); }
.bk-day[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.bk-day[aria-pressed="true"] small { color: rgb(14 26 7 / .7); }
.bk-day[aria-pressed="true"] i { background: var(--lime-ink); }
.bk-times { min-height: 60px; }
.bk-group + .bk-group { margin-top: 12px; }
.bk-group p { margin: 0 0 6px; color: var(--k-ink-2); font-size: 12px; }
.bk-group div { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.bk-slot {
  min-height: 42px; border: 0; border-radius: 12px; background: rgb(143 227 230 / .08); box-shadow: inset 0 0 0 1px rgb(143 227 230 / .22);
  color: var(--k-ink); font: 700 14px var(--font-latin); letter-spacing: .02em; cursor: pointer; transition: background-color .2s, box-shadow .2s, color .2s;
}
.bk-slot:hover:not(:disabled) { background: rgb(154 242 30 / .14); box-shadow: inset 0 0 0 1.5px var(--lime); }
.bk-slot:disabled { background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); color: rgb(156 183 182 / .45); text-decoration: line-through; cursor: default; }
.bk-slot[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.bk-msg { margin: 0; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .05); color: var(--k-ink-2); font-size: 13.5px; line-height: 1.8; }
.bk-msg a { color: var(--lime); font-weight: 700; }
.bk-tz { margin: 14px 0 0; color: var(--k-ink-2); font-size: 12px; line-height: 1.7; }
.bk-load { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bk-load i { height: 42px; border-radius: 12px; background: linear-gradient(90deg, rgb(255 255 255 / .04), rgb(255 255 255 / .1), rgb(255 255 255 / .04)) 0 0 / 200% 100%; animation: bk-shine 1.2s linear infinite; }
@keyframes bk-shine { to { background-position: -200% 0; } }

.bk-form { display: grid; gap: 12px; margin-top: 6px; }
.bk-form[hidden], .bk-done[hidden], [data-bk-when][hidden] { display: none; }
.bk-chosen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; padding: 14px 16px; border-radius: 16px; background: rgb(154 242 30 / .1); box-shadow: inset 0 0 0 1px rgb(154 242 30 / .35); }
.bk-chosen span { width: 100%; color: var(--k-ink-2); font-size: 12px; }
.bk-chosen b { flex: 1; color: var(--lime); font-size: 16px; }
.bk-link { padding: 2px 0; border: 0; background: none; color: var(--k-cyan); font: 700 12.5px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk-field { display: grid; gap: 6px; font-size: 13px; color: var(--k-ink-2); }
.bk-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #FF8A7A; }
.bk-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.bk-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgb(255 120 100 / .12); color: #FFB4A8; font-size: 13px; line-height: 1.8; }
.bk-err[hidden] { display: none; }
.bk-send { min-height: 52px; border: 0; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 800 15px var(--font-body); cursor: pointer; }
.bk-send:disabled { opacity: .6; cursor: progress; }
.bk-done { padding: 6px 0 0; outline: none; }
.bk-done:focus-visible { outline: none; }
.bk-done__mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 14px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); }
.bk-done__mark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-done h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.bk-done p { margin: 8px 0 0; color: var(--k-ink-2); font-size: 14px; line-height: 1.9; }
.bk-ticket { margin: 16px 0 0; padding: 16px; border-radius: 18px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--k-line); }
.bk-ticket b { display: block; color: var(--lime); font-size: 17px; }
.bk-ticket span { display: block; margin-top: 4px; color: var(--k-ink-2); font-size: 13px; line-height: 1.7; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bk-acts .dr-btn { flex: 1 1 140px; }

/* ---------- narrower: the filters as a sheet ---------- */
.dr-scrim { position: fixed; inset: 0; z-index: 1000; background: rgb(2 8 12 / .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (max-width: 1099px) {
  .dr-body { grid-template-columns: minmax(0, 1fr); }
  .dr-filters {
    position: fixed; z-index: 1001; inset: auto 0 0; top: auto; max-height: min(86vh, 760px); padding: 18px 18px 0; border-radius: 26px 26px 0 0;
    background: #0B2530; translate: 0 105%; visibility: hidden; transition: translate .4s var(--ease-out), visibility 0s .4s;
  }
  .dr.is-sheet .dr-filters { translate: 0 0; visibility: visible; transition: translate .4s var(--ease-out); }
  .dr.is-sheet .dr-scrim { opacity: 1; pointer-events: auto; }
  .dr-x { display: grid; place-items: center; }
  .dr-filters__show { position: sticky; bottom: 0; display: flex; width: calc(100% + 36px); margin: 18px -18px 0; border-radius: 0; min-height: 58px; padding-bottom: env(safe-area-inset-bottom); background: var(--lime); color: var(--lime-ink); }
  .dr-bar { position: sticky; z-index: 30; top: var(--dr-stick, var(--header-h, 76px)); margin-inline: calc(-1 * var(--gutter, 16px)); padding: 10px var(--gutter, 16px); background: rgb(4 16 26 / .9); }
  html:not([data-tier="lite"]) .dr-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgb(4 16 26 / .72); }
  .dr-bar__filters { display: inline-flex; }
}
@media (max-width: 760px) {
  .dr-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "eyebrow" "title" "lead" "stats"; }
  .dr-eyebrow { margin-top: 14px; }
  .dr-lead { font-size: 14.5px; }
  .dr-stats { margin-top: 18px; }
  .dr-stats dd { font-size: 24px; }
  .dr-body { margin-top: 22px; }
  .dr-count { font-size: 17px; }
  .dr-sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dr-sort select { padding-inline: 12px 30px; font-size: 13px; }
  .dr-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dr-card { padding: 16px; }
  .dr-dlg, html[dir="rtl"] .dr-dlg { inset: auto 0 0; width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 26px 26px 0 0; }
  @keyframes dr-in { from { opacity: 0; translate: 0 60px; } }
}
.v-m .dr, .v-m .dd { --dr-stick: var(--m-bar); }
.v-m .dr-bar { margin-inline: -16px; padding-inline: 16px; }
.v-m .dr-filters { z-index: 60; }
.v-m .dr-scrim { z-index: 59; }
.v-m .page-inner.page-doctors, .v-m .page-inner.page-doctor { background: var(--k-night); color: var(--k-ink); }
.page-doctors.page-inner, .page-doctor.page-inner { background: var(--k-night); color: var(--k-ink); }
/* the header at night from the top (white words, a dark wash), the clinic's teal bar once the page moves */
.page-doctors .site-header, .page-doctor .site-header { --hn: 1; }

@media (prefers-reduced-motion: reduce) {
  .dr *, .dd *, .dr-dlg, .dr-dlg * { transition-duration: 0s !important; animation: none !important; }
}

/* ==========================================================================
   One doctor (pages/doctor.php)
   ========================================================================== */
.dd-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: rgb(255 179 71 / .12); color: #FFD08A; font-weight: 700; line-height: 1.8; }
.dd-id { display: flex; align-items: center; gap: 28px; margin-top: 26px; }
.dd-face { width: 148px; height: 148px; box-shadow: 0 0 0 2px rgb(143 227 230 / .5), 0 0 0 12px rgb(143 227 230 / .06), 0 0 60px rgb(143 227 230 / .25); }
.dd-face.is-none { font-size: 40px; }
.dd-id__txt { min-width: 0; }
.dd-id .dr-eyebrow { margin: 0; }
.dd-name { margin: 6px 0 0; font-family: var(--font-latin); font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-align: start; }
html[dir="rtl"] .dd-name { text-align: right; }
.dd-what { margin: 10px 0 0; color: var(--k-ink-2); font-size: 15px; }
.dd-what a, .dd-facts a { color: var(--k-ink); text-decoration: underline; text-decoration-color: rgb(143 227 230 / .4); text-underline-offset: 4px; }
.dd-next { justify-content: flex-start; margin-top: 12px; font-size: 14px; }

.dd-body { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; align-items: start; margin-top: 40px; }
.dd-side { position: sticky; top: calc(var(--header-h, 76px) + 18px); scroll-margin-top: calc(var(--header-h, 76px) + 18px); }
.dd-book { padding: 22px; border-radius: 28px; background: var(--k-glass); box-shadow: inset 0 0 0 1px var(--k-line), 0 30px 70px -40px rgb(0 0 0 / .9); }
html:not([data-tier="lite"]) .dd-book { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dd-book h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.dd-ask { display: inline-flex; margin-top: 14px; padding: 6px 4px; color: var(--k-cyan); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.dd-sec + .dd-sec { margin-top: 40px; }
.dd-sec h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.dd-where-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 26px; border-radius: 26px; background: var(--k-glass); box-shadow: inset 0 0 0 1px var(--k-line); }
.dd-fig { width: 120px; }
.dd-fig .dr-spot { cursor: default; }
.dd-facts { display: grid; gap: 16px; margin: 0; }
.dd-facts dt { color: var(--k-ink-2); font-size: 12.5px; }
.dd-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; }
.dd-facts .dd-facts__sub { font-size: 13px; font-weight: 600; }
.dd-facts .dd-facts__sub a { color: var(--k-cyan); }
.dd-about { margin: 0; color: var(--k-ink); font-size: 15.5px; line-height: 2; }
/* booking in three steps: they happen in this order */
.dd-how { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.dd-how li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--k-line); color: var(--k-ink); font-size: 14.5px; line-height: 1.8; counter-increment: how; }
.dd-how li::before { content: counter(how, persian); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(154 242 30 / .14); color: var(--lime); font: 800 14px var(--font-display); }
html:not([lang="fa"]) .dd-how li::before { content: counter(how); }
html[lang="ar"] .dd-how li::before { content: counter(how, arabic-indic); }
.dd-addr { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--k-line); }
.dd-addr > svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--k-cyan); stroke-width: 1.7; }
.dd-addr div { flex: 1; min-width: 0; }
.dd-addr b { display: block; font-size: 15px; }
.dd-addr bdi { display: block; margin-top: 2px; color: var(--k-ink-2); font-size: 13.5px; }
.dd-more { margin-top: 60px; }
.dd-more h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.dd-more + .dd-more { margin-top: 40px; }
.dd-back { max-width: 1400px; margin: 40px auto 0; }
.dd-back a { color: var(--k-ink-2); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1099px) {
  .dd-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dd-side { position: static; order: -1; }
}
@media (max-width: 760px) {
  .dd-id { gap: 16px; margin-top: 18px; }
  .dd-face { width: 96px; height: 96px; }
  .dd-name { font-size: 24px; }
  .dd-what { font-size: 13.5px; }
  .dd-book { padding: 18px 16px; margin-inline: -4px; }
  .dd-where-body { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .dd-fig { width: 84px; }
  .dd-addr { flex-wrap: wrap; }
  .dd-addr .dr-btn { width: 100%; }
}

/* phones: the app bar at night over these pages */
.page-doctors .m-bar, .page-doctor .m-bar { background: rgb(4 16 26 / .86); color: var(--k-ink); box-shadow: 0 1px 0 rgb(170 225 220 / .1); }
html[data-tier="lite"] .page-doctors .m-bar, html[data-tier="lite"] .page-doctor .m-bar { background: var(--k-night); }
.page-doctors .m-bar:not(.is-clear) .m-bar__btn, .page-doctor .m-bar:not(.is-clear) .m-bar__btn, .page-doctors .m-bar__chap, .page-doctor .m-bar__chap { background: rgb(255 255 255 / .08); color: var(--k-ink); }

/* phones: the sticky bar and the app bar without a blur (redrawn on every scrolled frame) */
.v-m .dr-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(4 16 26 / .97); }
.page-doctors .m-bar, .page-doctor .m-bar { background: rgb(4 16 26 / .97); }
.v-m .dr-filters, .v-m .dd-book { -webkit-backdrop-filter: none; backdrop-filter: none; }
