/* Daily freeze reports — /reports/ and /reports/YYYY-MM-DD
 * ============================================================================================
 * Loads AFTER seo.css (the `after_css` block), so it extends the system rather than fighting it.
 * Same four accents, same jobs: rose = frozen, cyan = detection (our warning), lime = the one
 * action, cream = type. Nothing here is decoration — the dots are freezes, the cyan lines are
 * warnings we actually gave, the bars are counted days.
 *
 * SVG is styled by CLASS. Presentation attributes cannot read a CSS variable reliably, and a
 * style="" attribute is dropped by the CSP.
 */

/* ── head ───────────────────────────────────────────────────────────────────────────────── */

.r-head { margin: 0 0 30px; }
.s-page .r-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 14px;
}
.r-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none;
  box-shadow: 0 0 0 0 rgba(34, 227, 208, .55);
  animation: r-ping 2.4s var(--ease) infinite;
}
@keyframes r-ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 227, 208, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(34, 227, 208, 0); }
}
.r-title { font-size: clamp(44px, 11vw, 104px); margin-bottom: 10px; }
.s-page .r-headline {
  font-size: clamp(19px, 3.4vw, 28px); font-weight: 600; letter-spacing: -.025em;
  line-height: 1.15; margin: 0; max-width: none;
}
.r-headline-amt { color: var(--rose); }

.s-page .r-subscribe { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.r-sub-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--cream);
  transition: border-color .15s, color .15s;
}
.r-sub-link::before { content: ""; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }
.r-sub-link:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── KPI band ───────────────────────────────────────────────────────────────────────────── */
/* A hard-edged strip of four cells. The number is the largest thing in each and carries its
   colour; the line under it says what the number covers, so it is never quoted bare. */

.r-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0 0 34px; border: 1px solid var(--line);
}
.r-kpi {
  position: relative; padding: 20px 20px 18px; border-right: 1px solid var(--line);
  animation: s-up .5s var(--ease) backwards;
}
.r-kpi:nth-child(2) { animation-delay: 60ms; }
.r-kpi:nth-child(3) { animation-delay: 120ms; }
.r-kpi:nth-child(4) { animation-delay: 180ms; }
.r-kpi:last-child { border-right: 0; }
.r-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--line-2);
}
.r-kpi-rose::before { background: var(--rose); }
.r-kpi-cyan::before { background: var(--cyan); }
.r-kpi dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim);
}
.r-kpi dd {
  margin: 8px 0 6px; font-family: var(--mono); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.04em; line-height: 1;
}
.r-kpi-rose dd { color: var(--rose); }
.r-kpi-cyan dd { color: var(--cyan); }
.s-page .r-kpi-sub { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--dim); }

@media (max-width: 640px) {
  .r-kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .r-kpi:last-child { border-bottom: 0; }
}

/* ── summary prose ──────────────────────────────────────────────────────────────────────── */

.r-summary { max-width: 72ch; margin: 0 0 44px; padding-left: 18px; border-left: 2px solid var(--line-2); }
.s-page .r-summary p { font-size: 17px; line-height: 1.6; margin: 0 0 12px; max-width: none; }
.s-page .r-summary p:first-child { color: var(--cream); }
.s-page .r-summary p + p { color: #B9C2CB; }
.s-page .r-summary p:last-child { margin-bottom: 0; }

.r-block { margin-bottom: 46px; }

/* ── timeline ───────────────────────────────────────────────────────────────────────────── */

.r-timeline, .r-chart { margin: 0; padding: 18px 16px 12px; border: 1px solid var(--line); background: var(--bg-2); }
.r-timeline svg, .r-chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.r-tl-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.r-tl-axis { stroke: var(--line-2); stroke-width: 1.5; }
.r-tl-label { fill: var(--dim); font-family: var(--mono); font-size: 11px; }

.r-tl-freeze { fill: var(--rose); stroke: var(--bg-2); stroke-width: 2; }
.r-tl-freeze:hover { stroke: var(--cream); }
.r-tl-ring { fill: none; stroke: var(--cyan); stroke-width: 1.8; }
.r-tl-alert { fill: var(--bg-2); stroke: var(--cyan); stroke-width: 1.6; }
.r-tl-arrow { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* The warning line draws itself from the moment we flagged it to the freeze, once. That motion
   IS the claim: we saw it before it happened. pathLength="1" lets one dash cover any length. */
.r-tl-warn {
  stroke: var(--cyan); stroke-width: 1.6; stroke-opacity: .75;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: r-draw 1.1s var(--ease) .25s forwards;
}
@keyframes r-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .r-tl-warn { stroke-dashoffset: 0; } }

.r-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
}
.r-key { display: inline-flex; align-items: center; gap: 8px; }
.r-key::before { content: ""; flex: none; }
.r-key-freeze::before { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.r-key-warn::before { width: 22px; height: 2px; background: var(--cyan); }
.r-key-ring::before { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px var(--cyan); }
.r-key-utc { margin-left: auto; }

/* ── the wallet table ───────────────────────────────────────────────────────────────────── */

.r-table td.r-addr { color: var(--cream); word-break: break-all; }
.r-table td.r-addr a { color: var(--cream); }
.r-addr-released, .r-table td.r-addr-released a { color: var(--cyan) !important; }
.r-table td.r-amt { color: var(--cream); font-weight: 700; white-space: nowrap; }
.r-amt-note { font-weight: 400; color: var(--dim); }
.r-unread { font-weight: 400; color: var(--dim); font-style: italic; }
.r-lead {
  display: inline-block; padding: 3px 8px; white-space: nowrap;
  border: 1px solid rgba(34, 227, 208, .45); color: var(--cyan); font-size: 12px;
}
.r-none { color: #4A5664; }
.r-later {
  display: inline-block; margin-left: 8px; padding: 2px 7px; vertical-align: 1px;
  border: 1px solid var(--line-2); color: var(--dim); font-size: 11px; white-space: nowrap;
}
.r-table tbody tr { transition: background .12s; }
.r-table tbody tr:hover { background: rgba(255, 255, 255, .02); }

@media (max-width: 640px) {
  .r-table td.r-addr { font-size: 12.5px; }
  .r-lead { margin-top: 6px; }
  .r-table td:last-child::before { content: ""; display: block; }
}

/* ── pager ──────────────────────────────────────────────────────────────────────────────── */

.r-pager {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch;
  margin: 10px 0 0; padding-top: 22px; border-top: 2px solid var(--line);
}
.r-pager-link, .r-pager-all {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 60px; padding: 10px 16px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--cream);
  transition: border-color .15s;
}
.r-pager-link span { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.r-pager-next { text-align: right; }
.r-pager-all { align-items: center; font-family: var(--sans); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.r-pager a:hover { border-color: var(--cyan); }
@media (max-width: 640px) {
  .r-pager { grid-template-columns: 1fr 1fr; }
  .r-pager-all { grid-column: 1 / -1; grid-row: 2; }
}

/* ── index: chart ───────────────────────────────────────────────────────────────────────── */

.r-bar { fill: var(--rose); opacity: .82; transition: opacity .12s, fill .12s; }
.r-chart a:hover .r-bar, .r-chart a:focus .r-bar { opacity: 1; fill: var(--cream); }
.r-bar-empty { fill: var(--line-2); }
.r-chart-peak { fill: var(--dim); }
.r-chart { padding-top: 32px; }
.r-chart .r-bar { transform-box: fill-box; transform-origin: bottom; animation: r-grow .7s var(--ease) backwards; }
@keyframes r-grow { from { transform: scaleY(0); } }

/* ── index: latest ──────────────────────────────────────────────────────────────────────── */

.r-latest {
  position: relative; margin: 0 0 50px; padding: 26px 24px 26px;
  border: 2px solid var(--rose); background: linear-gradient(180deg, rgba(255, 61, 99, .07), transparent 70%);
}
.s-page .r-latest-k {
  margin: 0 0 8px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--rose);
}
.s-page .r-latest-h { font-size: clamp(24px, 4.4vw, 40px); margin: 0 0 12px; }
.r-latest-h a { text-decoration: none; }
.r-latest-h a:hover { color: var(--rose); }
.s-page .r-latest-p { color: #B9C2CB; margin: 0 0 20px; max-width: 70ch; }

/* ── index: day list ────────────────────────────────────────────────────────────────────── */

.r-days { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.r-day {
  display: flex; align-items: center; gap: 18px; min-height: 72px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--cream);
  transition: background .12s, padding-left .2s var(--ease);
}
.r-day:hover { background: rgba(255, 255, 255, .025); padding-left: 10px; }
.r-day-date {
  flex: none; width: 52px; display: flex; flex-direction: column; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase;
}
.r-day-date b { font-size: 26px; line-height: 1; color: var(--cream); letter-spacing: -.04em; }
.r-day-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.r-day-h { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.r-day:hover .r-day-h { color: var(--rose); }
.r-day-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.r-day-lead {
  margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--mono); font-size: 13px; color: var(--cyan); text-align: right;
}
.r-day-lead small { font-size: 11px; color: var(--dim); }
@media (max-width: 560px) {
  .r-day { align-items: flex-start; flex-wrap: wrap; gap: 6px 14px; }
  .r-day-lead { margin-left: 66px; align-items: flex-start; flex-direction: row; gap: 8px; }
}

.r-cta { margin-top: 60px; }

/* On a phone the 24-hour axis would shrink every dot to a speck. The figure scrolls sideways
   inside its own box instead (the page never does: scrollWidth is checked at 390px). */
@media (max-width: 640px) {
  .r-timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .r-timeline svg { min-width: 680px; }
  .r-legend { min-width: 0; }
}

/* Month headings on the index link to the month report. */
.r-month-link { text-decoration: none; }
.r-month-link:hover { color: var(--rose); }
.s-page .r-month-sum { margin: -6px 0 14px; color: var(--dim); font-size: 14.5px; }
