/* The timeline page: an editorial long read with charts. Loaded after design.css. */

.tl-page {
  --tl-text: 40rem;
  --tl-wide: 64rem;
  --tl-grid: #ffffff14;
  --tl-axis: #a59c90;
  position: relative;
  width: min(var(--tl-wide), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.tl-head { max-width: var(--tl-text); margin: 0 auto 40px; }
.tl-kicker { color: var(--accent); font-family: var(--font-mono); font-size: var(--text-caption); letter-spacing: .12em; text-transform: uppercase; }
.tl-head h1 { margin: 12px 0 0; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; }
.tl-standfirst { margin: 18px 0 0; color: var(--ink-soft); font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; }
.tl-byline { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--fog); font-size: var(--text-caption); }

/* Long-form text */
.tl-section { margin: 72px auto 0; }
.tl-section > h2, .tl-section > p { max-width: var(--tl-text); margin-left: auto; margin-right: auto; }
.tl-section > h2 { margin-bottom: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.tl-section > p { margin-top: 16px; margin-bottom: 0; color: var(--ink-soft); font-family: var(--font-display); font-size: 1.125rem; line-height: 1.65; }
.tl-section > p em { font-style: italic; }
.tl-film { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-style: italic; text-decoration: underline; text-decoration-color: #ef7a5c80; text-underline-offset: 3px; cursor: pointer; }
.tl-film:hover { color: var(--accent); background: none; }

/* Figures */
.tl-fig, .tl-hero { margin: 32px auto 0; }
.tl-fig { max-width: 56rem; }
.tl-fig-head h2, .tl-fig-head h3 { margin: 0; font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.tl-fig-head p { margin: 4px 0 0; color: var(--muted); font-size: var(--text-meta); line-height: 1.45; }
.tl-chart { margin-top: 14px; }
.tl-chart svg { display: block; overflow: visible; }
.tl-source { margin: 10px 0 0; color: var(--fog); font-size: var(--text-caption); line-height: 1.5; }
.tl-source a { color: var(--ink-soft); }
.tl-fig-head, .tl-source { padding-top: 0; }
.tl-fig { padding-top: 14px; border-top: 1px solid var(--line-strong); }

.tl-axis { fill: var(--tl-axis); font-size: 12px; font-variant-numeric: tabular-nums; }
.tl-grid { stroke: var(--tl-grid); stroke-width: 1; }
.tl-base { stroke: #ffffff33; }
.tl-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tl-dot { stroke: var(--canvas); stroke-width: 2; }
.tl-annot { fill: var(--ink-soft); font-size: 12px; font-weight: 550; paint-order: stroke; stroke: var(--canvas); stroke-width: 3px; stroke-linejoin: round; }
.tl-hit { fill: transparent; }
.tl-row-label { fill: var(--ink-soft); font-size: 13px; }
.tl-link { stroke: #ef7a5c80; stroke-width: 2; }
.tl-ring { fill: var(--canvas); stroke: var(--ink-soft); stroke-width: 2; }

.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 8px; color: var(--muted); font-size: var(--text-caption); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.tl-key-line { width: 16px; height: 3px; border-radius: 2px; }
.tl-key-ring { border: 2px solid var(--ink-soft); background: var(--canvas); }
.tl-legend-note { margin-left: auto; }



/* Tooltip */
.tl-tip { position: fixed; top: 0; left: 0; z-index: 40; max-width: min(300px, calc(100vw - 16px)); padding: 9px 11px; border: 1px solid #756452; border-radius: var(--radius-s); background: #1d1815; box-shadow: 0 12px 30px #0009; color: var(--ink); font-size: var(--text-caption); line-height: 1.45; pointer-events: none; }
.tl-tip strong { display: block; font-weight: 650; }
.tl-tip span { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }

/* The hero timeline */
.tl-hero { width: min(1120px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line-strong); }

.tl-method { padding-top: 28px; border-top: 1px solid var(--line); }
.tl-method > p { font-family: var(--font-ui); font-size: var(--text-meta); line-height: 1.65; color: var(--muted); }
.tl-method > p strong { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 700px) {
  .tl-page { padding-top: 32px; }
  .tl-section { margin-top: 56px; }
  .tl-legend-note { margin-left: 0; }
}

/* Links from the atlas to the timeline */
.atlas-timeline-link { color: var(--accent); font-size: var(--text-caption); text-decoration: none; }
.atlas-timeline-link:hover { text-decoration: underline; }
.atlas-options-popover .atlas-timeline-link { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.tl-link-down { stroke: #6f9bd199; stroke-width: 2; }

/* Stories that came back: posters on a shared time axis */
.tl-rev-row { padding: 10px 0 2px; border-top: 1px solid var(--line); }
.tl-rev-title { font-size: var(--text-meta); color: var(--muted); }
.tl-rev-title .tl-film { font-family: var(--font-display); font-size: 1.05rem; }
.tl-rev-track { position: relative; }
.tl-rev-poster { position: absolute; top: 18px; display: grid; gap: 2px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--fog); font-size: 11px; text-align: center; cursor: pointer; }
.tl-rev-poster.lift { top: 4px; }
.tl-rev-poster img { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 3px; object-fit: cover; background: var(--raised); opacity: .82; box-shadow: 0 0 0 1px #ffffff12; }
.tl-rev-poster.main img { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.tl-rev-poster:hover { background: none; color: var(--ink); }
.tl-rev-poster:hover img { opacity: 1; }
.tl-rev-axis { position: relative; height: 22px; border-top: 1px solid var(--line-strong); }
.tl-rev-axis span { position: absolute; top: 4px; transform: translateX(-50%); color: var(--tl-axis); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Methods foldout */
.tl-methods { margin-top: 88px; }
.tl-methods-fold { border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: var(--surface); }
.tl-methods-fold > summary { display: grid; gap: 4px; padding: 22px 26px; cursor: pointer; list-style: none; }
.tl-methods-fold > summary::-webkit-details-marker { display: none; }
.tl-methods-fold > summary::after { content: "Show ⌄"; justify-self: start; margin-top: 6px; color: var(--accent); font-size: var(--text-caption); }
.tl-methods-fold[open] > summary::after { content: "Hide ⌃"; }
.tl-methods-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.2; color: var(--ink); }
.tl-methods-hint { color: var(--muted); font-size: var(--text-meta); }
.tl-methods-body { padding: 0 26px 30px; }
.tl-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.tl-step-num { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }
.tl-step-body h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.tl-step-body > p { max-width: var(--tl-text); margin: 10px 0 0; color: var(--ink-soft); line-height: 1.65; }
.tl-step-body .tl-fig { margin-top: 18px; max-width: none; }
.tl-fig-head h4 { margin: 0; font-size: 1rem; font-weight: 650; }
.tl-src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; margin-top: 16px; }
.tl-src-group h5 { margin: 0 0 6px; color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.tl-src-group ul { margin: 0; padding: 0; list-style: none; }
.tl-src-group li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: var(--text-caption); color: var(--ink-soft); }
.tl-ver { flex: 0 0 auto; color: var(--fog); font-size: 11px; }
.tl-ver-direct { color: var(--muted); }
.tl-ver-secondary { color: #c9a06a; }
.tl-example { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; margin-top: 16px; }
.tl-example-in, .tl-example-out { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--sunken); font-size: var(--text-meta); line-height: 1.55; color: var(--ink-soft); }
.tl-example-in p, .tl-example-out p { margin: 6px 0 0; }
.tl-example-out ol { margin: 6px 0 0; padding-left: 20px; color: var(--ink); }
.tl-example-label { color: var(--fog); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tl-example-arrow { align-self: center; color: var(--accent); font-size: 1.4rem; }
.tl-example-film { color: var(--muted); }
.tl-checks { width: 100%; margin-top: 14px; font-size: 13px; }
.tl-checks th[scope="row"] { color: var(--ink-soft); font-weight: 400; white-space: normal; }
.tl-checks td:last-child { min-width: 0; }
.tl-verdict { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.tl-verdict-pass { background: #0ca30c26; color: #8fd88f; }
.tl-verdict-edge { background: #fab21926; color: #f3cd7a; }
.tl-verdict-fail { background: #d03b3b2e; color: #f19a9a; }
.tl-bandlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; }
.tl-bandlist li { display: grid; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--text-caption); }
.tl-bandlist strong { color: var(--ink); font-weight: 600; }
.tl-bandlist span { color: var(--fog); }
.tl-xw-scroll { overflow-x: auto; }
.tl-xw-family { fill: #ffffff08; }
.tl-xw-pass { fill: var(--accent); stroke: var(--accent); stroke-width: 1.5; }
.tl-xw-fail { fill: none; stroke: #888780; stroke-width: 1.5; }
.tl-xw-dot { fill: var(--accent); }
.tl-xw-empty { fill: var(--line); }
.tl-strong { fill: var(--ink); font-weight: 600; }
.tl-small { font-size: 10.5px; }
.tl-key-square { border-radius: 2px; background: var(--accent); }
.tl-key-hollow { border-radius: 2px; border: 1.5px solid #888780; background: transparent; }
@media (max-width: 700px) {
  .tl-methods-fold > summary, .tl-methods-body { padding-left: 16px; padding-right: 16px; }
  .tl-step { grid-template-columns: 1fr; }
  .tl-example { grid-template-columns: 1fr; }
  .tl-example-arrow { transform: rotate(90deg); justify-self: center; }
}
.tl-checks th, .tl-checks td { text-align: left; }

.tl-plateau { stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 0; opacity: .7; }
.tl-robust { font-size: 12.5px; }
.tl-robust th[scope="row"] { min-width: 15rem; white-space: normal; color: var(--ink-soft); font-weight: 400; }
.tl-robust thead th { white-space: normal; min-width: 5.5rem; }
.tl-robust td.tl-ok { color: #8fd88f; }
.tl-robust td.tl-no { color: #f19a9a; }
.tl-robust tr.tl-failed th { color: var(--fog); }
.tl-step-body { min-width: 0; }
@media (max-width: 700px) {
  .tl-step { grid-template-columns: minmax(0, 1fr); }
}

/* Top section: small multiples of the subject families, then the open family's subjects */
.tl-hero .tl-fig-head h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; letter-spacing: -.01em; }
.tl-hero .tl-fig-head, .tl-hero .tl-source { max-width: 80ch; }
.tl-hero .tl-chart { margin-top: 28px; }
.tl-sm-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 36px var(--gap); }
.tl-sm { display: block; width: 100%; min-width: 0; min-height: 0; white-space: normal; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tl-sm:hover { background: none; }
.tl-sm:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.tl-sm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; }
.tl-sm-name, .tl-sm-share { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.tl-sm-name { min-width: 0; }
.tl-sm-share { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.tl-sm-chart { display: block; overflow: visible; }
.tl-sm-line { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linejoin: round; }
.tl-sm-peak { fill: var(--ink); }
.tl-sm-note { fill: var(--ink-soft); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tl-sm:hover .tl-sm-line { stroke: var(--ink); }
.tl-sm.on .tl-sm-line { stroke: var(--accent); stroke-width: 2; }
.tl-sm.on .tl-sm-peak { fill: var(--accent); }
.tl-sm.on .tl-sm-note { fill: var(--accent); }
.tl-sm .tl-hit:hover { fill: #ffffff0d; }

.tl-subjects { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.tl-subjects-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 18px; }
.tl-subjects-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.tl-subjects-head p { margin: 0; color: var(--fog); font-size: var(--text-caption); }
.tl-subjects .tl-sm-grid { row-gap: 24px; }
.tl-sm.small .tl-sm-head { padding-bottom: 4px; }
.tl-sm.small .tl-sm-name, .tl-sm.small .tl-sm-share { color: var(--muted); font-family: var(--font-ui); font-size: var(--text-meta); }
.tl-sm.small.other .tl-sm-name { font-style: italic; }
.tl-sm.small.on .tl-sm-name, .tl-sm.small.on .tl-sm-share, .tl-sm.small:hover .tl-sm-name { color: var(--ink); }

.tl-films { margin-top: 30px; }
.tl-films-head { margin: 0 0 10px; color: var(--fog); font-size: var(--text-caption); }
.tl-films-head strong { color: var(--ink); font-weight: 600; }
.tl-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.tl-strip-film { display: grid; gap: 4px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--fog); font-size: 11px; font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; }
.tl-strip-film:hover { background: none; color: var(--ink); }
.tl-strip-film img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 2px; object-fit: cover; background: var(--raised); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.tl-strip-film:hover img, .tl-strip-film:focus-visible img { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent); }

@media (max-width: 700px) {
  .tl-hero { margin-top: 40px; }
  .tl-hero .tl-fig-head h2 { font-size: 1.4rem; }
  .tl-sm-grid { row-gap: 26px; }
  /* Names may wrap to two lines on phones; a fixed head height keeps each row's charts level. */
  .tl-sm-head { min-height: 2.5em; align-items: flex-end; }
  .tl-sm-name, .tl-sm-share { font-size: 1rem; }
  .tl-sm.small .tl-sm-head { min-height: 2.9em; }
  .tl-subjects-head { display: block; }
  .tl-subjects-head p { margin-top: 4px; }
  .tl-strip { grid-auto-columns: 76px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
}

.tl-sm-line.thin { stroke-dasharray: 1.5 3; stroke-linecap: round; stroke-opacity: .7; }
.tl-sm.on .tl-sm-line.thin { stroke-width: 1.6; }
.tl-rev-strip { display: flex; gap: 8px; margin: 10px 0 12px; padding: 2px 2px 4px; overflow-x: auto; scrollbar-width: none; }
.tl-rev-strip .tl-rev-poster { position: static; flex: 0 0 46px; }


/* Franchises: each franchise's entries and their ratings */
.tl-fr-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 22px var(--gap); margin-top: 14px; }
.tl-fr-name { margin: 0 0 4px; overflow: hidden; color: var(--ink); font-family: var(--font-display); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.tl-fr svg { display: block; overflow: visible; }
.tl-fr-line { fill: none; stroke: var(--ink-soft); stroke-opacity: .55; stroke-width: 1.4; }
.tl-fr-dot { fill: var(--ink-soft); cursor: pointer; }
.tl-fr-dot.first { fill: var(--accent); stroke: var(--canvas); stroke-width: 1.5; }
.tl-fr-dot.comeback { fill: var(--canvas); stroke: var(--ink); stroke-width: 1.5; }
.tl-fr-dot:hover { stroke: var(--ink); stroke-width: 2; }
.tl-key-open { border: 1.5px solid var(--ink); background: var(--canvas); }
.tl-era { stroke: var(--fog); stroke-width: 2; stroke-linecap: round; }
.tl-era-band { fill: #ffffff07; }
.tl-era-label { fill: var(--muted); font-size: 11px; }

/* Opening paragraph after the standfirst */
.tl-intro { margin: 16px 0 0; color: var(--muted); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.6; }
.tl-byline a { color: var(--ink-soft); }

/* Methods: the pipeline at a glance, then one step per section */
.tl-pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 8px 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.tl-pipe li { position: relative; display: grid; align-content: start; gap: 2px; padding: 16px 14px 16px 0; }
.tl-pipe li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.tl-pipe-n { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.tl-pipe strong { color: var(--ink); font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tl-pipe-label { color: var(--ink-soft); font-size: var(--text-meta); font-weight: 600; }
.tl-pipe small { color: var(--fog); font-size: 12px; line-height: 1.4; }
.tl-notes { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.tl-notes h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; }
.tl-notes p { margin: 8px 0 0; color: var(--muted); font-size: var(--text-caption); line-height: 1.6; }
.tl-notes strong { color: var(--ink-soft); font-weight: 600; }
.tl-total th, .tl-total td { border-top: 1px solid var(--line-strong); font-weight: 650; }
@media (max-width: 760px) {
  .tl-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-pipe li, .tl-pipe li + li { padding: 14px 10px 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .tl-pipe li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .tl-pipe li:nth-child(-n+2) { border-top: 0; }
  .tl-pipe strong { font-size: 1.6rem; }
}
.tl-more { margin-top: 18px; min-height: 34px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: var(--text-caption); }
.tl-more:hover { border-color: var(--fog); background: transparent; color: var(--ink); }

/* Fame: the canon against all films, and fame against rating */
.tl-reach-dot { fill: var(--ink-soft); fill-opacity: .28; cursor: pointer; }
.tl-reach-dot.famous { fill: var(--accent); fill-opacity: .85; }
.tl-reach-dot:hover { fill-opacity: 1; stroke: var(--ink); }

/* The birth-year picker */
.tl-year { max-width: 40rem; margin: 40px auto 0; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); }
.tl-year label { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; }
.tl-year-pick { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.tl-year-pick input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); }
.tl-year-pick button { flex: 0 0 auto; width: 34px; min-height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.1rem; line-height: 1; }
.tl-year-pick button:hover { border-color: var(--fog); background: transparent; color: var(--ink); }
.tl-year-num { flex: 0 0 auto; min-width: 3.2ch; color: var(--accent); font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-year-out { margin: 12px 0 0; color: var(--ink-soft); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.55; }

/* Citations and references */
.tl-cite { margin-left: 1px; font-family: var(--font-ui); font-size: .62em; line-height: 0; }
.tl-cite a { color: var(--accent); text-decoration: none; }
.tl-refs ol { margin: 10px 0 0; padding-left: 1.4em; color: var(--muted); font-size: var(--text-caption); line-height: 1.6; }
.tl-refs li + li { margin-top: 4px; }
.tl-change { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tl-change.up { fill: var(--accent); }
.tl-change.down { fill: #6f9bd1; }
.tl-era-film { fill: var(--ink-soft); font-style: italic; }
.tl-fade-top { stop-color: var(--ink); stop-opacity: .14; }
.tl-fade-bottom { stop-color: var(--ink); stop-opacity: 0; }
.tl-sm.on .tl-fade-top { stop-color: var(--accent); stop-opacity: .45; }
.tl-sm.on .tl-fade-bottom { stop-color: var(--accent); stop-opacity: .02; }

/* Diverging bars for the canon */
.tl-div.up { fill: var(--accent); fill-opacity: .85; }
.tl-div.down { fill: #6f9bd1; fill-opacity: .8; }

/* Countries: small area charts, not clickable */
.tl-sm.static { cursor: default; }
.tl-geo .tl-sm-name { font-family: var(--font-ui); font-size: var(--text-meta); color: var(--ink-soft); }

/* Keyword ridgeline */
.tl-ridge-area { fill: color-mix(in srgb, var(--accent) 22%, var(--canvas)); }
.tl-ridge-line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.tl-ridge-peak { fill: var(--ink); }
.tl-ridge.weak .tl-ridge-line, .tl-ridge.weak .tl-row-label { opacity: .45; }
.tl-ridge.weak .tl-ridge-area { fill: color-mix(in srgb, var(--accent) 9%, var(--canvas)); }
.tl-ridge:hover .tl-ridge-area { fill: color-mix(in srgb, var(--accent) 38%, var(--canvas)); }

/* Signature nightmare cards */
.tl-sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: 14px; }
.tl-sig { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.tl-sig-poster { flex: 0 0 64px; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: none; cursor: pointer; }
.tl-sig-poster img { display: block; width: 64px; aspect-ratio: 2 / 3; border-radius: 3px; object-fit: cover; background: var(--raised); }
.tl-sig-body { display: grid; align-content: start; gap: 2px; min-width: 0; }
.tl-sig-country { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.tl-sig-ratio { color: var(--accent); font-family: var(--font-display); font-size: 2.1rem; font-weight: 400; line-height: 1.05; }
.tl-sig-theme { color: var(--ink-soft); font-size: var(--text-meta); font-weight: 600; }
.tl-sig-share, .tl-sig-film { color: var(--fog); font-size: 12px; line-height: 1.4; }
.tl-reach-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.tl-reach-n { fill: var(--ink); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: var(--canvas); stroke-width: 3px; }
.tl-reach-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 14px; }
.tl-reach-card { display: flex; gap: 10px; align-items: center; min-width: 0; min-height: 0; overflow: hidden; padding: 8px; font: inherit; font-weight: 400; line-height: 1.35; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent; color: var(--ink-soft); font-size: var(--text-caption); text-align: left; cursor: pointer; }
.tl-reach-card:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); transform: none; }
.tl-reach-card img { flex: 0 0 34px; width: 34px; aspect-ratio: 2 / 3; border-radius: 2px; object-fit: cover; }
.tl-reach-card b { color: var(--accent); }
.tl-reach-card small { display: block; margin-top: 2px; color: var(--fog); font-size: 11.5px; }
