/* Retention curves pages (site/bmpfast/retention-curves/) */
.band .crumb a, .band .tagline a { color: inherit; text-decoration: underline; }
.rc-zones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.rc-zones a { display: inline-block; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none;
              background: var(--surface); color: var(--ink); font-weight: 700; }
.rc-zones a:hover { border-color: var(--c); }
.rc-zones a[aria-current="page"] { background: var(--c); border-color: var(--c); color: #fff; }
.rc-how { background: color-mix(in srgb, var(--c) 8%, var(--surface)); border-left: 4px solid var(--c); padding: 12px 16px; border-radius: 4px;
          max-width: 80ch; margin: 0 0 18px; }
.rc-how p { margin: 0 0 6px; } .rc-how ol { margin: 4px 0 0; padding-left: 1.3em; } .rc-how li { margin: 3px 0; }
.rc-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; align-items: start;
               background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; margin: 0 0 12px; }
.rc-controls fieldset, .rc-depthbar { border: 0; margin: 0; padding: 0; min-width: 0; }
.rc-controls legend, .rc-depthbar legend { font-weight: 800; padding: 0; margin-bottom: 6px; }
.rc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-row input[type=range] { flex: 1 1 140px; min-width: 120px; accent-color: var(--c); }
.rc-row output { font-weight: 800; font-size: 1.15rem; min-width: 4.5ch; }
.rc-controls button { font: inherit; padding: 5px 12px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.rc-controls button:hover:not(:disabled) { border-color: var(--c); }
.rc-controls button:disabled { opacity: .45; cursor: default; }
.rc-controls label.rc-field { display: flex; flex-direction: column; gap: 3px; font-size: .92rem; }
.rc-controls input[type=number] { font: inherit; width: 8ch; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 6px;
                                  background: var(--surface); color: var(--ink); }
.rc-hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.rc-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .95rem; }
.rc-check input { margin-top: 4px; accent-color: var(--c); }
#rc-plot { width: 100%; height: min(64vh, 620px); min-height: 380px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.rc-result { min-height: 3em; font-size: 1.02rem; max-width: 80ch; margin: 4px 0 6px; }
.rc-result.rc-error { color: #b3261e; font-weight: 700; }
.rc-plot-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.rc-plot-foot button { font: inherit; font-size: .9rem; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.rc-table-wrap { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--rule); border-radius: 8px; }
.rc-table { border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; width: 100%; }
.rc-table caption { text-align: left; padding: 8px 10px; font-weight: 700; caption-side: top; }
.rc-table th, .rc-table td { border: 1px solid var(--rule); padding: 4px 6px; text-align: right; white-space: nowrap; }
.rc-table thead th, .rc-table tbody th { background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.rc-note { max-width: 80ch; }
.rc-src { background: #E8F1FB; border-left: 4px solid #1565C0; padding: 12px 16px; margin: 16px 0; border-radius: 4px; max-width: 80ch; }
.rc-fail { background: #fdecea; border-left: 4px solid #b3261e; padding: 12px 16px; border-radius: 4px; color: #16202e; }
.rc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; margin: 12px 0 24px; }
.rc-cards a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
              color: var(--ink); text-decoration: none; }
.rc-cards a:hover { border-color: var(--c); }
.rc-cards strong { display: block; font-size: 1.1rem; color: var(--link); margin-bottom: 4px; }
.rc-map { max-width: 100%; height: auto; border-radius: 6px; background: #fff; }
.rc-prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; font-weight: 700; }
:root[data-theme="dark"] .rc-src { background: #12263d; border-color: #64a8f0; }
:root[data-theme="dark"] .rc-result.rc-error { color: #ff8a80; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rc-src { background: #12263d; border-color: #64a8f0; }
  :root:not([data-theme="light"]) .rc-result.rc-error { color: #ff8a80; }
}
@media (max-width: 600px) { #rc-plot { height: 420px; min-height: 0; } }
#rc-clear { align-self: flex-end; }
.rc-controls input[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.rc-bydepth { font-size: .9rem; max-width: 80ch; margin: 0 0 10px; line-height: 1.7; }
.rc-bydepth mark { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--ink); font-weight: 800; padding: 1px 4px; border-radius: 4px; }
.rc-table td.rc-near, .rc-table th.rc-near { background: color-mix(in srgb, #e8501c 22%, var(--surface)); font-weight: 800; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#rc-copied { font-weight: 700; color: var(--ink); }
.rc-controls button, .rc-plot-foot button { min-height: 36px; }
.rc-depthbar { background: var(--surface); border: 1px solid var(--rule); border-bottom: 0; border-radius: 10px 10px 0 0;
               padding: 10px 16px 8px; margin: 4px 0 0; }
.rc-depthbar legend { float: left; width: 100%; margin-bottom: 4px; }
.rc-depthbar .rc-row { clear: both; }
.rc-depthbar .rc-check { margin: 0 0 0 10px; }
.rc-depthbar .rc-hint { margin-top: 4px; }
.rc-depthbar .rc-bydepth { margin: 6px 0 0; }
.rc-depthbar button { font: inherit; padding: 5px 12px; min-height: 36px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.rc-depthbar button:hover:not(:disabled) { border-color: var(--c); }
.rc-depthbar button:disabled { opacity: .45; cursor: default; }
.rc-depthbar + #rc-plot { border-top-left-radius: 0; border-top-right-radius: 0; }
