:root {
  color-scheme: dark;
  --ink: #080711;
  --text: #f1ecfb;
  --muted: #b4aac7;
  --accent: #cdb2f3;
  --line: rgba(207, 183, 242, .16);
  --surface: linear-gradient(135deg, rgba(34, 26, 51, .83), rgba(15, 12, 28, .79));
  --surface-hover: linear-gradient(135deg, rgba(47, 34, 69, .92), rgba(24, 17, 40, .9));
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--ink); scrollbar-color: #5c466f var(--ink); }
body { margin: 0; min-height: 100vh; color: var(--text); font-size: 1rem; line-height: 1.5; isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(7, 5, 16, .89), rgba(9, 6, 20, .73) 52%, rgba(9, 6, 20, .30)),
              var(--ink) url("dark-lotus.webp") center center / cover no-repeat;
}
:where(h1,h2,h3,h4,p,ul,dl,dd,fieldset) { margin: 0; }
:where(h1,h2,h3,h4) { line-height: 1.35; font-size: inherit; font-weight: 600; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid #cfb0f1; outline-offset: 4px; }
::selection { background: #634989; color: white; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 3; padding: .65rem 1rem; border-radius: .5rem; background: #21192f; transform: translateY(-180%); }
.skip-link:focus-visible { transform: none; }
.container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.masthead { padding-top: clamp(2.5rem, 5vw, 5rem); }
.brand { display: grid; place-items: center; width: fit-content; margin-inline: auto; border-radius: .75rem; }
.brand img { width: 128px; height: 128px; filter: drop-shadow(0 0 25px rgba(187, 144, 235, .23)); }
.toolbar-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; margin-top: 3rem; padding: .45rem 0; border-block: 1px solid var(--line); }
.toolbar { display: flex; gap: .2rem 1.2rem; align-items: center; flex-wrap: wrap; grid-area: 1 / 1; z-index: 1; justify-self: start; }

.toolbar a, .toolbar summary, .filter-disclosure summary { color: var(--muted); font-size: .875rem; font-weight: 500; text-decoration: none; }
.toolbar a { display: inline-flex; min-height: 36px; padding: .45rem .1rem; align-items: center; }
.toolbar a:hover, .toolbar a[aria-current], .filter-disclosure summary:hover { color: var(--text); }
.toolbar a[aria-current=page] { box-shadow: inset 0 -2px var(--accent); }

main { padding-bottom: 4rem; }
.list-section { padding-block: .8rem; }
.filter-disclosure { grid-area: 1 / 2; color: var(--muted); }
.filter-disclosure[open] { grid-column: 1 / -1; }
.filter-disclosure[open] .board-filters { margin-top: .35rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; }
.filter-disclosure summary { width: max-content; margin-inline-start: auto; padding: .45rem .1rem; min-height: 36px; }
.board-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; padding: .75rem 0 1rem; }
.board-filters > div { min-width: 0; flex: 0 1 11rem; }
.board-filters .tag-filter { flex-basis: 14rem; }
.clear-link { padding-block: .6rem; font-size: .875rem; }
.event-day { margin-top: 1.55rem; }
.day-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; color: #e7ddf4; font-weight: 500; font-size: .94rem; letter-spacing: .02em; }
.day-heading::before { content: ""; width: 5px; height: 5px; background: #ba98e0; transform: rotate(45deg); box-shadow: 0 0 10px #cdadf34d; }
.event-list, .event-meta, .tags { list-style: none; padding: 0; }
.event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.event-row, .panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .13), inset 0 1px rgba(236, 218, 255, .04);
  backdrop-filter: blur(15px);
}
.event-row { display: flex; position: relative; align-items: center; gap: 17px; min-height: 126px; padding: 22px; transition: border-color .16s, transform .16s; }
.event-row:hover, .event-row:focus-within { border-color: rgba(203, 166, 245, .48); background: var(--surface-hover); transform: translateY(-2px); }
.event-thumb, .event-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(217, 190, 249, .10); }
.event-thumb { object-fit: cover; }
.event-icon { display: grid; place-items: center; background: rgba(212, 183, 247, .055); color: #b990f1; }
.event-icon:not(:empty) > svg { width: 26px; height: 26px; }
.row-content { min-width: 0; overflow-wrap: anywhere; }
.event-row :is(h2,h3,h4,.event-name) { font-size: 1rem; line-height: 1.35; font-weight: 550; }
.event-row a { color: var(--text); text-decoration: none; }
.event-row :is(h2,h3,h4,.event-name) a::after { content: ""; position: absolute; inset: 0; border-radius: 17px; }
.event-row a:focus-visible { outline-offset: 3px; }
.event-meta, .tags { display: flex; flex-wrap: wrap; align-items: baseline; color: var(--muted); font-size: .82rem; gap: .12rem 0; line-height: 1.5; }
.event-meta { margin-top: .3rem; }
.event-meta li + li::before { content: "·"; margin-inline: .4em; }
.tags { gap: .3rem .6rem; margin-top: .4rem; color: #cbb5e0; }
.status-tag { display: inline-block; color: #f5b9c6; font-size: .8rem; margin-bottom: .25rem; }
.empty-board { padding-block: 1.4rem; color: var(--muted); font-size: .93rem; }
.empty-board a { margin-left: .6rem; }
.page-block, .event-detail { padding-block: 1.5rem 3rem; }
.panel { padding: clamp(1rem, 2.6vw, 1.65rem); }
.panel h2 { margin-bottom: .3rem; }
.stack > * + * { margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.actions form { margin: 0; }
.panel > .actions { margin-top: .8rem; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 2.56rem; max-width: 100%; padding: .5rem .9rem;
  border: 1px solid #655278; border-radius: .65rem;
  background: #392a4e; color: #f4eaff; text-decoration: none; font: inherit; font-size: .9rem; font-weight: 500; line-height: 1.3; cursor: pointer;
}
button:hover, .button:hover { background: #48335f; color: white; border-color: #8f71a8; }
.secondary { background: #1c1629; }
input, textarea, select { font: inherit; max-width: 100%; accent-color: var(--accent); }
input:not([type=checkbox],[type=radio],[type=file],[type=hidden]), textarea, select {
  display: block; width: 100%; min-width: 0; min-height: 2.65rem; padding: .5rem .7rem;
  color: var(--text); background: #151120; border: 1px solid #5c4d6c; border-radius: .6rem;
}
input::placeholder, textarea::placeholder { color: #a399b1; opacity: 1; }
textarea { resize: vertical; }
label, legend { color: #e7ddf4; font-weight: 500; font-size: .9rem; }
label { display: block; margin-bottom: .3rem; }
small { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.auth-form { max-width: 30rem; }
.edit-form { max-width: 51rem; }
.alert, .errorlist, .notice { padding: .65rem .85rem; border-inline-start: 2px solid #b793ce; border-radius: .25rem; background: #211a2d; font-size: .9rem; overflow-wrap: anywhere; }
.alert, .errorlist { color: #ffd8e0; border-inline-start-color: #c88fa1; }
.errorlist { list-style: none; margin-bottom: .55rem; }
.notices { margin-top: 1rem; }
.event-detail { max-width: 49rem; }
.detail-header { padding-block: 1.5rem 1.2rem; border-bottom: 1px solid var(--line); }
.detail-header h1 { font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); }
.eyebrow, .back-link { font-size: .87rem; color: var(--muted); }
.detail-header .eyebrow { margin-bottom: .3rem; }
.detail-image { margin-top: 1rem; max-height: 25rem; width: auto; object-fit: contain; border-radius: 12px; }
.description { margin-top: 1.1rem; overflow-wrap: anywhere; }
.description p + p { margin-top: .7rem; }
.facts-list { margin-block: .65rem 1.25rem; }
.facts-list > div { display: grid; grid-template-columns: 4.2rem 1fr; gap: .85rem; border-bottom: 1px solid var(--line); padding: .75rem 0; overflow-wrap: anywhere; }
.facts-list dt, .subfact { color: var(--muted); }
.subfact { display: block; font-size: .89rem; }
@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .event-row { gap: 12px; padding: 18px; }
}
@media (max-width: 800px) {
  .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 36px); }
  .brand img { width: 96px; height: 96px; }
  .toolbar-row { margin-top: 1.75rem; }
  .toolbar { gap: .25rem 1rem; }
  .event-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .event-row { min-height: 110px; }
  .board-filters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
  .board-filters .tag-filter { grid-column: 1 / -1; }
  .actions { gap: .6rem; }
  .facts-list > div { grid-template-columns: 3.5rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .event-row { transition: none; }
  .event-row:hover, .event-row:focus-within { transform: none; }
}
