/* Uitleg page — same tokens as style.css / liveblog.css */
:root {
  --bg: #0b0c0f; --card: #15171c; --card-2: #1b1e24; --inset: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .14);
  --ink: #f3f4f6; --ink-2: #c9ccd3; --dim: #8a8f9a; --faint: #5b606b;
  --d: #3b82f6; --r: #ef4458; --amber: #f6b93b; --red: #ff3b4e; --accent: #c6f25e; --accent-ink: #0b0c0f;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px -14px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .25);
  --spring: cubic-bezier(.34, 1.4, .5, 1); --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1, "ss01" 1; -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; overflow-x: hidden;
  background-image: radial-gradient(60% 40% at 50% -6%, rgba(198, 242, 94, .06), transparent 70%); background-attachment: fixed; }
a { color: inherit; }

/* top */
.ux-top { position: sticky; top: 0; z-index: 10; background: rgba(11, 12, 15, .82); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.ux-bar { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ux-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; font-weight: 500; white-space: nowrap; }
.ux-brand b { font-weight: 800; }
.ux-live { background: var(--red); color: #fff; font-weight: 700; letter-spacing: .06em; font-size: 11px; padding: 4px 10px 4px 8px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px; box-shadow: 0 0 0 3px rgba(255, 59, 78, .14); }
.ux-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ux-pulse 1.4s ease-in-out infinite; }
.ux-live.ux-ended { background: #3a3f4b; color: #e6e8ec; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.ux-live.ux-ended i { background: #9aa1ad; animation: none; }
@keyframes ux-pulse { 50% { opacity: .25; transform: scale(.8); } }
.ux-nav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.ux-nav a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--dim); padding: 5px 13px; border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .3s var(--ease); }
.ux-nav a:hover { color: var(--ink); }
.ux-nav a.on { color: var(--bg); background: var(--ink); }

/* layout */
.ux-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 80px; }
.ux-hero { padding: 56px 0 36px; max-width: 720px; }
.ux-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ux-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.ux-lede { margin: 16px 0 0; font-size: 19px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.ux-lede em { font-style: normal; color: var(--ink); font-weight: 600; }
.ux-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }

/* toc */
.ux-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; padding-bottom: 20px; }
.ux-toc-g { margin-bottom: 20px; }
.ux-toc h4 { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ux-toc a { display: block; font-size: 14px; font-weight: 500; color: var(--dim); text-decoration: none; padding: 5px 10px; margin-left: -10px; border-radius: 8px;
  transition: color .2s, background .2s; }
.ux-toc a:hover { color: var(--ink); background: var(--inset); }
.ux-toc a.on { color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 2px 0 0 var(--accent); }

/* cards */
.ux-list { min-width: 0; max-width: 720px; }
.ux-gh { margin: 40px 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  display: flex; align-items: center; gap: 12px; }
.ux-gh::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ux-gh:first-child { margin-top: 0; }
.ux-card { position: relative; background: var(--card); border-radius: 16px; padding: 24px 26px 22px; margin-bottom: 14px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line); transition: box-shadow .5s var(--ease); }
.ux-card.hit { box-shadow: var(--shadow), 0 0 0 1.5px var(--accent), 0 0 40px -10px rgba(198, 242, 94, .35); animation: ux-hit .8s var(--spring); }
@keyframes ux-hit { from { transform: scale(.985); } }
.ux-card h3 { margin: 0 32px 6px 0; font-size: 26px; line-height: 1.15; font-weight: 750; letter-spacing: -.015em; text-wrap: balance; }
.ux-anchor { position: absolute; right: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--faint); text-decoration: none; background: var(--inset); opacity: 0; transition: opacity .2s, color .2s; }
.ux-card:hover .ux-anchor, .ux-anchor:focus { opacity: 1; } .ux-anchor:hover { color: var(--accent); }
.ux-short { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: var(--ink); padding: 10px 14px; border-radius: 10px;
  background: rgba(198, 242, 94, .06); box-shadow: inset 2px 0 0 var(--accent); }
.ux-body p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.ux-body p:last-child { margin-bottom: 0; }
.ux-body b { color: var(--ink); font-weight: 650; }
.ux-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ux-rel span { font-size: 12px; font-weight: 600; color: var(--faint); margin-right: 4px; }
.ux-rel a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: var(--inset); box-shadow: inset 0 0 0 1px var(--line);
  padding: 4px 11px; border-radius: 999px; transition: background .2s, color .2s; }
.ux-rel a:hover { background: var(--ink); color: var(--bg); }
.ux-empty { color: var(--dim); }
.ux-foot { text-align: center; font-size: 13px; color: var(--faint); padding: 28px 20px 40px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .ux-grid { grid-template-columns: 1fr; gap: 0; }
  .ux-toc { position: static; max-height: none; display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 8px; padding: 0 20px 12px; }
  .ux-toc-g { display: contents; }
  .ux-toc h4 { display: none; }
  .ux-toc a { flex: none; margin: 0; font-size: 13px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 6px 12px; }
  .ux-toc a.on { box-shadow: inset 0 0 0 1px var(--line-strong); }
}
@media (max-width: 480px) {
  .ux-bar { padding: 10px 14px; }
  .ux-brand { font-size: 15px; }
  .ux-nav a { padding: 5px 10px; font-size: 12.5px; }
  .ux-wrap { padding: 0 14px 60px; }
  .ux-toc { margin: 0 -14px 8px; padding: 0 14px 12px; }
  .ux-hero { padding: 32px 0 24px; }
  .ux-lede { font-size: 17px; }
  .ux-card { padding: 20px 18px 18px; border-radius: 14px; }
  .ux-card h3 { font-size: 22px; }
  .ux-body p { font-size: 16px; }
  .ux-anchor { opacity: 1; right: 14px; top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* phones: the nav scrolls inside itself, tap targets >= 44px, safe-area gutters */
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  .ux-bar { padding-left: calc(14px + env(safe-area-inset-left, 0px)); padding-right: calc(14px + env(safe-area-inset-right, 0px)); }
  .ux-brand { min-height: 44px; }
  .ux-nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 0; }
  .ux-nav::-webkit-scrollbar { display: none; }
  .ux-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; }
  .ux-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; }
  .ux-anchor { width: 44px; height: 44px; }
  .ux-wrap { padding-left: calc(16px + env(safe-area-inset-left, 0px)); padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
