/* The volunteer pages. Loaded by VolunteerLayout only, so the rest of the
   site never downloads it. Everything comes from tokens.css: the same paper,
   ink and navy as the pages around it, and the alarm orange kept for the one
   thing to press. */

.vol-nav { border-bottom: 1px solid var(--rule); }
.vol-nav .wrap { display: flex; gap: 0.25rem 1.5rem; flex-wrap: wrap; padding-block: 0.6rem; }
.vol-nav a {
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--heading); padding-block: 0.3rem;
}
.vol-nav a:hover { color: var(--alarm-ink); }

.vol-body { padding-bottom: 4rem; }
.vol-stack > * + * { margin-top: 2.5rem; }
.vol-stack h2, .vol-card h2 { font-size: var(--step-h3); }

/* A list of activities (My page): one per row, divided by hairlines like the quotes. */
.vol-list { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.vol-list > li { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.vol-list > li:last-child { border-bottom: 1px solid var(--rule); }
.vol-list h2, .vol-list h3 { font-size: var(--step-h3); margin: 0 0 0.3rem; }
.vol-list h2 a, .vol-list h3 a { color: var(--heading); text-decoration: none; }
.vol-list h2 a:hover, .vol-list h3 a:hover { color: var(--alarm-ink); text-decoration: underline; }

.vol-meta { display: flex; flex-wrap: wrap; gap: 0.1rem 1.25rem; margin: 0; color: var(--muted); }
.vol-meta-lead { font-size: var(--step-lead); }
.vol-room { margin: 0.4rem 0 0; font-weight: 700; color: var(--alarm-ink); }
.vol-tags { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.vol-status { font-weight: 700; color: var(--ink); }
.vol-mine .btn { margin-top: 0.75rem; min-height: 40px; padding: 0.4rem 1rem; font-size: 0.92rem; }
.vol-past { padding-left: 1.2rem; }
.vol-past li { margin-bottom: 0.3rem; }
.vol-past .vol-meta { display: inline; margin-left: 0.5rem; }

.vol-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.vol-filter a {
  padding: 0.3rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 0.9rem; text-decoration: none; color: var(--ink);
}
.vol-filter a:hover { border-color: var(--heading); color: var(--heading); }
.vol-filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.vol-empty, .vol-aside { max-width: var(--measure); color: var(--muted); }
.vol-aside { margin-top: 1.5rem; font-size: 0.95rem; }

/* An activity page: the description beside the signup card, stacked on a phone. */
.vol-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .vol-split { grid-template-columns: minmax(0, 1fr) 22rem; } }
.vol-split .prose { padding-bottom: 0; }

.vol-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy);
  padding: 1.5rem; border-radius: 0 0 var(--radius) var(--radius);
}
.vol-narrow { max-width: 30rem; }

/* Forms: big targets, labels above their fields, nothing clever. */
.vol-form { display: grid; gap: 1rem; }
.vol-form label { display: grid; gap: 0.3rem; }
.vol-form label > span { font-weight: 700; font-size: 0.95rem; }
.vol-form input[type="text"], .vol-form input[type="email"], .vol-form input:not([type]) {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 4px;
}
.vol-form input:focus-visible { border-color: var(--heading); }
.vol-form .btn { justify-self: start; }

.vol-interests { border: 0; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
@media (min-width: 30rem) { .vol-interests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vol-interests legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; padding: 0; }
.vol-interests label, .vol-check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; }
.vol-interests input, .vol-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--navy); flex: none; }
.vol-check > span { font-weight: 400 !important; }

.vol-small { margin: 0; font-size: 0.88rem; color: var(--muted); }
.vol-notice {
  max-width: var(--measure); margin: 0; padding: 0.8rem 1rem;
  border-left: 4px solid var(--navy); background: var(--surface);
}
.vol-error, .validation-message { margin: 0; color: var(--alarm-ink); font-weight: 700; font-size: 0.95rem; }
.vol-danger { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: var(--measure); }

/* --- the team pages ------------------------------------------------------- */

.vol-nav-aside { margin-left: auto; color: var(--muted) !important; }
.vol-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0 0 1.5rem; }
.vol-actions form { display: contents; }

.vol-table { width: 100%; max-width: 60rem; border-collapse: collapse; font-size: 0.97rem; }
.vol-table th, .vol-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.vol-table th { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--rule); }
.vol-table td a { font-weight: 700; color: var(--heading); text-decoration: none; }
.vol-table td a:hover { color: var(--alarm-ink); text-decoration: underline; }
.vol-table .num { text-align: right; white-space: nowrap; }
@media (max-width: 40rem) {
  .vol-table thead { display: none; }
  .vol-table tr { display: grid; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .vol-table td { border: 0; padding: 0.1rem 0; }
  .vol-table .num { text-align: left; }
}

.vol-link-button {
  background: none; border: 0; padding: 0; margin: 0 0.9rem 0 0; font: inherit; font-size: 0.9rem;
  color: var(--alarm-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.vol-link-button:hover { color: var(--heading); }
.vol-role-buttons { margin-top: 0.2rem; }

/* The door list: each name is one big button, so check-in works on a phone. */
.vol-roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-width: 36rem; }
.vol-roster button {
  width: 100%; display: flex; gap: 0.8rem; align-items: center; text-align: left;
  min-height: 56px; padding: 0.6rem 0.9rem; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.vol-roster button:hover { border-color: var(--heading); }
.vol-roster strong { display: block; }
.vol-tick {
  flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem;
  border: 2px solid var(--rule); border-radius: 50%; font-weight: 700; color: #fff;
}
.vol-roster .is-in button { border-color: var(--navy); }
.vol-roster .is-in .vol-tick { background: var(--navy); border-color: var(--navy); }

.vol-editor { max-width: 40rem; }
.vol-editor textarea, .vol-form textarea, .vol-form input[type="number"], .vol-form input[type="datetime-local"], .vol-form input[type="url"] {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 4px;
}
.vol-pair { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .vol-pair { grid-template-columns: 1fr 1fr; } }
.vol-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.vol-choice legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; padding: 0; }
.vol-choice label { display: flex; gap: 0.55rem; align-items: center; }
.vol-choice input { accent-color: var(--navy); width: 1.1rem; height: 1.1rem; }

.vol-code {
  display: inline-block; padding: 0.4rem 0.6rem; font-size: 0.95rem; word-break: break-all;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
}
.vol-note { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--alarm); font-style: italic; }
.vol-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* The check-in code: as big as the screen allows, for a phone across a table. */
.vol-qr-code { width: min(26rem, 100%); background: #fff; padding: 1rem; border-radius: var(--radius); }
.vol-qr-code svg { display: block; width: 100%; height: auto; }
.vol-form label > span.vol-small, .vol-choice label > span { font-weight: 400; }

/* --- CRM and inbox ---------------------------------------------------------- */

.vol-people { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 44rem; }
.vol-people li { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.vol-people li .vol-link-button { margin-left: auto; }

.vol-inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; max-width: 52rem; }
.vol-inline-form label { flex: 1 1 12rem; }
.vol-inline-form textarea { min-height: 3.2rem; }
.vol-inline-form .validation-message { flex-basis: 100%; }

.vol-tasks { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 44rem; }
.vol-tasks li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.vol-tasks strong { display: block; }
.vol-tasks .is-late strong { color: var(--alarm-ink); }

.vol-timeline { list-style: none; margin: 1.25rem 0 0; padding: 0; max-width: 44rem; }
.vol-timeline li { padding: 0.75rem 0 0.75rem 1rem; border-left: 2px solid var(--rule); }
.vol-timeline p { margin: 0.25rem 0 0; }

.vol-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 1rem; }
.vol-column { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem; min-height: 8rem; }
.vol-column h2 { font-size: 0.85rem !important; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.75rem; }
.vol-board-card { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.7rem; margin-bottom: 0.6rem; }
.vol-board-card > a { font-weight: 700; color: var(--heading); text-decoration: none; }
.vol-board-moves { display: flex; justify-content: space-between; margin-top: 0.4rem; }
.vol-board-moves .vol-link-button { margin: 0; font-size: 0.82rem; }

.vol-thread { list-style: none; margin: 0; padding: 0; max-width: 44rem; display: grid; gap: 0.75rem; }
.vol-thread li { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vol-thread li.is-out { margin-left: 2rem; border-left: 4px solid var(--navy); }
.vol-thread li.is-in { margin-right: 2rem; border-left: 4px solid var(--alarm); }
.vol-thread p { margin: 0.4rem 0 0; }
.vol-form select, .vol-form input[type="date"] {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 4px;
}
