/* css/sunset.css — Sunset readout (3 mount points: main view, panel header, shared view per Phase 13). Imported into the components layer. */

.sunset-readout {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
}

.sunset-readout__glyph {
  flex-shrink: 0;
}

.sunset-readout__digits {
  font-family: var(--font-mono);
}

.sunset-readout__enable {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  transition: background var(--transition),
              border-color var(--transition),
              color var(--transition);
}

.sunset-readout__enable:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.sunset-readout__enable[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Cross-domain compounds (mount points): rendered position cascades from clock-zone / timetable-panel — kept here per R-PATTERNS-CW2-6 BEM owner = sunset */
.clock-zone > .sunset-readout {
  align-self: center;
  margin-bottom: var(--space-2);
}

.timetable-panel__header .sunset-readout {
  margin-top: 0;
  margin-left: auto;
  margin-right: var(--space-3);
}

.timetable-panel--readonly .sunset-readout {
  display: flex;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  margin-top: 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* F3 (audit 260515-003) — main-view weather link (pill mirror of body.stage-mode .rail__rain).
   Co-located with sunset readout in this module because both are coord-derived display widgets
   rendered into clock-zone (same parent positioning concern as the sunset compounds above).
   position:relative + z-index:1 lifts the link above the clock-display digits whose massive
   font-size overlaps the link's bounding rect in flex sibling order (regression fix). */
.weather-link {
  display: inline-block;
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  padding: 2px 10px;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  margin: 4px auto;
}
.weather-link:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Phase 26 (WTHR-01) — live weather pill inner spans. Set by js/weather.js pillHtml().
   Co-located with .weather-link above because weather.js writes BEM elements within the
   same outer .weather-link block — per the BEM-owner convention documented at the top of
   this file. Tabular-nums on temp keeps the digits monospaced as the value updates. */
.weather-link__icon {
  display: inline-block;
  margin-right: 2px;
}
.weather-link__temp {
  font-variant-numeric: tabular-nums;
}
.weather-link__label {
  margin-left: 2px;
}
.weather-link__precip {
  margin-left: 2px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
