/* Pomona Worship Ministry volunteer app
   Brand tokens live here. Swap these values (and assets/logo) for Pomona's
   official colors and the whole app follows. */
:root {
  /* Colors sampled from Pomona's Share, Grow, Serve mission graphic */
  --brand: #463061;          /* Share purple: primary */
  --brand-ink: #ffffff;      /* text on brand fills */
  --brand-soft: #efebf4;     /* tinted backgrounds */
  --share: #463061;
  --grow: #cd3027;
  --serve: #484848;
  --ink: #1d1b1a;
  --ink-2: #57514d;
  --line: #e4ded9;
  --surface: #ffffff;
  --ground: #faf8f6;
  --danger: #b42318;
  --ok: #1f7a45;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 64px; }
.wrap.wide { max-width: 1200px; }

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.masthead .inner {
  max-width: 640px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.wide-head .inner { max-width: 1200px; }
.masthead img.logo { height: 40px; width: auto; display: block; }
.masthead .org { font-weight: 600; font-size: 15px; line-height: 1.2; }
.masthead .org small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.15; margin: 32px 0 12px; }
h2 { font-size: 23px; line-height: 1.2; margin: 0 0 6px; }
h3 { font-size: 16px; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* progress */
.progress { height: 4px; background: var(--line); border-radius: 4px; margin: 20px 0 0; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .3s ease; }
.step-count { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-top: 18px;
}

.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

label.field { display: block; margin: 0 0 16px; }
label.field span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], textarea, select, input[type=number], input[type=month] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }

.q { margin: 0 0 22px; }
.q > .label { font-weight: 600; margin-bottom: 4px; }
.q > .help { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }

/* option chips (radio and checkbox) */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options.stack { flex-direction: column; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; user-select: none; font-size: 15px;
  transition: background .15s, border-color .15s, color .15s;
}
.options.stack .opt span { border-radius: 12px; width: 100%; }
.opt input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 18px 0 8px; font-weight: 600; }

/* ministry cards */
.ministry { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ministry .mname { font-weight: 600; margin-bottom: 8px; }
.ministry .options .opt span { min-height: 38px; padding: 7px 12px; font-size: 14px; }
.ministry.has { border-color: var(--brand); background: var(--brand-soft); }

.actions { display: flex; gap: 10px; margin-top: 26px; }
button, .btn {
  font: inherit; font-weight: 600; border-radius: 10px; padding: 13px 20px; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
button.secondary, .btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
button:disabled { opacity: .55; cursor: not-allowed; }
.actions .grow { flex: 1; }

.error { color: var(--danger); font-size: 14px; margin-top: 8px; min-height: 1px; }

.review dl { margin: 0; }
.review dt { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.review dd { margin: 2px 0 0; }

.done { text-align: center; padding: 34px 20px; }
.done .check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 14px; font-size: 28px;
}

.hidden { display: none !important; }

/* mission */
.mission-graphic { display: block; width: 100%; max-width: 420px; height: auto; margin: 6px auto 18px; }
.welcome-graphic { display: block; width: 100%; max-width: 360px; height: auto; margin: 26px 0 0; }
.area { border-left: 4px solid var(--c, var(--brand)); padding: 4px 0 4px 16px; margin: 0 0 22px; }
.area h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--brand)); }
.area p { margin: 0; }
.ack { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); cursor: pointer; margin-top: 8px; }
.ack input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.ack span { font-weight: 600; font-size: 15px; }

/* scheduler */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
th { background: #2b2725; color: #fff; font-weight: 600; position: sticky; top: 0; }
td.open { background: #fdecea; color: var(--danger); font-weight: 600; }
td.warn { background: #fff6e0; }
.scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.scroll table { border: 0; }
td select { padding: 6px 8px; font-size: 13px; min-width: 140px; }
.stat { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); font-size: 13px; margin: 0 6px 6px 0; }
.needs input { width: 80px; padding: 8px 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.tabs button { background: #fff; color: var(--ink); border-color: var(--line); padding: 9px 14px; }
.tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.panel { display: none; }
.panel.on { display: block; }

@media print {
  .masthead, .toolbar, .tabs, .no-print, .actions { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .panel { display: block !important; }
  .panel:not(.print-me) { display: none !important; }
  .card { border: 0; padding: 0; }
  td select { border: 0; appearance: none; padding: 0; }
  th { background: #ddd !important; color: #000; }
}
