/* Look and feel follows thephoenix.org: white pages, near-black type, pill buttons,
   thin gray card outlines, black footer. The site's own font (Circular) is licensed,
   so DM Sans stands in for it. */
:root {
  --ink: #121212;
  --text: #4a4f54;
  --muted: #838e9c;
  --line: #e6e9ed;
  --wash: #f4f5f6;
  --white: #fff;
  --red: #e2241a;
  --yellow: #ffec67;
  --blue: #97cffd;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }

/* Header */
.site-header { border-top: 6px solid var(--red); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 14px; line-height: 1.1; }
.brand img { display: block; height: 36px; width: auto; }
.brand strong { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.brand span { font-size: 0.95rem; color: var(--ink); font-weight: 700; padding-left: 14px; border-left: 2px solid var(--red); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons: pills, like the main site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--white); border-color: transparent; }
.btn.dark:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn.small { height: 36px; padding: 0 14px; font-size: 0.85rem; }
.btn.danger:hover { border-color: var(--red); color: var(--red); }
.btn[aria-current="page"] { background: var(--wash); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Page intro */
.hero { padding-top: 56px; padding-bottom: 32px; }
.hero p { margin-top: 16px; max-width: 620px; color: var(--text); font-size: 1.15rem; }
.updated { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

/* Dark band (icebreaker) */
.band { background: var(--ink); color: var(--white); padding: 40px 0; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.band .eyebrow { color: var(--yellow); }
.band .big { margin-top: 10px; font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }

/* Sections and cards */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head p { color: var(--text); }
.cards { display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--white); }
.card .body { margin-top: 8px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.card .meta { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.card .link { font-weight: 500; color: var(--red); }
.card.pinned { border-color: var(--red); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--wash); color: var(--text); }
.tag.pin { background: var(--red); color: var(--white); }
.tag.active { background: var(--ink); color: var(--white); }
.tag.pending { background: var(--yellow); color: var(--ink); }
.tag.scheduled { background: var(--blue); color: var(--ink); }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 28px 20px; color: var(--text); text-align: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card .actions { margin-top: 14px; }

/* Forms */
form.stack { display: grid; gap: 16px; max-width: 640px; }
label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; }
label small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #c7cdd4; border-radius: 8px; padding: 12px 14px;
}
textarea { resize: vertical; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label.check { display: flex; align-items: center; gap: 10px; }
label.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.msg { font-size: 0.9rem; min-height: 1.4em; color: var(--text); }
.msg.error { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 640px; }
.inline-form input { flex: 1; min-width: 220px; }
.list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.list li.current { border-color: var(--ink); }
.list li span.sub { display: block; font-size: 0.8rem; color: var(--muted); }
.list li strong { display: block; }
.day + .day { margin-top: 32px; }
.day h2 { font-size: 1.25rem; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Circle Up view: large type for screen sharing */
.circle { padding: 32px 0 48px; }
.circle-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.panel.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.panel.dark .eyebrow { color: var(--yellow); }
.panel h2 { margin-top: 8px; }
.ethos { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: tenet; display: grid; gap: 14px; }
.ethos li { counter-increment: tenet; display: grid; grid-template-columns: 36px 1fr; gap: 12px; font-size: 1.05rem; color: var(--text); }
.ethos li::before { content: counter(tenet); width: 36px; height: 36px; border-radius: 999px; background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.ethos li strong { display: block; color: var(--ink); font-size: 1.2rem; line-height: 1.25; }
.circle .cards { margin-top: 16px; }
.panel.coming-up { margin-top: 16px; }
.panel.coming-up .section-head { align-items: center; margin-bottom: 12px; }
.highlights { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; }
.highlights .list { margin-top: 8px; }
.spotlight { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 100%; padding: 28px; border-radius: 12px; background: var(--yellow); color: var(--ink); text-decoration: none; }
.spotlight .eyebrow { color: var(--ink); }
.spotlight strong { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.12; }
.spotlight .sub { font-size: 0.85rem; }
.spotlight:hover strong { text-decoration: underline; }
select { font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c7cdd4; border-radius: 8px; padding: 12px 14px; flex: 1; min-width: 220px; max-width: 100%; }
.stack-col { display: grid; gap: 16px; }

/* Footer */
.site-footer { border-top: 6px solid var(--red); background: var(--ink); color: var(--white); padding: 36px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .hash { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.list li.current { border-color: var(--red); }
h1::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 14px; background: var(--red); border-radius: 3px; }

@media (max-width: 760px) {
  .circle-grid, .row, .highlights { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; padding-bottom: 24px; }
  .wrap { padding: 0 16px; }
}
.section-head .eyebrow { color: var(--red); }

/* Admin analytics */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: grid; gap: 2px; }
.stat strong { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 0.85rem; color: var(--text); }
.chart { margin-top: 16px; height: 120px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); }
.chart .bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart .bar span { display: block; width: 100%; min-height: 2px; background: var(--red); border-radius: 3px 3px 0 0; }

/* Volunteer types */
.chooser { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; font-size: 0.9rem; color: var(--text); }
.chooser-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: transparent; }
fieldset.checks { border: 0; padding: 0; margin: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }
fieldset.checks legend { padding: 0; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; }
fieldset.checks legend small { font-weight: 400; color: var(--muted); margin-left: 6px; }

/* New class launches and the full-height spotlight */
.spotlight .eyebrow { margin-bottom: auto; }
.spotlight .when { font-size: 1.05rem; font-weight: 500; }
.spotlight .go { margin-top: auto; padding-top: 12px; font-weight: 700; }
.tag.new { background: var(--yellow); color: var(--ink); }
.card.new-class { border-color: var(--ink); }
input:disabled { background: var(--wash); color: var(--muted); }

[hidden] { display: none !important; }

/* Admin: tabs, sign-in pages, people */
.hero.compact { padding-bottom: 20px; }
.tabs { position: sticky; top: 0; z-index: 5; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tab { padding: 14px 16px; font-weight: 500; font-size: 0.95rem; color: var(--text); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); font-weight: 700; }
.tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 0.75rem; font-weight: 700; text-align: center; line-height: 20px; }
.stack.narrow { max-width: 420px; }
input[type="password"] { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c7cdd4; border-radius: 8px; padding: 12px 14px; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.notice { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--yellow); color: var(--ink); max-width: 720px; }
.notice a { color: var(--ink); font-weight: 700; }
.sub-head { margin: 36px 0 4px; font-size: 1.15rem; letter-spacing: -0.01em; }
.now-card { border: 1px solid var(--ink); border-radius: 12px; padding: 18px 20px; margin: 4px 0 8px; max-width: 760px; }
.now-card .eyebrow { margin: 0 0 8px; }
.now-card p { margin: 0; }
.now-card .inline-form { max-width: none; }
.roles { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.roles div { background: var(--wash); border-radius: 12px; padding: 14px 16px; font-size: 0.85rem; }
.roles strong { display: block; font-size: 0.95rem; margin-bottom: 4px; color: var(--ink); }
.list li .edit-row { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.list li .edit-row input { flex: 1; }
.stat .delta { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--ink); margin-top: 6px; min-width: 2px; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }
