/* Events in the sky and the calendar feeds (ADR 0050): /events, /events/2026/geminids, /us/seattle/events. */

.ev-eyebrow { color: var(--accent-moon); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 4px; }
.ev-lede { font-size: 1.1rem; max-width: 70ch; margin: 8px 0 0; }
.ev-years { display: flex; gap: 18px; margin-top: 10px; }
.ev-years a, .ev-related a { color: var(--accent-moon); text-decoration: none; }
.ev-years a:hover, .ev-related a:hover { text-decoration: underline; }
.ev-years .ev-next { margin-left: auto; }

.ev-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.ev-kinds a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.88rem; }
.ev-kinds a[aria-current="page"] { background: var(--accent-moon); border-color: var(--accent-moon); color: #fff; }

.ev-month { margin-top: 24px; }
.ev-month h2 { font-size: 1.05rem; margin: 0 0 8px; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ev-item { display: grid; grid-template-columns: 7.5rem 1fr; gap: 14px; padding: 12px 16px; background: var(--surface); }
.ev-item time { display: grid; align-content: start; font-variant-numeric: tabular-nums; }
.ev-day { font-weight: 650; }
.ev-time { color: var(--muted); font-size: 0.88rem; }
.ev-title { font-weight: 650; color: var(--text); text-decoration: none; }
.ev-title:hover { text-decoration: underline; }
.ev-item p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.ev-item.is-past { opacity: 0.6; }
.ev-item { border-left: 4px solid transparent; }
.ev-meteorShower { border-left-color: var(--accent-twilight); }
.ev-conjunction, .ev-opposition, .ev-elongation { border-left-color: var(--accent-sun); }
.ev-fullMoon, .ev-newMoon { border-left-color: var(--accent-moon); }
.ev-eclipse { border-left-color: #b0402b; }
.ev-season, .ev-earthOrbit { border-left-color: #1a7f4b; }
.ev-holiday { border-left-color: var(--muted); }
.ev-none { color: var(--muted); }

.ev-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 18px 0; }
.ev-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.ev-stat.ev-wide { grid-column: span 2; }
@media (max-width: 640px) { .ev-stat.ev-wide { grid-column: auto; } }
.ev-stat h2 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.ev-stat strong { font-size: 1.25rem; letter-spacing: -0.01em; }
.ev-stat p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.ev-night h2, .ev-explain h2, .ev-related h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.ev-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ev-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.ev-table th, .ev-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ev-table thead th { color: var(--muted); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.ev-table tbody tr:last-child th, .ev-table tbody tr:last-child td { border-bottom: 0; }
.ev-table tr.is-best th, .ev-table tr.is-best td { background: var(--accent-sun-soft); }
.ev-note, .ev-explain p { color: var(--muted); font-size: 0.92rem; max-width: 80ch; }
.ev-related ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* The calendar feed box. */
.cal-feed { margin: 18px 0; padding: 16px 18px; }
.cal-feed h2 { font-size: 1rem; margin: 0 0 10px; }
.cal-feed fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; }
.cal-feed label { display: inline-flex; gap: 6px; align-items: center; }
.cal-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.cal-btn { display: inline-block; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--accent-moon-soft); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.cal-btn[aria-disabled] { opacity: 0.5; pointer-events: none; }
.cal-note { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
