/* uvars.org: Topo Ridge styles, shared by every page.
   Colors live in the tokens at the top; dark mode swaps them on <html class="dark">. */

:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --ink: #0f2233;
  --ink-2: #33495a;
  --ink-3: #4a5f6e;
  --line: #d3e0e8;
  --line-2: #e6eef3;
  --head: #0b3a5b;
  --accent: #006eb6;
  --accent-ink: #ffffff;
  --link: #005a96;
  --hero-bg: #e9f2f8;
  --contour: #c7dcea;
  --ridge: #d6e7f2;
  --ridge-2: #c9deec;
  --nav-bg: #ffffff;
  --nav-ink: #33495a;
  --banner-bg: #0b3a5b;
  --banner-ink: #ffffff;
  --banner-label-bg: #a2daff;
  --banner-label-ink: #0b3a5b;
  --banner-link: #a2daff;
  --notice-bg: #fff7ed;
  --notice-ink: #7c2d12;
  --notice-line: #fdba74;
  --notice-label-bg: #b45309;
  --alert-bg: #b91c1c;
  --alert-label-bg: #7f1d1d;
  --ticket-bg: #006eb6;
  --ticket-ink: #ffffff;
  --solid-bg: #0b3a5b;
  --solid-ink: #ffffff;
  --ghost-line: #b9d0df;
  --footer-bg: #0b3a5b;
  --footer-ink: #cfe3f1;
  --footer-link: #a2daff;
  --shadow: rgba(11, 58, 91, .10);
  --skip-bg: #fde7d4;
  --skip-line: #c2410c;
  --skip-ink: #9a3412;
  --net-bg: #e2ebf1;
  --net-line: #7f98aa;
  --net-ink: #33495a;
  --exam-bg: #fef3c7;
  --exam-line: #b45309;
  --exam-ink: #78350f;
  --readout: #0b3a5b;
  --plate-line: #d3e0e8;
  --tip-bg: #fff7e6;
  --tip-line: #f3c77a;
  --tip-ink: #7a4a06;
  --tip-head: #8a4b00;
  --soon-bg: #f0f4f7;
  --soon-ink: #5b7080;
  --bar: #c7dcea;
  --node: #006eb6;
  --node-line: #8fbfdf;
  --map-bg: #e3eef5;
  --today: #b45309;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --radius: 6px;
  --radius-sm: 4px;
  color-scheme: light;
}

html.dark {
  --bg: #0b1722;
  --surface: #112231;
  --surface-2: #0e1d2a;
  --ink: #e4edf3;
  --ink-2: #b9cad6;
  --ink-3: #93a9b8;
  --line: #23394b;
  --line-2: #1b2e3e;
  --head: #d6ecfb;
  --accent: #a2daff;
  --accent-ink: #0b1722;
  --link: #a2daff;
  --hero-bg: #0e1f2d;
  --contour: #1d364a;
  --ridge: #122a3b;
  --ridge-2: #163246;
  --nav-bg: #0e1d2a;
  --nav-ink: #b9cad6;
  --banner-bg: #13324a;
  --banner-ink: #e4edf3;
  --banner-label-bg: #a2daff;
  --banner-label-ink: #0b1722;
  --notice-bg: #2a1d08;
  --notice-ink: #fde7c2;
  --notice-line: #6b4a12;
  --notice-label-bg: #b45309;
  --ticket-bg: #0a5a92;
  --solid-bg: #e4edf3;
  --solid-ink: #0b1722;
  --ghost-line: #35526a;
  --footer-bg: #08121b;
  --footer-ink: #93a9b8;
  --shadow: rgba(0, 0, 0, .35);
  --skip-bg: #3a2210;
  --skip-line: #f59e0b;
  --skip-ink: #fbbf77;
  --net-bg: #1b2e3e;
  --net-line: #93a9b8;
  --net-ink: #b9cad6;
  --exam-bg: #2a1d08;
  --exam-line: #fbbf77;
  --exam-ink: #fde7c2;
  --readout: #a2daff;
  --plate-line: #35526a;
  --tip-bg: #2a1d08;
  --tip-line: #6b4a12;
  --tip-ink: #f3d39a;
  --tip-head: #fbbf77;
  --soon-bg: #0e1d2a;
  --soon-ink: #93a9b8;
  --bar: #23394b;
  --node: #a2daff;
  --node-line: #2f5878;
  --map-bg: #0e1f2d;
  --today: #fbbf77;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: 24px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--head); border: 2px solid var(--accent); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .95; color: var(--head); font-size: clamp(48px, 8vw, 80px); }
.h2 { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 700; text-transform: uppercase; color: var(--head); }
.h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.05; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--head); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 38rem; }
.muted { color: var(--ink-3); }
.prose p + p { margin-top: 14px; }

.section { display: flex; flex-direction: column; gap: 22px; }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--ink-3); }
.section-head--split { justify-content: space-between; }
.stack-xl { display: flex; flex-direction: column; gap: 80px; padding-block: 64px 72px; }
.link-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  cursor: pointer; text-decoration: none !important; background: none;
}
.btn--lg { min-height: 48px; padding: 0 22px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--solid { background: var(--solid-bg); color: var(--solid-ink); }
.btn--solid:hover { filter: brightness(1.15); }
.btn--ghost { border-color: var(--ghost-line); color: var(--head); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); }
.btn svg { flex-shrink: 0; }

/* ---------------------------------------------------------------- banner */

.banner { display: flex; align-items: stretch; flex-wrap: wrap; font-size: 15px; background: var(--banner-bg); color: var(--banner-ink); }
.banner__label { display: flex; align-items: center; padding: 10px 18px; background: var(--banner-label-bg); color: var(--banner-label-ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.banner__body { flex: 1 1 280px; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 10px 18px; }
.banner__detail { font-family: var(--font-mono); font-size: 13px; opacity: .88; text-transform: uppercase; }
.banner__link { color: var(--banner-link); font-weight: 600; text-decoration: underline; }
.banner__close { width: 48px; border: 0; background: none; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.banner--notice { background: var(--notice-bg); color: var(--notice-ink); border-bottom: 1px solid var(--notice-line); }
.banner--notice .banner__label { background: var(--notice-label-bg); color: #fff; }
.banner--notice .banner__link { color: inherit; }
.banner--alert { background: var(--alert-bg); color: #fff; font-size: 16px; }
.banner--alert .banner__label { background: var(--alert-label-bg); color: #fff; font-size: 18px; }
.banner--alert .banner__link { color: #fff; }

/* ---------------------------------------------------------------- nav */

.site-nav { background: var(--nav-bg); border-bottom: 1px solid var(--line); min-height: 69px; }
.nav__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.nav__brand span { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .04em; }
.nav__brand small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nav__link { padding: 8px 12px; color: var(--nav-ink); border-bottom: 3px solid transparent; text-decoration: none !important; }
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.nav__join { margin-left: 8px; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); text-decoration: none !important; }
.nav__join:hover { filter: brightness(1.08); }
.icon-btn { width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--nav-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav__theme { margin-left: 6px; }
.nav__menu { display: none; }

@media (max-width: 920px) {
  .nav__brand small { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .site-nav.is-open .nav__links { display: flex; }
  .nav__link { border-bottom: 0; border-left: 3px solid transparent; padding: 12px; }
  .nav__link.is-active { border-left-color: var(--accent); }
  .nav__join { margin: 6px 0 0; text-align: center; padding: 12px; }
  .nav__theme { margin: 8px 0 0; align-self: flex-start; }
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; background: var(--hero-bg); border-bottom: 1px solid var(--line); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; padding-block: 80px 112px; display: flex; flex-direction: column; gap: 18px; }
.hero--compact .hero__inner { padding-block: 64px 84px; gap: 14px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------------------------------------------------------------- tags and swatches */

.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; }
.tag--meeting { border-color: var(--accent); color: var(--link); }
.tag--net { border-color: var(--net-line); color: var(--net-ink); }
.tag--exam { border-color: var(--exam-line); color: var(--exam-ink); background: var(--exam-bg); }
.tag--host { border: 1.5px dashed var(--accent); color: var(--link); white-space: normal; max-width: 100%; }
.tag--skipped, .tag--cancelled, .tag--moved { border-color: var(--skip-line); color: var(--skip-ink); background: var(--skip-bg); }
.tag--full { border-color: var(--skip-line); color: var(--skip-ink); }
.swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; border: 1.5px solid var(--net-line); background: var(--net-bg); }
.swatch--meeting { background: var(--accent); border-color: var(--accent); }
.swatch--exam { background: var(--exam-bg); border-color: var(--exam-line); }
.swatch--host { background: var(--surface); border: 1.5px dashed var(--accent); }
.swatch--skipped, .swatch--cancelled { background: var(--skip-bg); border-color: var(--skip-line); }

/* ---------------------------------------------------------------- weekly net readouts */

.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.readout { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line-2); }
.readout:last-child { border-right: 0; }
.readout dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.readout dd { margin: 0; font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--readout); white-space: nowrap; }
.readout dd small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
@media (max-width: 760px) {
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout:nth-child(2) { border-right: 0; }
  .readout:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .readout dd { font-size: 22px; }
}

/* ---------------------------------------------------------------- ticket card */

.ticket { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px var(--shadow); overflow: hidden; }
.ticket__stub { flex: 0 0 210px; background: var(--ticket-bg); color: var(--ticket-ink); padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.ticket__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; opacity: .88; text-transform: uppercase; }
.ticket__date { font-family: var(--font-display); line-height: .9; }
.ticket__dow { font-size: 30px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ticket__day { font-size: 112px; font-weight: 700; }
.ticket__time { font-family: var(--font-mono); font-size: 20px; font-weight: 600; }
.ticket__body { flex: 1 1 380px; padding: 30px 32px; display: flex; flex-direction: column; gap: 16px; border-left: 2px dashed var(--line); }
.ticket__title { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 700; text-transform: uppercase; color: var(--head); }
.ticket__text { font-size: 17px; color: var(--ink-2); max-width: 36rem; }
.ticket__meta { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ticket__meta svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.ticket__meta strong { color: var(--ink); }
.ticket__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket__actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
@media (max-width: 640px) {
  .ticket__stub { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 18px; padding: 18px 22px 20px; }
  .ticket__kicker { flex-basis: 100%; }
  .ticket__date { display: flex; align-items: baseline; gap: 12px; }
  .ticket__dow { white-space: nowrap; font-size: 24px; }
  .ticket__day { font-size: 72px; }
  .ticket__time { white-space: nowrap; padding-bottom: 8px; }
  .ticket__body { border-left: 0; border-top: 2px dashed var(--line); padding: 24px 22px; }
  .ticket__title { font-size: 36px; }
}

/* ---------------------------------------------------------------- coming-up log */

.log { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.log__head, .log__row { display: grid; grid-template-columns: 130px 90px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 20px; align-items: center; }
.log__head { padding-block: 10px; background: var(--surface-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.log__row { border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.log__row:hover { background: var(--surface-2); }
.log__date { font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.log__time { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); }
.log__event { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log__title { font-weight: 600; }
.log__where { font-size: 14px; color: var(--ink-3); }
.is-struck { text-decoration: line-through; }
.log__empty { padding: 18px 20px; border-top: 1px solid var(--line-2); color: var(--ink-3); }
@media (max-width: 700px) {
  .log__head { display: none; }
  .log__row { grid-template-columns: auto 1fr; gap: 2px 14px; }
  .log__date { grid-row: span 2; }
  .log__time { grid-column: 2; order: 2; }
  .log__event { grid-column: 2; order: 1; }
  .log__where { grid-column: 2; order: 3; }
}

/* ---------------------------------------------------------------- mission, tiles, sponsors */

.quote-panel { position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 48px 52px; }
.quote-panel__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.quote-panel__body { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 46rem; }
.quote-panel blockquote { margin: 0; font-size: 26px; line-height: 1.45; color: var(--head); font-weight: 500; }
@media (max-width: 640px) { .quote-panel { padding: 30px 24px; } .quote-panel blockquote { font-size: 21px; } }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; }
.tile:hover { border-color: var(--accent); }
.tile__text { display: flex; flex-direction: column; gap: 2px; }
.tile__name { font-weight: 600; font-size: 17px; }
.tile__sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.tile__desc { font-size: 15px; color: var(--ink-3); }
.tile svg { flex-shrink: 0; color: var(--accent); }

.sponsors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sponsor { display: flex; align-items: center; justify-content: center; height: 160px; padding: 24px; background: #ffffff; border: 1px solid var(--plate-line); border-radius: var(--radius); }
.sponsor img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 640px) { .tile-grid, .sponsors { grid-template-columns: 1fr; } .sponsor { height: 120px; } }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: auto; background: var(--footer-bg); color: var(--footer-ink); }
.site-footer__ridge { display: block; width: 100%; height: 40px; background: var(--bg); }
.site-footer__inner { padding-block: 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer__brand span { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer__links a { color: var(--footer-link); }

/* ---------------------------------------------------------------- calendar page */

.cal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--head); padding-bottom: 14px; }
.cal-head__month { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cal-head__title { font-family: var(--font-display); font-size: 64px; line-height: .9; font-weight: 700; text-transform: uppercase; color: var(--head); }
.cal-head__year { font-family: var(--font-mono); font-size: 18px; color: var(--ink-3); padding-bottom: 6px; }
.cal-head__nav { display: flex; gap: 6px; padding-bottom: 4px; }
.cal-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--ghost-line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { min-height: 42px; padding: 0 14px; border: 0; background: none; color: var(--head); font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--ghost-line); }
.seg button[aria-pressed="true"] { background: var(--head); color: var(--bg); }
.sq-btn { width: 42px; height: 42px; border: 1px solid var(--ghost-line); border-radius: var(--radius-sm); background: var(--surface); color: var(--head); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sq-btn:hover { border-color: var(--accent); }
.text-btn { border: 0; background: none; padding: 0 4px; min-height: 42px; color: var(--link); font-weight: 600; cursor: pointer; }

.cal-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cal-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cal-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--surface); }
.cal-dow { padding: 8px 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); background: var(--surface-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-transform: uppercase; }
.cal-cell { min-height: 112px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cal-cell__num { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; color: var(--head); }
.cal-cell--out { background: var(--bg); }
.cal-cell--out .cal-cell__num { color: var(--ink-3); opacity: .6; }
.cal-cell--past .cal-cell__num { color: var(--ink-3); }
.cal-cell--today { box-shadow: inset 0 0 0 2px var(--today); }
.cal-cell--today .cal-cell__num { color: var(--today); }
.cal-ev { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 6px; line-height: 1.2; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--accent); color: var(--accent-ink); }
.cal-ev__time { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; opacity: .9; }
.cal-ev--net { background: var(--net-bg); color: var(--net-ink); font-weight: 500; }
.cal-ev--exam { background: var(--exam-bg); color: var(--exam-ink); box-shadow: inset 0 0 0 1px var(--exam-line); }
.cal-ev--host { background: var(--surface); color: var(--link); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-ev--skipped, .cal-ev--cancelled, .cal-ev--moved { background: var(--skip-bg); color: var(--skip-ink); text-decoration: line-through; font-weight: 500; box-shadow: none; }
.cal-ev--past { opacity: .6; }
.cal-ev[aria-current="true"] { outline: 2px solid var(--head); outline-offset: 1px; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.cal-list { display: flex; flex-direction: column; gap: 10px; }
.cal-list__month { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--head); padding-top: 10px; }
.cal-item { display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.cal-item:hover { border-color: var(--accent); }
.cal-item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal-item__date { width: 48px; flex-shrink: 0; text-align: center; font-family: var(--font-display); line-height: 1; color: var(--head); }
.cal-item__date small { display: block; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.cal-item__date b { font-size: 30px; }
.cal-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cal-item__title { font-weight: 600; font-size: 17px; }
.cal-item__meta { font-size: 14px; color: var(--ink-3); }
.cal-empty { padding: 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-3); background: var(--surface); }

.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px var(--shadow); overflow: hidden; }
.detail__stub { background: var(--ticket-bg); color: var(--ticket-ink); padding: 18px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.detail__stub .ticket__day { font-size: 64px; }
.detail__stub .ticket__dow { font-size: 20px; }
.detail__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; border-top: 2px dashed var(--line); }
.detail__title { font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 700; text-transform: uppercase; color: var(--head); }
.detail__close { color: inherit; border-color: rgba(255, 255, 255, .5); }
.detail--exam .detail__stub { background: var(--exam-bg); color: var(--exam-ink); }
.detail--net .detail__stub { background: var(--net-bg); color: var(--net-ink); }
.detail__actions { display: flex; flex-direction: column; gap: 8px; }
.detail__actions .btn { width: 100%; }
.detail__row { display: flex; gap: 8px; }
.detail__row .btn { flex: 1; }
.feed-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-size: 14px; line-height: 1.55; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
.feed-box code { font-family: var(--font-mono); font-size: 13px; word-break: break-all; color: var(--head); }

@media (max-width: 900px) { .cal-side { position: static; } }
@media (max-width: 640px) { .cal-head__title { font-size: 48px; } }

/* ---------------------------------------------------------------- past events */

.year-filter { display: inline-flex; border: 1px solid var(--ghost-line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.year-filter button { min-height: 44px; padding: 0 18px; border: 0; background: none; color: var(--head); font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .05em; cursor: pointer; }
.year-filter button + button { border-left: 1px solid var(--ghost-line); }
.year-filter button[aria-pressed="true"] { background: var(--head); color: var(--bg); }

.timeline { padding-block: 48px 72px; }
.year-break { display: flex; align-items: center; gap: 16px; padding: 24px 0 28px; }
.year-break h2 { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--head); }
.year-break::after { content: ''; flex: 1; height: 2px; background: var(--head); opacity: .8; }
.entry { display: flex; flex-wrap: wrap; gap: 0 32px; padding-bottom: 40px; scroll-margin-top: 24px; }
.entry__rail { flex: 0 0 170px; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 3px solid var(--accent); }
.entry__date { font-family: var(--font-display); line-height: .9; color: var(--head); padding-top: 10px; }
.entry__date span { font-size: 22px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.entry__date b { display: block; font-size: 72px; font-weight: 700; }
.entry__where { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.entry__rail .tag { align-self: flex-start; margin-top: 4px; }
.entry__card { flex: 1 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 26px var(--shadow); padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.entry__title { font-family: var(--font-display); font-size: 36px; line-height: 1; font-weight: 700; text-transform: uppercase; color: var(--head); }
.entry__card .prose p { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.entry:target .entry__card { box-shadow: 0 0 0 2px var(--accent), 0 10px 26px var(--shadow); }
.pending { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--soon-bg); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); color: var(--ink-3); }
.results { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface-2); border-radius: var(--radius-sm); }
.results__row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 28px; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 14px; }
.results__bar { height: 12px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.results__bar span { display: block; height: 100%; background: var(--bar); }
.results__row:first-of-type .results__bar span { background: var(--accent); }
.results__row b { text-align: right; font-weight: 500; color: var(--ink-2); }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.photos--1 { grid-template-columns: 1fr; }
.photos--1 img { aspect-ratio: 16 / 9; }
.photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .entry__rail { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-top: 0; padding: 0 0 10px; }
  .entry__date { display: flex; align-items: baseline; gap: 8px; padding-top: 0; }
  .entry__date b { display: inline; font-size: 40px; }
  .entry__card { padding: 22px 20px; }
  .entry__title { font-size: 30px; }
  .photos { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- exams */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.step__num { font-family: var(--font-display); font-size: 56px; line-height: .8; font-weight: 700; color: var(--contour); }
.step__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; color: var(--head); }
.step p { font-size: 16px; color: var(--ink-2); }
.step .btn { margin-top: auto; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface-2); text-decoration: none !important; }
.choice:hover { border-color: var(--accent); }
.choice span span { display: block; font-size: 13px; color: var(--ink-3); }
.choice svg { flex-shrink: 0; color: var(--accent); }
.tip-band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--tip-bg); border: 1px solid var(--tip-line); border-radius: var(--radius); padding: 28px 32px; }
.tip-band h2 { font-family: var(--font-display); font-size: 40px; font-weight: 700; text-transform: uppercase; line-height: .95; color: var(--tip-head); }
.tip-band p { flex: 1 1 420px; color: var(--tip-ink); }
.licenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.license { padding: 24px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line-2); }
.license:last-child { border-right: 0; }
.license h3 { font-family: var(--font-display); font-size: 30px; font-weight: 700; text-transform: uppercase; color: var(--head); }
.license p { font-size: 15px; color: var(--ink-2); }
.more-sessions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) {
  .steps, .licenses { grid-template-columns: 1fr; }
  .license { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .license:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- meshcore */

.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide { padding: 24px; background: var(--soon-bg); border: 1.5px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.guide__top { display: flex; justify-content: space-between; align-items: center; }
.guide__num { font-family: var(--font-display); font-size: 40px; line-height: .8; font-weight: 700; color: var(--contour); }
.guide h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--ink-2); }
.guide p { font-size: 15px; color: var(--soon-ink); }
.feature { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px var(--shadow); overflow: hidden; }
.feature__body { flex: 1 1 420px; padding: 34px 36px; display: flex; flex-direction: column; gap: 16px; }
.feature__art { flex: 1 1 360px; min-height: 280px; position: relative; background: var(--map-bg); border-left: 1px solid var(--line); display: block; }
.feature__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__art span { position: absolute; left: 16px; bottom: 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; color: var(--head); }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px var(--shadow); color: var(--ink); text-decoration: none !important; }
.tool:hover { border-color: var(--accent); }
.tool__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tool__icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.tool h3 { font-family: var(--font-display); font-size: 34px; font-weight: 700; text-transform: uppercase; color: var(--head); }
.tool p { color: var(--ink-2); }
.tool__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); }
@media (max-width: 860px) {
  .guides, .tools { grid-template-columns: 1fr; }
  .feature__art { border-left: 0; border-top: 1px solid var(--line); }
  .feature__body { padding: 26px 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
