/* The Reports page's further sections (public/reports-ext.js and its section files): the page's own
   cards, charts, lists and tables, plus a few pieces of their own. Theme colours only. */
/* (an off-screen section skips layout and paint: every chart drawn elsewhere on the page measures less) */
.rx-section { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.rx-state { margin: 6px 0 0; }
.rx-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.rx-row .seg { flex: none; }
.rx-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rx-tiles .mini { cursor: pointer; }
.rx-tiles .mini:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-range { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rx-custom { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); }
.rx-custom[hidden] { display: none; }
.rx-custom input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 11px; color-scheme: light dark; }
.rx-link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 2px; }
.rx-link:hover { text-decoration-color: var(--accent); }
span.rx-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 2px; }
.rx-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 12px; }
.rx-table th { color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; text-align: right; padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel-solid, var(--panel)); }
.rx-table td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rx-table th:first-child, .rx-table td:first-child { text-align: left; }
.rx-table td.name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.rx-table tr[data-drill]:hover td, .rx-table th[data-drill]:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rx-table th[data-drill] { cursor: pointer; }
.rx-table .sub { color: var(--muted); font-size: 11px; }
.rx-table th.l, .rx-table td.l { text-align: left; }
.rx-table tr[data-sub] { cursor: pointer; }
.rx-table tr[data-sub]:hover td, .rx-table tr.sel td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rx-table td.movers { text-align: left; }
.rx-table td.movers span { cursor: pointer; margin-right: 6px; }
.rx-scroll { overflow: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.rx-scroll.tall { max-height: 520px; }
/* (Memes: the largest list as tall as the group table beside it, scrolling, so neither card has a blank) */
.report-card.memes-fill { display: flex; flex-direction: column; }
.report-card.memes-fill > .rx-scroll { flex: 1 1 0; min-height: 300px; }
/* (Cycles: the regime band under its chart, lined up with the plot: the chart's 46 px axis and 10 px right
   pad; a calm regime solid, a volatile one striped in the same hue, sideways grey, not computed the line colour) */
.cy-band { display: flex; height: 12px; margin: 2px 10px 0 46px; border-radius: 3px; overflow: hidden; background: var(--line); }
.cy-band i { display: block; min-width: 0; }
.cy-band i[data-drill] { cursor: pointer; }
.cy-band i[data-drill]:hover { filter: brightness(1.25); }
.cy-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.cy-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cy-sw { flex: none; display: inline-block; width: 14px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.cy-legend .cy-sw { margin-right: 0; }
.cy-r0 { background: var(--line); }
.cy-r1 { background: var(--pos, var(--up)); }
.cy-r2 { background: repeating-linear-gradient(135deg, var(--pos, var(--up)) 0 3px, color-mix(in srgb, var(--pos, var(--up)) 35%, transparent) 3px 6px); }
.cy-r3 { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.cy-r4 { background: var(--neg, var(--down)); }
.cy-r5 { background: repeating-linear-gradient(135deg, var(--neg, var(--down)) 0 3px, color-mix(in srgb, var(--neg, var(--down)) 35%, transparent) 3px 6px); }
.mini strong .cy-sw { width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; }
.cy-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 8px; }
.cy-now > .cy-sw { width: 16px; height: 34px; border-radius: 4px; margin: 0; }
.cy-now > div { display: grid; gap: 1px; min-width: 0; }
.cy-now strong { font-size: 18px; letter-spacing: -.02em; }
.cy-now span { color: var(--muted); font-size: 11px; }
.cy-now dl { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 0 auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.cy-now dl div { display: grid; gap: 1px; }
.cy-now dt { color: var(--muted); font-size: 10px; }
.cy-now dd { margin: 0; font-weight: 650; }
.cy-now dd small { color: var(--muted); font-weight: 400; }
#cycles .rx-table tr.cy-few td { opacity: .55; }
@media (max-width: 760px) { .cy-now dl { margin-left: 0; } .cy-band { margin-left: 46px; } }
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.listing, .badge.ath { color: var(--pos, var(--up)); border-color: color-mix(in srgb, var(--pos, var(--up)) 50%, transparent); }
.badge.delisting { color: var(--neg, var(--down)); border-color: color-mix(in srgb, var(--neg, var(--down)) 50%, transparent); }
.badge.new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 99px; font: inherit; font-size: 11px; padding: 3px 10px; cursor: pointer; }
.chip.on { color: var(--text); border-color: var(--accent); }
.chip i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.chip b { color: var(--text); font-weight: 650; }
.chip .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font-size: 12px; }

/* The recap */
.recap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recap h3 { font-size: 17px; letter-spacing: -.02em; margin: 2px 0 2px; }
.recap .when { color: var(--muted); font-size: 11px; margin: 0 0 10px; }
.recap p.sent { margin: 0 0 8px; line-height: 1.6; font-size: 13px; }
.recap .tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.archive :is(button, a) { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 7px 9px; font: inherit; cursor: pointer; min-width: 0; text-decoration: none; }
.archive :is(button, a):hover { border-color: var(--accent); }
.archive :is(button, a) span { color: var(--muted); font-size: 10px; }
.archive :is(button, a) strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap h3 a { color: inherit; text-decoration: none; } .recap h3 a:hover { color: var(--accent); }
/* A recap's Share menu (its page's link, the native share sheet, its image, the feed) and the archive's feed link */
.rc-share { position: relative; }
.rc-share summary { list-style: none; } .rc-share summary::-webkit-details-marker { display: none; }
.rc-share[open] summary { border-color: var(--accent); }
.rc-share-pop { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 6; min-width: 210px; padding: 6px; display: grid; gap: 1px;
  background: var(--panel-solid, var(--panel)); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.rc-share-pop :is(a, button) { display: block; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 12px; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rc-share-pop :is(a, button):hover, .rc-share-pop :is(a, button):focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.rc-feed { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; text-decoration: none; }

/* Heat grids (funding by coin and venue or time) */
.heat-grid { border-collapse: separate; border-spacing: 2px; font-size: 10.5px; font-variant-numeric: tabular-nums; width: 100%; }
.heat-grid th { color: var(--muted); font-weight: 600; font-size: 10px; padding: 3px 4px; white-space: nowrap; }
.heat-grid thead th { position: sticky; top: 0; background: var(--panel-solid, var(--panel)); z-index: 1; }
.heat-grid tbody th { text-align: left; position: sticky; left: 0; background: var(--panel-solid, var(--panel)); z-index: 1; }
.heat-grid td { text-align: center; padding: 5px 3px; border-radius: 4px; min-width: 38px; white-space: nowrap; cursor: pointer; }
.heat-grid td.thin { min-width: 9px; padding: 5px 0; font-size: 0; }
.heat-grid td:hover { outline: 1px solid var(--text); }
.heat-grid th[data-drill]:hover { color: var(--accent); }
.heat-legend { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 6px; }
.heat-legend i { display: inline-block; width: 70px; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--neg, var(--down)), transparent, var(--pos, var(--up))); }

/* Calendar */
.cal { display: grid; gap: 2px; }
.cal .row .when { flex: none; width: 118px; color: var(--muted); font-size: 11px; }
.cal .row.past { opacity: .72; }
.cal .row.soon .when { color: var(--accent); font-weight: 650; }

/* Compare and saved views */
.cmp-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.cmp-pick input, .views input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; font: inherit; width: 220px; max-width: 100%; }
.cmp-pick input:focus, .views input:focus { outline: none; border-color: var(--accent); }
.views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.views-list { display: grid; gap: 2px; margin-top: 8px; }
.views-list .row button { flex: none; }
.share-note { font-size: 11px; color: var(--muted); }

@media (max-width: 1300px) { .rx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .recap-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .rx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rx-row { gap: 6px; }
  .cmp-pick input, .views input { flex: 1; width: auto; }
  .cal .row .when { width: 84px; }
  .recap p.sent { font-size: 13px; }
}
@media (max-width: 420px) {
  .rx-table td.name { max-width: 120px; }
  .rx-table .hide-xs { display: none; }
  .rx-range .seg button { padding: 3px 7px; }
}

/* The summary at the top of the page: three paragraphs, its settings, a height kept while it loads */
.rx-summary { margin-bottom: 12px; }
/* (before its script runs, the card holds a full summary's height) */
.rx-summary:empty { min-height: 1150px; }
@media (max-width: 1100px) { .rx-summary:empty { min-height: 1600px; } }
@media (max-width: 440px) { .rx-summary:empty { min-height: 2750px; } }
@media (max-width: 380px) { .rx-summary:empty { min-height: 3000px; } }
.rx-sum-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 14px; margin-bottom: 20px; }
.rx-sum-head h2 { margin: 2px 0 0; font-size: 36px; letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
html[data-mode="light"] .rx-sum-head h2 { text-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.rx-sum-head > div:first-child { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; min-width: 0; }
.rx-sum-head h2 { line-height: 1; }
/* The badges' bottom edge level with the bottom of the title's letters (its "y"): the title's box is
   its letters' height (line-height 1) and both sit on the row's bottom */
.rx-sum-head .report-context { margin: 0; min-height: 0 !important; }
.rx-sum-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-sum-body { width: 100%; } /* (the card's full width) */
.rx-sum-body p { margin: 0 0 15px; font-size: 18px; line-height: 1.68; color: var(--text); text-indent: 1em; } /* (each paragraph's first line indented) */
.rx-sum-body p:last-child { margin-bottom: 0; }
/* The summary's links sit close to its text: a hint of the accent and a faint dotted underline, full
   accent on hover or focus (the paragraphs read as prose, not as a page of links) */
.rx-sum-body .rx-link { color: color-mix(in srgb, var(--accent) 28%, var(--text)); text-decoration-style: dotted; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
.rx-sum-body .rx-link:hover, .rx-sum-body .rx-link:focus-visible { color: var(--accent); text-decoration-style: solid; text-decoration-color: var(--accent); }
.rx-sum-foot { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 8px; line-height: 1.6; }
.rx-skel p { display: grid; gap: 9px; margin: 0 0 18px; }
.rx-skel i { display: block; height: 11px; border-radius: 6px; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.rx-skel i:last-child { width: 62%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rx-why { border-top: 1px solid var(--line); padding: 8px 0; }
.rx-why > p { margin: 0 0 6px; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) { .rx-skel i { animation: rx-pulse 1.4s ease-in-out infinite alternate; } }
@keyframes rx-pulse { to { opacity: .45; } }
@media (max-width: 760px) {
  .rx-sum-tools { width: 100%; }
  .rx-sum-tools .seg { flex: 1 1 auto; justify-content: space-between; }
  .rx-sum-tools .seg button { flex: 1; padding: 4px 6px; }
  .rx-sum-body p { font-size: 17.5px; line-height: 1.62; }
}

/* A past day's summary: the window and focus rest at the archived 24-hour, balanced text */
.rx-sum-tools .seg.rx-off { opacity: .55; }
.rx-sum-tools .seg.rx-off button { cursor: default; }
