/* Dentavra public design system. Final layer of the existing CSS cascade. */
:root {
  --bg: #faf8f4;
  --surface: #fff;
  --surface-soft: #f2f5f1;
  --text: #23312d;
  --muted: #64736d;
  --line: #e0e6df;
  --border: var(--line);
  --line-strong: #b6c8bd;
  --accent: #16352d;
  --accent-2: #345c4c;
  --green: var(--accent);
  --accent-soft: #dde8e1;
  --cream: #f3eee6;
  --stone: #e9e3da;
  --gold: #c6a66a;
  --radius: 24px;
  --shadow: 0 16px 48px #16352d0a;
  --shadow-soft: 0 6px 24px #16352d08;
  --shadow-lift: 0 18px 40px #16352d12;
  --font-ui: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-ui);
  --font-editorial: var(--font-ui);
  --page-width: 1320px;
  --page-gutter: 32px;
  --section-space: 80px;
}
body { background: var(--bg); color: var(--text); font-family: var(--font-ui); font-weight: 400; line-height: 1.65; }
.shell { width: min(var(--page-width),calc(100% - var(--page-gutter) - var(--page-gutter))); }
h1,h2,h3 { color: var(--accent); letter-spacing: -.045em; line-height: 1.15; font-weight: 650; }
.editorial-accent { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
button,input,select,textarea,option { font-family: var(--font-ui); }
.hero-card-v95 .hero-smile { font-family: var(--font-ui); }
.eyebrow,.section-kicker { color: #426354; font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
::selection { color: var(--accent); background: var(--accent-soft); }
:where(button,a,input,select,textarea,[tabindex]):focus-visible { outline: 3px solid #507761; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.primary-btn,.book-btn,.secondary-btn,.ghost-btn,.table-btn,.account-btn { min-height: 48px; border-radius: 12px; font-weight: 700; transition: background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.primary-btn,.book-btn { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: none; }
.primary-btn:hover,.book-btn:hover { background: #254b3e; border-color: #254b3e; box-shadow: 0 6px 16px #16352d12; }
.secondary-btn,.ghost-btn,.table-btn { color: var(--accent); background: var(--surface); border-color: var(--line-strong); box-shadow: none; }
.secondary-btn:hover,.ghost-btn:hover,.table-btn:hover { background: var(--surface-soft); border-color: #879f90; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.text-link:hover { border-color: var(--accent); }

/* Navigation shares the page grid, including on phones. */
.site-header { position: sticky; top: 0; z-index: 90; grid-template-columns: minmax(140px,1fr) auto minmax(250px,1fr); min-height: 84px; gap: 24px; padding: 16px max(var(--page-gutter),calc((100vw - var(--page-width))/2)); background: #faf8f4f5; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(16px); }
.brand { min-width: 0; gap: 10px; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand-mark > img { display: block; position: static; inset: auto; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.dentavra-pay-badge .brand-mark { width: 28px; height: 28px; padding: 4px; border-radius: 8px; background: #fff; }
.brand-copy strong { font-size: 21px; font-weight: 800; letter-spacing: -.055em; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-copy strong { font-size: 19px; }
.main-nav { gap: 2px; padding: 0; background: none; box-shadow: none; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; text-decoration: none; color: var(--muted); font-size: 12px; border-radius: 9px; white-space: nowrap; }
.nav-link.active,.nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header-actions { min-width: 0; gap: 10px; }
.account-btn { color: #fff; background: var(--accent); border-color: var(--accent); }
.account-btn:hover { color: #fff; background: #254b3e; }
.account-dot { background: #adc7b8; }
.menu-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.menu-btn:hover { background: var(--surface-soft); }
.site-menu-popover { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-lift); }
.site-menu-links { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.site-menu-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-menu-links a:hover { background: var(--surface-soft); }
#guestMenu > a { display: none; }

/* Health introduction lives alongside the preserved dentistry marketplace. */
.health-hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); align-items: center; gap: clamp(32px,5vw,72px); margin-top: 40px; }
.health-hero-copy { min-width: 0; padding-block: 24px; }
.health-hero h1 { margin: 24px 0; font-size: clamp(44px,4.9vw,70px); line-height: 1.1; letter-spacing: -.055em; text-wrap: balance; }
.health-hero-copy > p { max-width: 560px; margin: 0 0 18px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.health-hero-copy > .health-hero-intro { color: var(--text); font-size: 20px; line-height: 1.65; }
.health-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.health-hero-actions [data-scroll-home] { border-bottom: 0; text-decoration: none; transition: color .2s ease; }
.health-hero-actions [data-scroll-home]:hover { color: var(--accent-2); }
.health-hero-actions > .primary-btn,.health-start > .primary-btn { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 50px; text-decoration: none; font-size: 14px; }
.health-hero-actions > .primary-btn { gap: 8px; }
.health-hero-actions > .primary-btn > .ui-icon { width: 23.4px; height: 23.4px; }
.health-hero-actions > .text-link { font-size: 13px; }
.health-availability-note { display: flex; align-items: start; gap: 9px; margin-top: 22px; color: #4b6457; font-size: 12px; line-height: 1.7; }
.health-availability-note > span { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: #507761; }
.health-hero-visual { position: relative; min-width: 0; min-height: 560px; align-self: stretch; margin: 0; overflow: hidden; border: 1px solid #e4e4dc; border-radius: 24px 72px 24px 24px; background: #e9e3da; }
.health-hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.health-hero-visual figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #ffffffb3; border-radius: 12px; background: #faf8f4f5; }
.health-hero-visual figcaption .brand-mark { flex: 0 0 24px; width: 24px; height: 24px; }
.health-hero-visual figcaption > div { min-width: 0; }
.health-hero-visual figcaption strong { display: block; font-size: 13px; line-height: 1.5; }
.health-hero-visual figcaption > div > span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.65; color: #56675f; }
.health-directions,.health-approach { margin-top: var(--section-space); }
.health-direction-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.health-direction { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.health-direction-active { border-color: #a8beaf; background: #f0f5ef; }
.health-direction-upcoming { border-color: #d3e3da; background: #f0f5f2; }
.health-direction-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.health-direction-icon { --icon-phase: 0s; position: relative; isolation: isolate; display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px #fff,0 6px 18px #23312d08; perspective: 500px; }
.health-direction:nth-child(2) .health-direction-icon { --icon-phase: -6s; }
.health-direction:nth-child(3) .health-direction-icon { --icon-phase: -12s; }
.health-direction-icon::before { content: ""; position: absolute; inset: 2px; z-index: -1; border: 1px solid #fff; border-radius: inherit; background: #ffffff80; animation: direction-halo 3.8s ease-in-out infinite !important; animation-delay: var(--icon-phase) !important; pointer-events: none; }
.health-icon-turn { display: grid; place-items: center; width: 100%; height: 100%; animation: direction-turn 14s ease-in-out infinite !important; animation-delay: var(--icon-phase) !important; transform-origin: center; }
.health-icon-turn > img { display: block; width: 72px; height: 72px; max-width: 100%; object-fit: contain; animation: direction-breathe 3.8s ease-in-out infinite !important; animation-delay: var(--icon-phase) !important; }
@keyframes direction-turn { 0%,100% { transform: rotateY(-28deg) rotateZ(-8deg) translateY(2px); } 50% { transform: rotateY(28deg) rotateZ(8deg) translateY(-3px); } }
@keyframes direction-breathe { 0%,100% { transform: scale(.92); } 50% { transform: scale(1.08); } }
@keyframes direction-halo { 0%,100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.12); opacity: .7; } }
@media (min-width:761px) and (max-width:900px) {
  .health-direction-grid { grid-template-columns: minmax(0,1fr); }
}
.health-direction-state { padding: 5px 8px; border-radius: 6px; background: #dde8e1; color: #294c3d; font-size: 11px; font-weight: 650; line-height: 1.5; }
.health-direction-active .health-direction-state { padding: 7px 10px; background: #155c42; color: #fff; font-weight: 750; box-shadow: 0 3px 8px #155c421a; }
.health-direction-active .health-direction-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #c2f2d3; vertical-align: 1px; animation: availability-dot-pulse 2.4s ease-in-out infinite !important; }
@keyframes availability-dot-pulse { 0%,100% { opacity: 1; transform: scale(1.25); } 50% { opacity: .6; transform: scale(.85); } }
.health-direction-planned { background: #b83240; color: #fff; box-shadow: inset 0 0 0 1px #a42a37; }
.health-direction h3 { margin: 0 0 14px; font-size: 25px; line-height: 1.3; }
.health-direction p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.health-direction a { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-top: auto; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.health-direction a:hover { text-decoration: underline; text-underline-offset: 5px; }
.health-direction-future { display: block; margin-top: auto; padding-block: 11px; color: #63736c; font-size: 12px; line-height: 1.7; }
.health-approach { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; padding-block: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.health-approach-intro { min-width: 0; }
.health-approach h2 { margin: 16px 0 20px; font-size: clamp(32px,3.4vw,46px); line-height: 1.2; }
.health-approach-intro p { max-width: 450px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.health-approach-list { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.health-approach-list li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 18px; }
.health-approach-list li > span { color: #507761; font-size: 12px; font-weight: 700; padding-top: 3px; }
.health-approach-list h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.health-approach-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.health-start { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-block: var(--section-space); padding: 36px 40px; border: 1px solid #d4dfd4; border-radius: 18px; background: #eaf0e7; }
.health-start > div { min-width: 0; }
.health-start h2 { margin: 12px 0; font-size: 30px; line-height: 1.3; }
.health-start p { margin: 0; max-width: 680px; color: #56675f; font-size: 14px; line-height: 1.8; }
.health-start > a { flex: 0 0 auto; }
@media (max-width:1050px) {
  .health-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
  .health-hero-visual { min-height: 480px; }
  .health-hero-copy > .health-hero-intro { font-size: 18px; }
  .health-direction { padding: 22px; }
  .health-direction-grid { gap: 16px; }
  .health-direction h3 { font-size: 22px; }
  .health-approach { gap: 32px; }
  .health-start { align-items: start; flex-direction: column; padding: 30px; }
}
@media (max-width:760px) {
  .health-hero { grid-template-columns: minmax(0,1fr); gap: 28px; margin-top: 28px; }
  .health-hero-copy { padding-block: 0; }
  .health-hero h1 { margin-block: 18px 20px; font-size: clamp(38px,9vw,52px); }
  .health-hero-copy > p { font-size: 15px; line-height: 1.75; }
  .health-hero-copy > .health-hero-intro { font-size: 18px; }
  .health-hero-actions { margin-top: 24px; gap: 12px 18px; }
  .health-hero-actions > .primary-btn { width: 100%; }
  .health-availability-note { margin-top: 14px; }
  .health-hero-visual { height: 360px; min-height: 0; border-radius: 18px 52px 18px 18px; }
  .health-hero-visual figcaption { left: 14px; right: 14px; bottom: 14px; gap: 12px; padding: 14px; }
  .health-direction-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .health-direction { padding: 24px; }
  .health-direction-top { margin-bottom: 20px; }
  .health-direction h3 { font-size: 24px; }
  .health-approach { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: 30px; }
  .health-approach h2 { font-size: 34px; }
  .health-approach-list h3 { font-size: 18px; }
  .health-start { gap: 24px; padding: 24px; }
  .health-start h2 { font-size: 26px; }
  .health-start > .primary-btn { width: 100%; }
}
@media (max-width:390px) { .health-hero-visual { height: 300px; } .health-direction,.health-start { padding: 20px; } }

/* About: the same page grid and rhythm, with a distinct editorial introduction. */
.about-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: clamp(32px,5vw,72px); margin-top: 40px; }
.about-hero-copy { min-width: 0; padding-block: 24px; }
.about-hero h1 { margin: 24px 0; font-size: clamp(40px,4.6vw,66px); line-height: 1.12; text-wrap: balance; }
.about-hero-copy p { max-width: 580px; margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.about-hero-copy .about-lead { color: var(--text); font-size: 20px; line-height: 1.65; }
.about-hero .primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; min-height: 50px; text-decoration: none; font-size: 14px; }
.about-manifesto { min-width: 0; padding: clamp(28px,4vw,52px); border-radius: 24px 64px 24px 24px; background: var(--accent); color: #f6f8f3; }
.about-manifesto .section-kicker { color: #b7d1bf; }
.about-manifesto h2 { margin: 28px 0; color: inherit; font-size: clamp(32px,3.4vw,46px); line-height: 1.2; text-wrap: balance; }
.about-manifesto p { margin: 0; font-size: 15px; line-height: 1.8; color: #d9e5dd; }
.about-manifesto-note { display: flex; align-items: center; gap: 10px; padding-top: 28px; margin-top: 32px; border-top: 1px solid #ffffff26; font-size: 12px; }
.about-manifesto-note > span { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #b7d1bf; }
.about-principles,.about-roadmap,.about-boundary { margin-top: var(--section-space); }
.about-section-intro h2 { margin: 16px 0 24px; font-size: clamp(30px,3.4vw,46px); line-height: 1.2; text-wrap: balance; }
.about-section-intro > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-principle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.about-principle-grid article { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.about-number { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 750; }
.about-principle-grid h3,.about-direction-list h3 { margin: 24px 0 14px; font-size: 23px; line-height: 1.35; }
.about-principle-grid p,.about-direction-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-roadmap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; padding-block: 40px; border-block: 1px solid var(--line); }
.about-direction-list { display: grid; gap: 28px; min-width: 0; }
.about-direction-list article + article { padding-top: 28px; border-top: 1px solid var(--line); }
.about-direction-list h3 { margin-top: 12px; }
.about-direction-list .text-link { margin-top: 16px; white-space: normal; }
.about-status { display: inline-block; color: #365e45; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.about-status-planned { color: var(--muted); }
.about-boundary { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 64px; }
.about-boundary h2 { margin: 0; font-size: clamp(26px,2.8vw,36px); line-height: 1.3; }
.about-boundary p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
#aboutView :is(h1,h2,h3,p,a) { overflow-wrap: break-word; }
@media (max-width:1050px) {
  .about-hero,.about-roadmap,.about-boundary { gap: 32px; }
  .about-principle-grid { gap: 16px; }
  .about-principle-grid article { padding: 22px; }
  .about-principle-grid h3 { font-size: 20px; }
}
@media (max-width:768px) {
  .about-hero { grid-template-columns: minmax(0,1fr); gap: 28px; margin-top: 28px; }
  .about-hero-copy { padding-block: 0; }
  .about-hero h1 { margin-block: 18px 20px; font-size: clamp(36px,8vw,52px); }
  .about-hero-copy p { font-size: 15px; }
  .about-hero-copy .about-lead { font-size: 18px; }
  .about-hero .primary-btn { width: 100%; }
  .about-manifesto { padding: 28px; border-radius: 18px 48px 18px 18px; }
  .about-manifesto h2 { margin-block: 20px; font-size: 34px; }
  .about-principle-grid { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 24px; }
  .about-principle-grid h3 { margin-top: 18px; font-size: 22px; }
  .about-roadmap,.about-boundary { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .about-roadmap { padding-block: 30px; }
  .about-section-intro h2 { font-size: 32px; }
}
@media (max-width:390px) {
  .about-manifesto,.about-principle-grid article { padding: 20px; }
  .about-manifesto h2,.about-section-intro h2 { font-size: 30px; }
}

/* A clear search-first hero: readable copy and a real photographic scene. */
#homeView { background: none; }
.hero.hero-v95 { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); align-items: center; gap: clamp(32px,4vw,64px); width: min(var(--page-width),calc(100% - var(--page-gutter) - var(--page-gutter))); min-height: 0; margin-top: 40px; padding: 0; border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.hero-v95 .hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 650px; padding-block: 24px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; line-height: 1.5; }
.hero .eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.hero-v95 .hero-copy h1 { max-width: 670px; margin: 0 0 24px; font-size: clamp(46px,4.5vw,66px); line-height: 1.08; font-weight: 650; letter-spacing: -.06em; overflow-wrap: break-word; }
.hero-v95 .hero-copy h1 span { display: block; margin-top: 5px; color: var(--accent); font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.hero-v95 .hero-copy p { max-width: 470px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-portrait { position: relative; inset: auto; display: block; align-self: stretch; min-width: 0; width: 100%; height: auto; min-height: 600px; max-height: none; margin: 0; overflow: hidden; border: 1px solid #e8e6dd; border-radius: 28px 80px 28px 28px; background: var(--stone); box-shadow: var(--shadow); }
.hero-portrait > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 88% 40%; }
.hero-portrait::after { display: none; }
.hero-portrait > .marketplace-fallback { position: absolute; inset: 0; }
.hero-photo-label { position: absolute; top: 22px; left: 22px; display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border: 1px solid #ffffffb3; border-radius: 12px; background: #faf8f4ef; backdrop-filter: blur(10px); color: var(--accent); font-size: 11px; font-weight: 700; }
.hero-photo-label .brand-mark { width: 20px; height: 20px; border-radius: 0; }
.portrait-note { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid #ffffffb3; border-radius: 18px; background: #faf8f4f2; backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); }
.portrait-note-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.portrait-note strong { display: block; font-size: 13px; line-height: 1.5; }
.portrait-note small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.home-clinic-search { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; max-width: 620px; gap: 0; margin-top: 30px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 32px #16352d0c; }
.home-clinic-search label { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 6px; min-height: 76px; padding: 10px 13px; border: 0; border-radius: 10px; background: transparent; }
.home-clinic-search label + label { border-left: 1px solid var(--line); }
.home-clinic-search label:focus-within { background: var(--surface-soft); }
.home-clinic-search label > span { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--muted); }
.home-clinic-search .ui-icon { width: 14px; height: 14px; }
.home-clinic-search select { width: 100%; min-width: 0; height: 30px; padding: 0 20px 0 0; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; }
.home-clinic-search select:focus-visible { outline-offset: 2px; border-radius: 4px; }
.home-clinic-search button { grid-column: 1 / -1; min-height: 50px; margin-top: 4px; white-space: normal; }
.home-clinic-search button .ui-icon { width: 18px; height: 18px; margin-left: 6px; }
.home-discovery-status { margin-top: 8px; font-size: 12px; color: var(--muted); }
.home-discovery-status:empty { display: none; }
.hero-assist-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--accent); font-size: 13px; font-weight: 700; text-underline-offset: 5px; }
.hero-trust-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; margin-top: 20px; color: var(--muted); font-size: 11px; font-weight: 550; }
.hero-trust-row span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hero-trust-row .ui-icon { width: 16px; height: 16px; color: #456957; }

/* Consistent editorial rhythm, with real service data only. */
.home-services,.home-journey { margin-top: var(--section-space); }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.home-section-head > div { min-width: 0; }
.home-section-head h2 { max-width: 760px; margin: 10px 0 12px; font-size: clamp(30px,3.2vw,44px); line-height: 1.2; }
.home-section-head p { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; }
.home-section-head > a { flex: 0 0 auto; }
.home-service-categories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.home-service-category { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 4px 18px; align-items: center; min-height: 125px; padding: 22px; text-align: left; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); cursor: pointer; transition: transform .2s,border-color .2s,background-color .2s; }
.home-service-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--surface-soft); color: #456957; }
.home-service-icon svg { width: 24px; height: 24px; }
.home-service-category strong { min-width: 0; overflow-wrap: anywhere; color: var(--accent); font-size: 15px; line-height: 1.45; font-weight: 650; }
.home-service-link { grid-column: 2; color: var(--muted); font-size: 11px; }
.home-service-category:hover { border-color: var(--line-strong); background: #f4f7f2; transform: translateY(-2px); }
.home-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; }
.home-steps::before,.home-steps article::after { display: none; }
.home-steps article { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); }
.home-steps b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.home-steps h3 { margin: 24px 0 12px; font-size: 23px; line-height: 1.25; letter-spacing: -.04em; }
.home-steps p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.step-ui { min-width: 0; min-height: 197px; margin: 24px -28px -28px; padding: 16px; border-top: 1px solid var(--line); background: #f2f5f1; color: var(--accent); font-size: 11px; line-height: 1.4; pointer-events: none; user-select: none; }
.step-ui-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-ui-header strong { font-size: 11px; }
.step-ui-dots { color: #b5c8bb; font-size: 7px; letter-spacing: 2px; }
.step-ui-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.step-ui-fields > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.step-ui small { display: block; color: var(--muted); font-size: 9px; }
.step-ui-fields strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-ui-action { width: max-content; max-width: 100%; margin: 8px 0; padding: 7px 12px; border-radius: 8px; color: #fff; background: var(--accent); font-weight: 700; }
.step-ui-result { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.step-ui-result > span:last-child { margin-left: auto; }
.step-ui-result-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); }
.step-ui-result-icon svg { width: 16px; height: 16px; }
.step-ui-progress,.step-ui-calendar,.step-ui-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.step-ui-progress { margin-bottom: 13px; }
.step-ui-progress span { padding: 5px 8px; border-radius: 7px; background: var(--accent-soft); font-size: 9px; }
.step-ui-progress .current { color: #fff; background: var(--accent); }
.step-ui-calendar span { display: grid; place-items: center; flex: 1 1 0; min-width: 0; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.step-ui-calendar .selected,.step-ui-slots .selected { color: var(--accent); background: var(--accent-soft); border-color: #96b09f; font-weight: 700; }
.step-ui-slots { align-items: center; margin-top: 9px; }
.step-ui-slots span { min-width: 50px; min-height: 28px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.step-ui-slots .step-ui-slot-line::after { content: ''; display: block; width: 26px; height: 4px; margin: 6px auto; border-radius: 4px; background: var(--line); }
.step-ui-foot { margin-top: 12px; color: var(--muted); font-size: 9px; }
.step-ui-booking { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.step-ui-booking strong { font-size: 12px; }
.step-ui-status { width: max-content; max-width: 100%; padding: 3px 7px; border-radius: 6px; background: #f5eee1; color: #76603b; font-size: 9px; }
.step-ui-booking-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.step-ui-booking-actions span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }

.verified-explainer { margin-top: var(--section-space); margin-bottom: 0; padding: 44px; border: 1px solid #dedfd4; border-radius: 28px; background: #f0f2eb; }
.home-trust-intro { max-width: 830px; }
.home-trust-intro h2 { margin: 14px 0 18px; font-size: clamp(30px,3.2vw,44px); line-height: 1.22; }
.home-trust-intro > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 15px; }
.home-trust-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; margin-top: 38px; padding-top: 30px; border-top: 1px solid #d7dfd4; }
.home-trust-grid .ui-icon { width: 25px; height: 25px; color: #426354; }
.home-trust-grid h3 { margin: 16px 0 12px; font-size: 17px; line-height: 1.45; letter-spacing: -.025em; }
.home-trust-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.home-trust-intro > p,.home-trust-grid p { color: #586960; }

/* Concierge: product-led composition; original mascot remains a small avatar.
   Keep its desktop, mobile and motion rules together to avoid cascade drift. */
.pan-zub-section { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: center; column-gap: 24px; row-gap: 32px; width: min(1280px,calc(100% - var(--page-gutter) - var(--page-gutter))); min-height: 420px; margin-top: var(--section-space); margin-bottom: 0; padding: 48px 56px; border: 1px solid #dce5dc; border-radius: 20px; background: #f5f7f3; box-shadow: none; }
.pan-zub-copy { grid-column: span 7; min-width: 0; padding: 0 24px 0 0; }
.pan-zub-section .section-kicker { display: block; color: #456355; font-size: 11px; letter-spacing: .16em; }
.pan-zub-copy h2 { margin: 16px 0 18px; max-width: 650px; color: #16352d; font-size: clamp(44px,3.7vw,52px); line-height: 1.16; letter-spacing: -.045em; text-wrap: balance; }
.pan-zub-copy h2 .editorial-accent { letter-spacing: -.04em; }
.pan-zub-copy > p { max-width: 560px; margin: 0 0 24px; color: #56675f; font-size: 16px; line-height: 1.75; }
.concierge-card.concierge-card-v95 p { color: #586960; }
.home-concierge-form { display: flex; align-items: stretch; gap: 8px; width: 100%; max-width: 780px; min-height: 66px; padding: 8px; border: 1px solid #ccd9ce; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #16352d06; transition: border-color .2s ease,box-shadow .2s ease; }
.home-concierge-form:focus-within { border-color: #507761; box-shadow: 0 0 0 3px #5077611f,0 6px 18px #16352d0a; }
.home-concierge-form input { flex: 1 1 0; min-width: 0; width: 0; min-height: 48px; padding: 10px 10px; border: 0; border-radius: 6px; color: #23312d; background: #fff; font: inherit; font-size: 15px; }
.home-concierge-form input::placeholder { color: #63736c; opacity: 1; }
.home-concierge-form input:focus-visible { outline-offset: 0; }
.home-concierge-form .primary-btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 48px; padding: 12px 16px; border-radius: 8px; color: #fff; background: #16352d; border-color: #16352d; font-size: 12px; white-space: nowrap; box-shadow: none; }
.home-concierge-form .primary-btn:hover { color: #fff; background: #254b3e; border-color: #254b3e; }
.home-concierge-form .primary-btn > span,.concierge-product-footer a > span { transition: transform .2s ease; }
.home-concierge-form .primary-btn:hover > span,.concierge-product-footer a:hover > span { transform: translateX(3px); }
.home-concierge-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-concierge-examples button { min-height: 44px; padding: 8px 12px; border: 1px solid #d1ddd3; border-radius: 8px; background: #e5ede6; color: #294c3d; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .2s ease,border-color .2s ease,transform .2s ease; }
.home-concierge-examples button:hover { background: #dbe7dd; border-color: #91ae9b; transform: translateY(-1px); }
.home-concierge-notice { display: block; max-width: 560px; margin-top: 16px; color: #56675f; font-size: 12px; line-height: 1.7; }
#homeConciergeStatus:empty { display: none; }
.concierge-product { grid-column: span 5; min-width: 0; border: 1px solid #dce5dc; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px #16352d07; overflow-wrap: anywhere; }
.concierge-product-header { display: flex; align-items: center; gap: 14px; padding: 24px; border-bottom: 1px solid #e6ece6; }
.concierge-avatar { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 64px; border-radius: 12px; background: #f0f4ed; overflow: hidden; }
.concierge-avatar img { display: block; width: 46px; height: 60px; object-fit: contain; }
.concierge-avatar > .marketplace-fallback { width: 46px; height: 60px; border-radius: 8px; }
.concierge-product-header > div:last-child { min-width: 0; }
.concierge-product-header h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
.concierge-product-header p { margin: 0; color: #63736c; font-size: 12px; line-height: 1.6; }
.concierge-product-body { padding: 24px; }
.concierge-product-label { display: block; margin-bottom: 16px; color: #56675f; font-size: 12px; font-weight: 600; }
.concierge-query-example { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; padding: 18px; border: 1px solid #dce5dc; border-radius: 10px; background: #f5f7f3; color: #16352d; text-align: left; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s ease,border-color .2s ease; }
.concierge-query-example:hover { border-color: #91ae9b; background: #edf3ee; }
.concierge-example-label { color: #63736c; font-size: 11px; font-weight: 500; }
.concierge-example-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; font-weight: 650; }
.concierge-product-guidance { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 12px; margin-top: 22px; }
.concierge-product-guidance svg { width: 20px; height: 20px; margin-top: 3px; color: #426354; }
.concierge-product-guidance p { margin: 0; color: #56675f; font-size: 13px; line-height: 1.75; }
.concierge-product-footer { padding: 12px 24px; border-top: 1px solid #e6ece6; }
.concierge-product-footer a { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 44px; color: #16352d; font-size: 13px; font-weight: 650; text-decoration: none; }
.concierge-product-footer a:hover { color: #345c4c; }
@media (max-width:1050px) {
  .pan-zub-section { grid-template-columns: minmax(0,1fr); gap: 32px; min-height: 0; padding: 40px; }
  .pan-zub-copy,.concierge-product { grid-column: auto; }
  .pan-zub-copy { padding: 0; }
  .concierge-product { width: 100%; max-width: 560px; }
}
@media (max-width:760px) {
  .pan-zub-section { padding: 28px 20px; gap: 28px; border-radius: 16px; }
  .pan-zub-copy h2 { margin-block: 14px 16px; font-size: clamp(32px,5vw,38px); line-height: 1.2; }
  .pan-zub-copy > p { margin-bottom: 22px; font-size: 15px; line-height: 1.7; }
  .home-concierge-form input { font-size: 16px; }
  .home-concierge-examples { gap: 8px; }
  .home-concierge-notice { font-size: 13px; }
  .concierge-product-header,.concierge-product-body { padding: 20px; }
  .concierge-product-header { gap: 12px; }
  .concierge-product-header h3 { font-size: 15px; }
  .concierge-product-header p,.concierge-product-label,.concierge-example-label { font-size: 12px; }
  .concierge-product-footer { padding-inline: 20px; }
  .concierge-query-example { padding: 16px; }
  .concierge-product-guidance p { font-size: 14px; }
}
@media (max-width:600px) {
  .home-concierge-form { flex-direction: column; gap: 6px; }
  .home-concierge-form input { width: 100%; flex-basis: auto; min-height: 52px; }
  .home-concierge-form .primary-btn { width: 100%; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-concierge-form,.home-concierge-form .primary-btn > span,.home-concierge-examples button,.concierge-query-example,.concierge-product-footer a > span { transition: none; }
  .home-concierge-examples button:hover,.home-concierge-form .primary-btn:hover > span,.concierge-product-footer a:hover > span { transform: none; }
}
.home-faq { padding-top: var(--section-space); padding-bottom: 64px; }
.home-faq-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.home-faq details { min-width: 0; padding: 0 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-faq details:last-child { border-bottom: 1px solid var(--line); }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-block: 16px; font-size: 15px; font-weight: 650; cursor: pointer; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; font-weight: 400; color: var(--accent); }
.home-faq details[open] summary::after { content: '−'; background: var(--accent-soft); }
.home-faq details p { max-width: 820px; margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.home-clinic-invitation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.home-clinic-invitation p { margin: 0; color: var(--muted); font-size: 13px; }

/* Shared product screens: catalogue, public profiles, care articles. */
.catalog-heading,.learn-hero { margin-top: 40px; padding: 20px 0 8px; border: 0; border-radius: 0; background: none; }
.catalog-heading h1,.learn-hero h1 { margin: 12px 0 16px; color: var(--accent); font-size: clamp(42px,4.6vw,64px); letter-spacing: -.055em; }
.catalog-heading p,.learn-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; }
.simple-search { position: relative; z-index: 1; margin-top: 24px; padding: 10px; border-radius: 20px; border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.simple-search-field { border-radius: 10px; }
.simple-search-field:focus-within { background: var(--surface-soft); box-shadow: inset 0 0 0 2px #9cb3a4; }
.search-secondary { padding-block: 12px 18px; }
.active-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; font-size: 12px; }
.active-filter-bar > span { padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.results-heading h2 { font-size: clamp(25px,2.5vw,34px); }
.view-switch { border: 1px solid var(--line); background: #eeefea; }
.sort-chips button.active { color: var(--accent); background: var(--accent-soft); }
.results-heading p { background: var(--accent-soft); color: var(--accent); }
.clinic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding-bottom: 48px; }
.clinic-card.clinic-card-marketplace,.clinic-card.clinic-card-v9,.doctor-list article,.marketplace-doctors article,.video-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); }
.clinic-card-marketplace,.doctor-list article { transition: border-color .2s,box-shadow .2s,transform .2s; }
.clinic-card-marketplace:hover,.doctor-list article:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.marketplace-cover { height: auto; aspect-ratio: 16 / 10; background: var(--stone); }
.marketplace-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.marketplace-cover .marketplace-fallback { position: absolute; inset: 0; background: #eef1e9; color: #718776; }
.marketplace-card-copy { padding: 24px; gap: 14px; }
.marketplace-card-brand h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; }
.marketplace-card-title { display: block; min-height: 44px; padding: 0; border: 0; border-radius: 4px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.marketplace-card-brand p,.marketplace-description,.marketplace-card-meta { color: var(--muted); }
.marketplace-card-brand p { font-size: 12px; line-height: 1.6; }
.marketplace-card-brand > img,.marketplace-card-brand > .marketplace-fallback { border: 1px solid var(--line); box-shadow: none; }
.marketplace-description { font-size: 13px; }
.marketplace-card-facts { display: grid; gap: 7px; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.marketplace-card-facts strong { color: var(--accent); }
.marketplace-card-facts span { min-width: 0; overflow-wrap: anywhere; }
.marketplace-card-meta { min-height: 30px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.marketplace-card-meta .marketplace-verified { color: #3b654d; font-weight: 700; }
.marketplace-card-copy .card-actions { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 8px; }
.marketplace-card-copy .card-actions button { min-width: 0; padding: 10px 7px; font-size: 12px; }
.tag-row .tag { color: #526959; background: #edf2ea; }
.marketplace-public-hero { min-height: 440px; border-radius: 28px; box-shadow: var(--shadow); }
.marketplace-public-overlay { min-height: 440px; padding: 40px; background: linear-gradient(180deg,#16352d05 18%,#16352ded); }
.marketplace-identity h1 { max-width: 860px; font-size: clamp(32px,4vw,54px); color: #fff; }
.marketplace-identity span { color: #e3ede5; font-size: 12px; }
.marketplace-public-overlay > .primary-btn { background: #fff; border-color: #fff; color: var(--accent); }
.marketplace-public-overlay > .primary-btn:hover { background: #e6eee7; }
.marketplace-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.marketplace-gallery-item { min-width: 0; margin: 0; }
.marketplace-gallery-button { position: relative; display: block; width: 100%; height: 230px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); cursor: zoom-in; }
.marketplace-gallery .marketplace-gallery-button img,.marketplace-gallery .marketplace-gallery-button .marketplace-fallback { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.marketplace-gallery-hint { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border: 1px solid #ffffffb3; border-radius: 8px; background: #faf8f4eb; color: var(--accent); font-size: 11px; }
.clinic-page-section { margin-top: 28px; padding: 32px; border-color: var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); }
.clinic-page-section > h2 { font-size: 32px; }
.marketplace-about aside { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.services-table article { padding: 22px; border-color: var(--line); border-radius: 18px; background: var(--surface); box-shadow: none; }
.services-table h3 { font-size: 21px; }
.services-table p { color: var(--muted); font-size: 14px; }
.services-table article > div:last-child { min-width: 145px; }
.marketplace-doctors article { gap: 20px; padding: 24px; }
.marketplace-doctor-photo { width: 106px; height: 134px; flex-basis: 106px; border-radius: 16px; background: var(--surface-soft); }
.marketplace-doctor-copy { min-width: 0; flex: 1; }
.marketplace-doctor-copy h3 { font-size: 21px; }
.marketplace-doctor-copy p { color: var(--muted); font-size: 13px; }
.marketplace-doctor-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; color: var(--muted); }
.marketplace-doctor-services { margin-top: 12px; }
.marketplace-doctor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.marketplace-doctor-actions .table-btn { font-size: 12px; }
.doctor-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 32px; margin-bottom: 64px; }
.doctor-list article { display: flex; flex-direction: column; padding: 24px; min-width: 0; }
.doctor-directory-photo { height: 220px; margin: -24px -24px 24px; overflow: hidden; border-radius: 24px 24px 0 0; }
.doctor-directory-photo img,.doctor-directory-photo .marketplace-fallback { width: 100%; height: 100%; object-fit: cover; }
.doctor-list h2 { font-size: 24px; }
.doctor-list p { color: var(--muted); font-size: 14px; }
.doctor-list article > .secondary-btn { margin-top: auto; }
.concierge-card.concierge-card-v95 { border-radius: 24px; border-color: var(--line); background: #eaf0e7; }
.video-card { overflow: hidden; }
.partner-hero { margin-top: 32px; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-soft); }

/* Real booking/auth states stay visible and consistent with the marketplace. */
.partner-form,.account-summary,.booking-card,.media-editor,.empty-state,.loading-card { border-color: var(--line); border-radius: 22px; background: var(--surface); }
.dashboard-body .cabinet-panel { border-color: var(--line); border-radius: 22px; }
.field input,.field select,.field textarea,.inline-form input,.table-input { border-color: var(--line); border-radius: 12px; background: var(--surface); }
.field :is(input,select,textarea):focus { border-color: #8fa996; box-shadow: 0 0 0 3px #345c4c14; }
.auth-tabs { background: #edf1eb; }
.auth-tabs button.active { color: var(--accent); background: var(--surface); }
.quick-booking-mode { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
.slot-choice { min-height: 58px; border-radius: 12px; border-color: var(--line); background: var(--surface); }
.slot-choice.selected,.slot-choice[aria-pressed="true"] { color: var(--accent) !important; border-color: #789b87 !important; background: var(--accent-soft) !important; box-shadow: inset 0 0 0 1px #789b87; }
.booking-confirmation { padding: 24px; border: 1px solid #bacfbc; border-radius: 18px; background: #eef4e9; color: var(--accent); }
.booking-confirmation h3 { margin-top: 0; }
dialog { max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 32px 90px #16352d33; }
dialog::backdrop { background: #16352d66; backdrop-filter: blur(5px); }
dialog[open] { animation: dentavra-dialog-in .2s ease both; }
.gallery-dialog { width: min(1000px,calc(100% - 48px)); max-width: calc(100% - 48px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; }
.gallery-viewer { padding: 20px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gallery-toolbar h2 { min-width: 0; margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.gallery-toolbar > div { display: flex; flex-shrink: 0; gap: 8px; }
.gallery-stage { display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #f1f1eb; }
.gallery-stage img,.gallery-stage .marketplace-fallback { display: block; width: 100%; height: min(62vh,660px); height: min(62dvh,660px); object-fit: contain; }
.gallery-caption { margin: 14px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.page-toast { border-color: var(--line); border-radius: 14px; color: var(--accent); background: var(--surface); box-shadow: var(--shadow-lift); }
.page-toast.error { color: #853c31; border-color: #e7c9bc; background: #fff9f4; }
.site-footer { margin-top: 0; padding-block: 36px 40px; border-top: 1px solid var(--line); }
@keyframes dentavra-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.route-loading { display: none; min-height: 55vh; padding-block: 48px; }
.route-pending .route-loading { display: block; }
.route-pending #top > .view { display: none !important; }
/* Compositor-only entrance; the temporary hint is released on finish/cancel. */
@keyframes dentavra-section-in { from { opacity: .04; transform: translate3d(0,18px,0); } to { opacity: 1; transform: none; } }
@keyframes dentavra-content-fade { from { opacity: .08; } to { opacity: 1; } }
.view .premium-entered { animation: dentavra-section-in 1.3s cubic-bezier(.4,0,.2,1) both !important; }
.view .premium-animating { will-change: transform,opacity; }
@media (hover:hover) and (pointer:fine) { .clinic-card-marketplace:hover .marketplace-cover img { transform: scale(1.025); } }

/* One responsive system, after all legacy mobile layers. */
@media (max-width:1190px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero.hero-v95 { gap: 32px; }
  .hero-v95 .hero-copy h1 { font-size: clamp(42px,4.8vw,56px); }
  .hero-portrait { min-height: 590px; }
  .clinic-grid,.doctor-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-service-categories { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .marketplace-card-copy .card-actions button { font-size: 13px; }
}
@media (max-width:900px) {
  :root { --page-gutter: 24px; --section-space: 56px; }
  .hero.hero-v95 { grid-template-columns: minmax(0,1fr); gap: 28px; margin-top: 32px; }
  .hero-v95 .hero-copy { max-width: 720px; padding: 0; }
  .hero-v95 .hero-copy h1 { max-width: 700px; font-size: clamp(42px,6.5vw,58px); }
  .hero-portrait { width: 100%; min-height: 400px; height: 420px; margin: 0; border-radius: 24px 60px 24px 24px; }
  .hero-portrait > img { object-position: 90% 36%; }
  .home-clinic-search { max-width: none; }
  .hero-trust-row { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .home-steps { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .home-steps article,.home-steps article:last-child { grid-column: auto; }
  .home-steps article { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 24px; }
  .home-steps article b,.home-steps article h3,.home-steps article p { grid-column: 1; }
  .home-steps h3 { margin-top: 18px; }
  .step-ui { grid-column: 2; grid-row: 1 / 4; margin: -28px -28px -28px 0; padding: 24px 20px; border-top: 0; border-left: 1px solid var(--line); }






}
@media (max-width:760px) {
  :root { --page-gutter: 16px; --section-space: 40px; --mobile-radius: 20px; }
  html { scroll-padding-top: 84px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 68px; padding: 10px max(var(--page-gutter),env(safe-area-inset-right)) 10px max(var(--page-gutter),env(safe-area-inset-left)); gap: 10px; }
  .brand-copy strong { font-size: 19px; }
  .brand-mark { width: 28px; height: 28px; }
  .account-btn { min-height: 44px; padding-inline: 12px; }
  .hero.hero-v95 { margin-top: 28px; gap: 24px; padding: 0; border-radius: 0; }
  .hero .eyebrow { margin-bottom: 20px; font-size: 9px; letter-spacing: .1em; }
  .hero-v95 .hero-copy h1 { margin-bottom: 20px; font-size: clamp(36px,8.6vw,52px); line-height: 1.12; letter-spacing: -.055em; }
  .hero-v95 .hero-copy p { max-width: 540px; font-size: 15px; line-height: 1.75; }
  .home-clinic-search { margin-top: 24px; padding: 8px; border-radius: var(--mobile-radius); }
  .home-clinic-search select { font-size: 16px; }
  .hero-assist-link { font-size: 12px; }
  .hero-trust-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 16px; gap: 12px 8px; font-size: 10px; line-height: 1.6; }
  .hero-portrait { width: 100%; min-height: 0; height: 340px; max-height: none; margin: 0; border-radius: 20px 56px 20px 20px; }
  .hero-portrait > img { object-position: 90% 35%; }
  .hero-photo-label { top: 16px; left: 16px; }
  .portrait-note { left: 14px; right: 14px; bottom: 14px; gap: 10px; padding: 14px; border-radius: 14px; }
  .portrait-note strong { font-size: 11px; }
  .portrait-note small { font-size: 9px; }
  .portrait-note-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .home-section-head { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .home-section-head h2 { margin: 10px 0 12px; font-size: clamp(28px,6.5vw,36px); }
  .home-section-head p { font-size: 14px; }
  .home-service-categories { gap: 10px; }
  .home-service-category { grid-template-columns: minmax(0,1fr); min-height: 170px; align-items: start; align-content: start; gap: 14px; padding: 18px; border-radius: 18px; }
  .home-service-icon { grid-row: auto; width: 38px; height: 38px; border-radius: 12px; }
  .home-service-category strong { font-size: 13px; }
  .home-service-link { grid-column: 1; font-size: 10px; }
  .home-steps article { display: flex; gap: 0; padding: 24px; border-radius: var(--mobile-radius); }
  .home-steps h3 { margin-block: 18px 12px; font-size: 22px; }
  .home-steps p { font-size: 14px; }
  .step-ui { margin: 22px -24px -24px; padding: 18px; border-left: 0; border-top: 1px solid var(--line); }
  .verified-explainer { padding: 26px 22px; border-radius: var(--mobile-radius); }
  .home-trust-intro h2 { font-size: clamp(28px,6.6vw,36px); line-height: 1.25; }
  .home-trust-intro > p { font-size: 14px; }
  .home-trust-grid { grid-template-columns: minmax(0,1fr); gap: 26px; margin-top: 26px; padding-top: 24px; }
  .home-trust-grid article { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 8px 14px; }
  .home-trust-grid h3 { margin: 0; font-size: 16px; }
  .home-trust-grid p { grid-column: 2; font-size: 13px; }








  .home-faq { padding-top: var(--section-space); padding-bottom: 36px; }
  .home-faq summary { min-height: 72px; font-size: 14px; }
  .home-faq details p { font-size: 13px; }
  .home-clinic-invitation { align-items: start; margin-top: 32px; }
  .home-clinic-invitation .text-link { font-size: 12px; }
  .catalog-heading,.learn-hero { margin-top: 28px; padding: 0; }
  .catalog-heading h1,.learn-hero h1 { font-size: clamp(36px,8vw,48px); }
  .catalog-heading p,.learn-hero p { font-size: 15px; }
  .simple-search { margin-top: 24px; padding: 8px; gap: 6px; border-radius: var(--mobile-radius); }
  .simple-search .simple-search-field { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
  .simple-search .simple-search-submit { min-height: 48px; margin: 0; }
  .search-secondary { margin: 0; padding-block: 10px 18px; }
  .results-toolbar,.results-heading { margin-bottom: 16px; }
  .sort-chips { flex-wrap: wrap; white-space: normal; overflow: visible; padding: 0; gap: 6px; }
  .sort-chips button { min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .clinic-grid,.doctor-list { grid-template-columns: minmax(0,1fr); gap: 18px; padding-bottom: 32px; }
  .marketplace-card-copy { padding: 20px; }
  .marketplace-card-brand h3 { font-size: 21px; }
  .marketplace-cover { height: auto; aspect-ratio: 16 / 10; }
  .marketplace-public-hero,.marketplace-public-overlay { min-height: 340px; height: auto; border-radius: var(--mobile-radius); }
  .marketplace-public-overlay { padding: 24px 20px; border-radius: 0; }
  .marketplace-identity h1 { font-size: clamp(27px,7vw,36px); }
  .marketplace-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
  .marketplace-gallery-item:first-child { grid-column: 1 / -1; }
  .marketplace-gallery-button { height: 145px; border-radius: 12px; }
  .marketplace-gallery-item:first-child .marketplace-gallery-button { height: 225px; }
  .marketplace-gallery .marketplace-gallery-button img,.marketplace-gallery .marketplace-gallery-button .marketplace-fallback { height: 100%; border-radius: 0; }
  .clinic-page-section { margin-top: 18px; padding: 22px 20px; border-radius: var(--mobile-radius); }
  .clinic-page-section > h2 { font-size: 28px; }
  .marketplace-doctors article { padding: 18px; gap: 14px; border-radius: 18px; }
  .marketplace-doctor-photo { width: 70px; height: 90px; flex-basis: 70px; border-radius: 12px; }
  .marketplace-doctor-copy h3 { font-size: 20px; }
  .marketplace-doctor-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .marketplace-doctor-actions .table-btn { min-height: 44px; margin-top: 0; }
  .services-table article { padding: 18px; }
  .services-table article > div:last-child { min-width: 0; }
  .services-table article > div:last-child .table-btn { margin-left: auto; }
  .doctor-list { margin-top: 24px; margin-bottom: 32px; }
  .doctor-list article { padding: 22px; }
  .doctor-directory-photo { height: 240px; margin: -22px -22px 22px; }
  .partner-hero { margin-top: 24px; padding: 24px 20px; border-radius: var(--mobile-radius); }
  .partner-form,.account-summary,.booking-card,.media-editor,.empty-state,.loading-card { border-radius: var(--mobile-radius); }
  .partner-form,.account-summary,.booking-card { padding: 20px; }
  .dashboard-head { padding-block: 28px 18px; }
  .dashboard-body { padding-bottom: 32px; }
  .cabinet-nav { top: 68px; padding-bottom: 10px; margin-bottom: 18px; background: var(--bg); }
  dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: var(--mobile-radius); }
  .modal-shell { padding: 22px 20px; }
  .gallery-dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); }
  .gallery-viewer { padding: 14px; }
  .gallery-toolbar { align-items: start; flex-wrap: wrap; gap: 12px; }
  .gallery-toolbar h2 { font-size: 18px; }
  .gallery-stage img,.gallery-stage .marketplace-fallback { height: 52vh; height: 52dvh; }
  .gallery-caption { font-size: 12px; }
  .mobile-nav { grid-template-columns: repeat(5,minmax(0,1fr)); left: 0; right: 0; padding: 8px max(var(--page-gutter),env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(var(--page-gutter),env(safe-area-inset-left)); border-top: 1px solid var(--line); border-radius: 0; color: var(--text); background: #faf8f4f5; box-shadow: 0 -4px 24px #16352d08; }
  .mobile-nav button { min-height: 54px; }
  .mobile-nav button.active,.mobile-nav button[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  .site-menu-popover.mobile-open,.compare-bar { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .page-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .site-footer { display: grid; gap: 12px; padding-block: 28px; }
}
@media (max-width:600px) {
  .home-clinic-search { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .home-clinic-search label { min-height: 65px; padding: 10px 14px; background: var(--surface-soft); }
  .home-clinic-search label + label { border-left: 0; }
  .home-clinic-search button { grid-column: 1; margin-top: 4px; }
  .hero-portrait { height: 315px; }
}
@media (max-width:390px) {
  .hero-v95 .hero-copy h1 { font-size: clamp(32px,9.3vw,37px); }
  .hero-v95 .hero-copy p { font-size: 14px; }
  .hero-trust-row { font-size: 9px; gap: 10px 6px; }
  .hero-portrait { height: 285px; }
  .portrait-note { padding: 12px; }
  .home-service-category { padding: 15px; }
  .home-steps article { padding: 22px; }
  .step-ui { margin-inline: -22px; margin-bottom: -22px; padding: 16px; }
  .marketplace-card-copy { padding: 18px; }
  .marketplace-card-copy .card-actions { grid-template-columns: minmax(0,1fr); }
  .marketplace-card-copy .card-actions button { font-size: 13px; }
  .marketplace-doctors article { flex-direction: column; }
  .marketplace-doctor-photo { width: 86px; height: 108px; flex-basis: auto; }
  .services-table article > div:last-child .table-btn { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  dialog[open],.cabinet-panel,.page-toast,.action-pulse { animation: none !important; }
  .view .premium-entered { animation: dentavra-content-fade 1.3s cubic-bezier(.4,0,.2,1) both !important; }
  .view .premium-animating { will-change: opacity; }
  .primary-btn,.book-btn,.secondary-btn,.ghost-btn,.table-btn,.account-btn,.marketplace-cover img,.clinic-card-marketplace,.doctor-list article,.home-service-category { transition: none; }
  .clinic-card-marketplace:hover .marketplace-cover img,.clinic-card-marketplace:hover,.doctor-list article:hover,.home-service-category:hover { transform: none; }
}
