/* tl-essay contract (build/essay100.cjs):
 *   article.tl-essay[lang]
 *     header.tl-essay-hero[.tl-essay-hero--diagram]  > [img] span.tl-essay-kicker h1.tl-essay-title p.tl-essay-lede
 *     div.tl-essay-body > p...          (hub: > ul > li > a)
 *     blockquote.tl-essay-pull > cite
 *     div.tl-essay-facts > h2 + dl > div > dt (label) + dd (value)
 *     aside.tl-essay-culture > h2 + p
 *     p.tl-essay-next > a > span        (or nav > ul > li > a)
 * Loaded via head({ css: ['/assets/tl-essay.css'] }) without the app stylesheet,
 * so body.tl-essay-page.<app> below supplies each app's accent (and war's dark
 * canvas). Every accent is >=4.5:1 on its paper because crumbs reuse it as text. */

/* ---------- per-app accent on essay pages ---------- */
body.tl-essay-page { --tl-essay-app: #191919; }
body.tl-essay-page.job, body.tl-essay-page.job-app { --tl-essay-app: #0f766e; }
body.tl-essay-page.sports, body.tl-essay-page.sports-app { --tl-essay-app: #4338ca; }
body.tl-essay-page.meat, body.tl-essay-page.meat-app { --tl-essay-app: #b42335; }
body.tl-essay-page.money, body.tl-essay-page.money-app { --tl-essay-app: #0f766e; }
body.tl-essay-page.compound, body.tl-essay-page.compound-app { --tl-essay-app: #0f766e; }
body.tl-essay-page.mjr-app,
body.tl-essay-page.major,
body.tl-essay-page.major-app { --tl-essay-app: #1d4ed8; }
body.tl-essay-page.peoples, body.tl-essay-page.peoples-page { --tl-essay-app: #0f766e; }
body.tl-essay-page.parenting, body.tl-essay-page.parenting-page { --tl-essay-app: #0f766e; }
body.tl-essay-page.rehab, body.tl-essay-page.rehab-app { --tl-essay-app: #0f766e; }
body.tl-essay-page.brain, body.tl-essay-page.brain-app { --tl-essay-app: #115e59; }
body.tl-essay-page.microbes, body.tl-essay-page.microbes-app { --tl-essay-app: #047857; }
body.tl-essay-page.forms, body.tl-essay-page.forms-app { --tl-essay-app: #1d4ed8; }
body.tl-essay-page.sidehustle, body.tl-essay-page.sidehustle-app { --tl-essay-app: #c2410c; }
body.tl-essay-page.vehicles, body.tl-essay-page.vehicles-app { --tl-essay-app: #1d4ed8; }
body.tl-essay-page.water, body.tl-essay-page.water-app { --tl-essay-app: #0369a1; }
body.tl-essay-page.talent, body.tl-essay-page.talent-app { --tl-essay-app: #6d28d9; }
body.tl-essay-page.travel, body.tl-essay-page.travel-app { --tl-essay-app: #0369a1; }
body.tl-essay-page.food, body.tl-essay-page.food-app { --tl-essay-app: #b91c1c; }
body.tl-essay-page.names, body.tl-essay-page.names-app { --tl-essay-app: #4338ca; }
body.tl-essay-page.cases, body.tl-essay-page.cases-app { --tl-essay-app: #9a3412; }
body.tl-essay-page.animals, body.tl-essay-page.animals-app { --tl-essay-app: #047857; }
body.tl-essay-page.materials, body.tl-essay-page.materials-app { --tl-essay-app: #b45309; }
body.tl-essay-page.fragrance, body.tl-essay-page.fragrance-app { --tl-essay-app: #a63d5f; }
body.tl-essay-page.study, body.tl-essay-page.study-app { --tl-essay-app: #4338ca; }
body.tl-essay-page.icons, body.tl-essay-page.icons-app { --tl-essay-app: #4338ca; }
body.tl-essay-page.viz, body.tl-essay-page.viz-app { --tl-essay-app: #0e7490; }
body.tl-essay-page {
  --accent: var(--tl-accent, var(--tl-essay-app));
  --surface: var(--tl-surface, #ffffff);
  --ink: var(--tl-ink, #191919);
}

/* War is a dark app: same slate canvas as war.css, lighter crimson for contrast. */
body.tl-essay-page.war,
body.tl-essay-page.war-app {
  --tl-essay-app: #f87171;
  --accent: #f87171;
  --bg: #0f172a;
  --surface: #1e293b;
  --ink: #f5f5f4;
  --ink2: #d6d3d1;
  --muted: #b8b2ad;
  --line: #334155;
  --track: #334155;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 8% 0%, rgba(127, 29, 29, .28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 8%, rgba(51, 65, 85, .45), transparent 50%),
    #0f172a;
}
:is(body.tl-essay-page.war, body.tl-essay-page.war-app) main { color: var(--ink); }
:is(body.tl-essay-page.war, body.tl-essay-page.war-app) .crumbs,
:is(body.tl-essay-page.war, body.tl-essay-page.war-app) .crumbs a,
:is(body.tl-essay-page.war, body.tl-essay-page.war-app) .crumbs span { color: #d6d3d1; }
:is(body.tl-essay-page.war, body.tl-essay-page.war-app) .crumbs a:hover { color: #fff; }

/* ---------- the sheet ---------- */
.tl-essay {
  --tl-essay-accent: var(--tl-accent, var(--accent, #191919));
  --tl-essay-ink: var(--tl-ink, var(--ink, #191919));
  --tl-essay-ink2: var(--ink2, #333);
  --tl-essay-muted: var(--muted, #555);
  --tl-essay-line: var(--line, #e5e7eb);
  --tl-essay-paper: var(--tl-surface, var(--surface, #fff));
  --tl-essay-tint: color-mix(in srgb, var(--tl-essay-accent) 8%, var(--tl-essay-paper));
  --tl-essay-measure: 40rem;
  --tl-essay-wide: 50rem;
  --tl-essay-pad-t: clamp(32px, 5vw, 64px);
  --tl-essay-pad-x: clamp(20px, 6vw, 88px);
  --tl-essay-size: clamp(1.0625rem, 1rem + .28vw, 1.1875rem);
  --tl-essay-lh: 1.76;

  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 64rem;
  min-width: 0;
  margin: 0 auto;
  padding: var(--tl-essay-pad-t) var(--tl-essay-pad-x) clamp(40px, 6vw, 72px);
  background: var(--tl-essay-paper);
  color: var(--tl-essay-ink);
  border: 1px solid var(--tl-essay-line);
  border-top: 3px solid var(--tl-essay-accent);
  border-radius: 2px 2px var(--tl-radius, 12px) var(--tl-radius, 12px);
  font-size: var(--tl-essay-size);
  line-height: var(--tl-essay-lh);
  overflow-wrap: break-word;
}
.tl-essay *, .tl-essay *::before, .tl-essay *::after { box-sizing: border-box; }
.tl-essay :is(img, svg, video, canvas, iframe) { max-width: 100%; }

/* CJK: no tracking squeeze, taller lines, breaks between words/phrases only. */
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) { --tl-essay-lh: 1.88; --tl-essay-measure: 38rem; letter-spacing: 0; }
.tl-essay:lang(ko) { word-break: keep-all; }
/* Kana/kanji runs have no spaces: browsers without auto-phrase must fall back to normal, never keep-all. */
.tl-essay:lang(ja) { word-break: normal; word-break: auto-phrase; }
/* Hanzi carry no spaces; keep-all left only punctuation as break points. */
.tl-essay:lang(zh) { word-break: normal; }
.tl-essay:is(:lang(ja), :lang(zh)) { line-break: strict; overflow-wrap: anywhere; }
.tl-essay:is(:lang(de), :lang(fr), :lang(ru), :lang(es), :lang(pt)) .tl-essay-body { hyphens: auto; }

/* ---------- column: everything reads on one measure ---------- */
.tl-essay > header,
.tl-essay header.tl-essay-hero,
.tl-essay .tl-vibe-reading-col,
.tl-essay .tl-essay-body,
.tl-essay .tl-essay-pull,
.tl-essay .tl-essay-facts,
.tl-essay .tl-essay-culture,
.tl-essay .tl-essay-next {
  max-width: var(--tl-essay-measure);
  margin-left: auto;
  margin-right: auto;
}
.tl-essay .tl-vibe-reading-col {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

/* ---------- masthead: kicker, title, lede (optional lead image) ---------- */
.tl-essay .tl-essay-hero {
  position: relative;
  margin-top: 0;
  margin-bottom: clamp(32px, 4.5vw, 52px);
  padding: 0 0 clamp(24px, 3vw, 34px);
  background: none;
  border-radius: 0;
}
.tl-essay .tl-essay-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, var(--tl-essay-accent) 0 56px, var(--tl-essay-line) 56px);
}
.tl-essay :is(header.tl-essay-hero, > header.tl-essay-hero) > :is(img, picture, svg):first-child {
  display: block;
  width: calc(100% + 2 * var(--tl-essay-pad-x));
  max-width: none;
  height: auto;
  margin: calc(-1 * var(--tl-essay-pad-t)) calc(-1 * var(--tl-essay-pad-x)) clamp(28px, 4vw, 44px);
  aspect-ratio: 16 / 9;
  max-height: 540px;
  object-fit: cover;
  background: var(--track, #eef1f4);
}
.tl-essay :is(header.tl-essay-hero, > header.tl-essay-hero) > picture:first-child img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-essay :is(header.tl-essay-hero--diagram, > header.tl-essay-hero--diagram) > :is(img, svg):first-child {
  aspect-ratio: auto;
  max-height: 600px;
  object-fit: contain;
  padding: clamp(16px, 3vw, 36px);
  background: var(--tl-essay-paper);
  border-bottom: 1px solid var(--tl-essay-line);
}
.tl-essay .tl-essay-hero figcaption {
  margin: -24px 0 24px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--tl-essay-muted);
}
.tl-essay .tl-essay-hero figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.tl-essay .tl-essay-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tl-essay-accent);
}
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-kicker { letter-spacing: .02em; font-size: .875rem; }
.tl-essay .tl-essay-kicker::before {
  content: "";
  flex: 0 0 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.tl-essay .tl-essay-kicker a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
  color: inherit;
  text-decoration: none;
}
.tl-essay .tl-essay-kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }

.tl-essay .tl-essay-title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.375rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.028em;
  color: var(--tl-essay-ink);
  text-wrap: balance;
}
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-title {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.875rem);
  line-height: 1.32;
  letter-spacing: -.012em;
}
.tl-essay:lang(ru) .tl-essay-title { font-size: clamp(1.85rem, 1.15rem + 2.8vw, 3rem); }

.tl-essay .tl-essay-lede {
  margin: 0;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  font-weight: 450;
  line-height: 1.55;
  color: var(--tl-essay-ink2);
  text-wrap: pretty;
}
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-lede { line-height: 1.7; }

/* ---------- body: the essay ---------- */
.tl-essay .tl-essay-body { color: var(--tl-essay-ink); }
.tl-essay .tl-essay-body > :first-child { margin-top: 0; }
.tl-essay .tl-essay-body p { margin: 0 0 1.2em; text-wrap: pretty; }
.tl-essay .tl-essay-body > p:last-child { margin-bottom: 0; }
/* Drop cap for alphabetic scripts only; CJK opens plain. */
.tl-essay:is(:lang(en), :lang(es), :lang(fr), :lang(de), :lang(pt), :lang(ru)) .tl-essay-body > p:first-of-type::first-letter {
  float: left;
  margin: .07em .12em 0 0;
  font-size: 3.6em;
  font-weight: 800;
  line-height: .8;
  color: var(--tl-essay-accent);
}
.tl-essay .tl-essay-body h2 {
  margin: 2.1em 0 .6em;
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.65rem);
  font-weight: 780;
  line-height: 1.28;
  letter-spacing: -.018em;
  color: var(--tl-essay-ink);
}
.tl-essay .tl-essay-body h3 {
  margin: 1.8em 0 .45em;
  font-size: 1.15em;
  font-weight: 750;
  line-height: 1.35;
  color: var(--tl-essay-ink);
}
.tl-essay .tl-essay-body :is(h2, h3) + p { margin-top: 0; }
.tl-essay .tl-essay-body a {
  color: var(--tl-essay-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tl-essay-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.tl-essay .tl-essay-body a:hover { text-decoration-thickness: 3px; }
.tl-essay .tl-essay-body :is(strong, b) { font-weight: 720; }
.tl-essay .tl-essay-body :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.3em; }
.tl-essay .tl-essay-body li { margin: 0 0 .45em; padding-left: .15em; }
.tl-essay .tl-essay-body li::marker { color: var(--tl-essay-accent); font-weight: 700; }
.tl-essay .tl-essay-body blockquote:not(.tl-essay-pull) {
  margin: 1.6em 0;
  padding: 2px 0 2px 1.1em;
  border-left: 3px solid var(--tl-essay-line);
  color: var(--tl-essay-ink2);
}
.tl-essay .tl-essay-body figure:not(.tl-essay-pull) { margin: 2em 0; }
.tl-essay .tl-essay-body figure:not(.tl-essay-pull) img { display: block; width: 100%; height: auto; border-radius: 8px; }
.tl-essay .tl-essay-body figure:not(.tl-essay-pull) figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.5; color: var(--tl-essay-muted); }
.tl-essay .tl-essay-body hr { margin: 2.6em auto; width: 72px; border: 0; border-top: 2px solid var(--tl-essay-line); }
.tl-essay .tl-essay-body :is(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
.tl-essay .tl-essay-body table { margin: 1.6em 0; border-collapse: collapse; font-size: .9em; line-height: 1.5; }
.tl-essay .tl-essay-body :is(th, td) { padding: 8px 12px; border-bottom: 1px solid var(--tl-essay-line); text-align: left; vertical-align: top; }
.tl-essay .tl-essay-body th { font-weight: 700; color: var(--tl-essay-ink); }

/* Hub index: a numbered contents list, one tap row per essay. */
.tl-essay .tl-essay-body > ul:only-child {
  counter-reset: tl-essay-toc;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--tl-essay-ink);
}
.tl-essay .tl-essay-body > ul:only-child > li {
  counter-increment: tl-essay-toc;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--tl-essay-line);
}
.tl-essay .tl-essay-body > ul:only-child > li > a {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  align-items: baseline;
  min-height: 52px;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
  color: var(--tl-essay-ink);
}
.tl-essay .tl-essay-body > ul:only-child > li > a::before {
  content: counter(tl-essay-toc, decimal-leading-zero);
  font-size: .8125rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--tl-essay-accent);
}
.tl-essay .tl-essay-body > ul:only-child > li > a:hover { background: var(--tl-essay-tint); text-decoration: none; }

/* ---------- pull quote ---------- */
.tl-essay .tl-essay-pull {
  position: relative;
  margin-top: clamp(40px, 5vw, 60px);
  margin-bottom: clamp(40px, 5vw, 60px);
  padding: 1.1em 0 1.1em;
  border: 0;
  border-top: 2px solid var(--tl-essay-ink);
  border-bottom: 1px solid var(--tl-essay-line);
  background: none;
  color: var(--tl-essay-ink);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  font-weight: 720;
  line-height: 1.38;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-pull { line-height: 1.55; letter-spacing: 0; }
.tl-essay .tl-essay-pull::before {
  content: "\201C";
  display: block;
  height: .5em;
  margin-bottom: .15em;
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1;
  color: var(--tl-essay-accent);
}
.tl-essay .tl-essay-pull :is(p, blockquote) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; }
.tl-essay .tl-essay-pull :is(cite, figcaption, footer) {
  display: block;
  margin-top: .9em;
  font-size: .9375rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--tl-essay-muted);
}
.tl-essay .tl-essay-pull :is(cite, figcaption, footer)::before { content: "\2014\a0"; }

/* ---------- facts: label over value, ruled rows, first value leads ---------- */
.tl-essay .tl-essay-facts {
  margin-top: clamp(40px, 5vw, 60px);
  margin-bottom: 0;
  padding: 0;
  border-top: 2px solid var(--tl-essay-ink);
}
.tl-essay .tl-essay-facts > :is(h2, h3) {
  margin: 14px 0 2px;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tl-essay-ink);
}
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-facts > :is(h2, h3) { letter-spacing: .02em; font-size: .9375rem; }
.tl-essay .tl-essay-facts :is(ul, ol, dl) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tl-essay .tl-essay-facts :is(li, dl > div) {
  margin: 0;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--tl-essay-line);
  min-width: 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--tl-essay-ink2);
}
.tl-essay .tl-essay-facts dt {
  margin: 0 0 4px;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tl-essay-muted);
}
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-facts dt { font-size: .8125rem; letter-spacing: .02em; }
.tl-essay .tl-essay-facts dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--tl-essay-ink);
  display: block;
  animation: tl-vibe-num-settle var(--tl-motion-duration, 300ms) cubic-bezier(0.16, 1, 0.3, 1) backwards;
  will-change: transform, opacity;
}
.tl-essay .tl-essay-facts :is(li, dl > div):nth-child(1) dd { animation-delay: 40ms; }
.tl-essay .tl-essay-facts :is(li, dl > div):nth-child(2) dd { animation-delay: 80ms; }
.tl-essay .tl-essay-facts :is(li, dl > div):nth-child(3) dd { animation-delay: 120ms; }
.tl-essay .tl-essay-facts :is(li, dl > div):nth-child(4) dd { animation-delay: 160ms; }
.tl-essay .tl-essay-facts dl > div:first-child dd {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.tl-essay .tl-essay-facts :is(li > strong:first-child, li > b:first-child) {
  display: block;
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--tl-essay-ink);
}
.tl-essay .tl-essay-facts :is(small, .src) { display: block; margin-top: 4px; font-size: .8125rem; color: var(--tl-essay-muted); }

/* ---------- culture note for the reader's language ---------- */
.tl-essay .tl-essay-culture {
  margin-top: clamp(36px, 4.5vw, 52px);
  margin-bottom: 0;
  padding: 20px 22px 6px;
  background: var(--tl-essay-tint);
  border-left: 3px solid var(--tl-essay-accent);
  border-radius: 0 8px 8px 0;
  color: var(--tl-essay-ink);
  font-size: 1rem;
  line-height: 1.7;
  animation: tl-vibe-culture-reveal var(--tl-motion-duration, 320ms) cubic-bezier(0.16, 1, 0.3, 1) backwards;
  will-change: opacity, transform;
}
.tl-essay .tl-essay-culture > :is(h2, h3, .tl-vibe-culture-note) {
  margin: 0 0 8px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 1.0625rem;
  font-weight: 760;
  line-height: 1.4;
  color: var(--tl-essay-ink);
}
.tl-essay .tl-essay-culture p { margin: 0 0 14px; }
.tl-essay .tl-essay-culture a {
  color: var(--tl-essay-ink);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--tl-essay-accent);
  text-underline-offset: 3px;
}

/* ---------- next step ---------- */
.tl-essay .tl-essay-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: clamp(40px, 5vw, 60px);
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--tl-essay-line);
}
.tl-essay .tl-essay-next > :is(h2, h3) {
  margin: 0 0 2px;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tl-essay-muted);
}
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-next > :is(h2, h3) { letter-spacing: .02em; font-size: .9375rem; }
.tl-essay .tl-essay-next :is(ul, ol) { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tl-essay .tl-essay-next li { margin: 0; }
.tl-essay .tl-essay-next a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 14px 52px 14px 18px;
  border: 1px solid var(--tl-essay-line);
  border-radius: 10px;
  background: var(--tl-essay-paper);
  color: var(--tl-essay-ink);
  font-size: 1.0625rem;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform var(--tl-motion-duration, 200ms) cubic-bezier(0.16, 1, 0.3, 1), box-shadow var(--tl-motion-duration, 200ms) ease;
  will-change: transform;
}
.tl-essay .tl-essay-next a::after {
  content: "\2192";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--tl-essay-accent);
  transition: transform .15s ease;
}
.tl-essay .tl-essay-next a :is(span, small) {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--tl-essay-muted);
}
.tl-essay .tl-essay-next a:hover,
.tl-essay .tl-essay-next a:focus {
  border-color: var(--tl-essay-accent);
  background: var(--tl-essay-tint);
  text-decoration: none;
  transform: translateX(4px);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tl-essay-accent) 18%, transparent);
}
.tl-essay .tl-essay-next a:hover::after,
.tl-essay .tl-essay-next a:focus::after {
  transform: translate(4px, -50%);
}
.tl-essay .tl-essay-next a:focus-visible {
  outline: 3px solid var(--tl-essay-accent);
  outline-offset: 3px;
  transform: translateX(4px);
}
.tl-essay .tl-essay-next li:first-child > a,
.tl-essay .tl-essay-next > a:first-of-type { border-color: var(--tl-essay-ink); border-width: 2px; padding: 13px 51px 13px 17px; }
/* "Next essay" hint reads first, title second. */
.tl-essay .tl-essay-next > a:first-of-type > span { order: -1; color: var(--tl-essay-accent); text-transform: uppercase; letter-spacing: .08em; }
.tl-essay:is(:lang(ko), :lang(ja), :lang(zh)) .tl-essay-next > a:first-of-type > span { text-transform: none; letter-spacing: .02em; }

.tl-essay :is(a, button, summary):focus-visible {
  outline: 3px solid var(--tl-essay-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.tl-essay :is(button, summary, select, input) { min-height: 44px; }
body:has(.tl-essay) .tl-share-btn { min-height: 44px; min-width: 44px; }
body.tl-essay-page main .crumbs { margin-bottom: 14px; }

/* ---------- widths ---------- */
@media (min-width: 769px) {
  .tl-essay .tl-essay-facts dl,
  .tl-essay .tl-essay-facts :is(ul, ol) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .tl-essay .tl-essay-facts dl > div:first-child,
  .tl-essay .tl-essay-facts :is(ul, ol) > li:first-child { grid-column: 1 / -1; }
  .tl-essay .tl-essay-next:has(> a + a) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .tl-essay .tl-essay-body > ul:only-child { columns: 2; column-gap: 32px; }
  .tl-essay .tl-essay-body > ul:only-child > li { break-inside: avoid; }
}
@media (min-width: 1100px) {
  .tl-essay .tl-essay-pull { max-width: var(--tl-essay-wide); }
  .tl-essay .tl-essay-body > ul:only-child { max-width: var(--tl-essay-wide); margin-left: calc((var(--tl-essay-measure) - var(--tl-essay-wide)) / 2); margin-right: calc((var(--tl-essay-measure) - var(--tl-essay-wide)) / 2); }
}
/* Phones and small tablets: no sheet, prose on the page canvas, full width. */
@media (max-width: 768px) {
  body:has(.tl-essay) .tl-share-fab { flex-direction: row; align-items: center; }
  /* The current essay's title is the h1 right below; keep the trail on one row. */
  body.tl-essay-page main .crumbs { margin-bottom: 4px; }
  body.tl-essay-page main .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  body.tl-essay-page main .crumbs > span:last-child:not(.sep),
  body.tl-essay-page main .crumbs > .sep:nth-last-child(2):has(+ span:last-child:not(.sep)) { display: none; }
  .tl-essay {
    --tl-essay-pad-t: 0px;
    --tl-essay-pad-x: 0px;
    padding: 4px 0 88px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .tl-essay :is(header.tl-essay-hero, > header.tl-essay-hero) > :is(img, picture, svg):first-child {
    width: 100%;
    margin: 0 0 24px;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }
  .tl-essay .tl-essay-kicker { margin-bottom: 12px; }
  .tl-essay .tl-essay-culture { padding: 18px 18px 4px; }
  .tl-essay .tl-essay-pull { font-size: clamp(1.2rem, 1rem + 1.4vw, 1.45rem); }
}

@keyframes tl-vibe-num-settle {
  from {
    opacity: 0.25;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tl-vibe-culture-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-essay .tl-essay-facts dd,
  .tl-essay .tl-essay-culture {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .tl-essay .tl-essay-next a,
  .tl-essay .tl-essay-next a::after {
    transition: none !important;
  }
  .tl-essay .tl-essay-next a:hover,
  .tl-essay .tl-essay-next a:focus {
    transform: none !important;
  }
  .tl-essay .tl-essay-next a:hover::after,
  .tl-essay .tl-essay-next a:focus::after {
    transform: translateY(-50%) !important;
  }
}

@media print {
  body.tl-essay-page.war { background: #fff; color: #000; }
  .tl-essay { max-width: none; padding: 0; border: 0; background: #fff; color: #000; --tl-essay-ink: #000; --tl-essay-ink2: #222; --tl-essay-muted: #444; --tl-essay-line: #ccc; }
  .tl-essay :is(header.tl-essay-hero, > header.tl-essay-hero) > :is(img, picture, svg):first-child { width: 100%; margin: 0 0 16px; }
  .tl-essay .tl-essay-next { display: none; }
  .tl-essay .tl-essay-pull, .tl-essay .tl-essay-culture, .tl-essay .tl-essay-facts, .tl-tier10-card { break-inside: avoid; }
}

/* ---------- Top-Tier 10 Suite (.tl-tier10-*) ---------- */
.tl-essay .tl-tier10-suite {
  max-width: var(--tl-essay-measure);
  margin: clamp(36px, 4.5vw, 56px) auto 0;
  display: grid;
  gap: 18px;
}
.tl-essay .tl-tier10-card {
  padding: 20px 22px;
  border: 1px solid var(--tl-essay-line);
  border-radius: 10px;
  background: var(--tl-essay-paper);
  color: var(--tl-essay-ink);
}
.tl-essay .tl-tier10-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.tl-essay .tl-tier10-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 760;
  line-height: 1.35;
  color: var(--tl-essay-ink);
  flex: 1;
}
.tl-essay .tl-tier10-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--tl-essay-tint);
  color: var(--tl-essay-accent);
  font-size: .75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tl-essay .tl-tier10-badge,
.tl-essay .tl-tier10-stamp,
.tl-essay .tl-tier10-score {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tl-essay-tint);
  color: var(--tl-essay-accent);
  font-size: .75rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.tl-essay .tl-tier10-sub,
.tl-essay .tl-tier10-note,
.tl-essay .tl-tier10-prov-text {
  margin: 0 0 12px;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--tl-essay-ink2);
}
.tl-essay .tl-tier10-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tl-essay .tl-tier10-pill {
  padding: 8px 14px;
  min-height: 40px;
  border: 1px solid var(--tl-essay-line);
  border-radius: 999px;
  background: var(--tl-essay-paper);
  color: var(--tl-essay-ink2);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.tl-essay .tl-tier10-pill.is-active,
.tl-essay .tl-tier10-pill:hover {
  border-color: var(--tl-essay-accent);
  background: var(--tl-essay-tint);
  color: var(--tl-essay-ink);
}
.tl-essay .tl-tier10-matrix-panel {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--tl-essay-tint);
  border-left: 3px solid var(--tl-essay-accent);
}
.tl-essay .tl-tier10-matrix-cond { margin: 0 0 6px; font-size: .9375rem; }
.tl-essay .tl-tier10-matrix-act { margin: 0 0 8px; font-size: .9375rem; color: var(--tl-essay-ink2); }
.tl-essay .tl-tier10-matrix-metric {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 750;
  color: var(--tl-essay-accent);
  font-variant-numeric: tabular-nums;
}
.tl-essay .tl-tier10-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 0 0 10px;
}
.tl-essay .tl-tier10-dl > div {
  padding: 8px 0;
  border-bottom: 1px solid var(--tl-essay-line);
}
.tl-essay .tl-tier10-dl dt {
  font-size: .75rem;
  font-weight: 750;
  color: var(--tl-essay-muted);
  margin-bottom: 2px;
}
.tl-essay .tl-tier10-dl dd {
  margin: 0;
  font-size: .9375rem;
  font-weight: 650;
  color: var(--tl-essay-ink);
}
.tl-essay .tl-tier10-checks {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.tl-essay .tl-tier10-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.tl-essay .tl-tier10-check input[type="checkbox"] {
  min-height: 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--tl-essay-accent);
}
.tl-essay .tl-tier10-verdict {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--tl-essay-tint);
  font-size: .875rem;
  font-weight: 650;
}
.tl-essay .tl-tier10-bars { display: grid; gap: 10px; }
.tl-essay .tl-tier10-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.tl-essay .tl-tier10-svgbar { display: block; width: 100%; height: 10px; }
.tl-essay .tl-tier10-svg-bg { fill: var(--tl-essay-line); }
.tl-essay .tl-tier10-svg-fill { fill: var(--tl-essay-accent); }
.tl-essay .tl-tier10-ol,
.tl-essay .tl-tier10-ul {
  margin: 0;
  padding-left: 1.25em;
  font-size: .9375rem;
  line-height: 1.6;
}
.tl-essay .tl-tier10-ol li,
.tl-essay .tl-tier10-ul li { margin-bottom: 6px; }
.tl-essay .tl-tier10-qas { display: grid; gap: 8px; }
.tl-essay .tl-tier10-qa {
  border-bottom: 1px solid var(--tl-essay-line);
  padding-bottom: 8px;
}
.tl-essay .tl-tier10-qa summary {
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.tl-essay .tl-tier10-qa p {
  margin: 6px 0 2px;
  font-size: .9375rem;
  color: var(--tl-essay-ink2);
}
.tl-essay .tl-tier10-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.tl-essay .tl-tier10-tool-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--tl-essay-line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--tl-essay-ink);
}
.tl-essay .tl-tier10-tool-link:hover {
  border-color: var(--tl-essay-accent);
  background: var(--tl-essay-tint);
}
.tl-essay .tl-tier10-tool-link span {
  font-size: .8125rem;
  color: var(--tl-essay-muted);
}
.tl-essay .tl-tier10-prov-src {
  margin: 0;
  font-size: .875rem;
  color: var(--tl-essay-muted);
}
.tl-essay .tl-tier10-prov-src a {
  color: var(--tl-essay-accent);
  font-weight: 700;
  text-decoration: underline;
}
