/* ==========================================================================
   EWDC luxury pass (2026-11): champagne-gold token system, refined buttons, custom icon styling,
   services hub, shared medallions. Loads after every other theme stylesheet.
   Rule of thumb: navy carries the text, gold is a thin accent (hairlines, icon details, one CTA on dark).
   Contrast (measured, WCAG 2.x): champagne #ecdfba on navy #172852 = 10.9:1 · navy on champagne 10.9:1 ·
   gold-700 #735a22 on ivory #faf6ee = 5.8:1 · navy #172852 on ivory 13.1:1 · ivory on navy 12.7:1.
   Gold-500/600 are for non-text accents only (hairlines, icon strokes).
   ========================================================================== */
:root{
  --lux-gold-100:#f8f1e0;   /* tint wash */
  --lux-gold-200:#efe4c8;   /* soft fill */
  --lux-gold-300:#e3d3a8;   /* hairline on light */
  --lux-gold-400:#d6c18c;   /* champagne highlight */
  --lux-gold-500:#c2a76e;   /* fine rules / ornaments */
  --lux-gold-600:#977a38;   /* icon accent stroke (3.8:1 on ivory, 4.1:1 on white - was #a98d4f, 2.95:1) */
  --lux-gold-700:#735a22;   /* the only gold allowed as text on light */
  --lux-gold-on-dark:#ecdfba;/* gold text / fills on navy */
  --ew-ivory:#faf6ee;
  --ew-ivory-2:#f3ecdc;
  --ew-navy:#172852;
  --ew-navy-d:#0f1c3d;
  --ew-ink:#2b303b;
  --ew-mute:#555b69;
  --ew-line:#e6dec9;
  --ew-shadow:0 1px 2px rgba(15,28,61,.05),0 18px 40px -26px rgba(15,28,61,.28);
}
/* Legacy templates declare --gold:#b79f6f inline; remap it on body so every var(--gold) accent becomes champagne. */
html body{--gold:#b9a06a;--gold-light:#e3d3a8;--ax-gold:#735a22;--ax-gold-on-dark:#ecdfba;--sf-gold:#c2a76e;--sf-ink-gold:#735a22}

/* ---------- Schedule Online: the one primary action (Round 13). Champagne fill, navy ink, soft inner light, fine gold edge ----------
   Fill is a restrained 3-stop champagne (never yellow); the top highlight is an inset 1px line + a faint radial glow; depth is a
   hairline lower shade + a warm, low-opacity drop shadow; the "halo" is a 4px ring at 22% opacity. Text #0f1c3d on #ead9ad = 11.6:1.
   Edge #8a6d2f against white = 4.6:1 (meets the 3:1 non-text minimum on both the white header and the grey top bar). */
:root{--cta-top:#f7eed4;--cta-mid:#ecdcb2;--cta-bot:#dcc68e;--cta-edge:#8a6d2f;--cta-ink:#0f1c3d;--cta-halo:rgba(214,193,140,.26)}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta){position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 20px;border-radius:980px;border:1px solid var(--cta-edge)!important;color:var(--cta-ink)!important;font-weight:650;letter-spacing:.015em;text-shadow:0 1px 0 rgba(255,255,255,.45);text-decoration:none!important;white-space:nowrap;
  background:radial-gradient(130% 120% at 50% -35%,rgba(255,255,255,.8) 0,rgba(255,255,255,0) 58%),linear-gradient(180deg,var(--cta-top) 0%,var(--cta-mid) 54%,var(--cta-bot) 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 0 1px rgba(255,255,255,.28),inset 0 -2px 5px rgba(115,90,34,.2),0 1px 2px rgba(15,28,61,.22),0 10px 20px -12px rgba(115,90,34,.7),0 0 0 4px var(--cta-halo)!important;
  transition:box-shadow .25s ease,transform .25s ease,filter .25s ease}
html body .ewdc-bar-cta{padding:0 18px!important}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta)::after{content:"";display:block!important;position:absolute;inset:0 auto 0 0;width:42%;z-index:-1;background:linear-gradient(105deg,transparent,rgba(255,255,255,.55),transparent);transform:translateX(-150%);animation:none!important;transition:transform .7s ease}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta):hover{filter:brightness(1.035) saturate(1.05);transform:translateY(-1px);color:var(--cta-ink)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(255,255,255,.35),inset 0 -2px 5px rgba(115,90,34,.2),0 2px 3px rgba(15,28,61,.22),0 14px 24px -12px rgba(115,90,34,.78),0 0 0 5px rgba(214,193,140,.4)!important}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta):hover::after{transform:translateX(340%)}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta):active{transform:translateY(0);filter:brightness(.98)}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta):focus-visible{outline:3px solid var(--ew-navy-d)!important;outline-offset:3px}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta) .ewdc-ico{color:var(--cta-ink);width:16px;height:16px;flex:none}
html body :is(.ewdc-bar-cta,.ewdc-gold-cta) span{color:inherit!important}
@media (prefers-reduced-motion:reduce){html body :is(.ewdc-bar-cta,.ewdc-gold-cta),html body :is(.ewdc-bar-cta,.ewdc-gold-cta)::after{transition:none}html body :is(.ewdc-bar-cta,.ewdc-gold-cta):hover{transform:none}}

/* ---------- buttons: navy on light, champagne on navy; never a gold fill on white ---------- */
html body :is(.ewdc-btn-gold,.btn-gold,.ewdc-cta-btn-gold){background:var(--ew-navy);color:#fff;border:1px solid var(--ew-navy);box-shadow:none;background-image:none}
html body :is(.ewdc-btn-gold,.btn-gold):hover{background:var(--ew-navy-d);color:#fff}
html body #main section[style*="#172852"] a[style*="background: #b79f6f"],html body #main section[style*="#172852"] a[style*="background:#b79f6f"]{background:var(--lux-gold-on-dark)!important;color:var(--ew-navy-d)!important}
html body a[style*="background: #b79f6f"][style*="color: #ffffff"]{background:var(--lux-gold-on-dark)!important;color:var(--ew-navy-d)!important}
html body .ewdc-btn,html body .rc-btn{letter-spacing:.005em}

/* ---------- custom icon family (inc/service-icons.php) ---------- */
.ewdc-sico{width:44px;height:44px;color:var(--ew-navy);overflow:visible}
.ewdc-sico .a{stroke:var(--lux-gold-600)}
:is(.rc-sec-navy,.rc-final,.rc-top,.lux-dark,.ewdc-hero-icon,[class*="hero"]) .ewdc-sico{color:#f6efdc}
:is(.rc-sec-navy,.rc-final,.rc-top,.lux-dark,.ewdc-hero-icon,[class*="hero"]) .ewdc-sico .a{stroke:var(--lux-gold-on-dark)}
html body .ewdc-hero-icon .ewdc-sico{width:46%;height:46%;stroke-width:1}
html body .ewdc-hero-icon{border-color:rgba(236,223,186,.38)}

/* shared icon "plate": rounded square, ivory, hairline gold. No circles. */
.lux-plate,html body .ewdc-sf-ico,html body .ewdc-hub-ico{display:inline-grid;place-items:center;width:60px;height:60px;border-radius:14px;background:linear-gradient(180deg,#fffdf8,var(--ew-ivory));border:1px solid var(--lux-gold-300);color:var(--ew-navy);flex:none}
html body .ewdc-sf-ico .ewdc-sico{width:36px;height:36px}
html body .ewdc-sf-card{border-radius:14px;border-color:var(--ew-line);box-shadow:none}
@media (hover:hover){html body .ewdc-sf-card:hover{border-color:var(--lux-gold-500);box-shadow:var(--ew-shadow);transform:none}}

/* ---------- services hub ---------- */
.lux-eyebrow{display:inline-flex;align-items:center;gap:.7rem;margin:0 0 1rem!important;color:var(--lux-gold-on-dark);font-weight:600;font-size:.8125rem;letter-spacing:.14em;text-transform:uppercase}
.lux-eyebrow::before{content:"";width:28px;height:1px;background:currentColor;opacity:.7}
.lux-eyebrow-dark{color:var(--lux-gold-700)}
html body .lux-hub-hero{padding:clamp(40px,6vw,88px) 0!important}
html body .lux-hub-hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,5vw,80px);align-items:center}
html body .lux-hub-hero h1{font-size:clamp(2.1rem,1.1rem + 3vw,3.4rem)!important;line-height:1.08!important;max-width:15ch!important;text-wrap:balance}
html body .lux-hub-hero-copy>p:not(.lux-eyebrow){max-width:52ch}
html body .lux-hub-hero-photo{display:block!important;margin:0;position:relative;border-radius:4px;overflow:visible}
html body .lux-hub-hero-photo::before{content:"";position:absolute;inset:18px -18px -18px 18px;border:1px solid rgba(236,223,186,.45);border-radius:4px;z-index:0}
html body .lux-hub-hero-photo img{position:relative;z-index:1;display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:4px;box-shadow:0 30px 60px -30px rgba(0,0,0,.7)}
html body .lux-hub-hero .ewdc-services-hero-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:1.75rem}

html body .lux-cat{padding:clamp(48px,7vw,96px) 0}
html body .lux-cat-light{background:#fff}
html body .lux-cat-ivory{background:var(--ew-ivory)}
html body .lux-cat-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:clamp(24px,6vw,96px);align-items:start}
html body .lux-cat-head{position:sticky;top:calc(var(--rd-head-h,84px) + 24px)}
html body .lux-cat-num{display:block;font-size:.8125rem;letter-spacing:.2em;color:var(--lux-gold-700);font-weight:600;margin-bottom:.9rem}
html body .lux-cat-num::after{content:"";display:block;width:40px;height:1px;background:var(--lux-gold-500);margin-top:.9rem}
html body .lux-cat-head h2{font-size:clamp(1.75rem,1.1rem + 1.8vw,2.5rem);line-height:1.12;letter-spacing:-.02em;color:var(--ew-navy);margin:0 0 .8rem;padding:0;border:0;text-wrap:balance}
html body .lux-cat-head p{color:var(--ew-mute);margin:0;max-width:30ch;font-size:1.0625rem;line-height:1.6}
html body .lux-svc-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--ew-line)}
html body .lux-svc-list li{margin:0;border-bottom:1px solid var(--ew-line)}
html body .lux-svc{display:grid;grid-template-columns:60px minmax(0,1fr) 24px;gap:clamp(14px,2vw,24px);align-items:center;padding:20px 8px 20px 0;text-decoration:none;color:inherit;transition:background .2s,padding .2s}
html body .lux-svc-ico{display:inline-grid;place-items:center;width:60px;height:60px;border-radius:14px;background:linear-gradient(180deg,#fffdf8,var(--ew-ivory));border:1px solid var(--lux-gold-300);color:var(--ew-navy);transition:border-color .2s}
html body .lux-cat-ivory .lux-svc-ico{background:#fff}
html body .lux-svc-ico .ewdc-sico{width:38px;height:38px}
html body .lux-svc-body{display:flex;flex-direction:column;gap:.2rem}
html body .lux-svc-body strong{color:var(--ew-navy);font-size:1.1875rem;line-height:1.25;font-weight:650}
html body .lux-svc-body span{color:var(--ew-mute);font-size:.975rem;line-height:1.5}
html body .lux-svc-arrow{color:var(--lux-gold-700);display:inline-grid;transition:transform .2s}
html body .lux-svc-arrow svg{width:20px;height:20px}
@media (hover:hover){
  html body .lux-svc:hover{background:linear-gradient(90deg,rgba(214,193,140,.14),transparent)}
  html body .lux-svc:hover .lux-svc-ico{border-color:var(--lux-gold-500)}
  html body .lux-svc:hover .lux-svc-arrow{transform:translateX(4px)}
  html body .lux-svc:hover strong{text-decoration:underline;text-decoration-color:var(--lux-gold-500);text-underline-offset:4px}
}
html body .lux-svc:focus-visible{outline:3px solid var(--lux-gold-600);outline-offset:2px;border-radius:8px}

html body .lux-why{padding:clamp(56px,8vw,104px) 0;background:#fff}
html body .lux-why-head{max-width:640px;margin:0 0 2.5rem}
html body .lux-why-head h2{font-size:clamp(1.75rem,1.1rem + 1.8vw,2.5rem);letter-spacing:-.02em;color:var(--ew-navy);margin:0}
html body .lux-why-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--ew-line);border-left:1px solid var(--ew-line)}
html body .lux-why-grid li{margin:0;padding:clamp(22px,3vw,36px);border-right:1px solid var(--ew-line);border-bottom:1px solid var(--ew-line)}
html body .lux-why-ico{display:inline-grid;color:var(--lux-gold-700);margin-bottom:1rem}
html body .lux-why-ico svg{width:30px;height:30px;stroke-width:1.3}
html body .lux-why-grid h3{font-size:1.1875rem;color:var(--ew-navy);margin:0 0 .45rem}
html body .lux-why-grid p{margin:0;color:var(--ew-mute);font-size:1rem;line-height:1.6}

@media (max-width:899.98px){
  html body .lux-hub-hero-grid{grid-template-columns:1fr}
  html body .lux-hub-hero-photo{order:-1}
  html body .lux-hub-hero-photo::before{display:none}
  html body .lux-hub-hero-photo img{max-height:240px}
  html body .lux-cat-grid{grid-template-columns:1fr;gap:20px}
  html body .lux-cat-head{position:static}
  html body .lux-cat-head p{max-width:none}
  html body .lux-why-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:599.98px){
  html body .lux-svc{grid-template-columns:52px minmax(0,1fr) 20px;padding:16px 0}
  html body .lux-svc-ico{width:52px;height:52px}
  html body .lux-svc-ico .ewdc-sico{width:32px;height:32px}
  html body .lux-why-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){html body .lux-svc,html body .lux-svc-arrow{transition:none}}
html body.ewdc-service-page .lux-hub-hero .lux-hub-hero-photo{display:block!important}
html body .lux-svc{grid-template-columns:68px minmax(0,1fr) 24px}
html body .lux-svc-ico{width:68px;height:68px}
html body .lux-svc-ico .ewdc-sico{width:48px;height:48px}
@media (max-width:599.98px){html body .lux-svc{grid-template-columns:56px minmax(0,1fr) 20px}html body .lux-svc-ico{width:56px;height:56px}html body .lux-svc-ico .ewdc-sico{width:38px;height:38px}}

/* Home stylesheet defines its own --lux-gold (#C6A15B, saturated) and --lux-gold-ink (#7A5C25, brown).
   Unify them with the champagne system so every gold fill / ink on the site comes from one palette. */
html:root{--lux-gold:#e6d7ad;--lux-champ:#f1e7c9;--lux-gold-ink:#735a22}
html body .ewdc-home .ewdc-slider .ewdc-btn--primary,html body .ewdc-home .ewdc-member .ewdc-btn--primary{box-shadow:none!important;background:var(--lux-gold-on-dark)!important;border-color:var(--lux-gold-on-dark)!important;color:#0f1c3d!important}
html body .ewdc-home .ewdc-slider .ewdc-btn--primary:hover,html body .ewdc-home .ewdc-member .ewdc-btn--primary:hover{background:#f6edd3!important;border-color:#f6edd3!important}

/* ---------- full-width gold/brown bands become navy with a champagne hairline ---------- */
html body :is(.ewdc-cta-section,.ewdc-about-cta,.ewdc-leave-review,.areas-cta){background:linear-gradient(135deg,#172852 0%,#0f1c3d 100%)!important;color:#fff;border-top:1px solid rgba(236,223,186,.35)}
html body :is(.ewdc-cta-section,.ewdc-about-cta,.ewdc-leave-review,.areas-cta) :is(h2,h3,p){color:#fff!important}
html body :is(.ewdc-cta-section,.ewdc-about-cta,.ewdc-leave-review,.areas-cta) :is(a.ewdc-btn,a.ewdc-cta-phone,a.ewdc-btn-gold,a.ewdc-btn-primary,.ewdc-cta-btn){background:var(--lux-gold-on-dark)!important;color:#0f1c3d!important;border-color:var(--lux-gold-on-dark)!important}
html body :is(.ewdc-cta-section,.ewdc-about-cta,.ewdc-leave-review,.areas-cta) a.ewdc-cta-phone{background:transparent!important;color:var(--lux-gold-on-dark)!important;border:0!important;box-shadow:none!important}
html body .ewdc-bar-fill{background:#172852!important}
html body .ewdc-option-card.featured{border:1px solid var(--lux-gold-500)!important;box-shadow:0 0 0 1px rgba(194,167,110,.35),0 22px 44px -28px rgba(15,28,61,.35)}
/* emoji replaced by outline icons (inc/service-icons.php) */
html body .ewdc-emoji-ico{width:1em;height:1em;stroke-width:1.4;color:inherit;vertical-align:-.12em}
html body .ewdc-safety-icon,html body [class*="-icon"]:has(>.ewdc-emoji-ico){background:linear-gradient(180deg,#fffdf8,var(--ew-ivory))!important;border:1px solid var(--lux-gold-300);color:var(--ew-navy)!important;border-radius:14px!important;font-size:1.6rem}
html body .ewdc-safety-icon .ewdc-emoji-ico,html body [class*="-icon"] .ewdc-emoji-ico{width:1.5rem;height:1.5rem}
/* on a navy section the same champagne button is used; only the focus ring flips to ivory so it stays visible */
html body :is(.ewdc-serve,.ewdc-home-serve,[class*="hero"],[class*="-cta-band"],.ewdc-sf-cta) :is(.ewdc-gold-cta):focus-visible{outline-color:#fff!important}
html body .ewdc-gold-cta.ewdc-serve-btn{color:var(--cta-ink)!important}
/* sticky-header phone link: keep its screen-reader name when the number is hidden on smaller screens */
html body .ewdc-hdr-phone .screen-reader-text{display:block!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap}
@media (min-width:1000px) and (max-width:1199.98px){html body .ewdc-hdr-actions{gap:18px;margin-right:18px}}
@media (max-width:1199.98px){html body .ewdc-hdr-phone{border-radius:12px!important;border-color:var(--lux-gold-300)!important}}

/* ===== Round 12: art-directed service heroes (2026-11-23) ===== */
html body.ewdc-service-page section.has-photo{position:relative;overflow:hidden;background:
  radial-gradient(900px 420px at 88% 8%,rgba(236,223,186,.13),transparent 62%),
  radial-gradient(700px 500px at -5% 110%,rgba(236,223,186,.07),transparent 60%),
  linear-gradient(160deg,#16275a 0%,#0f1c3d 62%,#0b1631 100%)!important;padding-block:clamp(40px,6vw,84px)!important}
html body.ewdc-service-page section.has-photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(236,223,186,.55) 20%,rgba(236,223,186,.55) 80%,transparent)}
html body.ewdc-service-page section.has-photo>.ewdc-hero-wrap{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:clamp(28px,5vw,72px)}
html body.ewdc-service-page section.has-photo h1{font-family:'Playfair Display',Georgia,serif!important;font-weight:600!important;letter-spacing:-.015em;line-height:1.1!important;font-size:clamp(2.15rem,1.4rem + 2.6vw,3.5rem)!important;text-wrap:balance}
html body.ewdc-service-page section.has-photo h1 :is(span,em){color:var(--lux-gold-on-dark)!important;font-style:normal}
html body.ewdc-service-page .lux-hero-fig{position:relative;margin:0;border-radius:0;box-shadow:none;background:none;overflow:visible}
html body.ewdc-service-page .lux-hero-frame{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:5/4;box-shadow:0 34px 60px -30px rgba(0,0,0,.7);outline:1px solid rgba(236,223,186,.42);outline-offset:10px;background:#0f1c3d}
html body.ewdc-service-page .lux-hero-frame img{display:block;width:100%;height:100%;max-height:none;object-fit:cover}
html body.ewdc-service-page .lux-hero-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,28,61,0) 55%,rgba(15,28,61,.55));pointer-events:none}
html body.ewdc-service-page .lux-hero-cap{position:absolute;left:14px;right:14px;bottom:12px;z-index:2;color:#f6efdc;font-size:.75rem;line-height:1.35;letter-spacing:.02em;text-shadow:0 1px 6px rgba(0,0,0,.55);max-width:46ch}
html body.ewdc-service-page .lux-hero-fig.is-real .lux-hero-cap::before{content:"";display:inline-block;width:18px;height:1px;background:var(--lux-gold-on-dark);vertical-align:middle;margin-right:8px}
@media (max-width:899.98px){
  html body.ewdc-service-page section.has-photo>.ewdc-hero-wrap{grid-template-columns:1fr;gap:22px}
  html body.ewdc-service-page .lux-hero-fig{order:-1}
  html body.ewdc-service-page .lux-hero-frame{aspect-ratio:16/9;outline-offset:6px;margin:6px}
  html body.ewdc-service-page .lux-hero-cap{font-size:.6875rem;left:10px;right:10px;bottom:8px}
}
html body.ewdc-service-page .lux-hero-fig figcaption.lux-hero-cap{background:none!important;color:#f6efdc!important;padding:0!important;border:0!important;margin:0!important;text-align:left!important}

/* ===== Round 13: header fit system (2026-11-23) =====
   Root cause of the Russian overlap: in the sticky state a phone + CTA block (373px) is inserted after the menu in a flex row whose
   items could shrink. The nav <nav> shrank to 741px while its <ul> still needed 788px, so "Контакты" painted underneath the phone.
   Fix: (1) the nav never shrinks; (2) a small fit routine (inc/redesign.php) measures the real header and, only if needed, applies
   fit1 (phone becomes an icon-only button), fit2 (short CTA label, tighter gaps), fit3 (tighter menu spacing). Nothing is hidden. */
html body .ct-header [data-device="desktop"] nav.header-menu-1{flex:0 0 auto}
html body .ct-header [data-device="desktop"] [data-column="end"] [data-items]{min-width:0}
html body .ewdc-hdr-actions{flex:none}
html body.ewdc-fit1 .ewdc-hdr-phone span:not(.screen-reader-text){display:none}
html body.ewdc-fit1 .ewdc-hdr-phone{width:42px;height:42px;min-height:42px;justify-content:center;padding:0;border:1px solid var(--lux-gold-500);border-radius:50%;background:#fff}
html body.ewdc-fit2 .ewdc-hdr-cta .ewdc-l{display:none}
html body.ewdc-fit2 .ewdc-hdr-cta .ewdc-s{display:inline}
html body.ewdc-fit2 .ewdc-hdr-actions{gap:8px;margin-left:8px}
html body.ewdc-fit2 .ewdc-hdr-cta{padding:0 16px}
html body.ewdc-fit3 .ct-header [data-device="desktop"] [data-id="menu"]>ul>li>a{padding-left:5px!important;padding-right:5px!important}
html body.ewdc-fit3 .ct-header [data-device="desktop"] nav[data-id="menu"]{margin-left:8px!important;margin-right:8px!important}
html body.ewdc-fit3 .ewdc-hdr-actions{margin-left:4px;gap:6px}
/* the phone button keeps a visible, non-colour-only keyboard focus ring */
html body .ewdc-hdr-phone:focus-visible{outline:3px solid var(--ew-navy-d);outline-offset:2px;border-radius:12px}
/* mobile / tablet: keep a clear gutter between the logo and the actions */
@media (max-width:999.98px){html body .ct-header [data-device="mobile"] [data-column="end"]{margin-left:auto}html body .ct-header [data-device="mobile"] .ct-container{column-gap:12px}}
/* Russian, Ukrainian and Spanish labels are 15-35% longer than English: below 1200px they use the compact (hamburger) header
   instead of a menu that collides with the logo. English keeps the full menu from 1000px. */
@media (min-width:1000px) and (max-width:1199.98px){
  html body:is(.ewdc-lang-ru,.ewdc-lang-uk,.ewdc-lang-es) .ct-header [data-device="desktop"]{display:none!important}
  html body:is(.ewdc-lang-ru,.ewdc-lang-uk,.ewdc-lang-es) .ct-header [data-device="mobile"]{display:block!important}
}
/* compact header (phones, tablets and the 1000-1199px non-English range): extra steps when the actions still do not fit */
html body.ewdc-fit1 .ct-header [data-device="mobile"] .ewdc-hdr-cta .ewdc-ico{display:none}
html body.ewdc-fit2 .ct-header [data-device="mobile"] .ewdc-hdr-phone{width:38px;height:38px;min-height:38px}
html body.ewdc-fit2 .ct-header [data-device="mobile"] .ewdc-hdr-actions{gap:6px;margin-right:0}
html body.ewdc-fit2 .ct-header [data-device="mobile"] .ct-header-trigger{width:40px;min-width:40px;padding:0}
html body.ewdc-fit3 .ct-header [data-device="mobile"] .ewdc-hdr-cta{padding:0 12px}
html body.ewdc-fit3 .ct-header [data-device="mobile"] .ct-container{width:calc(100% - 24px)!important;max-width:none!important}
html body.ewdc-fit3.ewdc-stuck .ct-header [data-device="mobile"] .site-branding img.ewdc-lockup-img{height:28px!important}

/* ===== Round 13: accessible colour tokens + Contact info tiles =====
   Root cause of the "dark gold on navy" icons: Round-7 remapped --gold to #7a6837 inside <main> (correct for gold TEXT on white, 5.2:1),
   but navy tiles/cards still use var(--gold) for their icons and text, giving #7a6837 on #172852 = 2.2:1.
   Token pairs (measured, see docs §22):  on navy -> champagne #ecdfba (10.9:1) · on light -> gold-700 #735a22 (6.0:1 on white).
   Any dark surface re-points --gold to the on-dark token so var(--gold) is always the right one for its background. */
:root{--ew-gold-on-dark:#ecdfba;--ew-gold-on-light:#735a22;--ew-focus-on-light:#0f1c3d;--ew-focus-on-dark:#ffffff}
html body main :is(.ewdc-info-icon,[class*="hero"],[class*="-cta-band"],.ewdc-cta-section,.ewdc-about-cta,.areas-cta,.ewdc-leave-review){--gold:var(--ew-gold-on-dark)}
html body main .ewdc-info-icon{width:52px;height:52px;min-width:52px;border-radius:14px;color:var(--ew-gold-on-dark);background:linear-gradient(160deg,#1c3269 0%,#0f1c3d 100%);border:1px solid rgba(236,223,186,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 16px -10px rgba(15,28,61,.7)}
html body main .ewdc-info-icon .ewdc-ico{width:26px;height:26px;stroke-width:1.6;vertical-align:0;margin:0}
html body main .ewdc-info-icon[style*="var(--gold)"]{background:linear-gradient(180deg,#f7eed4,#ecdcb2)!important;color:var(--ew-navy-d)!important;border-color:#8a6d2f}

/* the fit routine measures with transitions off so a shrinking logo cannot make a still-colliding header look fine */
html body.ewdc-nofx .ct-header :is(*,*::before,*::after){transition:none!important}
html body.ewdc-fit4 .ct-header [data-device="mobile"] .ewdc-hdr-actions{gap:4px}
html body.ewdc-fit4 .ct-header [data-device="mobile"] .ewdc-hdr-phone{width:34px;height:34px;min-height:34px}
html body.ewdc-fit4 .ct-header [data-device="mobile"] .ewdc-hdr-cta{padding:0 10px;font-size:.8125rem;letter-spacing:0}
html body.ewdc-fit4 .ct-header [data-device="mobile"] .ct-header-trigger{width:34px;min-width:34px}

/* ===== Round 13: Smile Gallery cards =====
   Root cause: each before/after PNG carries its title inside the artwork, only ~10px from the image's top edge, and the card clipped the
   image to a fixed 364:474 box with no inset (overflow:hidden), so the baked-in title sat on the card border; the "Before & After" pill was
   absolutely positioned over the artwork's footer text. Fix at the container: an inset (padding) frame around the artwork, the image keeps its
   own aspect ratio, the pill moves into the flow under the image, and the card is a flex column so the details row aligns across cards. */
html body .ewdc-gallery .ewdc-case-card{display:flex;flex-direction:column}
html body .ewdc-gallery .ewdc-case-image-single{aspect-ratio:auto;display:flex;flex-direction:column;align-items:flex-start;padding:clamp(18px,1.8vw,26px) clamp(12px,1.2vw,18px) 0;background:#fff;overflow:visible}
html body .ewdc-gallery .ewdc-case-image-single img{width:100%;height:auto;aspect-ratio:364/474;object-fit:contain;border-radius:6px}
html body .ewdc-gallery .ewdc-case-image-single .ewdc-ba-label{position:static;margin:10px 0 0}
html body .ewdc-gallery .ewdc-case-info{flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-start}
html body .ewdc-gallery .ewdc-case-info .ewdc-case-details{margin-top:auto;padding-top:.25rem}
html body .ewdc-gallery .ewdc-case-category{letter-spacing:.03em;font-size:.6875rem;padding:5px 11px;line-height:1.25;max-width:100%}
html body .ewdc-gallery .ewdc-case-info h3{line-height:1.25}

/* ===== Round 13: option-card icon medallions (Whitening + Veneers) =====
   Root cause: the emoji became an SVG that inherited the page's near-black text colour (#1d1d1f) inside a navy circle, so the circle looked empty
   (contrast 1.2:1). Now: a champagne-on-navy medallion with a fine champagne ring, using the custom service icon family. */
html body .ewdc-option-icon{color:#f6efdc;border:1px solid rgba(236,223,186,.6);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 20px -12px rgba(15,28,61,.7),0 0 0 5px rgba(236,223,186,.18)}
html body .ewdc-option-icon .ewdc-sico{width:44px;height:44px;stroke-width:1.5;color:#f6efdc}
html body .ewdc-option-icon .ewdc-sico .a{stroke:var(--lux-gold-on-dark)}

/* ===== Round 13: videos page - honest state for videos that no longer exist ===== */
html body .youtube-lite.is-unavailable{cursor:default}
html body .youtube-lite.is-unavailable img{filter:grayscale(1) brightness(.45)}
html body .youtube-lite .ewdc-vid-gone{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px;text-align:center;background:rgba(15,28,61,.82);color:#f6efdc}
html body .youtube-lite .ewdc-vid-gone strong{font-size:1rem;color:var(--ew-gold-on-dark)}
html body .youtube-lite .ewdc-vid-gone span{font-size:.8125rem;line-height:1.4;color:#f6efdc;max-width:32ch}
html body .youtube-lite.is-unavailable::before,html body .youtube-lite.is-unavailable::after{display:none!important}

/* ===== Round 13: icon tiles on navy (site-wide) =====
   Found by scanning every rendered page for SVG icons with < 3:1 against their real background: card tiles with a navy gradient whose icon
   inherited the page's near-black text colour (1.17:1) or navy (1:1). Every navy icon tile now carries the champagne-on-navy token. */
html body :is(.ewdc-featured-icon,.ewdc-article-icon,.ewdc-finance-icon,.ewdc-resource-icon,.ewdc-topic-card .ewdc-topic-icon:not(.x),.ewdc-service-card .icon,.ewdc-benefit-icon,.ewdc-value-icon){color:#f6efdc!important}
html body :is(.ewdc-featured-icon,.ewdc-article-icon,.ewdc-finance-icon,.ewdc-resource-icon,.ewdc-topic-card .ewdc-topic-icon,.ewdc-service-card .icon) .ewdc-ico{color:#f6efdc;stroke:currentColor}
html body :is(.btn-gold,.ewdc-btn-gold,.btn-primary) .ewdc-ico{color:currentColor}
html body .ewdc-membership-price .check,html body .ewdc-membership-price .check .ewdc-ico{color:#735a22}

/* ===== Round 13: hero image captions get a solid navy plate (contrast was 3.0-4.1:1 over the photo gradient; now ivory on navy >= 12:1) ===== */
html body.ewdc-service-page .lux-hero-fig figcaption.lux-hero-cap{left:0!important;right:auto!important;bottom:0!important;max-width:calc(100% - 28px);padding:7px 14px 8px!important;background:rgba(15,28,61,.9)!important;border-top-right-radius:10px;color:#f6efdc!important;text-shadow:none!important}
html body.ewdc-service-page .lux-hero-frame{overflow:hidden}
@media (max-width:899.98px){html body.ewdc-service-page .lux-hero-fig figcaption.lux-hero-cap{left:0!important;bottom:0!important;max-width:calc(100% - 20px)}}

/* ===== Round 13: landing-page primary button (was white on #b79f6f = 2.56:1) -> same champagne system as the header CTA ===== */
html body .lp-btn-primary{background:radial-gradient(130% 120% at 50% -35%,rgba(255,255,255,.8) 0,rgba(255,255,255,0) 58%),linear-gradient(180deg,var(--cta-top) 0%,var(--cta-mid) 54%,var(--cta-bot) 100%)!important;color:var(--cta-ink)!important;border:1px solid var(--cta-edge)!important;text-shadow:0 1px 0 rgba(255,255,255,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -2px 5px rgba(115,90,34,.2),0 10px 20px -12px rgba(115,90,34,.7)!important}
html body .lp-btn-primary:hover{filter:brightness(1.035);color:var(--cta-ink)!important}
html body .lp-btn-primary .ewdc-ico,html body .lp-btn-primary svg{color:var(--cta-ink);stroke:currentColor}

/* off-canvas (hamburger) menu: the primary action and the phone stay one tap away */
html body .ewdc-oc-actions{display:grid;gap:12px;position:relative;left:20px;width:calc(100% - 40px);margin:28px 0 8px!important;padding-top:24px;box-sizing:border-box;border-top:1px solid var(--lux-gold-300)}
html body .ewdc-oc-cta{min-height:50px;font-size:1.0625rem;width:100%}
html body .ewdc-oc-phone{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 10px;font-size:.875rem;white-space:nowrap;border:1px solid var(--lux-gold-600);border-radius:980px;color:var(--ew-navy)!important;font-weight:600;text-decoration:none!important;background:#fff}
html body .ewdc-oc-phone .ewdc-ico{width:18px;height:18px}
html body .ewdc-oc-phone:hover{background:var(--ew-ivory)}
html body iframe:focus-visible{outline:3px solid var(--ew-focus-on-light);outline-offset:2px}

/* ===== Round 13: gold buttons inside navy boxes (Spanish page sidebar phone button was navy text on navy, 1:1) ===== */
html body :is(.sidebar-box.highlight,.lp-sidebar-box.highlight) :is(.btn-gold,.ewdc-btn-gold){background:var(--lux-gold-on-dark)!important;color:var(--ew-navy-d)!important;border-color:var(--lux-gold-on-dark)!important}
html body :is(.sidebar-box.highlight,.lp-sidebar-box.highlight) :is(.btn-gold,.ewdc-btn-gold) .ewdc-ico{color:var(--ew-navy-d)}
html body main li > .ewdc-ico--em[stroke="currentColor"]{--ico-muted:#6b7280}

/* ===== Round 14: authentic-photography-only cleanup. Where an AI image was removed and no genuine photo fits, a custom-icon emblem is used ===== */
html body :is(.ewdc-card-emblem,.ewdc-gallery-item-emblem,.ewdc-video-emblem){display:flex;align-items:center;justify-content:center;background:radial-gradient(120% 90% at 50% 0,rgba(236,223,186,.16),transparent 60%),linear-gradient(160deg,#16275a,#0f1c3d);color:#f6efdc;position:relative}
html body :is(.ewdc-card-emblem,.ewdc-gallery-item-emblem,.ewdc-video-emblem)::after{content:"";position:absolute;inset:12px;border:1px solid rgba(236,223,186,.35);border-radius:10px;pointer-events:none}
html body :is(.ewdc-card-emblem,.ewdc-gallery-item-emblem,.ewdc-video-emblem) .ewdc-sico{width:68px;height:68px;color:#f6efdc;stroke-width:1.2}
html body :is(.ewdc-card-emblem,.ewdc-gallery-item-emblem,.ewdc-video-emblem) .ewdc-sico .a{stroke:var(--lux-gold-on-dark)}
html body .ewdc-gallery-item-emblem{aspect-ratio:16/9;width:100%}
html body .ewdc-video-emblem{position:absolute;inset:0}
html body .ewdc-card-emblem{min-height:200px}
html body :is(.ewdc-card-emblem,.ewdc-gallery-item-emblem,.ewdc-video-emblem)::after{height:auto!important;width:auto!important;background:none!important;top:12px!important;left:12px!important;right:12px!important;bottom:12px!important}
html body .lux-gallery-note-ico{display:inline-flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;margin-bottom:1rem;background:linear-gradient(160deg,#16275a,#0f1c3d);border:1px solid rgba(236,223,186,.55);box-shadow:0 0 0 6px rgba(236,223,186,.18)}
html body .lux-gallery-note-ico .ewdc-sico{width:44px;height:44px;color:#f6efdc}
html body .lux-gallery-note-ico .ewdc-sico .a{stroke:var(--lux-gold-on-dark)}
html body .ewdc-thumb-emblem{width:100%;height:100%;min-height:157px;border-radius:inherit}

/* ===== Business-hours component (inc/business-hours.php, 2026-11-23): regular hours / appointment-only (existing patients) / closed ===== */
html body .ewdc-hours{--hrs-ink:var(--ew-navy,#172852);--hrs-mute:#555b69;--hrs-line:var(--lux-gold-300,#e3d3a8);--hrs-appt-bg:#fbf6e6;--hrs-appt-ink:#5c4a1a;text-align:left}
html body .ewdc-hours-title{margin:0 0 .75rem;font-size:1.25rem;color:var(--hrs-ink)}
html body .ewdc-hours-group{margin:0 0 .75rem;padding:0}
html body .ewdc-hours-h{margin:0 0 .25rem;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--hrs-mute)}
html body .ewdc-hours dl{margin:0;padding:0}
html body .ewdc-hours-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:.45rem 0;border-bottom:1px solid var(--hrs-line);font-size:.9375rem;line-height:1.35}
html body .ewdc-hours-row:last-child{border-bottom:0}
html body .ewdc-hours-row dt{margin:0;font-weight:500;color:var(--hrs-ink)}
html body .ewdc-hours-row dd{margin:0;font-weight:600;color:var(--hrs-ink);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
html body .ewdc-hours-group.is-appt{padding:.6rem .85rem .35rem;border:1px solid var(--lux-gold-500,#c2a76e);border-left-width:4px;border-radius:10px;background:var(--hrs-appt-bg)}
html body .ewdc-hours-group.is-appt .ewdc-hours-h{color:var(--hrs-appt-ink);text-transform:none;letter-spacing:.01em;font-size:.8125rem}
html body .ewdc-hours-group.is-appt .ewdc-hours-row{border-bottom-color:rgba(194,167,110,.45)}
html body .ewdc-hours-group.is-closed .ewdc-hours-row dd{color:var(--hrs-mute);font-weight:500}
html body .ewdc-hours-note{margin:.5rem 0 0;font-size:.8125rem;line-height:1.5;color:var(--hrs-mute)}
html body .ewdc-hours.is-compact .ewdc-hours-row{padding:.3rem 0;font-size:.875rem}
html body .ewdc-hours.is-compact .ewdc-hours-group{margin-bottom:.5rem}
@media (max-width:420px){html body .ewdc-hours-row dd{white-space:normal}}
/* on dark surfaces (footer, navy boxes) */
html body :is(.sidebar-box.highlight,.lux-dark,.ewdc-hours-dark) .ewdc-hours{--hrs-ink:#f6efdc;--hrs-mute:#d9d2bd;--hrs-line:rgba(236,223,186,.25);--hrs-appt-bg:rgba(236,223,186,.1);--hrs-appt-ink:#ecdfba}
/* the top-bar hours summary is longer now (Fri & Sat note): show it only where it fits; the full schedule is in the footer and on Contact */
@media (max-width:1279.98px){html body .ewdc-bar-hours{display:none!important}}
html body .ewdc-hours .ewdc-hours-h{font-size:.75rem!important;line-height:1.3!important;font-family:inherit}
html body .ewdc-hours .ewdc-hours-group.is-appt .ewdc-hours-h{font-size:.8125rem!important}
html body .ewdc-hours .ewdc-hours-row{font-size:.9375rem!important}
html body .ewdc-hours.is-compact .ewdc-hours-row{font-size:.875rem!important}
html body .ewdc-appt-hours{flex:1;min-width:0}
html body .ewdc-appt-hours>strong{display:block;margin-bottom:.25rem}
html body .ewdc-hours .ewdc-hours-h{font-weight:700!important}
