/* Myaree Dental website v1.6 (21/11/2026): smart menu layer + v1.5 fit, Shop item, top-strip fix. Loads after site-1.5.css. */
/* Myaree Dental menu layer v1.2 (19/11/2026).
   All rules are under html.adh-menu-v12 (flag off by default — see menu-1811.js).
   Upgrades the live header v3 + site-chrome menu. Does not replace it.
   Motion uses transform and opacity only. Reduced motion, Still, Simple, calm and
   low-power modes go static. */
html.adh-menu-v12{
  --mn12-sky:#019ade;
  --mn12-sky-d:#0774a8;
  --mn12-ink:#102a43;
  --mn12-emg:#b42318;
  --mn12-glow:rgba(1,154,222,.45);
  --mn12-safe-b:env(safe-area-inset-bottom,0px);
  --mn12-safe-t:env(safe-area-inset-top,0px);
}

/* ----- 1. Frosted-glass bar, depth on hover, glow on the current page ----- */
html.adh-menu-v12 .adh-root .site-header .nav,
html.adh-menu-v12 .adh-root .site-header .container.nav{
  position:relative;
  background:rgba(255,255,255,.72);
  box-shadow:0 1px 0 rgba(16,42,67,.06), 0 10px 28px -20px rgba(16,42,67,.35);
  /* v1.5.1: no transform or will-change on the bar: they would move the fixed-position dropdowns and phone sheet. */
}
html.dark.adh-menu-v12 .adh-root .site-header .nav,
html.dark.adh-menu-v12 .adh-root .site-header .container.nav{
  background:rgba(15,27,42,.78);
}
html.adh-menu-v12 .adh-root .site-header .menu>li>a,
html.adh-menu-v12 .adh-root .site-header .menu>li>button{
  position:relative;
  /* v1.6: no min-height here: it made the desktop bar 16px taller and the page jumped when the header settled. */
  transition:transform .22s ease, box-shadow .22s ease, color .22s ease;
}
html.adh-menu-v12 .adh-root .site-header .menu>li>a:hover,
html.adh-menu-v12 .adh-root .site-header .menu>li>a:focus-visible,
html.adh-menu-v12 .adh-root .site-header .menu>li>button:hover,
html.adh-menu-v12 .adh-root .site-header .menu>li>button:focus-visible,
html.adh-menu-v12 .adh-root .site-header .menu>li.open>button{
  transform:translateY(-2px) translateZ(8px);
  box-shadow:0 10px 18px -12px rgba(16,42,67,.45);
}
html.adh-menu-v12 .adh-root .site-header .menu>li.is-active>a,
html.adh-menu-v12 .adh-root .site-header .menu>li>a[aria-current="page"]{
  color:var(--mn12-sky-d);
  text-shadow:0 0 18px var(--mn12-glow);
}
html.adh-menu-v12 .adh-root .site-header .menu>li.is-active>a::after,
html.adh-menu-v12 .adh-root .site-header .menu>li>a[aria-current="page"]::after{
  content:"";
  position:absolute; left:12%; right:12%; bottom:4px; height:2px;
  border-radius:2px; background:var(--mn12-sky);
  box-shadow:0 0 10px var(--mn12-glow);
  pointer-events:none;
}

/* ----- Always-on ambient motion (compositor only) ----- */
html.adh-menu-v12 .adh-root .site-header .nav::before,
html.adh-menu-v12 .adh-root .site-header .container.nav::before{
  content:"";
  position:absolute; inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 0%,rgba(1,154,222,.14) 46%,transparent 62%);
  background-size:220% 100%;
  opacity:.55;
  animation:mn12-sheen 18s linear infinite;
  will-change:background-position,opacity;
}
html.adh-menu-v12 .adh-root .site-header .menu>li.is-active>a,
html.adh-menu-v12 .adh-root .site-header .menu>li>a[aria-current="page"]{
  animation:mn12-breathe 3.6s ease-in-out infinite;
}
@keyframes mn12-sheen{
  from{background-position:120% 0}
  to{background-position:-120% 0}
}
@keyframes mn12-breathe{
  0%,100%{filter:drop-shadow(0 0 0 transparent)}
  50%{filter:drop-shadow(0 0 8px var(--mn12-glow))}
}
html.adh-menu-v12.mn12-still .adh-root .site-header .nav::before,
html.adh-menu-v12.mn12-still .adh-root .site-header .container.nav::before,
html.adh-menu-v12.mn12-paused .adh-root .site-header .nav::before,
html.adh-menu-v12.mn12-paused .adh-root .site-header .container.nav::before{
  animation:none !important;
  opacity:.2;
  background-position:50% 0;
}
html.adh-menu-v12.mn12-still .adh-root .site-header .menu>li.is-active>a,
html.adh-menu-v12.mn12-still .adh-root .site-header .menu>li>a[aria-current="page"],
html.adh-menu-v12.mn12-paused .adh-root .site-header .menu>li.is-active>a,
html.adh-menu-v12.mn12-paused .adh-root .site-header .menu>li>a[aria-current="page"]{
  animation:none !important;
}
@media (prefers-reduced-motion:reduce){
  html.adh-menu-v12 .adh-root .site-header .nav::before,
  html.adh-menu-v12 .adh-root .site-header .container.nav::before,
  html.adh-menu-v12 .adh-root .site-header .menu>li.is-active>a,
  html.adh-menu-v12 .adh-root .site-header .menu>li>a[aria-current="page"],
  html.adh-menu-v12 .mn12-line,
  html.adh-menu-v12 .mn12-ring-fg{
    animation:none !important;
  }
  html.adh-menu-v12 .adh-root .site-header .menu>li>a:hover,
  html.adh-menu-v12 .adh-root .site-header .menu>li>button:hover{
    transform:none;
  }
}

/* ----- 5. Magnetic underline ----- */
/* v1.5.1: the menu list is NOT made position:relative (that moved the wide dropdowns and pushed the phone burger off-screen).
   The underline is placed against its offset parent by menu-1.5.1.js instead. */
html.adh-menu-v12 .mn12-line{
  position:absolute; left:0; bottom:6px; height:2px; width:24px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--mn12-sky),var(--mn12-sky-d));
  box-shadow:0 0 10px var(--mn12-glow);
  pointer-events:none;
  transform:translateX(0) scaleX(1);
  transform-origin:left center;
  opacity:0;
  transition:transform .28s cubic-bezier(.2,.7,.2,1), width .28s cubic-bezier(.2,.7,.2,1), opacity .2s;
  z-index:2;
}
html.adh-menu-v12 .mn12-line.is-on{opacity:1}
html.adh-menu-v12.mn12-still .mn12-line{transition:none}

/* ----- 4. Shrink into a floating pill + progress ring ----- */
html.adh-menu-v12.mn12-pill .adh-root .site-header .nav,
html.adh-menu-v12.mn12-pill .adh-root .site-header .container.nav{
  margin:6px 12px 0;
  border-radius:999px;
  box-shadow:0 8px 28px -16px rgba(16,42,67,.45), 0 0 0 1px rgba(16,42,67,.08);
}
html.adh-menu-v12 .mn12-ring{
  position:absolute; inset:-5px;
  width:auto; height:auto;
  pointer-events:none;
  overflow:visible;
}
html.adh-menu-v12 .mn12-ring-fg{
  fill:none; stroke:var(--mn12-sky); stroke-width:3;
  stroke-linecap:round;
  transform:rotate(-90deg); transform-origin:50% 50%;
  transition:stroke-dashoffset .16s linear;
}
html.adh-menu-v12.mn12-still .mn12-ring-fg{transition:none}
html.adh-menu-v12 .h3-book,
html.adh-menu-v12 .burger{
  position:relative;
}
/* Hide the page-top immersive progress bar while the ring is in use, so they are not doubled. */
html.adh-menu-v12 .imx-progress{display:none !important}

/* ----- After-hours emergency line (in the existing top bar, no extra row height on first paint) ----- */
html.adh-menu-v12 .mn12-emg{
  display:inline-flex; align-items:center; gap:.35rem;
  margin-left:.5rem;
  min-height:44px;
  padding:0 .65rem;
  border-radius:999px;
  color:#fff !important;
  background:var(--mn12-emg);
  font-weight:650; font-size:.82rem;
  text-decoration:none;
  white-space:nowrap;
}
html.adh-menu-v12 .mn12-emg:hover,
html.adh-menu-v12 .mn12-emg:focus-visible{
  filter:brightness(1.08);
  outline:2px solid var(--mn12-emg);
  outline-offset:2px;
}
html.adh-menu-v12.mn12-open .mn12-emg{display:none}

/* ----- 2. Treatments featured cards: CSS-3D discs + Book this ----- */
html.adh-menu-v12 .adh-root .mega-feat a{
  position:relative;
  overflow:hidden;
  transform-style:preserve-3d;
  transition:transform .25s ease, box-shadow .25s ease;
}
html.adh-menu-v12 .adh-root .mega-feat a:hover,
html.adh-menu-v12 .adh-root .mega-feat a:focus-visible{
  transform:translateY(-3px) rotateX(4deg);
  box-shadow:0 16px 28px -18px rgba(16,42,67,.4);
}
html.adh-menu-v12 .mn12-disc{
  display:inline-grid; place-items:center;
  width:44px; height:44px; flex:0 0 44px;
  border-radius:16px;
  background:linear-gradient(145deg,var(--mn12-sky),var(--mn12-sky-d));
  color:#fff;
  box-shadow:0 8px 16px -10px rgba(7,116,168,.7), inset 0 1px 0 rgba(255,255,255,.35);
  transform:rotateX(12deg) rotateY(-12deg);
  margin-right:.6rem;
}
html.adh-menu-v12 .mn12-disc svg{width:22px;height:22px}
html.adh-menu-v12 .mn12-bookthis{
  display:inline-flex; align-items:center;
  margin-top:.35rem;
  min-height:44px;
  padding:0 .7rem;
  border-radius:999px;
  font-size:.8rem; font-weight:650;
  color:#fff;
  background:var(--mn12-sky-d);
  text-decoration:none;
}
html.adh-menu-v12 .mn12-bookthis:hover,
html.adh-menu-v12 .mn12-bookthis:focus-visible{
  background:var(--mn12-sky);
}

/* ----- 3. Phone bottom-sheet (thumb zone) ----- */
@media (max-width:1080px){
  html.adh-menu-v12 .adh-root #menu.open{
    position:fixed !important;
    left:0; right:0; bottom:0; top:auto !important;
    width:100% !important;
    max-height:min(82vh,740px);
    margin:0 !important;
    padding:10px 16px calc(16px + var(--mn12-safe-b)) !important;
    border-radius:22px 22px 0 0 !important;
    background:#fff !important;
    box-shadow:0 -12px 40px -16px rgba(16,42,67,.35);
    overflow:auto;
    z-index:120;
    overscroll-behavior:contain;
  }
  html.dark.adh-menu-v12 .adh-root #menu.open{background:#0f1b2a !important}
  html.adh-menu-v12 .mn12-sheet-handle{
    display:block; width:44px; height:4px; margin:2px auto 10px;
    border-radius:4px; background:rgba(16,42,67,.2);
  }
  html.adh-menu-v12 .mn12-intents{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:0 0 12px;
    order:5;
  }
  html.adh-menu-v12 .adh-root #menu.open{
    display:flex; flex-direction:column;
  }
  html.adh-menu-v12 .adh-root #menu.open>li{order:1}
  html.adh-menu-v12 .mn12-intents{order:2}
  html.adh-menu-v12 .mn12-fx{order:3}
  html.adh-menu-v12 .mn12-intent{
    display:flex; align-items:center; gap:.55rem;
    min-height:48px;
    padding:.4rem .7rem;
    border-radius:14px;
    border:0;
    font:inherit; font-weight:650; font-size:.92rem;
    text-align:left; text-decoration:none;
    color:var(--mn12-ink);
    background:#f3f8fc;
    cursor:pointer;
  }
  html.adh-menu-v12 .mn12-intent:hover,
  html.adh-menu-v12 .mn12-intent:focus-visible{
    outline:2px solid var(--mn12-sky);
    outline-offset:2px;
  }
  html.adh-menu-v12 .mn12-intent .mn12-disc{width:36px;height:36px;flex-basis:36px;margin:0;border-radius:12px}
  html.adh-menu-v12 .mn12-intent.is-last{box-shadow:inset 0 0 0 2px var(--mn12-sky)}
  html.adh-menu-v12 .mn12-intent[data-k="pain"],
  html.adh-menu-v12 .mn12-intent[data-k="call"]{background:#fdecea;color:#7a1a14}
  html.adh-menu-v12 .mn12-intent[data-k="book"]{background:var(--mn12-sky-d);color:#fff}
  html.adh-menu-v12 .mn12-intent[data-k="ask"]{background:#e8f6fc}
  html.adh-menu-v12 .mn12-fx{
    display:flex; align-items:center; gap:.5rem;
    min-height:44px;
    margin:4px 0 0;
    font-size:.82rem;
    background:none; border:0; padding:0;
    color:inherit; cursor:pointer;
  }
  html.adh-menu-v12 .mn12-fx[aria-pressed="true"]{font-weight:650}
}
@media (min-width:1081px){
  html.adh-menu-v12 .mn12-intents,
  html.adh-menu-v12 .mn12-sheet-handle,
  html.adh-menu-v12 .mn12-fx{display:none !important}
}

/* ----- Focus ----- */
html.adh-menu-v12 .adh-root .site-header a:focus-visible,
html.adh-menu-v12 .adh-root .site-header button:focus-visible,
html.adh-menu-v12 .mn12-intent:focus-visible,
html.adh-menu-v12 .mn12-bookthis:focus-visible{
  outline:2px solid var(--mn12-sky);
  outline-offset:2px;
}

/* Book stays visible in the pill. */
html.adh-menu-v12 .adh-root .h3-book{
  min-height:44px; min-width:44px;
}

/* ===== v1.5.1 (21/11/2026): fit the menu layer to the live v1.5 header ===== */
/* Emergency pill fits inside the 40px top bar (no taller top bar). */
html.adh-menu-v12 .mn12-emg{min-height:24px;line-height:1;padding:0 .55rem;font-size:.74rem;margin-left:.45rem}
html.adh-menu-v12 .adh-root .tb3-hours{display:inline-flex;align-items:center}
/* Featured Treatments cards: "Book this" is a real link beside the card, not inside it. */
html.adh-menu-v12 .adh-root .mega-feat .mn151-feat{position:relative;display:flex;flex:1 1 0;min-width:0}
html.adh-menu-v12 .adh-root .mega-feat .mn151-feat>a:first-child{flex:1 1 auto;display:flex;align-items:center;min-width:0;padding-right:7rem}
html.adh-menu-v12 .adh-root .mega-feat .mn151-feat>.mn12-bookthis{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);margin:0;min-height:36px;z-index:1}
html.adh-menu-v12 .adh-root .mega-feat .mn151-feat>.mn12-bookthis:hover{transform:translateY(-50%)}
/* While the phone menu is open, no ancestor may become the containing block of the fixed sheet. */
html.adh-mnav-open [data-mnav-anc]{transform-style:flat!important}
html.adh-menu-v12 .mn12-line{bottom:auto}
/* Shop item: same look as the other top-level links (inherits .menu>li>a). */
html.adh-menu-v12 .adh-root .site-header .menu>li.nav-shop>a{white-space:nowrap}
@media (min-width:1081px){html.adh-menu-v12 .mn12-intents-li{display:none!important}}
@media (max-width:1080px){
  /* Phones and tablets: the top bar stays one line; urgent help is the "I'm in pain" tile in the menu. */
  html.adh-menu-v12 .mn12-emg{display:none!important}
  /* Compact phone sheet: sits at the bottom (thumb zone), only as tall as its content; replaces the v1.5 full-height blank panel. */
  html.adh-menu-v12.adh-mnav-open .adh-root #menu.open{top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:auto!important;max-height:calc(100dvh - 84px)!important;padding:6px 16px calc(14px + env(safe-area-inset-bottom,0px))!important;border-radius:22px 22px 0 0!important;gap:.1rem!important}
  html.adh-menu-v12.adh-mnav-open .adh-root #menu.open>li>a,
  html.adh-menu-v12.adh-mnav-open .adh-root #menu.open>li>button{min-height:46px}
  /* Call and Book are in the "I want to" tiles below, so the v1.5 Call | Book row (pushed to the bottom) is not needed. */
  html.adh-menu-v12.adh-mnav-open .adh-root #menu .mnav-cta{display:none!important}
  html.adh-menu-v12 .mn12-intent{white-space:normal;line-height:1.2;font-size:.9rem;padding:.35rem .55rem}
  html.adh-menu-v12 .mn12-intent .mn12-disc{width:32px;height:32px;flex:0 0 32px;border-radius:10px;transform:none}
  html.adh-menu-v12 .mn12-intent[data-k="book"] .mn12-disc{background:rgba(255,255,255,.18);box-shadow:none}
  html.adh-menu-v12 .mn12-intent[data-k="pain"] .mn12-disc,html.adh-menu-v12 .mn12-intent[data-k="call"] .mn12-disc{background:linear-gradient(145deg,#d92d20,#b42318)}
  html.adh-menu-v12 .mn12-intents{margin:10px 0 2px;padding-top:12px;border-top:1px solid rgba(16,40,60,.12)}
  html.adh-menu-v12 .mn12-intents::before{content:"I want to\2026";grid-column:1/-1;font-size:.8rem;font-weight:650;letter-spacing:.02em;color:#4a5b6b;margin:0 0 2px}
  html.dark.adh-menu-v12 .mn12-intents::before{color:#b8c6d3}
  html.adh-menu-v12 .mn12-sheet-handle,html.adh-menu-v12 .mn12-intents-li{list-style:none}
  html.adh-menu-v12.adh-mnav-open .adh-root #menu.open>li.mn12-intents-li{order:9}
}
@media (min-width:600px) and (max-width:1080px){
  html.adh-menu-v12.adh-mnav-open .adh-root #menu.open{left:auto!important;right:12px!important;bottom:12px!important;width:min(440px,calc(100vw - 24px))!important;border-radius:22px!important;max-height:calc(100dvh - 96px)!important}
}


/* ===== v1.6 part D: remove the 16px white strip above the black top bar =====
   Zoho gives the page's first code block a 16px top margin, so every page shows a thin white band above the top bar.
   Only the block that holds our page (.adh-root) is touched. Loads in the head, so there is no jump. */
.zpelem-container > .zpelement.zpelem-code-snippet:first-of-type:has(> div > .adh-root){margin-top:0 !important}
