:root {
  color-scheme: dark;
  --bg: #171717;
  --panel: #212121;
  --line: #404040;
  --text: #f4f1e8;
  --muted: #bfbfbf;
  --accent: #00e86d;
  --selected: #2a2a2a;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.04em; }
.frame { width: min(1112px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; padding: 10px; background: var(--bg); z-index: 2; }
.skip:focus { top: 5px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 76px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: clamp(138px, 28vw, 184px); height: auto; }
.footer .brand img { width: 128px; }
.source-link { color: var(--accent); }
.panel-menu { position: relative; z-index: 2; }
.panel-menu summary, .panel-add summary { display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.panel-menu summary::-webkit-details-marker, .panel-add summary::-webkit-details-marker { display: none; }
.menu-icon { display: block; width: 18px; height: 14px; border-block: 2px solid currentColor; }
.menu-icon::before { content: ""; display: block; border-top: 2px solid currentColor; margin-top: 4px; }
.panel-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 172px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.panel-menu nav :is(a, button) { display: flex; align-items: center; min-height: 44px; width: 100%; padding: 8px 12px; background: transparent; border: 0; border-radius: 5px; color: var(--text); cursor: pointer; text-align: left; }
.panel-menu nav :is(a, button):hover { background: var(--selected); }
.panel-menu nav a[aria-current] { color: var(--accent); font-weight: 700; }
.hero { margin-block: 32px 36px; position: relative; min-height: 360px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: #202020; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; margin: 0; overflow: hidden; background: #1b1914; mask-image: linear-gradient(90deg, transparent, #000 22%); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.hero-copy { position: relative; z-index: 1; padding: 58px clamp(22px, 5.6vw, 60px) 48px; }
.hero-intro { color: #d0cdc3; margin: 0; max-width: 32ch; font-size: clamp(1rem, 2vw, 1.1rem); }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.live-dot { display: inline-block; width: .62em; height: .62em; background: currentColor; margin-right: .35em; }
.hero h1 { margin: 0 0 19px; font-size: clamp(3rem, 7.7vw, 6.2rem); line-height: .88; font-weight: 950; letter-spacing: -.077em; }
.hero em { display: block; color: var(--accent); font-style: normal; }
.section-heading { flex-wrap: wrap; margin-bottom: 14px; }
.section-heading :is(h1, h2, p) { margin: 0; }
.section-heading p, .muted, .empty p, .event-row p, dt { color: var(--muted); }
.section-heading p::first-letter, .day::first-letter { text-transform: uppercase; }
h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); }
.ranges, .filters, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ranges { padding: 5px; width: fit-content; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.ranges a, .filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 13px; border-radius: 8px; font-size: .9rem; font-weight: 700; }
.ranges a[aria-current], .button { color: var(--bg); background: var(--accent); }
.filters { margin: 16px 0; }
.filters a { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; }
.filters a[aria-current] { color: var(--accent); border-color: #5c5c5c; background: var(--selected); }
.agenda-toolbar { position: relative; width: fit-content; max-width: 100%; display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.category-filter summary { height: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 44px; min-height: 56px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--accent); cursor: pointer; font-size: .9rem; font-weight: 700; }
.category-filter summary::-webkit-details-marker { display: none; }
.category-filter[open] summary { background: var(--selected); border-color: var(--accent); }
.filter-icon { width: 16px; height: 16px; background: currentColor; clip-path: polygon(0 0, 100% 0, 63% 46%, 63% 85%, 37% 100%, 37% 46%); }
.category-filter .filters { position: absolute; z-index: 1; inset-inline: 0; top: 100%; margin: 6px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.empty { text-align: center; padding: clamp(24px, 5vw, 56px) 16px; border: 1px dashed var(--line); border-radius: 16px; }
.empty h3 { margin: 10px 0; font-size: 1.4rem; }
.empty p:last-child { margin-bottom: 0; }
.empty-icon { display: inline-block; width: 14px; height: 14px; background: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; min-height: 44px; font-weight: 800; cursor: pointer; }
.button:hover { filter: brightness(1.1); }
.secondary { background: var(--panel); color: var(--text); border-color: var(--line); }
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row { border-bottom: 1px solid var(--line); }
.agenda > .event-list:last-child > .event-row:last-child { border-bottom: 0; }
.event-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 18px 0; }
.event-card:hover { text-decoration: none; }
.event-card:hover h3, .event-card:focus-visible h3 { text-decoration: underline; text-underline-offset: .2em; }
.event-row h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); margin: 7px 0 5px; overflow-wrap: anywhere; }
.event-row p { margin-bottom: 3px; }
.event-row .event-source { margin-top: 6px; font-size: .9rem; overflow-wrap: anywhere; color: var(--accent); }
.event-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.event-meta-separator, .event-time.unconfirmed { color: var(--muted); }
.event-time { font-weight: 800; font-size: .9rem; }
.event-time.unconfirmed { font-weight: 400; }
.tag { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.row-arrow { margin-top: 23px; color: var(--muted); }
.source-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: .92rem; }
.day { margin: 24px 0 0; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--panel); color: var(--text); font-size: clamp(1.05rem, 3.4vw, 1.4rem); line-height: 1.3; }
.day + .event-list { border-top: 0; }
.footer { margin-top: 64px; border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 3vw, 28px); }
.narrow { max-width: 440px; margin: 40px auto; }
.form, .fields { display: grid; gap: 14px; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form > .button { justify-self: start; }
label { display: grid; gap: 4px; font-weight: 650; min-width: 0; }
label small { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; min-height: 44px; border-radius: 8px; border: 1px solid #696969; background: var(--bg); color: var(--text); padding: 9px 11px; }
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; padding-block: 8px; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 auto; }
.review { margin-bottom: 10px; padding: 0; }
.review summary { cursor: pointer; padding: 16px; font-weight: 800; overflow-wrap: anywhere; }
.review summary > .review-heading { display: inline-grid; vertical-align: top; max-width: calc(100% - 24px); }
.review-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; }
.pending-mark { display: inline-grid; place-items: center; flex: 0 0 1.25rem; height: 1.25rem; border-radius: 50%; background: #f3c969; color: var(--bg); line-height: 1; font-size: .8rem; }
.review summary small { color: var(--muted); font-weight: 400; }
.review-content { padding: 0 16px 16px; }
.review-content > p { margin: 0; }
blockquote { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 18px; padding: 8px 12px; border-left: 3px solid var(--accent); color: var(--muted); max-height: 13rem; overflow: auto; }
.notice, .review-content > .notice { margin: 8px 0 16px; color: var(--text); border: 1px solid #5c5c5c; background: var(--selected); padding: 10px 14px; border-radius: 8px; overflow-wrap: anywhere; }
.text-button { border: 0; padding: 10px 0; background: none; color: var(--accent); text-decoration: underline; min-height: 44px; cursor: pointer; }
.import-form, .more-form { margin-top: 12px; }
.post-links { margin-bottom: 16px; }
.post-links summary { padding: 11px 0; }
.panel-controls { position: relative; margin-block: 30px 22px; }
.panel-heading { min-height: 44px; padding-right: 60px; }
.panel-heading h1 { margin-bottom: 4px; }
.panel-heading p { margin-bottom: 0; }
.panel-add summary { position: absolute; top: 0; right: 0; color: var(--bg); background: var(--accent); border-color: var(--accent); }
.plus-icon { display: grid; place-items: center; }
.plus-icon::before, .plus-icon::after { content: ""; grid-area: 1 / 1; width: 16px; height: 2px; background: currentColor; }
.plus-icon::after { transform: rotate(90deg); }
.panel-add[open] .plus-icon::after { display: none; }
.panel-add .panel { max-width: 480px; margin-top: 16px; }
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.source-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.source-row h3 { margin: 0 0 6px; font-size: 1.15rem; overflow-wrap: anywhere; }
.source-row p { margin: 0; }
.back { display: inline-block; padding-block: 14px; margin-block: 16px 6px; color: var(--muted); }
.detail { max-width: 760px; }
.detail h1 { margin-top: 8px; font-size: clamp(2rem, 7vw, 4rem); overflow-wrap: anywhere; }
.detail dl > div + div { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.detail dl + .description { padding-top: 9px; border-top: 1px solid var(--line); }
.detail dt { margin-bottom: 2px; color: var(--accent); font-size: .88rem; font-weight: 700; }
.detail dd { margin: 0; font-weight: 700; }
.event-actions { display: grid; margin-top: 20px; border-top: 1px solid var(--line); }
.event-actions .source-link { justify-content: space-between; min-height: 48px; padding: 8px 0; }
.event-actions .source-link + .source-link { border-top: 1px solid var(--line); }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
}
@media (max-width: 600px) {
  .hero { min-height: 0; margin-block: 20px 27px; }
  .hero-photo { position: relative; width: 100%; height: auto; aspect-ratio: 1.65; mask-image: linear-gradient(#000 75%, transparent); }
  .hero-photo img { display: block; object-position: 50% 61%; }
  .hero-copy { margin-top: -31px; padding: 0 20px 23px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); margin-bottom: 13px; }
  .hero em { display: inline; }
}
@media (max-width: 360px) {
  .fields { grid-template-columns: 1fr; }
  .ranges a { padding-inline: 8px; }
  .row-arrow { display: none; }
  .event-card { grid-template-columns: minmax(0, 1fr); }
}
