@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  color-scheme: light;
  --navy-950: #0b2134;
  --navy-900: #102a43;
  --navy-800: #173e5f;
  --blue-700: #1769cc;
  --blue-600: #2379df;
  --blue-100: #dcecff;
  --blue-50: #eef6ff;
  --ink-950: #13202b;
  --ink-800: #263847;
  --ink-600: #5a6b79;
  --ink-500: #758491;
  --line: #dce3e9;
  --line-strong: #c8d2da;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --surface-muted: #ebf0f4;
  --success: #16734a;
  --success-soft: #e6f5ee;
  --warning: #9b5a10;
  --warning-soft: #fff6e7;
  --danger: #b4232f;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 1px 2px rgba(11, 33, 52, 0.05), 0 7px 20px rgba(11, 33, 52, 0.04);
  --shadow-dialog: 0 28px 80px rgba(8, 25, 39, 0.24);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --sidebar-width: 244px;
  --content-max: 1240px;
  --transition: 160ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-soft);
  color: var(--ink-950);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-copy strong,
.mobile-brand strong {
  font-family: 'Manrope', 'DM Sans', sans-serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

:focus-visible {
  outline: 3px solid rgba(35, 121, 223, 0.45);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.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;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
  color: var(--blue-700);
  font-weight: 700;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#icon-grid path {
  fill: currentColor;
  stroke: none;
}

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

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 25px 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--navy-950);
  color: #dce8f1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 25px;
}

.brand-link,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-600);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.brand-copy small {
  color: #94a9b9;
  font-size: 0.75rem;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9fb2c0;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.nav-link.is-active {
  border-color: rgba(94, 162, 255, 0.18);
  background: var(--nav-active, rgba(35, 121, 223, 0.16));
  color: #fff;
}

.nav-link.is-active .icon {
  color: var(--accent-light, #6eafff);
}

.sidebar-spacer {
  flex: 1;
}

.officer-panel {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.officer-panel .eyebrow {
  margin-bottom: 8px;
  color: var(--accent-light, #8ebeff);
}

.officer-panel-copy,
.access-note {
  margin-bottom: 14px;
  color: #a7b7c3;
  font-size: 0.82rem;
  line-height: 1.5;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #d9eaff;
  color: var(--blue-700);
  font-size: 0.86rem;
  font-weight: 800;
}

.account-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-copy strong {
  color: #fff;
  font-size: 0.86rem;
}

.account-copy small {
  overflow: hidden;
  color: #9fb2c0;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 17px;
  color: #7f95a5;
  font-size: 0.73rem;
}

.sidebar-footer-links a:hover {
  color: #fff;
}

.sidebar-close,
.sidebar-scrim,
.mobile-header {
  display: none;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.content-wrap {
  flex: 1 0 auto;
  width: min(100%, calc(var(--content-max) + 96px));
  margin: 0 auto;
  padding: 48px 48px 72px;
}

.page-section {
  scroll-margin-top: 30px;
  padding: 66px 0;
  border-bottom: 1px solid var(--line);
}

.page-section:first-of-type {
  padding-top: 0;
}

.page-section:last-child {
  border-bottom: 0;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.intro-copy,
.section-header > div > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-600);
}

.dashboard-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.today-block {
  display: flex;
  min-width: 152px;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 5px;
  color: var(--ink-500);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.today-block strong {
  color: var(--ink-800);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.configuration-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  padding: 14px 17px;
  border: 1px solid #f0d7ad;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: #70410c;
}

.configuration-banner p {
  margin: 1px 0 0;
  color: #86551f;
  font-size: 0.86rem;
}

.configuration-banner code,
.inline-notice code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(112, 65, 12, 0.08);
  font-size: 0.82em;
}

.configuration-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: #d48327;
  box-shadow: 0 0 0 4px rgba(212, 131, 39, 0.13);
}

.meeting-card {
  position: relative;
  display: grid;
  min-height: 250px;
  grid-template-columns: 136px 1fr;
  gap: 30px;
  overflow: hidden;
  padding: 34px 36px 34px 32px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  box-shadow: 0 18px 38px rgba(11, 33, 52, 0.14);
  color: #fff;
}

.meeting-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue-600);
}

.meeting-date-tile {
  display: flex;
  height: 136px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.meeting-date-tile span {
  color: var(--accent-light, #78b5ff);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.meeting-date-tile strong {
  margin-top: 1px;
  font-family: 'Manrope', sans-serif;
  font-size: 3.25rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.meeting-content {
  min-width: 0;
  align-self: center;
}

.meeting-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light, #a9cdf9);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light, #6eafff);
  box-shadow: 0 0 0 4px rgba(110, 175, 255, 0.15);
}

.meeting-card h2 {
  max-width: 720px;
  margin-bottom: 5px;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  overflow-wrap: anywhere;
}

.meeting-schedule {
  margin-bottom: 20px;
  color: #b9c9d6;
}

.meeting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 25px;
  color: #d6e0e8;
  font-size: 0.91rem;
}

.meeting-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meeting-meta .icon {
  color: var(--accent-light, #75b3ff);
}

.meeting-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9c9d6;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  margin-top: 20px;
}

.summary-panel,
.event-card,
.announcement-card,
.about-main,
.about-detail,
.previous-events-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-panel {
  min-height: 240px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.panel-heading,
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.panel-heading {
  align-items: center;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.22rem;
}

.panel-heading .eyebrow {
  margin-bottom: 3px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue-700);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.compact-list {
  display: grid;
}

.compact-event {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.compact-event:first-child {
  padding-top: 0;
  border-top: 0;
}

.compact-date {
  display: grid;
  height: 46px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.compact-date strong {
  display: block;
  font-size: 1rem;
}

.compact-copy {
  min-width: 0;
}

.compact-copy strong,
.latest-announcement h3 {
  display: block;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.compact-copy span,
.latest-announcement time {
  color: var(--ink-600);
  font-size: 0.82rem;
}

.latest-announcement {
  min-height: 130px;
}

.latest-announcement time {
  display: block;
  margin-bottom: 12px;
}

.latest-announcement p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--ink-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}

.empty-compact {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink-500);
  font-size: 0.88rem;
  text-align: center;
}

.section-header {
  margin-bottom: 27px;
}

.section-header h2 {
  margin-bottom: 7px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 11px;
}

.search-field {
  position: relative;
}

.search-field .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--ink-500);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-field input,
.select-field select,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-950);
  outline: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-field input {
  height: 46px;
  padding: 0 14px 0 44px;
}

.select-field select {
  height: 46px;
  padding: 0 35px 0 13px;
}

.search-field input:focus,
.select-field select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(35, 121, 223, 0.13);
}

.result-count {
  min-height: 20px;
  margin: 0 0 16px;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.event-card {
  display: flex;
  min-width: 0;
  min-height: 278px;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-md);
}

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.event-date {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--blue-700);
}

.event-date strong {
  font-family: 'Manrope', sans-serif;
  font-size: 2.15rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.event-date span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.event-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.event-card-description {
  display: -webkit-box;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}

.event-details {
  display: grid;
  gap: 7px;
  margin-top: auto;
  color: var(--ink-600);
  font-size: 0.84rem;
}

.event-details span {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  overflow-wrap: anywhere;
}

.event-details .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--blue-700);
}

.officer-notes {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  border: 1px solid #c8dcf3;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--ink-800);
}

#next-event-officer-notes { width: fit-content; max-width: 100%; }
#next-event-officer-notes .officer-notes { margin-top: 14px; }
#next-event-officer-notes .button { max-width: 100%; overflow-wrap: anywhere; }

.officer-notes summary {
  padding: 11px 13px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.officer-notes-body {
  padding: 0 13px 13px;
  border-top: 1px solid #c8dcf3;
}

.officer-notes-body p {
  margin: 11px 0 12px;
  color: var(--ink-700);
  font-size: 0.86rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.officer-notes-body .button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.78rem;
}

.officer-notes-dark {
  border-color: rgba(117, 179, 255, 0.34);
  background: rgba(20, 65, 101, 0.54);
  color: #e7f1fb;
}

.officer-notes-dark .officer-notes-body {
  border-color: rgba(117, 179, 255, 0.24);
}

.officer-notes-dark .officer-notes-body p {
  color: #cbd9e5;
}

.card-actions {
  display: flex;
  gap: 3px;
}

.card-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-500);
}

.card-action:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink-950);
}

.card-action.danger:hover {
  border-color: #f2c3c7;
  background: var(--danger-soft);
  color: var(--danger);
}

.card-action .icon {
  width: 17px;
  height: 17px;
}

.announcement-list {
  display: grid;
  gap: 14px;
}

.announcement-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 26px;
  padding: 24px 25px;
  border-radius: var(--radius-md);
}

.announcement-date {
  padding-top: 2px;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.announcement-content {
  min-width: 0;
}

.announcement-card h3 {
  margin-bottom: 7px;
  font-size: 1.11rem;
  overflow-wrap: anywhere;
}

.announcement-body {
  margin-bottom: 0;
  color: var(--ink-600);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.75fr);
  gap: 16px;
}

.about-main,
.about-detail {
  padding: 26px;
  border-radius: var(--radius-md);
}

.about-main {
  grid-row: span 2;
  min-height: 250px;
  padding: 32px;
  border-top: 4px solid var(--blue-600);
}

.about-main h3 {
  font-size: 1.35rem;
}

.about-main p,
.about-detail p {
  margin-bottom: 0;
  color: var(--ink-600);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.about-detail .text-link {
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.previous-events-panel {
  margin-top: 16px;
  padding: 26px;
  border-radius: var(--radius-md);
}

.previous-events-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.previous-events-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.previous-events-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--ink-600);
  font-size: 0.86rem;
  text-align: right;
}

.previous-events-list {
  display: grid;
}

.previous-event-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.previous-event-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.previous-event-date,
.previous-event-meta {
  color: var(--ink-500);
  font-size: 0.82rem;
}

.previous-event-date {
  padding-top: 3px;
  font-weight: 650;
}

.previous-event-content {
  min-width: 0;
}

.previous-event-content h4 {
  margin: 0;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.previous-event-meta,
.previous-event-description {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.previous-event-description {
  color: var(--ink-600);
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-600);
  font-size: 0.84rem;
}

.account-delete-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 0 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #9fb2c0;
  font-size: 0.73rem;
  text-align: center;
}

.account-delete-link:hover { color: #ffb4b9; }

.danger-callout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 18px 0 22px;
  padding: 13px 14px;
  border: 1px solid #efc5ca;
  border-radius: 8px;
  background: var(--danger-soft);
  color: #7e1c26;
  font-size: 0.86rem;
  line-height: 1.45;
}

.danger-callout strong { color: #8f1d29; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 18px; color: var(--ink-700); font-size: 0.86rem; line-height: 1.45; }
.checkbox-field input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue-700); }

.site-footer p,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.site-footer nav {
  gap: 20px;
}

.site-footer a:hover {
  color: var(--blue-700);
}

.brand-mark-small {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  font-size: 0.63rem;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  background: var(--blue-700);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-hover, #125bad);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-800);
}

.button-secondary:hover:not(:disabled) {
  border-color: #aebbc5;
  background: var(--surface-soft);
}

.officer-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.officer-panel .button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button-quiet {
  min-height: 36px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c6d2dc;
  font-size: 0.81rem;
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.button-on-dark {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.82rem;
}

.button-on-dark:hover {
  background: rgba(255, 255, 255, 0.13);
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

.button-danger:hover:not(:disabled) {
  background: #941b25;
}

.button-full {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-800);
}

.icon-button:hover {
  background: var(--surface-soft);
}

.sidebar .sidebar-close {
  display: none;
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.empty-state-content {
  max-width: 410px;
}

.empty-icon {
  display: inline-grid;
  width: 47px;
  height: 47px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.empty-state h3,
.error-state h3 {
  margin-bottom: 5px;
}

.empty-state p,
.error-state p {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 0.9rem;
}

.error-state .button {
  margin-top: 16px;
}

.skeleton-list {
  display: grid;
  width: 100%;
  gap: 12px;
}

.skeleton-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #eef2f5 25%, #f8fafb 42%, #eef2f5 60%);
  background-size: 400% 100%;
  animation: skeleton 1.3s ease infinite;
}

@keyframes skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 13px 35px rgba(11, 33, 52, 0.16);
  color: var(--ink-800);
  font-size: 0.9rem;
  animation: toast-in 180ms ease-out;
}

.toast.is-error {
  border-left-color: var(--danger);
}

.toast-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--success);
}

.toast.is-error .toast-dot {
  background: var(--danger);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 22px;
  border: 0;
  background: transparent;
  color: var(--ink-950);
}

.dialog[open] {
  display: grid;
  place-items: center;
}

.dialog::backdrop {
  background: rgba(7, 22, 35, 0.62);
  backdrop-filter: blur(2px);
}

.dialog-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
  animation: dialog-in 170ms ease-out;
}

.dialog-card-small {
  width: min(460px, 100%);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.dialog-header .eyebrow {
  margin-bottom: 4px;
}

.dialog-close {
  width: 38px;
  height: 38px;
}

.dialog-intro {
  margin-bottom: 21px;
  color: var(--ink-600);
  font-size: 0.92rem;
}

.inline-notice {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f0d7ad;
  border-radius: 7px;
  background: var(--warning-soft);
  color: #70410c;
  font-size: 0.84rem;
}

.inline-notice span {
  margin-top: 2px;
}

.signup-guidance {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 20px 0;
  padding: 14px 15px;
  border: 1px solid #c7d9ee;
  border-radius: 8px;
  background: #f2f7fc;
  color: var(--ink-700);
  font-size: 0.86rem;
  line-height: 1.5;
}

.signup-guidance > .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--blue-700);
}

.signup-guidance strong { display: block; color: var(--ink-900); }
.signup-guidance p { margin: 2px 0 0; }

.signup-success {
  padding: 22px 8px 8px;
  text-align: center;
}

.signup-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #e7f4ec;
  color: #1f7448;
}

.signup-success-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.signup-success h3 { margin: 0 0 10px; font-size: 1.35rem; }
.signup-success p { max-width: 430px; margin: 8px auto; color: var(--ink-600); line-height: 1.55; }
.signup-success strong { color: var(--ink-900); overflow-wrap: anywhere; }
.signup-success .dialog-actions { justify-content: center; margin-top: 24px; }

.field {
  margin-bottom: 17px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--ink-800);
  font-size: 0.86rem;
  font-weight: 700;
}

.field label span {
  color: var(--ink-500);
  font-size: 0.76rem;
  font-weight: 500;
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.officer-notes-field {
  padding: 16px;
  border: 1px solid #b9d5f6;
  border-radius: 8px;
  background: var(--blue-50);
}

.field textarea {
  display: block;
  min-height: 90px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.field small {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.form-error {
  margin: -2px 0 15px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.84rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-page {
  background: var(--surface-soft);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-nav {
  display: flex;
  width: min(100% - 40px, 980px);
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.legal-nav .brand-copy small {
  color: var(--ink-500);
}

.legal-nav .brand-copy strong {
  color: var(--ink-950);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.legal-main {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 68px 0 90px;
}

.legal-main h1 {
  margin-bottom: 12px;
}

.legal-effective {
  margin-bottom: 42px;
  color: var(--ink-500);
}

.legal-main section {
  margin-top: 35px;
}

.legal-main section h2 {
  font-size: 1.25rem;
}

.legal-main p,
.legal-main li {
  color: var(--ink-600);
}

.legal-main li + li {
  margin-top: 8px;
}

@media (max-width: 1120px) {
  .content-wrap {
    padding-right: 32px;
    padding-left: 32px;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 84px;
  }

  .sidebar {
    width: min(294px, calc(100vw - 54px));
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar .sidebar-close {
    display: inline-grid;
    border-color: rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(6, 19, 29, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .sidebar-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
  }

  .mobile-brand strong {
    font-size: 0.98rem;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 0.76rem;
  }

  .content-wrap {
    padding-top: 34px;
  }

  .page-section {
    scroll-margin-top: 76px;
  }

  .dashboard-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-main {
    grid-row: auto;
    min-height: 0;
  }

  .meeting-card {
    grid-template-columns: 110px 1fr;
  }

  .meeting-date-tile {
    height: 116px;
  }

  .announcement-card {
    grid-template-columns: 115px minmax(0, 1fr) auto;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .mobile-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .content-wrap {
    padding: 26px 16px 52px;
  }

  .configuration-banner {
    margin-bottom: 25px;
    padding: 13px 14px;
  }

  .dashboard-intro {
    display: block;
    margin-bottom: 25px;
  }

  .today-block {
    align-items: flex-start;
    margin-top: 17px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .meeting-card {
    display: block;
    min-height: 0;
    padding: 24px 21px 25px;
    border-radius: 12px;
  }

  .meeting-date-tile {
    width: 76px;
    height: 76px;
    margin-bottom: 23px;
    align-items: center;
  }

  .meeting-date-tile strong {
    font-size: 2rem;
  }

  .meeting-label-row {
    align-items: flex-start;
  }

  .meeting-label-row .button {
    min-height: 34px;
    padding: 0 10px;
  }

  .meeting-card h2 {
    font-size: 1.65rem;
  }

  .meeting-meta {
    display: grid;
    gap: 11px;
  }

  .dashboard-grid {
    gap: 14px;
    margin-top: 14px;
  }

  .summary-panel {
    padding: 20px;
  }

  .page-section {
    padding: 50px 0;
  }

  .section-header {
    align-items: flex-end;
    margin-bottom: 22px;
  }

  .section-header .button {
    min-width: 42px;
    padding: 0 12px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    min-height: 248px;
  }

  .announcement-card {
    position: relative;
    display: block;
    padding: 21px;
  }

  .announcement-date {
    margin-bottom: 11px;
    padding-right: 70px;
  }

  .announcement-card > .card-actions {
    position: absolute;
    top: 15px;
    right: 14px;
  }

  .about-main,
  .about-detail {
    padding: 22px;
  }

  .previous-events-panel {
    padding: 22px;
  }

  .previous-events-heading {
    display: block;
  }

  .previous-events-heading > p {
    margin-top: 8px;
    text-align: left;
  }

  .previous-event-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }

  .previous-event-content {
    grid-column: 1 / -1;
  }

  .site-footer {
    align-items: flex-start;
    padding: 24px 16px;
  }

  .site-footer nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
  }

  .dialog {
    align-items: end;
    padding: 0;
  }

  .dialog[open] {
    place-items: end center;
  }

  .dialog-card,
  .dialog-card-small {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 18px);
    margin: 0 auto;
    padding: 23px 18px max(23px, env(safe-area-inset-bottom));
    border-radius: 15px 15px 0 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dialog-actions {
    position: sticky;
    bottom: calc(-1 * max(23px, env(safe-area-inset-bottom)));
    margin-right: -18px;
    margin-left: -18px;
    padding: 16px 18px max(16px, env(safe-area-inset-bottom));
    background: var(--surface);
  }

  .dialog-actions .button {
    flex: 1;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
  }

  .legal-nav,
  .legal-main {
    width: min(100% - 32px, 760px);
  }

  .legal-main {
    padding-top: 46px;
  }
}

@media (max-width: 390px) {
  .section-header {
    align-items: flex-start;
  }

  .section-header .button {
    font-size: 0;
  }

  .section-header .button .icon {
    width: 19px;
    height: 19px;
  }

  .panel-heading {
    gap: 12px;
  }

  .panel-heading .text-link {
    font-size: 0.8rem;
  }

  .meeting-label-row .button {
    font-size: 0;
  }

  .meeting-label-row .button .icon {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Original palette remains the default; alternate palettes share the layout. */
:root[data-color-scheme="forest"] { --navy-950:#102b23; --navy-900:#173e31; --navy-800:#23543e; --blue-700:#246b43; --blue-600:#2b7a4c; --blue-100:#dceee0; --blue-50:#eef7f0; --surface-soft:#f5f8f5; }
:root[data-color-scheme="plum"] { --navy-950:#2b183b; --navy-900:#3d2352; --navy-800:#56366c; --blue-700:#75449b; --blue-600:#8451ab; --blue-100:#eedff8; --blue-50:#f7f0fc; --surface-soft:#f8f5fa; }
:root[data-color-scheme="sunset"] { --navy-950:#351d18; --navy-900:#512c22; --navy-800:#6c3b2b; --blue-700:#a74528; --blue-600:#b84e2c; --blue-100:#f9e2d6; --blue-50:#fff3ec; --surface-soft:#faf6f3; }
.brand-copy, .mobile-brand { min-width:0; }
.brand-copy strong, .mobile-brand strong { overflow-wrap:anywhere; }
.brand-mark { flex-shrink:0; }

:root[data-color-scheme="forest"] { --accent-light:#a5ddb6; --accent-hover:#205c39; --nav-active:#214e3c; }
:root[data-color-scheme="plum"] { --accent-light:#dbb4f3; --accent-hover:#633683; --nav-active:#53346b; }
:root[data-color-scheme="sunset"] { --accent-light:#ffc6a4; --accent-hover:#8d3820; --nav-active:#6c3c2a; }
/* Multi-club screens extend the dashboard's existing restrained design system. */
.platform-home { padding: 36px 0 60px; }
.platform-home h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 12px 0; }
.platform-home .intro-copy { max-width: 650px; }
.platform-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.platform-home > .platform-actions { margin: 26px 0; }
.club-home-button { margin: 0 22px 18px; }
.club-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 18px; margin-top: 26px; }
.club-card { text-align: left; background: var(--surface,white); border: 1px solid var(--border,#dce2e8); border-radius: 10px; padding: 24px; color: inherit; cursor: pointer; min-width: 0; transition: border-color .15s; }
.club-card:hover { border-color: var(--primary,#245783); }
.club-card h2 { font-size: 1.2rem; margin: 0 0 12px; overflow-wrap: anywhere; }
.club-card p { line-height: 1.6; margin: 12px 0 0; overflow-wrap: anywhere; color: var(--text-muted,#526273); }
.club-role { display: inline-block; font-size: .78rem; padding: 3px 8px; border: 1px solid var(--border,#dce2e8); border-radius: 4px; }
.selected-club-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--border,#dce2e8); padding: 8px 0 24px; margin-bottom: 26px; }
.selected-club-bar h2 { font-size: 1.35rem; overflow-wrap: anywhere; margin: 4px 0 0; }
.selected-club-bar > div:first-child { min-width: 0; flex: 1 1 220px; }
#guest-recommendation { flex-basis: 100%; font-size: .9rem; line-height: 1.6; margin: 0; }
.code-row { padding: 24px 0; border-bottom: 1px solid var(--border,#dce2e8); }
.code-row code { display: block; font-size: clamp(1.3rem,5vw,1.9rem); letter-spacing: .05em; margin: 12px 0 20px; user-select: all; }
.agenda-dialog { width: min(900px,calc(100% - 32px)); max-width: 900px; }
.agenda-dialog .dialog-card { width: 100%; }
.meeting-timing { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--border,#dce2e8); border-radius: 8px; background: var(--surface-muted,#f6f8fa); }
.meeting-timing h3 { margin: 0 0 4px; font-size: 1rem; }
.meeting-timing p { margin: 0; color: var(--ink-600); font-size: .86rem; }
.meeting-timing-fields { display: flex; gap: 12px; flex: 0 0 auto; }
.meeting-timing-fields .field { min-width: 132px; margin: 0; }
.meeting-timing-fields input { min-height: 42px; }
.agenda-item { padding: 20px; margin-bottom: 20px; border: 1px solid var(--border,#dce2e8); border-radius: 8px; }
.agenda-item-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.agenda-item .field:last-child { margin-bottom: 0; }
.agenda-item .button-quiet, #guest-recommendation .button-quiet { color: var(--ink-600); }
.agenda-item .button-quiet:disabled { opacity: .45; }
.agenda-save-bar .button { min-width: 132px; white-space: nowrap; flex-shrink: 0; }
.agenda-save-bar { position: sticky; bottom: -28px; background: var(--surface,white); border-top: 1px solid var(--border,#dce2e8); padding: 16px 0; margin-top: 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.agenda-save-bar span { font-size: .85rem; }
@media(max-width:600px) {
  .platform-home { padding-top: 14px; }
  .platform-home > .platform-actions { align-items: stretch; flex-direction: column; }
  .club-card { padding: 20px; }
  .agenda-dialog { width: calc(100% - 16px); }
  .agenda-item { padding: 14px; }
  .meeting-timing { display: block; padding: 14px; }
  .meeting-timing-fields { margin-top: 14px; }
  .meeting-timing-fields .field { min-width: 0; flex: 1; }
  .agenda-item-top .button { min-height: 44px; padding: 8px; }
  .agenda-save-bar { bottom: -20px; }
}
/* Club activity and account tools reuse the existing card and dialog system. */
.officer-activity-tools { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.officer-activity-tools[hidden] { display:none; }
.event-activity { margin-top:16px; overflow-wrap:anywhere; }
.event-activity p { margin:8px 0; font-size:.9rem; }
.event-activity .platform-actions { margin-top:12px; }
.event-checkin { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:20px; margin:16px 0; background:#fff; color:#142b3b; border:2px solid #2470bf; border-radius:8px; }
.event-checkin strong { font-size:1.15rem; }
.event-checkin p { color:#354b5a; }
.event-checkin .button { min-height:48px; min-width:132px; }
.meeting-card.is-live { scroll-margin-top:90px; }
@media(max-width:600px) { .event-checkin { padding:16px; } .event-checkin .button { width:100%; } .event-activity .button { min-height:44px; white-space:normal; } }
.activity-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; }
.activity-stats dd { margin: .5rem 0; font-size:1.6rem; font-weight:700; }
.activity-names { padding-left:1.25rem; }
.activity-names li { padding:.5rem 0; overflow-wrap:anywhere; }
button.account-row { width:100%; background:transparent; border:0; color:inherit; text-align:left; cursor:pointer; padding:0; }
.profile-section { margin:1.5rem 0; padding-top:1rem; border-top:1px solid #d5dee5; }
