/* ==========================================================================
   1000 Doctor — by Artline Production
   Light editorial streaming UI. One accent (Artline orange), imagery-led cards.
   ========================================================================== */

/* ---------------------------------- Tokens -------------------------------- */
:root {
  --brand: #ef5e1d;          /* logo, display accents, focus — 3.3:1 on white (large text only) */
  --brand-strong: #c2470f;   /* text links + filled buttons — 5.0:1 on white */
  --brand-hover: #a93d0c;
  --brand-tint: #fff4ed;
  --brand-tint-2: #ffe6d8;
  --brand-light: #ff8a4c;    /* orange on dark surfaces and photos — 7.7:1 on #171615 */
  --charcoal: #2e2d2d;       /* logo wordmark */

  /* Semantic (Identity 2.0) */
  --success: #15803d; --success-bg: #f0fdf4; --success-line: #bbf7d0;
  --warning: #b45309; --warning-bg: #fffbeb; --warning-line: #fde68a;
  --error: #b91c1c;   --error-bg: #fef2f2;   --error-line: #fecaca;
  --info: #1f6f8b;    --info-bg: #eff7fa;    --info-line: #bfe0ec;
  --night: #0e0d0c; --night-2: #171615;

  /* Identity pattern: the quarter circle from the logo's small piece */
  --pat-quarter: radial-gradient(circle at 0 100%, rgba(239, 94, 29, .13) 0 23px, transparent 23.5px) 0 0 / 48px 48px;

  --ink: #1d1c1b;
  --ink-2: #44403c;
  --muted: #6d6660;          /* 5.5:1 on white */
  --line: #ece7e1;
  --line-2: #ddd6cd;
  --bg: #ffffff;
  --bg-alt: #f8f6f3;
  --bg-sunk: #f1ede8;

  --font-display: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --fs-12: .75rem; --fs-13: .8125rem; --fs-14: .875rem; --fs-15: .9375rem; --fs-16: 1rem;
  --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-24: 1.5rem;
  --fs-h2: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);
  --fs-statement: clamp(2rem, 1.2rem + 3vw, 3.75rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px; --s-11: 96px; --s-12: 128px;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(29, 28, 27, .05);
  --shadow-2: 0 2px 6px rgba(29, 28, 27, .04), 0 12px 32px rgba(29, 28, 27, .08);
  --shadow-3: 0 4px 12px rgba(29, 28, 27, .06), 0 32px 64px rgba(29, 28, 27, .14);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 160ms;
  --t: 260ms;
  --t-slow: 520ms;
}

/* ---------------------------------- Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-16); line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -.005em; text-wrap: balance; }
p { text-wrap: pretty; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class], nav ul, footer ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-tint-2); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.accent { color: var(--brand); }
.muted { color: var(--muted); }
.ui-icon { width: 1.25em; height: 1.25em; flex: none; }
.icon { width: 1em; height: 1em; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.rot-180 { transform: rotate(180deg); }
[dir="rtl"] .flip-rtl.rot-180 { transform: scaleX(-1) rotate(180deg); }

/* --------------------------------- Buttons -------------------------------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-15); line-height: 1; white-space: nowrap; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .ui-icon { width: 18px; height: 18px; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: var(--fs-14); }
.btn--lg { --h: 56px; padding: 0 32px; font-size: var(--fs-16); }
.btn--primary { background: var(--brand-strong); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff4ed; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--brand-strong); font-weight: 600; font-size: var(--fs-14); }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 16px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line); font-size: var(--fs-13); font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-1); }
.badge span[dir="ltr"] { font-weight: 600; color: var(--ink); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(239, 94, 29, .16); flex: none; }

/* ------------------------------ Announcement ------------------------------ */
.announce { background: var(--ink); color: #fff; font-size: var(--fs-14); text-align: center; }
.announce .container { padding-block: 10px; }
.announce a { display: inline-flex; align-items: center; gap: 8px; }
.announce a:hover { text-decoration: underline; text-underline-offset: 4px; }
.announce .ui-icon { width: 16px; height: 16px; }

/* --------------------------------- Header --------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.is-scrolled .site-header { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-8); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); flex: none; }
.brand__logo { height: 30px; width: auto; }
.brand__custom { height: 40px; width: auto; }
.brand__divider { width: 1px; height: 26px; background: var(--line-2); }
.brand__program { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-16); white-space: nowrap; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 500; font-size: var(--fs-15); transition: color var(--t-fast), background-color var(--t-fast); }
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.main-nav a.is-active { color: var(--ink); background: var(--bg-sunk); font-weight: 600; }
.main-nav__contact { display: none; }
.site-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s-2); }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 500; font-size: var(--fs-14); }
.lang-switch:hover { background: var(--bg-alt); color: var(--ink); }
.lang-switch .ui-icon { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); align-items: center; justify-content: center; }
.nav-toggle .ui-icon { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* ---------------------------------- Hero ---------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { /* soft studio light behind the featured video — light, not a pattern */
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; top: -320px; inset-inline-end: -260px;
  background: radial-gradient(closest-side, rgba(239, 94, 29, .13), rgba(239, 94, 29, 0)); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero__title { margin-top: var(--s-6); font-size: var(--fs-hero); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.hero__title .accent { display: block; }
:lang(en) .hero__title { font-size: clamp(2.375rem, 1.4rem + 3.2vw, 4rem); }
.hero__lead { margin-top: var(--s-6); max-width: 46ch; font-size: var(--fs-18); line-height: 1.8; color: var(--ink-2); }
.hero-search { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-8); max-width: 560px; height: 64px; padding-inline: 20px 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill); box-shadow: var(--shadow-2); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.hero-search:focus-within { border-color: var(--brand); box-shadow: var(--shadow-2), 0 0 0 4px rgba(239, 94, 29, .14); }
.hero-search > .ui-icon { width: 22px; height: 22px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: var(--fs-16); }
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: #8f877f; }
.hero-search .btn { --h: 48px; }
.hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s-4); font-size: var(--fs-14); color: var(--muted); }
.hero__popular a { padding: 4px 12px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--ink-2); font-weight: 500; transition: background-color var(--t-fast), color var(--t-fast); }
.hero__popular a:hover { background: var(--brand-tint); color: var(--brand-strong); }
.hero__stats { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: var(--s-9); }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats dd { font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__stats dt { margin-top: 4px; font-size: var(--fs-14); color: var(--muted); }

.feature { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; color: #fff; box-shadow: var(--shadow-3); isolation: isolate; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.feature:hover img { transform: scale(1.04); }
.feature__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 9, 8, .86) 0%, rgba(10, 9, 8, .45) 38%, rgba(10, 9, 8, 0) 62%); }
.feature__label { position: absolute; top: 20px; inset-inline-start: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .22); font-size: var(--fs-13); font-weight: 600; }
.feature__info { position: absolute; inset-inline: 28px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; padding-inline-end: 72px; }
.feature__tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-14); font-weight: 600; color: var(--brand-light); }
.feature__tag .icon { width: 20px; height: 20px; }
.feature__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 700; line-height: 1.2; }
.feature__meta { display: flex; gap: 14px; font-size: var(--fs-14); color: rgba(255, 255, 255, .82); }
.feature__meta .sep { opacity: .6; }
.feature__play { position: absolute; inset-inline-end: 28px; bottom: 28px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform var(--t) var(--ease); }
.feature__play .ui-icon { width: 24px; height: 24px; margin-left: 3px; }
.feature__play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feature:hover .feature__play { transform: scale(1.08); }
.feature--soon { display: grid; place-items: center; }
.feature .feature__logo { position: static; inset: auto; z-index: 0; width: 42%; height: auto; object-fit: contain; opacity: .95; margin-bottom: 18%; transform: none; }
.feature--soon .feature__info { padding-inline-end: 0; }

/* -------------------------------- Sections -------------------------------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: clamp(24px, 3vw, 40px); }
.sec-title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.015em; }
.sec-sub { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-16); }
.sec-link { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-weight: 600; font-size: var(--fs-14); transition: border-color var(--t-fast), background-color var(--t-fast); }
.sec-link:hover { border-color: var(--ink); }
.sec-link .ui-icon { width: 16px; height: 16px; }

/* ---------------------------------- Rails --------------------------------- */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-col, 200px); gap: var(--s-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 12px; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline-offset: 4px; }
.rail__item { scroll-snap-align: start; }
.rail__item--doctor { --rail-col: 220px; }
.rail:has(.rail__item--doctor) .rail__track { grid-auto-columns: 220px; gap: var(--s-6); }
.rail__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: var(--s-4); }
.rail__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; color: var(--ink); transition: border-color var(--t-fast), opacity var(--t-fast); }
.rail__btn:hover:not(:disabled) { border-color: var(--ink); }
.rail__btn:disabled { opacity: .35; cursor: default; }
.rail__btn .ui-icon { width: 18px; height: 18px; }

/* Specialty tile */
.stile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 20px 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.stile:hover { border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-2); }
.stile__icon { width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 14px; transition: background-color var(--t), color var(--t); }
.stile:hover .stile__icon { background: var(--brand); color: #fff; }
.stile__icon .icon { width: 30px; height: 30px; }
.stile__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-16); line-height: 1.4; }
.stile__count { font-size: var(--fs-13); color: var(--muted); }

/* ------------------------------- Toolbar ---------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px; margin-bottom: var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-1); }
.toolbar__search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 48px; padding-inline: 16px; border-radius: var(--r-pill); background: var(--bg-alt); }
.toolbar__search .ui-icon { width: 20px; height: 20px; color: var(--muted); }
.toolbar__search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 100%; font-size: var(--fs-15); }
.toolbar__search input:focus { outline: none; }
.toolbar__search:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.toolbar__select select {
  height: 48px; padding-inline: 18px 40px; border-radius: var(--r-pill); border: 1px solid var(--line); background-color: var(--bg); font-size: var(--fs-14); font-weight: 500; color: var(--ink);
  appearance: none; -webkit-appearance: none; max-width: 220px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d6660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: left 16px center;
}
[dir="ltr"] .toolbar__select select { padding-inline: 18px 40px; background-position: right 16px center; }
[dir="rtl"] .toolbar__select select { padding-inline: 18px 40px; }
.toolbar__select select:hover { border-color: var(--line-2); }
.toolbar__select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(239, 94, 29, .14); }
.toolbar .btn { --h: 48px; }
.toolbar__more { display: contents; }
.toolbar__toggle { display: none; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); font-size: var(--fs-14); font-weight: 600; }
.toolbar__toggle .ui-icon { width: 18px; height: 18px; }
.toolbar__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--brand-strong); color: #fff; font-size: var(--fs-12); display: inline-grid; place-items: center; }
.toolbar--compact { display: inline-flex; margin-bottom: var(--s-8); }
.toolbar__status { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-6); font-size: var(--fs-14); color: var(--muted); }
.toolbar__status strong { color: var(--ink); font-weight: 600; }
.toolbar__status a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-strong); font-weight: 600; }
.toolbar__status a .ui-icon { width: 16px; height: 16px; }
.toolbar + .vgrid, .toolbar + .empty { margin-top: var(--s-7); }

/* ------------------------------- Video card ------------------------------- */
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.vcard__link { display: block; border-radius: var(--r-lg); }
.vcard__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; background: #1f1c1a; }
.vcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease); }
.vcard__link:hover .vcard__media img { transform: scale(1.05); }
.vcard__glyph { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; color: rgba(255, 255, 255, .16); }
.vcard__glyph .icon { width: 46%; height: auto; aspect-ratio: 1; }
.vcard__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 9, 8, .88) 0%, rgba(10, 9, 8, .5) 36%, rgba(10, 9, 8, 0) 64%); }
.vcard__duration { position: absolute; top: 14px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(10, 9, 8, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--fs-12); font-weight: 600; font-variant-numeric: tabular-nums; }
[dir="rtl"] .vcard__duration { left: 14px; }
[dir="ltr"] .vcard__duration { right: 14px; }
.vcard__play { position: absolute; top: 14px; inset-inline-start: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .3); transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease); }
.vcard__play .ui-icon { width: 18px; height: 18px; margin-left: 2px; }
.vcard__link:hover .vcard__play { background: #fff; color: var(--brand-strong); transform: scale(1.06); }
.vcard__info { position: absolute; inset-inline: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.vcard__tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--brand-light); }
.vcard__tag .icon { width: 18px; height: 18px; }
.vcard__title { font-size: var(--fs-20); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__doctor { font-size: var(--fs-14); color: rgba(255, 255, 255, .8); }
.vcard__link:focus-visible { outline-offset: 4px; }

/* ------------------------------- Doctor card ------------------------------ */
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.dcard { display: flex; flex-direction: column; gap: 2px; }
.dcard__photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunk); margin-bottom: 14px; }
.dcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--t-slow) var(--ease); }
.dcard:hover .dcard__photo img { transform: scale(1.04); }
.monogram { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; color: rgba(255, 255, 255, .92); letter-spacing: .02em; }
.dcard__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-18); line-height: 1.4; transition: color var(--t-fast); }
.dcard:hover .dcard__name { color: var(--brand-strong); }
.dcard__meta { font-size: var(--fs-14); color: var(--ink-2); }
.dcard__count { font-size: var(--fs-13); color: var(--muted); }

/* -------------------------------- Statement ------------------------------- */
.statement { padding-block: clamp(64px, 9vw, 128px); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.statement__title { font-size: var(--fs-statement); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.statement__title .accent { display: block; }
.statement__list { display: grid; gap: 0; }
.statement__list li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-4); padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.statement__list li:first-child { padding-top: 6px; }
.statement__num { grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-14); color: var(--brand-strong); padding-top: 4px; font-variant-numeric: tabular-nums; }
.statement__list h3 { font-size: var(--fs-20); font-weight: 600; }
.statement__list p { margin-top: 4px; color: var(--muted); }

/* ------------------------------ Cinematic band ----------------------------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: 520px; display: flex; align-items: flex-end; }
.band__media, .band__media img { position: absolute; inset: 0; width: 100%; height: 115%; z-index: -2; }
.band__media img { object-fit: cover; transform: translateY(var(--parallax, 0)); will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 8, 5, .85), rgba(12, 8, 5, .25) 60%, rgba(12, 8, 5, .1)); }
.band__inner { padding-block: 96px 72px; }
.band__eyebrow { font-size: var(--fs-14); font-weight: 600; color: var(--brand-light); }
.band__quote { margin-top: var(--s-3); max-width: 22ch; font-family: var(--font-display); font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.25; }
.band .btn { margin-top: var(--s-6); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; color: var(--ink); }

/* ----------------------------------- CTA ---------------------------------- */
/* All text on the brand orange is ≥ 24px or ≥ 18.66px bold (WCAG large text). */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-8); padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); background: var(--brand); color: #fff; }
.cta__copy { max-width: 620px; }
.cta h2 { font-size: var(--fs-h2); font-weight: 800; }
.cta p { margin-top: var(--s-3); font-size: var(--fs-20); font-weight: 700; line-height: 1.6; color: #fff; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: var(--fs-20); font-weight: 700; color: #fff; }
.cta__phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.cta__phone .ui-icon { width: 22px; height: 22px; }

/* --------------------------------- Footer --------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); color: var(--ink-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.4fr; gap: var(--s-7); padding-bottom: var(--s-9); }
.site-footer__bottom a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom a:hover { color: var(--brand-strong); }
.site-footer__logo { width: 150px; height: auto; }
.site-footer__brand > p { margin-top: var(--s-5); max-width: 30ch; color: var(--muted); }
.site-footer h2 { font-family: var(--font); font-size: var(--fs-14); font-weight: 600; color: var(--ink); margin-bottom: var(--s-4); }
.site-footer__col ul { display: grid; gap: 4px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 34px; color: var(--ink-2); transition: color var(--t-fast); }
.site-footer__col a:hover { color: var(--brand-strong); }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list .ui-icon { width: 18px; height: 18px; margin-top: 8px; color: var(--brand-strong); }
.contact-list a { line-height: 1.55; padding-block: 5px; }
.social { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.social--center { justify-content: center; margin-top: var(--s-8); }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg); transition: color var(--t-fast), border-color var(--t-fast); }
.social a:hover { color: var(--brand-strong); border-color: var(--brand); }
.social .ui-icon { width: 20px; height: 20px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: var(--s-6); border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--muted); }

/* ------------------------------ Inner headers ----------------------------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-18); max-width: 60ch; }
.page-hero__meta a { color: var(--brand-strong); font-weight: 600; }

/* ------------------------------- Watch page ------------------------------- */
.watch { padding-block: var(--s-7) var(--s-9); }
.player { position: relative; aspect-ratio: 16 / 9; background: #0e0d0c; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-3); }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0e0d0c; }
.player__empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .75); }
.watch__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.watch__main { min-width: 0; }
.watch__meta { margin-top: var(--s-7); }
.watch__meta h1 { margin-top: var(--s-4); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; }
.watch__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-14); }
.watch__stats span { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.watch__stats .ui-icon { width: 18px; height: 18px; }
.watch__meta .prose { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--bg-alt); font-size: var(--fs-14); font-weight: 500; color: var(--ink-2); transition: background-color var(--t-fast), color var(--t-fast); }
.tag:hover { background: var(--bg-sunk); color: var(--ink); }
.tag--specialty { background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; }
.tag--specialty:hover { background: #ffe6d8; color: var(--brand-hover); }
.tag--specialty .icon { width: 18px; height: 18px; }
.doctor-mini { margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--r-lg); background: var(--bg-alt); position: sticky; top: calc(var(--header-h) + 24px); }
.doctor-mini__head { display: flex; align-items: center; gap: 14px; }
.doctor-mini__photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; }
.doctor-mini__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doctor-mini__photo .monogram { font-size: 1.25rem; }
.doctor-mini h2 { font-size: var(--fs-18); font-weight: 600; }
.doctor-mini h2 a:hover { color: var(--brand-strong); }
.doctor-mini__title { font-size: var(--fs-14); color: var(--muted); }
.doctor-mini__bio { margin-top: var(--s-4); font-size: var(--fs-15); color: var(--ink-2); line-height: 1.75; }
.doctor-mini .btn { width: 100%; }

/* ---------------------------------- Prose --------------------------------- */
.prose { color: var(--ink-2); line-height: 1.9; max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-24); color: var(--ink); }
.prose h3 { font-size: var(--fs-20); color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-inline: 0; padding: 14px 22px; border-inline-start: 3px solid var(--brand); background: var(--bg-alt); border-radius: var(--r-sm); }
.prose--lg { font-size: var(--fs-18); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.article-cover { width: 100%; border-radius: var(--r-xl); margin-bottom: var(--s-8); aspect-ratio: 16 / 8; object-fit: cover; }

/* ------------------------------- Legal pages ------------------------------ */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal__label { font-size: var(--fs-13); font-weight: 600; color: var(--muted); margin-bottom: var(--s-3); }
.legal__nav ul { display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
.legal__nav a { display: block; padding: 8px 16px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--ink-2); font-size: var(--fs-15); transition: color var(--t-fast), border-color var(--t-fast); }
.legal__nav a:hover { color: var(--ink); }
.legal__nav a.is-active { color: var(--brand-strong); border-inline-start-color: var(--brand); font-weight: 600; }
.legal__body h2 { font-size: var(--fs-20); margin-top: 1.8em; }
.legal__body h2:first-child { margin-top: 0; }
.medical-note { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s-6); padding: 14px 16px; border-radius: var(--r); background: var(--bg-alt); font-size: var(--fs-14); color: var(--ink-2); }
.medical-note .ui-icon { width: 20px; height: 20px; color: var(--brand-strong); margin-top: 2px; }
.medical-note a { color: var(--brand-strong); font-weight: 600; white-space: nowrap; }

/* ------------------------------ Doctor profile ---------------------------- */
.profile { padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.profile__inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.profile__photo { aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; display: grid; place-items: center; background: var(--bg-sunk); box-shadow: var(--shadow-2); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile__photo .monogram { font-size: 4.5rem; }
.profile__info h1 { margin-top: var(--s-5); font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.profile__title { margin-top: var(--s-3); font-size: var(--fs-20); color: var(--ink-2); }
.profile__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-6); }
.profile__facts li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--ink-2); font-size: var(--fs-14); font-weight: 500; }
.profile__facts .ui-icon { width: 18px; height: 18px; color: var(--brand-strong); }
.profile__bio { margin-top: var(--s-6); max-width: 62ch; color: var(--ink-2); font-size: var(--fs-18); line-height: 1.85; }
.profile__bio p + p { margin-top: .7em; }

/* ------------------------------ Specialty grid ---------------------------- */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s-4); }

/* ------------------------------- Article cards ---------------------------- */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.acard { display: flex; flex-direction: column; }
.acard__cover { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.acard__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.acard:hover .acard__cover img { transform: scale(1.04); }
.acard__cover .ui-icon { width: 44px; height: 44px; }
.acard__body { padding-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.acard h3 { font-size: var(--fs-20); font-weight: 700; line-height: 1.4; transition: color var(--t-fast); }
.acard:hover h3 { color: var(--brand-strong); }
.acard p { color: var(--ink-2); }
.acard__meta { font-size: var(--fs-14); color: var(--muted); }

/* --------------------------------- Contact -------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.contact-item { display: flex; align-items: center; gap: var(--s-5); height: 100%; padding: var(--s-6); border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid transparent; transition: border-color var(--t-fast), background-color var(--t-fast); }
.contact-item:hover { background: var(--bg); border-color: var(--line-2); }
.contact-item__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--brand-strong); box-shadow: var(--shadow-1); }
.contact-item__label { display: block; font-size: var(--fs-14); color: var(--muted); }
.contact-item__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-18); color: var(--ink); overflow-wrap: anywhere; }
[dir="rtl"] .contact-item__value[dir="ltr"] { text-align: right; }

/* -------------------------- Pagination / empty / 404 ---------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: var(--s-9); }
.pagination__page, .pagination__step { min-width: 44px; height: 44px; padding-inline: 14px; display: inline-grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg); font-weight: 600; font-size: var(--fs-14); color: var(--ink-2); font-variant-numeric: tabular-nums; transition: border-color var(--t-fast); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination__page.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination__gap { color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); text-align: center; padding: var(--s-11) var(--s-6); border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line); }
.empty__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--muted); }
.empty__icon .ui-icon { width: 26px; height: 26px; }
.empty__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-20); }
.notfound { text-align: center; padding-block: var(--s-12); }
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.notfound h1 { font-size: var(--fs-h2); margin-top: var(--s-4); }
.notfound p.muted { margin-top: var(--s-2); }
.notfound .btn { margin-top: var(--s-7); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-14); box-shadow: var(--shadow-3); z-index: 300; }

/* Tones for artwork-less items — declared late so they win over component backgrounds (warm, cinematic, all dark enough for white text) */
.tone-0 { background: radial-gradient(120% 90% at 20% 0%, #5a2a14 0%, #241a16 60%, #161211 100%); }
.tone-1 { background: radial-gradient(120% 90% at 80% 0%, #2f4a55 0%, #1a2328 60%, #111517 100%); }
.tone-2 { background: radial-gradient(120% 90% at 30% 10%, #7a3a1a 0%, #2a1d17 60%, #15100e 100%); }
.tone-3 { background: radial-gradient(120% 90% at 70% 10%, #4d5a50 0%, #1f2422 60%, #121514 100%); }
.tone-4 { background: radial-gradient(120% 90% at 50% 0%, #8f3a12 0%, #2b1a13 60%, #150f0c 100%); }
.tone-5 { background: radial-gradient(120% 90% at 20% 10%, #3c5560 0%, #1b2327 60%, #101416 100%); }
.tone-6 { background: radial-gradient(120% 90% at 80% 10%, #6b4630 0%, #261d18 60%, #13100e 100%); }
.tone-7 { background: radial-gradient(120% 90% at 40% 0%, #3d4a5a 0%, #1c2128 60%, #111317 100%); }

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 1200px) {
  .vgrid, .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3); padding: 12px var(--gutter) 24px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t); }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { height: 52px; padding: 0 14px; font-size: var(--fs-18); border-radius: var(--r); }
  .main-nav__contact { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .feature { aspect-ratio: 16 / 11; }
  .hero::before { top: auto; bottom: -300px; }
  .watch__inner { grid-template-columns: 1fr; }
  .doctor-mini { position: static; }
  .statement__grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: var(--s-6); }
  .legal__nav { position: static; }
  .legal__nav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .legal__nav a { border: 1px solid var(--line-2); border-radius: var(--r-pill); margin: 0; padding: 6px 14px; font-size: var(--fs-14); }
  .legal__nav a.is-active { border-color: var(--brand); background: var(--brand-tint); }
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile__inner { grid-template-columns: 240px 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .vgrid, .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .vcard__title { font-size: var(--fs-16); }
  .vcard__info { inset-inline: 14px; bottom: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .toolbar { border-radius: var(--r-lg); }
  .toolbar__search { flex: 1 1 0; }
  .toolbar__toggle { display: inline-flex; }
  .toolbar__toggle span:not(.toolbar__count) { display: none; }
  .toolbar__more { display: none; flex: 1 1 100%; flex-direction: column; gap: 10px; }
  .toolbar__more.is-open { display: flex; }
  .toolbar__select select { width: 100%; max-width: none; }
  .toolbar__submit { display: none; }
  .toolbar__more.is-open ~ .toolbar__submit { display: inline-flex; flex: 1 1 100%; }
  .profile__inner { grid-template-columns: 1fr; }
  .profile__photo { width: min(260px, 70%); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .rail__nav { display: none; }
}
@media (max-width: 560px) {
  .brand__logo { height: 22px; }
  .brand__divider, .brand__program { display: none; }
  .lang-switch span { display: none; }
  .lang-switch { width: 44px; padding: 0; justify-content: center; }
  .hero-search { height: 56px; padding-inline: 16px 6px; }
  .hero-search .btn { --h: 44px; padding: 0 18px; }
  .hero__stats { margin-top: var(--s-8); }
  .feature { aspect-ratio: 4 / 5; }
  .feature__info { inset-inline: 20px; bottom: 20px; padding-inline-end: 64px; }
  .feature__play { width: 52px; height: 52px; inset-inline-end: 20px; bottom: 20px; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vcard__media { aspect-ratio: 3 / 4; border-radius: var(--r); }
  .vcard__title { font-size: var(--fs-15); -webkit-line-clamp: 3; }
  .vcard__tag { font-size: var(--fs-12); }
  .vcard__doctor { font-size: var(--fs-12); }
  .vcard__play { width: 36px; height: 36px; top: 10px; inset-inline-start: 10px; }
  [dir="rtl"] .vcard__duration { left: 10px; }
  [dir="ltr"] .vcard__duration { right: 10px; }
  .vcard__duration { top: 12px; }
  .agrid { grid-template-columns: 1fr; }
  .rail__track { grid-auto-columns: 168px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .rail:has(.rail__item--doctor) .rail__track { grid-auto-columns: 172px; gap: var(--s-4); }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ==========================================================================
   Spacing rhythm (tuned for Cairo): one section scale, no doubled gaps.
   ========================================================================== */
:root {
  --section-y: clamp(56px, 5.5vw, 88px);
  --head-gap: clamp(24px, 2.4vw, 36px);
}
body { line-height: 1.65; }
p { line-height: 1.75; }
.section, .statement { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .7); }
.section--flush-top { padding-top: 0; }
/* Two sections on the same background read as one block — don't stack both paddings. */
.section:not(.section--alt) + .section:not(.section--alt),
.section:not(.section--alt) + .statement,
.statement + .section:not(.section--alt),
.section--alt + .section--alt { padding-top: 0; }
.sec-head { margin-bottom: var(--head-gap); }
.sec-title { line-height: 1.3; }
.sec-sub { margin-top: 6px; }

/* Platform hero: tighter, balanced vertical rhythm */
.hero__grid { padding-block: clamp(32px, 4.5vw, 64px) clamp(40px, 5vw, 72px); gap: clamp(32px, 5vw, 80px); }
.hero__title { margin-top: var(--s-5); line-height: 1.15; }
.hero__lead { margin-top: var(--s-4); }
.hero-search { margin-top: var(--s-7); }
.hero__popular { margin-top: var(--s-3); gap: 6px; }
.hero__stats { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hero__actions { align-items: center; }
.hero + .section { padding-top: clamp(32px, 3.5vw, 56px); }

/* Statement: align columns, remove dead space */
.statement__grid { align-items: center; }
.statement__list li { padding-block: var(--s-5); }
.statement__list h3 { line-height: 1.4; }
.statement__list p { margin-top: 2px; }

/* Cards: compact text blocks */
.vcard__info { gap: 4px; }
.vcard__title { line-height: 1.35; }
.stile { gap: 4px; padding: 20px 18px 18px; }
.stile__icon { margin-bottom: 10px; }
.dcard__photo { margin-bottom: 12px; }
.acard__body { padding-top: var(--s-4); gap: 6px; }

/* Rails: nav buttons sit closer to the cards */
.rail__nav { margin-top: var(--s-3); }

/* Band + CTA */
.band { min-height: 460px; }
.band__inner { padding-block: 80px 64px; }
.cta { gap: var(--s-6); }
.cta p { margin-top: var(--s-2); }

/* Footer */
.site-footer { padding-top: clamp(48px, 5vw, 72px); }
.site-footer__grid { padding-bottom: var(--s-8); }
.site-footer__brand > p { margin-top: var(--s-4); }

/* Inner pages */
.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 3.5vw, 44px); }
.watch { padding-block: var(--s-6) var(--section-y); }

/* Plain backgrounds: no orange glow behind sections, no orange-tinted shadows. */
.hero::before { display: none; }

/* Centers */
.chips--start { justify-content: flex-start; margin: 0 0 var(--head-gap); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); }
.ccard { display: flex; flex-direction: column; gap: 4px; padding: var(--s-6); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: border-color var(--t), box-shadow var(--t), transform var(--t) var(--ease); }
.ccard:hover { border-color: transparent; box-shadow: var(--shadow-2); transform: translateY(-3px); }
.ccard__logo { width: 64px; height: 64px; border-radius: var(--r); display: grid; place-items: center; background: var(--bg-alt); color: var(--brand-strong); overflow: hidden; margin-bottom: var(--s-4); }
.ccard__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.ccard__logo .ui-icon { width: 28px; height: 28px; }
.ccard__logo--lg { width: 96px; height: 96px; margin: 0; flex: none; }
.ccard__type { font-size: var(--fs-13); font-weight: 600; color: var(--brand-strong); }
.ccard__name { font-weight: 700; font-size: var(--fs-18); line-height: 1.4; }
.ccard__count { margin-top: auto; padding-top: var(--s-2); font-size: var(--fs-13); color: var(--muted); }
.center-hero__inner { display: flex; gap: var(--s-6); align-items: flex-start; }
.center-hero__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.profile__facts a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin-block: -8px; padding-block: 8px; }
.profile__facts a:hover { color: var(--brand-strong); }
@media (max-width: 560px) { .center-hero__inner { flex-direction: column; } }

/* ==========================================================================
   Home — client layout in the Artline identity
   ========================================================================== */
.accent-light { color: var(--brand-light); }
@keyframes line-up { from { transform: translateY(105%); } }

/* Hero: full-width still, copy on the reading side */
.mhero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: clamp(420px, 62vh, 600px); display: flex; align-items: center; }
.mhero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 24s ease-in-out infinite alternate; }
.mhero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to var(--end), rgba(14, 10, 8, .9) 0%, rgba(14, 10, 8, .7) 32%, rgba(14, 10, 8, .15) 70%, rgba(14, 10, 8, 0) 100%); }
.mhero__inner { padding-block: 64px 96px; }
.mhero__copy { max-width: 520px; }
.mhero__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); font-weight: 800; line-height: 1.15; }
.mhero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.mhero__title .line > span { display: inline-block; animation: line-up 1000ms cubic-bezier(.2, .8, .2, 1) both; }
.mhero__title .line:nth-child(2) > span { animation-delay: 120ms; }
.mhero__lead { margin-top: var(--s-4); font-size: var(--fs-20); color: rgba(255, 255, 255, .9); animation: rise 800ms 300ms var(--ease) both; }
.mhero .btn { margin-top: var(--s-7); animation: rise 800ms 420ms var(--ease) both; }
.mhero .btn svg { fill: currentColor; }
.mhero__note { margin-top: var(--s-7); padding-top: var(--s-4); max-width: 280px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: var(--fs-15); line-height: 1.7; color: rgba(255, 255, 255, .8); animation: rise 800ms 540ms var(--ease) both; }

/* Search overlapping the hero + specialty chips */
.mfilters { position: relative; z-index: 3; margin-top: -36px; }
.msearch { display: flex; align-items: center; gap: 12px; max-width: 860px; margin-inline: auto; height: 68px; padding-inline: 22px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(29, 28, 27, .1); }
.msearch:focus-within { border-color: var(--brand); }
.msearch > .ui-icon { width: 22px; height: 22px; color: var(--muted); }
.msearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: var(--fs-16); }
.msearch input:focus { outline: none; }
.mchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--s-5); }
.mchips .chip { gap: 8px; }
.mchips .chip .icon { width: 18px; height: 18px; color: var(--brand); }
.mchips .chip.is-active { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.mchips .chip.is-active .icon { color: #fff; }
.mfilters .toolbar__status { justify-content: center; margin: var(--s-4) 0 0; }

/* Centered section title with side rules */
.msection { padding-top: clamp(40px, 4vw, 64px); }
.mhead { text-align: center; margin-bottom: var(--head-gap); }
.mhead__title { display: inline-flex; align-items: center; gap: 20px; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; }
.mhead__title::before, .mhead__title::after { content: ""; width: clamp(32px, 8vw, 120px); height: 2px; border-radius: 2px; background: linear-gradient(to var(--start), transparent, var(--brand)); }
.mhead__title::after { background: linear-gradient(to var(--end), transparent, var(--brand)); }
.mhead__sub { margin-top: 6px; color: var(--muted); }

/* Horizontal advice cards */
.hgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.hcard { display: flex; }
.hcard .hcard__link { flex: 1; }
.hcard__link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46%; min-height: 176px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.hcard__link:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(29, 28, 27, .1); border-color: transparent; }
.hcard__info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; padding: 16px 14px 14px; }
.hcard__icon { color: var(--brand); margin-bottom: 4px; }
.hcard__icon .icon { width: 44px; height: 44px; transition: transform 400ms var(--ease); }
.hcard__link:hover .hcard__icon .icon { transform: scale(1.1) rotate(-5deg); }
.hcard__spec { font-weight: 800; font-size: var(--fs-16); line-height: 1.35; color: var(--ink); }
.hcard__title { font-size: var(--fs-13); font-weight: 500; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard__by { width: 100%; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 1px; justify-items: center; min-width: 0; }
.hcard__title { margin-bottom: 10px; }
.hcard__doctor { font-size: var(--fs-13); font-weight: 800; color: var(--ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard__role { font-size: 12px; font-weight: 600; color: var(--brand-strong); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard__places { display: grid; justify-items: center; max-width: 100%; margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hcard__places span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard__photo { position: relative; display: grid; place-items: center; background: var(--bg-alt); overflow: hidden; }
.hcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 600ms var(--ease); }
.hcard__link:hover .hcard__photo img { transform: scale(1.05); }
.hcard__photo .monogram { font-size: 2rem; }
.hcard__play { position: absolute; top: calc(50% - 18px); inset-inline-end: calc(46% - 18px); z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-strong); color: #fff; border: 3px solid #fff; transition: transform var(--t) var(--ease); }
.hcard__play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.hcard__link:hover .hcard__play { transform: scale(1.12); }

/* Mission band */
.mband { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: 420px; display: flex; align-items: center; }
.mband__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mband__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to var(--end), rgba(14, 10, 8, .9) 0%, rgba(14, 10, 8, .65) 40%, rgba(14, 10, 8, .1) 85%); }
.mband__inner { padding-block: 72px; }
.mband__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; line-height: 1.25; }
.mband__title span { display: block; }
.mband__lead { margin-top: var(--s-3); font-size: var(--fs-20); color: rgba(255, 255, 255, .88); }
.mband__features { display: flex; margin-top: var(--s-7); max-width: 520px; }
.mband__features li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 12px; text-align: center; font-size: var(--fs-15); font-weight: 600; }
.mband__features li + li { border-inline-start: 1px solid rgba(255, 255, 255, .3); }
.mband__features .ui-icon { width: 30px; height: 30px; color: var(--brand-light); stroke-width: 1.5; }

/* Closing band */
.mcta { position: relative; overflow: hidden; background: var(--bg-alt); padding-block: 56px 64px; }
.skyline { position: absolute; inset: auto 0 0; width: 100%; height: 100%; pointer-events: none; }
[dir="ltr"] .skyline { transform: scaleX(-1); }
.skyline__city { fill: #e3dbd0; }
.skyline__desert > path:first-child { fill: #ede3d3; }
.skyline__palm { fill: none; stroke: #d6c6ad; stroke-width: 3; stroke-linecap: round; }
.mcta__inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.mcta__main { grid-column: 2; text-align: center; }
.mcta__main h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; margin-bottom: var(--s-5); }
.mcta__main .btn svg { fill: currentColor; color: var(--brand-light); }
.mcta__aside { grid-column: 1; grid-row: 1; font-size: var(--fs-18); color: var(--ink-2); line-height: 1.4; }
.mcta__aside strong { display: block; font-size: var(--fs-24); font-weight: 800; color: var(--brand-strong); }

@media (max-width: 1200px) { .hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcta__inner { grid-template-columns: 1fr; text-align: center; }
  .mcta__main, .mcta__aside { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .mhero { min-height: 0; }
  .mhero__scrim { background: linear-gradient(to top, rgba(14, 10, 8, .92), rgba(14, 10, 8, .55)); }
  .mhero__inner { padding-block: 56px 80px; }
  .msearch { height: 58px; padding-inline: 16px 8px; }
  .msearch .btn { display: none; }
  .mchips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .mchips::-webkit-scrollbar { display: none; }
  .mchips .chip { flex: none; }
  .hgrid { grid-template-columns: 1fr; }
  .mhead__title { gap: 10px; }
  .mband__features li { font-size: var(--fs-13); padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .mhero__img, .mhero__title .line > span, .mhero__lead, .mhero .btn, .mhero__note { animation: none !important; }
}

/* Chips (specialty / type filters) */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line-2);
  color: var(--ink-2); font-weight: 600; font-size: var(--fs-14); cursor: pointer; white-space: nowrap;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.chip:active { transform: scale(.97); }
.chip.is-active { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.chip--ghost { background: transparent; border-style: dashed; }
.chip .ui-icon { width: 16px; height: 16px; }
.chip[hidden] { display: none; }

/* Hero copy must stay readable over any photo */
.mhero__scrim { background: linear-gradient(to var(--end), rgba(14, 10, 8, .94) 0%, rgba(14, 10, 8, .86) 38%, rgba(14, 10, 8, .35) 68%, rgba(14, 10, 8, .1) 100%); }
.mhero__title, .mhero__lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* Reading-direction tokens for directional gradients (RTL default). */
:root { --start: right; --end: left; }
[dir="ltr"] { --start: left; --end: right; }

/* ------------------------------ Video player ------------------------------ */
/* Native controls stay as the no-JS fallback; player.js adds .vp--ready and the floating glass bar. */
.vp { container-type: inline-size; isolation: isolate; }
.vp:focus { outline: none; }
.vp video { cursor: pointer; }
.vp:not(.vp--ready) :is(.vp__bar, .vp__big, .vp__spinner) { display: none; }
.vp.is-idle, .vp.is-idle video { cursor: none; }

.vp__big { position: absolute; z-index: 2; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand-strong); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); cursor: pointer; transition: opacity 300ms var(--ease), transform 400ms cubic-bezier(.34, 1.56, .64, 1), background-color var(--t-fast); }
.vp__big:hover { background: var(--brand-hover); transform: scale(1.08); }
.vp__big:active { transform: scale(.94); }
.vp__big:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.vp__big .ui-icon { width: 30px; height: 30px; }
.vp__big .vp__i-play { fill: currentColor; margin-left: 4px; }
.vp.is-playing .vp__big { opacity: 0; transform: scale(.7); pointer-events: none; }

.vp__spinner { position: absolute; z-index: 2; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .22); border-top-color: #fff; opacity: 0; pointer-events: none; transition: opacity 200ms; }
.vp.is-waiting.is-playing .vp__spinner { opacity: 1; animation: vp-spin 800ms linear infinite; }
@keyframes vp-spin { to { transform: rotate(360deg); } }

.vp__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; width: calc(100% - 20px); max-width: 620px; margin: 0 auto 10px; padding: 10px 14px 8px; border-radius: 16px; background: rgba(17, 17, 17, .6); border: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); color: #fff; font-family: 'Cairo', system-ui, sans-serif; transition: opacity 450ms cubic-bezier(.22, 1, .36, 1), transform 550ms cubic-bezier(.34, 1.4, .64, 1), filter 450ms cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.vp.is-playing.is-idle .vp__bar { opacity: 0; transform: translateY(20px); filter: blur(10px); visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, 0s, 550ms; }

.vp__row { display: flex; align-items: center; gap: 10px; }
.vp__row--controls { justify-content: space-between; margin-top: 4px; }
.vp__group { display: flex; align-items: center; gap: 4px; }
.vp__time { min-width: 40px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; color: rgba(255, 255, 255, .92); }

.vp__slider { position: relative; flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vp__slider::before, .vp__buffer, .vp__fill { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; transition: height 160ms var(--ease), margin 160ms var(--ease); }
.vp__slider::before { right: 0; background: rgba(255, 255, 255, .2); }
.vp__buffer { width: var(--buf, 0%); background: rgba(255, 255, 255, .32); }
.vp__fill { width: var(--val, 0%); background: var(--brand); transition: width 260ms cubic-bezier(.34, 1.3, .64, 1), height 160ms var(--ease), margin 160ms var(--ease); }
.vp.is-scrubbing .vp__fill { transition: none; }
.vp__slider:hover::before, .vp__slider:hover .vp__buffer, .vp__slider:hover .vp__fill,
.vp__slider:focus-within::before, .vp__slider:focus-within .vp__buffer, .vp__slider:focus-within .vp__fill { height: 6px; margin-top: -3px; }
.vp__slider input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; cursor: pointer; }
.vp__slider input::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.vp__slider input::-moz-range-track { background: transparent; }
.vp__slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); transform: scale(0); transition: transform 180ms cubic-bezier(.34, 1.56, .64, 1); }
.vp__slider input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); transform: scale(0); transition: transform 180ms cubic-bezier(.34, 1.56, .64, 1); }
.vp__slider:hover input::-webkit-slider-thumb, .vp__slider input:focus-visible::-webkit-slider-thumb, .vp.is-scrubbing .vp__slider--seek input::-webkit-slider-thumb { transform: scale(1); }
.vp__slider:hover input::-moz-range-thumb, .vp__slider input:focus-visible::-moz-range-thumb { transform: scale(1); }
.vp__slider input:focus { outline: none; }
.vp__slider:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.vp__btn { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; transition: background-color var(--t-fast), transform 200ms cubic-bezier(.34, 1.56, .64, 1); }
.vp__btn:hover { background: rgba(255, 255, 255, .12); transform: scale(1.08); }
.vp__btn:active { transform: scale(.9); }
.vp__btn:focus-visible, .vp__speed:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.vp__btn .ui-icon { width: 20px; height: 20px; grid-area: 1 / 1; }
.vp__i-play, .vp__i-pause { fill: currentColor; }

/* icon states */
.vp__i-pause, .vp__i-replay, .vp__i-vol-low, .vp__i-vol-off, .vp__i-exit-fs, .vp__speed-cycle { display: none; }
.vp.is-playing .vp__i-play { display: none; }
.vp.is-playing .vp__i-pause { display: block; }
.vp.is-ended .vp__i-play { display: none; }
.vp.is-ended .vp__i-replay { display: block; }
.vp.is-vol-low .vp__i-vol-high, .vp.is-muted .vp__i-vol-high { display: none; }
.vp.is-vol-low .vp__i-vol-low, .vp.is-muted .vp__i-vol-off { display: block; }
.vp.is-fullscreen .vp__i-fs { display: none; }
.vp.is-fullscreen .vp__i-exit-fs { display: block; }

.vp__volume { display: flex; align-items: center; gap: 4px; }
.vp__slider--volume { flex: none; width: 84px; }

.vp__speeds { display: flex; gap: 2px; margin-inline-end: 2px; }
.vp__speed { height: 32px; min-width: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .72); font: 700 13px/1 'Cairo', system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), transform 200ms cubic-bezier(.34, 1.56, .64, 1); }
.vp__speed:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: scale(1.08); }
.vp__speed:active { transform: scale(.9); }
.vp__speed[aria-pressed="true"] { background: rgba(255, 255, 255, .18); color: #fff; }

/* Closing card (outro) */
.vp__outro { position: absolute; inset: 0; z-index: 5; background: #F8F6F3; opacity: 0; transition: opacity 400ms var(--ease); }
.vp.is-outro .vp__outro { opacity: 1; }
.vp__outro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #F8F6F3; cursor: default; }
.vp__skip { position: absolute; z-index: 1; bottom: 14px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; background: rgba(17, 17, 17, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 700 14px/1 'Cairo', system-ui, sans-serif; cursor: pointer; transition: background-color var(--t-fast), transform 200ms cubic-bezier(.34, 1.56, .64, 1); }
.vp__skip:hover { background: rgba(17, 17, 17, .85); transform: scale(1.05); }
.vp__skip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vp__skip .ui-icon { width: 16px; height: 16px; }
.vp.is-outro :is(.vp__bar, .vp__big, .vp__spinner) { opacity: 0 !important; visibility: hidden; pointer-events: none; }

/* Full screen */
.vp:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.vp:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.vp.is-fullscreen .vp__bar { max-width: 760px; margin-bottom: 28px; }

/* Narrow players (phones): one speed button that cycles, no volume slider (hardware buttons). */
@container (max-width: 560px) {
  .vp__bar { width: calc(100% - 12px); margin-bottom: 6px; padding: 6px 8px 4px; border-radius: 12px; }
  .vp__row { gap: 6px; }
  .vp__speeds, .vp__slider--volume { display: none; }
  .vp__speed-cycle { display: grid; width: auto; min-width: 38px; padding: 0 8px; font: 700 13px/1 'Cairo', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
  .vp__btn { width: 34px; height: 34px; }
  .vp__time { min-width: 34px; font-size: 12px; }
  .vp__big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vp__big .ui-icon { width: 24px; height: 24px; }
  /* Small screens: just the big play button until playback starts, then the bar only. */
  .vp:not(.is-started) .vp__bar { opacity: 0; visibility: hidden; pointer-events: none; }
  .vp.is-started .vp__big { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vp__bar, .vp__big, .vp__fill, .vp__btn, .vp__speed { transition-duration: 1ms !important; }
  .vp.is-playing.is-idle .vp__bar { transform: none; filter: none; }
}

/* ---------------------- Identity 2.0: pattern accents ---------------------- */
/* Quarter-circle pattern in the inline-end corner of page headers and the 404 page, fading out toward the text. */
.page-hero, .notfound { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after, .notfound::after { content: ""; position: absolute; z-index: -1; bottom: 0; inset-inline-end: 0; width: min(420px, 45vw); height: 100%; max-height: 300px; background: var(--pat-quarter); -webkit-mask: radial-gradient(farthest-side at 0 100%, #000 15%, transparent 100%); mask: radial-gradient(farthest-side at 0 100%, #000 15%, transparent 100%); pointer-events: none; }
[dir="ltr"] .page-hero::after { -webkit-mask-image: radial-gradient(farthest-side at 100% 100%, #000 15%, transparent 100%); mask-image: radial-gradient(farthest-side at 100% 100%, #000 15%, transparent 100%); }
[dir="rtl"] .notfound::after { -webkit-mask-image: radial-gradient(farthest-side at 100% 100%, #000 15%, transparent 100%); mask-image: radial-gradient(farthest-side at 100% 100%, #000 15%, transparent 100%); }
.notfound::after { inset-inline-end: auto; inset-inline-start: 0; }
@media (max-width: 640px) { .page-hero::after { width: 55vw; max-height: 160px; opacity: .55; } }

/* Video without a doctor (editorial content): single centred column */
.watch__inner--solo { grid-template-columns: minmax(0, 1fr); max-width: 980px; margin-inline: auto; }
.watch__by { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-14); font-weight: 600; }
.page-hero__note { font-size: var(--fs-14) !important; margin-top: var(--s-2) !important; }
/* Article sources list */
.prose .sources { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-14); color: var(--muted); }

/* Centers directory: KPIs + search */
.ckpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-7); }
.ckpi__in { display: flex; align-items: center; gap: var(--s-4); height: 100%; padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); color: var(--ink); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
a.ckpi__in:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.ckpi:first-child .ckpi__in { background: var(--brand-tint); border-color: transparent; }
.ckpi__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-alt); color: var(--brand-strong); }
.ckpi:first-child .ckpi__icon { background: #fff; }
.ckpi__icon .ui-icon { width: 24px; height: 24px; }
.ckpi__txt { display: grid; min-width: 0; }
.ckpi__txt b { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ckpi__txt span { font-size: var(--fs-14); color: var(--muted); font-weight: 600; line-height: 1.4; }
.csearch { display: flex; align-items: center; gap: 12px; height: 60px; padding-inline: 20px 8px; margin-bottom: var(--s-5); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.csearch:focus-within { border-color: var(--brand-strong); box-shadow: 0 0 0 4px rgba(194, 71, 15, .12); }
.csearch > .ui-icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.csearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: var(--fs-16); }
.csearch input:focus { outline: none; }
.csearch input::-webkit-search-cancel-button { display: none; }
.csearch__clear { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.csearch__clear:hover { background: var(--bg-alt); color: var(--ink); }
.csearch__clear .ui-icon { width: 18px; height: 18px; }
.csearch .btn { --h: 44px; }
.cresults { margin: var(--s-4) 0 var(--s-2); color: var(--muted); font-size: var(--fs-14); font-weight: 600; }
@media (max-width: 900px) { .ckpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .ckpis { gap: var(--s-3); }
  .ckpi__in { flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); }
  .ckpi__icon { width: 44px; height: 44px; border-radius: 14px; }
  .csearch { height: 54px; padding-inline: 14px 6px; }
  .csearch .btn { --h: 42px; padding: 0 14px; }
}

/* Doctors directory search: text search + specialty select on one row */
.dsearch { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-5); }
.dsearch .csearch { flex: 1; margin-bottom: 0; }
.dsearch__select select { height: 60px; }
@media (max-width: 640px) { .dsearch { flex-direction: column; align-items: stretch; } .dsearch__select select { height: 52px; width: 100%; } }

/* Video page: richer doctor card */
.doctor-mini__photo { width: 76px; height: 76px; }
.doctor-mini__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.doctor-mini__facts li { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--bg); font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.doctor-mini__facts li .ui-icon { width: 16px; height: 16px; color: var(--brand-strong); }
.doctor-mini__facts li:has(.tag) { padding: 0; background: none; }
.doctor-mini__facts .tag { height: 34px; font-size: var(--fs-13); }
.doctor-mini__places { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line-2); }
.doctor-mini__places h3 { font-size: var(--fs-13); font-weight: 700; color: var(--muted); margin-bottom: var(--s-2); }
.doctor-mini__places ul { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.doctor-mini__places a, .doctor-mini__wp { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--bg); color: var(--ink); transition: background-color var(--t-fast), box-shadow var(--t-fast); }
.doctor-mini__places a:hover { box-shadow: var(--shadow-1), 0 0 0 1px var(--line-2); }
.doctor-mini__places .ui-icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand-strong); }
.doctor-mini__places b { display: block; font-size: var(--fs-14); font-weight: 700; line-height: 1.45; }
.doctor-mini__places small { display: block; font-size: var(--fs-12); color: var(--muted); }
.doctor-mini__actions { display: grid; gap: 8px; margin-top: var(--s-5); }

/* Articles: specialty label on cards, chip counts */
.acard__spec { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 700; color: var(--brand-strong); }
.acard__spec svg { width: 18px; height: 18px; }
.chip__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count { background: rgba(255, 255, 255, .22); color: #fff; }
.page-hero--article .tag { margin-bottom: var(--s-4); }
