/* The Landscape style of the glucose chart (views/chart-landscape.js; the pilot docs/mockups/charts/c-landscape.html):
   the box is a sky over a hill; its colours and strengths are the --lsc-* tokens of style.css, light and dark. */
.ins-box[data-style=landscape]{background:linear-gradient(180deg,var(--lsc-sky0),var(--lsc-sky1) 55%,var(--lsc-sky2));border:0;border-radius:22px;box-shadow:var(--lsc-shadow);color:var(--lsc-txt)}
.lsc-wrap{position:relative;height:100%}
.ins-curve.lsc{display:block;width:100%;height:100%;overflow:hidden}
.ins-curve.lsc text{font-family:var(--sans);font-weight:700}
.lsc .lsc-night{opacity:var(--lsc-nighto)}
.lsc .lsc-stars circle{fill:var(--lsc-star)}
.lsc .lsc-glow{opacity:var(--lsc-glowo)}
.lsc .lsc-arc{fill:none;stroke:var(--lsc-sun);stroke-width:1.2;stroke-dasharray:1 4;stroke-linecap:round;opacity:.9}
.lsc .lsc-st{fill:var(--lsc-sub);font-size:9px}
.lsc .lsc-sun{fill:var(--lsc-sun)}
.lsc .lsc-moonh{fill:var(--lsc-moon);opacity:.12}
.lsc .lsc-moon{fill:var(--lsc-moon)}
.lsc .lsc-edge{fill:none;stroke:var(--lsc-mist);stroke-width:.8;stroke-dasharray:2 4;opacity:var(--lsc-edgeo)}
.lsc .lsc-edge.lo{stroke:var(--lsc-on);opacity:.45}
.lsc .lsc-ev{fill:var(--lsc-sub);font-size:9px}
.lsc .lsc-ev.lo{fill:var(--lsc-on);opacity:.8}
.lsc .lsc-yg{fill:none;stroke:var(--lsc-sub);stroke-width:.8;stroke-dasharray:3 5;opacity:.3}
.lsc .lsc-yg.on{stroke:var(--lsc-on);opacity:.22}
/* the values up the start edge: a halo of the sky, or of the land where the hill stands behind the value */
.lsc .lsc-yl{fill:var(--lsc-sub);font-size:9.5px;paint-order:stroke;stroke:var(--lsc-sky1);stroke-opacity:.75;stroke-width:3px;stroke-linejoin:round}
.lsc .lsc-yl.on{fill:var(--lsc-on);stroke:var(--lsc-hill1);stroke-opacity:.6}
.lsc .lsc-far{fill:var(--lsc-far);opacity:var(--lsc-faro)}
.lsc .lsc-crest{fill:none;stroke:var(--lsc-crest);stroke-width:1.4;stroke-linejoin:round;opacity:.85}
.lsc .lsc-trail{fill:none;stroke:var(--lsc-white);stroke-width:2.4;stroke-dasharray:.1 4.5;stroke-linecap:round}
.lsc .win{fill:var(--lsc-flag);opacity:0;transition:opacity .2s}
.lsc .win.on{opacity:.12}
.lsc .lsc-pole{stroke:var(--lsc-txt);stroke-width:1.1;opacity:.75}
.lsc .lsc-lead{stroke:var(--lsc-txt);stroke-width:1;stroke-dasharray:1 3;stroke-linecap:round;opacity:.45}
.lsc .lsc-flag{fill:var(--lsc-flag)}
.lsc .lsc-foot{fill:var(--lsc-crest)}
.lsc .lsc-nowh{fill:var(--lsc-sun);opacity:.3}
.lsc .lsc-now{fill:var(--lsc-sun)}
.lsc .lsc-ground{fill:var(--lsc-ground);opacity:var(--lsc-groundo)}
.lsc .lsc-tick{fill:var(--lsc-on);font-size:10px;opacity:.75}
.lsc .lsc-sep{stroke:var(--lsc-on);stroke-width:1;opacity:.3}
/* the hill rises from the ground on the screen's first draw */
@media (prefers-reduced-motion:no-preference){
  .lsc .lsc-land.draw{transform-box:view-box;transform-origin:50% 100%;animation:lsc-rise .9s cubic-bezier(.3,.6,.3,1) both}
}
@media (prefers-reduced-motion:no-preference){.lsc .lsc-yc.draw{animation:ins-fade .6s .7s ease-out both}}
@keyframes lsc-rise{from{transform:scaleY(.6);opacity:0}}
/* the latest value in the sky's corner, over the end of the day */
.lsc-hero{position:absolute;inset-inline-end:16px;top:12px;text-align:end;color:var(--lsc-txt);pointer-events:none;direction:ltr}
.lsc-hero b{display:block;font:600 2.5rem/1 var(--serif);letter-spacing:-.03em}
.lsc-hero i{display:block;font-style:normal;font-size:.7rem;font-weight:700;color:var(--lsc-sub);margin-top:2px}
/* the meals' labels over their flags: the name small, the rise large under it */
.lsc-mls,.lsc-ents{position:absolute;inset:0;pointer-events:none}
.lsc-ml{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;padding:0;border:0;background:none;color:var(--lsc-txt);font-family:var(--sans);cursor:pointer;pointer-events:auto;overflow:visible}
.lsc-ml span{max-width:100%;font-size:.62rem;font-weight:700;line-height:1.15;color:var(--lsc-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lsc-ml b{font-size:.84rem;font-weight:800;line-height:1.05;white-space:nowrap}
.lsc-ml.under,.lsc-ml.under span{color:var(--lsc-on)}
.lsc-ml:focus-visible,.lsc-nl:focus-visible,.lsc-wk:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}
/* the night's words under the moon and the workouts on the ground's path */
.lsc-nl{position:absolute;padding:0 2px;border:0;background:none;color:var(--lsc-nightw);font:700 .6rem/16px var(--sans);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;pointer-events:auto}
.lsc-wk{position:absolute;display:flex;align-items:center;justify-content:center;gap:3px;padding:0 4px;border:0;border-radius:var(--pill);background:color-mix(in srgb,var(--lsc-on) 16%,transparent);color:var(--lsc-on);font:700 .6rem/1 var(--sans);cursor:pointer;pointer-events:auto;overflow:hidden}
.lsc-wk .i{width:11px;height:11px}
.lsc-wk span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lsc-wk.pt{border-radius:50%;padding:0}
/* the reading over the land: a quiet crosshair, a sunny dot and a glassy bubble */
.ins-box[data-style=landscape] .ins-scrub .cursor{stroke:var(--lsc-txt);stroke-dasharray:2 3;opacity:.55}
.ins-box[data-style=landscape] .ins-scrub .hx{stroke:var(--lsc-txt);opacity:.3}
.ins-box[data-style=landscape] .ins-scrub .now{fill:var(--lsc-sun);stroke:var(--lsc-white);stroke-width:2}
.ins-box[data-style=landscape] .ins-ro{background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ins-box[data-style=landscape].scrubbing .lsc-mls,.ins-box[data-style=landscape].scrubbing .lsc-nl,.ins-box[data-style=landscape].scrubbing .lsc-hero{opacity:.15}
