/* TEK-1032 — CSP-safe presentation for public/patient runtime markup.
   Keep state-dependent values (visibility, progress width, map runtime state)
   in direct CSSOM updates; fixed presentation belongs here. */

.runtime-relative-anchor { position: relative; }
.city-ac-dropdown { position: absolute; top: 100%; inset-inline-start: 0; width: 100%; z-index: 200; }

/* Home */
/* TEK-1281 (owner 2026-10-07): the market headline sits centred over the
   search column on every width, in every market and language direction. */
#homeContent > .hero > .container > .home-hero-copy { max-width: 1040px; margin: 0 auto; text-align: center; }
/* TEK-1439: only "right" is accented — the interactive token is Tekel's mint on
   the dark theme and an AA-contrast teal on the light one (gold in contrast mode). */
#homeHeroTitle .headline-emphasis { color: var(--interactive); font-weight: 800; }
/* TEK-1439: desktop Save / Share sit in the hero's top corner, above the
   headline's line box, so the headline and search keep their positions. */
#homeContent > .hero > .container { position: relative; }
/* TEK-1846: Home uses two column widths only. The chat column (example strip,
   request form, "By the numbers") is 880px of content; the reading column
   (headline, "Why Tekel", "How it works") is 1040px, the headline's width.
   Previously the chat sat at 720px under 1160px sections, so the search box
   looked like an afterthought. Change these together with .home-stats-card. */
.home-prompt-section > .container { max-width: 920px; }
.home-section--why > .container,
.home-section--how > .container { max-width: 1080px; }
#homeStats > .section { padding-top: 0; }
.home-stats-card > .small.muted { margin: 0 0 14px; }
.home-stats-card > .hero-stats { margin-top: 0; }
/* TEK-1848: four figures (Tekel dentists, registry listings, specialties,
   cities): one row in the chat column, two rows of two on narrow screens. */
.home-stats-card > .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .home-stats-card > .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Static and provider landing routes */
.static-copy-container { max-width: 760px; padding: 60px 20px; }
.static-legal-body { min-width: 0; overflow-wrap: anywhere; }
.static-not-found { padding: 120px 20px; text-align: center; }
.provider-landing-hero { max-width: 900px; text-align: center; }
.provider-landing-hero .lede { margin: 0 auto 24px; }
.provider-landing-hero .provider-pricing-teaser { margin: -10px auto 20px; }
.provider-landing-actions { justify-content: center; gap: 10px; }
.provider-publish-container { max-width: 980px; }
.provider-publish-heading { margin-bottom: 24px; }
.provider-publish-heading h2 { margin: 8px 0; }
.provider-publish-heading .muted { max-width: 680px; margin: 0 auto; }

/* Shared modal/auth presentation */
.runtime-modal-title { margin: 0; }
.runtime-modal-description { margin-top: -6px; }
.runtime-required { color: var(--accent); }
.runtime-status-success { color: #065f46; }
.runtime-status-error { color: #991b1b; }
.runtime-heading-tight { margin-bottom: 4px; }
.runtime-heading-result { margin-bottom: 8px; }
.runtime-help-tight { margin-top: 4px; }
.runtime-alert { margin-bottom: 12px; }
.runtime-alert p { margin: 6px 0 0; }
.runtime-zero-margin { margin: 0; }

.unverified-banner { background: #fef3c7; color: #92400e; }
.restored-session-banner { background: #e0f2fe; color: #075985; }
.session-banner-action { margin-inline-start: 8px; }
.session-banner-dismiss { margin-inline-start: 4px; }

.login-unverified-alert { padding: 12px 16px; background: #fef3c7; border-radius: 6px; margin-bottom: 16px; border-inline-start: 4px solid #f59e0b; }
.login-unverified-alert__title { margin: 0 0 4px; font-weight: 600; color: #6b2f0b; }
.login-unverified-alert__email { margin: 0 0 2px; font-size: .875rem; color: #6b2f0b; }
.login-unverified-alert__help { margin: 0 0 10px; font-size: .8125rem; color: #78350f; }
#loginResendBtn { cursor: pointer; min-height: 44px; }
#loginResendCountdown { margin-inline-start: 8px; font-size: .8125rem; color: #6b2f0b; }
#loginResendStatus { margin-top: 6px; font-size: .875rem; min-height: 1.25rem; }
.check-email-icon { margin: 0 auto 16px; color: var(--primary); }
#checkEmailSentTo { margin-bottom: 4px; }
.check-email-help { margin-bottom: 24px; }
#checkEmailResendBtn { min-height: 44px; }
#checkEmailResendCountdown { margin-top: 8px; font-size: .8125rem; color: var(--text-muted); display: block; }
#checkEmailResendStatus { min-height: 1.25rem; margin-top: 8px; font-size: .875rem; }
#checkEmailBack { margin-top: 12px; }
.verify-wait-spinner { margin-bottom: 12px; }
.verify-wait-copy { margin: 0; color: #92400e; }
#vpSendStatus, #vpConfirmStatus { min-height: 1.25rem; }
.verify-phone-divider { margin: 8px 0; }

/* Search */
/* TEK-1443: shown when a private Search keyword is not in this tab's memory. */
.search-private-notice { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--info-border); border-radius: var(--radius-sm); background: var(--info-surface); color: var(--info-text); font-size: .9rem; }
#activeFilterBadge { display: none; background: var(--primary); color: #fff; margin-left: 4px; }
.search-toolbar-main { min-width: 0; flex: 1; }
#sortBy { padding: 7px 12px; font-size: .85rem; min-width: 130px; flex-shrink: 0; }
#searchMap { height: 100%; width: 100%; }
.search-location-row { display: flex; gap: 8px; align-items: center; }
[data-action="use-current-location"] { white-space: nowrap; }
[data-action="clear-current-location"] { margin-top: 6px; }
.search-radius-field { margin-top: 10px; margin-bottom: 0; }
#fRadius { width: 100%; }
#resetFilters { margin-top: 10px; }
#searchLoadMore { width: 100%; margin-top: 8px; }

/* Smart Match */
.match-route-status { max-width: 760px; padding: 60px 20px; text-align: center; }
.refine-empty { margin: 0; }
.refine-option { padding: 10px 12px; }
.refine-option summary, .symptom-group summary { cursor: pointer; list-style-position: inside; }
.refine-option summary { font-weight: 600; }
.refine-option__preview, .required-hint, .symptom-group-badge { font-weight: 400; }
.refine-option__preview { margin-left: 8px; }
.refine-option__body { margin-top: 10px; }
.required-hint { margin-left: 0; }
.symptom-group-badge { margin-left: 6px; }
.option-grid-spaced { margin-top: 8px; }
.followup-q { margin-bottom: 18px; }
.followup-q__label { font-weight: 600; margin-bottom: 8px; }
.red-flags-label { font-weight: 600; margin-bottom: 4px; }
.red-flags-sub { margin: 0 0 8px; }
.match-location-row { display: flex; gap: 8px; align-items: center; }
#locNearMe { white-space: nowrap; }
#locClearNearMe { margin-top: 6px; }
#locRadius { width: 100%; }
.quest-emergency-note { margin-top: 12px; }
.match-search-state { text-align: center; padding: 32px; }
#retryMatch { margin-top: 12px; }
.quest-shell--results { max-width: 1200px; }
.match-recommendations { margin-bottom: 16px; }
.match-recommendations h4 { margin-bottom: 8px; }
[data-top-pick] { text-align: start; justify-content: flex-start; display: block; white-space: normal; height: auto; padding: 12px; border-color: var(--primary, #2563eb); }
[data-top-pick] > b + span { display: block; margin-top: 5px; }
[data-top-pick] > .small.muted { display: block; margin-top: 3px; }
.match-results-heading { margin-bottom: 16px; }
.match-results-heading h2 { margin-bottom: 6px; }
#editAnswers { margin-top: 8px; }
#editAnswers svg { vertical-align: -2px; margin-inline-end: 6px; }
.match-guidance-card { margin-bottom: 16px; }
.match-guidance-card h4 { margin-bottom: 6px; }
.match-guidance-card > p.small:not(.muted) { margin-bottom: 8px; }
.match-guidance-targets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.match-guidance-card > p.small.muted { margin-top: 8px; }
.refine-card { margin-bottom: 16px; }
#refinePanelMount { gap: 10px; margin-top: 12px; }
.results-top { margin-bottom: 10px; }
#matchSortBy { padding: 8px 14px; font-size: .875rem; }
#matchSpecialtyFilterBar, #matchCycleChips { margin: -2px 0 10px; }
#matchCycleChips { display: flex; flex-wrap: wrap; gap: 6px; }
#matchMap { height: 100%; width: 100%; }
.match-specialty-filter-row { gap: 8px; flex-wrap: wrap; align-items: center; }
.match-specialty-filter-chip { display: inline-flex; align-items: center; gap: 6px; }
#clearMatchSpecialtyFilter { padding: 2px 8px; line-height: 1; min-height: auto; }
[data-cycle-chip] { font-size: .8rem; padding: 4px 10px; }
.match-result-tags { margin-top: 8px; }
.match-empty-actions { justify-content: center; margin-top: 10px; flex-wrap: wrap; }
[data-popup-name] { margin: 0 0 4px; font-size: .95rem; }
[data-popup-link] { text-decoration: none; font-weight: 700; }
[data-popup-sub] { font-size: .82rem; }
[data-popup-sub] + [data-popup-sub] { margin-top: 2px; }

/* Public profile */
.public-profile-loading { padding: 60px 0; text-align: center; }
.unclaimed-profile-shell { max-width: 720px; padding: 24px 16px 48px; }
.unclaimed-profile { padding: 22px; }
.unclaimed-profile__head { display: flex; gap: 14px; align-items: flex-start; }
.unclaimed-profile__identity { min-width: 0; flex: 1; }
.unclaimed-profile__identity h2 { margin: 0 0 4px; }
.unclaimed-profile__identity .tags { margin-top: 8px; }
.unclaimed-profile__location { margin: 14px 0 4px; }
.unclaimed-profile__location svg { vertical-align: -2px; }
.unclaimed-profile__source { margin: 2px 0 14px; }
.unclaimed-profile__explainer { margin: 0 0 18px; }
.unclaimed-profile__action { margin-bottom: 8px; }
.profile-name-variants { opacity: .85; margin-top: -4px; margin-bottom: 6px; }
.cycle-badge-chip svg { flex-shrink: 0; }
.profile-side .card > h4 { margin-bottom: 8px; }
#sideBook, #sideRequest, #sideCall { margin-bottom: 8px; }
.profile-callout h4 { margin-bottom: 6px; }
.profile-callout p { margin: 0; color: var(--text); }
.profile-list-item { padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }
.profile-list-item svg { vertical-align: middle; }
.hours-compact { margin-bottom: 16px; }
#docMap { height: 300px; min-height: 0; }
.review-head .row { gap: 6px; }
.review-item > .small.muted { margin-bottom: 6px; }
.review-item > p.small { margin: 0; }
.profile-modal-close-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
#legacyOwnerProfilePreviewTitle { margin: 0; }

/* Guarded contact and patient actions */
.guard-contact-message { margin: 0; }
.contact-disclosure { background: var(--surface-2, #f1f5f9); border-radius: 8px; padding: 10px 12px; }
.contact-consent { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; margin-bottom: 12px; }
.contact-consent > input { margin-top: 3px; }
.patient-action-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#aptPhone { flex: 1 1 200px; min-width: 200px; }
.patient-contact-methods { display: inline-flex; gap: 14px; align-items: center; padding: 6px 0; }
.patient-contact-methods label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.patient-action-consent { align-items: flex-start; }
#aptFormError, #bulkFormError { margin: 0; }
.patient-action-hint { margin: 0; }
.bulk-warning { background: var(--warning-50, #fffbeb); border-color: var(--warning, #f59e0b); margin-bottom: 14px; }
.bulk-warning p { margin: 0; color: var(--warning-700, #92400e); }
.bulk-locations { border: 0; padding: 0; margin: 0; }
.bulk-locations legend { font-weight: 600; margin-bottom: 8px; }

/* PWA, review, Google-profile */
.ios-install-sheet h3 { margin-top: 0; }
.ios-install-sheet ol { padding-inline-start: 20px; margin: 12px 0 16px; }
.ios-install-sheet li:not(:last-child) { margin-bottom: 8px; }
.review-form-title { margin-bottom: 4px; }
.google-profile-selected { border-left: 3px solid var(--success, #28a745); }
