/* ============================================
   Timeline Negative Scanner landing page (/timeline-negative-scanner/),
   built 2026-11-28 on the homepage's reading layer in Timeline Upright's
   order (css/timeline-upright.css, whose shared blocks are repeated here
   with a tn- prefix so the two pages can change apart).

   The page loads css/easy-read.css AFTER this file and borrows the
   homepage's blocks (hp-hero, hp-promises, hp-steps, hp-anim-toggle,
   hp-door, hp-does__icon, hp-sort__label, hp-print, hp-year). Where an
   element carries an hp- class and a tn- class, the rule here names two
   classes, because easy-read.css wins every tie.

   Rules of the page, as on the homepage: one idea to a screen, a picture
   for every idea, nothing a visitor reads under 17px, every button at least
   56px tall, long answers behind a click.

   Pictures: the hero scanner image is based on the owner's V600 photo.
   The snapshots and the shoebox are generated placeholders. Every negative
   is made from its photo (scratchpad build_tn_images.py, kept in
   output/negative-scanner-page-2026-11-28/), so a frame and the photo it
   becomes always match.
   ============================================ */

/* ---------- Product accent ----------
   The app icon's rust and amber (design/icon-choices, 05D): distinct from
   FrontBack's cyan, Upright's scanner blue, the tagger's brick red and
   Timeline Scan's amber. The footer band carries it. --tn-crop is the
   app's own frame-box cyan (COLORS['crop'] in negativescanner/app.py). */
body[data-product="timelinenegativescanner"] {
  --product-accent: #8A3B17;
  --product-accent-hover: #742F11;
  --product-accent-soft: rgba(138, 59, 23, 0.10);
  --product-accent-contrast: var(--contrast-light);
  --tn-base: #ED995E;
  --tn-crop: #31D7DB;
  --tn-good: #3F6B47;
  --tn-good-soft: rgba(63, 107, 71, 0.12);
  --tn-no: #A23B30;
  --tn-no-soft: rgba(162, 59, 48, 0.10);
}

[data-theme="dark"] body[data-product="timelinenegativescanner"] {
  --product-accent: #F0B266;
  --product-accent-hover: #F5C68A;
  --product-accent-soft: rgba(240, 178, 102, 0.14);
  --product-accent-contrast: #2A1608;
  --tn-base: #D98A52;
  --tn-crop: #31D7DB;
  --tn-good: #8DBB92;
  --tn-good-soft: rgba(141, 187, 146, 0.16);
  --tn-no: #E0785F;
  --tn-no-soft: rgba(224, 120, 95, 0.16);
}

/* Platform glyph on a download control (the .btn__os contract every
   product stylesheet redeclares; an unmatched SVG renders full width). */
.btn__os {
  flex: none;
  margin-right: 0.55em;
  vertical-align: -0.16em;
}
.btn__os--mac { width: 1.05em; height: 1.05em; }
.btn__os--win { width: 0.92em; height: 0.92em; }

/* ---------- The two downloads ----------
   Mac then Windows, always a matched pair: stacked one under the other in
   the hero and the $0 card (one track as wide as the wider label, both
   buttons filling it), side by side in the closing band. */
.tn-dl {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  justify-items: stretch;
  gap: 0.7rem;
}

.tn-dl--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.hp65 .tn-dl .btn.hp-btn {
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  font-size: 1.15rem;
  white-space: nowrap;
}

/* The Pause button under a clip. Hidden until the script is running and
   motion is allowed (anything that moves for more than five seconds needs
   a stop button). */
.tn-clip__ctrl {
  min-height: 48px;
  margin: 0.9rem 0 0;
  text-align: center;
}

/* ---------- How it works: three picture steps ---------- */

/* The picture fills the top of its card; the step number sits on the strip
   under it, as on FrontBack Scanner's page. */
.hp-step__pic.tn-step__pic { display: grid; align-items: stretch; padding: 0 0 1.9rem; }

/* The app's two ways in, by the names on its first screen. */
.tn-ways {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.6rem;
  margin: 2rem 0 0;
  padding: 0;
}
.tn-way {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.8rem 1.5rem 0.8rem 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.tn-way .hp-does__icon { flex: none; width: 3.2rem; height: 3.2rem; }
.tn-way .hp-does__icon svg { width: 1.7rem; height: 1.7rem; }
.tn-way__words {
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  line-height: 1.3;
}
.tn-way__words b { font-size: 1.1rem; color: var(--text-primary); }
.tn-way__words span { font-size: 1rem; color: var(--text-secondary); }

/* --- Step two of the job is Timeline Scan's: one card, a link down --- */

.tn-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  max-width: 58rem;
  margin: 2.4rem auto 0;
  padding: 1.4rem 1.8rem;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.tn-next__num {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--contrast-light);
  font: 700 1.65rem/3.2rem var(--font-display);
  text-align: center;
}
[data-theme="dark"] .tn-next__num { color: var(--bg-primary); }
.tn-next__kicker {
  margin: 0 0 0.2rem;
  font: 700 1rem/1.3 var(--font-ui);
  color: var(--accent);
}
.hp65 .tn-next h3 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.2;
}
.tn-next__chips,
.tn-ts__row dt {
  font-family: var(--font-ui);
  color: var(--text-secondary);
}
.tn-next__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.tn-next__chips li { display: inline-flex; align-items: center; gap: 0.4rem; }
.tn-next__chips svg,
.tn-ts__row dt svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp65 .btn.tn-next__btn {
  min-height: 56px;
  padding: 0.7rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- What it does: six one-line tiles ---------- */

.tn-does {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2.2rem 0 0;
  padding: 0;
}
.tn-does li,
.tn-ts__list li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.tn-does li {
  padding: 1.1rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.hp65 .tn-does h3,
.hp65 .tn-ts__list h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  line-height: 1.2;
}
.tn-does p,
.tn-ts__list p {
  margin: 0;
  font: 400 1.05rem/1.45 var(--font-ui);
  color: var(--text-secondary);
}
/* How often it is right (#accuracy): the number, one line, and a quiet
   "How we tested it" door, like /accuracy/'s orientation card. */
.tn-proof {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 1.6rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.hp65 p.tn-proof__num {
  margin: 0;
  font: 700 3.4rem/1 var(--font-display);
  color: var(--accent);
}
.hp65 .tn-proof__title {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  line-height: 1.25;
}
.hp65 p.tn-proof__sub {
  margin: 0.35rem 0 0;
  font: 400 1.05rem/1.45 var(--font-ui);
  color: var(--text-secondary);
}
.hp-door.tn-proof__more { max-width: none; margin: 0.4rem 0 0; text-align: left; }
.hp-door.tn-proof__more summary { padding-left: 0; padding-right: 0; }
.hp-door.tn-proof__more .hp-door__body a { margin-right: 0; }

.hp-door.tn-door { margin-top: 1.6rem; }
.hp-door.tn-door code { font-size: 1em; }
/* A link inside a sentence, not the row of links the shared door body expects. */
.hp-door.tn-door .hp-door__body li a { margin-right: 0; }

/* ---------- Timeline Scan: what the developed film becomes (#dates) ---------- */

.tn-ts__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font: 700 1.05rem/1.2 var(--font-ui);
  color: var(--accent);
}
.tn-ts__kicker .nav__logo-icon { height: 2.2rem; }

.tn-ts__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2.6rem;
  margin-top: 2.4rem;
}

/* The developed photos, an arrow, what comes back, then the box in order. */
.tn-ts__pic {
  margin: 0;
  padding: 1.5rem 1.5rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.tn-ts__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
  align-items: center;
  gap: 1.1rem;
}
.tn-ts__pic .hp-sort__label {
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}
.tn-ts__pic .hp-sort__label b { white-space: nowrap; }
/* What goes in is not a problem here, so not the homepage's red: the app's blue. */
.tn-ts__pic .hp-sort__label.tn-ts__from b {
  background: var(--product-accent);
  color: var(--product-accent-contrast);
}

.tn-ts__line .hp-print img { aspect-ratio: 3 / 2; }

.tn-ts__arrow svg { transform: rotate(-90deg); }

.tn-ts__rows { display: grid; margin: 0; }
.tn-ts__row {
  padding: 0.7rem 0;
  border-top: 1px solid var(--border-light);
}
.tn-ts__row:first-child { padding-top: 0.2rem; border-top: 0; }
.tn-ts__row:last-child { padding-bottom: 0; }
.tn-ts__row dt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.tn-ts__row dd {
  margin: 0.2rem 0 0;
  font: 700 1.15rem/1.35 var(--font-ui);
  color: var(--text-primary);
}

/* The box in order: three prints standing on a line, each with its year. */
.tn-ts__order {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--hp-dash);
}
.tn-ts__line {
  position: relative;
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0 1.6rem 1.7rem 0.4rem;
  padding: 0;
}
.tn-ts__line .hp-print.tn-ts__print { z-index: 1; padding: 0.25rem; }
.tn-ts__line::after {
  content: '';
  position: absolute;
  left: -0.4rem;
  right: -1rem;
  bottom: -0.65rem;
  height: 4px;
  border-radius: 2px;
  background: var(--text-primary);
}
.tn-ts__line::before {
  content: '';
  position: absolute;
  right: -1.8rem;
  bottom: calc(-0.65rem - 7px);
  border-left: 16px solid var(--text-primary);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.tn-ts__line .hp-year { font-size: 1rem; }

.tn-ts__list {
  list-style: none;
  display: grid;
  gap: 1.2rem;
  margin: 0 0 1.8rem;
  padding: 0;
}

.tn-ts__act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.tn-ts__then {
  margin: 0;
  font: 600 1rem/1.4 var(--font-ui);
}
.tn-ts__then a,
.tn-ts__note a,
.tn-free__ts a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hp-price__facts.tn-ts__facts { margin-top: 2.4rem; gap: 0.5rem 1.6rem; font-size: 1rem; }
.tn-ts__facts code { font-size: 1em; }

.tn-ts__note {
  max-width: 42rem;
  margin: 1rem auto 0;
  font: 400 1rem/1.5 var(--font-ui);
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- $0: the price, what that means, the builds (#free) ---------- */

.tn-free {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 2.4rem;
  max-width: 64rem;
  margin: 2.4rem auto 0;
  padding: 2rem 2.2rem;
  background: var(--card-bg);
  border: 2px solid var(--hp-green-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.tn-free__price { text-align: center; }
.tn-free__amount {
  display: block;
  font-family: var(--font-display);
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hp-green-ink);
}
.tn-free__amount sup {
  font-size: 0.42em;
  vertical-align: top;
  position: relative;
  top: 0.2em;
  margin-right: 0.05em;
}
.tn-free__forever {
  display: block;
  margin-top: 0.3rem;
  font: 700 1.15rem/1.2 var(--font-ui);
  color: var(--hp-green-ink);
  white-space: nowrap;
}
.tn-free__list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  font: 600 1.08rem/1.35 var(--font-ui);
  color: var(--text-primary);
}
.tn-free__list li { display: flex; align-items: baseline; gap: 0.55rem; }
.tn-free__list li::before { content: '\2713'; color: var(--hp-green-ink); font-weight: 800; }

.tn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  margin: 0;
  font: 500 0.85rem/1.5 var(--font-ui);
  color: var(--text-secondary);
}
.tn-meta > span { white-space: nowrap; }

.tn-works {
  margin: 2.2rem auto 0;
  text-align: center;
}
.tn-works__label {
  margin: 0 0 0.9rem;
  font: 700 1.15rem/1.3 var(--font-ui);
  color: var(--text-primary);
}
.tn-works__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}
.tn-works__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.3rem 1.3rem 0.3rem 0.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font: 600 1.05rem/1.2 var(--font-ui);
  color: var(--text-primary);
}
.tn-works__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}
.tn-works__icon svg { width: 1.45rem; height: 1.45rem; }
.tn-works__note {
  margin: 0.9rem 0 0;
  font: 400 1rem/1.5 var(--font-ui);
  color: var(--text-secondary);
}

.tn-free__ts {
  max-width: 44rem;
  margin: 1.4rem auto 0;
  font: 400 1rem/1.5 var(--font-ui);
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- Questions: two columns of cards, an icon each ---------- */

.tn-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}
.tn-faq__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.tn-faq .tn-q,
.tn-faq .tn-q:first-child {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tn-faq .tn-q:hover { border-color: var(--border); }
.tn-faq .tn-q[open] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-sm);
}
.tn-faq .faq__question {
  justify-content: flex-start;
  gap: 0.8rem;
  min-height: 72px;
  padding: 0.7rem 0.9rem 0.7rem 0.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
}
.tn-q__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}
.tn-q__icon svg { width: 22px; height: 22px; }
.tn-q__text { flex: 1 1 auto; min-width: 0; }
.tn-faq .faq__answer { padding: 0 1.1rem 0 calc(0.75rem + 44px + 0.8rem); }
details.tn-q[open] .faq__answer { padding-bottom: 1.1rem; }
.tn-faq .faq__answer p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}
.tn-faq .faq__answer a { font-weight: 600; }

/* ---------- Closing band ---------- */

.tn-cta h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  text-wrap: balance;
}
.tn-cta h2 em { font-style: normal; color: var(--accent); }

.hp65 .tn-cta .tn-cta__then {
  max-width: none;
  margin: 2.2rem auto 0;
}
.tn-cta .tn-cta__then a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 64px;
  max-width: 100%;
  padding: 0.7rem 1.4rem 0.7rem 1rem;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  font: 700 1.1rem/1.3 var(--font-ui);
  text-align: left;
  text-decoration: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.tn-cta .tn-cta__then a:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}
.tn-cta__then a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tn-cta__then .nav__logo-icon { flex: none; height: 2.4rem; }
.tn-cta__then small {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.tn-cta__then svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.tn-cta__more {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  font: 500 1rem/1.4 var(--font-ui);
}
.tn-cta__more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1080px) {
  .tn-does { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-ts__grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .tn-ts__pic,
  .tn-ts__words { max-width: 40rem; width: 100%; margin-left: auto; margin-right: auto; }
  .tn-free { grid-template-columns: auto minmax(0, 1fr); }
  .tn-free__get { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  /* Words, then the picture, then the buttons: the homepage's order. The
     words column is display: contents here (easy-read.css), so every child
     of it needs a place in the order. */

  /* The root type is smaller here, so the labels set under 1rem are raised
     to keep every line at 17px or more. */
  .tn-meta { font-size: 1rem; }

  .tn-next { grid-template-columns: auto minmax(0, 1fr); }
  .hp65 .btn.tn-next__btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 640px) {
  .hp65 .tn-dl .btn.hp-btn { padding-left: 1.1rem; padding-right: 1.1rem; font-size: 1.05rem; }


  .tn-ways { flex-direction: column; align-items: stretch; max-width: 24rem; margin-left: auto; margin-right: auto; }

  .tn-next { padding: 1.2rem 1.1rem; gap: 1rem; }
  .tn-next__num { width: 2.8rem; height: 2.8rem; line-height: 2.8rem; font-size: 1.45rem; }

  .tn-does { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }

  .tn-proof { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; padding: 1.3rem 1.1rem; text-align: center; }
  .hp-door.tn-proof__more { text-align: center; }


  /* The photo, the arrow pointing down, then what comes back. */
  .tn-ts__pic { padding: 1.3rem 1.1rem 1.1rem; }
  .tn-ts__top { grid-template-columns: minmax(0, 1fr); }
  .tn-ts__arrow { flex-direction: row; justify-self: center; }
  .tn-ts__arrow svg { transform: none; }
  .tn-ts__act { align-items: center; text-align: center; }
  .tn-ts__line { gap: 0.8rem; }
  .tn-ts .hp-sort__label { font-size: 1rem; }

  .tn-free { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1.5rem 1.2rem; }
  .tn-free__list { justify-self: center; }
  .tn-meta { justify-content: center; }
  .tn-works__list { flex-direction: column; align-items: stretch; max-width: 22rem; margin: 0 auto; }

  .tn-faq .faq__question { gap: 0.7rem; padding: 0.6rem 0.75rem 0.6rem 0.6rem; }
  .tn-q__icon { width: 40px; height: 40px; }
  .tn-faq .faq__answer { padding: 0 0.9rem; }


  .tn-cta__more { flex-direction: column; align-items: center; gap: 0; }
}

@media (max-width: 400px) {
  .hp65 .tn-dl .btn.hp-btn { padding-left: 0.8rem; padding-right: 0.8rem; font-size: 1rem; }
}

@media (min-width: 900px) {
  .tn-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.75rem 1rem;
  }
}


/* ============================================
   The app's own masthead, like the other free apps'
   Every page under /timeline-negative-scanner/ wears it: the Timeline Scan
   lockup with "Negative Scanner" as its second line, the app's sections,
   and one Download button to the $0 card. The markup is stamped from
   scripts/chrome/nav-negative-scanner.html.
   ============================================ */

/* The second half of the name, so it stays at every width (the main site's
   slogan steps aside on a phone; this is not a slogan). */
.nav[data-nav="timelinenegativescanner"] .nav__logo-slogan {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The header's button is this product's own action (Download). */
body[data-product="timelinenegativescanner"] .nav__cta { display: inline-flex; }

/* No sub-bar, so anchors have only the header to clear. */
body[data-product="timelinenegativescanner"] { --pinned-subnav: 0px; }

@media (max-width: 480px) {
  .nav[data-nav="timelinenegativescanner"] .nav__logo-slogan { font-size: 0.68rem; letter-spacing: 0.05em; }
  /* "Download" alone: the bar has to hold the lockup, this and Menu. */
  .nav[data-nav="timelinenegativescanner"] .nav__cta-more { display: none; }
}


/* ============================================
   This page's own pieces
   ============================================ */

/* Playfair's old-style figures read "V600" as "V6oo" and "35 mm" as a
   word: lining figures for this page's headings and numbers. */
body[data-product="timelinenegativescanner"] :is(h1, h2, h3, .tn-proof__num, .tn-free__amount, .hp-year, .faq__question) {
  font-variant-numeric: lining-nums;
}

/* ---------- Hero: the scanner, and a strip of film developing ----------
   The photo of the scanner with the film card laid over its lower edge. In
   the card the app's two jobs play in order, 10 seconds a loop with a Pause
   button: a box in the app's crop cyan lands on each frame, numbered 1 to 3
   (owner 2026-11-28: finding the frames for you is what sets it apart),
   then the developed strip (same geometry, made from the same photos) is
   uncovered from the left as a bar of light passes along. With reduced
   motion it rests boxed and half developed. */
.tn-hero .hp-hero__grid.container {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.tn-hero__pic {
  position: relative;
  margin: 0;
}
.tn-hero__photo {
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-accent);
  box-shadow: var(--shadow-md);
}
.tn-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.tn-dev {
  position: relative;
  margin: -0.6rem 2.2rem 0 -1.6rem;
  padding: 0.7rem 0.7rem 0.55rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.tn-dev__film {
  position: relative;
  aspect-ratio: 1600 / 406;
  overflow: hidden;
  border-radius: 6px;
  background: #141210;
}
.tn-dev__film img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.tn-dev__pos {
  clip-path: inset(0 50% 0 0);
  animation: tn-develop 10s ease-in-out infinite;
}

/* The three whole frames' places on the strip picture (build_tn_images.py:
   20 px/mm, crop from x 521 to 3,278; frames 720 x 480 at x 780, 1,540 and
   2,300, y 110), each box a little outside its frame. */
.tn-dev__box {
  position: absolute;
  top: 13.3%;
  width: 27.3%;
  height: 73.4%;
  border: 2.5px solid var(--tn-crop);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  transform-origin: 50% 50%;
}
.tn-dev__box--1 { left: 8.8%; animation: tn-box1 10s ease-out infinite; }
.tn-dev__box--2 { left: 36.4%; animation: tn-box2 10s ease-out infinite; }
.tn-dev__box--3 { left: 63.9%; animation: tn-box3 10s ease-out infinite; }
.tn-dev__n {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--tn-crop);
  color: #101010;
  font: 700 1rem/1.45rem var(--font-ui);
  text-align: center;
}
.tn-dev__bar {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  margin-left: -9px;
  background: linear-gradient(90deg, rgba(255, 246, 220, 0), rgba(255, 250, 235, 0.95) 42%, rgba(255, 250, 235, 0.95) 58%, rgba(255, 246, 220, 0));
  box-shadow: 0 0 22px 7px rgba(255, 228, 170, 0.55);
  animation: tn-bar 10s ease-in-out infinite;
}
.tn-dev.is-paused :is(.tn-dev__pos, .tn-dev__bar, .tn-dev__box),
.tn-dev.is-offscreen :is(.tn-dev__pos, .tn-dev__bar, .tn-dev__box) { animation-play-state: paused; }

/* 0 to 6%: the negatives. 8 to 23%: a box lands on each frame. 28 to 66%:
   the bar develops the strip. Then it holds, and everything fades back. */
@keyframes tn-box1 {
  0%, 8% { opacity: 0; transform: scale(1.14); }
  11%, 90% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes tn-box2 {
  0%, 14% { opacity: 0; transform: scale(1.14); }
  17%, 90% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes tn-box3 {
  0%, 20% { opacity: 0; transform: scale(1.14); }
  23%, 90% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes tn-develop {
  0%, 28% { clip-path: inset(0 100% 0 0); opacity: 1; }
  66%, 88% { clip-path: inset(0 0 0 0); opacity: 1; }
  96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes tn-bar {
  0%, 25% { left: 0%; opacity: 0; }
  28% { left: 0%; opacity: 1; }
  66% { left: 100%; opacity: 1; }
  70%, 100% { left: 100%; opacity: 0; }
}

.tn-dev__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  font: 700 17px/1.2 var(--font-ui);
  color: var(--text-secondary);
}
.tn-dev__legend svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--accent); }
.tn-dev__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--text-primary);
  background: var(--bg-accent);
}
.tn-dev__chip::before {
  content: '';
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
}
.tn-dev__chip--neg::before { background: linear-gradient(135deg, #F2A86C, #B8642E); }
.tn-dev__chip--pos::before { background: linear-gradient(135deg, #E2463B 0 33%, #F1C232 33% 66%, #4C8BD9 66%); }
.tn-dev__chip--box::before { border: 2.5px solid var(--tn-crop); border-radius: 2px; }
/* A phone's card is narrow: the three words stay on one line, without
   their swatches and pills. */
@media (max-width: 640px) {
  .tn-dev__legend { gap: 0.25rem; }
  .tn-dev__chip { padding: 0; background: none; }
  .tn-dev__chip::before { display: none; }
}

.tn-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.tn-hero .hp-hero__act.tn-hero__act { margin-bottom: 0; }
.tn-hero__by {
  margin: 1.2rem 0 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.tn-hero__by a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- How it works: the three pictures ---------- */
.tn-fill {
  display: block;
  aspect-ratio: 13 / 9;
  overflow: hidden;
  background: var(--bg-accent);
}
.tn-fill img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tn-fill--dark { background: #151515; }

/* Step 3: the six photos the six boxes become, on a dark table, numbered
   like the boxes. The tall ones stand upright. */
.tn-out {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  aspect-ratio: 13 / 9;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0.7rem;
  background: #2B2723;
}
.tn-out li {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}
.tn-out__print {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 3px;
  background: #FFFDF8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.tn-out__tall .tn-out__print { width: auto; height: 100%; aspect-ratio: 2 / 3; }
.tn-out__print img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tn-out__n {
  position: absolute;
  top: -0.45rem;
  left: -0.45rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--tn-crop);
  color: #101010;
  font: 700 1rem/1.55rem var(--font-ui);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ---------- Colour (#color) and dust (#dust): a before and after each ---------- */
.tn-color .tn-color__list { margin: 0; }
.tn-dust {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2.4rem;
  margin-top: 2.2rem;
}
.tn-dust__pic { margin: 0; }

/* One photo, split: the left part as scanned, the right part cleaned. The
   range input over it moves the split (js/timeline-negative-scanner.js);
   without the script it rests in the middle. */
.tn-ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg-accent);
  touch-action: pan-y;
}
.tn-ba img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tn-ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tn-ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #FFFDF8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.tn-ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  border-radius: 50%;
  background: #FFFDF8;
  color: #2B2723;
  box-shadow: var(--shadow-md);
}
.tn-ba__handle svg { width: 1.6rem; height: 1.6rem; }
.tn-ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.tn-ba__range:focus-visible + .tn-ba__line .tn-ba__handle { outline: 3px solid var(--accent); outline-offset: 2px; }
.tn-ba__label {
  position: absolute;
  top: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-ui);
  pointer-events: none;
}
.tn-ba__label--before { left: 0.8rem; background: rgba(28, 24, 20, 0.78); color: #FFF; }
.tn-ba__label--after { right: 0.8rem; background: #3F6B47; color: #FFF; }
.tn-ba__hint {
  margin: 0.7rem 0 0;
  font: 500 1rem/1.4 var(--font-ui);
  color: var(--text-secondary);
  text-align: center;
}

/* What a Mac owner gets from each program: two crosses and a tick. */
.tn-macice {
  padding: 1.5rem 1.5rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tn-macice__title {
  margin: 0 0 0.9rem;
  font: 700 1.15rem/1.3 var(--font-ui);
  color: var(--text-primary);
}
.tn-macice__rows {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}
.tn-macice__row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  font: 600 1.05rem/1.3 var(--font-ui);
  color: var(--text-primary);
}
.tn-macice__mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}
.tn-macice__mark svg { width: 1.2rem; height: 1.2rem; }
.tn-macice__row--no .tn-macice__mark { background: var(--tn-no-soft); color: var(--tn-no); }
.tn-macice__row--no .tn-macice__val { color: var(--text-secondary); font-weight: 500; }
.tn-macice__row--yes { background: var(--tn-good-soft); box-shadow: inset 0 0 0 2px var(--tn-good); }
.tn-macice__row--yes .tn-macice__mark { background: var(--tn-good); color: #FFF; }
.tn-macice__row--yes .tn-macice__name,
.tn-macice__row--yes .tn-macice__val { font-weight: 800; color: var(--tn-good); }
.tn-macice__val { text-align: right; }
.tn-macice__win {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  font: 500 1rem/1.4 var(--font-ui);
  color: var(--text-secondary);
}
.tn-macice__win svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--accent); }

/* ---------- The film it takes (#film) ---------- */
.tn-film {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.4rem;
  max-width: 64rem;
  margin: 2.6rem auto 0;
}
.tn-film__pic { margin: 0; }
.tn-film__pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hp65 .tn-film__title {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  line-height: 1.2;
}
.tn-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}
.tn-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.3rem 1.1rem 0.3rem 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font: 600 1.05rem/1.2 var(--font-ui);
  color: var(--text-primary);
}
.tn-chips svg { flex: none; width: 1.45rem; height: 1.45rem; color: var(--accent); }
.tn-chips__icon {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
}
.tn-chips__icon--neg { background: linear-gradient(135deg, #F2A86C, #B8642E); }
.tn-chips__icon--bw { background: linear-gradient(135deg, #E8E6E1, #3B3936); }
.tn-chips__icon--slide { background: #4C8BD9; box-shadow: inset 0 0 0 3.5px #F4F1EA, 0 0 0 1px var(--border); }
.tn-film__note {
  margin: 1rem 0 0;
  font: 400 1.05rem/1.5 var(--font-ui);
  color: var(--text-secondary);
}

/* ---------- Scanners (#scanners) ---------- */
.tn-scan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 1.4rem;
  max-width: 64rem;
  margin: 2.2rem auto 0;
}
.tn-scan__main,
.tn-scan__others {
  padding: 1.4rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tn-scan__main {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  border: 2px solid var(--tn-good);
  box-shadow: var(--shadow-sm);
}
.tn-scan__icon {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: var(--radius-md);
}
.tn-scan__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  padding: 0.2rem 0.7rem 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--tn-good);
  color: #FFF;
  font: 700 1rem/1.3 var(--font-ui);
}
[data-theme="dark"] .tn-scan__badge { color: #10200F; }
.tn-scan__badge svg { width: 1rem; height: 1rem; }
.hp65 .tn-scan__name {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}
.tn-scan__sub {
  margin: 0.3rem 0 0;
  font: 400 1.05rem/1.45 var(--font-ui);
  color: var(--text-secondary);
}
.tn-scan__label {
  margin: 0 0 0.7rem;
  font: 700 1.05rem/1.3 var(--font-ui);
  color: var(--text-primary);
}
.tn-models {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}
.tn-models li {
  padding: 0.3rem 0.75rem;
  border: 1.5px dashed var(--border);
  border-radius: 999px;
  font: 600 1rem/1.3 var(--font-ui);
  color: var(--text-primary);
}
.tn-scan__report {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.95rem 0 0;
  font: 400 1rem/1.45 var(--font-ui);
  color: var(--text-secondary);
}
.tn-scan__report svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; color: var(--accent); }

/* ---------- Timeline Scan (#dates): one developed photo ---------- */
.tn-ts__in .hp-print.tn-ts__one {
  display: block;
  margin-top: 0.9rem;
  padding: 0.3rem;
}
.tn-ts__in .hp-print.tn-ts__one img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1080px) {
  .tn-dust { grid-template-columns: minmax(0, 1fr); }
  .tn-dust__pic,
  .tn-macice { width: 100%; max-width: 40rem; margin-left: auto; margin-right: auto; }
  .tn-scan { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
}

@media (max-width: 899px) {
  .tn-hero .hp-hero__grid.container { grid-template-columns: minmax(0, 1fr); }
  .tn-hero__pic { order: 4; width: 100%; max-width: 34rem; margin: 0 auto 1.3rem; }
  .tn-hero .tn-dl { justify-content: center; width: 100%; }
  .tn-hero__by { order: 7; }
  .tn-free .tn-dl { justify-content: center; }
  .tn-film { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
}

@media (max-width: 640px) {
  .tn-dev { margin-inline: 0.5rem; }
  .tn-dev__legend { font-size: 1rem; }
  .tn-scan__main { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.9rem; padding: 1.1rem; }
  .tn-scan__icon { width: 4.6rem; height: 4.6rem; }
  .tn-scan__others { padding: 1.1rem; }
  .tn-macice { padding: 1.2rem 1rem 1.1rem; }
  .tn-macice__row { grid-template-columns: 2rem minmax(0, 1fr); }
  .tn-macice__val { grid-column: 2; text-align: left; }
  .tn-ba__label { top: 0.55rem; font-size: 1rem; }
  /* The full-width button under the next-step card wraps rather than
     running out of its box on a narrow phone. */
  .hp65 .btn.tn-next__btn { white-space: normal; text-align: center; }
  .tn-ba__label--before { left: 0.55rem; }
  .tn-ba__label--after { right: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tn-dev__pos,
  .tn-dev__bar,
  .tn-dev__box { animation: none; }
}

/* ============================================
   Guides (2026-11-28): Digital ICE on a Mac (digital-ice-mac/) and the
   software ranking (best-negative-scanning-software/). Both are built from
   the landing page's blocks above; the pieces only they use are here.
   ============================================ */

/* The hero's right-hand picture: the dust slider, or the ranking at a glance. */
.tn-gh__pic { margin: 0; align-self: center; }

/* The answer, in words an assistant can quote, set as a card. */
.tn-quick {
  max-width: 46rem;
  margin: 1.8rem auto 0;
  padding: 1.2rem 1.4rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg);
  font: 400 1.1rem/1.55 var(--font-ui);
  color: var(--text-primary);
}
.tn-quick b { font-weight: 800; }

/* Every Mac option: the landing page's card at full width, a line under
   each name, and an amber tick for an option with a catch (paid, or free
   only with the scanner). */
.tn-macice--wide { max-width: 46rem; margin: 2rem auto 0; }
.tn-macice__name small {
  display: block;
  margin-top: 0.1rem;
  font: 500 0.95rem/1.3 var(--font-ui);
  color: var(--text-secondary);
}
.tn-macice__row--yes .tn-macice__name small { color: inherit; font-weight: 600; }
.tn-macice__row--part .tn-macice__mark {
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.tn-macice__row--part .tn-macice__val { font-weight: 700; }
.tn-macice__more { margin: 0.75rem 0 0; font: 600 1rem/1.4 var(--font-ui); }
.tn-macice__more a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }

.tn-checked {
  max-width: 46rem;
  margin: 1.2rem auto 0;
  text-align: center;
  font: 400 1rem/1.5 var(--font-ui);
  color: var(--text-secondary);
}
.tn-checked a { font-weight: 700; color: var(--text-primary); text-decoration: underline; text-underline-offset: 0.2em; }

/* Numbered tiles (Dust removal on your Mac in three steps). */
.tn-does__num { font: 800 1.5rem/1 var(--font-ui); color: var(--accent); }

/* The next-step card after numbered steps: an arrow, not a second "2". */
.tn-next__num--go { display: grid; place-items: center; }
.tn-next__num--go svg { width: 1.5rem; height: 1.5rem; }

/* Sources and the byline under them. */
.hp-door__body ul.tn-sources > li { margin-bottom: 0.55rem; }
.tn-meta.tn-guide-meta { justify-content: center; margin-top: 1.4rem; font-size: 0.95rem; }
.tn-guide-meta a { color: var(--text-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* Words only a screen reader needs. */
.tn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* A tick, a tick with a catch (amber), a cross, or a grey dash for "the
   maker's pages do not say". */
.tn-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
}
.tn-mark svg { width: 0.95rem; height: 0.95rem; }
.tn-mark--yes { background: var(--green-light); color: var(--hp-green-ink); }
.tn-mark--part { background: var(--accent-light); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tn-mark--no { background: var(--red-light); color: var(--hp-red-ink); }
.tn-mark--none { background: var(--bg-accent); color: var(--text-muted); }
.tn-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 1.3rem auto 0;
  font: 400 1rem/1.4 var(--font-ui);
  color: var(--text-secondary);
}
.tn-legend span + .tn-mark { margin-left: 0.9rem; }

/* The ranking at a glance, in the hero: number, name and its one line,
   price. Each row jumps to its card. */
.tn-rank {
  padding: 1.2rem 1.2rem 1rem;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hp65 .tn-rank__title {
  margin: 0 0 0.55rem 0.4rem;
  font: 800 0.95rem/1.2 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tn-rank__list { list-style: none; display: grid; gap: 0.3rem; margin: 0; padding: 0; }
.tn-rank__item a {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
}
.tn-rank__item a:hover { background: var(--bg-primary); }
.tn-rank__item a:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.tn-rank__n {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--bg-accent);
  font: 800 1.05rem/1 var(--font-ui);
}
.tn-rank__name { font: 700 1.05rem/1.25 var(--font-ui); }
.tn-rank__name small { display: block; font: 500 0.92rem/1.3 var(--font-ui); color: var(--text-secondary); }
.tn-rank__price { font: 700 1rem/1.2 var(--font-ui); text-align: right; white-space: nowrap; }
.tn-rank__item--us a { background: var(--tn-good-soft); box-shadow: inset 0 0 0 2px var(--tn-good); }
.tn-rank__item--us .tn-rank__n { background: var(--tn-good); color: var(--bg-primary); }
.tn-rank__item--us .tn-rank__price { color: var(--tn-good); }

/* The ranking: one card each. Number, name, price and four marks on one
   row; who it is best for, and the strengths and limits door, under them. */
.tn-rcs {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 64rem;
  margin: 2.2rem auto 0;
  padding: 0;
}
.tn-rc {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
  grid-template-areas:
    "num head price marks"
    ". foot foot foot";
  align-items: center;
  column-gap: 1.3rem;
  row-gap: 0.8rem;
  padding: 1.2rem 1.4rem 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scroll-margin-top: 6rem;
}
.tn-rc--us { border: 2px solid var(--tn-good); box-shadow: var(--shadow-md); }
.tn-rc__num {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--bg-accent);
  font: 800 1.45rem/1 var(--font-ui);
  color: var(--text-primary);
}
.tn-rc--us .tn-rc__num { background: var(--tn-good); color: var(--bg-primary); }
.tn-rc__head { grid-area: head; min-width: 0; }
.hp65 .tn-rc__name { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.tn-rc__maker { margin: 0.2rem 0 0; font: 500 0.95rem/1.3 var(--font-ui); color: var(--text-secondary); }
.tn-rc__price { grid-area: price; display: grid; gap: 0.15rem; margin: 0; }
.tn-rc__price b { font: 800 1.3rem/1.15 var(--font-ui); color: var(--text-primary); }
.tn-rc--us .tn-rc__price b { color: var(--tn-good); }
.tn-rc__price span { font: 400 0.95rem/1.3 var(--font-ui); color: var(--text-secondary); }
.tn-rc__marks {
  grid-area: marks;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.9rem;
  margin: 0;
  padding: 0;
}
.tn-rc__marks li { display: flex; align-items: center; gap: 0.45rem; font: 600 0.98rem/1.25 var(--font-ui); color: var(--text-primary); }
.tn-rc__marks .tn-mark { width: 1.35rem; height: 1.35rem; }
.tn-rc__marks .tn-mark svg { width: 0.8rem; height: 0.8rem; }
.tn-rc__foot { grid-area: foot; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.tn-rc__best { margin: 0; font: 400 1.02rem/1.45 var(--font-ui); color: var(--text-secondary); }
.tn-rc__best b { color: var(--text-primary); }
.tn-rc__more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font: 700 1rem/1.3 var(--font-ui);
  color: var(--accent);
}
.tn-rc__more summary::-webkit-details-marker { display: none; }
.tn-rc__more summary svg { width: 1.1rem; height: 1.1rem; transition: transform 0.2s ease; }
.tn-rc__more[open] summary svg { transform: rotate(180deg); }
.tn-rc__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.8rem;
  padding: 0.1rem 0 0.6rem;
}
.tn-rc__body h4 {
  grid-row: 1;
  margin: 0 0 0.35rem;
  font: 800 0.9rem/1.2 var(--font-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tn-rc__body ul { grid-row: 2; margin: 0; padding-left: 1.15rem; font: 400 1rem/1.5 var(--font-ui); color: var(--text-primary); }
.tn-rc__body li + li { margin-top: 0.3rem; }
.tn-rc__link { margin: 0 0 0.3rem; }
.tn-rc__link a { font: 700 1rem/1.3 var(--font-ui); color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }

/* Every program in one table. A real table on a wide screen; on a phone
   each program becomes a card of labelled cells. */
.tn-grid-wrap { margin: 2.2rem auto 0; }
.tn-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-ui);
}
.tn-grid th,
.tn-grid td { padding: 0.8rem 0.55rem; border-top: 1px solid var(--border); vertical-align: middle; }
.tn-grid thead th {
  border-top: 0;
  background: var(--bg-accent);
  font: 700 0.98rem/1.25 var(--font-ui);
  color: var(--text-primary);
  text-align: center;
}
.tn-grid thead th:first-child { width: 19%; text-align: left; padding-left: 1rem; }
.tn-grid tbody th { padding-left: 1rem; text-align: left; font: 700 1.02rem/1.3 var(--font-ui); color: var(--text-primary); }
.tn-grid__n {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--bg-accent);
  font: 800 0.9rem/1 var(--font-ui);
}
.tn-grid td { text-align: center; font: 400 0.95rem/1.3 var(--font-ui); color: var(--text-secondary); }
/* Grid, not flex: place-items only centers both ways in a grid, and a flex
   circle left its tick against the left edge. */
.tn-grid td .tn-mark { display: grid; margin: 0 auto 0.3rem; }
.tn-grid td > span:last-child { display: block; }
.tn-grid__us th,
.tn-grid__us td { background: var(--tn-good-soft); color: var(--text-primary); font-weight: 600; }
.tn-grid__us .tn-grid__n { background: var(--tn-good); color: var(--bg-primary); }
@media (max-width: 900px) {
  .tn-grid,
  .tn-grid tbody,
  .tn-grid th,
  .tn-grid td { display: block; }
  .tn-grid { border: 0; background: none; overflow: visible; }
  .tn-grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tn-grid tbody { display: grid; gap: 0.9rem; }
  .tn-grid tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .tn-grid tr.tn-grid__us { border: 2px solid var(--tn-good); }
  .tn-grid tbody th { grid-column: 1 / -1; padding: 0.85rem 1rem; border-top: 0; background: var(--bg-accent); font-size: 1.1rem; }
  .tn-grid td { text-align: left; padding: 0.6rem 1rem 0.7rem; }
  .tn-grid td:first-of-type { grid-column: 1 / -1; }
  .tn-grid td:nth-of-type(odd):not(:first-of-type) { border-left: 1px solid var(--border); }
  .tn-grid td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font: 700 0.92rem/1.25 var(--font-ui);
    color: var(--text-primary);
  }
  .tn-grid td .tn-mark { display: inline-grid; width: 1.3rem; height: 1.3rem; margin: 0 0.4rem 0 0; vertical-align: middle; }
  .tn-grid td .tn-mark svg { width: 0.8rem; height: 0.8rem; }
  .tn-grid td > span:last-child { display: inline; }
}

/* What a year of each costs, as bars on one scale. Free is a green pill
   rather than a bar of nothing. */
.tn-bars {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 2.2rem auto 0;
  padding: 1.4rem 1.5rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tn-bar { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: center; gap: 1rem; }
.tn-bar__name { font: 700 1.02rem/1.25 var(--font-ui); color: var(--text-primary); }
.tn-bar__name small { display: block; font: 500 0.9rem/1.3 var(--font-ui); color: var(--text-secondary); }
.tn-bar__track { display: flex; align-items: center; gap: 0.6rem; min-height: 2rem; }
.tn-bar__fill {
  flex: none;
  width: calc(var(--w) * 0.78);
  height: 1.5rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text-secondary) 50%, transparent);
}
.tn-bar__val { font: 800 1.05rem/1.2 var(--font-ui); color: var(--text-primary); white-space: nowrap; }
.tn-bar--free .tn-bar__fill { display: none; }
.tn-bar--free .tn-bar__val { padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--tn-good-soft); color: var(--tn-good); }
.tn-bar--us .tn-bar__name { color: var(--tn-good); }
.tn-bar--us .tn-bar__val { background: var(--tn-good); color: var(--bg-primary); }

/* Which one is right for you: four situations, one answer each. */
.tn-picks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 64rem;
  margin: 2.2rem auto 0;
  padding: 0;
}
.tn-pick {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.2rem 1.2rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tn-pick--us { border: 2px solid var(--tn-good); box-shadow: var(--shadow-sm); }
.tn-pick__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.3rem;
  padding: 0.55rem;
  border-radius: 12px;
  background: var(--bg-accent);
  color: var(--accent);
}
.tn-pick__icon svg { display: block; width: 100%; height: 100%; }
.tn-pick b { font: 700 1.1rem/1.3 var(--font-ui); color: var(--text-primary); }
.tn-pick > span:last-child { font: 400 1.02rem/1.45 var(--font-ui); color: var(--text-secondary); }
.tn-pick--us > span:last-child { font-weight: 700; color: var(--tn-good); }

@media (max-width: 1080px) {
  .tn-rc {
    grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "num head price"
      ". marks marks"
      ". foot foot";
  }
  .tn-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .tn-gh__pic { order: 4; width: 100%; max-width: 34rem; margin: 0 auto 1.3rem; }
}
@media (max-width: 640px) {
  .tn-rc {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    grid-template-areas:
      "num head"
      "price price"
      "marks marks"
      "foot foot";
    column-gap: 0.9rem;
    padding: 1.1rem 1.1rem 0.8rem;
  }
  .tn-rc__num { width: 2.6rem; height: 2.6rem; font-size: 1.25rem; }
  .tn-rc__price { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 0.6rem; }
  .tn-rc__body { grid-template-columns: minmax(0, 1fr); }
  .tn-rc__body h4,
  .tn-rc__body ul { grid-row: auto; }
  .tn-rc__body ul + h4 { margin-top: 0.8rem; }
  .tn-bar { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .tn-bars { padding: 1.1rem 1rem; }
  .tn-picks { grid-template-columns: minmax(0, 1fr); }
  .tn-rank { padding: 1rem 0.8rem 0.8rem; }
  .tn-rank__item a { gap: 0.6rem; padding-right: 0.5rem; }
}

/* ============================================
   Help page (/timeline-negative-scanner/help/), 2026-11-29
   Timeline Tagger's help layout (css/timeline-tagger.css, tt-help-*), repeated
   with a tn-help- prefix: a centred hero with jump chips, step-through guides of
   real app screenshots (js/timelinetagger-help.js drives any [data-tt-player]),
   figures, a keyboard table, troubleshooting rows and closing cross-links. The
   pictures are the app's real window, rendered by
   timelineNegativeScanner/scripts/help_screenshots.py with placeholder film.
   Reading text stays at 17px or more, as on the landing page.
   ============================================ */

.tn-help-hero {
  padding: 3.4rem 0 2.4rem;
  text-align: center;
}

.tn-help-kicker {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--product-accent);
  margin-bottom: 0.6rem;
}

.tn-help-kicker a {
  color: inherit;
  text-decoration: none;
}

.tn-help-kicker a:hover {
  text-decoration: underline;
}

.tn-help-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.tn-help-hero__sub {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 44rem;
  margin: 0 auto;
}

.tn-help-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 52rem;
  margin: 1.8rem auto 0;
}

.tn-help-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.3em 1.05em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tn-help-toc a:hover {
  border-color: var(--product-accent);
  background: var(--product-accent-soft);
}

.tn-help-meta {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  margin-top: 1.4rem;
}

.tn-help-meta > span:not(:last-child)::after {
  content: '\00B7';
  margin-left: 0.9rem;
  opacity: 0.5;
}

/* Section heads: a kicker, the heading and one line. */
.tn-help-head {
  max-width: 46rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.tn-help-head p {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ---------- Start here: numbered cards ---------- */

.tn-help-start {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.tn-help-start > li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.25rem 0.9rem;
  align-content: start;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
}

.tn-help-start__num {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--product-accent-contrast);
  background: var(--product-accent);
}

.tn-help-start h3 {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.35rem 0 0.2rem;
}

.tn-help-start p,
.tn-help-start li li {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.tn-help-start ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

.tn-help-start li li + li {
  margin-top: 0.3rem;
}

/* ---------- A guide: the player and its steps ---------- */

.tn-help-guide {
  max-width: 1180px;
  margin: 0 auto;
}

/* The ratio is the app window's (1180 x 850 at 2x, saved 1600 x 1153). */
.tn-help-player__stage {
  position: relative;
  aspect-ratio: 1600 / 1153;
  background: #f1f1f0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tn-help-player__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.55s ease;
}

/* Without JavaScript the first frame shows, with every step written beside it. */
.tn-help-player__frame.is-active {
  opacity: 1;
}

.tn-help-player__dots {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 0.7rem;
}

/* A 44px target around a small visible pip. */
.tn-help-player__dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.tn-help-player__dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.tn-help-player__dot:hover::before {
  border-color: var(--product-accent);
}

.tn-help-player__dot.is-active::before {
  width: 1.7rem;
  background: var(--product-accent);
  border-color: var(--product-accent);
}

.tn-help-steps {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.5rem;
}

.tn-help-step {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  align-content: start;
  height: 100%;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tn-help-step:hover {
  background: var(--bg-secondary);
}

.tn-help-step.is-active {
  background: var(--product-accent-soft);
  border-color: var(--product-accent);
}

.tn-help-step__num {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.12);
}

.tn-help-step.is-active .tn-help-step__num {
  color: var(--product-accent-contrast);
  background: var(--product-accent);
}

.tn-help-step b {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
}

.tn-help-step__note {
  grid-column: 2;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* An app label written the way the app writes it. */
.tn-ui {
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------- Figures outside a player ---------- */

.tn-help-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
  max-width: 1080px;
  margin: 2.4rem auto 0;
  align-items: start;
}

.tn-help-fig {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.tn-help-fig img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.tn-help-fig figcaption {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.tn-help-fig figcaption b {
  color: var(--text-primary);
}

/* Words beside a tall picture of the settings column. */
.tn-help-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: 2.4rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.tn-help-split .tn-help-fig img {
  width: 100%;
  max-width: 19rem;
}

.tn-help-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.tn-help-points > li {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--product-accent);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tn-help-points h3 {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.tn-help-points p {
  margin: 0;
}

.tn-help-points p + p {
  margin-top: 0.45rem;
}

/* The longer notes behind one click (the landing page's hp-door). */
.hp-door.tn-help-door {
  max-width: 1080px;
  margin: 1.8rem auto 0;
}

/* ---------- Keyboard reference ---------- */

.tn-help-keys kbd,
.tn-help-fix kbd,
.tn-help-points kbd,
.tn-help-step kbd {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 0.88em;
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.1em 0.45em;
  background: rgba(128, 128, 128, 0.08);
  white-space: nowrap;
}

.tn-help-keys {
  max-width: 1000px;
  margin: 0 auto 2.2rem;
}

.tn-help-keys__head {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--product-accent);
  margin: 0 0 0.6rem;
}

.tn-help-keys table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
}

.tn-help-keys th,
.tn-help-keys td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.45;
}

.tn-help-keys tr:last-child th,
.tn-help-keys tr:last-child td {
  border-bottom: none;
}

.tn-help-keys thead th {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.06);
}

.tn-help-keys tbody th {
  font-weight: 600;
  color: var(--text-primary);
  width: 42%;
}

.tn-help-keys td {
  color: var(--text-secondary);
}

.tn-help-keys__note {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 1000px;
  margin: -1.2rem auto 0;
}

/* ---------- Troubleshooting ---------- */

.tn-help-fixes {
  display: grid;
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto;
}

.tn-help-fix {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--product-accent);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.tn-help-fix > b {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
}

.tn-help-fix > div {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tn-help-fix p {
  margin: 0;
}

.tn-help-fix p + p {
  margin-top: 0.45rem;
}

/* ---------- Closing band ---------- */

.tn-help-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 2.2rem auto 0;
  text-align: left;
}

.tn-help-link {
  display: block;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tn-help-link:hover {
  border-color: var(--product-accent);
  transform: translateY(-2px);
}

.tn-help-link b {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.tn-help-link span {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tn-help-cta .tipjar {
  max-width: 1000px;
  margin: 2rem auto 0;
  text-align: left;
}

@media (max-width: 860px) {
  .tn-help-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .tn-help-split .tn-help-fig {
    order: -1;
  }
}

@media (max-width: 640px) {
  .tn-help-hero {
    padding: 2.4rem 0 1.8rem;
  }
  .tn-help-hero h1 {
    font-size: 1.9rem;
  }
  .tn-help-hero__sub {
    font-size: 1.0625rem;
  }
  .tn-help-fix {
    grid-template-columns: minmax(0, 1fr);
  }
  .tn-help-keys tbody th {
    width: auto;
  }
  .tn-help-keys thead {
    display: none;
  }
  .tn-help-keys tr,
  .tn-help-keys th,
  .tn-help-keys td {
    display: block;
    width: auto;
  }
  .tn-help-keys tbody th {
    border-bottom: none;
    padding-bottom: 0.15rem;
  }
  .tn-help-keys td {
    border-bottom: none;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
  }
  .tn-help-keys td:last-child {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.7rem;
  }
  .tn-help-keys td[data-os]::before {
    content: attr(data-os) ': ';
    font-weight: 600;
    color: var(--text-muted);
  }
}

/* The step-through is a recording of the app being used: no cross-fade and
   no auto-advance (the script checks the same query) for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .tn-help-player__frame,
  .tn-help-player__dot::before,
  .tn-help-step,
  .tn-help-link {
    transition: none;
  }
  .tn-help-link:hover {
    transform: none;
  }
}

.tn-help-more {
  text-align: center;
  margin: 2rem auto 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
}
