/* ═══════════════════════════════════════════════════════════════════
   ADD-ON PAGES · b12-injection, vitamin-d-injection, zofran-add-on
   ───────────────────────────────────────────────────────────────────
   The three $25 add-ons from the menu shelf, one page each, not in the nav
   (only three, so they live on the shelf). Built on the drip page template;
   this file adds the vial hero and the page's own sections, and is the
   landing end of the shelf's vial transition.

   Each section has its own shape on purpose: prose beside its heading, a
   numbered list on plain rules, the real bags it is already in, a ruled
   list of when to check first. No card grids, no pills, no glow.
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- hero: the vial stands on a short oak shelf, as on the menu ---------- */
.addonvial{position:relative;display:flex;justify-content:center;align-items:flex-end;padding-bottom:34px;min-height:340px}
.addonvial{--vh:300px}
/* the render has 4.2% clear space under the glass base: pull it down onto the plank */
.addonvial .vialimg{position:relative;z-index:1;display:block;height:var(--vh);width:auto;margin-bottom:calc(var(--vh) * -.042);
  filter:drop-shadow(0 14px 14px rgba(31,42,51,.22))}
.addonvial::before{  /* plank top face */
  content:"";position:absolute;left:50%;bottom:22px;width:260px;margin-left:-130px;height:16px;
  background:linear-gradient(180deg,#c9a776,#e6cfaa);clip-path:polygon(3% 0,97% 0,100% 100%,0 100%)}
.addonvial::after{   /* plank front edge and its shadow on the wall */
  content:"";position:absolute;left:50%;bottom:2px;width:260px;margin-left:-130px;height:20px;border-radius:0 0 3px 3px;
  background:repeating-linear-gradient(90deg,rgba(110,72,34,0) 0 11px,rgba(110,72,34,.08) 11px 13px,rgba(110,72,34,0) 13px 31px),
             linear-gradient(180deg,#b88f5a 0%,#a47c47 55%,#8c6634 100%);
  box-shadow:inset 0 1px 0 rgba(255,236,204,.55),0 24px 28px -16px rgba(70,45,20,.45)}
@media (max-width:720px){
  .addonvial{min-height:0;padding-bottom:30px;margin-top:10px}
  .addonvial{--vh:220px}
  .addonvial::before,.addonvial::after{width:200px;margin-left:-100px}
}
/* the hero's soft tint follows the vial's own colour */
.theme-addon .pagehero{background:radial-gradient(70% 90% at 82% 40%,color-mix(in srgb,var(--dc) 9%,transparent),transparent 70%),var(--white,#fff)}

/* ---------- what it is: heading on the left, prose on the right ---------- */
.adwhat{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:56px;align-items:start}
.adwhat h2{margin:0}
.adwhat p{font-size:1.06rem;line-height:1.75;color:#3d4a54;margin:0 0 16px;max-width:60ch}
@media (max-width:820px){.adwhat{grid-template-columns:1fr;gap:16px}}

/* ---------- how it works: numbered, on plain rules ---------- */
.adsteps{list-style:none;counter-reset:ad;margin:26px 0 0;padding:0;max-width:760px}
.adsteps li{counter-increment:ad;display:grid;grid-template-columns:64px 1fr;align-items:baseline;
  padding:18px 0;border-top:1px solid #e2ddd2;font-size:1.04rem;line-height:1.6;color:#33414c}
.adsteps li:last-child{border-bottom:1px solid #e2ddd2}
.adsteps li::before{content:counter(ad,decimal-leading-zero);font:480 1.5rem/1 'Fraunces',serif;color:#a3854f}

/* ---------- already in these bags: the real bags ---------- */
.adbags{display:flex;flex-wrap:wrap;gap:18px 26px;margin-top:28px}
.adbag{display:flex;flex-direction:column;align-items:center;width:132px;text-decoration:none;color:inherit;text-align:center}
.adbag img{width:118px;height:auto;margin:-8px 0 -20px;filter:drop-shadow(0 12px 14px rgba(31,42,51,.18));
  transform-origin:50% 8%;transition:transform .4s cubic-bezier(.3,.7,.25,1)}
.adbag b{font:500 15px/1.25 'Fraunces',serif;color:var(--deep,#24455a);margin-top:4px}
.adbag em{font:italic 500 14px/1 'Fraunces',serif;color:#7a5b26;margin-top:5px}
.adbag:hover img,.adbag:focus-visible img{transform:rotate(-3deg) translateY(-4px)}
.adbag:hover b{text-decoration:underline;text-decoration-color:#c7a86b;text-underline-offset:3px}
@media (max-width:720px){.adbags{gap:14px 10px}.adbag{width:calc(33.33% - 7px)}.adbag img{width:96px}}

/* ---------- check with us first: a ruled list with a gold edge ---------- */
.adcheck{max-width:780px;border-left:3px solid #c7a86b;padding:4px 0 4px 26px}
.adcheck h2{margin-top:0}
.adcheck ul{margin:16px 0 0;padding:0;list-style:none}
.adcheck li{position:relative;padding:12px 0 12px 22px;border-bottom:1px solid #e2ddd2;font-size:1.02rem;line-height:1.65;color:#33414c}
.adcheck li::before{content:"";position:absolute;left:0;top:22px;width:8px;height:1.5px;background:#a3854f}

@media (prefers-reduced-motion:reduce){.adbag img{transition:none}.adbag:hover img{transform:none}}

/* ---------- the landing end of the shelf's vial transition ---------- */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
}
.addon-b12 .addonvial .vialimg{view-transition-name:vial-b12;view-transition-class:bag}
.addon-zofran .addonvial .vialimg{view-transition-name:vial-zofran;view-transition-class:bag}
.addon-vitd .addonvial .vialimg{view-transition-name:vial-vitd;view-transition-class:bag}

/* the glide's landing end, after Kove: the hero carries the same name the tapped
   bag or vial was given, the old bag is hidden, the page lifts out and rises in */
@media (prefers-reduced-motion:no-preference){
  ::view-transition-old(root){animation:ccvtOut .26s cubic-bezier(.4,0,1,1) both}
  ::view-transition-new(root){animation:ccvtIn .6s cubic-bezier(.22,1,.36,1) both}
  .nav{view-transition-name:sitenav}
  .sticky{view-transition-name:bookbar}
  ::view-transition-group(*.bag){animation-duration:.8s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
  ::view-transition-old(*.bag){animation:none;opacity:0}
  ::view-transition-new(*.bag){animation:none}
}
@keyframes ccvtOut{to{opacity:0;transform:translateY(-12px) scale(.992)}}
@keyframes ccvtIn{from{opacity:0;transform:translateY(16px)}}
