/* Live sky card for [data-live-weather] (js/live-weather.js). Colours mirror
   the app's SkyMood / SkyInk / SkyHourTile so the site and the Dash match. */

[data-live-weather] { max-width: 520px; width: 100%; }
[data-live-weather] > img { display: block; width: 100%; height: auto; border-radius: 24px; }

.lw-frame { display: flex; flex-direction: column; gap: 12px; color: #fff; font-family: 'Inter', system-ui, sans-serif; }

.lw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: #1b1d21; border: 1px solid #2a2d33; }
.lw-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: #a7afbb; font: 600 14px/1.2 'Inter', system-ui, sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.lw-tab svg { width: 18px; height: 18px; flex: none; }
.lw-tab[aria-selected="true"] { background: #2b2e34; color: #f9fafb; }
.lw-tab:hover { color: #f9fafb; }
.lw-tab:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }

.lw-sky { position: relative; overflow: hidden; isolation: isolate; padding: 20px; border-radius: 24px;
  background: radial-gradient(120% 80% at 88% 8%, color-mix(in srgb, var(--glow) 26%, transparent) 0%, transparent 55%),
              linear-gradient(160deg, var(--sky0) 0%, var(--sky1) 100%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .08); }
.lw-sky > *:not(.lw-motion) { position: relative; z-index: 1; }

.lw-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lw-where { min-width: 0; }
.lw-title { margin: 0; font: 700 16px/1.3 'Poppins', 'Inter', system-ui, sans-serif; color: #fff; }
.lw-subtitle { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .9); }

.lw-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lw-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.lw-pill.is-watch .lw-dot { background: #fcd34d; box-shadow: 0 0 0 3px rgba(252, 211, 77, .2); }
.lw-pill.is-high .lw-dot { background: #fb923c; box-shadow: 0 0 0 3px rgba(251, 146, 60, .22); }
.lw-pill.is-severe .lw-dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); }

.lw-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 16px; }
.lw-temp { margin: 0; font: 300 64px/1 'Poppins', 'Inter', system-ui, sans-serif; letter-spacing: -2px; color: #fff; }
.lw-unit { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: 0; vertical-align: top; position: relative; top: 8px; }
.lw-wx { margin: 8px 0 0; font: 600 18px/1.3 'Poppins', 'Inter', system-ui, sans-serif; color: #fff; }
.lw-range { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .9); }
.lw-hero-icon { width: 72px; height: 72px; flex: none; color: var(--glow); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--glow) 55%, transparent)); }

.lw-hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.lw-hours::-webkit-scrollbar { display: none; }
.lw-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.lw-tile.is-lit { background: rgba(255, 255, 255, .22); border: 1.4px solid rgba(255, 255, 255, .6); }
.lw-tile-time { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.lw-tile.is-lit .lw-tile-time { color: #fff; }
.lw-tile-icon { width: 20px; height: 20px; color: #fff; }
.lw-tile-temp { font: 700 15px/1.1 'Poppins', 'Inter', system-ui, sans-serif; color: #fff; }
.lw-tile-rain { display: inline-flex; align-items: center; gap: 2px; min-height: 15px; font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.lw-tile-rain svg { width: 10px; height: 10px; color: #7dd3fc; }

.lw-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.lw-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; }
.lw-stat + .lw-stat { border-left: 1px solid rgba(255, 255, 255, .2); }
.lw-stat svg { width: 16px; height: 16px; color: rgba(255, 255, 255, .8); }
.lw-stat strong { font-size: 15px; color: #fff; }
.lw-stat span { font-size: 11px; color: rgba(255, 255, 255, .9); }

.lw-alerts { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lw-alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #f9fafb; background: rgba(252, 211, 77, .1); border: 1px solid rgba(252, 211, 77, .35); }
.lw-alert svg { width: 18px; height: 18px; flex: none; color: #fcd34d; }
.lw-alert.is-high { background: rgba(251, 146, 60, .12); border-color: rgba(251, 146, 60, .4); }
.lw-alert.is-high svg { color: #fb923c; }
.lw-alert.is-severe { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .45); }
.lw-alert.is-severe svg { color: #f87171; }

.lw-source { margin: 0; font-size: 12.5px; color: #a7afbb; }
.lw-source a { color: inherit; text-decoration: underline; text-decoration-color: rgba(167, 175, 187, .4); text-underline-offset: 3px; }
.lw-source a:hover { color: #f9fafb; }

/* Motion, after SkyMotionLayer: plays for 30 s, then rests on the still sky. */
.lw-motion { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity 1.2s ease; }
.lw-motion span { position: absolute; left: var(--x); top: var(--y); animation-delay: var(--d); }
.is-clearNight .lw-motion span { width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7; animation: lw-twinkle 2.6s ease-in-out infinite; }
.is-clearDay .lw-motion span { left: auto; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--glow) 22%, transparent) 0 6deg, transparent 6deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: lw-turn 40s linear infinite; }
.is-rain .lw-motion span, .is-storm .lw-motion span { top: -20%; width: 1.5px; height: 18px; border-radius: 1px; background: linear-gradient(transparent, rgba(186, 230, 253, .7)); animation: lw-rain 0.9s linear infinite; }
.is-storm .lw-motion { animation: lw-flash 7s ease-out infinite; }
.is-snow .lw-motion span { top: -10%; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: lw-snow 6s linear infinite; }
.is-cloudyDay .lw-motion span, .is-cloudyNight .lw-motion span, .is-fog .lw-motion span { width: 180px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); animation: lw-drift 24s ease-in-out infinite alternate; }

.is-resting .lw-motion span, .is-resting .lw-motion { animation-play-state: paused; }
.is-resting .is-rain .lw-motion, .is-resting .is-storm .lw-motion, .is-resting .is-snow .lw-motion { opacity: 0; }

@keyframes lw-twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.3); } }
@keyframes lw-turn { to { transform: rotate(360deg); } }
@keyframes lw-rain { from { transform: translate(0, 0); } to { transform: translate(-14px, 420px); } }
@keyframes lw-snow { from { transform: translate(0, 0); } to { transform: translate(24px, 460px); } }
@keyframes lw-drift { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
@keyframes lw-flash { 0%, 86%, 100% { background: transparent; } 87% { background: rgba(196, 181, 253, .28); } 89% { background: transparent; } 90% { background: rgba(196, 181, 253, .18); } }

@media (prefers-reduced-motion: reduce) {
  .lw-motion span, .lw-motion { animation: none !important; }
}

@media (max-width: 480px) {
  .lw-sky { padding: 16px; border-radius: 20px; }
  .lw-temp { font-size: 54px; }
  .lw-hero-icon { width: 56px; height: 56px; }
  .lw-pill { padding: 5px 10px; font-size: 12px; }
}

/* The band that carries a live card beside its copy. */
.lw-band .lw-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lw-band .lw-band-copy h2 { margin: 0 0 16px; text-align: left; }
.lw-band .lw-band-copy p { margin: 0 0 16px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--text-secondary, #c9d1cb); }
.lw-band .lw-band-copy ul { margin: 0 0 20px; padding-left: 20px; color: var(--text-secondary, #c9d1cb); line-height: 1.7; }
.lw-band [data-live-weather] { justify-self: end; }
@media (max-width: 900px) {
  .lw-band .lw-band-grid { grid-template-columns: minmax(0, 1fr); }
  .lw-band [data-live-weather] { justify-self: center; }
}
.marketing-home .mkt-weather { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.marketing-home .mkt-weather .lw-band-copy p, .marketing-home .mkt-weather .lw-band-copy ul { color: var(--copy, #c9d1cb); }
.lw-hours { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.lw-hours.is-fit { -webkit-mask-image: none; mask-image: none; }
