/* live-forecast.css — the Live / Forecast block (js/live-forecast.js): the mode
   switch, the live picture cards and the week table. Landing page and Daily
   Check. Colours are the theme's; the pictures carry their own. */
.lf { display: flex; flex-direction: column; gap: 16px; }
.lf__kick { margin: 0; font: 500 11px/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2, var(--text-secondary)); }
.lf__h { margin: 0; font: 800 clamp(28px, 3.4vw, 40px)/1.08 var(--font-display, var(--font-sans, "Inter", sans-serif)); letter-spacing: -0.03em; color: var(--text); }
.lf__sub { margin: 0 0 4px; font-size: 17px; color: var(--text-2, var(--text-secondary)); }
.lf__body { display: flex; flex-direction: column; gap: 14px; }
.lf__wait { margin: 18px 0; font-size: 14px; color: var(--text-2, var(--text-secondary)); }
.lf__rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.lf__rowhead span { font-size: 13px; color: var(--text-2, var(--text-secondary)); }
.lf__h3 { margin: 0; font: 800 24px/1.15 var(--font-sans, "Inter", sans-serif); letter-spacing: -0.02em; color: var(--text); }
.lf-modes { align-self: flex-start; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-sunken, var(--surface)); border: 1px solid var(--line); }
.lf-modes__btn { border: 0; background: none; color: var(--text-2, var(--text-secondary)); font: 700 14px var(--font-sans, "Inter", sans-serif); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.lf-modes__btn[aria-pressed='true'] { background: var(--text); color: var(--bg); }
.lf-modes__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ── live cards ── */
.lf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lf-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; }
.lf-card:hover { border-color: var(--line-strong, var(--text)); }
.lf-card:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.lf-card__pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #214560; }
.lf-pic { position: absolute; inset: 0; display: block; overflow: hidden; }
.lf-pic--weather { background: var(--surface-sunken, #dfe3e6); color: var(--text); }
.lf-tiles { position: absolute; left: 50%; top: 50%; width: 640px; height: 380px; transform: translate(-50%, -50%); }
.lf-tiles img { position: absolute; max-width: none; }
.lf-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.lf-scene, .lf-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.lf-buoy { animation: lf-bob 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
@keyframes lf-bob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 calc(var(--bob, 2px) * -1); rotate: 3deg; } }
@media (prefers-reduced-motion: reduce) { .lf-buoy { animation: none; } }
.lf-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(20, 20, 22, 0.72); color: #fff;
  font: 700 10px/1.4 var(--font-sans, "Inter", sans-serif); letter-spacing: 0.08em; text-transform: uppercase; }
.lf-card__bd { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; min-width: 0; }
.lf-card__nm { font: 700 16px/1.25 var(--font-sans, "Inter", sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-card__pl { font-size: 12px; color: var(--text-2, var(--text-secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.lf-card__rate { display: flex; align-items: center; gap: 7px; min-height: 18px; font: 800 12px/1 var(--font-sans, "Inter", sans-serif); letter-spacing: 0.06em; text-transform: uppercase; }
.lf-card__bar { width: 22px; height: 4px; border-radius: 2px; background: currentColor; }
.lf-card__nums { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; min-height: 28px; color: var(--text); }
.lf-card__nums b { font: 800 22px/1.15 var(--font-sans, "Inter", sans-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lf-card__nums b small { font: 700 13px var(--font-sans, "Inter", sans-serif); letter-spacing: 0; }
.lf-card__cond { font-size: 13px; color: var(--text-2, var(--text-secondary)); }
.lf-card__src { font-size: 11px; color: var(--text-2, var(--text-secondary)); }
.lf-skel { display: inline-block; width: 120px; border-radius: 6px; background: var(--surface-sunken, var(--surface)); }

/* ── the week table ── */
.lf-week { --lf-cols: 16; --lf-name: 180px; --lf-col: 92px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow-x: auto; overscroll-behavior-x: contain; }
.lf-week:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.lf-wk { display: grid; grid-template-columns: var(--lf-name) repeat(var(--lf-cols), minmax(var(--lf-col), 1fr)); min-width: calc(var(--lf-name) + var(--lf-cols) * var(--lf-col)); color: var(--text); text-decoration: none; }
.lf-wk--hd { border-bottom: 1px solid var(--line); }
.lf-wk__dh { padding: 10px 4px; text-align: center; font: 600 12px/1.3 var(--font-sans, "Inter", sans-serif); color: var(--text-2, var(--text-secondary)); }
.lf-wk__dh b { display: block; font: 700 14px var(--font-sans, "Inter", sans-serif); color: var(--text); }
.lf-wk--row { position: relative; min-height: 88px; border-bottom: 1px solid var(--line); }
.lf-wk--row:last-child { border-bottom: 0; }
.lf-wk--row > * { grid-row: 1; }
.lf-wk--row:hover .lf-wk__nm b { text-decoration: underline; }
.lf-wk__nm { position: sticky; left: 0; z-index: 2; grid-column: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px;
  background: var(--bg); border-right: 1px solid var(--line); min-width: 0; }
.lf-wk__nm b { font: 700 15px/1.25 var(--font-sans, "Inter", sans-serif); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lf-wk__nm span { font-size: 12px; color: var(--text-2, var(--text-secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-wk__wait { align-self: center; padding: 0 16px; font-size: 13px; color: var(--text-2, var(--text-secondary)); }
.lf-wk__area { position: absolute; left: var(--lf-name); right: 0; top: 0; bottom: 0; width: calc(100% - var(--lf-name)); height: 100%; pointer-events: none; }
.lf-wk__area path { fill: var(--text); opacity: 0.09; }
.lf-wk__d { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 4px 11px; text-align: center; }
.lf-wk__d > b { font: 800 16px/1.1 var(--font-sans, "Inter", sans-serif); letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lf-wk__d > b small { font: 700 10px var(--font-sans, "Inter", sans-serif); }
.lf-wk__dash { display: flex; gap: 3px; }
.lf-wk__dash i { width: 14px; height: 4px; border-radius: 2px; }
.lf-wk__plus { margin: auto; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font: 700 11px/1.3 var(--font-sans, "Inter", sans-serif); }
.lf-wk__none { margin: auto; color: var(--text-muted); }
.lf-week--weather .lf-wk__d { justify-content: center; gap: 6px; }
.lf-wk__wx { width: 26px; height: 26px; }
.lf-wk__hl { display: flex; align-items: baseline; gap: 5px; }
.lf-wk__hl b { font: 800 19px/1 var(--font-sans, "Inter", sans-serif); font-variant-numeric: tabular-nums; }
.lf-wk__hl i { font: 600 12px/1 var(--font-sans, "Inter", sans-serif); font-style: normal; color: var(--text-2, var(--text-secondary)); }
.lf__all { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 999px; border: 1px solid var(--line-strong, var(--line)); background: var(--bg);
  color: var(--text); font: 600 14px var(--font-sans, "Inter", sans-serif); text-decoration: none; }
.lf__all:hover { border-color: var(--text); }
.lf-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px;
  background: var(--surface-sunken, var(--surface)); border: 1px dashed var(--line-strong, var(--line)); font-size: 14px; color: var(--text); }
@media (max-width: 760px) {
  .lf-cards { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .lf-cards .lf-card { flex: none; width: 78%; scroll-snap-align: start; }
  .lf-week { --lf-name: 118px; --lf-col: 96px; }
  .lf-wk__d > b { font-size: 14px; }
  .lf__h3 { font-size: 21px; }
}

/* the heading with a host control beside it (js/live-forecast.js o.tools) */
.lf__headl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }

/* the weather card's marker: the sky's symbol in a round badge */
.lf-wxbadge { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.lf-wxbadge svg { width: 44px; height: 44px; }
.lf-wxbadge--dot { width: 14px; height: 14px; background: #17171A; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, 0.35); }
