/* 2026-11-25 lane E: Prechádzka (walk.js walkBody) and the Kroky tile in Progres. Tokens from forma.css. Classes are
   wl- (the Týždeň checker in week.css owns wk-). The screen: the dotted ring of Pauza and Týždeň with the day's steps
   inside and the goal under them, grey under the goal, ember once it is reached; one quiet line of facts; this week as
   seven columns of the ring's dots. Nothing to type on the screen: the ring opens the entry drop (.wl-pick), the rest
   picker's wheel (training.css .rp-*) with Kroky / Minúty and Hotovo. */

/* .t-secs (display: block in training.css) only marks the pieces that pop in; the walk lays them out itself */
.wl, .wl.t-secs { display: grid; justify-items: center; gap: 0; padding: 4px 10px 24px; font-family: var(--f-font); color: var(--f-text); }
.wl :where(p) { margin: 0; }
.wl-when { justify-self: stretch; min-height: 20px; text-align: center; font-size: var(--f-fs-sub); color: var(--f-text-2); padding: 6px 0 0; }
.wl-when.is-blank { visibility: hidden; } /* the ring stays where it is when a past day is picked */

/* the ring is the button: a tap opens the entry */
.wl-open {
  display: block; width: min(100%, 272px); padding: 0; border: 0; border-radius: 50%; background: none; color: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.wl-open:focus-visible { outline: 2px solid var(--f-outline); outline-offset: -6px; }
.wl-ring { width: 100%; color: var(--f-text-3); transition: color var(--f-dur-3, .4s) var(--f-ease); }
.wl-ring.is-full { color: var(--f-accent); }
.wl-ring .t-ring__time {
  display: grid; justify-items: center; gap: 6px; font-family: var(--f-font-num); font-weight: 500; font-size: 20cqi;
  letter-spacing: var(--f-track-display); white-space: nowrap;
}
.wl-ring .t-ring__time small {
  font-family: var(--f-font); font-size: var(--f-fs-sub); font-weight: 400; letter-spacing: 0; color: var(--f-text-3);
  font-variant-numeric: tabular-nums;
}
.wl-facts { min-height: 20px; margin-top: 2px; font-size: var(--f-fs-sub); color: var(--f-text-2); font-variant-numeric: tabular-nums; text-align: center; }
.wl-facts.is-blank { visibility: hidden; } /* the week stays where it is on an empty day */

/* this week: seven columns of dots over the weekday letters. A dot = a sixteenth of the goal. Filled dots grey, the
   day shown lighter, a day at the goal ember (done); empty places as the ring's faint dots. */
.wl-week { justify-self: stretch; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 30px; }
.wl-day {
  display: grid; justify-items: center; gap: 10px; min-height: var(--f-tap); padding: 6px 0 4px; border-radius: 14px;
  font-family: var(--f-font); color: var(--f-text-3); -webkit-tap-highlight-color: transparent;
}
.wl-day__dots { display: block; overflow: visible; }
.wl-dot { fill: var(--f-track); }
.wl-dot.is-on { fill: var(--f-text-3); }
.wl-day.is-sel .wl-dot.is-on { fill: var(--f-text-2); }
.wl-day.is-done .wl-dot.is-on { fill: var(--f-accent); }
.wl-day__l { font-size: var(--f-fs-caption); font-weight: 500; line-height: 1; }
.wl-day.is-today { color: var(--f-text-2); }
.wl-day.is-sel { color: var(--f-text); }
.wl-day:disabled { opacity: 0.45; }
.wl-day:focus-visible { outline: 2px solid var(--f-outline); outline-offset: 0; }

/* the entry drop: the rest picker's frame and wheel, one column */
.wl-pick-layer .t-menu-scrim { z-index: calc(var(--f-z-menu) - 1); }
.wl-pick { font-family: var(--f-font); color: var(--f-text); }
.wl-pick__body { width: 304px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 14px 16px 16px; display: grid; gap: 14px; }
.wl-pick .f-seg > button { font-family: var(--f-font); text-transform: none; letter-spacing: 0; }
.wl-wheels { grid-template-columns: 1fr; }
.wl-slot { position: relative; min-width: 0; }
.wl-col .rp-row { padding-right: calc(50% + 2px); }
.wl-unit { left: calc(50% + 10px); }
/* an exact number: the middle row turns into a field on the band */
.wl-type {
  position: absolute; top: 80px; left: 12%; width: calc(38% + 2px); height: 40px; box-sizing: border-box; padding: 0;
  border: 0; border-radius: 0; background: none; color: var(--f-text); text-align: right;
  font-family: var(--f-font-num); font-weight: 500; font-size: 27.6px; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; caret-color: var(--f-text); outline: none;
}
/* focused it is a bare big number: one thin cream line under it (never ember) */
.wl-type:focus, .wl-type:focus-visible { outline: none; box-shadow: inset 0 -1px 0 rgba(244, 239, 233, 0.22); }
.wl-type[hidden] { display: none; }
.wl-col.is-typing .rp-row.is-mid { visibility: hidden !important; }
.wl-done { width: 100%; min-height: 56px; }

@media (max-width: 360px) {
  .wl-open { width: min(100%, 236px); }
  .wl-week { margin-top: 22px; }
}

/* Progres: the Kroky tile. A day at the goal is ember (done). Third in the row of tiles (or alone) it takes the
   whole row, so the grid never ends with a half-empty line. */
.pg-bar--done { fill: var(--f-accent); }
.pg-tiles > .wl-tile:nth-child(odd) { grid-column: 1 / -1; }

@media (prefers-reduced-motion: reduce) {
  .wl-ring { transition: none; }
}
