/*
 * EWDC redesign layer (2026-11) — sitewide: tokens, focus, top bar, sticky header, buttons, icons,
 * language switcher, forms, footer. Loads after ewdc-clarity.css (which keeps the inner-page type scale).
 * Design rules: white / #f5f5f7 surfaces, one accent (brand navy), hairline borders, no shadows,
 * outline icons (1.5px), pill buttons, generous whitespace. Contrast: body text 7.7:1 (AAA),
 * muted text 7.2:1 on #f5f5f7, form borders 3.6:1 (WCAG 1.4.11).
 */

/* ---------- Fonts: Inter Cyrillic joins the existing Latin Inter so RU/UK match everywhere ---------- */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

/* ---------- Tokens ---------- */
html:root{
 --rd-ink:#1d1d1f; --rd-ink2:#515154; --rd-line:#d2d2d7; --rd-field:#86868b;
 --rd-bg:#fff; --rd-bg2:#f5f5f7; --rd-navy:#172852; --rd-navy2:#0f1c3d;
 --rd-gold:#5f5026; --rd-focus:#0a5bd3; --rd-err:#a6231a;
 --rd-wrap:1180px; --rd-gutter:clamp(20px,4vw,40px);
 --rd-bar-h:36px; --rd-head-h:64px;
}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--rd-head-h) + 16px)}
@media (prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 html body *,html body *::before,html body *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
body.ewdc-lang-ru,body.ewdc-lang-uk{letter-spacing:0;hyphens:manual}
body.ewdc-lang-ru :is(h1,h2,h3),body.ewdc-lang-uk :is(h1,h2,h3){letter-spacing:-.02em;overflow-wrap:break-word}

/* ---------- Focus (WCAG 2.4.7 / 2.4.11) ---------- */
html body :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
 outline:3px solid var(--rd-focus);outline-offset:2px;border-radius:6px;box-shadow:0 0 0 5px #fff}
html body .screen-reader-text:focus{z-index:100000}

/* ---------- Icons ---------- */
.ewdc-ico{width:1.25em;height:1.25em;flex:none;display:inline-block;vertical-align:-.2em}

/* ---------- Layout helpers ---------- */
html body .ewdc-rd-wrap,html body .ewdc-home .ewdc-container{max-width:var(--rd-wrap);margin-inline:auto;padding-inline:var(--rd-gutter)}
.ewdc-eyebrow{font-size:.9375rem;font-weight:600;letter-spacing:-.005em;color:var(--rd-gold);margin:0 0 12px}
.ewdc-head{max-width:720px;margin:0 auto 56px;text-align:center}
.ewdc-head h2{margin:0 0 14px}
html body .ewdc-home .ewdc-head .ewdc-sub,.ewdc-sub{font-size:1.1875rem;line-height:1.5;color:var(--rd-ink2);margin:0}
.ewdc-foot-link{text-align:center;margin:56px 0 0}
.ewdc-link{display:inline-flex;align-items:center;gap:.4em;font-weight:500;color:var(--rd-navy);text-decoration:none;border-bottom:1px solid transparent}
.ewdc-link:hover{border-bottom-color:currentColor}
.ewdc-link .ewdc-ico{width:1.1em;height:1.1em;transition:transform .25s ease}
.ewdc-link:hover .ewdc-ico{transform:translateX(3px)}

/* ---------- Top bar (contact + Schedule Online) ---------- */
.ewdc-bar{background:var(--rd-bg2);border-bottom:1px solid #e8e8ed;font-size:.8125rem;line-height:1.2;color:var(--rd-ink2)}
.ewdc-bar-in{max-width:var(--rd-wrap);margin:0 auto;padding:0 var(--rd-gutter);min-height:var(--rd-bar-h);display:flex;align-items:center;gap:20px}
.ewdc-bar-spacer{flex:1}
.ewdc-bar-item{display:inline-flex;align-items:center;gap:7px;color:var(--rd-ink2);text-decoration:none;white-space:nowrap}
.ewdc-bar a.ewdc-bar-item:hover{color:var(--rd-ink);text-decoration:underline}
.ewdc-bar .ewdc-ico{width:15px;height:15px}
.ewdc-bar-phone{font-weight:600;color:var(--rd-ink)}
.ewdc-bar-cta{display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:0 14px;border-radius:980px;background:var(--rd-navy);color:#fff!important;font-weight:600;text-decoration:none}
.ewdc-bar-cta:hover{background:var(--rd-navy2)}
@media (max-width:900px){.ewdc-bar-addr,.ewdc-bar-hours{display:none}.ewdc-bar-in{gap:12px;justify-content:flex-end}.ewdc-bar-spacer{display:none}}
@media (max-width:420px){.ewdc-bar-cta span:not(.screen-reader-text){display:none}.ewdc-bar-cta{width:32px;padding:0;justify-content:center}}

/* ---------- Language switcher ---------- */
.ewdc-lang ul{display:flex;gap:2px;list-style:none;margin:0;padding:0}
.ewdc-lang a{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:28px;padding:0 6px;border-radius:8px;font-size:.75rem;font-weight:600;letter-spacing:.04em;color:var(--rd-ink2);text-decoration:none}
.ewdc-lang a:hover{background:#e8e8ed;color:var(--rd-ink)}
.ewdc-lang a[aria-current="true"]{background:#e8e8ed;color:var(--rd-ink);box-shadow:inset 0 -2px 0 var(--rd-navy)}

/* ---------- Sticky header (minimal, ≤64px) ---------- */
html body header#header,html body header.ct-header{position:sticky;top:0;z-index:990;background:rgba(255,255,255,.88);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid #e8e8ed;box-shadow:none}
html body header.ct-header [data-row]{min-height:var(--rd-head-h)!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body header.ct-header [data-row] > .ct-container{min-height:var(--rd-head-h)!important}
html body .site-branding img.ewdc-lockup-img{height:40px!important}
html body header.ct-header .menu>li>a,html body header.ct-header .ct-menu-link{font-size:.9375rem;font-weight:500;color:var(--rd-ink)!important;letter-spacing:-.005em}
html body header.ct-header .menu>li>a:hover{color:var(--rd-navy)!important;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
html body header.ct-header .sub-menu{border:1px solid var(--rd-line);border-radius:16px;box-shadow:none;background:#fff;padding:8px}
html body header.ct-header .sub-menu a{font-size:.9375rem;border-radius:8px}
/* three-level menu must also open with the keyboard */
html body .ct-header .sub-menu li:focus-within>.sub-menu,html body header .sub-menu li:focus-within>.sub-menu{opacity:1!important;visibility:visible!important;transform:none!important}
html body header.ct-header .ct-header-search svg,html body header.ct-header .ct-header-trigger svg{stroke-width:1.5}
@media (max-width:999px){html body header.ct-header [data-row]{min-height:56px!important}html body .site-branding img.ewdc-lockup-img{height:34px!important}}

/* ---------- Buttons ---------- */
html body .ewdc-btn--primary,html body a.ewdc-btn-gold,html body .ewdc-btn-gold,html body a.ewdc-btn-primary,html body button.ewdc-btn-primary{
 display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:48px;padding:0 28px;border-radius:980px!important;border:1px solid var(--rd-navy)!important;
 background:var(--rd-navy)!important;color:#fff!important;font:600 1.0625rem/1 var(--ax-font-text,system-ui);letter-spacing:-.01em;text-decoration:none!important;cursor:pointer;box-shadow:none!important;
 transition:background-color .2s ease,border-color .2s ease}
html body .ewdc-btn--primary:hover,html body a.ewdc-btn-gold:hover,html body .ewdc-btn-gold:hover,html body a.ewdc-btn-primary:hover,html body button.ewdc-btn-primary:hover{background:var(--rd-navy2)!important;border-color:var(--rd-navy2)!important;transform:none}
html body .ewdc-btn--ghost{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:48px;padding:0 24px;border-radius:980px;border:1px solid var(--rd-navy);background:transparent;color:var(--rd-navy)!important;font:600 1.0625rem/1 var(--ax-font-text,system-ui);text-decoration:none!important;transition:background-color .2s ease}
html body .ewdc-btn--ghost:hover{background:rgba(23,40,82,.06)}
.ewdc-btn .ewdc-ico{width:1.15em;height:1.15em}

/* ---------- Forms (appointment, contact, landing pages) ---------- */
.ewdc-form2{background:#fff;color:var(--rd-ink);font-family:var(--ax-font-text,system-ui)}
.ewdc-form2 .ewdc-grid2{display:grid;grid-template-columns:1fr 1fr;gap:24px 20px;margin:0 0 24px}
.ewdc-form2 .ewdc-field{margin:0 0 24px}
.ewdc-form2 .ewdc-grid2 .ewdc-field{margin:0}
.ewdc-form2 label{display:block;margin:0 0 8px;font-size:.9375rem;font-weight:600;line-height:1.3;color:var(--rd-ink)}
.ewdc-req{color:var(--rd-err);font-weight:600}
.ewdc-form2 :is(input[type=text],input[type=tel],input[type=email],select,textarea){
 display:block;width:100%;box-sizing:border-box;min-height:52px;padding:14px 16px;border:1px solid var(--rd-field);border-radius:12px;background:#fff;color:var(--rd-ink);
 font:400 1rem/1.3 var(--ax-font-text,system-ui);box-shadow:none;-webkit-appearance:none;appearance:none;transition:border-color .15s ease,box-shadow .15s ease}
.ewdc-form2 textarea{min-height:120px;resize:vertical;line-height:1.5}
.ewdc-form2 select{padding-right:44px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23515154' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/20px}
.ewdc-form2 ::placeholder{color:#6e6e73;opacity:1}
.ewdc-form2 :is(input,select,textarea):hover{border-color:var(--rd-ink2)}
.ewdc-form2 :is(input,select,textarea):focus{border-color:var(--rd-navy);outline:3px solid var(--rd-focus);outline-offset:1px;box-shadow:none}
.ewdc-form2 [aria-invalid="true"]{border-color:var(--rd-err);box-shadow:inset 3px 0 0 var(--rd-err)}
.ewdc-err{margin:8px 0 0;font-size:.875rem;line-height:1.35;color:var(--rd-err);font-weight:500}
.ewdc-err::before{content:"Error: ";font-weight:700}
body.ewdc-lang-ru .ewdc-err::before{content:"Ошибка: "}
body.ewdc-lang-uk .ewdc-err::before{content:"Помилка: "}
.ewdc-hint,.ewdc-form-note{margin:8px 0 0;font-size:.875rem;line-height:1.4;color:var(--rd-ink2)}
.ewdc-form-note{margin:0 0 24px}
.ewdc-form-alt{margin:16px 0 0;text-align:center}
.ewdc-form2 .ewdc-captcha{padding:20px;border:1px solid var(--rd-line);border-radius:12px;background:var(--rd-bg2)}
.ewdc-form2 .ewdc-captcha label{margin-bottom:10px}
.ewdc-form2 .ewdc-captcha-q{font-variant-numeric:tabular-nums;font-size:1.125rem}
.ewdc-form2 .ewdc-captcha-input{max-width:140px;text-align:center;font-size:1.25rem;letter-spacing:.1em}
.ewdc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.ewdc-check{display:flex!important;gap:14px;align-items:flex-start;margin:0!important;font-weight:400!important;font-size:.9375rem!important;color:var(--rd-ink2)!important;cursor:pointer}
.ewdc-check input{flex:none;width:24px;height:24px;margin:1px 0 0;accent-color:var(--rd-navy)}
.ewdc-check a{color:var(--rd-navy);text-decoration:underline;text-underline-offset:3px}
.ewdc-submit{width:100%;min-height:56px;font-size:1.125rem!important}
.ewdc-alert{margin:0 0 24px;padding:16px 20px;border:1px solid var(--rd-err);border-left-width:4px;border-radius:12px;background:#fff;color:var(--rd-ink)}
.ewdc-alert p{margin:0 0 6px}.ewdc-alert ul{margin:0;padding-left:20px}
@media (max-width:640px){.ewdc-form2 .ewdc-grid2{grid-template-columns:1fr;gap:20px}.ewdc-form2 .ewdc-captcha-input{max-width:none}}

/* ---------- Footer ---------- */
html body .ewdc-foot{background:var(--rd-bg2);color:var(--rd-ink2);margin:0;padding:72px 0 32px;border-top:1px solid #e8e8ed;font-family:var(--ax-font-text,system-ui)}
.ewdc-foot-in{max-width:var(--rd-wrap);margin:0 auto;padding:0 var(--rd-gutter)}
.ewdc-foot-top{display:grid;grid-template-columns:minmax(220px,1fr) 2.6fr;gap:48px;padding-bottom:48px;border-bottom:1px solid var(--rd-line)}
.ewdc-foot-logo{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--rd-ink);text-decoration:none}
.ewdc-foot-brand p{margin:12px 0 0;max-width:30ch;font-size:.9375rem;line-height:1.5;color:var(--rd-ink2)}
.ewdc-foot-info{display:grid;grid-template-columns:repeat(4,auto);gap:32px;font-style:normal;justify-content:space-between}
.ewdc-foot-h{margin:0 0 12px;font:600 .75rem/1.2 var(--ax-font-text,system-ui)!important;letter-spacing:.08em;text-transform:uppercase;color:var(--rd-ink2)!important}
.ewdc-foot-block p{margin:0;font-size:.9375rem;line-height:1.55;color:var(--rd-ink)}
.ewdc-foot a{color:var(--rd-ink);text-decoration:none}
.ewdc-foot a:hover{text-decoration:underline;text-underline-offset:3px}
.ewdc-foot-social{display:flex;gap:6px;list-style:none;margin:-8px 0 0 -10px;padding:0}
.ewdc-foot-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--rd-ink)}
.ewdc-foot-social a:hover{background:#e8e8ed;text-decoration:none}
.ewdc-foot-social .ewdc-ico{width:22px;height:22px}
.ewdc-foot-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding:40px 0;border-bottom:1px solid var(--rd-line)}
.ewdc-foot-nav ul,.ewdc-foot-bottom ul{list-style:none;margin:0;padding:0}
.ewdc-foot-nav li{margin:0 0 4px}
.ewdc-foot-nav a{display:inline-block;padding:5px 0;font-size:.9375rem}
.ewdc-foot-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px;padding-top:24px;font-size:.8125rem}
.ewdc-foot-bottom p{margin:0;color:var(--rd-ink2)}
.ewdc-foot-bottom ul{display:flex;gap:4px 20px;flex-wrap:wrap}
.ewdc-foot-bottom ul a{padding:8px 0;display:inline-block}
.ewdc-foot-lang{margin-left:auto}
@media (max-width:900px){.ewdc-foot-top{grid-template-columns:1fr;gap:32px}.ewdc-foot-info{grid-template-columns:1fr 1fr;gap:28px 24px;justify-content:start}}
@media (max-width:640px){html body .ewdc-foot{padding-top:48px}.ewdc-foot-nav{grid-template-columns:1fr 1fr}.ewdc-foot-lang{margin-left:0}}
@media (max-width:420px){.ewdc-foot-info,.ewdc-foot-nav{grid-template-columns:1fr}}

/* ---------- Retired floating elements: never show, even if a plugin or old markup re-adds them ---------- */
.ewdc-side-buttons,.ewdc-sticky-bar,.ewdc-sticky-cta-bar,#ewdc-sticky-cta,#ewdc-mobile-cta-bar,.ewdc-contact-bar,.ewdc-header-phone-li{display:none!important}
body{padding-bottom:0!important}

/* Emoji replaced by outline icons: same size as the glyph, constant 1.5px hairline at every size */
.ewdc-ico--em{width:1em;height:1em;vertical-align:-.14em;margin:0 .05em}
.ewdc-ico *{vector-effect:non-scaling-stroke}

/* ---------- Our Team ---------- */
.ewdc-team{background:#fff}
.ewdc-team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;list-style:none;margin:0;padding:0}
.ewdc-team-card{margin:0}
.ewdc-team-link{display:block;height:100%;border-radius:20px;background:var(--rd-bg2);color:var(--rd-ink)!important;text-decoration:none!important;overflow:hidden;transition:background-color .3s ease}
.ewdc-team-photo{display:block;aspect-ratio:4/5;overflow:hidden;background:#ececf0}
.ewdc-team-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.ewdc-team-body{display:block;padding:24px 28px 30px}
.ewdc-team-name{display:block;font-size:1.375rem;font-weight:600;line-height:1.2;letter-spacing:-.02em}
.ewdc-team-role{display:block;margin-top:6px;font-size:1rem;line-height:1.4;color:var(--rd-ink2)}
.ewdc-team-more{display:inline-flex;align-items:center;gap:.4em;margin-top:18px;font-size:1rem;font-weight:500;color:var(--rd-navy)}
.ewdc-team-more .ewdc-ico{width:1.1em;height:1.1em;transition:transform .25s ease}
@media (hover:hover){
 .ewdc-team-link:hover{background:#ececf0}
 .ewdc-team-link:hover .ewdc-team-photo img{transform:scale(1.035)}
 .ewdc-team-link:hover .ewdc-team-more .ewdc-ico{transform:translateX(4px)}
}
@media (prefers-reduced-motion:reduce){.ewdc-team-link:hover .ewdc-team-photo img{transform:none}}
@media (max-width:900px){.ewdc-team-grid{grid-template-columns:1fr;max-width:440px;margin-inline:auto;gap:20px}}


/* ---------- Doctor profile pages: calm white hero + the same portrait treatment as the homepage ---------- */
html body .ewdc-doctor .ewdc-doctor-hero{background:#fff;color:var(--rd-ink);padding:clamp(40px,7vw,88px) 0;border-bottom:1px solid #e8e8ed}
html body .ewdc-doctor .ewdc-doctor-hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(28px,6vw,80px);align-items:center}
html body .ewdc-doctor .ewdc-doctor-hero-label{background:none;border:0;padding:0;border-radius:0;color:var(--rd-gold);font-size:1rem;font-weight:600;letter-spacing:-.005em;text-transform:none}
html body .ewdc-doctor .ewdc-doctor-hero h1{color:var(--rd-ink);letter-spacing:-.03em}
html body .ewdc-doctor .ewdc-doctor-hero h1 span{color:var(--rd-ink2);font-weight:500}
html body .ewdc-doctor .ewdc-doctor-hero p{color:var(--rd-ink2)}
html body .ewdc-doctor .ewdc-hero-buttons .ewdc-btn{min-height:48px;border-radius:980px;border:1px solid var(--rd-navy);font-weight:600}
html body .ewdc-doctor .ewdc-hero-buttons .ewdc-btn-primary{background:var(--rd-navy);color:#fff}
html body .ewdc-doctor .ewdc-hero-buttons .ewdc-btn-outline{background:transparent;color:var(--rd-navy)}
.ewdc-doctor-portrait{margin:0;border-radius:20px;overflow:hidden;background:#ececf0;aspect-ratio:4/5;max-width:400px;justify-self:end;width:100%}
.ewdc-doctor-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
@media (max-width:860px){html body .ewdc-doctor .ewdc-doctor-hero-grid{grid-template-columns:1fr}.ewdc-doctor-portrait{justify-self:start;max-width:320px;order:-1}}
/* author box (end of every inner page) */
html body .ewdc-author-box{background:var(--rd-bg2);border:0;border-radius:16px}
html body .ewdc-author-box img{object-position:50% 12%}

.ewdc-form2 a:not(.ewdc-btn){color:var(--rd-navy);text-decoration:underline;text-underline-offset:3px}

/* ---------- Accessibility fixes found by the axe audit ---------- */
html:root{--text-light:#515154;--gray-text:#515154;--theme-link-initial-color:#172852;--theme-link-hover-color:#0f1c3d}
/* real <button> inside legacy FAQ headings */
button.ewdc-faq-btn{display:block;flex:1;margin:-20px 0 -20px -24px;padding:20px 24px;min-height:60px;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-align:inherit;cursor:pointer}
/* plain in-text links: navy, underlined (4.3:1 blue → 14:1) */
html body main :is(p,li,dd,td) a:not([class]){color:var(--rd-navy);text-decoration:underline;text-underline-offset:3px}
/* gold-on-light text/avatars → darker gold (AAA 7.9:1) */
html body.page-template-page-contact .ewdc-areas-served > .ewdc-container > div:first-child > p[style]{color:var(--rd-gold)!important}
/* the navy 'areas served' bands on service pages need the light champagne eyebrow (dark gold = 1.8:1 there) */
html body:not(.page-template-page-contact) .ewdc-areas-served > .ewdc-container > div:first-child > p[style]:first-child{color:#E2C58A!important}
html body .ewdc-featured-review .ewdc-reviewer-avatar{background:var(--rd-navy);color:#fff}
/* gold buttons on inner pages: one navy button style, white text (beats template/clarity rules with an id) */
html body #main a.ewdc-btn-gold,html body #main a.ewdc-btn-primary,html body #main .ewdc-btn-gold.ewdc-btn{background:var(--rd-navy)!important;color:#fff!important;border-color:var(--rd-navy)!important}
html body #main a.ewdc-btn-gold:hover,html body #main a.ewdc-btn-primary:hover{background:var(--rd-navy2)!important;border-color:var(--rd-navy2)!important}
html body .ewdc-page > h2{color:var(--rd-ink);border-bottom-color:var(--rd-line);border-bottom-width:1px}
html body [style*="#6b7280"]{color:var(--rd-ink2)!important}
html body .ewdc-page a.btn,html body .ewdc-page .btn{background:var(--rd-navy)!important;color:#fff!important;border-color:var(--rd-navy)!important;border-radius:980px}

/* touch/pointer targets ≥ 24px (WCAG 2.5.8) in the top bar and footer */
.ewdc-bar a.ewdc-bar-item{min-height:28px}
.ewdc-foot-logo{display:inline-block;padding:4px 0;min-height:28px}

/* ---------- Mobile menu (Blocksy off-canvas): clean white sheet, large touch rows ---------- */
html body #offcanvas .ct-panel-inner{background:#fff!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border-left:1px solid var(--rd-line)}
html body #offcanvas .ct-panel-actions{padding:12px 16px}
html body #offcanvas .ct-toggle-close{color:var(--rd-ink)!important;width:44px;height:44px}
html body #offcanvas .ct-toggle-close svg{fill:var(--rd-ink)}
html body #offcanvas nav.mobile-menu{padding:0 20px 32px}
html body #offcanvas .mobile-menu .menu-item{border-bottom:1px solid #e8e8ed;margin:0}
html body #offcanvas .mobile-menu a{display:flex;align-items:center;min-height:52px;padding:10px 0;color:var(--rd-ink)!important;font-size:1.0625rem;font-weight:500;letter-spacing:-.01em}
html body #offcanvas .mobile-menu .sub-menu a{min-height:46px;padding-left:16px;font-size:1rem;font-weight:400;color:var(--rd-ink2)!important}
html body #offcanvas .mobile-menu .current-menu-item>a{color:var(--rd-navy)!important;font-weight:600}
html body #offcanvas .mobile-menu .ct-toggle-dropdown-mobile{color:var(--rd-ink)!important;min-width:44px;min-height:44px}
html body #offcanvas .mobile-menu .ct-toggle-dropdown-mobile svg{fill:var(--rd-ink)}
.ewdc-nowrap{white-space:nowrap}
@media (max-width:560px){html body .ewdc-btn--ghost{height:auto;padding-block:12px;line-height:1.25;text-align:center}}
html body #offcanvas .mobile-menu li>a,html body #offcanvas .mobile-menu .ct-sub-menu-parent>a{padding-inline:0!important}
html body #offcanvas .mobile-menu .sub-menu li>a{padding-inline:16px 0!important}
.ewdc-bar-cta{white-space:nowrap;flex:none}
@media (max-width:1100px){.ewdc-bar-hours{display:none}}

/* Light heroes (Clarity turned the old navy heroes white): gold text must be the dark gold (AAA 7.9:1) */
html body :is([class*="-hero"],[class*="hero-"]) :is(h1 span,p[style*="var(--gold)"],a[style*="var(--gold)"]){color:var(--rd-gold)!important}
html body .ewdc-policy-hero-label{color:var(--rd-gold)!important}
html body:not(.page-template-page-contact,.page-template-page-dental-implants-hillsboro,.page-template-page-general-dentistry,.page-template-page-sedation-dentistry-hillsboro) :is(.ewdc-area-card,.ewdc-area-item) :is(h3,h4){color:var(--rd-navy)!important}
html body:not(.page-template-page-contact) .ewdc-areas-served :is(.ewdc-area-card,.ewdc-area-item) :is(h3,h4){color:#E2C58A!important}
/* dark 'areas we serve' bands (translucent-white cards on navy) keep the gold heading (AA: ≥4.5:1) */
html body:is(.page-template-page-dental-implants-hillsboro,.page-template-page-general-dentistry,.page-template-page-sedation-dentistry-hillsboro) .ewdc-area-card :is(h3,h4){color:#E2C58A!important}

/* ---------- Language menu (globe + flags) ---------- */
.ewdc-bar{position:relative;z-index:995}
.ewdc-langmenu{position:relative}
.ewdc-langmenu-btn{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 8px;border:0;border-radius:980px;background:transparent;color:var(--rd-ink2);font:600 .75rem/1 var(--ax-font-text,system-ui);letter-spacing:.06em;cursor:pointer}
.ewdc-langmenu-btn:hover,.ewdc-langmenu-btn[aria-expanded="true"]{background:#e8e8ed;color:var(--rd-ink)}
.ewdc-langmenu-btn .ewdc-ico{width:16px;height:16px}
.ewdc-langmenu-btn .ewdc-langmenu-chev{width:12px;height:12px;transition:transform .2s ease}
.ewdc-langmenu-btn[aria-expanded="true"] .ewdc-langmenu-chev{transform:rotate(180deg)}
.ewdc-langmenu-list{position:absolute;right:0;top:calc(100% + 8px);z-index:1000;min-width:196px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--rd-line);border-radius:12px;box-shadow:0 14px 34px -14px rgba(8,21,37,.28);
 opacity:0;visibility:hidden;transform:translateY(-6px) scale(.98);transform-origin:top right;transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
.ewdc-langmenu.is-open .ewdc-langmenu-list{opacity:1;visibility:visible;transform:none;transition:opacity .18s ease,transform .18s ease,visibility 0s}
.ewdc-langmenu-list li{margin:0}
.ewdc-langmenu-list a{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:8px;color:var(--rd-ink)!important;font-size:.9375rem;font-weight:500;text-decoration:none}
.ewdc-langmenu-list a:hover{background:var(--rd-bg2)}
.ewdc-langmenu-list a[aria-current="true"]{background:#F8F7F3;font-weight:600}
.ewdc-flag{flex:none;width:20px;height:14px;border-radius:3px;box-shadow:0 0 0 1px rgba(8,21,37,.2)}
.ewdc-langmenu-name{flex:1}
.ewdc-langmenu-check{width:16px;height:16px;color:#7A5C25}
@media (prefers-reduced-motion:reduce){.ewdc-langmenu-list,.ewdc-langmenu-chev{transition:none}}


/* ================= Round 7: Schedule Online CTA (champagne gold) + sticky header actions =================
   Chosen option: filled champagne-gold pill with navy text (7.5:1), a faint soft glow and a slow light sweep every ~9 s.
   Rejected: pulsing ring / bounce (distracting), outline-only (too quiet beside the navy hero). Static for reduced motion. */
html body .ewdc-bar-cta,html body .ewdc-gold-cta{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 16px;border:1px solid #b8923f;border-radius:980px;background:linear-gradient(135deg,#ecd29c 0%,#d4b06c 52%,#C6A15B 100%);color:#081525!important;font-weight:600;letter-spacing:.005em;text-decoration:none!important;white-space:nowrap;box-shadow:0 0 0 0 rgba(198,161,91,0),0 6px 16px -8px rgba(122,92,37,.7);transition:box-shadow .3s ease,filter .3s ease,transform .3s ease}
html body .ewdc-bar-cta:hover,html body .ewdc-gold-cta:hover{background:linear-gradient(135deg,#f3dfb0 0%,#e0bd7c 52%,#cfa862 100%);box-shadow:0 0 0 4px rgba(198,161,91,.22),0 8px 20px -8px rgba(122,92,37,.75)}
html body .ewdc-bar-cta::after,html body .ewdc-gold-cta::after{content:"";position:absolute;inset:0 auto 0 0;width:38%;z-index:-1;background:linear-gradient(105deg,transparent,rgba(255,255,255,.55),transparent);transform:translateX(-140%);animation:ewdc-sheen 9s ease-in-out 2.5s infinite}
@keyframes ewdc-sheen{0%,72%{transform:translateX(-140%)}100%{transform:translateX(380%)}}
html body .ewdc-bar-cta .ewdc-ico,html body .ewdc-gold-cta .ewdc-ico{width:16px;height:16px}
html body .ewdc-bar-cta span:not(.screen-reader-text){display:inline!important}
html body .ewdc-bar-cta{width:auto!important;padding:0 14px!important}
@media (prefers-reduced-motion:reduce){html body .ewdc-bar-cta::after,html body .ewdc-gold-cta::after{animation:none;display:none}}
.ewdc-hdr-actions{display:none;align-items:center;gap:12px;margin-right:14px}
body.ewdc-stuck .ewdc-hdr-actions{display:flex;animation:ewdc-fadein .35s ease both}
@keyframes ewdc-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.ewdc-hdr-phone{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 4px;color:var(--rd-ink)!important;font-weight:600;font-size:.9375rem;text-decoration:none!important;white-space:nowrap}
.ewdc-hdr-phone:hover{color:var(--rd-navy)!important;text-decoration:underline!important;text-underline-offset:4px}
.ewdc-hdr-phone .ewdc-ico{width:18px;height:18px}
html body .ewdc-hdr-cta{min-height:38px}
@media (max-width:1199px){.ewdc-hdr-phone span{display:none}.ewdc-hdr-phone{width:44px;justify-content:center;padding:0;border:1px solid var(--rd-line);border-radius:50%}}
@media (max-width:999px){.ewdc-hdr-actions{gap:8px;margin-right:6px}html body .ewdc-hdr-cta{padding:0 12px;min-height:40px;font-size:.875rem}}
@media (max-width:389px){.ewdc-hdr-cta .ewdc-ico{display:none}}
body.ewdc-stuck header.ct-header [data-row]{min-height:56px!important}
body.ewdc-stuck header.ct-header [data-row]>.ct-container{min-height:56px!important}
body.ewdc-stuck .site-branding img.ewdc-lockup-img{height:34px!important}
header.ct-header,header.ct-header [data-row],.site-branding img.ewdc-lockup-img{transition:min-height .3s ease,height .3s ease}
@media (prefers-reduced-motion:reduce){body.ewdc-stuck .ewdc-hdr-actions{animation:none}header.ct-header,header.ct-header [data-row],.site-branding img.ewdc-lockup-img{transition:none}}

.ewdc-hdr-cta .ewdc-s{display:none}
.ewdc-hdr-actions{margin:0 0 0 14px}
@media (max-width:699px){.ewdc-hdr-cta .ewdc-l{display:none}.ewdc-hdr-cta .ewdc-s{display:inline}.ewdc-hdr-actions{margin:0 4px 0 0}}
@media (max-width:999px){.ewdc-hdr-actions{margin:0 6px 0 0}}


/* ---------- Footer: grouped service columns (round 7) ---------- */
.ewdc-foot-services{padding:40px 0 8px;border-bottom:1px solid var(--rd-line)}
.ewdc-foot-h-lg{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin:0 0 24px}
.ewdc-foot-all{display:inline-flex;align-items:center;gap:6px;font-size:.9375rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--rd-navy);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#C6A15B}
.ewdc-foot-all .ewdc-ico{width:15px;height:15px}
.ewdc-foot-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 28px}
.ewdc-foot-gh{margin:0 0 10px;padding-bottom:10px;font-family:var(--ax-font-text,system-ui);font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--rd-ink);border-bottom:1px solid #C6A15B}
.ewdc-foot-group ul{list-style:none;margin:0;padding:0}
.ewdc-foot-group li{margin:0}
.ewdc-foot-group a{display:inline-block;padding:5px 0;font-size:.9375rem;line-height:1.35}
.ewdc-foot-area-note{margin:10px 0 0;font-size:.875rem;line-height:1.5;color:var(--rd-ink2);max-width:24em}
@media (max-width:1100px){.ewdc-foot-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.ewdc-foot-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.ewdc-foot-nav{grid-template-columns:1fr 1fr}}
@media (max-width:420px){.ewdc-foot-groups{grid-template-columns:1fr}}
body.ewdc-lang-ru .ewdc-foot-gh,body.ewdc-lang-uk .ewdc-foot-gh{min-height:2.9em;display:flex;align-items:flex-end}
@media (max-width:1100px){body.ewdc-lang-ru .ewdc-foot-gh,body.ewdc-lang-uk .ewdc-foot-gh{min-height:0;display:block}}

/* Comment-form submit: brand navy instead of the parent theme's default blue (also lifts contrast to AA) */
html body .comment-form :is(button.submit,input.submit,#submit){background:var(--rd-navy)!important;border-color:var(--rd-navy)!important;color:#fff!important;border-radius:980px;min-height:44px;padding:0 24px}
html body .comment-form :is(button.submit,input.submit,#submit):hover{background:var(--rd-navy2)!important}
.ewdc-foot-all{min-height:32px}
@media (max-width:420px){.ewdc-hdr-actions{gap:6px;margin-right:2px}.ewdc-hdr-phone{width:40px;min-height:40px;height:40px}html body .ewdc-hdr-cta{padding:0 11px;min-height:38px}html body header.ct-header .ct-header-trigger{margin-left:0}}

/* Cookie-policy "Cookie Preferences" button (WPConsent shortcode) — WCAG AA contrast, matches the site's navy/gold buttons */
.wpconsent-open-preferences.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.65rem 1.4rem;border:0;border-radius:999px;background:#172852;color:#fff;font:600 1rem/1.2 inherit;cursor:pointer}
.wpconsent-open-preferences.button:hover,.wpconsent-open-preferences.button:focus-visible{background:#0f1c3d;color:#fff;box-shadow:0 0 0 3px rgba(197,164,100,.55)}

/* ---------- Round 9: larger header logo (aspect ratio preserved: width:auto, 400x135 source) ---------- */
:root{--rd-head-h:84px}
html body header.ct-header .site-branding img.ewdc-lockup-img{height:58px!important;width:auto!important}
body.ewdc-stuck{--rd-head-h:64px}
body.ewdc-stuck header.ct-header [data-row],body.ewdc-stuck header.ct-header [data-row]>.ct-container{min-height:64px!important}
html body.ewdc-stuck header.ct-header .site-branding img.ewdc-lockup-img{height:44px!important}
@media (min-width:1000px) and (max-width:1199.98px){html body header.ct-header .site-branding img.ewdc-lockup-img{height:50px!important}:root{--rd-head-h:76px}}
@media (max-width:999.98px){
  :root{--rd-head-h:66px}
  html body header.ct-header [data-row],html body header.ct-header [data-row]>.ct-container{min-height:66px!important}
  html body header.ct-header .site-branding img.ewdc-lockup-img{height:48px!important}
  body.ewdc-stuck header.ct-header [data-row],body.ewdc-stuck header.ct-header [data-row]>.ct-container{min-height:58px!important}
  html body.ewdc-stuck header.ct-header .site-branding img.ewdc-lockup-img{height:40px!important}
}
@media (max-width:389.98px){html body header.ct-header .site-branding img.ewdc-lockup-img{height:42px!important}}
@media (min-width:1200px){html body header.ct-header [data-row],html body header.ct-header [data-row]>.ct-container{min-height:82px!important}}
@media (min-width:1000px) and (max-width:1199.98px){html body header.ct-header [data-row],html body header.ct-header [data-row]>.ct-container{min-height:74px!important}}

/* ---------- Round 9: Special Offers — champagne cards, readable text (terms and prices untouched) ---------- */
html body .ewdc-offers .ewdc-featured-offer{background:#fbf7ec!important;border:1px solid #dccb9b;box-shadow:0 1px 2px rgba(23,40,82,.05),0 18px 40px -24px rgba(23,40,82,.28);padding:clamp(1.75rem,4vw,3rem);grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;text-align:left}
html body .ewdc-offers .ewdc-featured-offer::before{display:none}
html body .ewdc-offers .ewdc-featured-content>p:first-child{display:inline-block;margin:0 0 1rem!important;padding:6px 14px;border-radius:999px;background:#f0e3bd;color:#4f3d12!important;font:600 .8125rem/1.2 var(--font-body,inherit)!important;letter-spacing:.08em;text-transform:uppercase}
html body .ewdc-offers .ewdc-featured-content h2{color:#172852;font-size:clamp(1.75rem,3.4vw,2.5rem);line-height:1.15;margin:0 0 .75rem;max-width:18ch}
html body .ewdc-offers .ewdc-featured-content>p:not(:first-child){color:#3a3f4b;font-size:1.0625rem;line-height:1.6;max-width:52ch}
html body .ewdc-offers .ewdc-featured-price{align-items:baseline;gap:.9rem;margin:0 0 1.5rem}
html body .ewdc-offers .ewdc-featured-price .price{color:#172852;font-size:clamp(3rem,6vw,4rem);line-height:1}
html body .ewdc-offers .ewdc-featured-price .original{color:#555a66;font-size:1.125rem}
html body .ewdc-offers .ewdc-featured-content .ewdc-btn{background:#172852;color:#fff;border:0;min-height:48px;padding:0 1.75rem;display:inline-flex;align-items:center}
html body .ewdc-offers .ewdc-featured-content .ewdc-btn:hover{background:#0f1c3d;color:#fff}
html body .ewdc-offers .ewdc-featured-badge{text-align:left;background:#172852;border-radius:18px;padding:1.75rem 1.75rem}
html body .ewdc-offers .ewdc-featured-badge h3{color:#ead6a4;font-size:1.0625rem;letter-spacing:.02em;margin:0 0 .85rem}
html body .ewdc-offers .ewdc-featured-badge p{color:#f4f5f8;font-size:1rem;line-height:2}
html body .ewdc-offers .ewdc-offer-header .price{color:#ecd9a8}
html body .ewdc-offers .ewdc-offer-header .original-price{color:rgba(255,255,255,.78)}
html body .ewdc-offers .ewdc-offer-ribbon{background:#ead6a4;color:#172852;font-weight:700;letter-spacing:.06em;box-shadow:none}
html body .ewdc-offers .ewdc-offer-btn:hover{background:#0f1c3d;color:#fff}
html body .ewdc-offers .ewdc-offer-note{color:#505560}
@media (max-width:1024px){html body .ewdc-offers .ewdc-featured-offer{grid-template-columns:1fr;text-align:left}html body .ewdc-offers .ewdc-featured-content h2{max-width:none}}

/* ---------- Round 9: Smile Gallery — equal-height cards, responsive grid, label below image, readable CTAs ---------- */
html body .ewdc-cases-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(1rem,2vw,1.75rem);max-width:none;margin:0;align-items:stretch}
@media (max-width:1279.98px){html body .ewdc-cases-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:699.98px){html body .ewdc-cases-grid{grid-template-columns:minmax(0,1fr);max-width:440px;margin:0 auto}}
html body .ewdc-case-card{display:flex;flex-direction:column;height:100%}
html body .ewdc-case-card:hover{transform:none}
html body .ewdc-case-image-single{flex:0 0 auto;aspect-ratio:364/474;width:100%;background:#fff}
html body .ewdc-case-image-single img{width:100%;height:100%;object-fit:contain}
html body .ewdc-case-image-single .ewdc-ba-label{position:static;display:inline-block;margin:0;transform:none;background:#172852;color:#fff;border-radius:0 0 12px 0;padding:6px 14px;font-size:.75rem;letter-spacing:.06em}
html body .ewdc-case-image-single{display:flex;flex-direction:column}
html body .ewdc-case-image-single img{flex:1 1 auto;min-height:0}
html body .ewdc-case-image-single .ewdc-ba-label{order:2;align-self:flex-start;border-radius:0 12px 0 0}
html body .ewdc-case-info{display:flex;flex-direction:column;flex:1 1 auto;padding:1.25rem 1.35rem 1.4rem}
html body .ewdc-case-info p{flex:1 1 auto}
html body .ewdc-case-info .ewdc-case-details{margin-top:auto}
html body .ewdc-case-category{background:#f0e3bd;color:#4f3d12;font-weight:600;letter-spacing:.04em;align-self:flex-start}
html body .ewdc-filter-tabs{margin-bottom:2rem}
html body .ewdc-filter-btn{min-height:44px}
html body .ewdc-gallery-cta{background:#fbf7ec!important;border-top:1px solid #e3d5ac;border-bottom:1px solid #e3d5ac}
html body .ewdc-gallery-cta h2{color:#172852}
html body .ewdc-gallery-cta p{color:#3a3f4b}
html body .ewdc-gallery-cta .ewdc-btn-primary{background:#172852;color:#fff}
html body .ewdc-gallery-cta .ewdc-btn:not(.ewdc-btn-primary){background:#fff!important;color:#172852!important;border:1.5px solid #172852}
html body .ewdc-gallery-cta div[style*="flex"]{flex-wrap:wrap;justify-content:center}
/* Gold-filled buttons with white text (inline-styled CTAs on ~50 templates): champagne fill + navy text = 9:1 */
html body a[style*="background: #b79f6f"],html body a[style*="background:#b79f6f"],html body .ewdc-btn-gold,html body a[style*="background: var(--gold)"]{background:#ead6a4!important;color:#172852!important;border-color:#ead6a4!important}
html body a[style*="background: #b79f6f"]:hover,html body .ewdc-btn-gold:hover{background:#f3e5bd!important;color:#0f1c3d!important}
@media (max-width:999.98px){html body.ewdc-stuck header.ct-header .site-branding img.ewdc-lockup-img{height:36px!important}}

/* ---------- Round 9: one clean service hero (solid navy, left-aligned, optional real photo) ---------- */
:root{--rd-gold-on-dark:#ecd9a8}
html body.ewdc-service-page :is(.ewdc-service-hero,.ewdc-cosmetic-hero,.pediatric-hero,.ewdc-compare-hero,.crowns-hero,.allon4-hero,.wisdom-hero,.ewdc-emergency-hero,.ewdc-services-hero){background:linear-gradient(135deg,#172852 0%,#0f1c3d 100%)!important;min-height:0!important;padding:clamp(40px,6vw,84px) 0!important;text-align:left!important;display:block!important}
html body.ewdc-service-page :is(.ewdc-service-hero,.ewdc-cosmetic-hero,.pediatric-hero,.ewdc-compare-hero,.crowns-hero,.allon4-hero,.wisdom-hero,.ewdc-emergency-hero,.ewdc-services-hero)::before,
html body.ewdc-service-page :is(.ewdc-service-hero,.ewdc-cosmetic-hero,.pediatric-hero,.ewdc-compare-hero,.crowns-hero,.allon4-hero,.wisdom-hero,.ewdc-emergency-hero,.ewdc-services-hero)::after{display:none!important}
html body.ewdc-service-page :is([class*="hero"]) :is(h1){color:#fff!important;text-align:left!important;font-size:clamp(2rem,1.2rem + 2.6vw,3.2rem)!important;line-height:1.1!important;letter-spacing:-.025em;max-width:20ch;margin:0 0 1rem!important}
html body.ewdc-service-page :is([class*="hero"]) h1 span{color:var(--rd-gold-on-dark)!important;display:inline}
html body.ewdc-service-page :is([class*="hero"]) :is(p,.subtitle){color:rgba(255,255,255,.9)!important;text-align:left!important;max-width:58ch;margin-left:0!important;margin-right:0!important;font-size:1.0625rem;line-height:1.6}
html body.ewdc-service-page :is([class*="hero-content"],[class*="hero-text"]){text-align:left!important;margin:0!important;max-width:680px!important}
html body.ewdc-service-page :is([class*="hero"]) :is([class*="-label"],[class*="badge"]):not(.ewdc-hero-photo *){background:var(--rd-gold-on-dark)!important;color:#0f1c3d!important;border-radius:999px;padding:6px 14px;display:inline-block;font-weight:600;font-size:.8125rem;letter-spacing:.04em;text-transform:none;margin-bottom:1rem}
html body.ewdc-service-page :is([class*="hero"]) :is([class*="buttons"],.hero-cta,.ewdc-hero-buttons){justify-content:flex-start!important;display:flex;flex-wrap:wrap;gap:12px;margin-top:1.5rem}
html body.ewdc-service-page :is([class*="hero"]) .ewdc-btn-outline,html body.ewdc-service-page :is([class*="hero"]) .btn-white-outline{background:transparent!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.75)!important}
html body.ewdc-service-page :is([class*="hero"]) :is(.ewdc-btn-gold,.btn-gold,.ewdc-btn-primary){background:var(--rd-gold-on-dark)!important;color:#0f1c3d!important;border:0}
/* hero with photo: two columns */
html body.ewdc-service-page section.has-photo>.ewdc-hero-wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
html body .ewdc-hero-photo{margin:0;border-radius:20px;overflow:hidden;box-shadow:0 24px 50px -28px rgba(0,0,0,.6);background:#0f1c3d}
html body .ewdc-hero-photo img{display:block;width:100%;height:auto;max-height:440px;object-fit:cover}
@media (max-width:899.98px){html body.ewdc-service-page section.has-photo>.ewdc-hero-wrap{grid-template-columns:1fr}html body .ewdc-hero-photo{order:-1}html body .ewdc-hero-photo img{max-height:260px}}
/* champagne for gold text on every other dark hero (about, contact, offers, gallery, reviews, blog, policy…) */
html body :is([class*="-hero"],[class*="hero-"]) :is(h1 span,p[style*="var(--gold)"],a[style*="var(--gold)"]){color:var(--rd-gold-on-dark)!important}
html body :is(.ewdc-policy-hero-label,.ewdc-best-hero-label,.ewdc-article-hero-label,.ewdc-delta-hero-label){color:#0f1c3d!important}
html body.ewdc-service-page.ewdc-service-page :is([class*="hero"]) a:is(.ewdc-btn-gold,.btn-gold,.ewdc-btn-primary,.ewdc-btn):not(.ewdc-btn-outline):not(.btn-white-outline){background:var(--rd-gold-on-dark)!important;color:#0f1c3d!important;border:0!important}
html body.ewdc-service-page.ewdc-service-page :is([class*="hero"]) a:is(.ewdc-btn-gold,.btn-gold,.ewdc-btn-primary):hover{background:#f6e8c4!important}
html body.ewdc-service-page :is([class*="hero"]) h1{max-width:none!important;text-wrap:balance}
/* Primary/gold buttons that sit on a navy section must be champagne (the global navy button is invisible there) */
html body #main :is([class*="-hero"],[class*="hero-"],.ewdc-service-cta,.ewdc-about-cta,.ewdc-np-cta,.ewdc-faq-cta,.ewdc-sidebar-cta,.ewdc-cta-section,section[style*="#172852 0%"],section[style*="#172852, #0f1c3d"]) a:is(.ewdc-btn-gold,.ewdc-btn-primary,.btn-gold,.ewdc-btn.ewdc-btn-gold){background:#ecd9a8!important;color:#0f1c3d!important;border-color:#ecd9a8!important}
html body #main :is([class*="-hero"],[class*="hero-"],.ewdc-service-cta,.ewdc-about-cta,.ewdc-np-cta,.ewdc-faq-cta,.ewdc-sidebar-cta,.ewdc-cta-section,section[style*="#172852 0%"]) a:is(.ewdc-btn-gold,.ewdc-btn-primary,.btn-gold):hover{background:#f6e8c4!important;color:#0f1c3d!important}
html body #main section[style*="#172852 0%"] a[style*="background"]{background:#ecd9a8!important;color:#0f1c3d!important}
html body .ewdc-hero-icon{display:flex;align-items:center;justify-content:center;width:min(300px,100%);aspect-ratio:1;margin:0 auto;border-radius:50%;border:1px solid rgba(236,217,168,.38);background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.08),rgba(255,255,255,.02));color:#ecd9a8}
html body .ewdc-hero-icon .ewdc-ico{width:42%;height:42%;stroke-width:1}
@media (max-width:899.98px){html body .ewdc-hero-icon{display:none}}

html body.ewdc-service-page .ewdc-hero-text{min-width:0}
html body.ewdc-service-page :is(.hero-cta){position:static!important;display:flex!important;flex-wrap:wrap;gap:12px;margin-top:1.5rem}
html body.ewdc-service-page .hero-cta a{display:inline-flex;align-items:center;min-height:48px;padding:0 1.5rem;border-radius:999px;width:auto!important;height:auto!important;font-weight:600}
html body.ewdc-service-page .ewdc-hero-wrap>.ewdc-hero-photo,html body.ewdc-service-page .ewdc-hero-wrap>.ewdc-hero-icon{align-self:center}
html body.ewdc-service-page .ewdc-hero-text>div[style*="flex"],html body.ewdc-service-page .ewdc-hero-text [class*="hero-content"]>div[style*="flex"]{justify-content:flex-start!important}
html body.ewdc-service-page .ewdc-hero-text .ewdc-emergency-subtext{text-align:left!important;margin-top:1rem}
html body.ewdc-service-page .ewdc-trust-badge-icon{background:#172852!important;color:#ecd9a8!important}

/* ---------- Round 9: doctor profile pages (.ewdc-dr) ---------- */
html body .ewdc-dr{--dr-navy:#172852;--dr-navy2:#0f1c3d;--dr-champ:#ecd9a8;--dr-ivory:#fbf7ec;--dr-ink:#232a3b;color:var(--dr-ink)}
html body .ewdc-dr h1,html body .ewdc-dr h2{color:var(--dr-navy);letter-spacing:-.02em}
html body .ewdc-dr-crumbs{padding:14px 0;background:#fff;border-bottom:1px solid #e8e8ed}
html body .ewdc-dr-crumbs ol{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0;padding:0;font-size:.9rem}
html body .ewdc-dr-crumbs li+li::before{content:"/";margin-right:.5rem;color:#6b7280}
html body .ewdc-dr-hero{background:linear-gradient(135deg,#172852 0%,#0f1c3d 100%);padding:clamp(36px,6vw,80px) 0}
html body .ewdc-dr-hero-grid{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:clamp(1.75rem,5vw,4.5rem);align-items:center}
html body .ewdc-dr-portrait{margin:0;border-radius:22px;overflow:hidden;background:#0f1c3d;box-shadow:0 30px 60px -30px rgba(0,0,0,.65);aspect-ratio:4/5}
html body .ewdc-dr-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%}
html body .ewdc-dr-role{color:var(--dr-champ);font-weight:600;font-size:.9375rem;letter-spacing:.04em;margin:0 0 .75rem}
html body .ewdc-dr-hero h1{color:#fff;font-size:clamp(2.1rem,1.2rem + 3vw,3.4rem);line-height:1.08;margin:0 0 1rem}
html body .ewdc-dr-lede{color:rgba(255,255,255,.92);font-size:1.125rem;line-height:1.6;max-width:52ch;margin:0 0 1.75rem}
html body .ewdc-dr-actions{display:flex;flex-wrap:wrap;gap:12px}
html body .ewdc-dr-hero .ewdc-btn-gold,html body .ewdc-dr-cta .ewdc-btn-gold{background:var(--dr-champ)!important;color:var(--dr-navy2)!important;border:0!important}
html body .ewdc-dr .ewdc-btn-outline{background:transparent!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.75)!important}
html body .ewdc-dr-section{padding:clamp(40px,6vw,72px) 0}
html body .ewdc-dr-body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
html body .ewdc-dr-bio p{font-size:1.0625rem;line-height:1.75;margin:0 0 1.1rem;max-width:62ch}
html body .ewdc-dr-facts{background:var(--dr-ivory);border:1px solid #e3d5ac;border-radius:18px;padding:1.5rem 1.6rem}
html body .ewdc-dr-facts h2{font-size:1.125rem;margin:0 0 1rem}
html body .ewdc-dr-facts dl{margin:0}
html body .ewdc-dr-facts dl>div{padding:.75rem 0;border-top:1px solid #e3d5ac}
html body .ewdc-dr-facts dl>div:first-child{border-top:0;padding-top:0}
html body .ewdc-dr-facts dt{font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5f4a1a;margin:0 0 .2rem}
html body .ewdc-dr-facts dd{margin:0;line-height:1.5}
html body .ewdc-dr-services{background:#f5f5f7}
html body .ewdc-dr-sub{color:#4a5060;max-width:62ch;margin:.25rem 0 1.5rem}
html body .ewdc-dr-svc-grid,html body .ewdc-dr-other-grid{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
html body .ewdc-dr-svc-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
html body .ewdc-dr-svc-grid a{display:flex;flex-direction:column;gap:.4rem;height:100%;padding:1.25rem;background:#fff;border:1px solid #e8e8ed;border-radius:16px;text-decoration:none;color:var(--dr-ink);transition:box-shadow .2s,border-color .2s}
html body .ewdc-dr-svc-grid a:hover,html body .ewdc-dr-svc-grid a:focus-visible{border-color:#d8c58f;box-shadow:0 10px 28px -16px rgba(23,40,82,.35)}
html body .ewdc-dr-svc-grid strong{color:var(--dr-navy);font-size:1.0625rem}
html body .ewdc-dr-svc-grid a>span:last-child{color:#4a5060;font-size:.95rem;line-height:1.5}
html body .ewdc-dr-svc-ico{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#f7f0df;border:1px solid rgba(154,118,40,.4);color:var(--dr-navy)}
html body .ewdc-dr-svc-ico .ewdc-ico{width:22px;height:22px}
html body .ewdc-dr-other-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));max-width:720px}
html body .ewdc-dr-other-grid a{display:flex;align-items:center;gap:1rem;padding:.9rem;border:1px solid #e8e8ed;border-radius:16px;text-decoration:none;color:var(--dr-ink);background:#fff}
html body .ewdc-dr-other-grid img{width:72px;height:90px;object-fit:cover;object-position:center 20%;border-radius:12px;flex:none}
html body .ewdc-dr-other-grid strong{display:block;color:var(--dr-navy)}
html body .ewdc-dr-other-grid em{font-style:normal;color:#4a5060;font-size:.9rem}
html body .ewdc-dr-more{margin-top:1.25rem}
html body .ewdc-dr-cta{background:linear-gradient(135deg,#172852,#0f1c3d);text-align:center;padding:clamp(40px,6vw,72px) 0;color:#fff}
html body .ewdc-dr-cta h2{color:#fff}
html body .ewdc-dr-cta p{color:rgba(255,255,255,.9);max-width:56ch;margin:.5rem auto 1.5rem}
html body .ewdc-dr-cta .ewdc-dr-actions{justify-content:center}
html body .ewdc-dr-cta .ewdc-dr-addr{margin:1.25rem 0 0;font-size:.95rem}
@media (max-width:899.98px){html body .ewdc-dr-hero-grid,html body .ewdc-dr-body{grid-template-columns:1fr}html body .ewdc-dr-portrait{max-width:340px;margin:0 auto}}
html body #main .ewdc-dr .ewdc-btn-gold{background:#ecd9a8!important;color:#0f1c3d!important;border:0!important}
html body #main .ewdc-dr .ewdc-btn-gold:hover{background:#f6e8c4!important}
html body .ewdc-dr :is(.ewdc-dr-svc-grid,.ewdc-dr-other-grid) a,html body .ewdc-dr :is(.ewdc-dr-svc-grid,.ewdc-dr-other-grid) a *{text-decoration:none!important}
html body .ewdc-dr .ewdc-dr-cta .ewdc-dr-addr{text-align:center;max-width:none}
html body .ewdc-dr .ewdc-btn{text-decoration:none!important;display:inline-flex;align-items:center;min-height:48px;padding:0 1.6rem;border-radius:999px;font-weight:600}
html body #main .ewdc-dr .ewdc-dr-role{color:#ecd9a8!important}

html body .ewdc-about-doctors{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2vw,1.75rem)}
html body .ewdc-about-doctors a{display:flex;flex-direction:column;height:100%;text-decoration:none!important;background:#fff;border:1px solid #e8e8ed;border-radius:20px;overflow:hidden;color:#232a3b;transition:box-shadow .2s,border-color .2s}
html body .ewdc-about-doctors a:hover,html body .ewdc-about-doctors a:focus-visible{border-color:#d8c58f;box-shadow:0 14px 34px -20px rgba(23,40,82,.4)}
html body .ewdc-about-doctors img{display:block;width:100%;aspect-ratio:4/4.4;object-fit:cover;object-position:center 18%}
html body .ewdc-about-doctor-text{display:flex;flex-direction:column;gap:.3rem;padding:1.1rem 1.25rem 1.3rem}
html body .ewdc-about-doctor-text strong{color:#172852;font-size:1.125rem}
html body .ewdc-about-doctor-text em{font-style:normal;color:#4a5060;font-size:.95rem}
html body .ewdc-about-doctor-link{margin-top:.5rem;color:#5f4a1a;font-weight:600;font-size:.95rem}
@media (max-width:899.98px){html body .ewdc-about-doctors{grid-template-columns:1fr;max-width:420px;margin:0 auto}}

/* ---------- Round 9: services hub cards ---------- */
html body .ewdc-hub-group-title{font-size:clamp(1.5rem,1rem + 1.6vw,2.1rem);margin:0 0 1.5rem;padding-bottom:.75rem;border-bottom:1px solid #e3d5ac;color:#172852}
html body .ewdc-hub-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.1rem}
html body .ewdc-hub-card{display:flex;flex-direction:column;gap:.55rem;height:100%;padding:1.4rem;background:#fff;border:1px solid #e8e8ed;border-radius:18px;text-decoration:none!important;color:#232a3b;transition:border-color .2s,box-shadow .2s,transform .2s}
html body .ewdc-hub-card:hover,html body .ewdc-hub-card:focus-visible{border-color:#d8c58f;box-shadow:0 14px 34px -20px rgba(23,40,82,.4);transform:translateY(-2px)}
html body .ewdc-hub-ico{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:#f7f0df;border:1px solid rgba(154,118,40,.45);color:#172852}
html body .ewdc-hub-ico .ewdc-ico{width:26px;height:26px;stroke-width:1.4}
html body .ewdc-hub-card strong{color:#172852;font-size:1.125rem;line-height:1.25}
html body .ewdc-hub-desc{color:#4a5060;font-size:.975rem;line-height:1.55;flex:1 1 auto}
html body .ewdc-hub-more{display:inline-flex;align-items:center;gap:.4rem;color:#5f4a1a;font-weight:600;font-size:.95rem}
html body .ewdc-hub-more .ewdc-ico{width:16px;height:16px}
@media (prefers-reduced-motion:reduce){html body .ewdc-hub-card{transition:none}html body .ewdc-hub-card:hover{transform:none}}
html body.ewdc-service-page .ewdc-services-hero figure{display:none!important}

/* services hub featured block + membership hero + dark-section links */
html body .ewdc-featured-service{align-items:center;gap:clamp(1.5rem,4vw,3rem)}
html body .ewdc-featured-service .ewdc-hero-photo{max-width:380px;margin:0 auto;box-shadow:0 20px 44px -26px rgba(23,40,82,.5)}
html body .ewdc-featured-service .ewdc-hero-photo img{max-height:420px}
html body .ewdc-featured-content>p:first-child{display:inline-block;margin:0 0 .9rem!important;padding:6px 14px;border-radius:999px;background:#f0e3bd;color:#4f3d12!important;font:600 .8125rem/1.2 inherit!important;letter-spacing:.08em;text-transform:uppercase}
html body .ewdc-page .service-hero{background:linear-gradient(135deg,#172852 0%,#0f1c3d 100%);color:#fff;border-radius:20px;padding:clamp(28px,5vw,56px);margin-bottom:2rem}
html body .ewdc-page .service-hero h1{color:#fff!important;margin-top:0}
html body .ewdc-page .service-hero p{color:rgba(255,255,255,.92)!important}
html body .ewdc-page .service-hero a{color:#ecd9a8!important;border-bottom-color:#ecd9a8}
html body :is(.ewdc-np-hero,.ewdc-hero,[class*="-hero"]) a[href*="ada.org"],html body section[style*="#172852 0%"] a:not([class]){color:#ecd9a8!important}
html body .ewdc-welcome-box a,html body .ewdc-membership-box a{color:#ecd9a8!important}
html body .spanish-hero{background:linear-gradient(135deg,#172852 0%,#0f1c3d 100%)!important}
html body .spanish-hero h1,html body .spanish-hero .subtitle{color:#fff!important}
html body .spanish-hero .spanish-hero-badge{background:#ecd9a8!important;color:#0f1c3d!important}
html body .spanish-hero .btn-gold{background:#ecd9a8!important;color:#0f1c3d!important;border:0!important}
html body .spanish-hero .btn-white-outline{background:transparent!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.8)!important}
html body main .ewdc-featured-content>p:first-child[style]{color:#4f3d12!important}
html body main .ewdc-offers .ewdc-featured-content>p:first-child[style]{color:#4f3d12!important}
html body .ewdc-page .service-hero strong,html body .ewdc-page .service-hero strong a{color:#ecd9a8!important}
/* hero slider: stronger left scrim so the champagne eyebrow and secondary link meet AA over every photo */
html body .ewdc-slide-media::after{background:linear-gradient(90deg,var(--lux-navy,#0b1a31) 0,rgba(8,21,37,.9) 24%,rgba(8,21,37,.62) 50%,rgba(8,21,37,.12) 78%,rgba(8,21,37,0) 100%),linear-gradient(0deg,rgba(8,21,37,.55),transparent 30%)}
@media (max-width:700px){html body .ewdc-slide-media::after{background:linear-gradient(0deg,rgba(8,21,37,.95) 0,rgba(8,21,37,.82) 45%,rgba(8,21,37,.35) 100%)}}
html body .ewdc-slide-copy .ewdc-eyebrow{color:#ecd9a8}
html body .ewdc-article-hero h1 span{color:#fff!important;text-shadow:0 1px 14px rgba(8,18,44,.55)}
html body header.ewdc-article-hero.ewdc-article-hero h1 span{color:#fff!important;text-shadow:0 1px 14px rgba(8,18,44,.55)}
html body section[style*="#f9f9f9"] p[style*="var(--gold)"]{color:#5f4a1a!important}
html body .ewdc-table-wrapper:focus-visible{outline:2px solid #0a5bd3;outline-offset:2px}
html body section[style*="#f9f9f9"] p[style*="#b79f6f"],html body section[style*="#f9f9f9"] a[style*="color: #b79f6f"]{color:#5f4a1a!important}
/* AI-SEO / GEO Answer-First Clinical Summary (SpeakableSpecification target) */
.ewdc-bluf-wrap{max-width:1200px;margin:24px auto 0;padding:0 1.5rem}
.ewdc-bluf-summary{background:#f8f7f3;border:1px solid #e6e2d6;border-left:4px solid #b79f6f;border-radius:12px;padding:1.25rem 1.5rem;color:#172852}
.ewdc-bluf-eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#5f4a1a!important;margin:0 0 .45rem!important}
.ewdc-bluf-text{font-size:1rem;line-height:1.65;color:#1d2433!important;margin:0 0 .9rem!important;font-weight:400}
.ewdc-bluf-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.65rem 1.25rem;margin:0;padding:.75rem 0 0;border-top:1px solid #e6e2d6}
.ewdc-bluf-fact dt{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#5f4a1a;margin:0}
.ewdc-bluf-fact dd{font-size:.92rem;color:#172852;margin:.15rem 0 0;font-weight:500}
.ewdc-bluf-links{display:flex;flex-wrap:wrap;gap:.5rem .9rem;margin-top:.85rem;padding-top:.7rem;border-top:1px solid #e6e2d6;font-size:.88rem}
.ewdc-bluf-links a{color:#172852!important;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.ewdc-bluf-links a:hover{color:#5f4a1a!important}
