/* The Android benchmark chapter (Fig. 07 to 14). Tokens come from style.css and
   teardown.css; the most complete run uses the accent colour, every other run
   stays in ink, and missing items are outlines rather than a second colour. */

/* A link to the chapter lands on its heading, not on the empty space above it. */
.td-article section.ta-bench{scroll-margin-top:20px}
.ta-rules{max-width:92ch;margin-top:var(--td-stack)}
.ta-downloads{margin-top:14px}
.ta-downloads a,.ta-caveats a,.td-summary a,.ta-app-review .td-chart-head a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--edge2)}
@media(hover:hover){.ta-downloads a:hover,.ta-caveats a:hover,.td-summary a:hover,.ta-app-review .td-chart-head a:hover{color:var(--deep)}}
.ta-caveats p+p,.td-summary p+p{margin-top:10px}
.ta-caveats a,.td-summary a{white-space:nowrap}
.td-summary{margin-top:var(--td-stack)}

/* Legends: one quiet row above each chart, the same marks the chart draws. */
.ta-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 14px;color:var(--muted);font-size:13px}
.ta-legend-item{display:inline-flex;align-items:center;gap:8px}
.ta-legend[hidden]{display:none}
.ta-chart-help{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.6}
.ta-legend-icon{flex:none;overflow:visible}

/* Fig. 11, the timeline of the runs */
.ta-race-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px;padding:16px 0;border-top:1px solid var(--edge);border-bottom:1px solid var(--edge);line-height:1.45}
.ta-race-legend .ta-legend-item{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:10px}
.ta-race-legend .ta-legend-icon{margin-top:1px}
@media(max-width:900px){.ta-race-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.ta-race-legend{column-gap:14px;font-size:12px}}
.ta-scrub{flex:1 1 260px;max-width:460px}
.ta-scale{margin:0 0 12px;color:var(--faint);font-size:13px}
.ta-window{stroke:var(--muted);stroke-width:1;stroke-dasharray:1 4;stroke-linecap:round}
.ta-play{cursor:pointer;color:var(--ink)}
/* Reserve the replay label's space so changing it never moves the Time slider. */
.ta-play-text{display:grid}
.ta-play-text>span{grid-area:1/1}
.ta-play-size{visibility:hidden}
.ta-play-icon{width:0;height:0;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent var(--accent)}
.ta-play.is-playing .ta-play-icon{width:8px;height:10px;border:0;border-left:3px solid var(--accent);border-right:3px solid var(--accent)}
@media(hover:hover){.ta-play:hover{border-color:var(--accent)}}
.ta-lane-base{stroke:var(--td-grid);stroke-width:1;shape-rendering:crispEdges}
.ta-area{fill:var(--td-s-free)}
.ta-line{fill:none;stroke:var(--td-other);stroke-width:1.5;stroke-linejoin:round}
.is-pick .ta-area,.ta-legend .ta-area{fill:var(--td-band)}
.is-pick .ta-line,.ta-legend .ta-line{stroke:var(--accent);stroke-width:2}
.ta-comp-start,.ta-comp{fill:var(--bg);stroke:var(--td-other-hi);stroke-width:1.5}
.is-pick .ta-comp-start,.is-pick .ta-comp{stroke:var(--accent)}
/* A summary runs as a bar from the minute it started to the diamond where it was written. */
.ta-comp-span{fill:var(--td-s-other)}
.ta-comp-track{fill:none;stroke:var(--td-s-other);stroke-width:5;stroke-linejoin:round;stroke-linecap:round}
.is-pick .ta-comp-track{stroke:var(--td-s-pick-soft)}
.is-pick .ta-comp-span{fill:var(--td-s-pick-soft)}
.ta-nudge{fill:var(--ink);stroke:var(--bg);stroke-width:1.5;paint-order:stroke}
.is-pick .ta-nudge{fill:var(--accent)}
.ta-crash{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round}
.ta-end{fill:var(--td-other-hi);stroke:var(--bg);stroke-width:2}
.is-pick .ta-end{fill:var(--accent)}
.ta-cap{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 4}
.ta-playhead{stroke:var(--accent);stroke-width:1.5;opacity:0}
.ta-playhead.is-on{opacity:.9}
.ta-playhead-label{fill:var(--accent);font-variant-numeric:tabular-nums}
.ta-verdict{font:700 12.5px var(--font);fill:var(--muted);font-variant-numeric:tabular-nums}
.ta-verdict.is-done{fill:var(--ink)}
.ta-verdict.is-pick.is-done{fill:var(--accent)}
.ta-value{font-variant-numeric:tabular-nums}
/* Give the timeline's thirteen columns room to wrap at words, with numbers
   kept together and the caption contained within the visible table area. */
@media screen{
  .ta-race-card .td-data .td-table-wrap{container-type:inline-size}
  .ta-race-card .td-data .td-table caption{position:sticky;left:0;max-width:100cqi;box-sizing:border-box}
  .ta-race-card .td-data .td-table th,.ta-race-card .td-data .td-table td{min-width:110px;vertical-align:top}
  .ta-race-card .td-data .td-table td:nth-child(n+4){white-space:nowrap}
  .ta-race-card .td-data .td-table tr>:first-child{min-width:136px;position:sticky;left:0;z-index:1;background:linear-gradient(var(--surface-62),var(--surface-62)),var(--bg);box-shadow:inset -1px 0 0 var(--edge)}
  .ta-race-card .td-data .td-table tr>:nth-child(2){min-width:180px}
  .ta-race-card .td-data .td-table tr>:nth-child(3){min-width:140px;text-align:left}
  .ta-race-card .td-data .td-table tr>:nth-child(8),.ta-race-card .td-data .td-table tr>:nth-child(9),.ta-race-card .td-data .td-table tr>:nth-child(10){min-width:160px}
}
/* Events appear at their recorded minute; replay briefly rings each new mark. */
.ta-lane-points>*{transition:opacity .3s}
.ta-lane-points>.is-ahead{opacity:0}
.ta-event-pulse{fill:none;stroke:var(--td-other-hi);stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center;pointer-events:none}
.is-pick .ta-event-pulse{stroke:var(--accent)}
.ta-event.is-arriving .ta-event-pulse{animation:ta-event-arrive .65s ease-out}
@keyframes ta-event-arrive{from{opacity:.8;transform:scale(.7)}to{opacity:0;transform:scale(2.8)}}
.motion-paused .ta-event-pulse{animation:none}
@media(prefers-reduced-motion:reduce){.ta-event-pulse{animation:none!important}}

/* Findings above the results */
.ta-runtime{margin-top:var(--td-stack)}
.ta-runtime-open{border-top:0;margin-top:0;padding-top:0}
.ta-runtime-open h4:first-child{margin-top:4px}
.ta-runtime-method,.ta-runtime-details p,.ta-runtime-details li{color:var(--muted);font-size:15px;line-height:1.65}
.ta-runtime-method{margin:0 0 22px}
.ta-runtime-table .td-table{min-width:640px}
.ta-runtime-table .td-table th,.ta-runtime-table .td-table td{white-space:normal;text-align:left;vertical-align:top}
.ta-runtime-table .td-table th[scope="row"]{width:23%;min-width:150px}
.ta-runtime-table .td-table td:nth-child(2){width:15%;font-weight:700;color:var(--ink)}
/* Explicit roles preserve the table semantics when narrow rows become cards. */
@media(max-width:800px){
  .ta-runtime-table{overflow:visible}
  .ta-runtime-table .td-table{display:block;min-width:0;width:100%}
  .ta-runtime-table .td-table caption{display:block;width:100%;text-align:left;line-height:1.6}
  .ta-runtime-table .td-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ta-runtime-table .td-table tbody{display:grid;gap:12px}
  .ta-runtime-table .td-table tr{display:block;padding:16px;border:1px solid var(--edge);border-radius:16px;background:var(--panel)}
  .ta-runtime-table .td-table tr.is-pick{border-color:var(--accent)}
  .ta-runtime-table .td-table th[scope="row"]{display:block;width:auto;min-width:0;padding:0 0 12px;border:0;font-size:16px;line-height:1.5}
  .ta-runtime-table .td-table td,.ta-runtime-table .td-table td:nth-child(2){display:block;width:auto;padding:10px 0 0;border:0;font-size:14px;line-height:1.6}
  .ta-runtime-table .td-table td::before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:600}
}
.ta-runtime-details{border-top:1px solid var(--edge);margin-top:22px;padding-top:18px}
.ta-runtime-details summary{min-height:44px;align-content:center;font-weight:700;cursor:pointer;line-height:1.5}
.ta-runtime-details h4{font-size:18px;margin:24px 0 12px}
.ta-runtime-details p,.ta-runtime-details ul,.ta-runtime-details .td-table-wrap{margin-top:16px}
.ta-runtime-details ul{padding-left:22px}
.ta-runtime-details li+li{margin-top:8px}
.ta-runtime-details pre{padding:16px;background:var(--surface);border:1px solid var(--edge);border-radius:16px;overflow-x:auto;font-size:13px;line-height:1.6}
.ta-runtime-details a,.ta-runtime-result a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--edge2)}
.ta-runtime-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}
.ta-runtime-evidence figure,.ta-runtime-placeholder{margin:0}
.ta-runtime-evidence img{display:block;width:100%;height:260px;object-fit:contain;background:var(--surface);border:1px solid var(--edge);border-radius:20px;cursor:zoom-in}
.ta-runtime-placeholder{margin-top:20px}
.ta-runtime-placeholder img{width:100%;height:auto;border-radius:20px;cursor:zoom-in}
.ta-runtime-evidence figcaption,.ta-runtime-placeholder figcaption{margin-top:10px;font-size:13px;line-height:1.6;color:var(--muted)}
.ta-runtime-result{padding-top:12px;border-top:1px solid var(--edge);font-size:14px;line-height:1.65;color:var(--muted)}
.ta-runtime-result b{color:var(--ink)}
@media(max-width:640px){.ta-runtime-evidence{grid-template-columns:minmax(0,1fr)}}
.ta-insights{grid-template-columns:repeat(4,minmax(0,1fr))}
.ta-insights .td-insight b{font-size:clamp(30px,2.8vw,42px)}
@media(max-width:1000px){.ta-insights{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.ta-insights{grid-template-columns:minmax(0,1fr)}}

/* Fig. 08, the code checks */
.ta-cell{fill:none;stroke:var(--edge2);stroke-width:1}
.ta-cell.is-on{fill:var(--td-s-other);stroke:none}
.is-pick .ta-cell.is-on,.ta-legend .ta-cell.is-on{fill:var(--accent)}
.ta-cell-text{font:700 13px var(--font);fill:var(--ink);font-variant-numeric:tabular-nums}
.ta-cell-text.is-pick{fill:var(--accent)}
.ta-cell-text.is-faint{fill:var(--faint);font-weight:500}
.ta-group-rule{stroke:var(--edge2);stroke-width:1;shape-rendering:crispEdges}
.ta-row-rule{stroke:var(--td-grid);stroke-width:1;shape-rendering:crispEdges}
.ta-flag-glyph{font:800 13px var(--font);fill:var(--ink)}
.ta-legend .ta-flag-glyph{font-size:14px}
.ta-flag-text{fill:var(--ink)}
/* On phones the results are one card per run, in words. */
.ta-cards{display:grid;gap:12px}
.ta-card{padding:16px 16px 14px;border:1px solid var(--edge);border-radius:16px;background:var(--panel)}
.ta-card.is-pick{border-color:var(--accent)}
.ta-card-name{margin:0;font-size:16px;font-weight:800;letter-spacing:-0.02em;color:var(--ink)}
.ta-card.is-pick .ta-card-name{color:var(--accent)}
.ta-card-sub{margin:2px 0 10px;color:var(--faint);font-size:12.5px}
.ta-card-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;font-size:14px}
.ta-card-facts dt{color:var(--muted)}
.ta-card-facts dd{margin:0;text-align:right;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.ta-card-flag{margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--accent);border-radius:0 10px 10px 0;background:var(--accent-12);color:var(--ink);font-size:13.5px;line-height:1.5}
.ta-card-more{margin-top:10px;font-size:13.5px;color:var(--muted)}
.ta-card-more summary{min-height:44px;display:flex;align-items:center;gap:12px;padding-right:4px;cursor:pointer;color:var(--ink);font-weight:700}
.ta-card-more summary::marker{content:''}
.ta-card-more summary::-webkit-details-marker{display:none}
.ta-card-more summary::after{content:'';flex:none;width:8px;height:8px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.ta-card-more[open]>summary::after{transform:rotate(45deg)}
.ta-card-more summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.ta-card-more ul{margin:0;padding:0 0 4px 18px;line-height:1.6}
.ta-card-more li.is-on{color:var(--ink)}
/* Phone cards of Fig. 09: the squares of the wide chart, ten to a row. */
.ta-card-key{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:12px 0;color:var(--muted);font-size:13.5px;line-height:1.5}
.ta-card-key .ta-sq{width:14px;height:14px}
.ta-card-key>span{display:inline-flex;align-items:center;gap:8px;margin-right:10px}
.ta-card-key+.ta-card-tip{margin-top:-6px}
.ta-card-grid{display:grid;gap:6px;margin:4px 0 12px;padding:12px;border:1px solid var(--edge);border-radius:12px;background:var(--td-stage-bg)}
.ta-card-strip{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.ta-card-strip:not(:first-child){margin-top:8px}
.ta-card-strip b{font-family:var(--font);font-size:13px;letter-spacing:0;text-transform:none;color:var(--ink);font-variant-numeric:tabular-nums}
.ta-card.is-pick .ta-card-strip b{color:var(--accent)}
.ta-card-cells{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;max-width:360px}
@media(min-width:600px){.ta-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
.ta-sq{display:block;width:100%;aspect-ratio:1;min-width:0;padding:0;margin:0;border:1px solid var(--edge2);border-radius:4px;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow .2s,transform .2s}
.ta-sq.is-on{border-color:transparent;background:var(--td-s-other)}
.ta-card.is-pick .ta-sq.is-on,.ta-card-key .ta-sq.is-on{background:var(--accent)}
.ta-sq.is-sel{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--ink);transform:scale(1.08)}
.ta-sq:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ta-card-read{display:none;margin:-4px 0 12px;padding:8px 10px;border-radius:10px;background:var(--panel);color:var(--ink);font-size:13.5px;line-height:1.5}
.ta-card-read.is-on{display:block}
.ta-cards.is-wait .ta-card:not(.is-in) .ta-sq.is-on{transform:scale(.3);opacity:0}
.ta-cards.is-wait .ta-card.is-in .ta-sq.is-on{animation:ta-sq-in .5s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i) * 45ms + 120ms)}
.ta-cards.is-wait .ta-card.is-in .ta-card-cells+.ta-card-strip+.ta-card-cells .ta-sq.is-on{animation-delay:calc(var(--i) * 45ms + 560ms)}
@keyframes ta-sq-in{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.ta-cards.is-wait .ta-card .ta-sq.is-on{animation:none;transform:none;opacity:1}}
.motion-paused .ta-cards.is-wait .ta-card .ta-sq.is-on{animation:none;transform:none;opacity:1}
@media print{.ta-cards.is-wait .ta-card .ta-sq.is-on{animation:none;transform:none;opacity:1}}
/* Fig. 11, where the time went: one hue per run, darker for writing, lighter for reading, faint for the rest */
.ta-seg.is-write{fill:var(--td-s-other)}
.ta-seg.is-read{fill:var(--td-s-soft)}
.ta-hatch-fill{fill:url(#ta-hatch);pointer-events:none}
.ta-hatch-line{stroke:var(--td-s-other);stroke-width:1.6}
.is-pick .ta-hatch-fill{fill:url(#ta-hatch-pick)}
.ta-hatch-line.is-pick{stroke:var(--accent)}
.ta-seg.is-else{fill:var(--td-s-free)}
.is-pick .ta-seg.is-write{fill:var(--accent)}
.is-pick .ta-seg.is-read{fill:var(--td-s-pick-soft)}
.is-pick .ta-seg.is-else{fill:var(--td-band)}
.ta-legend .ta-seg.is-write{fill:var(--td-s-other)}
.ta-in-bar{font:700 11.5px var(--font);fill:var(--bg);pointer-events:none}
.td-key.ta-key-write{height:8px;background:var(--td-s-other)}
.td-key.ta-key-read{height:8px;background:var(--td-s-soft)}
.td-key.ta-key-else{height:8px;background:var(--td-s-free)}
.td-key.ta-key-write.is-pick{background:var(--accent)}
.td-key.ta-key-read.is-pick{background:var(--td-s-pick-soft)}
.td-key.ta-key-else.is-pick{background:var(--td-band)}

/* Fig. 14, one dot per summary */
.ta-dot{transition:opacity .4s,transform .5s cubic-bezier(.22,1,.36,1);transform-box:fill-box;transform-origin:center}
.ta-compaction:not(.is-seen) .ta-dot{opacity:0;transform:scale(.3)}
.ta-pick-text{fill:var(--accent)}

/* The run cards reuse the model cards of chapter 04 */
.ta-runs-head{max-width:760px;margin:var(--td-sub) 0 0}
.ta-runs-head .kicker{margin-bottom:12px}
.ta-runs-head p{margin:0;color:var(--muted);font-size:15.5px;line-height:1.6}
.ta-run p{flex:none;margin-bottom:12px}
.ta-run p.ta-bad{flex:1;margin-bottom:18px}
.ta-run p b{color:var(--ink);font-weight:750}
.ta-run .td-model-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:44px}
.ta-run .td-model-maker{overflow-wrap:anywhere}
.ta-run .td-model-badge{white-space:nowrap;border:1px solid transparent}
.ta-run .td-model-badge.is-plain{background:transparent;color:var(--muted);border:1px solid var(--edge2)}
.ta-run dd{text-align:right}
@media(max-width:380px){.ta-run .td-model-top{grid-template-columns:1fr;justify-items:start}.ta-run .td-model-maker{overflow-wrap:normal}}

/* Fig. 09, the screenshots of the most complete app */
.ta-built-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:center}
.ta-explode{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0}
.ta-screen{margin:0;min-width:0}
.ta-screen img,.ta-tablet img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid var(--edge);background:var(--panel);cursor:zoom-in}
.ta-screen figcaption,.ta-tablet figcaption{margin-top:8px;font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.ta-tablet{margin:0}
.ta-tablet figcaption{text-transform:none;letter-spacing:0;font-family:var(--font);font-size:13.5px;color:var(--muted)}
/* Wide screens: the screenshots form one tilted stack that spreads out as the figure scrolls in. */
.ta-explode.is-3d{display:block;position:relative;height:clamp(560px,52vw,640px);perspective:1600px;perspective-origin:50% 40%}
.ta-explode.is-3d .ta-screen{position:absolute;left:50%;top:52%;width:clamp(150px,13vw,176px);transition:transform .45s cubic-bezier(.22,1,.36,1),opacity .25s;will-change:transform}
.ta-explode.is-3d .ta-screen img{border-radius:16px;box-shadow:0 30px 60px -30px rgba(0,0,0,.75),0 0 0 1px var(--edge2)}
.ta-explode.is-3d .ta-screen figcaption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* One screen is picked: it keeps full strength and the accent edge, the ones above fade so it shows whole, the ones below dim. Nothing moves. */
.ta-explode.has-pick .ta-screen{opacity:.4}
.ta-explode.has-pick .ta-screen.is-above{opacity:.1}
.ta-explode.has-pick .ta-screen.is-picked{opacity:1}
.ta-explode.is-3d .ta-screen img:focus-visible{outline:none}
.ta-explode.is-3d .ta-screen.is-picked img{box-shadow:0 36px 70px -28px rgba(0,0,0,.8),0 0 0 2px var(--accent)}
/* The names of the screens, in stack order, under the stack. */
.ta-stack-list{display:none}
.ta-explode.is-3d+.ta-stack-list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.ta-stack-chip{min-height:44px;padding:7px 12px;border:1px solid var(--edge2);border-radius:999px;background:none;color:var(--muted);font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;cursor:zoom-in;transition:background .2s,color .2s,border-color .2s}
.ta-stack-chip.is-on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.ta-stack-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:899px){
  .ta-built-grid{grid-template-columns:minmax(0,1fr)}
  .ta-tablet{max-width:420px}
}
@media(max-width:640px){
  .ta-explode{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--td-pad-x);gap:12px;margin:0 calc(-1 * var(--td-pad-x));padding:0 var(--td-pad-x) 8px;scrollbar-width:none}
  .ta-explode::-webkit-scrollbar{display:none}
  .ta-screen{flex:none;width:58%;scroll-snap-align:start}
}
/* Phones and tablets keep the stack, smaller: a sideways swipe over it steps through the screens. */
@media(max-width:899px){
  .ta-explode.is-3d{height:clamp(380px,112vw,600px);margin:0;padding:0;overflow:visible;perspective:1200px;perspective-origin:50% 36%;touch-action:pan-y pinch-zoom}
  .ta-explode.is-3d .ta-screen{width:clamp(104px,30vw,160px);top:50%}
  .ta-explode.is-3d .ta-screen img{border-radius:12px}
  .ta-explode.is-3d+.ta-stack-list{gap:6px;margin-top:6px}
  .ta-stack-hint{margin:10px 0 0;text-align:center;color:var(--muted);font-size:13.5px;line-height:1.5}
}
@media(min-width:900px){.ta-stack-hint{display:none}}
@media(prefers-reduced-motion:reduce){
  .ta-explode.is-3d .ta-screen,.ta-dot,.ta-stack-chip,.ta-lane-points>*{transition:none}
}
.motion-paused .ta-lane-points>*{transition:none}
/* Phones: the three speed buttons share one row. */
@media(max-width:640px){.td-controls .td-seg:has([data-ta-speed]){grid-template-columns:repeat(3,minmax(0,1fr))}.ta-scrub{flex-basis:100%;max-width:none}}

/* Replay status and benchmark annotations remain readable when motion is off. */
.ta-play-note{flex-basis:100%;margin:0;color:var(--muted);font-size:14px;line-height:1.6}
html.lightmode .td-page main .ta-card.is-pick .ta-card-name{color:var(--deep)}
html.lightmode .td-page main .td-chart :is(.ta-cell-text.is-pick,.ta-pick-text,.ta-verdict.is-pick.is-done,.ta-playhead-label){fill:var(--deep)}
@media(max-width:640px){
  .ta-screen figcaption,.ta-stack-chip,.ta-card-sub,.ta-runtime-table .td-table td::before{font-size:13px;line-height:1.5;letter-spacing:.04em}
  .ta-card-flag,.ta-card-more,.ta-runtime-evidence figcaption,.ta-runtime-placeholder figcaption{font-size:14px;line-height:1.6}
}
@media(max-height:500px){.ta-tablet img{max-height:75svh;object-fit:contain}}
