/* ---------- skip link ---------- */
.tl-skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.tl-skip:focus,
.tl-skip:focus-visible {
  transform: translateY(0);
  outline: 2px solid #5eead4;
  outline-offset: 2px;
  text-decoration: none;
}

/* ---------- apps panel mobile discovery ---------- */
.tl-apps-discover {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.tl-apps-discover a {
  font-weight: 700;
  color: var(--accent2);
}
@media (max-width: 720px) {
  .tl-apps-discover { display: flex; }
}

/* ---------- 404 recovery ---------- */
.tl-404 {
  padding: 48px 0 72px;
  max-width: 40rem;
}
.tl-404 .kicker {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.tl-404 h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.tl-404 .lede { color: var(--muted); margin: 0 0 22px; }
.tl-404-search { margin: 0 0 22px; }
.tl-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}
.tl-404-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.tl-404-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tl-404 h2 { font-size: 1.05rem; margin: 0 0 12px; }
.tl-404-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-404-app {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  font-size: .9rem;
  text-decoration: none;
}
.tl-404-app:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Tool-Lifes design system — self-hosted fonts (no Google Fonts round-trip) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/outfit-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/outfit-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/outfit-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/outfit-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/source-serif-4-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/source-serif-4-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/source-serif-4-latin-700.woff2") format("woff2");
}

:root {
  --accent: #0f766e;
  --accent2: #134e4a;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink2: #2a3a4d;
  --muted: #5b6b7c;
  --line: #dde5ec;
  --track: #e8eef3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 14px 40px -18px rgba(11, 18, 32, .18);
  --maxw: 1120px;
  --header-bg: rgba(255, 255, 255, .86);
  --font-display: "Outfit", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-sans: var(--font-display);
  --font-body: "Source Serif 4", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Mincho ProN", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2dd4bf;
    --accent2: #0f766e;
    --bg: #0b1220;
    --surface: #121a28;
    --ink: #e8eef6;
    --ink2: #c5d0de;
    --muted: #94a3b8;
    --line: #2a3648;
    --track: #1a2434;
    --header-bg: rgba(11, 18, 32, .9);
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 18px 40px -20px rgba(0, 0, 0, .55);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 23, 42, .05), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.68;
  overflow-wrap: break-word;
}
.tl-article, .section-intro, .tl-article .a, body[data-tl-article] main .wrap > section > p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, .brand, .appname, .hub-brand, .kicker, .tl-toc-title, .tl-pick-app,
.hub-stat b, .app-tile h3, .hub-featured-card strong {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
h1, h2, h3, h4 { line-height: 1.22; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 .85rem; font-weight: 700; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .55rem; font-weight: 650; }
p { margin: 0 0 1.05em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.appname { color: var(--ink2); font-weight: 600; font-size: .95rem; }
.appname:hover { color: var(--accent); text-decoration: none; }
.spacer { flex: 1; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 6px 28px 6px 12px;
  font-size: .88rem; color: var(--ink2); cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #101b33 55%, var(--accent2) 130%);
  padding: 52px 0 46px;
}
.hero .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #cbd5e1;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin: 0 0 12px; font-weight: 800; }
.hero .lede { color: #dbe3ee; font-size: 1.06rem; max-width: 46em; margin: 0; }
.hero .emoji { font-size: 2.2rem; vertical-align: -4px; margin-right: 8px; }

/* breadcrumbs */
.crumbs { font-size: .84rem; color: #9fb0c7; margin-bottom: 16px; }
.crumbs a { color: #c7d4e6; }
.crumbs .sep { margin: 0 7px; opacity: .55; }

/* section pill nav */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: #e8eef6; font-size: .9rem; font-weight: 600;
}
.pill:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.pill.active { background: var(--accent); border-color: transparent; color: #fff; }

/* ---------- main ---------- */
main { padding: 40px 0 64px; }
.section-intro { font-size: 1.04rem; color: var(--ink2); max-width: 52em; }

/* card grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
a.card { color: var(--ink); display: block; transition: transform .12s ease, border-color .12s ease; }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: 0 0 6px; }
.card .sub { color: var(--muted); font-size: .92rem; margin: 0; }
.card .go { color: var(--accent); font-weight: 700; font-size: .9rem; }

/* sport cards on app home */
.sport-card { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--card-accent, var(--accent)); }
.sport-card .icon { font-size: 2rem; line-height: 1; }
.sport-card h3 { font-size: 1.25rem; }

/* quick facts */
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 8px 0 4px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact .v { font-weight: 800; font-size: 1.12rem; color: var(--accent2); display: block; }
.fact .k { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin: 18px 0 8px; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--line));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 20px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--accent);
}
.tl-year { font-weight: 800; color: var(--accent2); font-size: .95rem; margin-right: 10px; }
.tl-title { font-weight: 700; }
.tl-detail { color: var(--ink2); font-size: .95rem; margin: 2px 0 0; }

/* eras */
.era { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 22px; margin: 14px 0; box-shadow: var(--shadow); }
.era .period { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.era h3 { margin: 4px 0 8px; }
.era p { margin: 0; color: var(--ink2); }

/* ---------- tactics diagrams ---------- */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.diagram h3 { margin: 2px 0 12px; }
.diagram figure { margin: 0; }
.diagram .board { border-radius: 10px; overflow: hidden; display: block; }
.diagram figcaption { color: var(--ink2); font-size: .95rem; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.legend .chip { font-size: .8rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 11px; color: var(--ink2); }
.legend .chip b { color: var(--accent2); }

/* concepts */
.concept { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; }
.concept h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--accent2); }
.concept p { margin: 0; font-size: .95rem; color: var(--ink2); }

/* ---------- GOAT ranking ---------- */
.goat { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; box-shadow: var(--shadow); }
.goat .rank {
  flex: 0 0 auto; font-size: 2.3rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
  min-width: 52px; text-align: center; padding-top: 4px;
}
.goat.top1 .rank { color: var(--accent); -webkit-text-stroke: 0; }
.goat .body { flex: 1; min-width: 0; }
.goat .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.goat .who h3 { margin: 0; font-size: 1.25rem; }
.goat .meta { color: var(--muted); font-size: .88rem; }
.goat .blurb { color: var(--ink2); font-size: .96rem; margin: 8px 0 14px; }
.stats { display: grid; gap: 8px; }
.stat { display: grid; grid-template-columns: minmax(110px, 170px) 1fr auto; gap: 10px; align-items: center; }
.stat .sl { font-size: .8rem; color: var(--muted); }
.stat .bar { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.stat .fill { height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0b1220)); }
.stat .sv { font-size: .85rem; font-weight: 700; color: var(--accent2); white-space: nowrap; }
.stat-note { color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* trend key-number bars reuse .stats inside a card */
.numbers { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 16px 0; box-shadow: var(--shadow); }

/* trend items */
.trend { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 14px 0; }
.trend h3 { margin: 0 0 6px; }
.trend p { margin: 0; color: var(--ink2); }

/* ---------- FAQ ---------- */
.faq {
  margin: 2.6rem 0;
  padding: 1.4rem 1.35rem 1.1rem;
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 6%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.faq > h2 { margin-top: 0; }
.faq details {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 0; margin: 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; font-weight: 650; font-family: var(--font-display);
  padding: 16px 28px 16px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-52%);
  font-weight: 500; color: var(--accent); font-size: 1.25rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 16px; color: var(--ink2); font-size: .97rem; font-family: var(--font-body); }
.tl-faq-jump {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; font-family: var(--font-display);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px; padding: 5px 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.tl-faq-jump:hover { text-decoration: none; border-color: var(--accent); }

/* highlight teasers on sport hub */
.teasers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 10px; }

/* prev/next + related */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 14px; }

/* ---------- hub landing ---------- */
.hub-page main { padding-top: 40px; }
.hub-hero {
  text-align: left;
  padding: clamp(72px, 13vh, 112px) 0 clamp(56px, 9vh, 80px);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(68vh, 580px);
  display: flex; align-items: flex-end;
}
.hub-hero .wrap { width: 100%; padding-bottom: 8px; }
.hub-brand {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 18px;
}
.hub-brand .dot { color: #5eead4; }
.hub-hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 4rem);
  max-width: 11em;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.hub-hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  max-width: 32em;
  color: #a8bacd;
  margin: 0 0 28px;
}
.hub-hero::after {
  content: ""; position: absolute; width: min(58vmin, 520px); height: min(58vmin, 520px);
  border-radius: 50%; right: -8%; top: 8%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 40% 40%, rgba(94, 234, 212, .22), rgba(14, 116, 144, .12) 42%, transparent 68%);
  filter: blur(2px);
}
.hub-hero > * { position: relative; z-index: 1; }
.hub-stats {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
  margin: 0 0 22px; padding: 0;
}
.hub-stat { display: flex; flex-direction: column; gap: 2px; min-width: 4.5rem; }
.hub-stat b {
  font-size: clamp(1.55rem, 3.2vw, 2rem); font-weight: 700; color: #e8f7f4;
  letter-spacing: -.03em; line-height: 1.1;
}
.hub-stat span {
  font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(168, 186, 205, .9);
}
.hub-hint { max-width: 42em; color: var(--muted); margin: -.35rem 0 1.4rem; font-size: .98rem; }
.hub-tools { margin: 0 0 1.4rem; }
.hub-filter input {
  width: min(100%, 28rem); font: inherit; padding: .75rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.hub-filter input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.hub-group { margin: 0 0 2.6rem; }
.hub-group h2 {
  font-size: .78rem; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem; padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}
.hub-browse-empty { color: var(--muted); padding: 1rem 0 2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.apps-strip {
  display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.apps-strip a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.apps-strip a:hover { color: var(--accent); }
.apps-strip-header {
  max-width: min(42vw, 28rem); max-height: 2.4rem; overflow: hidden; margin-left: .6rem;
}
@media (max-width: 900px) { .apps-strip-header { display: none; } }

.hub-grid {
  gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
}
.app-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 22px 26px 26px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  transition: background .2s ease;
}
.app-tile:hover { text-decoration: none; background: var(--surface); }
.app-tile-accent {
  position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 2px;
  background: var(--card-accent, var(--accent));
  opacity: .85;
}
.app-tile .icons {
  font-size: 1.15rem; letter-spacing: .2em; line-height: 1;
  opacity: .72; filter: grayscale(.15);
}
.app-tile h3 {
  margin: 2px 0 0; font-size: 1.18rem; font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.025em;
}
.app-tile .sub {
  color: var(--muted); font-size: .9rem; margin: 0;
  line-height: 1.55; flex: 1;
}
.app-tile .go {
  color: var(--ink); font-weight: 650; font-size: .86rem;
  letter-spacing: -.01em; margin-top: 6px;
}
.app-tile:hover .go { color: var(--accent); }
.badge-soon { display: inline-block; font-size: .78rem; color: var(--muted); border: 1px dashed var(--line);
  border-radius: 999px; padding: 3px 12px; }

.hub-featured { margin: 0 0 2.8rem; }
.hub-featured > h2 {
  font-size: .78rem; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem;
}
.hub-featured-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.hub-featured-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.hub-featured-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-1px); }
.hub-featured-card strong {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em;
}
.hub-featured-card span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

.hub-search {
  display: flex; gap: 0; margin: 0; max-width: 440px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.hub-search input {
  flex: 1; border: 0; border-radius: 0; padding: 14px 18px;
  font: inherit; background: transparent; color: #fff;
}
.hub-search input::placeholder { color: #8fa3b8; }
.hub-search input:focus { outline: none; }
.hub-search button {
  border: 0; border-radius: 0; padding: 14px 20px; font: inherit; font-weight: 650;
  background: #5eead4; color: #0a1628; cursor: pointer;
}
.hub-search button:hover { background: #99f6e4; }
.search-page .hub-search {
  background: var(--surface); border-color: var(--line);
}
.search-page .hub-search input { color: var(--ink); }
.search-page .hub-search button { background: var(--accent); color: #fff; }

/* ---------- footer ---------- */
.site-footer .footer-apps {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(148, 163, 184, .25);
}
.site-footer .footer-apps a {
  color: #e2e8f0; margin-right: 0; font-size: .82rem; font-weight: 600;
}
.site-footer .footer-apps a:hover { color: #fff; }

/* ==========================================================================
   Visual layer: depth, motion, interactive infographics
   All of it is enhancement — the page is complete and readable without JS,
   and every animation collapses under prefers-reduced-motion.
   ========================================================================== */

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }

/* ---------- 3D tilt surfaces ---------- */
[data-tilt] { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  transform-style: preserve-3d; }
[data-tilt].is-tilting { will-change: transform; }
[data-tilt]:hover { box-shadow: 0 18px 44px -18px rgba(15,23,42,.42), 0 2px 6px rgba(15,23,42,.08); }
/* light that follows the cursor across the tilted surface */
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(340px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.16), transparent 62%); }
[data-tilt]:hover::after { opacity: 1; }

/* ---------- hero depth ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 150%;
  background: radial-gradient(60% 60% at 78% 8%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
  pointer-events: none; }
.hero > * { position: relative; }

/* ---------- podium (all-time top 3) ---------- */
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end;
  margin: 4px 0 26px; perspective: 900px; }
.pod { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 6px 6px;
  padding: 16px 14px 14px; text-align: center; position: relative; box-shadow: var(--shadow);
  transform-style: preserve-3d; }
.pod .pmedal { font-size: 1.6rem; line-height: 1; }
.pod .pname { font-weight: 800; font-size: 1rem; margin: 8px 0 2px; letter-spacing: -.01em; }
.pod .pmeta { font-size: .78rem; color: var(--muted); }
.pod .pbase { margin-top: 12px; border-radius: 6px; background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 900; font-size: 1.35rem; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 2px 0 rgba(255,255,255,.28); }
.pod.p1 .pbase { height: 92px; } .pod.p2 .pbase { height: 66px; } .pod.p3 .pbase { height: 50px; }
.pod.p1 { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (max-width: 520px) { .podium { gap: 8px; } .pod { padding: 12px 8px 10px; } .pod .pname { font-size: .86rem; } }

/* ---------- comparison lab ---------- */
.lab { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin: 18px 0 26px; }
.lab-hint { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.lab-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.lab-tools button { font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
  background: var(--track); color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.lab-tools button:hover { background: var(--line); }
.lab-tools .lab-n { margin-left: auto; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lab-chips .chip { font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.lab-chips .chip .cr { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px;
  border-radius: 50%; background: var(--line); color: var(--ink2); font-size: .72rem; font-weight: 800;
  font-variant-numeric: tabular-nums; }
.lab-chips .chip.on { background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--ink); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.lab-chips .chip.on .cr { background: var(--accent); color: #fff; }
.lab-chips .chip:hover { transform: translateY(-1px); }
.lab-chips .chip:focus-visible, .lab-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lab-out { display: grid; gap: 20px; grid-template-columns: minmax(200px, 260px) 1fr; }
@media (max-width: 700px) { .lab-out { grid-template-columns: 1fr; } .lab { padding: 16px; } }
.lab-board h4, .lab-metric h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.lab-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lab-rank li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 9px; background: var(--bg); font-size: .9rem; }
.lab-rank li:first-child { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); font-weight: 700; }
.lab-rank .lr { font-weight: 900; color: var(--accent2); font-variant-numeric: tabular-nums; }
.lab-rank .ls { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lab-metrics { display: grid; gap: 16px; }
.lab-metric { min-width: 0; }
.lab-row { display: grid; grid-template-columns: minmax(72px, 130px) 1fr auto; align-items: center;
  gap: 10px; margin-bottom: 5px; font-size: .86rem; }
.lab-row .lab-name { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-row.is-top .lab-name { font-weight: 800; color: var(--ink); }
.lab-track { background: var(--track); border-radius: 999px; height: 11px; overflow: hidden; }
.lab-fill { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  transition: width .7s cubic-bezier(.22,1,.36,1); }
.lab-row.is-top .lab-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.lab-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink2); font-size: .82rem; }
.lab-empty { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- radial gauges ---------- */
.gauges { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 6px 0 8px; }
.gauge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow); position: relative; }
.gauge svg { width: 96px; height: 96px; display: block; margin: 0 auto 10px; }
.gauge .g-track { fill: none; stroke: var(--track); stroke-width: 9; }
.gauge .g-ring { fill: none; stroke: url(#gg); stroke-width: 9; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%; }
.gauge .g-val { font-size: 1.14rem; font-weight: 900; color: var(--ink); line-height: 1.2;
  letter-spacing: -.02em; overflow-wrap: break-word; }
.gauge .g-label { font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.35; margin-top: 4px; }

/* ---------- era ribbon (history) ---------- */
.ribbon { display: flex; gap: 3px; margin: 2px 0 22px; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); }
.ribbon span { flex: 1; height: 10px; background: linear-gradient(90deg,
  color-mix(in srgb, var(--accent) 22%, var(--track)), var(--accent)); }
.ribbon span:nth-child(even) { opacity: .72; }

/* ---------- expansion: clubs, matches, start, glossary ---------- */
.team-card, .match-card { display: flex; flex-direction: column; gap: 6px;
  border-top: 4px solid var(--card-accent, var(--accent)); }
.tmeta { color: var(--muted); font-size: .88rem; margin: 0; }
.tmeta b { color: var(--ink2); }
.match-card .mdate { font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  color: var(--accent); font-variant-numeric: tabular-nums; }
.match-card h3 { margin: 2px 0 4px; font-size: 1.1rem; }

.gear-cost { margin: 0 0 6px; font-size: .88rem; color: var(--muted); }
.gear-cost b { color: var(--accent2); font-size: 1rem; }
.era .tip { margin: 10px 0 0; font-size: .92rem; color: var(--ink2);
  background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.era .tip b { color: var(--accent2); }

/* glossary — a definition list that stays scannable at forty entries */
dl.glossary { margin: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
dl.glossary .term { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
dl.glossary dt { font-weight: 800; color: var(--accent2); margin: 0 0 4px; }
dl.glossary dt .ten { font-weight: 600; font-size: .8rem; color: var(--muted); margin-left: 6px; }
dl.glossary dd { margin: 0; font-size: .93rem; color: var(--ink2); }

/* ---------- next fixture ----------
   Injected by app.js only when the API returns a match; absent otherwise. */
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fixtures li { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; gap: 12px;
  align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 16px; box-shadow: var(--shadow); }
.fx-when { font-size: .82rem; font-weight: 700; color: var(--accent2); font-variant-numeric: tabular-nums; }
.fx-teams { font-size: .95rem; }
.fx-teams i { font-style: normal; color: var(--muted); margin: 0 6px; font-size: .85rem; }
.fx-venue { font-size: .8rem; color: var(--muted); text-align: right; }
/* shown per row only when several competitions are merged into one list */
.fx-league { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent2); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px; padding: 2px 8px; margin-left: 8px; white-space: nowrap; }
@media (max-width: 620px) {
  .fixtures li { grid-template-columns: 1fr; gap: 4px; }
  .fx-venue { text-align: left; }
}
.live-league { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px;
  vertical-align: middle; margin-left: 8px; }
/* ---------- head-to-head (VS) pages ---------- */
.duel-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 6px 0 24px; }
.duelist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; text-align: center; box-shadow: var(--shadow); }
.duelist.a { border-top: 4px solid var(--accent); }
.duelist.b { border-top: 4px solid var(--accent2); }
.duelist h2 { margin: 4px 0 2px; font-size: 1.25rem; letter-spacing: -.01em; }
.duelist .drank { font-weight: 900; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.duelist .dmeta { margin: 0; color: var(--muted); font-size: .85rem; }
.dvs { font-weight: 900; font-size: 1.3rem; color: var(--muted); letter-spacing: .04em; }
.duel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); }
.duel-row { display: grid; grid-template-columns: auto 1fr minmax(90px, auto) 1fr auto;
  gap: 10px; align-items: center; margin-bottom: 9px; }
.duel-row .dlabel { text-align: center; font-size: .8rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; }
.duel-row .dv { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; color: var(--ink2); min-width: 3.2em; }
.duel-row .dv.a { text-align: right; } .duel-row .dv.b { text-align: left; }
.duel-row .dv.win { font-weight: 900; color: var(--ink); }
.duel-row .dbar { background: var(--track); border-radius: 999px; height: 11px; overflow: hidden; }
.duel-row .dbar.a { transform: scaleX(-1); }  /* bar grows toward the centre from the left side */
.duel-row .dfill { display: block; height: 100%; border-radius: 999px; width: 0;
  transition: width .7s cubic-bezier(.22,1,.36,1); }
.duel-row .dbar.a .dfill { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); }
.duel-row .dbar.b .dfill { background: linear-gradient(90deg, var(--accent2), color-mix(in srgb, var(--accent2) 55%, #fff)); }
@media (max-width: 560px) {
  /* stack: label, then A's value+bar, then B's value+bar (both left-to-right) */
  .duel-row { grid-template-columns: auto 1fr;
    grid-template-areas: "lbl lbl" "va ba" "vb bb"; margin-bottom: 14px; }
  .duel-row .dlabel { grid-area: lbl; text-align: left; }
  .duel-row .dv.a { grid-area: va; text-align: left; }
  .duel-row .dbar.a { grid-area: ba; transform: none; }
  .duel-row .dbar.a .dfill { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent)); }
  .duel-row .dv.b { grid-area: vb; text-align: left; }
  .duel-row .dbar.b { grid-area: bb; }
  .duel { padding: 14px; }
}

/* ---------- share row ---------- */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.share-label { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.share-btn { font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px;
  background: var(--surface); color: var(--ink2); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; transition: transform .15s ease, background .15s ease; }
.share-btn:hover { transform: translateY(-1px); background: var(--track); }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-done { font-size: .82rem; font-weight: 700; color: var(--accent); }

/* ---------- embed box ---------- */
.embed-box { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 8px 0 24px; }
.embed-box h2 { margin-top: 0; }
.embed-code { width: 100%; font: 12px/1.5 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: var(--ink2); background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; resize: vertical; margin-bottom: 10px; }

/* ---------- rules: foul cards ---------- */
.concept.foul { border-left: 4px solid #dc2626; }
.concept.foul h3 { color: #b91c1c; }
@media (prefers-color-scheme: dark) { .concept.foul h3 { color: #f87171; } }

/* ---------- records ---------- */
.records { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.record .mark { font-size: 1.9rem; font-weight: 900; color: var(--accent2); line-height: 1.05;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.record h3 { margin: 6px 0 8px; font-size: 1.02rem; }
.record .rmeta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.record .rholder { font-weight: 700; color: var(--ink2); font-size: .92rem; }
.record .ryear { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.record .rnote { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- competitions ---------- */
.comps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.comp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); }
.comphead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comp h3 { margin: 0; font-size: 1.1rem; }
.comp .tier { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.comp .compmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; }
.comp .compmeta span { font-size: .82rem; color: var(--muted); }
.comp p { margin: 0; color: var(--ink2); font-size: .95rem; }

/* prose page (legal) */
.prose { max-width: 46em; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose li { margin: .3em 0; }

/* ---------- global search button ---------- */
.tl-search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink2);
  border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: .84rem;
}
.tl-search-btn:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }
.tl-search-kbd {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px;
}
@media (max-width: 720px) { .tl-search-kbd { display: none; } }

/* ---------- app switcher ---------- */
.tl-apps { position: relative; }
.tl-apps > summary {
  list-style: none; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700;
  color: var(--ink2); border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 6px 12px; user-select: none;
}
.tl-apps > summary::-webkit-details-marker { display: none; }
.tl-apps > summary:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tl-apps-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 220px; max-height: min(70vh, 420px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .45); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.tl-apps-panel a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .88rem; font-weight: 600;
}
.tl-apps-panel a:hover { text-decoration: none; background: color-mix(in srgb, #0d9488 10%, transparent); }
.tl-apps-panel a[aria-current="page"] { color: #0f766e; background: color-mix(in srgb, #0d9488 12%, transparent); }

/* ---------- hub search + intent ---------- */
.hub-search {
  display: flex; gap: 8px; margin: 18px 0 8px; max-width: 520px;
}
.hub-search input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; background: var(--surface); color: var(--ink);
}
.hub-search button {
  border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 700;
  background: #0f766e; color: #fff; cursor: pointer;
}
.hub-search button:hover { background: #0d9488; }
.hub-intent { margin: 36px 0 8px; }
.hub-intent > h2 { font-size: 1.35rem; margin: 0 0 14px; letter-spacing: -.02em; }
.hub-featured { margin: 8px 0 28px; }
.hub-featured h2 { margin: 0 0 12px; font-size: 1.15rem; }
.hub-featured-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.hub-featured-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, #0d9488 8%, #fff), #fff);
}
.hub-featured-card:hover { border-color: #0d9488; text-decoration: none; }
.hub-featured-card strong { font-size: 1rem; }
.hub-featured-card span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.tl-nav-link {
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; margin-right: 6px;
}
.tl-nav-link:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .tl-nav-link { display: none; } }
.tl-search-results { list-style: none; margin: 0; padding: 0; }
.tl-search-hit a {
  display: flex; gap: 12px; align-items: baseline; padding: 12px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.tl-search-hit a:hover { background: color-mix(in srgb, #0d9488 6%, transparent); }
.search-browse { margin-top: 2rem; }
.search-browse h2 { margin-bottom: .75rem; }
.search-browse h3 { margin: 1.25rem 0 .5rem; font-size: 1rem; color: var(--muted); }
.search-browse-list { list-style: none; margin: 0; padding: 0; }
.search-browse-list li { border-bottom: 1px solid var(--line); }
.search-browse-list a {
  display: block; padding: .7rem 2px; text-decoration: none; color: inherit; line-height: 1.4;
}
.search-browse-list a:hover { color: var(--accent); }
.search-browse-list strong { font-weight: 650; }
.hub-quiz-cta { margin: 0 0 18px; }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.tl-cross-pair { display: inline-flex; align-items: center; gap: 6px; }
.tl-cross-amp { color: var(--muted); font-weight: 700; }

/* ---------- reading progress ---------- */
.tl-read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: transparent;
}
.tl-read-progress.is-on { opacity: 1; }
.tl-read-progress i {
  display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, #0d9488, #0369a1);
}

/* ---------- command palette ---------- */
body.tl-palette-open { overflow: hidden; }
.tl-palette { position: fixed; inset: 0; z-index: 100; }
.tl-palette-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); }
.tl-palette-panel {
  position: relative; width: min(640px, calc(100% - 28px)); margin: 12vh auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 64px -24px rgba(15, 23, 42, .45); overflow: hidden;
}
.tl-palette-input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px;
  font: inherit; font-size: 1.05rem; outline: none; background: transparent; color: var(--ink);
}
.tl-palette-hint { padding: 8px 20px; font-size: .78rem; color: var(--muted); }
.tl-palette-list { list-style: none; margin: 0; padding: 0 0 10px; max-height: min(52vh, 420px); overflow: auto; }
.tl-palette-item {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 20px; cursor: pointer;
}
.tl-palette-item:hover, .tl-palette-item.is-active { background: color-mix(in srgb, #0d9488 10%, transparent); }
.tl-palette-app {
  flex: 0 0 auto; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #0f766e; min-width: 4.5rem;
}
.tl-palette-title { color: var(--ink); font-weight: 600; }
.tl-palette-empty { padding: 18px 20px; color: var(--muted); }

/* ---------- share FAB ---------- */
.tl-share-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.tl-share-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink2);
  border-radius: 999px; padding: 12px 16px; min-height: 44px; min-width: 44px;
  font: inherit; font-size: .85rem; font-weight: 650;
  box-shadow: var(--shadow); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tl-share-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tl-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-share-toast {
  font-size: .78rem; font-weight: 700; color: #fff; background: #0f172a;
  padding: 6px 10px; border-radius: 8px;
}

/* ---------- cross-app rail ---------- */
.tl-cross { margin: 48px auto 28px; padding-top: 8px; }
.tl-cross-title { font-size: 1.15rem; margin: 0 0 14px; }
.tl-cross-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-cross-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.tl-cross-chip:hover { text-decoration: none; border-color: #0d9488; color: #0f766e; }
.tl-cross-app {
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}

/* ---------- research sources + Wikimedia figure polish ---------- */
.wm {
  margin: 22px 0 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.wm.wm-hero, .wm.wm-lead {
  margin: 0 0 28px;
}
.wm img { display: block; width: 100%; height: auto; }
.wm figcaption {
  padding: 10px 16px 12px; font-size: .78rem; color: var(--muted); line-height: 1.5;
  background: color-mix(in srgb, var(--surface) 92%, var(--track));
}
.wm figcaption .cap { display: block; color: var(--ink2); font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.wm figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.tl-refs {
  margin: 40px 0 24px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.tl-refs h2 { margin: 0 0 14px; font-size: 1.2rem; }
.tl-ref-list { margin: 0; padding: 0 0 0 1.2em; }
.tl-ref-list li { margin: 0 0 14px; padding: 0; }
.tl-ref-title { font-weight: 700; color: var(--ink); }
.tl-ref-meta { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.tl-ref-note { display: block; font-size: .88rem; color: var(--ink2); margin-top: 4px; }
.tl-ref-badges { display: inline-flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tl-ref-badge {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: #0f766e; background: color-mix(in srgb, #0d9488 10%, transparent);
  text-decoration: none !important;
}
.tl-ref-badge:hover { border-color: #0d9488; }
.tl-ref-credits { margin: 12px 0 0; font-size: .86rem; }
.tl-trust-chrome {
  font-size: .82rem; color: var(--muted); margin: 8px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
}
.tl-trust-chrome .sep { opacity: .5; }
.tl-trust-chrome a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.tl-trust-reviewed { font-weight: 600; color: var(--ink2); }

/* ---------- pull-quote card ---------- */
.tl-quote {
  margin: 1.6rem 0; padding: 22px 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow);
  position: relative;
}
.tl-quote blockquote { margin: 0; }
.tl-quote blockquote p {
  margin: 0; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.5;
  color: var(--ink); font-weight: 600;
}
.tl-quote figcaption { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.tl-quote-share {
  margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--ink2);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.tl-quote-share:hover { border-color: var(--accent); color: var(--accent2); }
.tl-quote-copied { margin-left: 8px; font-size: .8rem; color: var(--accent2); font-weight: 700; }

/* ---------- search suggest chips ---------- */
.tl-suggest {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0;
}
.tl-suggest-chip {
  font-size: .82rem; font-weight: 600; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.tl-suggest-chip:hover { border-color: var(--accent); color: var(--accent2); }

@media (prefers-reduced-motion: reduce) {
  .tl-read-progress i { transition: none; }
}

/* ---------- traffic UX: TOC, takeaways, cite, series, picks, also-read ---------- */
.tl-read-time, .tl-hero-meta {
  display: inline-flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
}
.tl-read-time {
  font-size: .78rem; font-weight: 700; font-family: var(--font-display);
  letter-spacing: .02em; color: var(--ink2);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px; padding: 4px 10px;
}
.tl-toc, .jtoc {
  position: sticky; top: 68px; z-index: 5;
  margin: 0 0 1.6rem; padding: 14px 16px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-height: min(70vh, 420px); overflow: auto;
}
.tl-toc-title, .jtoc-label {
  margin: 0 0 8px; font-size: .72rem; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.tl-toc ol, .jtoc ol {
  margin: 0; padding: 0 0 0 1.1em; columns: 2; column-gap: 1.4rem;
}
@media (max-width: 720px) {
  .tl-toc, .jtoc { position: static; max-height: none; }
  .tl-toc ol, .jtoc ol { columns: 1; }
}
.tl-toc a, .jtoc a {
  display: inline-block; padding: 3px 0; color: var(--ink2); font-size: .9rem;
  font-family: var(--font-display); text-decoration: none;
}
.tl-toc a:hover, .jtoc a:hover { color: var(--accent); }
.tl-takeaways {
  margin: 0 0 1.8rem; padding: 1.15rem 1.25rem 1rem;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, #0d9488 9%, #fff), #fff 55%);
}
.tl-takeaways h2 { margin: 0 0 .65rem; font-size: 1.05rem; }
.tl-takeaways ol { margin: 0; padding-left: 1.2em; }
.tl-takeaways li {
  margin: 0 0 .45rem; font-family: var(--font-body); color: var(--ink2); line-height: 1.55;
}
.tl-cite {
  margin: 2rem 0; padding: 1.2rem 1.25rem; border-radius: 14px;
  border: 1px dashed var(--line); background: var(--surface);
}
.tl-cite h2 { margin: 0 0 .55rem; font-size: 1.05rem; }
.tl-cite-text { margin: 0 0 .75rem; }
.tl-cite-text code {
  display: block; white-space: pre-wrap; font-size: .86rem; line-height: 1.5;
  color: var(--ink2); background: var(--track); padding: 10px 12px; border-radius: 10px;
}
.tl-cite-btn {
  font: inherit; font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer;
  background: var(--accent); color: #fff;
}
.tl-cite-btn:hover { background: #0d9488; }
.tl-cite-done { margin-left: 10px; font-size: .86rem; color: #0f766e; font-weight: 700; }
.tl-series {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 2rem 0 1.2rem;
}
.tl-series-slot {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: inherit; text-decoration: none; min-height: 4.5rem;
}
.tl-series-slot:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); text-decoration: none; }
.tl-series-slot.is-empty { visibility: hidden; }
.tl-series-lbl {
  font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tl-series-next { text-align: right; }
.tl-series strong { font-family: var(--font-display); font-size: .98rem; letter-spacing: -.02em; }
.tl-picks { margin: 0 0 2.6rem; }
.tl-picks-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px;
}
.tl-picks-head h2 {
  margin: 0; font-size: .78rem; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.tl-picks-all { font-size: .88rem; font-weight: 650; white-space: nowrap; }
.tl-picks-row {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tl-pick, .tl-also-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease;
}
.tl-pick:hover, .tl-also-card:hover {
  text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-1px);
}
.tl-pick-app {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.tl-pick strong, .tl-also-card strong {
  font-family: var(--font-display); font-size: 1rem; font-weight: 650; letter-spacing: -.02em;
}
.tl-pick-desc { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.tl-collection { margin: 0 0 2.4rem; }
.tl-collection .sub { color: var(--muted); margin: -.4rem 0 1rem; }
.tl-also { margin: 48px auto 28px; }
.tl-also-title { font-size: 1.15rem; margin: 0 0 14px; }
.tl-also-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.tl-also-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px -24px rgba(15, 23, 42, .35);
}
.tl-also-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  text-decoration: none;
}
.tl-also-row {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ---------- growth: destinations / guides / trust / continue ---------- */
.hub-dest { margin: 0 0 2.6rem; }
.hub-dest > h2 {
  font-size: .78rem; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line);
}
.hub-dest-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.hub-dest-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hub-dest-card:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.hub-dest-app {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.hub-dest-card strong {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em;
}
.hub-dest-desc { color: var(--muted); font-size: .86rem; line-height: 1.4; }

.tl-trust-strip {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tl-trust-strip-inner { max-width: 40rem; }
.tl-trust-strip h2 {
  font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .55rem; letter-spacing: -.02em;
}
.tl-trust-strip p { color: var(--muted); margin: 0 0 .75rem; line-height: 1.55; }
.tl-trust-strip-go a { font-weight: 650; }

.tl-continue { margin: 2.4rem 0 1rem; }
.tl-continue h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem;
}
.tl-continue-row {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tl-continue-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.tl-continue-card:hover {
  text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-1px);
}
.tl-continue-card strong { font-size: .95rem; font-weight: 650; }
.tl-continue-card span { color: var(--muted); font-size: .82rem; line-height: 1.35; }

.tl-guide-hero { position: relative; }
.tl-guide-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 90% 20%, color-mix(in srgb, var(--guide-accent, #0d9488) 18%, transparent), transparent 70%);
}
.tl-guide-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 0 0 2rem;
}
.tl-guide-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 1.25rem 1.2rem 1.3rem 1.35rem;
  border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit;
  background: var(--surface);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.tl-guide-card:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--guide-accent, var(--accent)) 50%, var(--line));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--guide-accent, #0d9488) 12%, transparent);
}
.tl-guide-accent {
  position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 2px;
  background: var(--guide-accent, var(--accent));
}
.tl-guide-card strong {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; letter-spacing: -.025em;
}
.tl-guide-desc { color: var(--muted); font-size: .9rem; line-height: 1.45; flex: 1; }
.tl-guide-meta { font-size: .86rem; font-weight: 650; color: var(--ink); }
.tl-guide-steps { list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: none; }
.tl-guide-step {
  display: grid; grid-template-columns: 3rem 1fr; gap: 14px; align-items: start;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.tl-guide-n {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: color-mix(in srgb, var(--guide-accent, var(--accent)) 80%, var(--muted));
  letter-spacing: -.03em;
}
.tl-guide-step a { text-decoration: none; color: inherit; }
.tl-guide-step a:hover strong { color: var(--accent); }
.tl-guide-app {
  display: inline-block; margin-left: .5rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.tl-explore-picks { margin: 2rem 0; }
.tl-explore-picks h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .85rem;
}
.tl-explore-pick-list { list-style: none; margin: 0; padding: 0; }
.tl-explore-pick-list li { border-bottom: 1px solid var(--line); }
.tl-explore-pick-list a {
  display: flex; align-items: baseline; gap: 10px;
  padding: .75rem 2px; text-decoration: none; color: inherit;
}
.tl-explore-pick-list a:hover { color: var(--accent); }

.hub-hero .hub-search {
  transition: box-shadow .25s ease, border-color .25s ease;
}
.hub-hero .hub-search:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, #5eead4 35%, transparent);
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 34px; }
  .goat { padding: 16px; gap: 12px; }
  .goat .rank { min-width: 40px; font-size: 1.8rem; }
  .stat { grid-template-columns: 92px 1fr auto; gap: 8px; }
  .appname { display: none; }
  .tl-share-fab { right: 10px; bottom: 10px; }
  .tl-series { grid-template-columns: 1fr; }
  .tl-series-slot.is-empty { display: none; }
  .tl-series-next { text-align: left; }
}
