/* Site-wide fixes found in the iPad review (25.11.2026). All three issues also exist on the original site.
   1. The iron edge + glass strip (.lf) on every rounded .layer top
   2. Wellness page: the wood slab live edges (schedule board, trainers' reels section)
   3. The trainers' video popup on iPad */

/* 1. The .lf strip was a straight 7px bar across the full width, so at both rounded top corners it overhung
      the curve and left a gap. Drawn now as inset shadows on a box that inherits the sheet's radius, so the
      iron edge (and its soft shade) follows the curve exactly. Nothing is clipped, so the vitrine arch that
      stands above the wellness sheet stays fully visible. */
.lf{height:120px;background:none;border-radius:inherit;
  box-shadow:inset 0 1.5px 0 #7a6c60,inset 0 4px 0 #2a221c,inset 0 7px 0 #0c0907,inset 0 14px 12px -8px #0008}

/* 2. Wood slabs on the wellness page: the live edge was a second copy of the wood texture glued under the
      panel (its own tint, restarting the texture), which left a seam line, a darker band and a notch at the
      sides. Now the panel itself is cut by the live-edge mask: one texture, no seam. */
.sched-wrap > .wrap{container-type:inline-size}
.board.slab-board{--edge:calc(100cqw * 113 / 1600);padding-bottom:calc(16px + var(--edge));margin-bottom:28px;box-shadow:none;
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - var(--edge) + 1px) no-repeat,url(../assets/tex/wood-edge.webp) center bottom/103% var(--edge) no-repeat;
          mask:linear-gradient(#000 0 0) top/100% calc(100% - var(--edge) + 1px) no-repeat,url(../assets/tex/wood-edge.webp) center bottom/103% var(--edge) no-repeat}
.board.slab-board::after{content:none}
@media (max-width:900px){.board.slab-board{padding-bottom:calc(12px + var(--edge))}}

/* the trainers' section: a dark wood layer with the strip on its rounded top, closed by its own live edge */
.reels-sec.slab{--edge:calc(100vw * 113 / 1600);z-index:4;
  padding-bottom:calc(clamp(60px,8vw,110px) + var(--edge));margin-bottom:calc(-1 * var(--edge));
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - var(--edge) + 1px) no-repeat,url(../assets/tex/wood-edge.webp) center bottom/103% var(--edge) no-repeat;
          mask:linear-gradient(#000 0 0) top/100% calc(100% - var(--edge) + 1px) no-repeat,url(../assets/tex/wood-edge.webp) center bottom/103% var(--edge) no-repeat}
.reels-sec.slab .slab-edge{display:none}
.reels-sec.slab + .reel-modal + section{padding-top:calc(clamp(40px,6vw,80px) + 100vw * 113 / 1600)}

/* 3. Video popup: sized to the visible screen (dvh, not vh, which on iPad includes the hidden toolbars),
      at the video's own shape (--ar is set from the file in fixes.js; reels default to 9:16),
      the whole frame shown, the close button always on screen. */
/*    Root cause of the iPad crop: the popup sits right after the trainers' section, so the rule meant to push
      the next section below the live edge (.reels-sec.slab + *) also gave the popup a ~140px top padding,
      pushing the video off the bottom of the screen. */
.reel-modal{--ar:.5625;--pad:max(16px,env(safe-area-inset-top,0px));padding:0!important}
.rm-box{height:auto;max-width:none;aspect-ratio:var(--ar);
  width:min(calc(100vw - 2 * var(--pad) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)),
            calc((100vh - 2 * var(--pad) - 56px) * var(--ar)),
            calc((100dvh - 2 * var(--pad) - 56px) * var(--ar)))}
.rm-box video{object-fit:contain}
.reel-modal .x{position:fixed;z-index:3;top:max(14px,env(safe-area-inset-top,0px));left:max(14px,env(safe-area-inset-left,0px));
  width:44px;height:44px;box-shadow:0 6px 18px #0006}

/* phones (Moshe's iPhone, 25.11.2026): the opening copy slid under the logo, the price line sat under the
   accessibility button and the bottom dock. Keep the copy below the header and the booking bar above the dock;
   the hero simply grows when it needs more room. */
@media (max-width:900px){
  body.has-journey .hero{padding-top:calc(80px + env(safe-area-inset-top,0px))}
  body.has-journey .hero-copy{padding-bottom:18px}
  body.has-journey .hero-copy h1{font-size:clamp(2rem,9.6vw,2.6rem)}
  body.has-journey .hero-copy p{font-size:.95rem;margin-top:10px;line-height:1.55}
  body.has-journey .hero-copy .eyebrow{margin-bottom:8px}
  body.has-journey .bookbar{margin-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
  body.has-journey .bookbar label{padding:7px 14px}
  body.has-journey .bookbar .go{min-height:48px}
  /* the accessibility button moves to the free top corner of the header, away from the content and the dock */
  .a11y-btn{top:calc(18px + env(safe-area-inset-top,0px));bottom:auto;right:auto;left:12px;width:38px;height:38px}
  .a11y-btn svg{width:22px;height:22px}
  .a11y-panel{top:calc(64px + env(safe-area-inset-top,0px));bottom:auto;left:12px;right:auto}
}

