/* Tasks page (tasks.html). Page-specific classes are prefixed tk-; shared tokens come from style.css.
   No pictorial icons: tasks are numbered 01 to 04, and structure comes from hairlines, dots and mono labels. */

/* ---------- task colours ---------- */
.tk-c-ipr { --c: var(--ipr); --c-bg: var(--ipr-bg); --c-line: var(--ipr-line); --c-soft: var(--ipr-soft); }
.tk-c-pro { --c: var(--pro); --c-bg: var(--pro-bg); --c-line: var(--pro-line); --c-soft: var(--pro-soft); }
.tk-c-emo { --c: var(--emo); --c-bg: var(--emo-bg); --c-line: var(--emo-line); --c-soft: var(--emo-soft); }
.tk-c-cdt { --c: var(--cdt); --c-bg: var(--cdt-bg); --c-line: var(--cdt-line); --c-soft: var(--cdt-soft); }

.page-tasks .section .intro { max-width: 760px; }
.tk-head { margin-bottom: 34px; }

/* ---------- 1. the four decisions ---------- */
.tk-decisions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tk-dec {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 20px 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tk-dec:hover { transform: translateY(-2px); border-color: var(--c-line); box-shadow: 0 2px 4px rgba(35, 33, 30, .05), 0 16px 34px rgba(35, 33, 30, .07); }
.tk-dec-no { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-right: 26px; font: 800 26px/1 var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--c); }
.tk-dec-no::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.tk-dec-q { font: 800 19px/1.25 var(--f-head); letter-spacing: -.015em; color: var(--ink); }
@media (min-width: 1061px) { .tk-dec-q { min-height: 48px; } }
.tk-dec-t { font: 600 13.5px/1.3 var(--f-body); color: var(--c); }
.tk-dec-k { margin-top: auto; min-height: 44px; padding-top: 10px; border-top: 1px solid var(--line); font: 500 11.5px/1.45 var(--f-mono); color: var(--ink-3); }
.tk-dec-arrow { position: absolute; top: 25px; right: 20px; color: var(--c); opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.tk-dec:hover .tk-dec-arrow { opacity: 1; transform: none; }

/* ---------- 2. one record, four readings ---------- */
.tk-fan { display: grid; grid-template-columns: minmax(0, 1fr) 44px 46px 52px minmax(0, 1.08fr); align-items: stretch; }
.tk-traj {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 20px;
}
.tk-traj::after { content: ""; position: absolute; left: 100%; top: 50%; width: 44px; height: 1.5px; margin-top: -1px; background: var(--line-2); }
.tk-traj-head { display: flex; align-items: center; gap: 14px; }
.tk-peeps { display: flex; flex: none; }
.tk-peeps img { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 0 0 2px var(--paper); }
.tk-peeps img + img { margin-left: -10px; }
.tk-traj-head b { display: block; font: 700 16px/1.25 var(--f-head); }
.tk-traj-head span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }

.tk-days { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; height: 84px; padding: 0 2px; align-items: end; }
.tk-day { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.tk-day i { width: 10px; height: 10px; border-radius: 50%; }
.tk-day i.a, .tk-legend i.a { background: var(--ipr); }
.tk-day i.s, .tk-legend i.s { background: #F7F1E7; box-shadow: inset 0 0 0 1px #DCD2C2; }
.tk-day.gap i { width: 3px; height: 3px; background: #CDBFA9; }
.tk-axis { display: flex; justify-content: space-between; margin-top: -8px; padding-top: 8px; border-top: 1px solid var(--line-2); font: 500 11px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .02em; }

.tk-legend { display: grid; gap: 8px; }
.tk-legend div { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.tk-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.tk-legend b { color: var(--ink); font-weight: 600; }

.tk-given-k { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tk-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tk-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

.tk-spine {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 18px 0; box-shadow: var(--shadow);
}
.tk-spine::before, .tk-spine::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; }
.tk-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }

.tk-outs { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.tk-row {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 13px 16px; border-radius: 16px; background: var(--c-bg); border: 1px solid var(--c-line);
  transition: transform .15s, border-color .15s;
}
.tk-row:hover { transform: translateX(2px); border-color: var(--c); }
.tk-row::before { content: ""; position: absolute; right: 100%; top: 50%; width: 52px; height: 1.5px; margin-top: -1px; background: var(--c); }
.tk-row::after { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--c); }
.tk-row-no { font: 600 12px/1 var(--f-mono); color: var(--c); padding-top: 4px; }
.tk-row b { display: block; font: 700 15px/1.25 var(--f-head); color: var(--ink); }
.tk-row-spec { display: grid; grid-template-columns: 80px 1fr; gap: 2px 8px; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.tk-row-spec .k { font: 500 10.5px/1.75 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }

/* ---------- 3. task blocks ---------- */
.tk-task { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tk-task + .tk-task { margin-top: 28px; }
.tk-task-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 20px 28px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.tk-task-num { align-self: stretch; display: flex; align-items: center; padding-right: 22px; border-right: 1px solid var(--c-line); font: 800 44px/1 var(--f-head); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--c); }
.tk-task-title h3 { margin: 0; font: 800 24px/1.15 var(--f-head); letter-spacing: -.02em; }
.tk-task-title p { margin: 5px 0 0; font: 600 15px/1.35 var(--f-body); color: var(--c); }
.tk-pool { display: flex; align-items: stretch; gap: 0; }
.tk-stat { padding: 2px 18px; border-left: 1px solid var(--c-line); }
.tk-stat:first-child { border-left: 0; }
.tk-stat:last-child { padding-right: 0; }
.tk-stat b { display: block; font: 800 22px/1 var(--f-head); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.tk-stat span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.3; color: var(--ink-3); white-space: nowrap; }

.tk-task-body { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 32px; padding: 26px 28px 28px; align-items: start; }

.tk-spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tk-spec li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 20px; }
.tk-spec li:last-child { padding-bottom: 0; }
.tk-spec li::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: -2px; border-left: 1.5px solid var(--c-line); }
.tk-spec li:last-child::before { display: none; }
.tk-spec li::after { content: ""; position: absolute; left: 5px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--c); }
.tk-spec-k { grid-column: 2; font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); padding-top: 3px; }
.tk-spec-v { grid-column: 2; margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.tk-spec-v b { color: var(--ink); font-weight: 600; }
.tk-spec-v code { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); background: var(--c-bg); border: 1px solid var(--c-line); padding: 1px 6px; border-radius: 6px; }

.tk-mini-ladder { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tk-mini-ladder a { display: inline-grid; place-items: center; width: 42px; height: 28px; border-radius: 8px; background: var(--c-bg); border: 1px solid var(--c-line); font: 600 12px/1 var(--f-mono); color: var(--c); transition: background .15s; }
.tk-mini-ladder a:nth-child(2) { background: color-mix(in srgb, var(--c) 18%, white); }
.tk-mini-ladder a:nth-child(3) { background: color-mix(in srgb, var(--c) 28%, white); }
.tk-mini-ladder a:nth-child(4) { background: color-mix(in srgb, var(--c) 40%, white); color: var(--c); }
.tk-mini-ladder a:nth-child(5) { background: var(--c); color: #fff; border-color: var(--c); }
.tk-mini-ladder a:hover { filter: brightness(.96); }

.tk-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk-opts span { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font: 600 12.5px/1 var(--f-body); color: var(--ink-2); }
.tk-opts span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--c); box-shadow: inset 0 0 0 2px var(--paper); background: var(--c-soft); }

.tk-modes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tk-modes span { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font: 600 12.5px/1 var(--f-body); color: var(--ink); }
.tk-modes svg { width: 16px; height: 16px; color: var(--c); flex: none; }
.tk-modes .or { border: 0; padding: 0; background: none; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

.tk-abl { margin-top: 10px; display: grid; gap: 7px; }
.tk-abl-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.tk-abl-k { font: 500 11px/1.3 var(--f-mono); letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.tk-doms { display: grid; grid-template-columns: repeat(7, 22px); gap: 4px; }
.tk-doms i { height: 22px; border-radius: 6px; background: var(--c); }
.tk-doms i.off { background: var(--paper); border: 1.5px dashed var(--line-2); }
.tk-abl-note { font: 500 11.5px/1.4 var(--f-mono); color: var(--ink-3); }

/* example panel */
.tk-ex { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; }
.tk-ex-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tk-ex-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.tk-ex-src { font-size: 12.5px; color: var(--ink-3); }
.tk-ex-scn { margin: 0 0 12px; font-size: 14.5px; color: var(--ink); }
.tk-ex-scn b { font-weight: 700; }
.tk-ex-k { display: block; font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.tk-eps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-ep { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 12px 11px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.tk-ep b { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); padding-top: 2px; }
.tk-infer { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--c-soft); font-size: 14px; line-height: 1.5; color: var(--ink); }
.tk-infer .tk-ex-k { color: var(--c); margin-bottom: 4px; }

/* the scene: a stand-in photograph (Wikimedia Commons, credits in assets/photos/CREDITS.md) as a duotone in the task colour,
   with the paper's description on a white card. The duotone recipe is the one the home page legend uses. */
.tk-shot { position: relative; margin: 0 0 12px; }
.tk-shot-im { position: relative; aspect-ratio: 2.6 / 1; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c) 26%, #FBF8F2); box-shadow: inset 0 0 0 1px rgba(35, 33, 30, .06); }
.tk-shot-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(1.06); mix-blend-mode: multiply; }
.tk-shot-im::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c) 62%, #1C1A17); mix-blend-mode: lighten; pointer-events: none; }
.tk-shot-cr { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(28, 26, 23, .28); font: 500 10px/1 var(--f-mono); letter-spacing: .04em; color: rgba(255, 255, 255, .86); }
.tk-shot figcaption { position: absolute; z-index: 2; left: 12px; bottom: 12px; max-width: min(64%, 380px); padding: 10px 13px 11px; border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 2px rgba(35, 33, 30, .08), 0 10px 26px -10px rgba(35, 33, 30, .3); }
.tk-shot-k { display: block; margin-bottom: 4px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.tk-shot figcaption p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); font-style: italic; }
.tk-notes { display: grid; gap: 8px; align-content: start; }
.tk-notes.two { grid-template-columns: 1fr 1fr; }
.tk-notes .tk-infer { margin-top: 0; }

/* the exchange: speaker labels instead of avatars */
.tk-chat { margin-top: 14px; display: grid; gap: 10px; }
.tk-msg { display: grid; gap: 5px; justify-items: start; }
.tk-who { font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); padding-left: 12px; }
.tk-msg .b { background: var(--paper); border: 1px solid var(--c-line); border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; font-style: italic; color: var(--ink); max-width: 560px; }
.tk-msg.user { justify-items: end; }
.tk-msg.user .tk-who { color: var(--ink-3); padding-left: 0; padding-right: 12px; }
.tk-msg.user .b { border-radius: 14px 4px 14px 14px; border-color: var(--line); }

/* ---------- 4. the memory ladder ---------- */
.tk-ladder-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 28px 24px; }
.tk-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 16px; }
.tk-lv { position: relative; }
.tk-stack { display: grid; grid-template-rows: repeat(3, 38px); gap: 6px; }
.tk-layer { display: flex; align-items: center; gap: 9px; padding: 0 12px; border-radius: 10px; font: 600 12.5px/1.2 var(--f-body); color: var(--ink); }
.tk-layer.ghost { border: 1px dashed var(--line); color: #CFC7B9; font-weight: 500; justify-content: center; font-size: 11.5px; }
.tk-layer.on .tk-sw { display: block; width: 9px; height: 9px; border-radius: 3px; flex: none; }
.tk-layer.on > div { flex: 1; min-width: 0; }
.tk-layer.on span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-layer.trj { background: var(--ipr-bg); border: 1px solid var(--ipr-line); }
.tk-layer.trj .tk-sw { background: var(--ipr); }
.tk-layer.per { background: #F3EEF9; border: 1px solid #DDD2EC; }
.tk-layer.per .tk-sw { background: #7D63A8; }
.tk-layer.ins { background: #FFF6E3; border: 1px solid #F1E2BD; }
.tk-layer.ins .tk-sw { background: #C8963A; }
.tk-track { display: block; position: relative; height: 5px; margin-top: 5px; border-radius: 99px; background: rgba(47, 127, 150, .14); overflow: hidden; }
.tk-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ipr); }

.tk-lv-dot { position: relative; height: 14px; margin-top: 18px; }
.tk-lv-dot::before { content: ""; position: absolute; left: 0; right: -16px; top: 6.25px; height: 1.5px; background: var(--line-2); }
.tk-lv:first-child .tk-lv-dot::before { left: 50%; }
.tk-lv:last-child .tk-lv-dot::before { right: 50%; }
.tk-lv-dot::after { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ipr); }
.tk-lv.top .tk-lv-dot::after { background: var(--ipr); box-shadow: 0 0 0 4px var(--ipr-soft); }
.tk-lv-code { margin-top: 14px; font: 600 12px/1 var(--f-mono); color: var(--ipr); }
.tk-lv-name { margin: 6px 0 0; font: 700 16px/1.25 var(--f-head); }
.tk-lv-desc { margin: 5px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.tk-lv-add { margin-top: 10px; font: 500 11.5px/1.4 var(--f-mono); color: var(--ipr); }
.tk-lv-add::before { content: "+ "; }
.tk-lv-tag { display: inline-block; margin-top: 10px; padding: 4px 8px; border-radius: 6px; background: var(--c-bg); border: 1px solid var(--c-line); font: 500 11px/1.3 var(--f-mono); color: var(--c); }

.tk-ladder-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.tk-ladder-foot div { padding-left: 16px; border-left: 2px solid var(--line-2); }
.tk-ladder-foot p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tk-ladder-foot b { color: var(--ink); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .tk-decisions { grid-template-columns: repeat(2, 1fr); }
  .tk-task-body { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 960px) {
  .tk-fan { grid-template-columns: 1fr; gap: 14px; }
  .tk-gutter { display: none; }
  .tk-traj::after, .tk-row::before, .tk-row::after { display: none; }
  .tk-spine { flex-direction: row; justify-content: center; gap: 12px; padding: 0 18px; height: 44px; width: max-content; margin: 0 auto; }
  .tk-spine span { writing-mode: horizontal-tb; transform: none; }
  .tk-outs { gap: 10px; }
  .tk-task-head { grid-template-columns: auto 1fr; }
  .tk-pool { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px 0; }
  .tk-stat:first-child { padding-left: 0; }
  .tk-task-body { grid-template-columns: 1fr; gap: 22px; }
  .tk-ladder { grid-template-columns: 1fr; gap: 14px; }
  .tk-lv { display: grid; grid-template-columns: 220px 1fr; gap: 6px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
  .tk-lv:first-child { border-top: 0; padding-top: 0; }
  .tk-stack { grid-row: 1 / span 4; }
  .tk-lv-dot { display: none; }
  .tk-lv-code { margin-top: 0; }
  .tk-lv-add, .tk-lv-tag { margin-top: 2px; justify-self: start; }
  .tk-ladder-foot { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tk-decisions { grid-template-columns: 1fr; }
  .tk-days { grid-template-columns: repeat(12, 1fr); gap: 4px; }
  .tk-day i { width: 8px; height: 8px; }
  .tk-task-head { padding: 18px 20px; gap: 16px; }
  .tk-task-num { font-size: 36px; padding-right: 16px; }
  .tk-task-body { padding: 20px; }
  .tk-eps, .tk-scene-grid { grid-template-columns: 1fr; }
  .tk-lv { grid-template-columns: 1fr; }
  .tk-stack { grid-row: auto; }
  .tk-row-spec { grid-template-columns: 1fr; }
}

/* ---------- 5. what the benchmark found (assets/page-tasks.js draws the marks) ---------- */
.tk-find { padding: 24px 28px 26px; border-top: 1px solid var(--c-line); background: color-mix(in srgb, var(--c-bg) 50%, #fff); --grid: #ECE6DA; }
.tk-find-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4px 40px; align-items: start; margin-bottom: 20px; }
.tk-find-k { grid-column: 1 / -1; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.tk-find-head h4 { margin: 8px 0 0; font: 700 19px/1.3 var(--f-head); letter-spacing: -.012em; color: var(--ink); }
.tk-find-head p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.tk-find-src { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.tk-find-src a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.tk-viz-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 22px 40px; align-items: start; }
.tk-viz-grid.wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
.tk-viz-t { margin-bottom: 12px; font: 600 13.5px/1.35 var(--f-body); color: var(--ink); }
.tk-viz-t small { display: block; margin-top: 2px; font: 400 12px/1.4 var(--f-body); color: var(--ink-3); }
.tk-viz-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* row charts */
.tk-rc { display: grid; grid-template-columns: var(--cols, 150px minmax(0, 1fr) 48px 52px); column-gap: 14px; align-items: center; }
.tk-rc-ladder { --cols: 156px minmax(0, 1fr) 46px 52px 148px; }
.tk-rc-dumb { --cols: 150px minmax(0, 1fr) 42px 42px; }
.tk-rc-strip { --cols: 124px minmax(0, 1fr) 150px; }
.tk-rc-s1 { --cols: 176px minmax(0, 1fr) 48px; }
.tk-rc-h { align-self: end; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.tk-rc-h.v { text-align: right; }
.tk-rc-h .tk-key { margin: 0 5px 0 0; vertical-align: -1px; }
.tk-rc-l { min-width: 0; font: 600 12.5px/1.3 var(--f-body); color: var(--ink); }
.tk-rc-l b { display: inline-block; width: 24px; font: 600 11px/1 var(--f-mono); color: var(--c); }
.tk-rc-l small { display: block; font: 400 11px/1.35 var(--f-body); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-rc-ladder .tk-rc-l small { padding-left: 24px; }
.tk-rc-v { text-align: right; font: 600 12.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.tk-rc-v.step { color: var(--ink-3); font-weight: 500; }
.tk-rc-b { min-width: 0; font: 500 11.5px/1.35 var(--f-mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-rc-b b { display: block; font-weight: 600; color: var(--ink); }
.tk-rc-b small { color: var(--ink-3); }
.tk-trk { position: relative; height: 40px; background-image: var(--grid-img); }
.tk-trk.tall { height: 58px; }
.tk-rc-dumb .tk-trk { height: 34px; }
.tk-mk { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #fff; opacity: .78; }
.tk-mk::before { content: ""; position: absolute; inset: -6px; }   /* hit target */
.tk-mk.hollow { background: #fff; box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1.5px var(--c); opacity: 1; }
.tk-mk.sq { border-radius: 1.5px; }
.tk-mk.top { width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c); z-index: 2; }
.tk-mk:focus-visible, .tk-mean:focus-visible, .tk-segbar span:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tk-rc-dumb .tk-mk { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; opacity: 1; }
.tk-rc-s1 .tk-mk { width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: 1; }
.tk-mean { position: absolute; top: 5px; bottom: 5px; width: 2.5px; margin-left: -1.25px; border-radius: 2px; background: var(--ink); z-index: 3; }
.tk-mean::before { content: ""; position: absolute; inset: 0 -5px; }
.tk-chance, .tk-zero { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--ink-3); opacity: .55; }
.tk-seg { position: absolute; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--c); opacity: .3; }
.tk-ax { position: relative; height: 20px; }
.tk-ax span { position: absolute; top: 5px; transform: translateX(-50%); font: 500 10.5px/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.tk-ax span.chance { color: var(--ink-2); transform: translateX(-4px); }
.tk-ax span:first-child { transform: translateX(0); }
.tk-ax span:first-child.chance { transform: translateX(-4px); }

/* legend swatches */
.tk-key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; background: var(--c); }
.tk-key.hollow { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }
.tk-key.sq { border-radius: 1.5px; }
.tk-key.line { width: 1.5px; height: 11px; border-radius: 0; margin-right: 6px; vertical-align: -2px; background: var(--ink-3); }
.tk-key-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.tk-key-row b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.tk-key-row small { margin-left: 6px; font: 500 10.5px/1 var(--f-mono); color: var(--ink-3); }
.tk-key-row .tk-key { border-radius: 2px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.tk-key-row .tk-key.on { background: var(--c); box-shadow: none; }

/* the waffle: one square per anchor event */
.tk-waffle { display: grid; grid-template-columns: repeat(25, 9px); gap: 2px; }
.tk-waffle i { width: 9px; height: 9px; border-radius: 2px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.tk-waffle i.on { background: var(--c); box-shadow: none; }

/* the tall segmented bar: one whole, three parts */
.tk-segbar { display: flex; gap: 2px; height: 28px; max-width: 420px; }
.tk-segbar span { display: flex; align-items: center; min-width: 0; padding-left: 8px; border-radius: 4px; font: 600 12px/1 var(--f-mono); }

/* the S2 callout: a hero number and three small bars */
.tk-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--c-line); }
.tk-hero b { font: 800 38px/1 var(--f-head); letter-spacing: -.03em; color: var(--ink); }
.tk-hero span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.tk-hero em { font-style: normal; font-weight: 600; color: var(--ink); }
.tk-bars { margin-top: 16px; }
.tk-bars-t { font: 600 12.5px/1.35 var(--f-body); color: var(--ink); }
.tk-bars-t small { display: block; font: 400 11.5px/1.4 var(--f-body); color: var(--ink-3); }
.tk-bar { display: grid; grid-template-columns: 82px minmax(0, 1fr) 40px; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.tk-bar .t { position: relative; height: 14px; border-left: 1px solid var(--line-2); }
.tk-bar .t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--c); }
.tk-bar b { text-align: right; font: 600 12px/1 var(--f-mono); color: var(--ink); }

/* table twin and tooltip */
.tk-tbl { margin-top: 10px; }
.tk-tbl summary { display: inline-block; cursor: pointer; list-style: none; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); }
.tk-tbl summary::-webkit-details-marker { display: none; }
.tk-tbl summary::before { content: "+ "; }
.tk-tbl[open] summary::before { content: "\2212  "; }
.tk-tbl summary:hover { color: var(--ink); }
.tk-tbl table { margin-top: 8px; border-collapse: collapse; font: 12px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tk-tbl caption { text-align: left; margin-bottom: 6px; font-size: 11.5px; color: var(--ink-3); }
.tk-tbl th, .tk-tbl td { padding: 4px 14px 4px 0; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tk-tbl th:first-child, .tk-tbl td:first-child { text-align: left; }
.tk-tbl thead th { font-weight: 500; color: var(--ink-3); }
.tk-tbl tbody th { font-weight: 500; color: var(--ink); }
.tk-tbl small { color: var(--ink-3); }
.tk-tip { position: absolute; z-index: 60; transform: translate(-50%, calc(-100% - 10px)); padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #FFFDF8; font: 500 11.5px/1.3 var(--f-body); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; }
.tk-tip.on { opacity: 1; }

@media (max-width: 1060px) {
  .tk-rc-ladder { --cols: 140px minmax(0, 1fr) 44px 50px; }
  .tk-rc-ladder .tk-rc-b, .tk-rc-ladder .tk-rc-h.b { display: none; }
}
@media (max-width: 960px) {
  .tk-find { padding: 22px 20px 24px; }
  .tk-find-head, .tk-viz-grid, .tk-viz-grid.wide { grid-template-columns: 1fr; }
  .tk-shot figcaption { max-width: min(72%, 380px); }
}
@media (max-width: 620px) {
  .tk-shot-im { aspect-ratio: 2 / 1; }
  .tk-shot figcaption { position: static; max-width: none; margin-top: 8px; padding: 0 2px; background: none; box-shadow: none; }
  .tk-notes.two { grid-template-columns: 1fr; }
  .tk-rc, .tk-rc-ladder, .tk-rc-dumb, .tk-rc-strip, .tk-rc-s1 { --cols: 96px minmax(0, 1fr) 40px; column-gap: 8px; }
  .tk-rc-dumb { --cols: 96px minmax(0, 1fr) 36px 36px; }
  .tk-rc-strip { --cols: 96px minmax(0, 1fr); }
  .tk-rc-strip .tk-rc-b, .tk-rc-strip .tk-rc-h.b, .tk-rc-ladder .tk-rc-v.step, .tk-rc-ladder .tk-rc-h.step { display: none; }
  .tk-rc-ladder .tk-rc-l b { display: none; }
  .tk-rc-l small { display: none; }
  .tk-waffle { grid-template-columns: repeat(25, 7px); gap: 2px; }
  .tk-waffle i { width: 7px; height: 7px; }
}
