/* Threat weather page. Uses the YoRHa tokens from yorha.css, so both themes work. */
.yt { border: 1px solid var(--text-muted); padding: 14px; position: relative; background: var(--bg-elevated); }
.yt-head { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; padding-bottom: 0.6rem; margin-bottom: 0.9rem; border-bottom: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.yt-head span:last-child { color: var(--text-faint); }
.yt-stale { margin: 0 0 0.9rem; padding: 0.5rem 0.75rem; border: 1px solid var(--bad); color: var(--bad); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; }
.yt-stale[hidden] { display: none; }

.yt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); margin-bottom: 0.9rem; }
.yt-kpi { padding: 0.75rem 0.9rem; border-right: 1px dashed var(--border); min-width: 0; }
.yt-kpi:last-child { border-right: 0; }
.yt-kpi small { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.yt-kpi b { display: block; margin-top: 0.3rem; font-weight: 300; font-size: 1.7rem; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }

.yt-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0.9rem; margin-bottom: 0.9rem; }
.yt-row-even { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0.4rem; }
.yt-pan { border: 1px solid var(--border); padding: 0.7rem 0.8rem; min-width: 0; }
.yt-pan h4 { margin: 0 0 0.6rem; font-family: var(--font-mono); font-weight: 400; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }

.yt-map { position: relative; aspect-ratio: 360 / 142; }
.yt-land { position: absolute; inset: 0; background: var(--text-faint); opacity: 0.4;
  -webkit-mask: url("../img/world-land.svg") center / 100% 100% no-repeat; mask: url("../img/world-land.svg") center / 100% 100% no-repeat; }
.yt-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.yt-map .arc { fill: none; stroke: var(--text); stroke-width: 0.35; opacity: 0.35; stroke-dasharray: 1.5 2.5; animation: yt-flow 14s linear infinite; }
.yt-map .dot { fill: var(--text); opacity: 0.9; }
.yt-map .dot.top { fill: var(--bad); }
.yt-map .home { fill: var(--bad); }
@keyframes yt-flow { to { stroke-dashoffset: -40; } }

.yt-bar { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2.6rem; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; }
.yt-bar span:last-child { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.yt-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-bar i { display: block; height: 8px; width: var(--w, 0%); min-width: 2px; background: repeating-linear-gradient(90deg, var(--yo-fill) 0 5px, transparent 5px 8px); transition: width 500ms steps(10, end); }

.yt-tl { display: flex; align-items: flex-end; gap: 3px; height: 84px; }
.yt-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; min-width: 0; }
.yt-col i { display: block; background: var(--yo-fill); opacity: 0.85; min-height: 1px; transition: height 500ms steps(8, end); }
.yt-col i.hot { background: var(--bad); opacity: 1; }
.yt-col u { display: block; height: 4px; margin-bottom: 2px; background: var(--bad); }
.yt-axis { display: flex; justify-content: space-between; margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-faint); }

.yt-feed div { font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); }
.yt-feed b { font-weight: 400; color: var(--text); letter-spacing: 0.08em; }
.yt-feed b.ban { color: var(--bad); }
.yt-empty { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; }

.yt-note { margin: 0.9rem 0 0; font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); }
.yt-note a { color: var(--text); }

@media (max-width: 720px) {
  .yt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt-kpi:nth-child(2) { border-right: 0; }
  .yt-kpi:nth-child(-n + 2) { border-bottom: 1px dashed var(--border); }
  .yt-row, .yt-row-even { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .yt-map .arc { animation: none; } .yt-bar i, .yt-col i { transition: none; } }
