/* Weather4Site — USA weather desk. Tokens live in tokens.css. */
@import url("tokens.css");

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--sky);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1100px 420px at 88% -8%, rgba(232, 163, 23, 0.38), transparent 62%),
    radial-gradient(820px 460px at -8% -4%, rgba(14, 168, 196, 0.32), transparent 58%),
    linear-gradient(180deg, #9fd8ef 0%, #e7f6fb 26%, #f5fcff 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--info); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: rgba(247, 252, 255, 0.92);
  border-bottom: 0;
  box-shadow: inset 0 -3px 0 var(--navy), inset 0 -6px 0 var(--sun);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.wordmark span { color: var(--sun); }
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
}

.nav-toggle {
  margin-left: auto;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
}
.nav-toggle[aria-expanded="true"] { background: var(--radar); }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--radar); }
.nav-email {
  color: var(--radar) !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
}
.nav-email svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    width: auto;
    gap: 0.15rem 0.55rem;
  }
  .site-nav a {
    border: 0;
    padding: 0.3rem 0;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .nav-email {
    padding: 0.2rem;
    justify-content: center;
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-5);
  container-type: inline-size;
  container-name: main;
}

.hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.95;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--radar);
  margin: 0 0 0.4rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff6d0, var(--sun) 42%, #c47b00 70%);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.28);
  vertical-align: -0.08rem;
}
.lede, .hero .lede { margin: 0 0 1rem; color: var(--ink-2); max-width: none; }
.hero-stage {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(11, 36, 54, 0.78);
  color: #eef7fa;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }
}

.forecast {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  margin: 0 0 2rem;
}
.forecast h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.forecast .hint { color: var(--muted); margin: 0 0 0.9rem; font-size: 0.95rem; }
.forecast-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}
.forecast-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.forecast-form input[type="text"] {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  min-width: 11rem;
  color: var(--ink);
}
.forecast-form button,
.btn {
  background: linear-gradient(180deg, #1577ad, var(--navy));
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.forecast-form button:hover,
.btn:hover { background: var(--radar); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--sky); color: var(--navy); }

.status {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  background: var(--sky);
  color: var(--ink-2);
}
.status[data-kind="error"] {
  background: #fde8e4;
  color: var(--alert);
}
.status[data-kind="ok"] { background: #e6f6ec; color: var(--radar); }
.status a { color: inherit; }

.place-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin: 1rem 0 0.6rem;
}
.place-head h3 { margin: 0; font-size: 1.2rem; }
.source {
  font-size: 0.82rem;
  color: var(--muted);
}

.periods {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 700px) {
  .periods { grid-template-columns: 1fr 1fr; }
}
.period {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
}
.period strong { display: block; color: var(--navy); }
.period .temp {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--radar);
  line-height: 1;
  margin: 0.2rem 0;
}
.period p { margin: 0.25rem 0 0; color: var(--ink-2); }

.alerts { margin-top: 0.9rem; }
.alert {
  border-left: 4px solid var(--alert);
  background: #fde8e4;
  padding: 0.65rem 0.8rem;
  border-radius: 0 8px 8px 0;
  margin: 0.4rem 0;
}
.alert.warn { border-left-color: var(--warn); background: #fff4d6; }

.desk-grid,
.hub-grid,
.link-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .desk-grid, .hub-grid, .link-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hub-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@container main (min-width: 40rem) {
  .hub-grid, .link-grid { grid-template-columns: 1fr 1fr; }
}
@container main (min-width: 60rem) {
  .hub-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card, .hub-card, .link-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 8px 18px rgba(18, 48, 68, 0.05);
}
a.hub-card:hover, a.link-card:hover, a.card:hover {
  border-color: var(--radar);
  transform: translateY(-1px);
}
.hub-card strong, .link-card strong, .card h2, .card h3 {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.3rem;
}
.hub-card span, .link-card span { color: var(--muted); }
.foresight-card {
  position: relative;
  min-height: 12.5rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #f7fbff;
}
.foresight-card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
}
.foresight-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 2.4rem 0.95rem 0.9rem;
  background: linear-gradient(180deg, rgba(8, 22, 38, 0), rgba(8, 22, 38, 0.9));
}
.foresight-card strong { color: #fff; }
.foresight-card .foresight-card-copy span { color: #e7f3fb; }
.foresight-card:hover img { transform: scale(1.04); }
.foresight-card img { transition: transform 0.45s ease; }
.foresight-banner {
  position: relative;
  margin: 0 0 1.15rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(14, 47, 74, 0.2);
}
.foresight-banner img {
  width: 100%;
  height: clamp(14rem, 42vw, 24rem);
  object-fit: cover;
}
.foresight-banner figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6rem 1.2rem 1.15rem;
  background: linear-gradient(180deg, rgba(8, 22, 38, 0), rgba(8, 22, 38, 0.86));
  color: #f7fbff;
}
.foresight-banner .kicker { color: #f6c453; }
.foresight-banner h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
}

.section { margin: 2rem 0; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
}
.section-head p { margin: 0 0 1rem; color: var(--muted); }

.prose { max-width: none; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose ul { padding-left: 1.15rem; }
.prose li { margin: 0.35rem 0; }

.clock-box {
  background: var(--navy);
  color: #e8f6fb;
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.clock-box #worldclock {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.04em;
}
.clock-box select {
  margin-top: 0.8rem;
  background: #12344a;
  border: 1px solid #3d6a82;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  color: #e8f6fb;
}

.legacy-mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
}
.legacy-mark img { width: min(330px, 100%); height: auto; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 1.4rem 0 1.6rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 36rem;
}
.brand-lockup img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex: none;
}
.brand-lockup .wordmark {
  font-size: 2rem;
}
.brand-lockup .wordmark small {
  white-space: normal;
  letter-spacing: 0.08em;
}

.site-footer {
  background:
    linear-gradient(var(--sun), var(--sun)) top / 100% 3px no-repeat,
    linear-gradient(180deg, #0e3f66, #08283f);
  color: #d5eaf1;
  padding: 1.8rem 1.1rem 2.2rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer a { color: #f0c44a; }
.site-footer small, .fine {
  color: #9bb8c6;
  font-size: 0.85rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.crumbs a { color: var(--ink-2); }

.disclosure {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 0.8rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.strip {
  display: none;
  position: relative;
  background: var(--ticker-bg);
  color: var(--ticker-text);
  border: 0;
  border-bottom: 1px solid #3a1210;
  box-shadow: inset 0 2px 0 var(--ticker-bug);
  overflow: hidden;
}
.strip.is-on {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 2.75rem;
}
.strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ticker-bug);
  pointer-events: none;
  z-index: 2;
}
.strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.55;
  z-index: 1;
}
.strip a { color: inherit; }

.ticker-bug {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
    var(--ticker-bug);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 1.15rem;
  min-width: 7.2rem;
}
.ticker-bug-mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.45));
}
.ticker-bug-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-right: 0.35rem;
}
.ticker-bug-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker-bug-copy span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}

.ticker-viewport {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 16px), transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker-scroll var(--ticker-dur, 40s) linear infinite;
  will-change: transform;
}
.strip.is-paused .ticker-track,
.strip:hover .ticker-track,
.strip:focus-within .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.15rem 0 0.85rem;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
}
.ticker-item + .ticker-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--ticker-gold);
  box-shadow: 0 0 8px rgba(240, 211, 106, 0.55);
}
.ticker-glyph {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--ticker-gold);
  flex: none;
}
.ticker-item[data-sev="Extreme"] .ticker-glyph,
.ticker-item[data-sev="Extreme"] .ticker-event {
  color: #ffd166;
}
.ticker-event {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticker-where {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #c9d4e0;
}
.ticker-sep {
  color: rgba(244, 247, 250, 0.35);
  font-weight: 400;
}

.ticker-rail {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.55rem 0 0.65rem;
  background: var(--ticker-bg-2);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #ffb4a8;
}
.ticker-pip {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #ff4d3a;
  box-shadow: 0 0 0 0 rgba(255, 77, 58, 0.7);
  animation: ticker-pip 2.2s ease-out infinite;
}
@keyframes ticker-pip {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 58, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 77, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 58, 0); }
}
.ticker-count {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  letter-spacing: 0.06em;
}
.ticker-count:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ticker-pause {
  background: transparent;
  color: #d7dee6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.28rem 0.5rem;
  min-width: 2.75rem;
  min-height: 2.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-pause:hover,
.ticker-pause[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.strip.is-static .ticker-track {
  animation: none;
  transform: none;
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
  row-gap: 0.1rem;
}
.strip.is-static .ticker-viewport { mask-image: none; }
.strip.is-static .ticker-pause { display: none; }
.strip[data-level="delayed"] .ticker-bug {
  background: var(--steel);
}
.strip[data-level="delayed"] .ticker-item {
  font-weight: 600;
}

@media (max-width: 720px) {
  .ticker-bug { min-width: 0; padding-right: 1rem; }
  .ticker-bug-copy span { display: none; }
  .ticker-live-label { display: none; }
  .ticker-event { font-size: 0.95rem; }
  .ticker-item { font-size: 0.86rem; padding-right: 0.9rem; }
}

.desk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.8rem;
}

.now {
  display: grid;
  gap: 0.8rem;
  margin: 0.8rem 0 1rem;
}
@media (min-width: 720px) {
  .now { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
}
.wx-stage {
  position: relative;
  min-height: 20rem;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 18px 40px rgba(14, 47, 74, 0.22);
}
.wx-stage .wx-photo,
.period.wx-cast > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wx-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.wx-stage[data-kind="rain"] .wx-fx::before,
.wx-stage[data-kind="storm"] .wx-fx::before {
  content: "";
  position: absolute;
  inset: -30% 0;
  background: repeating-linear-gradient(105deg, transparent 0 10px, rgba(255, 255, 255, 0.38) 10px 11px);
  animation: wx-fall 0.65s linear infinite;
}
.wx-stage[data-kind="snow"] .wx-fx::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle, #fff 1.2px, transparent 1.6px);
  background-size: 16px 20px;
  animation: wx-fall 3.2s linear infinite;
}
.wx-stage[data-kind="wind"] .wx-fx::before {
  content: "";
  position: absolute;
  top: 38%;
  bottom: 28%;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.35) 36px 38px);
  animation: wx-wind 0.7s linear infinite;
}
.wx-stage[data-kind="storm"] .wx-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  animation: wx-flash 5s ease-in-out infinite;
}
.wx-stage[data-kind="clear"] .wx-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 62%, rgba(255, 220, 120, 0.28), transparent 42%);
  animation: wx-glow 3.5s ease-in-out infinite;
}
@keyframes wx-fall { to { transform: translateY(24px); } }
@keyframes wx-wind { to { transform: translateX(-38px); } }
@keyframes wx-flash {
  0%, 88%, 100% { background: transparent; }
  90% { background: rgba(255, 255, 255, 0.34); }
  92% { background: transparent; }
}
@keyframes wx-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.wx-nws-badge, .wx-nws-mini {
  position: absolute;
  z-index: 2;
  background: rgba(8, 22, 38, 0.72);
  border-radius: 12px;
}
.wx-nws-badge { top: 0.7rem; right: 0.7rem; padding: 0.3rem; }
.wx-nws-badge img, .wx-nws-mini { width: 72px; height: 72px; display: block; }
.wx-nws-mini { top: 0.55rem; right: 0.55rem; padding: 0.2rem; width: 56px; height: 56px; }
.wx-stage-copy {
  position: relative;
  z-index: 2;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 1.15rem 1rem;
  background: linear-gradient(180deg, rgba(8, 22, 38, 0.02) 18%, rgba(8, 22, 38, 0.86));
}
.wx-stage-temp {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 9vw, 6.4rem);
  line-height: 0.85;
  margin: 0;
  color: #fff;
}
.wx-stage-copy p { margin: 0.25rem 0 0; }
.wx-stage-copy .meta, .wx-stage-copy .source, .wx-stage-note { color: #d5e4ef; }
.wx-stage-note { font-size: 0.78rem; }
.ufo-trump,
.clk-dst h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ufo-trump img,
.clk-dst h2 img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid var(--sun);
  flex: none;
}
.clk-dst {
  margin: 2.75rem 0 0.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.clk-dst h2 {
  flex-wrap: wrap;
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.clk-dst h2 .clk-aside {
  font-family: var(--font-body);
  font-size: 0.58em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
.clk-dst .link-grid { margin-top: 0.15rem; }
.period.wx-cast {
  position: relative;
  min-height: 12rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #102033;
  color: #fff;
}
.period.wx-cast .wx-cast-copy {
  position: relative;
  z-index: 1;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, rgba(8, 22, 38, 0.05), rgba(8, 22, 38, 0.88));
}
.period.wx-cast strong,
.period.wx-cast .temp,
.period.wx-cast p { color: #fff; }
.period.wx-cast .temp { font-size: 2.5rem; }
.obs {
  background: var(--navy);
  color: #e8eef3;
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
}
.obs .temp {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.95;
  color: #fff;
}
.obs .meta { color: #b7c4d0; font-size: var(--step--1); }

.hourly {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}
.hour {
  min-width: 5.6rem;
  min-height: 6.4rem;
  background: var(--white) center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.4rem;
  text-align: center;
  font-size: var(--step--1);
  position: relative;
  overflow: hidden;
}
.hour[data-kind] { border: 0; color: #fff; }
.hour[data-kind]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 38, 0.12), rgba(8, 22, 38, 0.78));
}
.hour span, .hour strong { position: relative; }
.hour strong { display: block; font-size: var(--step-1); color: var(--navy); }
.hour[data-kind] strong, .hour[data-kind] span { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .wx-fx::before, .wx-fx::after { animation: none !important; }
}

.places { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0; }
.places button, .chip {
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-2);
}
.chip.warning { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }
.chip.watch { background: var(--watch-bg); border-color: var(--watch); color: var(--watch); }
.chip.clear { background: var(--clear-bg); border-color: var(--clear); color: var(--clear); }

.wx-map-wrap { margin: 0.4rem 0 1.2rem; }
.wx-us { width: 100%; height: auto; display: block; background: #2a6d8c; border-radius: 16px; overflow: hidden; }
.wx-waters { pointer-events: none; }
.wx-water-name {
  fill: #f4fbff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.wx-us [data-st] {
  fill: #d5e7f2;
  stroke: #f7fcff;
  stroke-width: 1;
  cursor: pointer;
}
.wx-us [data-st].is-watch { fill: #e8a317; }
.wx-us [data-st].is-warning { fill: #c5362b; }
.wx-us [data-st].is-on { stroke: #102033; stroke-width: 2.5; }
.wx-us [data-st]:focus-visible { stroke: #0b7ea8; stroke-width: 3; outline: none; }
.wx-us a:focus { outline: none; }
.wx-us a:focus-visible [data-st] { stroke: #0b7ea8; stroke-width: 3; }
.wx-map-legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; list-style: none; padding: 0; margin: 0.6rem 0; }
.wx-map-legend i {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.35rem;
  vertical-align: -0.1rem;
  background: #d5e7f2;
  border: 1px solid #9bb8c9;
  border-radius: 2px;
}
.wx-map-legend i.is-warning { background: #c5362b; border-color: #8d241d; }
.wx-map-legend i.is-watch { background: #e8a317; border-color: #a87408; }
#wx-map-status { font-weight: 700; min-height: 1.4em; }
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr));
  gap: 0.35rem;
}
.state-grid a {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.45rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
}
.state-grid a.warning { background: var(--warning-bg); border-color: var(--warning); }
.state-grid a.watch { background: var(--watch-bg); border-color: var(--watch); }

.radar-official {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1520;
  margin: 0.85rem 0 0;
}
.radar-official img { width: 100%; height: auto; display: block; }
.radar-official .source {
  margin: 0;
  padding: 0.5rem 0.8rem;
  background: #111;
  color: #c9d4e0;
}

.link-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0.7rem 0 0;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .link-bar { grid-template-columns: repeat(4, 1fr); }
}
.link-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.65rem;
  color: #f4f7fa;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.link-bar a:nth-child(2n) { border-right: 0; }
@media (min-width: 720px) {
  .link-bar a { border-bottom: 0; }
  .link-bar a:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
  .link-bar a:last-child { border-right: 0; }
}
.link-bar a:hover,
.link-bar a:focus-visible {
  background: var(--radar);
  color: #fff;
}
.link-bar svg {
  flex: none;
  color: var(--ticker-gold, var(--sun));
}
.link-bar a:hover svg,
.link-bar a:focus-visible svg { color: #fff; }
.radar-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: none;
  width: 100%;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form {
  display: grid;
  gap: var(--space-2);
  max-width: 32rem;
  margin-top: var(--space-3);
}
.contact-form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
}
.contact-form textarea { min-height: 8rem; }
.form-status { margin: var(--space-2) 0; }
.form-status[data-kind="ok"] { color: var(--radar); }
.form-status[data-kind="error"] { color: var(--alert); }
picture { display: block; }
picture img { width: 100%; height: auto; }
.brand picture { width: 40px; flex: none; }
.brand picture img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.hub-card:hover, a.link-card:hover { transform: none; }
  .ticker-track,
  .ticker-pip {
    animation: none !important;
  }
  .strip.is-on .ticker-track {
    transform: none;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .ticker-pause { display: none; }
}

/* Destination desks. Numbers stay on solid panels; sky tint is only the page wash. */
body[data-sky~="clear"] { background: linear-gradient(180deg, #b7e7c8 0%, #e7f6fb 40%); }
body[data-sky~="cloud"] { background: linear-gradient(180deg, #c5d7e4 0%, #e7f6fb 42%); }
body[data-sky~="rain"] { background: linear-gradient(180deg, #8eb4c9 0%, #d7ebf5 46%); }
body[data-sky~="snow"] { background: linear-gradient(180deg, #d5e9f6 0%, #f5fcff 46%); }
body[data-sky~="fog"] { background: linear-gradient(180deg, #c9d5d2 0%, #e7f3f4 46%); }
body[data-sky~="night"] { background: linear-gradient(180deg, #b7c9dc 0%, #e7f1f8 36%); }
.desk-lead { margin: 0 0 1rem; color: var(--ink-2); }
.wx-toolbar, .wx-units, .wx-pick, .wx-filters, .wx-rules, .wx-add, .wx-meet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin: 0.6rem 0 1rem;
}
.wx-pick label, .wx-filters label, .wx-rules label, .wx-add label, .wx-meet label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: var(--step--1);
  font-weight: 700;
}
.wx-units button, .wx-toolbar button, .wx-tile-tools button, .wx-place button {
  min-height: 44px;
  min-width: 44px;
}
.wx-face {
  background: var(--navy);
  color: #f4f7fa;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.5rem 0 1rem;
}
.wx-digital, .wx-flap {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 0.9;
  margin: 0;
  letter-spacing: 0.04em;
}
.wx-flap span {
  display: inline-block;
  min-width: 0.6em;
  text-align: center;
  background: #101820;
  margin: 0 0.04em;
  border-radius: 4px;
}
.wx-face svg { width: min(280px, 70vw); height: auto; display: block; }
.wx-hh, .wx-mm, .wx-ss { stroke: currentColor; stroke-linecap: round; }
.wx-hh { stroke-width: 3; }
.wx-mm { stroke-width: 2; }
.wx-ss { stroke-width: 1; stroke: var(--ticker-gold); }
.wx-face-meta { color: #c5d0da; margin: 0.6rem 0 0; }
.wx-wall, .wx-split, .wx-board, .wx-count {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 720px) {
  .wx-wall { grid-template-columns: 1fr 1fr; }
  .wx-split { grid-template-columns: 1fr 1fr; }
  .wx-board, .wx-count { grid-template-columns: repeat(4, 1fr); }
}
.wx-tile, .wx-panel, .wx-alert, .wx-hill, .wx-gonogo, .wx-board > div, .wx-count > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
}
.wx-tile.is-on { border-color: var(--navy); }
.wx-tile-time { font-family: var(--font-display); font-size: var(--step-2); margin: 0.2rem 0; }
.wx-count strong, .wx-board strong { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.wx-dl { display: grid; gap: 0.35rem; margin: 0; }
.wx-dl div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.4rem; }
.wx-dl dt { font-weight: 700; }
.wx-dl dd { margin: 0; }
.wx-alert[data-kind="warning"] { border-color: var(--warning); }
.wx-alert[data-kind="watch"] { border-color: var(--watch); }
.wx-note, .wx-diff, .wx-empty {
  background: var(--paper-2);
  border-left: 4px solid var(--navy);
  padding: 0.7rem 0.8rem;
}
.wx-loop img, .wx-tide { width: 100%; height: auto; background: #0e1720; color: #d5fff0; }
.wx-gonogo { background: var(--navy); color: #f4f7fa; }
.wx-kiosk:fullscreen, #wx-clock:fullscreen, #wx-radar-desk:fullscreen, #wx-marine-desk:fullscreen {
  overflow: auto;
  background: var(--paper);
  padding: 1rem;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .wx-flap span { transition: none; }
  .foresight-card img { transition: none; }
  .foresight-card:hover img { transform: none; }
}

/* Weather clock. Scoped so other desks keep their panels. */
#wx-clock-pick {
  background: rgba(247, 252, 255, 0.86);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.9rem 1rem 0.35rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
#wx-clock-pick input,
#wx-clock input[type="text"],
#wx-clock input[type="time"] {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
}
#wx-clock .wx-toolbar { margin: 0.2rem 0 0.4rem; }
#wx-clock .wx-units {
  background: rgba(247, 252, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.3rem;
  box-shadow: var(--shadow);
}
#wx-clock .wx-units button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
}
#wx-clock .wx-units button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
#wx-clock .clk-note {
  color: var(--muted);
  font-size: var(--step--1);
  margin: 0.2rem 0 0.7rem;
}
#wx-clock .wx-face {
  position: relative;
  overflow: hidden;
  background: #071422;
  color: #f7fbff;
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.05rem;
  margin: 0 0 0.85rem;
  box-shadow: 0 22px 48px rgba(7, 20, 34, 0.28), inset 0 0 0 1px rgba(240, 211, 106, 0.38);
}
#wx-clock .wx-face::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 32% 62%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.4px),
    radial-gradient(640px 240px at 80% 120%, rgba(14, 126, 168, 0.35), transparent 62%),
    #071422;
}
#wx-clock .wx-face[data-phase="dawn"]::before {
  background:
    radial-gradient(560px 240px at 0% 100%, rgba(232, 163, 23, 0.9), transparent 70%),
    linear-gradient(185deg, #16324e 0%, #3d2a16 100%);
}
#wx-clock .wx-face[data-phase="day"]::before {
  background:
    radial-gradient(420px 220px at 92% 0%, rgba(232, 163, 23, 0.55), transparent 62%),
    radial-gradient(680px 300px at 10% 110%, rgba(90, 196, 224, 0.4), transparent 68%),
    linear-gradient(180deg, #0e5684, #0b2944);
}
#wx-clock .wx-face[data-phase="dusk"]::before {
  background:
    radial-gradient(560px 260px at 100% 100%, rgba(214, 104, 36, 0.85), transparent 70%),
    linear-gradient(185deg, #1b2744, #3a2012);
}
#wx-clock .wx-face > * { position: relative; z-index: 1; }
#wx-clock .clk-layout {
  display: grid;
  gap: 0.85rem 1.4rem;
  align-items: center;
}
#wx-clock .wx-face[data-face="analog"] .clk-layout { justify-items: center; text-align: center; }
#wx-clock .wx-face[data-face="digital"] .clk-analog,
#wx-clock .wx-face[data-face="flap"] .clk-analog { order: 1; width: 132px; height: 132px; }
#wx-clock .wx-face[data-face="digital"] .clk-read,
#wx-clock .wx-face[data-face="flap"] .clk-read { order: 2; min-width: 0; }
@media (min-width: 800px) {
  #wx-clock .wx-face[data-face="digital"] .clk-layout,
  #wx-clock .wx-face[data-face="flap"] .clk-layout { grid-template-columns: minmax(0, 1fr) auto; }
  #wx-clock .wx-face[data-face="digital"] .clk-analog,
  #wx-clock .wx-face[data-face="flap"] .clk-analog { order: 2; width: 220px; height: 220px; }
  #wx-clock .wx-face[data-face="digital"] .clk-read,
  #wx-clock .wx-face[data-face="flap"] .clk-read { order: 1; }
}
#wx-clock .wx-face[data-face="analog"] .clk-analog { width: min(340px, 78vw); height: auto; }
#wx-clock .clk-kicker {
  margin: 0 0 0.15rem;
  color: #f0d36a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#wx-clock .wx-digital {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.35rem, 12vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: #f7fbff;
  margin: 0;
}
#wx-clock .wx-colon { color: #f0d36a; padding: 0 0.03em; }
#wx-clock .wx-ap {
  font-size: 0.34em;
  letter-spacing: 0.08em;
  margin-left: 0.18em;
  color: #f0d36a;
}
#wx-clock .wx-face-meta,
#wx-clock .wx-utc { color: #d5e4ef; margin: 0.4rem 0 0; }
#wx-clock .wx-utc { font-family: var(--font-mono); font-size: var(--step--1); }
#wx-clock .wx-flap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.22rem;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.55rem, 7.4vw, 5.2rem);
  line-height: 1;
  margin: 0;
}
#wx-clock .wx-flap span {
  min-width: 0.72em;
  padding: 0.06em 0.08em 0.1em;
  text-align: center;
  color: #f7fbff;
  background: linear-gradient(#2a4a6e 0 48%, #0c1c2e 52% 100%);
  border-radius: 0.12em;
  box-shadow: inset 0 1px 0 rgba(240, 211, 106, 0.55), 0 10px 16px rgba(0, 0, 0, 0.28);
  position: relative;
}
#wx-clock .wx-flap span[data-colon] {
  min-width: 0.28em;
  background: transparent;
  box-shadow: none;
  color: #f0d36a;
  padding: 0;
}
#wx-clock .wx-flap .wx-ap {
  font-size: 0.38em;
  align-self: flex-end;
  margin: 0 0 0.2em 0.15em;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
#wx-clock .wx-flap span[data-flap]::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: no-preference) {
  #wx-clock .wx-flap [data-flap].is-flip { animation: clk-flip 0.28s ease; }
}
@keyframes clk-flip {
  from { filter: brightness(1.7); }
  to { filter: none; }
}
#wx-clock .clk-analog .clk-bezel { fill: none; stroke: #e8a317; stroke-width: 4; }
#wx-clock .clk-analog .clk-dial { fill: #f4fbff; }
#wx-clock .clk-analog .clk-tick { stroke: #1c3348; stroke-width: 1.5; stroke-linecap: round; }
#wx-clock .clk-analog .clk-tick.is-hour { stroke-width: 3; }
#wx-clock .clk-analog .clk-tick.is-now { stroke: #e8a317; stroke-width: 3; }
#wx-clock .clk-analog .clk-num {
  fill: #0e3f66;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
#wx-clock .clk-analog .wx-hh,
#wx-clock .clk-analog .wx-mm,
#wx-clock .clk-analog .wx-ss { stroke-linecap: round; }
#wx-clock .clk-analog .wx-hh { stroke: #0e3f66; stroke-width: 5.5; }
#wx-clock .clk-analog .wx-mm { stroke: #1d5f86; stroke-width: 3.4; }
#wx-clock .clk-analog .wx-ss { stroke: #c47b00; stroke-width: 1.7; }
#wx-clock .clk-analog .clk-cap { fill: #e8a317; stroke: #0e3f66; stroke-width: 1.5; }
#wx-clock .wx-face .clk-dial { fill: #071422; }
#wx-clock .wx-face .clk-tick { stroke: rgba(247, 251, 255, 0.78); }
#wx-clock .wx-face .clk-num { fill: #f7fbff; }
#wx-clock .wx-face .wx-hh,
#wx-clock .wx-face .wx-mm { stroke: #f7fbff; }
#wx-clock .wx-face .wx-ss { stroke: #f0d36a; }
#wx-clock .wx-face .clk-cap { fill: #f0d36a; stroke: #071422; }
#wx-clock .wx-count {
  grid-template-columns: 1fr 1fr;
  margin: 0 0 1.15rem;
}
@media (min-width: 720px) {
  #wx-clock .wx-count { grid-template-columns: repeat(4, 1fr); }
}
#wx-clock .wx-count > div {
  background: linear-gradient(180deg, #16486e, #0e3f66);
  color: #f7fbff;
  border: 0;
  border-top: 3px solid var(--sun);
  box-shadow: var(--shadow);
}
#wx-clock .wx-count span {
  color: #f0d36a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#wx-clock .wx-count strong { color: #fff; font-size: clamp(1.35rem, 2vw, 1.8rem); }
#wx-clock .clk-wall-head { margin: 0.2rem 0 0.7rem; }
#wx-clock .clk-wall-head h2,
#wx-clock .wx-panel h2,
#wx-clock .wx-panel h3 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.3rem;
}
#wx-clock .clk-wall-head h2,
#wx-clock .wx-panel h2 { font-size: var(--step-2); line-height: 0.95; }
#wx-clock .wx-panel h3 { font-size: var(--step-1); }
#wx-clock .clk-wall-head .meta { margin: 0; }
@media (min-width: 1100px) {
  #wx-clock .wx-wall { grid-template-columns: 1fr 1fr 1fr; }
}
#wx-clock .wx-tile {
  border-top: 3px solid var(--sun);
  box-shadow: var(--shadow);
  cursor: grab;
}
#wx-clock .wx-tile:active { cursor: grabbing; }
#wx-clock .wx-tile.is-on {
  border-color: var(--sun);
  box-shadow: 0 0 0 2px var(--sun), 0 16px 32px rgba(14, 40, 70, 0.16);
}
#wx-clock .wx-tile[data-phase="day"] {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(125, 206, 230, 0.45), transparent 56%),
    #f7fcff;
}
#wx-clock .wx-tile[data-phase="dawn"] {
  background: linear-gradient(180deg, #fff1d2 0%, #f7fcff 52%);
}
#wx-clock .wx-tile[data-phase="dusk"] {
  background: linear-gradient(180deg, #ffd7b0 0%, #f7fcff 56%);
}
#wx-clock .wx-tile[data-phase="night"] {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(232, 163, 23, 0.2), transparent 52%),
    radial-gradient(120% 90% at 0% 100%, #163a5c, #071422 72%);
  color: #f7fbff;
  border-color: rgba(240, 211, 106, 0.35);
}
#wx-clock .wx-tile-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}
#wx-clock .wx-tile .clk-analog { width: 96px; height: 96px; }
#wx-clock .wx-tile[data-phase="night"] .clk-dial { fill: #071422; }
#wx-clock .wx-tile[data-phase="night"] .clk-tick { stroke: rgba(247, 251, 255, 0.8); }
#wx-clock .wx-tile[data-phase="night"] .wx-hh,
#wx-clock .wx-tile[data-phase="night"] .wx-mm { stroke: #f7fbff; }
#wx-clock .wx-tile[data-phase="night"] .wx-ss { stroke: #f0d36a; }
#wx-clock .wx-tile[data-phase="night"] .clk-cap { fill: #f0d36a; stroke: #071422; }
#wx-clock .wx-tile header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}
#wx-clock .wx-tile header strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}
#wx-clock .clk-tz {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(14, 63, 102, 0.08);
  white-space: nowrap;
}
#wx-clock .wx-tile[data-phase="night"] .clk-tz {
  background: rgba(240, 211, 106, 0.16);
  color: #f6e7b4;
}
#wx-clock .clk-zone {
  margin: 0.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
#wx-clock .wx-tile-time {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 0.95;
  color: var(--navy);
}
#wx-clock .wx-tile[data-phase="night"] .wx-tile-time { color: #f7fbff; }
#wx-clock .wx-tile[data-phase="night"] .clk-zone,
#wx-clock .wx-tile[data-phase="night"] .wx-tile-sun,
#wx-clock .wx-tile[data-phase="night"] .meta { color: #d5e4ef; }
#wx-clock .wx-tile p { margin: 0.15rem 0; }
#wx-clock .wx-sky {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--clear-bg);
  color: var(--navy);
  font-size: var(--step--1);
  font-weight: 700;
}
#wx-clock .wx-tile[data-phase="night"] .wx-sky {
  background: rgba(240, 211, 106, 0.16);
  color: #f6e7b4;
}
#wx-clock .clk-day { margin-top: 0.45rem; }
#wx-clock .clk-day-track {
  position: relative;
  height: 6px;
  margin: 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a3358, #f0d36a 16%, #7fd4ef 50%, #f0d36a 84%, #1a3358);
}
#wx-clock .clk-day-pip {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0e3f66;
  transform: translate(-50%, -50%);
}
#wx-clock .clk-day-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
#wx-clock .wx-tile[data-phase="night"] .clk-day-ends { color: #d5e4ef; }
#wx-clock .wx-tile-sun { font-size: var(--step--1); color: var(--ink-2); }
#wx-clock .wx-tile-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
}
#wx-clock .wx-tile-tools button {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}
#wx-clock .wx-tile[data-phase="night"] .wx-tile-tools button {
  color: #f7fbff;
  border-color: rgba(247, 251, 255, 0.45);
}
#wx-clock .wx-tile.is-on .wx-tile-tools button[data-use] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
#wx-clock .wx-tile[data-phase="night"].is-on .wx-tile-tools button[data-use] {
  background: #f0d36a;
  color: #102033;
  border-color: #f0d36a;
}
#wx-clock .wx-panel {
  border-top: 3px solid var(--sun);
  box-shadow: var(--shadow);
  margin-top: 0.4rem;
}
#wx-clock .clk-skygrid {
  display: grid;
  gap: 0.8rem;
  align-items: center;
  margin: 0.4rem 0 0.8rem;
}
@media (min-width: 800px) {
  #wx-clock .clk-skygrid { grid-template-columns: 1.25fr 0.85fr; }
}
#wx-clock .clk-sunfig svg { width: 100%; max-width: 440px; height: auto; display: block; }
#wx-clock .clk-arc { fill: none; stroke: #7eabc0; stroke-width: 3; }
#wx-clock .clk-arc-gold { fill: none; stroke: #e8a317; stroke-width: 7; stroke-linecap: round; }
#wx-clock .clk-horizon { stroke: #1c3348; stroke-width: 2; }
#wx-clock .clk-sun-dot { fill: #e8a317; stroke: #fff6d0; stroke-width: 3; }
#wx-clock .clk-sun-dot.is-down { fill: #7eabc0; }
#wx-clock .clk-sunfig text {
  fill: #102033;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 700;
}
#wx-clock .clk-moonfig { display: flex; gap: 0.85rem; align-items: center; }
#wx-clock .clk-moon { width: 96px; height: 96px; flex: none; }
#wx-clock .clk-moonfig p { margin: 0.2rem 0; }
@media (max-width: 560px) {
  #wx-clock .wx-dl div { grid-template-columns: 1fr; gap: 0; }
}
#wx-clock .clk-tools {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}
@media (min-width: 800px) {
  #wx-clock .clk-tools { grid-template-columns: 1fr 1fr; align-items: start; }
}
#wx-clock .wx-meet,
#wx-clock .wx-add {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin: 0;
  box-shadow: var(--shadow);
}
#wx-clock:fullscreen {
  background:
    radial-gradient(900px 380px at 100% -10%, rgba(232, 163, 23, 0.28), transparent 55%),
    radial-gradient(700px 420px at -10% 0%, rgba(14, 168, 196, 0.22), transparent 50%),
    #071422;
  color: #f7fbff;
}
#wx-clock:fullscreen .clk-note,
#wx-clock:fullscreen .source,
#wx-clock:fullscreen .clk-wall-head .meta { color: #d5e4ef; }
#wx-clock:fullscreen .clk-wall-head h2,
#wx-clock:fullscreen .wx-panel h2,
#wx-clock:fullscreen .wx-panel h3 { color: #f7fbff; }
@media (prefers-reduced-motion: reduce) {
  #wx-clock .wx-flap [data-flap].is-flip { animation: none; }
}
