:root {
  --bg: #fff;
  --surface: #f7f7f8;
  --surface-strong: #efeff1;
  --text: #111214;
  --muted: #5c6169;
  --border: #d9dce1;
  --cta: #0b57d0;
  --cta-text: #fff;
  --danger: #a12222;
  --focus: #0b57d0;
  --shadow: 0 12px 35px rgb(20 25 35 / 10%);
  --radius: 14px;
  --content: 75rem;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0b0d10;
  --surface: #14171c;
  --surface-strong: #20242b;
  --text: #f5f7fa;
  --muted: #b7bdc6;
  --border: #343a44;
  --cta: #8ab4f8;
  --cta-text: #07111f;
  --danger: #ff9b9b;
  --focus: #8ab4f8;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #0b0d10;
    --surface: #14171c;
    --surface-strong: #20242b;
    --text: #f5f7fa;
    --muted: #b7bdc6;
    --border: #343a44;
    --cta: #8ab4f8;
    --cta-text: #07111f;
    --danger: #ff9b9b;
    --focus: #8ab4f8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1 { max-width: 24ch; margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 2.25rem); line-height: 1.12; }
h2 { margin: 2rem 0 .75rem; font-size: clamp(1.35rem, 3vw, 1.65rem); }
h3 { font-size: 1.08rem; }
p { max-width: 72ch; }
.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: fixed; top: .5rem; left: .5rem; z-index: 1000; padding: .75rem 1rem;
  background: var(--text); color: var(--bg); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.floating-nav {
  position: sticky; top: .75rem; z-index: 50; display: flex; align-items: center; gap: 1.25rem;
  width: min(calc(100% - 1.5rem), var(--content)); margin: .75rem auto 0; padding: .7rem 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.brand { font-weight: 750; text-decoration: none; white-space: nowrap; }
.floating-nav nav { display: flex; gap: 1rem; margin-left: auto; }
.floating-nav nav a { text-decoration: underline; }
.theme-control select {
  min-height: 2.5rem; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; padding: 0 .7rem;
}
.page-shell { width: min(calc(100% - 2rem), var(--content)); margin: 3rem auto 5rem; }
.narrow { max-width: 48rem; }
.hero { display: grid; gap: 1rem; padding: clamp(1.5rem, 5vw, 3rem) 0; }
.eyebrow { color: var(--muted); font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 1.2rem;
}
.card h2, .card h3 { margin-top: 0; }
.meta { color: var(--muted); font-size: .94rem; }
.badge {
  display: inline-flex; align-items: center; min-height: 1.8rem; padding: .1rem .65rem;
  border: 1px solid var(--border); border-radius: 999px; font-size: .84rem;
}
.button {
  display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center;
  padding: .65rem 1rem; border: 2px solid var(--cta); border-radius: .65rem;
  background: var(--cta); color: var(--cta-text); font-weight: 700; text-decoration: none; cursor: pointer;
}
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.filter-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem;
  position: sticky; top: 5.5rem; z-index: 20; padding: 1rem; margin: 1rem 0 2rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
}
fieldset {
  min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--border);
  border-radius: .55rem;
}
legend { padding: 0 .35rem; font-weight: 700; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.check input { width: 1.15rem; min-height: 1.15rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
input, select, textarea {
  width: 100%; min-height: 2.75rem; border: 1px solid var(--border); border-radius: .55rem;
  background: var(--bg); padding: .65rem .75rem;
}
textarea { min-height: 8rem; resize: vertical; }
.helptext { color: var(--muted); font-size: .9rem; }
.errorlist { color: var(--danger); }
.messages { width: min(calc(100% - 2rem), var(--content)); margin: 1rem auto; }
.notice { border-left: 4px solid var(--cta); background: var(--surface); padding: 1rem; }
.waterfall { display: grid; gap: 1rem; counter-reset: agenda; }
.waterfall .agenda-item { counter-increment: agenda; }
.waterfall .agenda-item::before {
  content: counter(agenda); display: grid; place-items: center; width: 2rem; height: 2rem;
  border: 1px solid var(--border); border-radius: 50%; font-weight: 700; margin-bottom: .75rem;
}
.progress { height: .5rem; overflow: hidden; background: var(--surface-strong); border-radius: 999px; }
.progress > span { display: block; height: 100%; background: var(--cta); }
.hero-image {
  position: relative; min-height: min(55vh, 32rem); overflow: hidden; border-radius: var(--radius);
  background: var(--surface-strong); background-position: center; background-size: cover;
}
.hero-overlay {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; max-width: 42rem; padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 40%); border-radius: var(--radius);
  background: rgb(12 15 20 / 74%); color: #fff; backdrop-filter: blur(14px);
}
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
  align-items: start; gap: 2rem; margin: 2rem 0;
}
.facts { position: sticky; top: 6rem; }
.facts dl { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: .5rem 1rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.notification-card { margin-top: 3rem; }
.status-danger { color: var(--danger); border-color: currentColor; }
.agenda-item form { display: grid; gap: 1rem; }
.site-footer { width: min(calc(100% - 2rem), var(--content)); margin: 3rem auto; color: var(--muted); }

@media (max-width: 760px) {
  .floating-nav { border-radius: 1rem; flex-wrap: wrap; top: .35rem; }
  .floating-nav nav { order: 3; width: 100%; overflow-x: auto; margin: 0; padding-top: .25rem; }
  .theme-control { margin-left: auto; }
  .page-shell { margin-top: 2rem; }
  .filter-bar { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .facts { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .floating-nav, .theme-control, .site-footer, .button { display: none !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; border-color: #bbb; }
}
