/* VitalDemo · site chrome shared by homepages and sub-pages:
   full-bleed bands, nav dropdowns, mobile menu, toast. Loaded after styles.css + anim.css. */

/* ---------- full-bleed bands: extend colour to the screen edges when the 1440 layout is centred ---------- */
.ann { box-shadow: 0 0 0 100vmax var(--ember, #f25a24); clip-path: inset(0 -100vmax); }
.sec.how, .sec.faqw { box-shadow: 0 0 0 100vmax var(--sand, #f1ece5); clip-path: inset(0 -100vmax); }
/* edge-to-edge photo band becomes an inset card like the other photo sections */
.lab { margin: 0 16px; border-radius: 22px; }

/* ---------- desktop nav links ---------- */
header { position: relative; z-index: 30; }
header .menu .dd-t, header .menu .mlink { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; height: 76px; }
header .menu .mlink { color: var(--mute, #71717a); }
header .menu .dd-t:hover, header .menu .mlink:hover { color: var(--ember, #f25a24); }
header .right .login, .nav .r .login { color: inherit; text-decoration: none; }
.nav { z-index: 20; }
.nav .links { display: flex; align-items: center; }
.nav .links .dd-t { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; height: 56px; opacity: .92; }
.nav .links .dd-t:hover { opacity: 1; }
.nav .links svg, header .menu svg { width: 10px; height: 10px; transition: transform .25s; }
.dd:hover .dd-t svg, .dd:focus-within .dd-t svg { transform: rotate(180deg); }
.mburger { display: none; }
.nav .gr { display: none; }            /* the 9-dot button is the mobile menu, not a desktop control */

/* ---------- dropdown panel ---------- */
.dd { position: relative; }
.dd-p { position: absolute; top: 100%; left: -18px; padding-top: 4px; opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .25s; z-index: 40; }
.nav .dd-p { padding-top: 10px; left: -24px; }
.dd:hover .dd-p, .dd:focus-within .dd-p { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd-in { width: 380px; background: #fff; color: #141414; border: 1px solid #ece8e3; border-radius: 18px; padding: 10px;
         box-shadow: 0 24px 60px rgba(25, 20, 15, .16); display: flex; flex-direction: column; gap: 2px; letter-spacing: -.01em; }
.dd-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9b9b9b; padding: 8px 10px 6px; }
.dd-i, .ms-i { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 12px;
               color: #141414; text-decoration: none; transition: background .2s; }
.dd-i:hover, .dd-i:focus-visible { background: #f7f6f4; outline: none; }
.dd-v { width: 52px; height: 52px; border-radius: 10px; background: #f3f2ef center/auto 86% no-repeat; }
.dd-n { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
.dd-n b { font-weight: 400; font-size: 15px; }
.dd-n small { font-size: 12px; color: #8a8a8a; }
.dd-pr { font-size: 13px; color: #5a5a5a; white-space: nowrap; }
.dd-all { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 12px 12px; border-top: 1px solid #f0ece7;
          font-size: 13px; color: #e8622c; text-decoration: none; border-radius: 0 0 10px 10px; }
.dd-all svg { width: 14px; height: 14px; }
.dd-all:hover { background: #fff6f1; }

/* ---------- Template 2 product page: plain white nav, dark text ---------- */
.t2.pg-product .phero.slim { background: none; height: 96px; overflow: visible; }
.t2.pg-product .phero.slim .bar { background: rgba(255, 255, 255, .86); border: 1px solid #ece8e3; color: #141414; box-shadow: 0 8px 30px rgba(25, 20, 15, .06); }
.t2.pg-product .phero.slim .lg { color: #141414; }
.t2.pg-product .phero.slim .gr { background: #141414; }
.t2 .phero { overflow: visible; }      /* let dropdowns hang below the short page heroes */

/* ---------- mobile menu sheet ---------- */
.msheet { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; color: #141414;
          opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.msheet[hidden] { display: none; }
.msheet.open { opacity: 1; transform: none; }
.ms-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; border-bottom: 1px solid #f0ece7; }
.ms-logo { height: 20px; color: #141414; display: block; }
.ms-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f4f3f1; font-size: 22px; line-height: 1; cursor: pointer; color: #141414; }
.ms-body { flex: 1; overflow-y: auto; padding: 8px 12px 24px; }
.ms-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9b9b9b; padding: 18px 8px 8px; }
.ms-links { display: flex; gap: 18px; padding: 24px 8px 0; font-size: 13px; }
.ms-links a { color: #8a8a8a; text-decoration: none; }
.ms-foot { padding: 12px 16px 20px; border-top: 1px solid #f0ece7; }
.ms-foot .pill { width: 100%; height: 52px; }
.ms-foot .pill svg { width: 16px; height: 16px; }

/* ---------- toast (homepages too) ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #141414; color: #fff; font-size: 14px; padding: 13px 20px;
         border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 120; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .lab { margin: 0 8px; border-radius: 20px; }
  header .menu, .nav .links, header .right .login, .nav .r .login { display: none; }
  header .mburger { display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; margin-left: 8px; border-radius: 50%; border: 0; background: #f4f3f1; cursor: pointer; }
  header .mburger span { display: block; width: 16px; height: 1.5px; background: #141414; border-radius: 2px; }
  .nav .gr { display: grid; border: 0; cursor: pointer; }
  .toast { white-space: normal; width: max-content; max-width: 340px; text-align: center; }
}
