/* home-hero.css — slim "live near you" status line on the marketing landing.
   Self-contained + scoped to .rk-now so it never clashes with the page CSS.
   Replaces the old two-tone (teal) card: one on-brand line under the hero CTAs. */

.rk-now {
  --rk-dot: #E8581F;          /* live indicator / tier accent (brand orange) */
  display: block;
  margin: 20px 0 2px;
  min-height: 38px;           /* reserve space so the async render doesn't shift layout */
}

/* Tier accent: brand orange for live / all-good, escalating for active states. */
.rk-now.is-clear     { --rk-dot: #E8581F; }
.rk-now.is-fallback  { --rk-dot: #E8581F; }
.rk-now.is-watch     { --rk-dot: #F2B636; }
.rk-now.is-action    { --rk-dot: #E8581F; }
.rk-now.is-emergency { --rk-dot: #C8102E; }

.rk-nowline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #161A22;
  background: color-mix(in srgb, var(--rk-dot) 7%, transparent);
  border: 1px solid color-mix(in srgb, #161A22 12%, transparent);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.rk-nowline-link:hover {
  background: color-mix(in srgb, var(--rk-dot) 13%, transparent);
  border-color: color-mix(in srgb, var(--rk-dot) 45%, transparent);
  transform: translateX(2px);
}

.rk-nowline-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rk-dot);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--rk-dot) 55%, transparent);
  animation: rk-now-pulse 2.4s ease-out infinite;
}
@keyframes rk-now-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rk-dot) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.rk-nowline-label {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rk-dot);
}

.rk-nowline-text {
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
  color: #161A22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-nowline-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke: #161A22;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .rk-nowline-dot { animation: none; }
}

/* Hidden entirely when we have no resolved location (no redundant CTA). */
.rk-now.is-empty { display: none; }

/* Slim daily-email signup, shown only once we know the user's area. */
.rk-nowmail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 0;
}
.rk-nowmail-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6B6359;
}
.rk-nowmail-field {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, #161A22 14%, transparent);
  border-radius: 999px;
  padding: 2px 2px 2px 13px;
  transition: border-color 0.16s ease;
}
.rk-nowmail-field:focus-within { border-color: #E8581F; }
.rk-nowmail-input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  color: #161A22;
  padding: 7px 4px;
  width: 172px;
  max-width: 46vw;
}
.rk-nowmail-input::placeholder { color: #A39888; }
.rk-nowmail-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #E8581F;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease;
}
.rk-nowmail-btn:hover { background: #C84410; }
.rk-nowmail-btn svg { width: 15px; height: 15px; stroke: currentColor; }
.rk-nowmail-msg {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #4A6B3A;
}
.rk-nowmail-msg.is-warning { color: #C8102E; }
