/* ============================================================
   CUE — Design system
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #F8F7F3;
  --surface:     #FFFFFF;
  --surface-alt: #F2F0EB;

  /* Borders */
  --border:        #E3E1DA;
  --border-strong: #C5C2B9;

  /* Text */
  --text:   #1A1916;
  --text-2: #5C5952;
  --text-3: #9B9892;

  /* Accent (forest green) */
  --accent:        #1A6E50;
  --accent-hover:  #155C42;
  --accent-bg:     #E9F5EF;
  --accent-border: #7DC5A5;

  /* Status colours */
  --upcoming-bg:     #E9F5EF;
  --upcoming-text:   #1A6E50;
  --upcoming-border: #7DC5A5;

  --planning-bg:     #FEF5E4;
  --planning-text:   #7A4500;
  --planning-border: #F5C240;

  --past-bg:     #EEEDFE;
  --past-text:   #3C3489;
  --past-border: #AFA9EC;

  --cancelled-bg:     #F2F0EB;
  --cancelled-text:   #5C5952;
  --cancelled-border: #C5C2B9;

  /* Sidebar */
  --sidebar-bg:          #131211;
  --sidebar-text:        #9B9892;
  --sidebar-text-active: #F8F7F3;
  --sidebar-active-bg:   rgba(255, 255, 255, 0.07);
  --sidebar-hover-bg:    rgba(255, 255, 255, 0.04);
  --sidebar-w:           220px;

  /* Misc */
  --radius:    8px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239B9892' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
::placeholder { color: var(--text-3); }
.muted { color: var(--text-3); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { background: var(--surface-alt); text-decoration: none; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-alt); }

.btn--sm { padding: 4px 10px; font-size: 12px; }
.btn--lg { padding: 11px 22px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }
.btn--icon-only { padding: 6px; }
.btn--danger { background: #C7261A; border-color: #C7261A; color: white; }
.btn--danger:hover { background: #a81f15; }
.btn--danger-ghost { color: #C7261A; }
.btn--danger-ghost:hover { border-color: #C7261A; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-3);
  transition: color .12s, background .12s;
  flex-shrink: 0;
}
.btn-icon svg { width: 14px; height: 14px; }
.btn-icon:hover { color: var(--text); background: var(--surface-alt); }
.btn-icon--delete:hover { color: #C7261A; background: #FDECEA; }

/* ============================================================
   APP SHELL — Sidebar layout
   ============================================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 16px 16px;
  text-decoration: none;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--sidebar-text-active);
  letter-spacing: -.2px;
}

.sidebar-org {
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 6px;
}
.sidebar-org-name {
  font-size: 12px;
  color: var(--sidebar-text);
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item, .nav-item--btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 450;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: background .1s, color .1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav-item svg, .nav-item--btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: .75;
}
.nav-item:hover, .nav-item--btn:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-active);
  text-decoration: none;
}
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
}
.nav-item.active svg { opacity: 1; }

.sidebar-bottom {
  padding: 4px 8px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  padding: 32px 40px 60px;
  max-width: calc(var(--sidebar-w) + 880px);
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash-messages {
  margin-bottom: 20px;
}
.flash {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.flash--success { background: var(--upcoming-bg); border-color: var(--upcoming-border); color: var(--upcoming-text); }
.flash--error, .flash--warning { background: var(--planning-bg); border-color: var(--planning-border); color: var(--planning-text); }

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 1.2;
  color: var(--text);
}
.page-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
}
.back-link {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
.back-link:hover { color: var(--text-2); text-decoration: none; }
.event-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   STAT ROW
   ============================================================ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-badge--upcoming  { background: var(--upcoming-bg);   color: var(--upcoming-text);   border-color: var(--upcoming-border); }
.status-badge--planning  { background: var(--planning-bg);   color: var(--planning-text);   border-color: var(--planning-border); }
.status-badge--past      { background: var(--past-bg);       color: var(--past-text);       border-color: var(--past-border); }
.status-badge--cancelled { background: var(--cancelled-bg);  color: var(--cancelled-text);  border-color: var(--cancelled-border); }

/* ============================================================
   EVENT LIST & ROWS
   ============================================================ */

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background .1s;
}
.event-row:hover { background: var(--surface-alt); text-decoration: none; }
.event-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.event-row-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-row-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  text-decoration: none;
  transition: all .12s;
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.filter-chip.active { background: var(--text); border-color: var(--text); color: white; }
.filter-chip--upcoming.active  { background: var(--upcoming-bg);   border-color: var(--upcoming-border);   color: var(--upcoming-text); }
.filter-chip--planning.active  { background: var(--planning-bg);   border-color: var(--planning-border);   color: var(--planning-text); }
.filter-chip--past.active      { background: var(--past-bg);       border-color: var(--past-border);       color: var(--past-text); }
.filter-chip--cancelled.active { background: var(--cancelled-bg);  border-color: var(--cancelled-border);  color: var(--cancelled-text); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.dash-section { margin-bottom: 32px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
}
.section-link {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
}
.section-link:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   TABS
   ============================================================ */

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 450;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .12s, border-color .12s;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active {
  color: var(--text);
  font-weight: 500;
  border-bottom-color: var(--text);
}
.tab-count {
  font-size: 11px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 1px 6px;
  border-radius: 99px;
}
.tab.active .tab-count {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

/* ============================================================
   CONTENT SECTIONS (inside tabs)
   ============================================================ */

.tab-content { }
.overview-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.list-item-main { flex: 1; min-width: 0; }
.list-item-title { font-weight: 500; font-size: 14px; }
.list-item-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.notes-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.public-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--upcoming-bg);
  border: 1px solid var(--upcoming-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 20px;
}
.public-banner svg { width: 14px; height: 14px; color: var(--upcoming-text); flex-shrink: 0; }

/* ============================================================
   SCHEDULE
   ============================================================ */

.schedule-day { margin-bottom: 24px; }
.schedule-day-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
.schedule-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.schedule-slot {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.slot-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 1px;
}
.slot-body { flex: 1; }
.slot-label { font-weight: 500; font-size: 14px; }
.slot-location { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.slot-notes { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============================================================
   PROGRAMME TABLE
   ============================================================ */

.programme-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.programme-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.programme-table thead tr {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.programme-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
}
.programme-table tbody tr { border-bottom: 1px solid var(--border); background: var(--surface); }
.programme-table tbody tr:last-child { border-bottom: none; }
.programme-table tbody tr:hover { background: var(--surface-alt); }
.programme-table td { padding: 11px 14px; }
.prog-num { color: var(--text-3); font-size: 12px; width: 36px; }
.prog-composer { color: var(--text-2); min-width: 140px; }
.prog-work { font-weight: 500; }
.prog-notes { font-size: 11px; color: var(--text-3); margin-top: 2px; font-weight: 400; }
.prog-duration { color: var(--text-3); text-align: right; white-space: nowrap; }

/* ============================================================
   TASKS
   ============================================================ */

.progress-bar-wrap {
  height: 4px;
  background: var(--surface-alt);
  border-radius: 99px;
  margin-bottom: 20px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .3s ease;
}

.task-list {
  display: flex;
  flex-direction: column;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}
.task-item:last-child { border-bottom: none; }
.task-check {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.task-check svg { width: 16px; height: 16px; }
.task-body { flex: 1; min-width: 0; }
.task-text {
  font-size: 14px;
  display: block;
  transition: color .15s;
}
.task-item--done .task-text {
  text-decoration: line-through;
  color: var(--text-3);
}
.task-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.task-meta .overdue { color: #C7261A; }
.task-progress-text {
  font-size: 12px;
  color: var(--text-3);
}

.task-add-form { margin-top: 16px; }
.task-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.task-add-input { flex: 1; }
.task-add-select { width: 160px; flex-shrink: 0; }

/* ============================================================
   FORMS
   ============================================================ */

.form-page { max-width: 560px; }
.content-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field--check { flex-direction: row; align-items: center; gap: 8px; }
.form-field--check input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.label-hint { font-weight: 400; color: var(--text-3); }
.field-error { font-size: 12px; color: #C7261A; }
.form-error-banner {
  background: #FDECEA;
  border: 1px solid #F5C6C2;
  color: #C7261A;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.form-hint { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }

.danger-zone {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #F5C6C2;
  border-radius: var(--radius);
  background: #FDECEA;
}
.danger-title {
  font-size: 13px;
  font-weight: 600;
  color: #C7261A;
  margin-bottom: 12px;
}

/* ============================================================
   MEMBERS
   ============================================================ */

.member-list { display: flex; flex-direction: column; gap: 1px; }
.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-info { flex: 1; }
.member-name { font-weight: 500; font-size: 14px; }
.member-email { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.member-actions { display: flex; align-items: center; gap: 8px; }
.inline-form { display: inline; }
.role-select { width: auto; padding: 4px 28px 4px 8px; font-size: 12px; }
.role-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-2);
}
.role-badge--admin { background: var(--past-bg); border-color: var(--past-border); color: var(--past-text); }
.self-tag {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-alt);
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  gap: 12px;
  color: var(--text-3);
}
.empty-icon { color: var(--border-strong); }
.empty-icon svg { width: 48px; height: 48px; }
.empty-state h3 { font-size: 16px; font-weight: 500; color: var(--text-2); }
.empty-state p { font-size: 13px; max-width: 280px; }

.empty-inline {
  font-size: 13px;
  color: var(--text-3);
  padding: 6px 0;
}

/* ============================================================
   AUTH / LANDING PAGES
   ============================================================ */

.page-auth .app-shell, .page-landing .app-shell { display: block; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 16px;
}
.auth-wrap--wide .auth-card { max-width: 480px; }
.auth-topbar { width: 100%; max-width: 400px; }
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 0;
}
.auth-logo .logo-mark { background: var(--accent); }
.auth-logo .logo-text { color: var(--text); }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}
.auth-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.3px;
  margin-bottom: 20px;
}
.auth-sub { font-size: 13px; color: var(--text-2); margin-top: -12px; margin-bottom: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-switch {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: 4px;
}
.org-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: background .1s;
}
.org-link-row:hover { background: var(--surface-alt); text-decoration: none; }
.org-link-arrow { color: var(--text-3); }

/* ============================================================
   LANDING PAGE
   ============================================================ */

.page-landing { background: #FEFEFE; }
.landing-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.landing-header-actions { display: flex; gap: 8px; }
.landing-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-logo .logo-text { font-size: 18px; font-weight: 700; color: var(--text); }

.landing-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  text-align: center;
}
.landing-hero-inner { max-width: 600px; }
.landing-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.landing-h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}
.landing-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border-top: 1px solid var(--border);
  background: var(--border);
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-2); line-height: 1.55; }

.landing-footer {
  padding: 20px 48px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   PUBLIC EVENT PAGE
   ============================================================ */

.page-public { background: var(--bg); }
.public-wrap { max-width: 740px; margin: 0 auto; padding: 0 24px 64px; }
.public-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.public-hero { margin-bottom: 40px; }
.public-org { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.public-title { font-size: 32px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 10px; }
.public-date { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.public-body { display: flex; flex-direction: column; gap: 36px; }
.public-section { }
.public-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.public-location {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.public-location:last-child { border-bottom: none; }
.public-footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
