:root {
  color-scheme: light;
  --ink: #1d2b2f;
  --muted: #647176;
  --line: #d9e0df;
  --brand: #1f6f5b;
  --accent: #a94535;
  --panel: #f7f9f8;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
a { color: var(--brand); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { font-weight: 800; text-decoration: none; color: var(--ink); font-size: 1.2rem; }
nav { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: 600; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.account-menu[open] {
  background: var(--white);
}
.account-menu[open] a {
  display: block;
  padding: .35rem 0;
}
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
}
.intro h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 0; }
.intro p { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.module-card {
  display: grid;
  gap: .5rem;
  min-height: 145px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
}
.module-card span { font-size: 1.25rem; font-weight: 800; }
.module-card small { color: var(--muted); font-size: .95rem; }
.module-card.primary { border-color: var(--brand); background: #edf6f2; }
.module-card.muted { opacity: .68; }
.panel, .event-row, .form-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--panel);
}
.event-list { display: grid; gap: 1rem; }
.event-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr) auto;
  gap: 1rem;
  align-items: start;
}
.event-row h2 { margin-top: 0; }
.staffing { margin: 0; }
.staffing dt { font-weight: 800; }
.staffing dd { margin: 0 0 .6rem; color: var(--muted); }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: .55rem .85rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.button.small { min-height: 2rem; padding: .3rem .65rem; }
.button-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.form-shell { max-width: 620px; }
.form-shell.wide { max-width: 900px; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
input[type="checkbox"] { width: auto; }
label { font-weight: 700; }
.compact-list { padding-left: 1.1rem; }
.messages p { padding: .75rem; border-radius: 6px; background: #edf6f2; }
.warning, .error { color: var(--accent); font-weight: 700; }
.hint { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { align-items: flex-start; flex-direction: column; }
  .event-row, .split { grid-template-columns: 1fr; }
}
