/* faltan. — soft sage surfaces, dark ink and an asset-free visual system */
:root {
  color-scheme: light;
  --page: #e4e9e1;
  --surface: #f0f2ec;
  --surface-muted: #e8ede3;
  --ink: #17211e;
  --muted: #59645c;
  --line: #cbd3c7;
  --lime: #d6fb78;
  --forest: #3b6754;
  --forest-deep: #2a4f3f;
  /* Actions may brighten in dark mode; the hero must remain dark. */
  --accent: #3b6754;
  --accent-hover: #4b7864;
  --on-accent: #ffffff;
  --highlight-ink: #102c24;
  --lime-hover: #e5ffa4;
  --heading-accent: #4e7138;
  --focus: #4d7625;
  --focus-halo: rgb(77 118 37 / 16%);
  --control-line: #75816a;
  --hover-surface: #ecf0e4;
  --badge-surface: #e7eadf;
  --chip-surface: rgb(23 33 30 / 5%);
  --active-chip-surface: #2a4f3f;
  --active-chip-ink: #d6fb78;
  --positive: #466737;
  --pending: #756033;
  --today-surface: #e2e8c9;
  --today-line: #a7b76e;
  --today-ink: #17211e;
  --today-muted: #56613e;
  --hero-ink: #ffffff;
  --hero-muted: #edf3ef;
  --hero-line: rgb(255 255 255 / 30%);
  --hero-art: linear-gradient(166deg, #d6a5d4 0%, #eba7aa 29%, #ffbd83 57%, #9d9e94 79%, #36544d 100%);
  --hero-sun: linear-gradient(#ffe3a9, #ffc493);
  --hero-glow: rgb(255 223 160 / 25%);
  --hero-grain: rgb(24 35 31 / 3%);
  --hero-shade: rgb(22 60 48 / 18%);
  --hero-orbit: rgb(255 248 230 / 45%);
  --hero-grid: rgb(249 237 208 / 22%);
  --hero-art-ink: #fff9e9;
  --hero-art-shadow: #b1758b;
  --hero-art-depth: rgb(48 58 60 / 20%);
  --hero-palm: #25463d;
  --art-glaze: 255 255 255;
  --toast-surface: var(--lime);
  --toast-ink: #17211e;
  --toast-line: #a9d046;
  --tooltip-shadow: 0 4px 12px rgb(23 33 30 / 18%);
  --backdrop: rgb(13 30 23 / 58%);
  --radius: 20px;
  --shadow: 0 12px 36px rgb(23 33 30 / 6%);
  --dialog-shadow: 0 30px 100px rgb(9 28 20 / 25%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #1c2118;
  --surface: #262d21;
  --surface-muted: #2c3425;
  --ink: #eef2e6;
  --muted: #bbc5ae;
  --line: #4a5840;
  --forest: #202d1d;
  --forest-deep: #172114;
  --accent: #d6fb78;
  --accent-hover: #e5ffa4;
  --on-accent: #1c2118;
  --heading-accent: #c2dc9b;
  --focus: #d6fb78;
  --focus-halo: rgb(214 251 120 / 20%);
  --control-line: #869775;
  --hover-surface: #343f2b;
  --badge-surface: #343f2b;
  --chip-surface: rgb(238 242 230 / 8%);
  --active-chip-surface: #24331b;
  --active-chip-ink: #d6fb78;
  --positive: #b8d392;
  --pending: #e0c282;
  --today-surface: var(--surface-muted);
  --today-line: var(--line);
  --today-ink: var(--ink);
  --today-muted: var(--muted);
  --hero-muted: #c8d5ba;
  --hero-line: rgb(200 213 186 / 24%);
  --hero-art: linear-gradient(166deg, #453343 0%, #594034 29%, #6b5036 57%, #3b4430 79%, #202d1d 100%);
  --hero-sun: linear-gradient(#827047, #5b5335);
  --hero-glow: rgb(170 158 91 / 12%);
  --hero-grain: rgb(0 0 0 / 8%);
  --hero-shade: rgb(16 24 12 / 24%);
  --hero-orbit: rgb(220 229 189 / 28%);
  --hero-grid: rgb(220 229 189 / 14%);
  --hero-art-shadow: #423545;
  --hero-art-depth: rgb(0 0 0 / 30%);
  --hero-palm: #182319;
  --art-glaze: 0 0 0;
  --backdrop: rgb(8 12 6 / 76%);
  --shadow: 0 12px 36px rgb(0 0 0 / 22%);
  --dialog-shadow: 0 30px 100px rgb(0 0 0 / 45%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, input, select { margin: 0; }
button { border: 0; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--lime); color: var(--highlight-ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.featured :focus-visible { outline-color: var(--lime); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Quiet masthead, strong wordmark. */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; min-height: 84px; padding-block: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -1.8px;
  line-height: 1;
}
.brand-mark {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 28px;
  margin-right: 1px;
  color: var(--highlight-ink);
  background: var(--lime);
  border-radius: 7px;
  transform: rotate(-8deg);
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 7px;
  border: 2px solid currentColor;
}
.brand-mark::before { top: 6px; border-radius: 0 0 7px 7px; }
.brand-mark::after { bottom: 6px; border-radius: 7px 7px 0 0; }
.brand-dot { color: var(--heading-accent); margin-left: -7px; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-width: 0; margin-left: auto; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.nav-link:hover, .nav-link.is-active, .nav-link[aria-pressed="true"] { color: var(--accent); }
.nav-link.is-active, .nav-link[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.count-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  border-radius: 7px;
  flex-shrink: 0;
  background: var(--badge-surface);
  color: var(--accent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.header-note {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.preferences { display: flex; flex: 0 1 240px; flex-wrap: wrap; align-items: flex-end; gap: 10px; min-width: 0; max-width: 100%; }
.preferences label { display: flex; flex: 1 1 100px; flex-direction: column; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.preferences select { width: 100%; min-width: 0; max-width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12px; cursor: pointer; }
.preferences select:hover { background: var(--hover-surface); }
.preferences option { background: var(--surface); color: var(--ink); }
.preferences select:focus-visible { outline-offset: 2px; }

/* The introductory orbit is drawn entirely with borders and pseudo-elements. */
.intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 58px 0 38px; }
.intro-copy { min-width: 0; max-width: 800px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.live-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px var(--badge-surface); }
h1 { margin-top: 17px; font-size: clamp(40px, 4.7vw, 64px); line-height: 1.07; letter-spacing: -.06em; font-weight: 750; }
h1 span { color: var(--heading-accent); }
h1 .headline-first { color: var(--ink); }
.intro-description { margin-top: 18px; max-width: 580px; color: var(--muted); font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.intro-aside { width: 178px; flex-shrink: 0; padding-top: 5px; text-align: center; }
.orbit { position: relative; width: 132px; height: 108px; margin: 0 auto 13px; }
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  inset: 22px 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transform: rotate(-32deg);
}
.orbit::after { transform: rotate(38deg); }
.orbit-core {
  position: absolute;
  inset: 29px 41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--highlight-ink);
  font-size: 29px;
  font-weight: 650;
}
.orbit-core:empty::before { content: "✳"; }
.orbit-dot { position: absolute; z-index: 1; top: 15px; right: 24px; width: 11px; height: 11px; border: 3px solid var(--page); border-radius: 50%; background: var(--accent); }
.intro-aside-label { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }

/* A1 radar: up to four logo-top cards share one desktop row and collapse safely on narrow screens. */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  align-items: stretch;
  gap: 14px;
}
.featured.is-filtered { grid-template-columns: minmax(0, 1fr); }
.featured-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  border: 1px solid var(--forest-deep);
  border-radius: 24px;
  background: var(--forest);
  color: var(--hero-ink);
}
.featured-content { position: relative; z-index: 2; display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 30px; }
.featured-kicker { display: flex; align-items: center; gap: 8px; padding-right: 42px; color: var(--lime); font-size: 11px; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; }
.featured-live .featured-kicker::after { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--hero-glow); }
.featured-kicker svg { width: 14px; height: 14px; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 9px; border: 1px solid var(--hero-line); border-radius: 5px; color: var(--hero-muted); font-size: 10px; font-weight: 550; overflow-wrap: anywhere; }
.featured h2 { margin-top: 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.featured-description { margin-top: 10px; max-width: 430px; color: var(--hero-muted); font-size: 13px; line-height: 1.7; }
.countdown { display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.featured .countdown { gap: 27px; margin-top: 25px; }
.time-unit { position: relative; min-width: 0; text-align: center; }
.time-unit strong { display: block; font-size: 42px; font-weight: 650; line-height: 1.05; letter-spacing: -.045em; }
.time-unit span { display: block; margin-top: 7px; font-size: 10px; font-weight: 550; letter-spacing: 1.2px; text-transform: uppercase; overflow-wrap: anywhere; }
.featured .time-unit strong { color: var(--lime); }
.featured .time-unit span { color: var(--hero-muted); }
.featured .time-unit + .time-unit::before { content: ":"; position: absolute; top: 0; left: -17px; color: var(--hero-muted); font-size: 29px; font-weight: 400; }
.countdown-note { margin-top: 10px; color: var(--muted); font-size: 11px; }
.featured .countdown-note { color: var(--hero-muted); }
.featured-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 21px; border-top: 1px solid var(--hero-line); }
.event-date { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--hero-muted); font-size: 12px; overflow-wrap: anywhere; }
.event-date svg { width: 15px; height: 15px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  max-width: 100%;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.button svg { width: 16px; height: 16px; }
.button-light { background: var(--lime); color: var(--highlight-ink); }
.button-light:hover { background: var(--lime-hover); }
.button-dark { background: var(--accent); color: var(--on-accent); }
.button-dark:hover { background: var(--accent-hover); }
.button-outline { border-color: var(--control-line); background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--hover-surface); }
.featured-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-art);
}
.featured-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 244px;
  height: 244px;
  top: 46px;
  right: -44px;
  border-radius: 50%;
  background: var(--hero-sun);
  box-shadow: 0 0 70px var(--hero-glow);
}
.featured-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, var(--hero-grain) 3px 4px), linear-gradient(90deg, var(--hero-shade), transparent 35%);
  pointer-events: none;
}
.art-orbit { position: absolute; inset: 32px -34px; border: 1px solid var(--hero-orbit); border-radius: 50%; transform: rotate(-35deg); }
.art-orbit::before { content: ""; position: absolute; inset: 24px; border: 1px solid var(--hero-orbit); border-radius: inherit; opacity: .55; }
.art-grid {
  position: absolute;
  right: -40%;
  bottom: -90px;
  left: -40%;
  height: 200px;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 38px 30px;
  transform: perspective(170px) rotateX(42deg);
  transform-origin: center top;
}
.art-letter {
  position: relative;
  margin-top: -12px;
  padding-right: .1em;
  color: var(--hero-art-ink);
  font-size: clamp(145px, 20vw, 270px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.13em;
  transform: skewY(-6deg);
  text-shadow: 2px 4px 0 var(--hero-art-shadow), 5px 9px 0 var(--hero-art-depth);
}
.art-caption { position: absolute; bottom: 28px; left: 24px; right: 24px; color: var(--hero-art-ink); font-size: 10px; font-weight: 700; text-align: center; letter-spacing: 3.5px; text-transform: uppercase; }
.palm { position: absolute; bottom: 27px; left: 30px; width: 8px; height: 127px; border-radius: 100% 0 0; background: var(--hero-palm); transform: rotate(12deg); opacity: .8; }
.palm::before, .palm::after { content: ""; position: absolute; top: -8px; left: -40px; width: 90px; height: 40px; border-top: 14px solid var(--hero-palm); border-radius: 50%; transform: rotate(-22deg); }
.palm::after { top: -17px; left: -29px; width: 67px; transform: rotate(39deg); }

/* Unfiltered A1 cards preserve the artwork/logo area while keeping search controls close below. */
.featured:not(.is-filtered) .featured-content { min-height: 330px; padding: 20px; }
.featured:not(.is-filtered) .featured-kicker { font-size: 10px; letter-spacing: 1.25px; }
.featured:not(.is-filtered) .featured-tags { margin-top: 14px; }
.featured:not(.is-filtered) h2 { font-size: clamp(21px, 2vw, 27px); }
.featured:not(.is-filtered) .featured-description { font-size: 12px; line-height: 1.55; }
.featured:not(.is-filtered) .countdown { gap: 12px; margin-top: 18px; }
.featured:not(.is-filtered) .time-unit strong { font-size: 28px; }
.featured:not(.is-filtered) .time-unit span { margin-top: 5px; font-size: 9px; letter-spacing: .7px; }
.featured:not(.is-filtered) .time-unit + .time-unit::before { left: -8px; font-size: 20px; }
.featured:not(.is-filtered) .featured-bottom { gap: 10px; padding-top: 16px; }
.featured:not(.is-filtered) .event-date { font-size: 11px; }
.featured:not(.is-filtered) .button { min-height: 38px; padding: 9px 12px; }
.featured:not(.is-filtered) .featured-art { min-height: 132px; }
.featured:not(.is-filtered) .featured-art::before { width: 158px; height: 158px; top: 13px; right: -24px; }
.featured:not(.is-filtered) .art-orbit { inset: 13px -28px; }
.featured:not(.is-filtered) .art-orbit::before { inset: 16px; }
.featured:not(.is-filtered) .art-grid { bottom: -72px; height: 130px; background-size: 28px 23px; }
.featured:not(.is-filtered) .art-letter { margin-top: -8px; font-size: clamp(78px, 8vw, 112px); }
.featured:not(.is-filtered) .art-caption { right: 14px; bottom: 11px; left: 14px; font-size: 8px; letter-spacing: 2px; }
.featured:not(.is-filtered) .palm { bottom: 9px; left: 20px; height: 78px; transform: rotate(12deg) scale(.72); transform-origin: bottom left; }

/* Discovery controls retain native input and select behavior. */
.explore { padding: 48px 0 58px; scroll-margin-top: 24px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.045em; font-weight: 700; }
#catalog-count { padding-bottom: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.filters { display: grid; grid-template-columns: minmax(180px, 1fr) 205px 205px; gap: 12px; }
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid var(--control-line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}
.search-field > svg { width: 18px; height: 18px; }
.search-field:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 3px var(--focus-halo); }
.search-field input { width: 100%; min-width: 0; min-height: 47px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font-size: 13px; outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-clear { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 5px; border-radius: 6px; background: var(--surface-muted); color: var(--muted); }
.search-clear:hover { background: var(--hover-surface); }
.search-clear svg { width: 16px; height: 16px; }
.select-field { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 49px; padding-left: 13px; border: 1px solid var(--control-line); border-radius: 9px; background: var(--surface); }
.select-field > span { min-width: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.select-field > span svg { width: 16px; height: 16px; }
.select-field select { width: 100%; min-width: 0; min-height: 47px; padding: 8px 10px 8px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; }
.select-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.select-field select:focus-visible { outline-offset: -3px; outline-width: 2px; }
.select-field option { background: var(--surface); color: var(--ink); }
.facet-filters { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 10px; min-width: 0; margin-top: 12px; }
.facet-filters .select-field { flex: 1 1 210px; flex-direction: column; align-items: stretch; gap: 2px; max-width: 100%; padding: 8px 12px 4px; }
.facet-filters .select-field select { min-height: 36px; padding: 3px 0; }
.facet-help { margin-top: 8px; color: var(--muted); font-size: 12px; }
.holiday-summary > h3 { flex-basis: 100%; }
.holiday-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.holiday-summary > p, .holiday-summary > span { flex: 1 1 220px; min-width: 0; }
.holiday-summary strong { color: var(--ink); }
.holiday-summary a, .holiday-summary button { max-width: 100%; color: var(--accent); background: transparent; font-weight: 650; text-align: left; white-space: normal; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.holiday-summary a:hover, .holiday-summary button:hover { color: var(--ink); }
.scope-options { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
.global-option { display: inline-flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--control-line); border-radius: 9px; background: var(--surface-muted); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.global-option input { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.global-option:has(input:checked) { border-color: var(--accent); }
.scope-option-note { color: var(--muted); font-size: 12px; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: background-color .16s, border-color .16s, color .16s;
}
.category-chip:hover { border-color: var(--control-line); background: var(--hover-surface); color: var(--accent); }
.category-chip.is-active, .category-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.category-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.category-icon svg { width: 18px; height: 18px; }
.chip-count { min-width: 17px; padding: 1px 4px; border-radius: 4px; background: var(--chip-surface); font-size: 10px; line-height: 1.5; }
.category-status { padding: 2px 5px; border-radius: 4px; background: var(--chip-surface); color: var(--muted); font-size: 9px; font-weight: 750; line-height: 1.4; white-space: nowrap; }
.category-chip.is-active .chip-count, .category-chip[aria-pressed="true"] .chip-count,
.category-chip.is-active .category-status, .category-chip[aria-pressed="true"] .category-status { background: var(--active-chip-surface); color: var(--active-chip-ink); }
.results-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 25px 0 14px; }
#results-summary { color: var(--muted); font-size: 12px; }
#results-summary strong { color: var(--ink); font-weight: 650; }
.text-button { max-width: 100%; padding: 6px 0; background: none; color: var(--accent); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--control-line); }
.text-button:hover { text-decoration-color: currentColor; }
.filter-help { margin: -3px 0 18px; color: var(--muted); font-size: 12px; }

/* A consistent card structure keeps dates and actions aligned across rows. */
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.event-card {
  --art-bg: #e5dced;
  --art-accent: #85639e;
  --art-ink: #553475;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tone-purple { --art-bg: #e9dff0; --art-accent: #9f83b8; --art-ink: #6b4386; }
.tone-teal { --art-bg: #d6e8dd; --art-accent: #83b5a2; --art-ink: #245e48; }
.tone-orange { --art-bg: #f4dfce; --art-accent: #d39a73; --art-ink: #94502f; }
.tone-blue { --art-bg: #dfe7f5; --art-accent: #8da9d5; --art-ink: #416398; }
.tone-rose { --art-bg: #f0dce3; --art-accent: #d497ac; --art-ink: #94476a; }
.tone-green { --art-bg: #e2e8c9; --art-accent: #a7b76e; --art-ink: #566b36; }
.tone-gold { --art-bg: #f2e9c9; --art-accent: #c6aa61; --art-ink: #816229; }
[data-theme="dark"] .event-card { --art-bg: #342b3b; --art-accent: #4a3955; --art-ink: #ddc5ed; }
[data-theme="dark"] .tone-purple { --art-bg: #342b3b; --art-accent: #4a3955; --art-ink: #ddc5ed; }
[data-theme="dark"] .tone-teal { --art-bg: #233a30; --art-accent: #345542; --art-ink: #afe0c4; }
[data-theme="dark"] .tone-orange { --art-bg: #3e3026; --art-accent: #5a422d; --art-ink: #edc4a1; }
[data-theme="dark"] .tone-blue { --art-bg: #293343; --art-accent: #3c4d68; --art-ink: #bfd6f7; }
[data-theme="dark"] .tone-rose { --art-bg: #3d2932; --art-accent: #5a3b49; --art-ink: #efbfd1; }
[data-theme="dark"] .tone-green { --art-bg: #303923; --art-accent: #485333; --art-ink: #d1e2a8; }
[data-theme="dark"] .tone-gold { --art-bg: #3c3523; --art-accent: #584b30; --art-ink: #efdaa4; }
.card-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  min-height: 164px;
  overflow: hidden;
  background: var(--art-bg);
  color: var(--art-ink);
}
.card-art::before, .card-art::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.card-art::before { width: 190px; height: 190px; right: -36px; top: -75px; border: 1px solid currentColor; border-radius: 50%; opacity: .14; }
.card-art::after { width: 130px; height: 130px; left: -30px; bottom: -77px; border: 20px solid var(--art-accent); border-radius: 50%; opacity: .25; }
.card-art-symbol { position: relative; display: block; max-width: 100%; padding: 12px 36px; font-size: 65px; font-weight: 850; line-height: 1.1; letter-spacing: -.05em; text-align: center; text-wrap: balance; transform: rotate(-5deg); }
.card-art-label { position: absolute; bottom: 13px; left: 17px; max-width: calc(100% - 34px); padding: 2px 5px; border-radius: 4px; background: var(--art-bg); color: var(--art-ink); font-size: 10px; font-weight: 750; line-height: 1.4; letter-spacing: 1.9px; text-transform: uppercase; }
.favorite-button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition: background-color .15s, color .15s;
}
.favorite-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.favorite-button:hover { background: var(--hover-surface); color: var(--accent); }
.favorite-button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--highlight-ink); }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.featured-favorite { top: 18px; right: 18px; border-color: var(--hero-line); background: transparent; color: var(--hero-ink); }
.featured-favorite:hover { background: var(--hero-line); color: var(--lime); }
.detail-favorite { position: static; width: 45px; height: 45px; flex: 0 0 45px; }
.favorite-button.detail-favorite { position: relative; top: auto; right: auto; }
.favorite-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 3;
  top: calc(100% + 7px);
  right: 0;
  padding: 5px 9px;
  border: 1px solid var(--toast-line);
  border-radius: 7px;
  background: var(--toast-surface);
  color: var(--toast-ink);
  box-shadow: var(--tooltip-shadow);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .15s, transform .15s;
}
.detail-favorite::after { right: auto; left: 0; }
.favorite-button:focus-visible::after { opacity: 1; transform: none; }
@media (hover: hover) { .favorite-button:hover::after { opacity: 1; transform: none; } }

/* Original category compositions: court lines, broadcast rings, and ribbons. */
.art-gaming { background: radial-gradient(ellipse at 48% 110%, var(--art-accent), transparent 65%), var(--art-bg); }
.art-gaming::before { width: 220px; height: 104px; top: 25px; right: -22px; border: 1px solid currentColor; border-radius: 18px; transform: rotate(-28deg); opacity: .2; }
.art-gaming .card-art-symbol { text-shadow: 3px 4px 0 rgb(var(--art-glaze) / 45%); letter-spacing: -.07em; }
.art-sport { background: repeating-linear-gradient(90deg, transparent 0 49px, rgb(var(--art-glaze) / 13%) 49px 98px), var(--art-bg); }
.art-sport::before { inset: 16px 25px; width: auto; height: auto; border: 1px solid var(--art-ink); border-radius: 2px; transform: rotate(-12deg) scale(1.1); opacity: .2; }
.art-sport::after { top: 50%; left: 50%; width: 87px; height: 87px; border: 1px solid var(--art-ink); transform: translate(-50%, -50%); opacity: .25; }
.art-sport .card-art-symbol { transform: rotate(8deg); }
.art-streaming { background: linear-gradient(130deg, transparent 40%, rgb(var(--art-glaze) / 25%) 40% 54%, transparent 54%), var(--art-bg); }
.art-streaming::before { width: 150px; height: 150px; top: 7px; left: calc(50% - 75px); border: 1px solid currentColor; box-shadow: 0 0 0 20px rgb(var(--art-glaze) / 18%), 0 0 0 40px rgb(var(--art-glaze) / 12%); opacity: .45; }
.art-streaming .card-art-symbol { transform: rotate(0); font-size: 56px; letter-spacing: -.06em; }
.art-music { background: repeating-linear-gradient(110deg, transparent 0 25px, rgb(var(--art-glaze) / 16%) 25px 26px), var(--art-bg); }
.art-music::before { width: 146px; height: 146px; top: 10px; left: calc(50% - 73px); border: 25px solid var(--art-accent); box-shadow: inset 0 0 0 1px currentColor, 0 0 0 1px currentColor; opacity: .3; }
.art-music::after { width: 70px; height: 110px; left: 28px; bottom: -30px; border: 1px solid currentColor; border-radius: 45px; transform: rotate(-32deg); }
.art-esports { background: linear-gradient(135deg, transparent 22%, rgb(var(--art-glaze) / 25%) 22% 36%, transparent 36% 68%, rgb(var(--art-glaze) / 20%) 68% 76%, transparent 76%), var(--art-bg); }
.art-esports::before { width: 110px; height: 110px; top: 28px; left: calc(50% - 55px); border: 1px solid currentColor; border-radius: 12px; transform: rotate(45deg); opacity: .25; }
.art-esports .card-art-symbol { font-style: italic; transform: skew(-7deg); }
.art-crown { background: radial-gradient(ellipse at 50% 100%, rgb(var(--art-glaze) / 55%), transparent 70%), var(--art-bg); }
.art-crown::before { width: 135px; height: 135px; top: 35px; right: calc(50% - 67px); border: 1px solid currentColor; box-shadow: 0 0 0 17px rgb(var(--art-glaze) / 15%), 0 0 0 34px rgb(var(--art-glaze) / 15%); opacity: .3; }
.art-election::before { width: 124px; height: 87px; top: 49px; left: calc(50% - 62px); border: 1px solid currentColor; border-radius: 5px; transform: rotate(-8deg); opacity: .25; }
.art-election::after { width: 98px; height: 98px; bottom: 68px; left: calc(50% - 49px); border: 1px solid currentColor; border-radius: 4px; transform: rotate(13deg); opacity: .18; }
.art-celebration { background: radial-gradient(circle at 20% 27%, var(--art-accent) 2px, transparent 3px), radial-gradient(circle at 76% 70%, var(--art-accent) 3px, transparent 4px), radial-gradient(circle at 83% 20%, var(--art-accent) 2px, transparent 3px), var(--art-bg); }
.art-celebration::before { width: 90px; height: 90px; top: 40px; left: calc(50% - 45px); border: 12px dotted var(--art-accent); border-radius: 0; transform: rotate(23deg); opacity: .3; }
.card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 19px 20px 0; }
.card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.category-label { color: var(--art-ink); font-size: 11px; font-weight: 750; letter-spacing: .55px; text-transform: uppercase; }
.scope-label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.scope-label svg { width: 12px; height: 12px; }
.card-body h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.55px; }
.event-title { display: block; max-width: 100%; padding: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; overflow-wrap: anywhere; }
.event-title:hover { color: var(--accent); }
.card-description { flex-grow: 1; min-height: 42px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; text-wrap: pretty; }
.card-scope, .card-source { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.screen-badges { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.screen-badges:empty { display: none; }
.screen-release-summary { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--control-line); color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.screen-release-summary strong { color: var(--ink); font-weight: 650; }
.featured .screen-release-summary { border-color: var(--hero-line); color: var(--hero-muted); }
.featured .screen-release-summary strong { color: var(--hero-ink); }
.featured .screen-badges .status-badge { color: var(--hero-muted); }
.screen-rerelease { font-weight: 750; }
.card-date { display: flex; align-items: center; gap: 6px; margin-top: 15px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.card-date svg { width: 13px; height: 13px; }
.card-countdown { justify-content: space-between; gap: 8px; margin-top: 14px; padding: 15px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.card-countdown .time-unit { flex: 1; }
.card-countdown .time-unit + .time-unit { border-left: 1px solid var(--line); }
.card-countdown .time-unit strong { font-size: 27px; font-weight: 650; letter-spacing: -.045em; }
.card-countdown .time-unit span { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .5px; }
.local-time { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 12px; margin-top: 13px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.local-time > div { display: flex; min-width: 0; flex-direction: column; }
.local-time strong { color: var(--accent); font-size: 12px; }
.local-time small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.local-time time { color: var(--ink); font-size: 12px; font-weight: 700; text-align: right; white-space: nowrap; }
.local-time p { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.5; }
.pending-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 86px; margin-top: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 9px; background: var(--surface-muted); text-align: center; }
.pending-date strong { font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
.pending-date span { color: var(--muted); font-size: 11px; }
.pending-date.is-today { border-color: var(--today-line); background: var(--today-surface); color: var(--today-ink); }
.pending-date.is-today span { color: var(--today-muted); }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; padding: 13px 0; border-top: 1px solid var(--line); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--positive); font-size: 11px; font-weight: 550; }
.status-badge::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.status-badge.pending { color: var(--pending); }
.card-link { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; max-width: 100%; padding: 4px 0 4px 7px; background: none; color: var(--accent); font-size: 11px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.card-link svg { width: 13px; height: 13px; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Home radar entries get a soft green surface when they appear in filtered results. */
.event-card.is-radar {
  --surface: #dcead0;
  --surface-muted: #cfe1c1;
  --line: #a9c596;
  --control-line: #7fa36c;
  --hover-surface: #d3e4c5;
  --radar-line: #8fb57a;
  border-color: var(--radar-line);
  color: var(--ink);
}
[data-theme="dark"] .event-card.is-radar {
  --surface: #2f4027;
  --surface-muted: #384b2f;
  --line: #56704a;
  --control-line: #6d8a5f;
  --hover-surface: #364a2d;
  --radar-line: #6d8a5f;
}
.event-card.is-radar .category-label, .event-card.is-radar .time-unit strong { color: var(--accent); }
.card-radar { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.25px; text-transform: uppercase; }
.card-radar svg { width: 13px; height: 13px; }
.radar-live .card-radar::after { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--focus-halo); }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 54px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-muted); text-align: center; }
.empty-state > svg, .empty-state > .icon { width: 42px; height: 42px; color: var(--positive); }
.empty-state h3 { font-size: 23px; letter-spacing: -.6px; }
.empty-state p { max-width: 430px; color: var(--muted); font-size: 14px; }
.empty-state .button { margin-top: 5px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.pagination[hidden] { display: none; }
.pagination .button { min-width: 104px; min-height: 40px; padding: 9px 14px; }
.pagination .button:disabled { cursor: default; opacity: .45; }
#page-status { min-width: 100px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }

/* Intentionally understated footer. */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 96px; padding-block: 24px; }
.footer-inner .brand { font-size: 25px; }
.footer-inner .brand-mark { width: 24px; height: 26px; }
.footer-inner p { flex: 1 1 260px; min-width: 0; color: var(--muted); font-size: 11px; text-align: center; }
.footer-inner > a:not(.brand) { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.footer-inner > a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.footer-links a.text-button { display: inline-block; }
.version-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Static publication pages: readable without JavaScript, same palette as the application. */
.static-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px; }
.static-languages { display: flex; gap: 6px; }
.static-languages a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.static-languages a[aria-current="page"] { border-color: var(--forest); background: var(--forest); color: var(--hero-ink); }
.static-main { max-width: 820px; padding-bottom: 56px; }
.static-main h1 { margin: 10px 0 14px; font-size: clamp(30px, 4vw, 46px); }
.static-main h2 { margin: 36px 0 12px; font-size: 20px; }
.static-main p { margin: 0 0 14px; }
.static-main a:not(.button) { color: var(--heading-accent); text-decoration: underline; text-underline-offset: 3px; }
.static-intro { color: var(--muted); font-size: 17px; }
.static-kicker, .static-breadcrumb { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.static-facts { display: grid; gap: 1px; margin: 22px 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.static-facts div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 12px 16px; background: var(--surface); }
.static-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.static-facts dd { margin: 0; overflow-wrap: anywhere; }
.static-events, .static-categories, .static-schedule { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.static-events li, .static-categories li, .static-schedule li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.static-events a, .static-categories a { font-weight: 700; }
.static-date, .static-schedule span { color: var(--muted); font-size: 13px; }
.static-schedule time { font-weight: 700; }
.static-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.static-footer a { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .static-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Native modal: the browser owns its top layer, focus, and Escape behavior. */
.event-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: 620px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--page);
  color: var(--ink);
  box-shadow: var(--dialog-shadow);
}
.event-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(5px); }
body:has(.event-dialog[open]) { overflow: hidden; }
.share-fallback { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; }
.share-fallback input { display: block; width: 100%; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.featured .pending-date { align-items: flex-start; margin-top: 20px; padding: 15px 20px; color: var(--ink); }
.dialog-content { position: relative; padding: 38px; overflow-wrap: anywhere; }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--control-line); border-radius: 50%; background: var(--surface-muted); color: var(--muted); }
.dialog-close:hover { background: var(--hover-surface); }
.dialog-close svg { width: 18px; height: 18px; }
.dialog-kicker { padding-right: 36px; color: var(--heading-accent); font-size: 11px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase; }
.event-dialog h2 { margin-top: 12px; padding-right: 13px; font-size: 36px; line-height: 1.15; letter-spacing: -.055em; }
.dialog-description { margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.detail-list { margin: 25px 0; padding: 0; }
.detail-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.detail-list dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.screen-releases { min-width: 0; margin: 24px 0; }
.screen-releases h3, .screen-unassigned h4 { margin: 0; font-size: 15px; }
.screen-release-table { width: 100%; margin: 18px 0; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.screen-release-table caption { padding: 8px 0; color: var(--ink); font-weight: 700; text-align: left; }
.screen-release-table th, .screen-release-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.screen-release-table th:first-child { width: 28%; }
.screen-release-table thead th { background: var(--surface-muted); color: var(--ink); }
.screen-release-table td { color: var(--muted); }
.screen-release-list { margin: 0; padding-left: 0; list-style: none; }
.screen-release-list > li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.concert-performance-list { padding-left: 0; list-style: none; }
.screen-release-fields { margin: 0; }
.screen-release-fields > div { margin-top: 5px; }
.screen-release-fields dt { color: var(--muted); font-size: 11px; }
.screen-release-fields dd { margin: 0; color: var(--ink); font-size: 12px; }
.screen-release-fields a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.technology-timeline-list { position: relative; display: grid; gap: 14px; margin: 18px 0 0; padding: 0 0 0 28px; list-style: none; }
.technology-timeline-list::before { position: absolute; top: 12px; bottom: 12px; left: 7px; width: 2px; border-radius: 2px; background: var(--line); content: ''; }
.technology-timeline-item { position: relative; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.technology-timeline-item.is-current { border-color: var(--control-line); box-shadow: inset 3px 0 0 var(--accent); }
.technology-timeline-dot { position: absolute; top: 21px; left: -27px; width: 13px; height: 13px; border: 3px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.technology-timeline-item.is-current .technology-timeline-dot { background: var(--accent); }
.technology-timeline-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 16px; }
.technology-timeline-heading h4 { margin: 0; color: var(--ink); font-size: 16px; }
.technology-timeline-heading time { color: var(--heading-accent); font-size: 13px; font-weight: 750; }
.technology-timeline-location { display: grid; gap: 3px; margin: 12px 0; color: var(--ink); font-size: 12px; line-height: 1.55; }
.technology-timeline-location span, .technology-timeline-source > span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.technology-timeline-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.technology-timeline-meta > div { min-width: 110px; flex: 1 1 110px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.technology-timeline-meta dt { color: var(--muted); font-size: 10px; }
.technology-timeline-meta dd { margin: 3px 0 0; color: var(--ink); font-size: 11px; font-weight: 650; }
.technology-timeline-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; color: var(--accent); font-size: 12px; font-weight: 700; text-underline-offset: 3px; }
.technology-timeline-source > span { margin-right: 2px; }
.technology-timeline-source svg { width: 14px; height: 14px; }
.screen-unassigned { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.screen-unassigned > .screen-release-list { margin-top: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions .button { min-height: 45px; }
.dialog-note { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); max-width: min(420px, calc(100% - 32px)); padding: 15px 21px; border: 1px solid var(--toast-line); border-radius: 12px; background: var(--toast-surface); color: var(--toast-ink); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }

@media (hover: hover) and (pointer: fine) {
  .event-card:hover { border-color: var(--control-line); box-shadow: var(--shadow); transform: translateY(-3px); }
  .button:active { transform: translateY(1px); }
}

@media (min-width: 1500px) {
  .intro { padding-top: 68px; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 12px 24px; }
  .header-note { display: none; }
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .featured-content { padding: 28px; }
  .featured .countdown { gap: 24px; }
  .featured .time-unit + .time-unit::before { left: -15px; }
  .featured .time-unit strong { font-size: 37px; }
  .events-grid { gap: 18px; }
  .card-body { padding-inline: 16px; }
  .card-art { min-height: 152px; }
  .card-art-symbol { font-size: 57px; }
  .card-countdown { padding-inline: 4px; }
  .card-countdown .time-unit strong { font-size: 25px; }
}

@media (max-width: 900px) {
  .preferences { flex-basis: 100%; justify-content: flex-end; }
  .preferences label { flex: 0 1 160px; }
  .intro { padding-top: 42px; }
  .intro-aside { width: 140px; }
  .intro-aside-label { font-size: 10px; letter-spacing: 1px; }
  .featured-content { padding: 25px; }
  .featured h2 { font-size: 31px; }
  .featured-bottom { gap: 12px; }
  .featured .countdown { gap: 21px; }
  .featured .time-unit strong { font-size: 33px; }
  .featured .time-unit + .time-unit::before { left: -13px; font-size: 24px; }
  .featured .time-unit span { font-size: 10px; letter-spacing: .6px; }
  .art-letter { font-size: 190px; }
  .art-caption { letter-spacing: 2px; }
  .filters { grid-template-columns: minmax(160px, 1fr) 176px 176px; gap: 9px; }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .card-art { min-height: 176px; }
  .card-body { padding-inline: 20px; }
  .card-art-symbol { font-size: 66px; }
  .card-countdown .time-unit strong { font-size: 29px; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 74px; gap: 12px 20px; }
  .brand { font-size: 28px; }
  .header-nav { gap: 17px; }
  .nav-link { font-size: 12px; }
  .intro { padding: 36px 0 30px; }
  h1 { font-size: clamp(39px, 7.5vw, 51px); }
  .intro-aside { display: none; }
  .intro-description { max-width: 500px; font-size: 14px; }
  .featured { grid-template-columns: 1fr; }
  .featured-card { border-radius: 19px; }
  .featured-content { padding: 28px; }
  .featured h2 { font-size: 38px; }
  .featured-description { max-width: 480px; }
  .featured .countdown { gap: 32px; }
  .featured .time-unit strong { font-size: 43px; }
  .featured .time-unit + .time-unit::before { left: -20px; font-size: 32px; }
  .featured .time-unit span { font-size: 10px; letter-spacing: 1px; }
  .featured-art { min-height: 222px; }
  .featured-art::before { width: 210px; height: 210px; top: 10px; right: 25px; }
  .art-letter { margin: -13px 0 0; font-size: 192px; }
  .art-orbit { inset: -55px 45px; }
  .art-caption { bottom: 17px; font-size: 10px; }
  .art-grid { bottom: -130px; }
  .palm { bottom: 15px; left: 54px; height: 114px; }
  .featured:not(.is-filtered) {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .featured:not(.is-filtered)::-webkit-scrollbar { display: none; }
  .featured:not(.is-filtered):has(> .featured-card:only-child) { grid-auto-columns: 100%; }
  .featured:not(.is-filtered) .featured-card { scroll-snap-align: start; }
  .featured:not(.is-filtered) .featured-content { min-height: 0; padding: 18px; }
  .featured:not(.is-filtered) h2 { font-size: 22px; }
  .featured:not(.is-filtered) .featured-description { display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .featured:not(.is-filtered) .countdown { justify-content: flex-start; gap: 18px; margin-top: 14px; }
  .featured:not(.is-filtered) .time-unit strong { font-size: 28px; }
  .featured:not(.is-filtered) .time-unit + .time-unit::before { left: -11px; font-size: 20px; }
  .featured:not(.is-filtered) .featured-bottom { margin-top: 16px; padding-top: 14px; }
  .featured:not(.is-filtered) .featured-art { min-height: 84px; }
  .featured:not(.is-filtered) .featured-art::before { width: 96px; height: 96px; top: -4px; right: 16px; }
  .featured:not(.is-filtered) .art-orbit { inset: -30px 30px; }
  .featured:not(.is-filtered) .art-grid { bottom: -90px; }
  .featured:not(.is-filtered) .art-letter { margin-top: -4px; font-size: 64px; }
  .featured:not(.is-filtered) .art-caption { display: none; }
  .featured:not(.is-filtered) .palm { bottom: 6px; left: 24px; height: 56px; transform: rotate(12deg) scale(.55); }
  .explore { padding: 36px 0 40px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 26px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .search-field { grid-column: 1 / -1; }
  .search-field input, .select-field select, .preferences select { font-size: 16px; }
  .select-field { padding-left: 10px; gap: 4px; }
  .select-field > span { font-size: 11px; }
  .category-list { gap: 7px; margin-top: 16px; }
  .category-chip { min-height: 40px; padding: 9px 10px; }
  .events-grid { gap: 16px; }
  .card-body { padding-inline: 15px; }
  .card-art { min-height: 152px; }
  .card-art-symbol { font-size: 56px; }
  .card-art-label { font-size: 10px; letter-spacing: 1.3px; }
  .card-countdown .time-unit strong { font-size: 25px; }
  .card-countdown { gap: 4px; }
  .card-countdown .time-unit span { font-size: 10px; letter-spacing: 0; }
  .card-footer { flex-wrap: wrap; }
  .card-link { min-height: 36px; }
  .favorite-button { width: 38px; height: 38px; }
  .footer-inner { flex-wrap: wrap; gap: 16px; }
  .footer-inner p { order: 3; width: 100%; text-align: left; }
  .dialog-content { padding: 30px 25px; }
  .event-dialog h2 { font-size: 31px; }
}

@media (max-width: 520px) {
  .header-inner { justify-content: space-between; gap: 12px 16px; padding-block: 15px 10px; }
  .header-nav { justify-content: space-between; width: 100%; margin-left: 0; gap: 4px 16px; }
  .preferences { width: 100%; }
  .preferences label { flex: 1 1 100px; }
  .nav-link { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 40px; text-align: center; }
  .intro { padding-top: 31px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
  h1 { margin-top: 15px; font-size: clamp(35px, 9.5vw, 47px); }
  .intro-description { font-size: 13px; line-height: 1.8; }
  .featured-content { padding: 22px 20px; }
  .featured-kicker { font-size: 10px; letter-spacing: 1.2px; }
  .featured h2 { font-size: 27px; }
  .featured-tags { margin-top: 14px; }
  .featured .countdown { justify-content: space-between; gap: 16px; }
  .featured .time-unit strong { font-size: 31px; }
  .featured .time-unit + .time-unit::before { content: none; }
  .featured-bottom { margin-top: 18px; padding-top: 16px; }
  .event-date { font-size: 11px; }
  .featured-art { min-height: 150px; }
  .art-letter { font-size: 124px; }
  .featured:not(.is-filtered) .featured-content { padding: 16px; }
  .featured:not(.is-filtered) h2 { font-size: 21px; }
  .featured:not(.is-filtered) .countdown { justify-content: flex-start; gap: 14px; }
  .featured:not(.is-filtered) .time-unit strong { font-size: 24px; }
  .featured:not(.is-filtered) .featured-art { min-height: 76px; }
  .featured:not(.is-filtered) .art-letter { font-size: 58px; }
  .section-heading { align-items: center; gap: 12px; }
  .section-heading h2 { font-size: 25px; }
  #catalog-count { font-size: 11px; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .select-field { flex-wrap: wrap; align-content: center; gap: 0; padding: 7px 9px 4px; }
  .select-field > span { width: 100%; }
  .select-field select { min-height: 31px; padding: 2px 0; }
  .results-toolbar { align-items: baseline; gap: 10px; margin-top: 20px; }
  #results-summary, .text-button { font-size: 11px; }
  .events-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pagination { gap: 8px; }
  .pagination .button { min-width: 0; flex: 1; }
  .card-art { min-height: 181px; }
  .card-art-symbol { font-size: 70px; }
  .card-art-label { left: 20px; bottom: 15px; font-size: 10px; }
  .card-body { padding: 21px 22px 0; }
  .card-body h3 { font-size: 21px; }
  .card-description { min-height: 0; font-size: 13px; }
  .category-label, .scope-label { font-size: 11px; }
  .card-date { font-size: 12px; }
  .card-countdown { padding: 17px 8px; }
  .card-countdown .time-unit strong { font-size: 31px; }
  .card-countdown .time-unit span { font-size: 10px; letter-spacing: .5px; }
  .card-footer { padding-block: 10px; }
  .status-badge, .card-link { font-size: 11px; }
  .card-link { min-height: 40px; }
  .favorite-button { top: 13px; right: 13px; width: 40px; height: 40px; }
  .detail-list > div { grid-template-columns: 95px minmax(0, 1fr); gap: 12px; }
  .screen-release-table th, .screen-release-table td { padding-inline: 4px; }
  .screen-release-table th:first-child { width: 30%; }
  .screen-unassigned { padding: 10px; }
  .technology-timeline-list { padding-left: 22px; }
  .technology-timeline-dot { left: -21px; }
  .technology-timeline-heading { align-items: flex-start; flex-direction: column; }
  .dialog-actions { flex-direction: column; }
  .dialog-actions .button { width: 100%; }
  .dialog-close { width: 40px; height: 40px; top: 12px; right: 12px; }
  .toast { right: 16px; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
}

@media (max-width: 380px) {
  .featured .countdown { gap: 8px; }
  .featured .time-unit strong { font-size: 30px; }
  .featured .time-unit span { font-size: 9px; letter-spacing: 0; }
  .dialog-content { padding: 28px 18px; }
  .detail-list > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .event-card:hover, .button:active { transform: none; }
}

@media (forced-colors: active) {
  .button, .category-chip, .category-status, .favorite-button, .search-clear, .dialog-close, .preferences select, .select-field, .global-option, .local-time, .technology-timeline-item { border: 1px solid ButtonText; }
  .category-chip.is-active, .category-chip[aria-pressed="true"], .favorite-button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
  .card-art, .featured-art { border-bottom: 1px solid CanvasText; }
  .time-unit strong, .featured .time-unit strong { color: CanvasText; }
  :focus-visible, .featured :focus-visible { outline-color: Highlight; }
  .search-field:focus-within { outline-color: Highlight; }
  .search-field input:focus-visible { outline: 2px solid Highlight; outline-offset: -3px; }
}

/* Permanent sidebar; native controls remain the fallback if enhancement cannot load. */
[data-sidebar-enhanced] .filters { grid-template-columns: minmax(0, 1fr); }
[data-sidebar-enhanced] .category-chip { min-height: 44px; }
.sidebar-preferences { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; max-width: 100%; }
.sidebar-pref { min-width: 0; }
.sidebar-pref > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.sidebar-segment { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--control-line); border-radius: 24px; background: var(--surface-muted); }
.sidebar-segment button { display: inline-grid; place-items: center; min-width: 42px; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 20px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.sidebar-segment button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.sidebar-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#sidebar-layout, .sidebar-results { min-width: 0; }
#sidebar-controls { align-self: start; min-width: 0; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-muted); }
#sidebar-title { font-size: 14px; font-weight: 700; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.sidebar-clear { min-height: 44px; max-width: 100%; padding: 7px 9px; border: 1px solid var(--control-line); border-radius: 8px; background: transparent; color: var(--accent); font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.sidebar-clear:hover { background: var(--surface); }
.sidebar-groups { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; }
.sidebar-choice { position: relative; min-width: 0; max-width: 100%; width: 100%; }
.sidebar-trigger, #sidebar-global-toggle { min-height: 44px; max-width: 100%; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sidebar-trigger { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; width: 100%; padding: 11px 12px; border-radius: 10px; text-align: left; }
.sidebar-trigger > span:first-child { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.sidebar-trigger strong { flex: 1; font-weight: 650; }
.sidebar-trigger[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-halo); }
.sidebar-popover { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; display: grid; gap: 5px; width: min(340px, calc(100vw - 40px)); max-height: 360px; padding: 10px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--control-line); border-radius: 16px; background: var(--surface); box-shadow: var(--dialog-shadow); }
.sidebar-option { display: flex; align-items: center; min-height: 44px; max-width: 100%; padding: 10px 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font-size: 13px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.sidebar-option[aria-pressed="true"], #sidebar-global-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sidebar-option[aria-pressed="true"]::after { content: '✓'; padding-left: 9px; margin-left: auto; font-weight: 800; }
.sidebar-option:focus-visible { outline-offset: -3px; }
.sidebar-trigger:hover, .sidebar-option:not([aria-pressed="true"]):hover, .sidebar-segment button:not([aria-pressed="true"]):hover { background: var(--hover-surface); color: var(--ink); }
.sidebar-global { margin-top: 14px; }
.sidebar-global p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
#sidebar-global-toggle { padding: 9px 14px; border-radius: 24px; }
#sidebar-global-toggle::before { content: '＋'; padding-right: 7px; }
#sidebar-global-toggle[aria-pressed="true"]::before { content: '✓'; }
@media (min-width: 1000px) {
  [data-sidebar-enhanced] #sidebar-layout { display: grid; grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); align-items: start; gap: 24px; }
  [data-sidebar-enhanced] #sidebar-layout .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar-preferences { margin-left: auto; }
}
@media (max-width: 520px) {
  .sidebar-preferences { width: 100%; justify-content: space-between; gap: 12px; }
  #sidebar-controls { padding: 14px; }
  .sidebar-popover { width: min(320px, calc(100vw - 40px)); }
}
@media (forced-colors: active) {
  .sidebar-option, .sidebar-trigger, .sidebar-segment button, .sidebar-clear, #sidebar-global-toggle { border: 1px solid ButtonText; }
  .sidebar-option[aria-pressed="true"], .sidebar-segment button[aria-pressed="true"], #sidebar-global-toggle[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
}