/* St. John Almanac: the living island. The shell's tokens and parts (tiles, dial, fold); the scene's own colours live in scene.js and are said there. */
.li-alerts:empty { display: none; }
/* an alert in force: one slim line under the scene, never a box and never at the head of the page */
.li-alerts { padding-block: 0.45rem 0; display: grid; gap: 0.15rem; }
.li-alerts .notice { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; font-size: 0.875rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-stage { background: var(--sheet); --li-day: var(--gold-bright); --li-night: var(--forest); }
.li-scene { position: relative; overflow: hidden; background: var(--forest); min-height: 320px; }
/* (touch-action: none: the picture owns its gestures; with pan-y a phone took two fingers moving up or down for a scroll of the page) */
.li-scene canvas { display: block; width: 100%; touch-action: none; outline-offset: -3px; cursor: grab; }
.li-scene canvas:active { cursor: grabbing; }
.li-scene::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(var(--photo-shade), 0.55) 0%, rgba(var(--photo-shade), 0.18) 55%, rgba(var(--photo-shade), 0) 100%); }
.li-title { position: absolute; inset: 0 0 auto 0; z-index: 2; pointer-events: none; padding-block: clamp(0.9rem, 2.4vw, 1.8rem) 0; display: flex; flex-direction: column; gap: 0.35rem; color: var(--on-photo); }
.li-title .eyebrow { color: var(--gold-bright); text-shadow: 0 1px 10px rgba(var(--photo-shade), 0.6); margin: 0; }
.li-title h1 { margin: 0; font-size: clamp(1.9rem, 4vw + 0.6rem, 3.6rem); text-shadow: 0 1px 22px rgba(var(--photo-shade), 0.6); }
.li-lede { margin: 0; max-width: 40ch; font-size: var(--step-0, 1rem); line-height: 1.4; text-shadow: 0 1px 14px rgba(var(--photo-shade), 0.75); }
.li-wait { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; margin: 0; padding: 1rem; text-align: center; color: var(--on-photo); }
.li-wait[hidden] { display: none; }
/* finding a place by name, beside the list of places */
.li-find { position: relative; flex: 2 1 14rem; }
.li-find input { font: inherit; padding: 0.45rem 0.6rem; border-radius: 0.5rem; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); width: 100%; min-width: 0; box-sizing: border-box; }
.li-find input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.li-find-list { position: absolute; left: 0; right: 0; top: calc(100% - 1.2rem); z-index: 6; margin: 0; padding: 0.25rem; list-style: none; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: 0.6rem; box-shadow: 0 8px 24px rgba(var(--photo-shade), 0.22); max-height: 17rem; overflow: auto; }
.li-find-list li { display: grid; gap: 0.1rem; padding: 0.5rem 0.55rem; border-radius: 0.4rem; cursor: pointer; }
.li-find-list li span { font-size: 0.8125rem; color: var(--ink-soft); }
.li-find-list li[aria-selected="true"], .li-find-list li:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.li-find-say { margin: 0; min-height: 1.2rem; font-size: 0.8125rem; line-height: 1.2rem; color: var(--ink-soft); }
/* the roads' names, each along its road (island/engine/roads.js) */
.li-roads { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.li-roads span { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 0.69rem/1 var(--text); color: var(--on-photo); text-shadow: 0 1px 4px rgba(var(--photo-shade), 0.95), 0 0 2px rgba(var(--photo-shade), 0.9); }
.li-pin { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); }
.li-pin[hidden] { display: none; }
.li-pin-name { font: 600 0.8125rem/1.2 var(--text); color: var(--on-forest); background: var(--forest); padding: 0.25rem 0.55rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.li-pin-dot { width: 2px; height: 26px; background: var(--on-forest); box-shadow: 0 0 3px rgba(0, 0, 0, 0.6); }
.li-pin-dot::after { content: ""; display: block; width: 9px; height: 9px; margin: 24px 0 0 -3.5px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 2px var(--forest); }
/* what is drawn and not known, said on the scene itself while it plays */
.li-drawn { position: absolute; z-index: 2; left: var(--gutter-l, 1rem); bottom: 0.6rem; right: 9.5rem; margin: 0; pointer-events: none; font: 500 0.72rem/1.35 var(--text); color: var(--on-photo); text-shadow: 0 1px 6px rgba(var(--photo-shade), 0.95), 0 0 2px rgba(var(--photo-shade), 0.9); max-width: 34rem; }
.li-drawn b { font-weight: 700; color: var(--gold-bright); }
.li-drawn[hidden] { display: none; }
/* what the scene says of itself is folded behind one small button; the wind's key stays in sight */
.li-drawn-btn { pointer-events: auto; font: 600 0.6875rem/1 var(--text); color: var(--on-forest); background: color-mix(in srgb, var(--forest) 82%, transparent); border: 1px solid color-mix(in srgb, var(--on-forest) 45%, transparent); border-radius: 999px; padding: 0.38rem 0.65rem; cursor: pointer; text-shadow: none; }
.li-drawn-btn[aria-expanded="true"] { background: var(--gold-bright); color: var(--forest); border-color: var(--gold-bright); }
.li-drawn-btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.li-drawn-text { display: block; margin-top: 0.4rem; padding: 0.5rem 0.65rem; border-radius: 0.5rem; background: color-mix(in srgb, var(--forest) 90%, transparent); color: var(--on-forest); text-shadow: none; pointer-events: auto; max-height: 11rem; overflow: auto; }
.li-drawn-text[hidden] { display: none; }
.li-drawn--open { z-index: 3; }
/* On a phone the tools take the foot of the picture, so the key and "What is drawn" stand under the picture, in a place of their
   own (living.js moves them into this slot at phone widths and back). Empty, the slot takes no room. */
.li-drawn-slot:empty { display: none; }
.li-drawn-slot { background: var(--forest); padding: 0.6rem var(--gutter-l, 1rem) 0.65rem; }
.li-drawn-slot .li-drawn { position: static; max-width: none; pointer-events: auto; text-shadow: none; color: var(--on-forest); font-size: 0.75rem; }
.li-drawn-slot .li-drawn > .li-key:last-child { margin: 0; }
.li-drawn-slot .li-drawn-text { background: color-mix(in srgb, var(--on-forest) 9%, var(--forest)); }
.li-tools { position: absolute; z-index: 2; right: var(--gutter-r, 1rem); bottom: 0.6rem; display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.li-tool { font: 600 0.8125rem/1 var(--text); color: var(--on-forest); background: color-mix(in srgb, var(--forest) 82%, transparent); border: 1px solid color-mix(in srgb, var(--on-forest) 45%, transparent); border-radius: 999px; padding: 0.5rem 0.8rem; cursor: pointer; }
.li-tool[aria-pressed="true"] { background: var(--gold-bright); color: var(--forest); border-color: var(--gold-bright); }
.li-tool:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.li-bar { padding-block: 1rem 2rem; display: grid; gap: 1rem; }
.li-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.li-clock { font: 600 clamp(1.25rem, 2vw + 0.85rem, 2.2rem)/1.1 var(--display); font-variant-numeric: lining-nums tabular-nums; margin-inline: 0.3rem auto; white-space: nowrap; }
.li-clock small { font: 500 0.8125rem/1 var(--text); color: var(--ink-soft); margin-left: 0.35rem; }
.li-live { display: grid; gap: 1rem; }
.li-live[hidden] { display: none; }
.li-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the layers' chips: shown only when the model has more than one layer to show */
.li-layers { position: absolute; z-index: 2; top: clamp(0.8rem, 2vw, 1.4rem); right: var(--gutter-r, 1rem); display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; max-width: min(60%, 34rem); }
.li-layers[hidden] { display: none; }
/* a builder's mark (#frames): the scene's own count of its frames, read off the screen */
.li-frames { position: absolute; z-index: 3; left: 0.5rem; right: 0.5rem; top: 0.4rem; margin: 0; padding: 0.35rem 0.55rem; border-radius: 0.4rem; pointer-events: none; font: 600 0.75rem/1.35 var(--text); font-variant-numeric: tabular-nums; color: var(--on-forest); background: color-mix(in srgb, var(--forest) 88%, transparent); }
.li-bare::before, .li-bare .li-title, .li-bare .li-drawn, .li-bare .li-tools, .li-bare .li-pin, .li-bare .li-layers, .li-bare .li-frames { display: none !important; }
.li-row > * { min-width: 0; }
.li-place { display: grid; gap: 0.2rem; min-width: 0; flex: 1 1 9.5rem; max-width: 100%; }
.li-place select { width: 100%; min-width: 0; }
.li-place select, .li-name input { font: inherit; padding: 0.45rem 0.6rem; border-radius: 0.5rem; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); max-width: 100%; }
.li-line { display: grid; gap: 0.3rem; min-width: 0; }
.li-line input[type=range] { width: 100%; margin: 0; height: 1.9rem; background: transparent; accent-color: var(--accent); -webkit-appearance: none; appearance: none; }
.li-line input[type=range]::-webkit-slider-runnable-track { height: 0.8rem; border-radius: 999px; background: var(--li-track, var(--rule)); border: 1px solid var(--rule); }
.li-line input[type=range]::-moz-range-track { height: 0.8rem; border-radius: 999px; background: var(--li-track, var(--rule)); border: 1px solid var(--rule); }
.li-line input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 1.7rem; height: 1.7rem; margin-top: -0.5rem; border-radius: 50%; background: var(--sheet); border: 3px solid var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.li-line input[type=range]::-moz-range-thumb { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--sheet); border: 3px solid var(--accent); }
.li-line input[type=range]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.li-days { position: relative; height: 1.2rem; font: 500 0.75rem/1.2 var(--text); color: var(--ink-soft); }
.li-days span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.li-days .li-nowmark { color: var(--accent); font-weight: 700; }
@media (min-width: 62rem) { .li-tiles { grid-template-columns: 2fr repeat(5, 1fr); } .li-tiles .tile--wide { grid-column: auto; } }
.li-tiles .tile-say b { font-weight: 700; color: var(--ink); }
.li-windrow { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.li-windrow .dial { width: clamp(5.5rem, 22vw, 7rem); }
.li-windrow .tile-n { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); }
.li-yours .fineprint { flex: 1 1 100%; margin: 0; }
.li-windrow > div:last-child { display: grid; gap: 0.3rem; min-width: 0; flex: 1 1 9rem; }
.li-tiles .tile-n small.li-pre { margin: 0 0.25em 0 0; }
@media (max-width: 61.99rem) { .li-tiles .tile--wide { grid-column: 1 / -1; } }
.li-scene--flat { min-height: 0; background: var(--water); }
.li-scene--flat::before { height: 5.5rem; }
.li-more { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: var(--step--1); color: var(--ink-soft); }
.li-more a { font-weight: 600; }
.li-yours { display: grid; gap: 0.6rem; }
.li-name { display: flex; gap: 0.5rem; align-items: end; flex-wrap: wrap; }
.li-name[hidden] { display: none; }
.li-name label { display: grid; gap: 0.2rem; }
.li-photo:empty { display: none; }
.li-photo figure { margin: 0; }
@media (max-width: 36rem) {
  .li-drawn { right: var(--gutter-r, 1rem); bottom: 3.1rem; font-size: 0.68rem; }
  .li-place { flex: 1 1 100%; }
  .li-clock { margin-inline: 0.2rem 0; white-space: normal; }
  .li-lede { display: none; }
}

/* ----- a layer's own tiles and controls ----- */
@media (min-width: 62rem) { .li-tiles--layer { grid-template-columns: repeat(4, 1fr); } .li-tiles--layer .tile--wide { grid-column: span 2; } }
.li-tiles[hidden], .li-layer-row[hidden], .li-place[hidden], .li-tool[hidden] { display: none; }
.li-layer-row { align-items: end; }
/* the Sun layer: the day, and the hours along the sun's path over the place */
.li-sun { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: end; width: 100%; }
.li-sun-day { flex: 0 1 11rem; }
.li-sun-day input { width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--ink-soft); border-radius: 8px; padding: 0.5rem 0.6rem; }
.li-sun-set { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.li-sun .button[aria-pressed="true"] { background: var(--press); color: var(--on-press); border-color: var(--press); }
.li-arc { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.li-arc > span { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 0.72rem/1 var(--text); color: var(--on-photo); text-shadow: 0 1px 4px rgba(var(--photo-shade), 0.95), 0 0 2px rgba(var(--photo-shade), 0.9); }
.li-arc > .li-arc-dim { opacity: 0.6; }
.li-arc > .li-arc-ref { font-weight: 500; opacity: 0.8; }
.li-bare .li-arc { display: none !important; }
/* the Moon's and the planets' names over the night sky, from the ground */
.li-sky-names { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.li-sky-names[hidden] { display: none; }
.li-sky-names > span { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 0.72rem/1 var(--text); color: var(--on-photo); opacity: 0.92; text-shadow: 0 1px 4px rgba(var(--photo-shade), 0.95), 0 0 2px rgba(var(--photo-shade), 0.9); }
.li-bare .li-sky-names { display: none !important; }
/* the Sun page's own words over the look-out from the ground (the compass and the hours; their look is ../sun/parts.css) */
.li-sun-over { z-index: 1; }
.li-bare .li-sun-over { display: none !important; }
/* ----- under a layer's figures: its drawings and tables. The Sun layer's: the day in a line, the skyline all round, the year ----- */
.li-layer-more { margin-top: 1.4rem; }
.li-sunx { display: grid; gap: 1.5rem; }
.li-sunx > p, .li-sunx section > * { margin: 0; }
.li-sunx section { display: grid; gap: 0.6rem; min-width: 0; }
.li-sunx-where { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.li-sunx-where + .li-sunx-day { margin-top: -1.1rem; font-size: var(--step-1, 1.15rem); line-height: 1.35; }
.li-sunx-day + .li-sunx-more { margin-top: -0.9rem; }
.li-sunx-flat { font-size: var(--step--1); color: var(--ink-soft); }
.li-sunx-narrow { display: none; flex-direction: column; gap: 0.5rem; }
.li-sunx-narrow p { margin: 0; }
.li-sunx [data-s^="carpet"] svg { cursor: pointer; }
@media (max-width: 43.99rem) { .li-sunx-wide { display: none; } .li-sunx-narrow { display: flex; } }
@media (max-width: 36rem) { .li-sun { gap: 0.5rem; } .li-sun .button { padding: 0.45rem 0.7rem; font-size: 0.875rem; } .li-sun-day { flex-basis: 100%; } }

/* ----- the line of time, kept in reach under the scene; the place and the when below it ----- */
.li-reach { display: grid; gap: 0.8rem; }
.li-where { align-items: end; }
/* ----- the hour's figures laid over the view: each a chip with its short word; a press shows its whole sentence ----- */
.li-hud { position: absolute; z-index: 3; left: var(--gutter-l, 1rem); top: clamp(8.8rem, 9vw + 4.6rem, 11.4rem); display: grid; gap: 0.45rem; justify-items: start; max-width: min(22rem, 60%); pointer-events: none; }
.li-hud[hidden] { display: none; }
.li-hud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; justify-items: start; }
.li-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 0.45rem; font: 600 0.84rem/1 var(--text); color: var(--on-forest); background: color-mix(in srgb, var(--forest) 76%, transparent); border: 1px solid color-mix(in srgb, var(--on-forest) 30%, transparent); border-radius: 999px; padding: 0.36rem 0.72rem 0.36rem 0.5rem; cursor: pointer; }
.li-chip svg { width: 1.05rem; height: 1.05rem; flex: none; }
.li-chip-t { display: inline-flex; gap: 0.4rem; align-items: baseline; }
.li-chip-l { font-weight: 500; color: var(--on-forest-soft); }
.li-chip-n { font-variant-numeric: lining-nums tabular-nums; }
.li-chip-w { font: 600 0.6875rem/1 var(--text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-bright); }
@media (min-width: 36.01rem) { .li-chip-t { display: contents; } .li-chip-l { order: 0; } .li-chip-n { order: 1; } .li-chip-w { order: 2; } }
.li-chip[aria-expanded="true"] { background: var(--forest); border-color: var(--gold-bright); }
.li-chip:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.li-hud-say { pointer-events: auto; margin: 0; padding: 0.55rem 0.75rem; border-radius: 0.6rem; font: 400 0.8rem/1.42 var(--text); color: var(--on-forest); background: color-mix(in srgb, var(--forest) 93%, transparent); }
.li-hud-say[hidden] { display: none; }
.li-hud-under { display: none; margin: 0; padding: 0.55rem 0.75rem; border-radius: 0.6rem; font: 400 0.84rem/1.42 var(--text); color: var(--on-forest); background: var(--forest); }
.li-hud-under[hidden] { display: none !important; }
.li-hud-under b { color: var(--gold-bright); font-weight: 600; }
.li-hud-under a { color: inherit; }
.li-hud-say b { color: var(--gold-bright); font-weight: 600; }
.li-bare .li-hud { display: none !important; }
/* A short scene (a laptop's low window; .li-short is set by the scene's height): the figures' column cannot stand between the
   title and the caption, and the figures and the caption's key must never share a place. So the column stands at the right,
   under the layers' chips and above the buttons; a pressed figure's sentence opens beside it; the title keeps its name only.
   The caption and the key keep the left. */
@media (min-width: 36.01rem) {
  .li-short .li-hud { left: auto; right: var(--gutter-r, 1rem); top: 3.9rem; max-width: none; grid-auto-flow: column; align-items: start; justify-items: end; }
  .li-short .li-hud-list { justify-items: end; gap: 0.22rem; }
  .li-short .li-chip { padding-block: 0.3rem; }
  .li-short .li-hud-say { order: -1; max-width: min(20rem, 40vw); }
  .li-short .li-lede { display: none; }
}
@media (min-width: 36.01rem) and (max-width: 61.99rem) { .li-short .li-drawn { right: 19rem; } }
@media (max-width: 36rem) {
  .li-hud { top: 4.7rem; right: var(--gutter-r, 1rem); bottom: 5.4rem; max-width: none; display: flex; flex-direction: column; justify-content: space-between; }      /* the figures at the top; a figure's sentence at the foot, so neither covers the place */
  .li-saying .li-drawn { display: none; }
  .li-hud-list { display: flex; flex-wrap: wrap; gap: 0.3rem; max-width: 100%; }
  /* a figure on a phone: its name and its word above, its number below */
  .li-chip { display: inline-grid; grid-template-columns: auto auto; grid-template-areas: "s t" "s n"; column-gap: 0.4rem; row-gap: 0.12rem; align-items: center; justify-items: start; border-radius: 0.7rem; font-size: 0.8125rem; padding: 0.3rem 0.6rem 0.32rem 0.45rem; }
  .li-chip svg { grid-area: s; width: 1rem; height: 1rem; }
  .li-chip-t { grid-area: t; display: inline-flex; gap: 0.35rem; align-items: baseline; }
  .li-chip-l { font: 600 0.6875rem/1 var(--text); color: var(--on-forest); }
  .li-chip-n { grid-area: n; }
  .li-tool { font-size: 0.75rem; padding: 0.42rem 0.62rem; }
  .li-drawn { bottom: calc(var(--tools-h, 4.6rem) + 1.1rem); }
  /* the caption on a phone: its first line, and all of it at a press */
}
/* the narrowest phones: the figures in one row that slides sideways, and no kicker over the title, so the place stays clear */
/* phones up to 389 wide: the figures in one row that slides sideways, so the place and its name stay clear; and a pressed
   figure's sentence is shown under the scene, not over it */
@media (max-width: 24.32rem) {
  .li-hud-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; pointer-events: auto; touch-action: pan-x; padding-bottom: 2px; }
  .li-hud-list::-webkit-scrollbar { display: none; }
  .li-hud-list > li { flex: none; }
  .li-hud-say { display: none; }
  .li-saying .li-drawn:not([hidden]) { display: -webkit-box; }
  .li-hud-under { display: block; }
}
/* the narrowest phones: no kicker over the title and a smaller title, for the same reason */
@media (max-width: 22.49rem) {
  .li-title .eyebrow { display: none; }
  .li-title h1 { font-size: 1.6rem; }
  .li-hud { top: 2.95rem; }
  .li-chip { padding-block: 0.2rem 0.22rem; row-gap: 0.06rem; }
}
}
/* fix g: the caption never runs under the buttons: beside them on a wide screen, above them on a narrower one */
@media (min-width: 62rem) { .li-drawn { right: 44rem; } }
@media (min-width: 36.01rem) and (max-width: 61.99rem) { .li-drawn { right: var(--gutter-r, 1rem); bottom: 3.3rem; } }
}
/* ----- filling the screen: the alerts in force, the model and its line of time, together ----- */
html.li-lock { overflow: hidden; }
.li-whole.li-full { position: fixed; inset: 0; z-index: 60; background: var(--sheet); display: flex; flex-direction: column; overflow-y: auto; }
.li-whole.li-full:fullscreen { width: 100%; height: 100%; }
.li-full .li-stage { flex: none; display: block; }
.li-full .li-bar { padding-block: 0.6rem 0.5rem; }
.li-full #live > :not(#reach), .li-full .li-bar > :not(#live) { display: none; }
.li-full .li-reach { gap: 0.5rem; }
/* filled, the alerts' lines keep their place under the model; one line at most */
.li-full .li-alerts { flex: none; padding-block: 0.3rem 0; }
.li-full .li-alerts .notice:not(:first-child) { display: none; }
.li-full .li-alerts .notice[data-more]::before { content: attr(data-more); font-weight: 600; }

/* ----- the key to the wind's streaks, at the head of the scene's caption ----- */
.li-key { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.45rem; flex-wrap: wrap; }
.li-key-t { font-weight: 700; color: var(--on-photo); }
.li-key-scale { display: inline-block; position: relative; width: min(19rem, 58vw); padding-bottom: 1.05rem; }
.li-key-bar { display: block; height: 0.5rem; border-radius: 999px; border: 1px solid rgba(var(--photo-shade), 0.5); }
.li-key-marks i { position: absolute; top: 0.72rem; font-style: normal; font-size: 0.6875rem; line-height: 1; white-space: nowrap; transform: translateX(-50%); }
/* the speed scale's marks crowd at its low end (a storm at 34 knots, a hurricane at 64, of 235): every second word stands a row lower */
.li-key-speed { padding-bottom: 1.95rem; }
.li-key-speed .li-key-marks i:nth-child(even) { top: 1.62rem; }
.li-key-ends i:first-child { transform: none; }
.li-key-ends i:last-child { transform: translateX(-100%); }
.li-key-w { font: 600 0.6875rem/1.5 var(--text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-bright); }

.li-drawn > .li-key:last-child { margin: 0.5rem 0 0; }

/* ----- the pace of the wind's streaks: a small choice on the scene, beside the lines' button ----- */
.li-pace { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--on-forest) 45%, transparent); border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--forest) 82%, transparent); }
.li-pace[hidden] { display: none; }
.li-pace button { font: 600 0.75rem/1 var(--text); color: var(--on-forest); background: none; border: 0; padding: 0.5rem 0.6rem; cursor: pointer; }
.li-pace button[aria-pressed="true"] { background: var(--gold-bright); color: var(--forest); }
.li-pace button:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -3px; }

/* ----- the day at the place: right under the view, readable at a glance ----- */
.li-day { margin-top: 0.9rem; display: grid; gap: 0.5rem; min-width: 0; }
.li-day[hidden], .li-day-top[hidden] { display: none; }
.li-day-top { display: grid; gap: 0.35rem; min-width: 0; }
.li-day-h { margin: 0; font: 600 var(--step-0, 1rem)/1.25 var(--text); color: var(--ink); }
.li-day-h small { font-weight: 500; color: var(--ink-soft); }
.li-day-marks, .li-day-hours { list-style: none; margin: 0; padding: 0 0 2px; display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: thin; }
.li-day-marks button, .li-day-hours button { font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 0.7rem; cursor: pointer; text-align: left; }
.li-day-marks button:focus-visible, .li-day-hours button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.li-day-marks li, .li-day-hours li { flex: none; }
.li-day-marks button { display: grid; gap: 0.1rem; padding: 0.4rem 0.7rem; }
.li-day-marks .li-day-past button { opacity: 0.62; }
.li-day-marks .k { font: 600 0.6875rem/1.2 var(--text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.li-day-marks .v { font: 600 1.05rem/1.2 var(--display, var(--text)); font-variant-numeric: lining-nums tabular-nums; }
.li-day-marks .n { font: 500 0.72rem/1.25 var(--text); color: var(--ink-soft); }
.li-day-hours button { display: grid; justify-items: center; gap: 0.12rem; min-width: 3.9rem; padding: 0.4rem 0.45rem 0.45rem; text-align: center; }
.li-day-hours .t { font: 600 0.72rem/1.1 var(--text); color: var(--ink-soft); }
.li-day-hours svg { width: 1.35rem; height: 1.35rem; }
.li-day-hours .a { font: 600 1.05rem/1.1 var(--display, var(--text)); font-variant-numeric: lining-nums tabular-nums; }
.li-day-hours .w, .li-day-hours .r, .li-day-hours .s { font: 500 0.72rem/1.15 var(--text); color: var(--ink-soft); white-space: nowrap; }
.li-day-hours .r { color: var(--accent); font-weight: 600; }
.li-day-hours .li-day-now button { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.li-day-hours .li-day-dark button { background: color-mix(in srgb, var(--ink) 7%, var(--sheet)); }
.li-day-say { margin: 0; font: 500 0.72rem/1.4 var(--text); color: var(--ink-soft); }
/* sunrise and sunset at the place, as small ticks on the line of time */
.li-days > .li-sunmark { position: absolute; top: -0.55rem; width: 0; height: 0.45rem; border-left: 2px solid var(--gold); transform: none; }

/* ----- THE PICTURE IS THE PAGE (.li-clear: every opening but "classic") -----
   Nothing lies on the model but the place's name and the corner buttons. The page's name, what the model shows and the
   hour's figures stand under the picture; every tool is in the one sheet that "Layers" opens (living.js, clearStart). */
.li-clear .li-scene::before { display: none; }
.li-strip { background: var(--forest); color: var(--on-forest); }
.li-strip-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; padding-block: 0.55rem 0.35rem; }
.li-clear .li-title { position: static; inset: auto; padding: 0; margin: 0; max-width: none; width: auto; display: flex; flex-direction: row; align-items: baseline; gap: 0.7rem; pointer-events: auto; color: var(--on-forest); flex: 1 1 auto; min-width: 0; }
.li-clear .li-title .eyebrow { display: none; }
.li-clear .li-title h1 { font-size: 1.15rem; line-height: 1.2; text-shadow: none; margin: 0; white-space: nowrap; }
.li-clear .li-title .li-lede { margin: 0; font-size: 0.8rem; line-height: 1.3; opacity: 0.82; text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.li-clear .li-layers { position: static; max-width: none; flex: none; }
.li-strip-figs { padding-block: 0.1rem 0.55rem; }
.li-clear .li-hud { position: static; display: block; max-width: none; pointer-events: auto; }
.li-clear .li-hud-list { display: flex; flex-wrap: nowrap; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; pointer-events: auto; touch-action: pan-x; padding-bottom: 2px; }
.li-clear .li-hud-list::-webkit-scrollbar { display: none; }
.li-clear .li-hud-list > li { flex: none; }
.li-clear .li-chip { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; grid-template: none; background: transparent; border-color: color-mix(in srgb, var(--on-forest) 24%, transparent); border-radius: 999px; padding: 0.32rem 0.6rem; font-size: 0.8rem; }
.li-clear .li-chip[aria-expanded="true"] { border-color: var(--gold-bright); }
.li-clear .li-chip-t { display: contents; }
.li-clear .li-chip-l { font: 500 0.75rem/1 var(--text); opacity: 0.8; }
/* a figure's word (measured, forecast, worked out) is in its name for a screen reader and in its sentence at a press */
.li-clear .li-chip-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.li-clear .li-hud-say { display: none; }
.li-clear .li-hud-under { display: block; }
.li-clear .li-tools { display: none; }
/* the corner buttons: back to the place (when the reader has moved off it), fill the screen, and the one sheet's button */
.li-corners { position: absolute; z-index: 4; right: var(--gutter-r, 1rem); bottom: 0.6rem; display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 2rem); transition: opacity 0.3s; }
.li-corner { background: var(--gold-bright); color: var(--forest); border-color: var(--gold-bright); }
.li-corner[aria-expanded="true"] { background: color-mix(in srgb, var(--forest) 82%, transparent); color: var(--on-forest); border-color: color-mix(in srgb, var(--on-forest) 45%, transparent); }
.li-full .li-idle .li-corners { opacity: 0; pointer-events: none; }
.li-full .li-strip { display: none; }
@media (max-width: 47.99rem) { .li-sheet-open .li-corners { visibility: hidden; } }      /* the sheet has the foot of the picture on a phone */
/* the sheet: from the foot of the picture on a phone, never more than half of it; a panel at the side on a desk */
.li-sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; max-height: 50%; overflow-y: auto; overscroll-behavior: contain; background: color-mix(in srgb, var(--forest) 96%, transparent); color: var(--on-forest); border-top: 1px solid color-mix(in srgb, var(--on-forest) 30%, transparent); border-radius: 0.9rem 0.9rem 0 0; padding: 0.55rem var(--gutter-l, 1rem) 0.8rem; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35); }
.li-sheet[hidden] { display: none; }
.li-views { max-height: none; }      /* the ways of looking: a heading and one row of buttons, never more than a strip at the picture's foot */
.li-sheet:focus { outline: none; }
.li-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: -0.55rem; background: inherit; padding-block: 0.25rem; margin-top: -0.25rem; z-index: 1; }
.li-sheet-h { margin: 0; font: 700 0.95rem/1.2 var(--text); color: var(--on-forest); }
.li-sheet-x { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
.li-sheet-t { margin: 0.7rem 0 0.4rem; font: 600 0.6875rem/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); }
.li-sheet-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.li-sheet .li-drawn { position: static; inset: auto; max-width: none; margin: 0; pointer-events: auto; text-shadow: none; color: var(--on-forest); font: 400 0.8rem/1.45 var(--text); }
.li-sheet .li-drawn-btn { display: none; }
.li-sheet .li-drawn-text, .li-sheet .li-drawn-text[hidden] { display: block; margin: 0; padding: 0; background: none; }
.li-sheet .li-drawn > .li-key { margin: 0 0 0.6rem; }
@media (min-width: 48rem) {
  .li-sheet { left: auto; right: var(--gutter-r, 1rem); bottom: 3.5rem; width: 23rem; max-height: calc(100% - 4.5rem); border: 1px solid color-mix(in srgb, var(--on-forest) 30%, transparent); border-radius: 0.9rem; padding-inline: 1rem; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4); }
}
@media (max-width: 36rem) {
  .li-clear .li-title .li-lede { display: none; }
  .li-strip-top { padding-block: 0.45rem 0.3rem; }
}
