/* Après-Cyber Slopes Summit. Terminal-native, pixel-sharp, theme-driven: every color comes
   from the tokens in themes.css, so a theme restyles the whole page, the canvases included. */

@font-face {
  font-family: 'JetBrains Mono';
  src: url(/assets/fonts/jetbrains-mono.woff2) format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url(/assets/fonts/geist.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1152px;
  --gutter: clamp(16px, 4vw, 24px);
  --header: 56px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14.5px/1.7 var(--mono);
  font-feature-settings: 'calt' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--brand); color: var(--brand-ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--brand); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
button { font: inherit; color: inherit; }
kbd, code {
  font: 500 .86em/1 var(--mono);
  padding: 3px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}
code { border-bottom-width: 1px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h2 { font: 500 clamp(24px, 3.2vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; }
h3, .h3 { font: 500 17px/1.35 var(--sans); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; color: var(--brand); }
address { font-style: normal; }
.muted { color: var(--text-2); }
.fine { color: var(--muted); font-size: 12.5px; margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border-strong); }
.skip:focus { top: 12px; }

.px { display: block; fill: currentColor; }
.px .soft { fill: var(--field-crest); }
.px .cursor { fill: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------------------------------- */
/* Header                                                                                  */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo .px { width: 22px; height: 22px; color: var(--field-hover); }
.logo-word { font: 600 15px/1 var(--mono); letter-spacing: -.02em; }
.logo-dim { color: var(--muted); font-weight: 400; }
.logo:hover { color: var(--text); }
.logo:hover .logo-dim { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 0; background: none; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); border-radius: var(--r);
  transition: background-color .15s, color .15s;
}
.dd-btn:hover, .dd.is-open .dd-btn, .dd-btn.is-active { color: var(--text); background: var(--surface-2); }
.caret { width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.dd-menu {
  position: absolute; top: calc(100% + 8px); left: -6px; min-width: 300px;
  display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s var(--ease), visibility 0s .14s;
}
.dd-menu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.dd.is-open .dd-menu, .dd:hover .dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd-menu a, .mobile-nav a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 5px; text-decoration: none; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--surface-2); color: var(--text); }
.dd-menu b, .mobile-nav b { font-weight: 500; font-size: 13.5px; }
.dd-menu span, .mobile-nav a span { font-size: 12px; color: var(--muted); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: var(--r); background: none; color: var(--text-2); cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.icon-btn .px { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.header-tools .btn { margin-left: 8px; }
.menu-btn { display: none; }

.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); max-height: calc(100dvh - var(--header)); overflow-y: auto; }
.mobile-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-top: 20px; padding-bottom: 28px; }
.m-label { margin: 0 0 4px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 520px) {
  .hide-sm { display: none !important; }
  .mobile-nav .wrap { grid-template-columns: 1fr; }
  .logo-dim { display: none; }
}

/* ------------------------------------------------------------------------------------- */
/* Buttons, tags, pills                                                                    */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font: 500 13.5px/1 var(--mono); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { color: var(--text); border-color: var(--text-2); background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--brand), white 14%); border-color: color-mix(in oklab, var(--brand), white 14%); color: var(--brand-ink); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-link { height: auto; padding: 4px 0; border: 0; background: none; color: var(--text-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; }
.btn-link:hover { background: none; color: var(--brand); }
.arr { display: inline-block; transition: transform .15s var(--ease); }
a:hover > .arr, .btn:hover .arr { transform: translateX(2px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--text-2);
  border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface-2); white-space: nowrap;
}
.tag-brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); }
.tag-gold { color: #e8c15a; border-color: #e8c15a55; background: #e8c15a14; }
[data-theme="powder"] .tag-gold, [data-theme="sunrise"] .tag-gold { color: #8a6a10; border-color: #b8901e66; background: #e8c15a22; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.kicker { margin: 0 0 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.pill-row { margin: 0 0 28px; display: flex; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
  border: 1px solid var(--border-strong); border-radius: 4px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 13px; text-decoration: none; color: var(--text-2);
  backdrop-filter: blur(6px);
}
.pill:hover { color: var(--text); border-color: var(--text-2); }
.dot { width: 7px; height: 7px; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* ------------------------------------------------------------------------------------- */
/* Hero                                                                                    */

.hero { position: relative; overflow: hidden; padding: 20px 0 clamp(96px, 16vh, 170px); min-height: min(100svh - var(--header), 980px); display: flex; align-items: stretch; isolation: isolate; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-inner { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }

.waybar {
  width: 100%; display: flex; align-items: center; gap: 12px;
  height: 30px; padding: 0 6px; margin-bottom: clamp(28px, 6vh, 64px);
  font-size: 12px; color: var(--text-2);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  border: 1px solid var(--border); border-radius: 6px; backdrop-filter: blur(8px);
}
.wb-ws { display: flex; gap: 2px; }
.wb-ws span { display: grid; place-items: center; min-width: 22px; height: 20px; border-radius: 3px; color: var(--muted); }
.wb-ws span.is-now { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.wb-ws span.is-past { color: var(--border-strong); }
.wb-mid { flex: 1; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-right { display: flex; justify-content: flex-end; gap: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-term { display: inline-flex; gap: 6px; align-items: center; height: 20px; padding: 0 8px; border: 0; border-radius: 3px; background: var(--surface-2); color: var(--text-2); font: 500 11.5px/1 var(--mono); cursor: pointer; white-space: nowrap; }
.wb-term span { color: var(--brand); font-weight: 700; }
.wb-term:hover { background: var(--brand); color: var(--brand-ink); }
.wb-term:hover span { color: var(--brand-ink); }
.page-head .waybar { margin-bottom: clamp(32px, 6vw, 56px); }
.wb-right span:first-child { color: var(--brand); }

.wordmark { width: min(100%, 860px); aspect-ratio: 59 / 19; position: relative; }
.wordmark-svg, .wordmark canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wordmark-svg .wm-crest { fill: var(--field-crest); }
.wordmark-svg .wm-hover { fill: var(--field-hover); }
.wordmark-svg .wm-lit { fill: var(--field-lit); }
.wordmark.is-live .wordmark-svg { visibility: hidden; }

.hero-sub { margin: 22px 0 0; font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-2); }
.hero-sub span { color: var(--border-strong); margin: 0 .3em; }
.hero-title { margin-top: 26px; font: 600 clamp(26px, 4.4vw, 40px)/1.15 var(--mono); letter-spacing: -.035em; }
.hero-lead { margin: 18px auto 0; max-width: 60ch; color: var(--text-2); font-size: 15px; }
.hero-actions { justify-content: center; margin-top: 30px; }
.hero-actions .btn { height: 44px; padding: 0 22px; }
.hero-actions .btn-link { padding: 0 6px; height: 44px; }

.countdown { display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 40px; font-variant-numeric: tabular-nums; }
.countdown div { display: grid; justify-items: center; min-width: 64px; padding: 12px 10px 8px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 75%, transparent); border-radius: 6px; backdrop-filter: blur(6px); }
.countdown b { font: 600 clamp(24px, 4vw, 34px)/1 var(--mono); letter-spacing: -.04em; color: var(--text); }
.countdown span { margin-top: 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.countdown i { font-style: normal; font-size: 22px; padding-top: 14px; color: var(--border-strong); }

@media (max-width: 640px) {
  .wb-mid { display: none; }
  .wb-right { margin-left: auto; }
  .wb-term { display: none; }
  .countdown { gap: 4px; }
  .countdown div { min-width: 0; padding: 10px 8px 6px; }
  .countdown i { display: none; }
  .hero-lead br { display: none; }
  .hero-sub { letter-spacing: .16em; font-size: 11.5px; }
}

/* ------------------------------------------------------------------------------------- */
/* Sections                                                                                */

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section + .section { padding-top: 0; }
.home .section + .section { padding-top: clamp(20px, 4vw, 40px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head > div:first-child { max-width: 62ch; }
.sec-label { margin: 0 0 14px; font: 500 12.5px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
.sec-label b { display: inline-block; margin-right: 6px; padding: 3px 5px; border-radius: 3px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sec-lead { margin-top: 12px; color: var(--text-2); max-width: 62ch; }
.sec-aside { flex-shrink: 0; }
h2 + .sec-lead { margin-top: 14px; }
.h-small { margin: 28px 0 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-small:first-child { margin-top: 0; }

.intro { max-width: 68ch; }
.intro h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 22px; }
.intro p { color: var(--text-2); font-size: 15px; }
.intro a { color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-top { align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2.tight { gap: 24px; }
@media (max-width: 900px) {
  .split, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.card h3 + p, .card h3 + .muted { margin-top: 8px; }
.card-ghost { background: transparent; border-style: dashed; }
.link-card { display: grid; gap: 8px; text-decoration: none; }
.link-card .px { width: 22px; height: 22px; color: var(--brand); margin-bottom: 8px; }
.link-card b { font: 500 16px/1.3 var(--sans); }
.link-card span { color: var(--text-2); font-size: 13px; }
.link-card:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--elev-hover); }

.panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border-strong); border-radius: 10px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--brand-soft), transparent 60%),
    var(--surface);
}
.panel > div:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }
.cfp-clock .countdown { margin-top: 4px; }

/* Ticks, tags, points */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; color: var(--text-2); }
.tick { color: var(--brand); font-size: 8px; line-height: 2.7; }
.ticks.cols-2 { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
@media (max-width: 600px) { .ticks.cols-2 { grid-template-columns: 1fr; } }
.card .ticks { margin-top: 16px; }

.tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 12px; font-size: 13px; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface);
  transition: border-color .15s, color .15s, background-color .15s;
}
.tags li::before { content: '#'; color: var(--brand); margin-right: 4px; }
.tags li:hover { border-color: var(--brand); background: var(--brand-soft); }

.points { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.points > div { padding: 16px 18px; background: var(--surface); }
.points > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.points dt { font: 500 14.5px/1.3 var(--sans); margin-bottom: 4px; }
.points dd { margin: 0; color: var(--text-2); font-size: 13px; }
.points-note { margin-top: 16px; }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }

/* Week */
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.day h3 { font-size: 22px; margin: 10px 0 8px; }
.day p.muted { font-size: 13px; }
.day-n { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ws-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.day-edge { background: transparent; border-style: dashed; }
.day-gold { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.day-gold .ws-n { background: var(--brand); color: var(--brand-ink); }
.day.is-now { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
@media (max-width: 900px) { .week { grid-template-columns: 1fr 1fr; } .day:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .week { grid-template-columns: 1fr; } }

/* Terminal demo */
.term-demo { border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-deep); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.term-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.term-bar span { width: 9px; height: 9px; background: var(--border-strong); }
.term-bar span:first-child { background: var(--brand); }
.term-bar p { margin: 0 0 0 auto; font-size: 11.5px; color: var(--muted); }
.term-body { padding: 16px 18px 20px; min-height: 330px; font-size: 12.8px; line-height: 1.75; }
.term-body p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.t-ps { color: var(--muted); }
.t-you .t-ps { color: var(--brand); }
.t-agent .t-ps { color: var(--field-lit); }
.t-agent .t-txt { color: var(--text-2); }
.t-out .t-txt { color: var(--field-hover); font-size: 12px; display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--border-strong); margin: 4px 0; }
.t-flag .t-txt { color: var(--brand); font-weight: 600; }
.t-caret { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.term-demo.is-typing .term-body p.is-pending { display: none; }
.term-demo.is-live .term-body { max-height: 440px; overflow-y: auto; }
.term-demo .term-body > p:not([class]) { color: var(--text-2); }
.t-form { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.t-form .t-ps { color: var(--brand); }
.t-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; caret-color: var(--brand); }
.t-form input::placeholder { color: var(--muted); }
.term-demo .t-err { color: var(--field-hover); }
.term-demo .t-ok { color: var(--brand); }
.term-demo .t-dim { color: var(--muted); }
.term-demo .t-hl { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .t-form input, .term-in input { font-size: 16px; } }

/* Passes */
.passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pass { display: flex; flex-direction: column; }
.pass h3 { font-size: 20px; margin-top: 18px; }
.pass > .muted { margin-top: 8px; }
.pass .ticks { margin: 18px 0 22px; flex: 1; align-content: start; }
.pass .btn { width: 100%; }
.pass-top { display: flex; align-items: center; justify-content: space-between; }
.pass-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin: 0 0 14px; border-top: 1px dashed var(--border-strong); font-size: 12.5px; }
.pass-price b { font: 600 18px/1 var(--mono); color: var(--text); }
.pass.is-featured { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent), 0 18px 36px -30px var(--brand); }
.medal { width: 30px; height: 30px; display: block; clip-path: polygon(30% 0, 70% 0, 70% 10%, 90% 10%, 90% 30%, 100% 30%, 100% 70%, 90% 70%, 90% 90%, 70% 90%, 70% 100%, 30% 100%, 30% 90%, 10% 90%, 10% 70%, 0 70%, 0 30%, 10% 30%, 10% 10%, 30% 10%); }
.medal-gold { background: linear-gradient(135deg, #fff1b8, #e8b93a 45%, #a8781a); }
.medal-silver { background: linear-gradient(135deg, #ffffff, #c4ccd6 45%, #7c8794); }
.medal-bronze { background: linear-gradient(135deg, #ffd9b8, #c88049 45%, #7f4a22); }
@media (max-width: 900px) { .passes { grid-template-columns: 1fr; } }

/* Trainings */
.training-who { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.training-who img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; filter: grayscale(.25); }
.training-who .kicker { margin-bottom: 2px; }
.training h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.training > .muted { margin-top: 10px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split .stats { grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.stat-n { font: 600 clamp(30px, 4vw, 40px)/1 var(--mono); letter-spacing: -.04em; margin-bottom: 14px; color: var(--text); }
.stat p:not(.stat-n):not(.fine) { color: var(--text-2); font-size: 13px; }
.stat .fine { margin-top: 8px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Photos: duotone in the theme's colors until hovered */
.duo { position: relative; margin: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--field-dim); }
/* Photos: full color, lightly graded toward the theme so they sit in every palette. */
.duo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: filter .5s var(--ease), transform .8s var(--ease); }
.duo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--brand); mix-blend-mode: soft-light; opacity: .28; pointer-events: none; transition: opacity .4s; }
.duo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg-deep) 45%, transparent)); pointer-events: none; transition: opacity .4s; }
.duo:hover img { filter: saturate(1.05) contrast(1.04); transform: scale(1.02); }
.duo:hover::before, .duo:hover::after { opacity: 0; }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 80px; grid-auto-flow: dense; gap: 8px; }
.mosaic > * { grid-column: span 4; grid-row: span 3; }
.mosaic .m0 { grid-column: span 6; grid-row: span 4; }
.mosaic .m1, .mosaic .m2 { grid-column: span 3; grid-row: span 2; }
.mosaic .m3 { grid-column: span 6; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .mosaic > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .mosaic > :first-child { grid-column: span 2 !important; grid-row: span 2 !important; }
}
.venue-photo { aspect-ratio: 4 / 3; }
.photos-2 { margin-top: 16px; }
.photos-2 .duo { aspect-ratio: 16 / 10; }
.addr { margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--brand); color: var(--text-2); font-size: 13.5px; }

/* Partner logos as masks, so they take the theme's text color */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.logos li { display: grid; place-items: center; height: 108px; padding: 20px; background: var(--surface); transition: background-color .2s; }
.logos li:hover { background: var(--surface-2); }
.logo-mask {
  display: block; width: min(var(--w), 100%); aspect-ratio: var(--ratio);
  background: var(--text-2); transition: background-color .2s;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.logos li:hover .logo-mask { background: var(--text); }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos li { height: 84px; padding: 16px; } }

/* Team */
.team { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.team ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; }
.team li { display: flex; align-items: center; gap: 12px; }
.team img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--border-strong); filter: grayscale(.3); transition: filter .2s, box-shadow .2s; }
.team li:hover img { filter: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--brand); }
.team b { display: block; font: 500 14.5px/1.3 var(--sans); }
.team span { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------------------------- */
/* Sub-pages                                                                               */

.page-head { position: relative; padding: 20px 0 clamp(40px, 6vw, 64px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.page-head h1 { font: 600 clamp(30px, 5vw, 52px)/1.08 var(--mono); letter-spacing: -.045em; max-width: 22ch; }
.page-head .lead { margin-top: 18px; max-width: 64ch; color: var(--text-2); font-size: 15px; }
.prompt { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.p-user { color: var(--field-lit); }
.p-path { color: var(--brand); }
.p-cmd { color: var(--text-2); }
.p-cmd::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: var(--text-2); animation: blink 1s steps(1) infinite; }
[data-field] > canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: 13.5px; }
.steps li::before { content: '0' counter(s); display: block; margin-bottom: 14px; font: 600 13px/1 var(--mono); color: var(--brand); }
.steps b { display: block; color: var(--text); font: 500 15px/1.35 var(--sans); margin-bottom: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.table-wrap { position: relative; overflow-x: auto; margin-top: 24px; border: 1px solid var(--border); border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table td, .table th { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table td:last-child, .table th:last-child { text-align: right; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { border-top: 1px solid var(--border-strong); border-bottom: 0; font-weight: 600; color: var(--text); }
.table td { color: var(--text-2); }
.card .table td:first-child { color: var(--text); }
.card .table td { padding: 9px 0; }
.card .table td:nth-child(2) { color: var(--muted); padding: 9px 12px; }
.compare th { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); }
.compare td, .compare th { text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text); }
.compare td:last-child, .compare th:last-child { text-align: center; }
.compare .yes { color: var(--brand); font-size: 9px; }
.compare .no { color: var(--muted); font-size: 14px; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tier .ticks { margin-top: 16px; font-size: 13px; }
.tier-price { margin: 10px 0 10px; font: 600 28px/1 var(--mono); letter-spacing: -.04em; color: var(--text); }
.tier-price.small { font-size: 20px; margin: 8px 0 12px; }
.tier.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

/* Schedule */
.tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; }
.tabs button { display: grid; gap: 2px; text-align: left; padding: 12px 18px; min-width: 150px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text-2); }
.tabs button b { font-weight: 600; color: var(--text); }
.tabs button span { font: 500 18px/1.2 var(--sans); color: var(--text); }
.tabs button[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.tabs button[aria-selected="true"] span { color: var(--brand); }
html:not(.js) .tabs { display: none; }
.js [data-tabpanel][data-inactive] { display: none; }
html:not(.js) .day-panel + .day-panel { margin-top: 48px; }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: baseline; margin-bottom: 16px; }
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.slot { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.slot time { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.slot time span { color: var(--muted); }
.slot-title { margin: 0; color: var(--text); font: 500 15px/1.4 var(--sans); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.slot .muted { font-size: 12.5px; margin-top: 2px; }
.also { margin: 4px 0 0; font-size: 12.5px; color: var(--brand); }
.slot-kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.slot-keynote .slot-title { color: var(--brand); }
.slot-keynote time { color: var(--brand); }
.slot-apres .slot-title { color: var(--field-hover); }
.agenda.compact .slot { grid-template-columns: 150px 1fr; }
@media (max-width: 640px) {
  .slot { grid-template-columns: 1fr auto; } .slot time { grid-column: 1 / -1; }
  .tabs button { flex: 1; min-width: 0; padding: 10px 12px; }
}

/* Week grid: three days on one time axis, CTF lane on the right of Thu and Fri */
.wk-grid {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 26px minmax(0, 1fr) 26px; grid-template-rows: 64px repeat(var(--rows), 11px);
  column-gap: 12px; position: relative;
  padding: 0 16px 16px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.wg-day { grid-row: 1; margin: 0; align-self: center; display: grid; padding: 10px 0 12px; font-size: 12.5px; color: var(--text-2); }
.wg-day b { color: var(--text); }
.wg-day span { font: 500 16px/1.2 var(--sans); color: var(--brand); }
.wg-ctf-h { grid-row: 1; margin: 0; align-self: end; padding-bottom: 6px; text-align: center; font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.wg-hour { grid-column: 1; align-self: start; transform: translateY(-50%); font-size: 11px; color: var(--muted); text-align: right; padding-right: 4px; }
.wg-line { grid-column: 2 / -1; align-self: start; height: 1px; background: var(--border); }
.wg-slot {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  margin: 1px 0; padding: 4px 8px; border-radius: 4px; border-left: 2px solid var(--border-strong);
  background: var(--surface-2); font-size: 11.5px; line-height: 1.3;
}
.wg-slot b { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-slot time { color: var(--muted); font-size: 10.5px; }
.wg-slot i { font-style: normal; color: var(--muted); font-size: 10.5px; }
.wg-keynote { border-left-color: var(--brand); background: var(--brand-soft); }
.wg-keynote b { color: var(--brand); }
.wg-training { border-left-color: #e8c15a; background: color-mix(in srgb, #e8c15a 10%, var(--surface-2)); }
.wg-meal { border-left-color: var(--field-lit); }
.wg-apres { border-left-color: var(--field-hover); }
.wg-apres b { color: var(--field-hover); }
.wg-ctf {
  width: 100%; margin: 1px 0; border-radius: 4px; z-index: 2;
  background: repeating-linear-gradient(180deg, var(--brand) 0 6px, color-mix(in srgb, var(--brand) 55%, transparent) 6px 12px);
  display: grid; place-items: center; overflow: hidden;
  animation: ctf-flow 1.6s linear infinite;
}
.wg-ctf span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand); padding: 6px 2px; border-radius: 3px; }
@keyframes ctf-flow { to { background-position: 0 12px; } }
@media (max-width: 760px) { .wk-section { display: none; } }
/* On wide screens the grid is the schedule; the day-by-day list stays for screen readers. */
.days-h { margin-bottom: 20px; }
@media (min-width: 761px) {
  #days { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
}

/* FAQ */
.faq-nav { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.faq-nav a { padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 4px; text-decoration: none; font-size: 13px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { margin-bottom: 14px; }
.faq { border-bottom: 1px solid var(--border); }
.faq:first-of-type { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; font: 500 15.5px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 18px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq summary:hover { color: var(--brand); }
.faq p { padding: 0 4px 18px; margin: 0; color: var(--text-2); max-width: 72ch; }
.panel + .faq-group, .faq-group + .panel { margin-top: 48px; }

/* Guides, years, people */
.guide { display: grid; gap: 0; border-top: 1px solid var(--border); }
.guide-step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.guide-step h2 { margin-bottom: 14px; }
.guide-n { margin: 0; font: 600 14px/1.4 var(--mono); color: var(--brand); }
.value .guide-n { margin-bottom: 14px; }
.years { display: grid; border-top: 1px solid var(--border); }
.year { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.year-n { margin: 0; font: 600 clamp(32px, 5vw, 48px)/1 var(--mono); letter-spacing: -.05em; color: var(--field-hover); }
.year p { color: var(--text-2); }
@media (max-width: 640px) { .guide-step, .year { grid-template-columns: 1fr; gap: 10px; } }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.people li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font-size: 13px; color: var(--text-2); }
.link-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.link-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.link-list span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.links { margin-top: 12px; font-size: 13px; }

.tba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tba { display: grid; justify-items: center; gap: 10px; padding: 28px 16px; border-style: dashed; background: transparent; }
.tba-face { width: 64px; height: 64px; border-radius: 50%; background: repeating-linear-gradient(45deg, var(--surface-2) 0 4px, var(--surface) 4px 8px); border: 1px dashed var(--border-strong); }
.tba-file { margin: 0; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.redact { margin: 0; width: 100%; display: grid; gap: 8px; justify-items: center; }
.redact span { display: block; height: 14px; background: var(--text); opacity: .88; border-radius: 1px; }
.tba-tag { margin: 2px 0 0; font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--brand); white-space: nowrap; }
@media (max-width: 760px) { .tba-grid { grid-template-columns: 1fr 1fr; } }

.coc .card h2 { margin-bottom: 4px; }
.coc .card > p { margin-top: 16px; color: var(--text-2); }

.notfound { min-height: 60vh; display: flex; align-items: center; border-bottom: 0; }

/* ------------------------------------------------------------------------------------- */
/* Footer                                                                                  */

.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 28px; border-top: 1px solid var(--border); background: var(--bg-deep); font-size: 13px; }
.foot-top { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; }
.foot-brand p { color: var(--text-2); margin-top: 16px; max-width: 34ch; }
.foot-meta { color: var(--muted) !important; }
.socials { display: flex; gap: 2px; margin-top: 16px; margin-left: -8px; }
.foot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.foot-col { display: grid; align-content: start; gap: 8px; }
.foot-col a { color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: var(--brand); }
.foot-h { margin: 0 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); }
.foot-bottom a { color: var(--text-2); }
.keys-hint kbd { margin: 0 4px 0 10px; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr 1fr; } .keys-hint { display: none; } }

/* ------------------------------------------------------------------------------------- */
/* Overlays: terminal, theme picker, shortcuts                                             */

.overlay { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--bg-deep) 55%, transparent); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.overlay.is-open { opacity: 1; }

.term {
  position: fixed; z-index: 95; left: 50%; top: 0; width: min(920px, 100% - 24px); height: min(62vh, 560px);
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg-deep) 94%, transparent); border: 1px solid var(--border-strong); border-top: 0;
  border-radius: 0 0 12px 12px; box-shadow: 0 40px 80px -20px rgb(0 0 0 / .6);
  transform: translate(-50%, -105%); transition: transform .26s var(--ease);
  font-size: 13px; backdrop-filter: blur(14px);
}
.term.is-open { transform: translate(-50%, 0); }
.term .term-bar { flex-shrink: 0; }
.term-out { flex: 1; overflow-y: auto; padding: 14px 18px 4px; line-height: 1.65; }
.term-out p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.term-out .t-err { color: var(--field-hover); }
.term-out .t-ok { color: var(--brand); }
.term-out .t-dim { color: var(--muted); }
.term-out .t-hl { color: var(--text); font-weight: 600; }
.term-out a { color: var(--brand); }
.term-in { display: flex; align-items: center; gap: 8px; padding: 10px 18px 14px; }
.term-in label { color: var(--brand); white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; caret-color: var(--brand); }
.term-close { margin-left: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.term-close:hover { color: var(--text); }

.picker {
  position: fixed; z-index: 95; right: 16px; top: calc(var(--header) + 8px); width: min(380px, 100% - 32px); max-height: calc(100dvh - var(--header) - 24px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5);
  opacity: 0; transform: translateY(-6px); transition: opacity .16s, transform .16s var(--ease);
}
.picker.is-open { opacity: 1; transform: none; }
.picker-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.picker-head p { margin: 0; font-size: 12px; color: var(--muted); }
.picker-head b { font: 500 15px/1 var(--sans); }
.picker-list { overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.picker-list button { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.picker-list button:hover, .picker-list button:focus-visible { background: var(--surface-2); }
.picker-list button[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.picker-list b { display: block; font-weight: 500; font-size: 13.5px; }
.picker-list small { display: block; font-size: 11.5px; color: var(--muted); }
.swatch { display: grid; grid-template-columns: repeat(6, 1fr); height: 28px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--border-strong); }

.keys {
  position: fixed; z-index: 95; left: 50%; top: 50%; width: min(440px, 100% - 32px); padding: 22px;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / .55), 0 30px 60px -20px rgb(0 0 0 / .6);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  transform: translate(-50%, -48%); opacity: 0; transition: opacity .16s, transform .16s var(--ease);
}
.keys.is-open { opacity: 1; transform: translate(-50%, -50%); }
.keys h2 { font-size: 18px; margin-bottom: 14px; }
.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; align-items: center; }
.keys dd { margin: 0; color: var(--text-2); }

.toast {
  position: fixed; z-index: 80; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 14px; max-width: calc(100% - 32px);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; font-size: 12.5px; color: var(--text-2);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / .5);
  transform: translateY(140%); transition: transform .3s var(--ease);
}
.toast.is-open { transform: none; }
.toast button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; }

/* Theme change: the new palette wipes down the page like fresh snow. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: snowwipe .6s var(--ease); }
@keyframes snowwipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
