:root {
  --green: #3aa05c;
  --green-dark: #256b3c;   /* deep green: chip text, button hover */
  --green-bright: #6fd08a; /* headings on dark surfaces */
  --green-light: #e6f2ea;  /* light accent chips (calendar pills) */
  --ink: #f4f4f4;
  --muted: #9aa79f;
  --line: #333;
  --bg: #000;
  --surface: #161616;      /* cards / panels */
  --input-bg: #1f1f1f;
  --today: #fff3d6;
  --shadow: 0 1px 3px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

.site-header {
  background: linear-gradient(135deg, #17c3b2, #0e8074);
  color: #fff;
  padding: 1.6rem 1.25rem;
  text-align: center;
}
.site-header h1 { margin: 0; font-size: 2rem; letter-spacing: .5px; }
.tagline { margin: .35rem 0 0; opacity: .9; }

main {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.calendar-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.cal-toolbar h2 { margin: 0; font-size: 1.25rem; }
.nav-btn {
  background: var(--green-light);
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-size: 1.1rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav-btn:hover { background: #d7e9de; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  padding: .25rem 0;
}
.cal-cell {
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  background: var(--surface);
  font-size: .8rem;
  overflow: hidden;
}
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { background: var(--today); border-color: #e6c34d; }
.cal-cell.has-events { cursor: pointer; }
.cal-cell.has-events:hover { outline: 2px solid var(--green); }
.cell-date { font-weight: 600; color: var(--muted); }
.cal-cell.today .cell-date { color: #a06b00; }
.event-pill {
  display: block;
  margin-top: 3px;
  padding: 2px 5px;
  background: var(--green-light);
  border-left: 3px solid var(--green);
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--green-dark);
}
.more-pill { color: var(--muted); font-size: .7rem; margin-top: 2px; }

.side section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.side h3 { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--green-bright); }

#upcomingList { list-style: none; margin: 0; padding: 0; }
#upcomingList li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
#upcomingList li:last-child { border-bottom: none; }
.up-date { display: block; font-size: .75rem; color: var(--green); font-weight: 600; }
.up-loc { display: block; font-size: .78rem; color: var(--muted); }

form label { display: block; margin-bottom: .6rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
form input, form textarea {
  width: 100%;
  margin-top: .2rem;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  background: var(--input-bg);
  color: var(--ink);
}
.submit-btn {
  width: 100%;
  padding: .6rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.submit-btn:hover { background: var(--green-dark); }
.submit-btn:disabled { opacity: .6; cursor: default; }
.form-msg { min-height: 1.1rem; margin: .5rem 0 0; font-size: .82rem; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #b23b3b; }

.muted { color: var(--muted); font-weight: 400; }

/* Honeypot: kept in the layout but pushed far off-screen so real users
   never see or tab to it, while naive bots still fill it in. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal.hidden { display: none; }
.modal-box { background: var(--surface); border-radius: 10px; padding: 1.25rem; max-width: 420px; width: 100%; position: relative; max-height: 85vh; overflow-y: auto; }
.modal-close { position: absolute; top: .5rem; right: .6rem; border: none; background: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal-box h3 { margin-top: 0; color: var(--green-bright); }
.modal-event { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.modal-event:last-child { border-bottom: none; }
.modal-event strong { display: block; }
.modal-event .meta { font-size: .8rem; color: var(--muted); }

.comments-wrap {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.comments-wrap > h2 { margin: 0 0 .25rem; color: var(--green-bright); font-size: 1.25rem; }
.cc-intro { margin: 0 0 1rem; font-size: .85rem; }
.cc-form { display: flex; flex-direction: column; gap: .5rem; max-width: 560px; }
.cc-form input, .cc-form textarea, .cc-form select {
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: var(--input-bg);
  color: var(--ink);
}
.cc-form .submit-btn { align-self: flex-start; width: auto; padding: .5rem 1.25rem; }
.cc-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.cc-empty { color: var(--muted); font-style: italic; margin: 0; }
.cc-comment {
  padding: .6rem .75rem;
  background: var(--input-bg);
  border-left: 3px solid var(--green);
  border-radius: 6px;
}
.cc-comment-meta { font-size: .75rem; color: var(--muted); margin-bottom: .2rem; }
.cc-comment-name { font-weight: 600; color: var(--green-bright); }
.cc-comment-text { white-space: pre-wrap; word-break: break-word; }

.schedule-wrap {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.schedule-wrap > h2 { margin: 0 0 .25rem; color: var(--green-bright); font-size: 1.25rem; }
.cc-table-scroll { overflow-x: auto; margin-top: 1rem; }
.cc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cc-table th, .cc-table td {
  padding: .5rem .6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cc-table th {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.cc-month-divider td {
  background: #0d0d0d;
  color: var(--green-bright);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .5px;
}
.cc-week { white-space: nowrap; color: var(--ink); font-weight: 600; }
.cc-zone-select {
  background: var(--input-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .35rem .4rem;
  font: inherit;
  font-size: .85rem;
}
.cc-zone-select:disabled { opacity: .5; }
.cc-trash-badge {
  display: inline-block;
  margin-top: .35rem;
  padding: .1rem .4rem;
  background: rgba(23,195,178,.15);
  color: #17c3b2;
  border: 1px solid rgba(23,195,178,.4);
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}

.site-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem; }

@media (max-width: 760px) {
  main { grid-template-columns: 1fr; }
  .cal-cell { min-height: 62px; }
}
