/* Ride Reliability hub. Builds on the park-page / almanac-table chrome in
   site.css; only the reliability-specific pieces live here. */

.rel-page .rel-h2 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: var(--space-2xl) 0 var(--space-sm);
}

/* ---- live "down right now" strip ---- */
.rel-live {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--paper-2);
    border: 1px solid var(--hair);
    border-radius: 14px;
}
.rel-live .rel-h2 { margin-top: 0; }
.rel-live-status { color: var(--muted); font-family: var(--label); margin: 0; }
.rel-live[data-loading] .rel-live-status { opacity: 0.7; }

.rel-down-list {
    list-style: none;
    margin: var(--space-sm) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}
.rel-down-item a {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: var(--space-xs) var(--space-sm);
    background: oklch(60% 0.19 8 / 0.16);
    border: 1px solid oklch(60% 0.19 8 / 0.45);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
}
.rel-down-item a:hover { background: oklch(60% 0.19 8 / 0.26); }
.rel-down-ride { font-weight: 700; font-size: 14px; }
.rel-down-park { font-family: var(--label); font-size: 12px; color: var(--muted); }

/* ---- park filter chips ---- */
.rel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: 0 0 var(--space-md);
}
.rel-chip {
    font-family: var(--label);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--paper-2);
    border: 1px solid var(--hair);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.rel-chip:hover { color: var(--ink); border-color: var(--rule); }
.rel-chip.is-active {
    color: var(--paper);
    background: var(--gold);
    border-color: var(--gold);
}

/* ---- ranking table ---- */
.rel-table th:nth-child(2), .rel-table td:nth-child(2),
.rel-table th:nth-child(3), .rel-table td:nth-child(3) { text-align: left; }
.rel-table .rel-ride a { color: var(--blue); text-decoration: none; }
.rel-table .rel-ride a:hover { text-decoration: underline; }
.rel-avail { font-weight: 700; color: var(--ink); white-space: nowrap; }
.rel-outage { color: var(--muted); white-space: nowrap; }

/* The .rel-grade badge itself lives in site.css (shared with the ride page). */
.rel-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin: var(--space-sm) 0 0;
    font-size: 12px;
}

/* ---- share + faq ---- */
.rel-share {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-2xl) 0 0;
}
.rel-share-label { font-family: var(--label); font-weight: 700; color: var(--muted); }
.rel-share-btn {
    font-family: var(--label);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 6px 16px;
    text-decoration: none;
}
.rel-share-btn:hover { border-color: var(--gold); color: var(--gold); }

.rel-faq dl { margin: 0; }
.rel-faq dt { font-weight: 700; color: var(--ink); margin-top: var(--space-md); }
.rel-faq dd { margin: var(--space-2xs) 0 0; color: var(--ink-soft); }
