/* Reliability on Explore and model pages; brand tokens only, so both shells share it. */
.rel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 20px; }
.rel-note, .rel-quiet { margin: 0; max-width: 60ch; color: var(--brand-muted); font-size: 12px; line-height: 1.55; }
.rel-quiet { font-size: 13px; }
.rel-window { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--brand-wash); }
.rel-window button { min-height: 30px; padding: 5px 11px; border: 0; border-radius: 6px; color: var(--brand-muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; transition: color 120ms ease, background-color 120ms ease; }
.rel-window button[aria-pressed="true"] { color: var(--brand-ink); background: var(--brand-surface); box-shadow: 0 0 0 1px var(--brand-line); }
.rel-window button:focus-visible, .rel-sort:focus-visible, .rel-expand:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }

.rel-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; margin-bottom: 28px; }
.rel-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rel-tile-label { color: var(--brand-muted); font-size: 11px; }
.rel-tile strong { font-size: 26px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rel-tile small { margin-left: 3px; color: var(--brand-muted); font-size: 12px; font-weight: 550; letter-spacing: 0; }

.rel-scroll { max-width: 100%; overflow-x: auto; }
.rel-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.rel-table th, .rel-table td { padding: 10px 12px; border-bottom: 1px solid var(--brand-line); text-align: left; vertical-align: middle; }
.rel-table th:first-child, .rel-table td:first-child { padding-left: 0; }
.rel-table thead th { color: var(--brand-muted); font-size: 11px; font-weight: 550; white-space: nowrap; }
.rel-table tbody th { font-weight: 550; }
.rel-table .rel-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rel-missing { color: var(--brand-line-strong); }
.rel-supplier { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rel-logo { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; overflow: hidden; border-radius: 5px; background: var(--brand-surface); box-shadow: 0 0 0 1px var(--brand-line); color: var(--brand-muted); font-size: 10px; font-weight: 650; }
.rel-logo img { width: 16px; height: 16px; object-fit: contain; }

[data-series] { --series: var(--brand-info); }
[data-series="1"] { --series: var(--brand-pink); }
[data-series="2"] { --series: var(--brand-ink); }
[data-series="3"] { --series: var(--brand-blue); }
[data-series="4"] { --series: var(--brand-accent); }
[data-series="5"] { --series: var(--brand-muted); }
.rel-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 28px 0 8px; padding: 0; list-style: none; color: var(--brand-muted); font-size: 12px; }
.rel-legend li { display: inline-flex; align-items: center; gap: 7px; }
.rel-legend li::before { content: ""; width: 14px; height: 0; border-top: 2px solid var(--series); }
.rel-legend li[data-series="3"]::before, .rel-legend li[data-series="4"]::before, .rel-legend li[data-series="5"]::before { border-top-style: dashed; }
/* auto-fill keeps a lone chart at column width, so its SVG text never scales past a readable size. */
.rel-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px 28px; }
.rel-chart { min-width: 0; margin: 0; padding-top: 18px; border-top: 1px solid var(--brand-line); }
.rel-chart figcaption { color: var(--brand-ink); font-size: 13px; font-weight: 550; }
.rel-chart svg { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.rel-grid { stroke: var(--brand-line); stroke-width: 1; stroke-dasharray: 2 4; opacity: .75; }
.rel-axis { fill: var(--brand-muted); font: 11px var(--font, sans-serif); font-variant-numeric: tabular-nums; }
.rel-series path { fill: none; stroke: var(--series); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.rel-series[data-series="3"] path, .rel-series[data-series="4"] path, .rel-series[data-series="5"] path { stroke-dasharray: 5 3; }
.rel-series circle { fill: var(--brand-surface); stroke: var(--series); stroke-width: 1.75; }
.rel-outcomes { margin: 14px 0 26px; max-width: 80ch; color: var(--brand-muted); font-size: 12px; line-height: 1.55; }
.rel-method { display: flex; gap: 8px; align-items: center; margin-top: 24px; color: var(--brand-muted); font-size: 11px; }
.rel-method dl { display: block; margin: 10px 0; }
.rel-method dt { color: var(--brand-ink); font-weight: 550; margin-top: 10px; }
.rel-method dd { margin: 3px 0 0; line-height: 1.5; }
.rel-method p { margin: 0; }
.rel-operator { margin-top: 28px; font-size: 12px; }
.rel-operator summary { color: var(--brand-muted); cursor: pointer; }
.rel-operator .rel-scroll { margin-top: 8px; }

/* Explore comparison table. */
.rel-explore { min-width: 720px; }
.rel-explore thead th { padding-top: 0; }
.rel-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.rel-sort[aria-pressed="true"] { color: var(--brand-ink); }
.rel-sort span { min-width: 10px; color: var(--brand-accent); }
.rel-model { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.rel-model:hover strong, .rel-model:focus-visible strong { color: var(--brand-accent); }
.rel-model small { display: block; color: var(--brand-muted); font-size: 11px; font-weight: 400; }
.rel-explore tbody tr.rel-supplier-row th, .rel-explore tbody tr.rel-supplier-row td { padding-top: 7px; padding-bottom: 7px; border-bottom-style: dashed; color: var(--brand-muted); font-size: 12px; }
.rel-explore tbody tr.rel-supplier-row th { padding-left: 34px; font-weight: 450; }
.rel-expand { padding: 4px 8px; border:0; border-radius: 6px; color: var(--brand-muted); background: var(--brand-surface); font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
.rel-expand[aria-expanded="true"] { color: var(--brand-ink); border-color: var(--brand-line-strong); }
.rel-status { margin: 0 0 12px; color: var(--brand-muted); font-size: 12px; }

@media (max-width: 640px) {
  .rel-tile strong { font-size: 22px; }
  .rel-method dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .rel-window button { transition: none; }
}

/* Keep definitions close to the number; hover, keyboard focus and tap share it. */
.rel-info { position: relative; display: inline-flex; align-items: center; margin-left: 2px; vertical-align: middle; }
.rel-info-button { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--brand-muted); cursor: help; }
.rel-info-button svg { display: block; width: 12px; height: 12px; }
.rel-info-button:hover, .rel-info-button:focus-visible { color: var(--brand-ink); background: var(--brand-wash); }
.rel-info-button:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
.rel-tooltip { position: fixed; z-index: 20; inset: 100% auto auto 0; width: min(320px, 76vw); max-height: min(420px, 60vh); overflow-y: auto; padding: 14px 16px; border:0; border-radius: 10px; color: var(--brand-muted); background: var(--brand-surface); box-shadow: 0 8px 24px rgb(0 0 0 / .08); font-size: 12px; font-weight: 400; line-height: 1.55; visibility: hidden; opacity: 0; }
.rel-info:hover .rel-tooltip, .rel-info:focus-within .rel-tooltip { visibility: visible; opacity: 1; }
.rel-info[data-dismissed] .rel-tooltip { visibility: hidden; opacity: 0; }
.rel-tooltip strong { display: block; color: var(--brand-ink); font-size: 12px; font-weight: 600; letter-spacing: normal; }
.rel-method .rel-info { margin-left: 0; }
.rel-tile-label, .rel-chart figcaption { display: flex; align-items: center; }
@media (max-width: 640px) { .rel-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } .rel-tile:nth-child(even) .rel-tooltip { left: auto; right: 0; } }
