/* The report pages: rows of clips, the board table, and the static charts drawn by build/charts.py.
   Loaded after home.css and before dark.css; colours come from the theme tokens. */

/* ---------- clips ---------- */
.blog-body .views { display: grid; gap: 12px; }
.blog-body .views.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-body .views.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-body .views.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blog-body .tile-pic { overflow: hidden; border-radius: 12px; background: var(--tile); aspect-ratio: 4 / 3; }
.blog-body .views.n2 .tile-pic { aspect-ratio: 16 / 10; }
.blog-body .tile-pic video.clip { width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: var(--tile); }
.blog-body .tile-cap { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.blog-body .tile-cap b { font-weight: 600; color: var(--ink); }
@media (max-width: 820px) {
  .blog-body .views { gap: 8px; }
  .blog-body .views.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-body .tile-cap { font-size: 12.5px; }
}
@media (max-width: 480px) { .blog-body .views.n2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tables ---------- */
.blog-body .table-cap { margin: -22px 0 32px; }
.blog-body table.board { font-size: 14.5px; }
.blog-body table.board th, .blog-body table.board td { padding-right: 10px; }
.blog-body table.board td:nth-child(n + 4) { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.blog-body table.board tr.hot td:nth-child(2), .blog-body table.board tr.hot td.num { color: var(--clay-ink); font-weight: 600; }
.blog-body table.board th small { display: block; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 820px) {
  .blog-body table.board { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

/* ---------- charts ---------- */
.blog-body .rc-fig svg.rc { display: block; width: 100%; height: auto; overflow: visible; }
.rc text { font-family: var(--sans); }
.rc .grid { stroke: var(--line-soft); stroke-width: 1; }
.rc .axis { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.rc .tick { font-size: 12px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.rc .key { font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.rc .row { font-size: 14px; font-weight: 600; fill: var(--ink); }
.rc .note { font-size: 12px; fill: var(--ink-3); }
.rc .val { font-size: 14px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.rc .val.hot, .rc .val.s1 { fill: var(--accent); }
.rc .track { fill: none; }

/* ranked columns */
.rc .col { fill: #c9c6bc; }
.rc .col.hot { fill: var(--accent); }
.rc .lab { font-size: 13px; font-weight: 600; fill: var(--ink); }
.rc .lab.hot { fill: var(--accent); }
.rc .lead { stroke: var(--ink-3); stroke-width: 1; }

/* bars: the first series or the highlighted row is orange, the other ink */
.rc .bar { fill: var(--ink); }
.rc .bar.s1, .rc .bar.hot { fill: var(--accent); }
.rc .bar.s2 { fill: var(--ink); }

/* two values joined by a line */
.rc .head { font-size: 13px; font-weight: 700; fill: var(--ink); }
.rc .task { font-size: 13px; fill: var(--ink-2); }
.rc .who { font-size: 12px; fill: var(--ink-3); }
.rc .join { stroke: #d6d3c9; stroke-width: 3; stroke-linecap: round; }
.rc .dot.s1 { fill: var(--accent); }
.rc .dot.s2 { fill: var(--ink); }

/* marks are drawn in when the figure comes into view */
.rc .grow { transform-box: fill-box; transform-origin: 50% 100%; }
.rc .grow-x { transform-box: fill-box; transform-origin: 0 50%; }
.reveal .rc .grow { transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal .rc .grow-x { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in .rc .grow { transform: none; }
.reveal.in .rc .grow-x { transform: none; }
.reveal .rc .col:nth-child(n + 12) { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) { .reveal .rc .grow, .reveal .rc .grow-x { transform: none; transition: none; } }

/* dark */
html[data-theme="dark"] .rc .col { fill: #5a5852; }
html[data-theme="dark"] .rc .join { stroke: #4a4843; }
html[data-theme="dark"] .rc .bar.s2, html[data-theme="dark"] .rc .bar:not(.s1):not(.hot), html[data-theme="dark"] .rc .dot.s2 { fill: #d9d6cc; }
html[data-theme="dark"] .rc .val.s2 { fill: #d9d6cc; }

/* a long title keeps its two lines on wide screens by setting a little smaller */
@media (min-width: 821px) {
  .blog-head h1.long { font-size: clamp(24px, 2.3vw, 36px); }
  html[lang^="zh"] .blog-head h1.long { font-size: clamp(24px, 2.45vw, 38px); }
}

/* on a phone a chart keeps a readable size and scrolls sideways */
@media (max-width: 820px) {
  .blog-body .rc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
  .blog-body .rc-fig svg.rc { width: 640px; max-width: none; }
}

/* ---------- the NavGPT-3 post's timeline and scatter charts (also the post's cover on the home page and Blog) ---------- */
/* ch-start */
.rc .dot.ref, .rc.sc .p.b { fill: var(--card, #fff); stroke: #a9a59a; stroke-width: 1.5; }
.rc.sc .p.n3 { fill: var(--accent); }
.rc.sc .p.vla { fill: var(--ink); }
html[data-theme="dark"] .rc.sc .p.vla { fill: #d9d6cc; }
.rc.sc .nm { font-size: 12px; fill: var(--ink-2); }
.rc.sc .hum { font-size: 13px; font-weight: 600; fill: var(--ink-2); }
.rc.sc .human { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 6 4; }
.rc.sc .join { stroke: var(--accent); stroke-width: 2; opacity: .45; }
.rc.db .val.s2 { fill: var(--ink); }
/* ch-end */
/* tl-start */
.rc.tl .p-trad { fill: var(--card, #fff); stroke: var(--ink-3); stroke-width: 1.5; }
.rc.tl .p-llm { fill: var(--ink); }
.rc.tl .p-nav { fill: var(--accent); }
.rc.tl .p-disc { fill: var(--card, #fff); stroke: var(--ink-2); stroke-width: 1.5; }
.rc.tl .nm { font-size: 12px; fill: var(--ink-2); }
.rc.tl .hum { font-size: 13px; font-weight: 600; fill: var(--ink-2); }
.rc.tl .human { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 6 4; }
.rc.tl .trend { fill: none; stroke-width: 2; stroke-linecap: round; }
.rc.tl .trend.t-trad { stroke: var(--ink-3); opacity: .55; }
.rc.tl .trend.t-llm { stroke: var(--ink); opacity: .55; }
.rc.tl .front { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.rc.tl .gap { fill: none; stroke: var(--accent); stroke-width: 1.5; }
/* tl-end */
