/* AstroLAB — home page "Right now" tiles (home-now.js). */
.now-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  max-width: 900px; margin: 30px auto 0; text-align: left;
}
.now-tile {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 96px;
  padding: 14px 16px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, background .15s;
}
.now-tile:hover, .now-tile:focus-visible { transform: translateY(-2px); background: var(--panel-2); border-color: var(--border-2); }
.now-k { font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.now-v { font-size: 18px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.now-s { font-size: 12.5px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.now-count { font-variant-numeric: tabular-nums; }
.now-off { color: var(--faint); font-weight: 600; }

/* A tile glows when its reading is worth acting on: launch inside 24 h, a storm, a clear night. */
.now-tile[data-tone="hot"]  { border-color: rgba(255,96,48,.55); box-shadow: inset 0 0 0 1px rgba(255,96,48,.18); }
.now-tile[data-tone="hot"] .now-v { color: #ffb08f; }
.now-tile[data-tone="warm"] { border-color: rgba(251,146,60,.40); }
.now-tile[data-tone="good"] { border-color: rgba(52,211,153,.45); }
.now-tile[data-tone="good"] .now-v { color: #a7f3d0; }

.now-skel {
  display: inline-block; width: 60%; height: 1em; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%;
  animation: now-shimmer 1.4s linear infinite;
}
@keyframes now-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .now-skel { animation: none; } .now-tile { transition: none; } }

@media (max-width: 720px) {
  .now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .now-tile { padding: 12px; min-height: 92px; }
  .now-v { font-size: 16px; }
  .now-s { font-size: 12px; }
}

/* Calendar "Show" picker (home.js wirePicker): a native <details> as a small menu. */
#calPick { position: relative; }
.cal-pick summary {
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent-2);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel); min-height: 32px;
  display: inline-flex; align-items: center;
}
.cal-pick summary::-webkit-details-marker { display: none; }
.cal-pick[open] summary { background: var(--panel-2); }
.cal-pick-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--bg-2); box-shadow: var(--shadow);
}
.cal-pick-menu label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cal-pick-menu label:hover { background: var(--panel-2); }
.cal-pick-menu input { width: 18px; height: 18px; accent-color: var(--accent); }
.cal-pick-row { display: flex; gap: 6px; padding: 6px 4px 0; border-top: 1px solid var(--border); margin-top: 4px; }
.cal-pick-row button { flex: 1; min-height: 36px; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }

/* The comet tile spans the whole row under the six (home-now.js "wide"). */
.now-tile.wide { grid-column: 1 / -1; min-height: 0; }

/* Calendar days with events open a pop-up listing them (home.js openDay). */
.cal-cell.has-evts { cursor: pointer; transition: border-color .15s, background .15s; }
.cal-cell.has-evts:hover, .cal-cell.has-evts:focus-visible { border-color: var(--accent-2); background: rgba(139,92,246,.10); }
