/* Additions the handoff design did not have, styled only with the design's own tokens.
   Loaded after the design CSS. Scoped so nothing else in the design is affected. */

/* Admin-menu dropdown (e.g. "Pages") in the desktop nav */
.nav-links .lv-dd{position:relative;display:flex;align-items:center}
.nav-links .lv-dd>a::after{content:'';display:inline-block;width:6px;height:6px;margin-left:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-3px) rotate(45deg);opacity:.7}
.nav-links .lv-dd-m{position:absolute;top:100%;left:50%;min-width:220px;padding:8px;margin-top:14px;border-radius:20px;background:rgba(255,255,255,.97);color:var(--ink);box-shadow:0 0 0 1px var(--line),0 24px 48px -16px rgba(11,16,32,.25);display:flex;flex-direction:column;opacity:0;pointer-events:none;transform:translate(-50%,6px);transition:opacity .3s,transform .4s var(--ease)}
.nav-links .lv-dd-m::before{content:'';position:absolute;left:0;right:0;top:-16px;height:16px}
.nav-links .lv-dd:hover .lv-dd-m,.nav-links .lv-dd:focus-within .lv-dd-m{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.nav-links .lv-dd-m a{display:flex;align-items:center;height:42px;padding:0 14px;border-radius:12px;font-size:15px;white-space:nowrap;color:var(--ink);opacity:1}
.nav-links .lv-dd-m a:hover{background:var(--paper)}
.mnav a.lv-sub{padding-left:32px;font-size:15px;font-weight:400;height:44px}
/* the admin menu can be longer than the design's 6 links: keep the phone menu inside the screen and scrollable */
.mnav{max-height:calc(100svh - 110px);overflow-y:auto;overscroll-behavior:contain}
.mnav>a{flex-shrink:0}

/* Log in / account link next to "Send a message" */
.nav-cta .lv-auth{color:inherit;opacity:.78;font-size:15px;padding:0 12px;white-space:nowrap;transition:opacity .3s}
.nav-cta .lv-auth:hover{opacity:1}
@media (max-width:1020px){.nav-cta .lv-auth{display:none}}

/* Cookie notice: keep its own look under the design's global reset */
#cookie-consent-popup .cc-btn{border:0;font-family:inherit;line-height:1.2}
#cookie-consent-popup .cc-message{text-wrap:wrap}

/* Session messages (login, verification links) */
.lv-toasts{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;gap:8px;width:max-content;max-width:calc(100vw - 32px)}
.lv-toast{display:flex;align-items:center;gap:12px;padding:12px 10px 12px 18px;border-radius:99px;background:var(--ink);color:#fff;font-family:var(--sans);font-size:15px;line-height:1.35;box-shadow:0 18px 40px -12px rgba(11,16,32,.35);animation:lvToastIn .5s var(--ease) both;transition:opacity .4s,transform .4s}
.lv-toast i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--sky,#8DC48D)}
.lv-toast.err i{background:#E09978}
.lv-toast button{flex:none;width:28px;height:28px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.lv-toast.out{opacity:0;transform:translateY(8px)}
@keyframes lvToastIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Fixes for two bugs inside the handoff design itself ("Three steps" section):
   1. Step-3 cards used the class "q", which the Reviews section styles as position:absolute;inset:0.
      That pinned the card over the Check-in/Lifestyle/Nutrition pills (phone) and over the whole panel (desktop).
      landing.js now uses "jq"; this keeps the message-reveal the design meant by that class. */
.je.jq .je-q{opacity:1;transform:none}
/* 2. Desktop: the card area is meant to be up to 700px tall (.jr-deck{height:min(700px,100%)}), but its grid row
      was only as tall as the step text, so the cards were squeezed to ~170-270px and clipped. Let the row fill the stage. */
@media (min-width:901px){.jr .jr-stage{grid-template-rows:minmax(0,1fr)}}
/*    Because that row is now full height, step 1's chat sat at the top of it. Centre it beside the step text, as in the design.
      (Hidden bubbles already take their space, so the block doesn't move as messages appear.) */
@media (min-width:901px){.jr .jc1{justify-content:center!important}.jr .jc1 .jchat{flex:0 0 auto}}
/* Plans: the "Send a message" button now sits inside the sticky stage, under the plan, so each plan and the button fit in one screen.
   Desktop: centre plan + button vertically below the nav/progress bar. Phone: keep the stage layout, with enough gap that the
   button doesn't crowd the illustration above it (the visual is the flexible row, so it shrinks to make room). */
.pl-stage .plans-cta{padding:0;margin-top:40px;flex:none}
@media (min-width:1021px){
.pl-stage{justify-content:center!important;padding-top:120px!important;padding-bottom:40px}
.pl-stage>.pl-grid{flex:none}
.pl-stage .plans-cta{margin-top:56px}
}
@media (max-width:1020px) and (max-height:700px){.pl-stage .plans-cta{margin-top:28px}}
/* Phone: the illustration row takes only the space left between the text and the button (no 290px minimum, which made it
   spill over the button on shorter phones); plans-scroll.js scales the illustration down to fit that row (--vs). */
@media (max-width:1020px){
.pl-stage>.pl-grid{grid-template-rows:auto minmax(0,1fr)!important}
.pl-vis{overflow:visible}
.pl-vis>*{flex:none;transform:scale(var(--vs,1));transform-origin:center}
}
/* keep the step-3 pill labels (Check-in / Lifestyle / Nutrition) on one line on narrow phones */
.jr .jtl span{white-space:nowrap}
@media (max-width:360px){.jr .jtl{gap:4px}.jr .jtl span{padding:0 9px 0 6px;gap:5px;font-size:9.5px;letter-spacing:.02em}}
/* Step 3: centre the pills + care card in the space beside/below the step text instead of leaving it at the top.
   The cards share one grid cell, so the block is sized by the tallest card and doesn't jump between Check-in/Lifestyle/Nutrition. */
.jr .jc3{justify-content:center!important}
.jr .jc3 .jstack{flex:0 1 auto!important}
