/* ==========================================================================
   Topper Mantra — Events & TMIC pages
   Scoped under .ev so nothing here leaks into the shared site shell.
   ========================================================================== */

/* Newsreader (SIL OFL 1.1) — self-hosted, see /fonts/newsreader/OFL.txt */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader/newsreader-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/newsreader/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader/newsreader-latin-wght-italic.woff2") format("woff2-variations"), url("/fonts/newsreader/newsreader-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader/newsreader-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/newsreader/newsreader-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ev-ink: #17140f;
  --ev-ink-2: #3b3630;
  --ev-muted: #6b645b;
  --ev-faint: #9a9288;
  --ev-line: #e7e1d7;
  --ev-line-2: #d9d1c4;
  --ev-paper: #faf8f4;
  --ev-paper-2: #f3efe7;
  --ev-card: #ffffff;
  --ev-brand: #ff5b2e;
  --ev-brand-ink: #c43d14;
  --ev-brand-soft: #fff1ea;
  --ev-ok: #2e7d55;
  --ev-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ev-sans: var(--font-inter), "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ev-radius: 14px;
  --ev-radius-lg: 22px;
  --ev-shadow: 0 1px 2px rgba(23, 20, 15, .04), 0 12px 32px -16px rgba(23, 20, 15, .14);
  --ev-ease: cubic-bezier(.22, 1, .36, 1);
  --ev-gutter: clamp(16px, 4vw, 40px);
}

.ev {
  /* clears the fixed site header (the 40px banner has its own spacer) */
  padding-top: 100px;
  background: var(--ev-paper);
  color: var(--ev-ink);
  font-family: var(--ev-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ev *, .ev *::before, .ev *::after { box-sizing: border-box; }
.ev a { color: inherit; }
.ev :focus-visible { outline: 2px solid var(--ev-brand); outline-offset: 3px; border-radius: 6px; }
.ev ::selection { background: var(--ev-ink); color: #fff; }

.ev-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--ev-gutter); }
.ev-section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--ev-line); scroll-margin-top: 104px; }
#overview { padding-top: clamp(56px, 7vw, 96px); }
.ev-section--tight { padding-top: clamp(48px, 6vw, 80px); }
.ev-section--alt { background: var(--ev-paper-2); }

/* ---------- Type ---------- */
.ev-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--ev-muted);
  margin: 0 0 18px;
}
.ev-kicker b { color: var(--ev-ink); font-weight: 600; }
.ev-dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ev-faint); }
.ev-display {
  font-family: var(--ev-serif); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(42px, 6.4vw, 84px); line-height: .98; margin: 0; color: var(--ev-ink);
  font-optical-sizing: auto;
}
.ev-display em { font-style: italic; font-weight: 400; color: var(--ev-brand-ink); }
.ev-h2 {
  font-family: var(--ev-serif); font-weight: 500; letter-spacing: -.015em;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; margin: 0;
}
.ev-h2 em { font-style: italic; font-weight: 400; color: var(--ev-brand-ink); }
.ev-h3 { font-family: var(--ev-serif); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.ev-lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--ev-ink-2); max-width: 58ch; margin: 22px 0 0; }
.ev-body { font-size: 16px; line-height: 1.7; color: var(--ev-ink-2); }
.ev-small { font-size: 13.5px; line-height: 1.6; color: var(--ev-muted); }
.ev-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ev-muted); }
.ev-num { font-variant-numeric: tabular-nums; }

.ev-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) {
  .ev-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: 48px; }
  .ev-head .ev-body { margin: 0; }
}
.ev-head__no { font-size: 13px; font-weight: 600; color: var(--ev-brand-ink); margin-bottom: 14px; display: block; letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: .005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ev-ease), color .25s var(--ev-ease), border-color .25s var(--ev-ease), transform .25s var(--ev-ease);
}
.ev-btn svg { width: 17px; height: 17px; transition: transform .3s var(--ev-ease); }
.ev-btn:hover svg { transform: translateX(3px); }
.ev-btn:active { transform: translateY(1px); }
.ev-btn--primary { background: var(--ev-ink); color: #fff !important; }
.ev-btn--primary:hover { background: var(--ev-brand); }
.ev-btn--brand { background: var(--ev-brand); color: #fff !important; }
.ev-btn--brand:hover { background: var(--ev-brand-ink); }
.ev-btn--ghost { border-color: var(--ev-line-2); color: var(--ev-ink); background: transparent; }
.ev-btn--ghost:hover { border-color: var(--ev-ink); background: #fff; }
.ev-btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.ev-btn--light { background: #fff; color: var(--ev-ink) !important; }
.ev-btn--light:hover { background: var(--ev-brand); color: #fff !important; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 520px) { .ev-actions .ev-btn { flex: 1 1 100%; } }

.ev-link { color: var(--ev-brand-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ev-link:hover { color: var(--ev-ink); }

/* ---------- Status pill ---------- */
.ev-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ev-ok); flex: none; }
.ev-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ev-ok);
  opacity: 0; animation: ev-ping 2.2s var(--ev-ease) infinite;
}
@keyframes ev-ping { 0% { transform: scale(.4); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.ev-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ev-ok); }

/* ---------- Breadcrumbs ---------- */
.ev-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ev-muted); margin: 0 0 28px; padding: 0; list-style: none; }
.ev-crumbs a { text-decoration: none; }
.ev-crumbs a:hover { color: var(--ev-ink); text-decoration: underline; text-underline-offset: 3px; }
.ev-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ev-line-2); }

/* ---------- Reveal animations ---------- */
.ev-reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ev-ease), transform .9s var(--ev-ease); transition-delay: var(--d, 0ms); }
.ev-reveal.is-in { opacity: 1; transform: none; }
.ev-lines > span { display: block; overflow: hidden; padding-bottom: .06em; }
.ev-lines > span > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ev-ease); transition-delay: var(--d, 0ms); }
.ev-lines.is-in > span > span { transform: none; }
.no-js .ev-reveal, .no-js .ev-lines > span > span { opacity: 1; transform: none; }

/* ==========================================================================
   Events listing
   ========================================================================== */
.ev-intro { padding: clamp(16px, 3vw, 40px) 0 clamp(40px, 5vw, 64px); }
.ev-intro .ev-display { font-size: clamp(48px, 7vw, 96px); }
.ev-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--ev-line); background: #fff; border-radius: 999px; width: max-content; max-width: 100%; }
.ev-tab {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ev-muted); padding: 9px 18px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center;
  transition: background-color .2s, color .2s;
}
.ev-tab[aria-selected="true"] { background: var(--ev-ink); color: #fff; }
.ev-tab .ev-count { font-size: 12px; opacity: .7; }
.ev-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--ev-line); margin-bottom: 32px; }

.ev-card {
  position: relative; display: grid; grid-template-columns: 1fr; background: var(--ev-card);
  border: 1px solid var(--ev-line); border-radius: var(--ev-radius-lg); overflow: hidden; box-shadow: var(--ev-shadow);
  transition: transform .5s var(--ev-ease), box-shadow .5s var(--ev-ease), border-color .5s var(--ev-ease);
}
.ev-card:hover { transform: translateY(-3px); border-color: var(--ev-line-2); box-shadow: 0 1px 2px rgba(23,20,15,.04), 0 28px 60px -28px rgba(23,20,15,.28); }
@media (min-width: 960px) { .ev-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ev-card__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; }
.ev-card__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ev-tag { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; background: var(--ev-paper-2); color: var(--ev-ink-2); }
.ev-card__title { font-family: var(--ev-serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -.015em; margin: 0; }
.ev-card__title a { text-decoration: none; }
.ev-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ev-card__desc { margin: 16px 0 0; color: var(--ev-ink-2); font-size: 16.5px; line-height: 1.65; max-width: 54ch; }
.ev-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid var(--ev-line); }
@media (min-width: 640px) { .ev-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ev-meta dt { font-size: 12px; color: var(--ev-muted); margin-bottom: 4px; }
.ev-meta dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ev-ink); }
.ev-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; position: relative; z-index: 2; }
.ev-card__art {
  position: relative; min-height: 280px; background: var(--ev-ink); color: #fff; padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; isolation: isolate;
}
.ev-card__art .ev-matrix { --gap: 5px; max-width: 420px; }
.ev-card__art-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.ev-card__art-big { font-family: var(--ev-serif); font-size: clamp(44px, 5vw, 64px); line-height: .9; letter-spacing: -.02em; }
.ev-card__art-big small { display: block; font-family: var(--ev-sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 10px; }

.ev-empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--ev-line-2); border-radius: var(--ev-radius-lg); color: var(--ev-muted); background: rgba(255,255,255,.5); }
.ev-empty .ev-h3 { color: var(--ev-ink); margin-bottom: 8px; }

.ev-note { display: grid; gap: 22px; grid-template-columns: 1fr; padding: clamp(28px, 4vw, 44px); border-radius: var(--ev-radius-lg); background: var(--ev-card); border: 1px solid var(--ev-line); margin-top: 56px; }
@media (min-width: 860px) { .ev-note { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Problem matrix (signature visual: one square per problem) ---------- */
.ev-matrix {
  --cols: 20; --gap: 6px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); width: 100%;
}
.ev-cell {
  aspect-ratio: 1; min-width: 0; border-radius: 3px; border: 0; padding: 0; margin: 0;
  background: var(--c, #ccc); opacity: 0; transform: scale(.3);
  transition: transform .5s var(--ev-ease), opacity .5s var(--ev-ease), filter .2s;
  transition-delay: var(--d, 0ms);
}
.ev-matrix.is-in .ev-cell { opacity: 1; transform: none; }
.ev-matrix.is-dim .ev-cell { opacity: .16; }
.ev-matrix.is-dim .ev-cell.is-hot { opacity: 1; }
button.ev-cell { cursor: pointer; }
button.ev-cell:hover, button.ev-cell:focus-visible { transform: scale(1.35); filter: brightness(1.08); outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); position: relative; z-index: 2; }
.no-js .ev-cell { opacity: 1; transform: none; }
/* the near-black theme colour needs lifting on dark panels */
.ev-card__art .ev-cell[data-theme="6"], .ev-final .ev-cell[data-theme="6"] { background: #6f6a64; }

/* ==========================================================================
   TMIC page
   ========================================================================== */
.ev-hero { padding: clamp(16px, 3vw, 40px) 0 0; position: relative; }
.ev-hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1040px) { .ev-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.ev-hero__panel { justify-self: center; width: 100%; max-width: 520px; }
.ev-hero__panel .ev-matrix { --gap: clamp(3px, .6vw, 7px); }
.ev-panel-cap { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 18px; }
.ev-tip {
  min-height: 64px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--ev-line);
  font-size: 14px; line-height: 1.45; color: var(--ev-ink-2); display: flex; flex-direction: column; gap: 3px;
}
.ev-tip b { font-weight: 600; color: var(--ev-ink); }
.ev-tip span { font-size: 12px; color: var(--ev-muted); }
.ev-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; padding: 0; list-style: none; }
.ev-legend button {
  border: 0; background: none; padding: 4px 0; font: inherit; font-size: 12.5px; color: var(--ev-ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.ev-legend button i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); display: inline-block; }
.ev-legend button:hover, .ev-legend button[aria-pressed="true"] { color: var(--ev-ink); text-decoration: underline; text-underline-offset: 3px; }

.ev-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--ev-ink); border-bottom: 1px solid var(--ev-line);
}
@media (min-width: 900px) { .ev-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ev-fact { padding: 22px 20px 24px 0; }
.ev-fact + .ev-fact { padding-left: 20px; border-left: 1px solid var(--ev-line); }
@media (max-width: 899px) {
  .ev-fact { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--ev-line); }
  .ev-fact + .ev-fact { padding-left: 0; border-left: 0; }
  .ev-fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ev-line); }
  .ev-fact:last-child { border-bottom: 0; }
}
.ev-fact dt { font-size: 12.5px; color: var(--ev-muted); margin-bottom: 6px; }
.ev-fact dd { margin: 0; font-family: var(--ev-serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -.01em; }

/* ---------- Sticky section nav ---------- */
.ev-subnav {
  position: sticky; top: var(--shell-offset, 128px); z-index: 40; background: rgba(250, 248, 244, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ev-line); transition: top .4s var(--ev-ease);
}
.ev-subnav__in { display: flex; align-items: center; gap: 16px; height: 60px; }
.ev-subnav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; margin: 0; padding: 0; list-style: none; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ev-subnav__links::-webkit-scrollbar { display: none; }
.ev-subnav__links a {
  display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--ev-muted); text-decoration: none;
  white-space: nowrap; border-radius: 8px; position: relative; transition: color .2s;
}
.ev-subnav__links a:hover { color: var(--ev-ink); }
.ev-subnav__links a.is-active { color: var(--ev-ink); }
.ev-subnav__links a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px; background: var(--ev-brand); border-radius: 2px; }
.ev-subnav__cta { flex: none; }
@media (max-width: 640px) { .ev-subnav__cta { display: none; } }

/* ---------- Overview ---------- */
.ev-pillars { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: pillar; border-top: 1px solid var(--ev-line); }
@media (min-width: 860px) { .ev-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-pillar { padding: 28px 28px 8px 0; }
@media (min-width: 860px) { .ev-pillar + .ev-pillar { padding-left: 28px; border-left: 1px solid var(--ev-line); } }
@media (max-width: 859px) { .ev-pillar { border-bottom: 1px solid var(--ev-line); padding-bottom: 24px; } }
.ev-pillar__no { font-family: var(--ev-serif); font-style: italic; color: var(--ev-brand-ink); font-size: 20px; }
.ev-pillar h3 { margin: 10px 0 8px; }

/* ---------- Themes ---------- */
.ev-themes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ev-ink); }
.ev-theme {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px;
  padding: 30px 0; border-bottom: 1px solid var(--ev-line);
}
@media (min-width: 960px) { .ev-theme { grid-template-columns: 80px minmax(0, 4fr) minmax(0, 5fr) auto; align-items: start; gap: 32px; } }
.ev-theme::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--c);
  transition: width .7s var(--ev-ease);
}
.ev-theme:hover::before { width: 100%; }
.ev-theme__no { font-family: var(--ev-serif); font-size: 34px; line-height: 1; color: var(--c); font-variant-numeric: lining-nums; }
.ev-theme__name { font-family: var(--ev-serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 10px; }
.ev-theme__sum { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ev-ink-2); }
.ev-theme__segs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-column: 2; }
@media (min-width: 960px) { .ev-theme__segs { grid-column: auto; } }
.ev-theme__segs li { display: grid; grid-template-columns: 22px minmax(0, 1fr); font-size: 14px; line-height: 1.45; color: var(--ev-ink-2); }
.ev-theme__segs b { font-weight: 600; color: var(--c); font-size: 12px; padding-top: 2px; }
.ev-theme__acts { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; }
@media (min-width: 960px) { .ev-theme__acts { grid-column: auto; flex-direction: column; align-items: stretch; } }

/* ---------- Problem browser ---------- */
.ev-browser { background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: var(--ev-radius-lg); box-shadow: var(--ev-shadow); overflow: hidden; }
.ev-browser__bar { padding: 20px; border-bottom: 1px solid var(--ev-line); display: grid; gap: 16px; }
.ev-search { position: relative; }
.ev-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ev-faint); pointer-events: none; }
.ev-search input {
  width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--ev-line-2); background: var(--ev-paper);
  padding: 0 52px 0 46px; font: inherit; font-size: 15.5px; color: var(--ev-ink); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.ev-search input::placeholder { color: var(--ev-faint); }
.ev-search input:focus { outline: none; border-color: var(--ev-ink); background: #fff; box-shadow: 0 0 0 4px rgba(23,20,15,.06); }
.ev-search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 12px/1 var(--ev-sans); color: var(--ev-muted); border: 1px solid var(--ev-line-2); border-radius: 6px; padding: 4px 7px; background: #fff; }
@media (hover: none) { .ev-search kbd { display: none; } }
.ev-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ev-chips::-webkit-scrollbar { display: none; }
.ev-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--ev-line-2); background: #fff; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ev-ink-2); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ev-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ev-ink)); }
.ev-chip:hover { border-color: var(--ev-ink); }
.ev-chip[aria-pressed="true"] { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; }
.ev-chip[aria-pressed="true"] i { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.ev-browser__sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ev-select {
  height: 38px; border-radius: 10px; border: 1px solid var(--ev-line-2); background: #fff; font: inherit; font-size: 14px; color: var(--ev-ink);
  padding: 0 34px 0 12px; max-width: 100%;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b645b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.ev-select:disabled { opacity: .5; }
.ev-results-count { font-size: 13.5px; color: var(--ev-muted); }
.ev-results-count b { color: var(--ev-ink); font-weight: 600; }
.ev-plist { list-style: none; margin: 0; padding: 0; }
.ev-prow { border-bottom: 1px solid var(--ev-line); }
.ev-prow:last-child { border-bottom: 0; }
.ev-prow button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; text-align: left;
  background: none; border: 0; padding: 18px 20px; font: inherit; color: inherit; cursor: pointer; transition: background-color .2s;
}
@media (min-width: 760px) { .ev-prow button { grid-template-columns: 150px minmax(0, 1fr) 220px 24px; } }
.ev-prow button:hover { background: var(--ev-paper); }
.ev-prow__id { font-size: 12.5px; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ev-prow__title { font-size: 16px; font-weight: 500; color: var(--ev-ink); line-height: 1.4; grid-column: 1 / -1; }
.ev-prow__theme { font-size: 13px; color: var(--ev-muted); line-height: 1.35; }
.ev-prow__go { width: 20px; height: 20px; color: var(--ev-faint); transition: transform .3s var(--ev-ease), color .2s; display: none; }
@media (min-width: 760px) {
  .ev-prow__title { grid-column: auto; }
  .ev-prow__go { display: block; }
  .ev-prow button:hover .ev-prow__go { transform: translateX(4px); color: var(--ev-ink); }
}
.ev-prow mark { background: #ffe5d6; color: inherit; border-radius: 3px; padding: 0 1px; }
.ev-browser__foot { padding: 18px 20px; border-top: 1px solid var(--ev-line); display: flex; justify-content: center; }
.ev-browser__empty { padding: 56px 24px; text-align: center; color: var(--ev-muted); }
.ev-skel { height: 58px; margin: 0 20px; border-bottom: 1px solid var(--ev-line); background: linear-gradient(90deg, transparent, rgba(23,20,15,.04), transparent) 0 0 / 200% 100%; animation: ev-shimmer 1.4s linear infinite; }
@keyframes ev-shimmer { to { background-position: -200% 0; } }

/* ---------- Problem dialog ---------- */
.ev-dialog {
  width: min(760px, calc(100vw - 24px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: var(--ev-radius-lg);
  background: #fff; color: var(--ev-ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,.45); overflow: hidden;
}
.ev-dialog[open] { display: flex; flex-direction: column; animation: ev-dlg-in .45s var(--ev-ease); }
.ev-dialog::backdrop { background: rgba(23, 20, 15, .55); backdrop-filter: blur(3px); animation: ev-fade .3s ease; }
@keyframes ev-dlg-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes ev-fade { from { opacity: 0; } }
.ev-dialog__head { padding: 24px 28px 20px; border-bottom: 1px solid var(--ev-line); position: relative; }
.ev-dialog__head::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.ev-dialog__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--ev-muted); margin-bottom: 10px; padding-right: 44px; }
.ev-dialog__meta b { color: var(--c); font-weight: 600; letter-spacing: .02em; }
.ev-dialog__title { font-family: var(--ev-serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; margin: 0; }
.ev-dialog__x {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ev-line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ev-ink); transition: background-color .2s;
}
.ev-dialog__x:hover { background: var(--ev-paper-2); }
.ev-dialog__body { padding: 8px 28px 28px; overflow-y: auto; overscroll-behavior: contain; }
.ev-dialog__body section { padding-top: 22px; }
.ev-dialog__body h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ev-muted); margin: 0 0 8px; }
.ev-dialog__body p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ev-ink-2); }
.ev-dialog__statement { font-family: var(--ev-serif); font-size: 21px !important; line-height: 1.45 !important; color: var(--ev-ink) !important; padding-left: 16px; border-left: 3px solid var(--c); }
.ev-dialog__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ev-dialog__body li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--ev-ink-2); }
.ev-dialog__body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--ev-paper-2); color: var(--ev-ink-2); }
.ev-dialog__foot { padding: 16px 28px; border-top: 1px solid var(--ev-line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; background: var(--ev-paper); }
.ev-dialog__foot .ev-btn { height: 44px; }
@media (max-width: 560px) {
  .ev-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .ev-dialog__head, .ev-dialog__body, .ev-dialog__foot { padding-left: 20px; padding-right: 20px; }
  .ev-dialog__foot .ev-btn { flex: 1; }
}

/* ---------- Timeline ---------- */
.ev-tl { position: relative; --p: 0; }
.ev-tl__list { list-style: none; margin: 0; padding: 0; }
.ev-tl__rail { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--ev-line); border-radius: 2px; }
.ev-tl__rail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--ev-brand), var(--ev-brand-ink)); transform-origin: top; transform: scaleY(var(--p)); border-radius: 2px; }
@media (min-width: 900px) { .ev-tl__rail { left: 50%; margin-left: -1px; } }
.ev-tl__item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding-bottom: 40px; }
.ev-tl__item:last-child { padding-bottom: 0; }
@media (min-width: 900px) {
  .ev-tl__item { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 40px; padding-bottom: 56px; }
  .ev-tl__item .ev-tl__card { grid-column: 3; }
  .ev-tl__item .ev-tl__node { grid-column: 2; grid-row: 1; }
  .ev-tl__item:nth-child(odd) .ev-tl__card { grid-column: 1; grid-row: 1; text-align: right; }
  .ev-tl__item:nth-child(odd) .ev-tl__when { justify-content: flex-end; }
}
.ev-tl__node {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--ev-paper);
  border: 2px solid var(--ev-line-2); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ev-faint);
  transition: border-color .5s var(--ev-ease), background-color .5s var(--ev-ease), color .5s var(--ev-ease), transform .5s var(--ev-ease);
}
.ev-section--alt .ev-tl__node { background: var(--ev-paper-2); }
.ev-tl__item.is-lit .ev-tl__node { border-color: var(--ev-brand); color: var(--ev-brand-ink); background: #fff; transform: scale(1.06); }
.ev-tl__item[data-state="done"].is-lit .ev-tl__node, .ev-tl__item[data-state="current"].is-lit .ev-tl__node { background: var(--ev-brand); color: #fff; }
.ev-tl__item[data-state="current"] .ev-tl__node::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--ev-brand); opacity: 0;
  animation: ev-ping 2.4s var(--ev-ease) infinite;
}
.ev-tl__card {
  padding: 4px 0 0; opacity: .35; transform: translateY(12px);
  transition: opacity .7s var(--ev-ease), transform .7s var(--ev-ease);
}
.ev-tl__item.is-lit .ev-tl__card { opacity: 1; transform: none; }
.no-js .ev-tl__card { opacity: 1; transform: none; }
.ev-tl__when { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ev-muted); margin-bottom: 8px; }
.ev-tl__item[data-state="current"] .ev-tl__when { color: var(--ev-ok); }
.ev-tl__item[data-state="done"] .ev-tl__when { color: var(--ev-brand-ink); }
.ev-tl__card h3 { margin: 0 0 8px; }
.ev-tl__card p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ev-ink-2); max-width: 46ch; display: inline-block; }

/* ---------- Steps ---------- */
.ev-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: s; }
@media (min-width: 1000px) { .ev-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ev-step { position: relative; padding: 26px 0 26px 64px; border-top: 1px solid var(--ev-line); }
@media (min-width: 1000px) { .ev-step { padding: 0 24px 0 0; border-top: 0; } }
.ev-step__no {
  position: absolute; left: 0; top: 24px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ev-serif); font-size: 20px; background: #fff; border: 1px solid var(--ev-line-2); color: var(--ev-ink);
}
@media (min-width: 1000px) {
  .ev-step__no { position: relative; top: 0; margin-bottom: 22px; }
  .ev-step::before { content: ""; position: absolute; top: 22px; left: 52px; right: 8px; height: 1px; background: var(--ev-line-2); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ev-ease); transition-delay: var(--d, 0ms); }
  .ev-step:last-child::before { display: none; }
  .ev-steps.is-in .ev-step::before { transform: scaleX(1); }
}
.ev-step h3 { margin: 0 0 8px; font-size: 21px; }
.ev-step p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ev-ink-2); }

.ev-two { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .ev-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-box { background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: var(--ev-radius-lg); padding: clamp(24px, 3vw, 36px); }
.ev-box .ev-h3 { margin-bottom: 18px; }
.ev-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ev-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.6; color: var(--ev-ink-2); }
.ev-checks svg { width: 20px; height: 20px; color: var(--ev-ok); margin-top: 2px; }
.ev-deliv { list-style: none; margin: 0; padding: 0; }
.ev-deliv li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--ev-line); }
.ev-deliv li:first-child { border-top: 0; padding-top: 0; }
.ev-deliv i { font-family: var(--ev-serif); font-style: italic; font-size: 18px; color: var(--ev-brand-ink); }
.ev-deliv b { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }
.ev-deliv span { font-size: 14.5px; line-height: 1.55; color: var(--ev-ink-2); }

/* ---------- Prizes ---------- */
.ev-prize { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 980px) { .ev-prize { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; } }
.ev-pool {
  position: relative; overflow: hidden; border-radius: var(--ev-radius-lg); background: var(--ev-ink); color: #fff;
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; isolation: isolate;
}
.ev-pool::before {
  content: ""; position: absolute; right: -30%; bottom: -60%; width: 120%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 91, 46, .38), transparent 70%);
}
.ev-pool__lbl { font-size: 13px; color: rgba(255,255,255,.65); }
.ev-pool { container-type: inline-size; }
/* Sized to the card, not the window, so the amount always fits inside it. */
.ev-pool .ev-pool__amt { display: block; font-family: var(--ev-serif); font-weight: 400; font-size: clamp(40px, 9vw, 96px); font-size: min(96px, 17cqi); line-height: .95; letter-spacing: -.03em; margin: 14px 0 0; color: #fff; white-space: nowrap; max-width: 100%; }
.ev-pool__amt span { color: var(--ev-brand); }
.ev-pool > p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; margin: 18px 0 0; max-width: 40ch; }
.ev-podium { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .ev-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-place { background: var(--ev-card); border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 24px; position: relative; overflow: hidden; }
.ev-place__rank { font-family: var(--ev-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--ev-brand-ink); }
.ev-place:nth-child(2) .ev-place__rank, .ev-place:nth-child(3) .ev-place__rank { color: var(--ev-ink-2); }
.ev-place h3 { font-size: 15px; font-weight: 600; margin: 14px 0 12px; font-family: var(--ev-sans); }
.ev-place ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ev-place li { font-size: 14px; color: var(--ev-ink-2); padding-left: 16px; position: relative; }
.ev-place li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 1px; background: var(--ev-ink-2); }
.ev-extras { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .ev-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-extra { border: 1px dashed var(--ev-line-2); border-radius: var(--ev-radius); padding: 20px 22px; }
.ev-extra b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ev-extra span { font-size: 14px; line-height: 1.55; color: var(--ev-ink-2); }

/* ---------- Judging ---------- */
.ev-crit { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ev-ink); }
.ev-crit li { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--ev-line); align-items: center; }
@media (min-width: 900px) { .ev-crit li { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) 72px; } }
.ev-crit h3 { font-family: var(--ev-sans); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.ev-crit p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ev-muted); }
.ev-crit__bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--ev-line); overflow: hidden; }
@media (min-width: 900px) { .ev-crit__bar { grid-column: auto; } }
.ev-crit__bar span { display: block; height: 100%; width: calc(var(--w) * 4%); max-width: 100%; background: var(--ev-ink); border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ev-ease); transition-delay: var(--d, 0ms); }
.ev-crit.is-in .ev-crit__bar span { transform: none; }
.no-js .ev-crit__bar span { transform: none; }
.ev-crit__w { font-family: var(--ev-serif); font-size: 30px; text-align: right; grid-row: 1; grid-column: 2; }
@media (min-width: 900px) { .ev-crit__w { grid-column: 3; } }

/* ---------- FAQ ---------- */
.ev-faq { border-top: 1px solid var(--ev-ink); }
.ev-faq details { border-bottom: 1px solid var(--ev-line); }
.ev-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 17.5px; font-weight: 500; color: var(--ev-ink);
}
.ev-faq summary::-webkit-details-marker { display: none; }
.ev-faq summary:hover { color: var(--ev-brand-ink); }
.ev-faq__ic { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ev-line-2); position: relative; transition: transform .4s var(--ev-ease), background-color .3s; }
.ev-faq__ic::before, .ev-faq__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.ev-faq__ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ev-ease); }
.ev-faq details[open] .ev-faq__ic { background: var(--ev-ink); color: #fff; border-color: var(--ev-ink); }
.ev-faq details[open] .ev-faq__ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.ev-faq__a { overflow: hidden; }
.ev-faq__a p { margin: 0; padding: 0 56px 24px 0; font-size: 15.5px; line-height: 1.7; color: var(--ev-ink-2); max-width: 72ch; }
.ev-faq-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .ev-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } .ev-faq-grid > :first-child { position: sticky; top: 100px; align-self: start; } }

/* ---------- Closing CTA ---------- */
.ev-final { background: var(--ev-ink); color: #fff; border-radius: var(--ev-radius-lg); padding: clamp(32px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.ev-final .ev-h2 { color: #fff; max-width: 16ch; }
.ev-final .ev-h2 em { color: var(--ev-brand); }
.ev-final p { color: rgba(255,255,255,.72); font-size: 16.5px; line-height: 1.65; max-width: 52ch; margin: 18px 0 0; }
.ev-final .ev-matrix { position: absolute; right: clamp(24px, 5vw, 72px); top: 50%; transform: translateY(-50%); --cols: 10; --gap: 8px; width: 250px; z-index: -1; opacity: .9; }
@media (max-width: 899px) { .ev-final .ev-matrix { display: none; } }
.ev-final__grid { display: grid; gap: 28px; max-width: 640px; }
.ev-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14.5px; }
.ev-contact a { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; opacity: .85; }
.ev-contact a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ev-contact svg { width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.ev-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ev-ink); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ev-ease); z-index: 2000; }
.ev-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .ev *, .ev *::before, .ev *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .ev-reveal, .ev-lines > span > span, .ev-cell, .ev-tl__card { opacity: 1 !important; transform: none !important; }
  .ev-crit__bar span, .ev-step::before { transform: none !important; }
}
