/* One Hour: shared styles. Mobile first; `body.wide` widens the page for organizer screens.
   Tokens come from the approved mockup. Text is never below 15px; body is 17-18px.
   Contrast (WCAG AA): teal #26b7be is too light for text on white, so text uses --teal-ink
   (#1b7378, 5.6:1 on white). Charcoal on teal is 4.8:1; muted text #5f605f is 6.3:1. */

:root {
  --teal: #26b7be;
  --teal-ink: #1b7378;
  --teal-tint: #e8f7f8;
  --charcoal: #383938;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --ink: #383938;
  --ink-muted: #5f605f;
  --on-teal: #383938;
  --rule: #dcdcdc;
  --field-border: #5f605f;
  --accent-text: #1b7378;       /* small labels and links */
  --teal-line: #1b7378;         /* borders and bars (3:1 against the page) */
  --header-bg: #383938;
  --header-ink: #ffffff;
  --header-muted: #c9cac9;
  --focus-ring: #1b7378;
  --btn-dark-bg: #383938;
  --btn-dark-ink: #ffffff;
  --btn-line: #383938;
  --warn-bg: #f5f5f5;
  --danger: #8a2a1f;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius: 6.8px;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #383938;
    --surface-alt: #2b2c2b;
    --ink: #ffffff;
    --ink-muted: #c9cac9;
    --rule: #555655;
    --field-border: #c9cac9;
    --teal-tint: #223f41;
    --accent-text: #26b7be;
    --teal-line: #26b7be;
    --header-bg: #2b2c2b;
    --focus-ring: #ffffff;
    --btn-dark-bg: #ffffff;
    --btn-dark-ink: #383938;
    --btn-line: #ffffff;
    --warn-bg: #2b2c2b;
    --danger: #ff9d8f;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
}

a { color: var(--accent-text); }
a:hover { color: var(--ink); }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.site-header :focus-visible { outline-color: #ffffff; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--charcoal); color: #fff; padding: 12px 16px; z-index: 10;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- layout ---------------------------------------------------------------- */

.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }
body.wide .container { max-width: 1180px; padding: 0 32px; }

.site-header { background: var(--header-bg); color: var(--header-ink); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand out" "nav nav";
  align-items: center;
  column-gap: 12px;
  padding-top: 12px;
}
.brand {
  grid-area: brand; display: flex; align-items: center; gap: 10px;
  min-height: 48px; color: var(--header-ink); text-decoration: none;
  font-size: 21px; font-weight: 700;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.header-out {
  grid-area: out; color: var(--header-ink); font-size: 17px; text-decoration: none;
  min-height: 44px; display: flex; align-items: center; padding: 0 8px;
}
.header-out:hover { color: var(--header-muted); }
.header-out-form { grid-area: out; margin: 0; display: flex; }
button.header-out { background: none; border: none; font: inherit; font-size: 17px; cursor: pointer; }
.main-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -12px; }
.main-nav a {
  color: var(--header-ink); text-decoration: none; font-size: 17px;
  padding: 12px 12px 10px; border-bottom: 4px solid transparent; min-height: 48px;
}
.main-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--teal); }
.main-nav a:hover { color: var(--header-muted); }

.back-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.back-link {
  color: var(--header-ink); text-decoration: none; font-size: 17px; min-height: 44px;
  display: flex; align-items: center; gap: 6px; margin-left: -8px; padding: 0 8px;
}
.back-link:hover { color: var(--header-muted); }
.back-header .brand { min-height: 0; font-size: 18px; }
.back-header .brand img { width: 24px; height: 24px; }

@media (min-width: 900px) {
  body.wide .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav out";
    column-gap: 32px;
    padding-top: 12px;
  }
  body.wide .brand { font-size: 22px; min-height: 52px; }
  body.wide .brand img { width: 32px; height: 32px; }
  body.wide .main-nav { margin-left: 0; gap: 0 8px; }
  body.wide .main-nav a { padding: 14px 12px 10px; }
}

.site-main { flex: 1 0 auto; padding-top: var(--space-6); padding-bottom: var(--space-12); }
.stack { display: flex; flex-direction: column; gap: var(--space-8); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-xs { display: flex; flex-direction: column; gap: var(--space-1); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.split { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }

.site-footer { border-top: 1px solid var(--rule); padding: var(--space-6) 0 var(--space-8); color: var(--ink-muted); font-size: 16px; }
.site-footer p { margin: 0; }
.verse { margin: 0 0 var(--space-6); text-align: center; display: flex; flex-direction: column; gap: 8px; }
.verse blockquote { margin: 0; }
.verse p { margin: 0; font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink); }
.verse cite { font-style: normal; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--accent-text); }
.center { text-align: center; }

/* ---- type ------------------------------------------------------------------ */

h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 1.45; }
.muted { color: var(--ink-muted); }
.small { font-size: 16px; }
.eyebrow {
  margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-text);
}
.eyebrow.muted { color: var(--ink-muted); }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head p { color: var(--ink-muted); font-size: 17px; line-height: 1.4; }
.big-time { font-size: 36px; line-height: 1.15; font-weight: 700; margin: 0; }
.big-phone { font-size: 34px; line-height: 1.15; font-weight: 700; margin: 0; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.icon-accent { color: var(--accent-text); }

/* ---- buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--radius);
  background: var(--teal); color: var(--on-teal);
  font: inherit; font-size: 19px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { color: var(--on-teal); filter: brightness(.95); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--btn-line); }
.btn-secondary:hover { color: var(--ink); background: var(--surface-alt); filter: none; }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-ink); }
.btn-dark:hover { color: var(--btn-dark-ink); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 16px; }
.btn-outline-teal { background: var(--surface); color: var(--ink); border-color: var(--teal-line); }
.btn-outline-teal:hover { color: var(--ink); background: var(--surface-alt); filter: none; }
.btn-block { display: flex; width: 100%; }
.btn-link {
  background: none; border: none; min-height: 44px; padding: 0 8px; font: inherit; font-size: 17px;
  color: var(--accent-text); text-decoration: underline; cursor: pointer;
}
.btn-link:hover { color: var(--ink); }
.btn[disabled], .btn-link[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-direction: column; gap: 12px; }
.actions .text-action {
  min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
form.inline { display: inline; margin: 0; }

/* ---- cards, notes, badges -------------------------------------------------------- */

.card { background: var(--surface-alt); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.card-tint { background: var(--teal-tint); }
.card-plain { background: transparent; padding: 0; }
.card h2.eyebrow, .card .eyebrow { margin: 0; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--ink-muted); }
.banner {
  background: var(--warn-bg); border-bottom: 1px solid var(--rule); padding: 16px 0;
}
.banner-inner { display: flex; gap: 12px; align-items: flex-start; }
.banner-inner > div { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.4; }
.banner strong { font-size: 17px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text);
}
.badge-closed, .badge-quiet { color: var(--ink-muted); }
.badge-count {
  background: var(--teal); color: var(--on-teal); border-radius: var(--radius);
  padding: 2px 8px; margin-left: 4px; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none;
}

.flashes { display: flex; flex-direction: column; gap: 8px; }
.flashes:not(:empty) { padding-top: var(--space-4); }
.flash {
  padding: 14px 16px; border-left: 6px solid var(--teal-line); background: var(--teal-tint);
  font-size: 17px; line-height: 1.4;
}
.flash-error { border-left-color: var(--danger); background: var(--surface-alt); }
.flash-error::before { content: "Please note: "; font-weight: 700; }

/* ---- lists and rows ---------------------------------------------------------------- */

.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--rule); }
.list > li:last-child { border-bottom: 1px solid var(--rule); }
.list-plain > li:last-child { border-bottom: none; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 18px; }
.kv-row .k { font-weight: 700; }

.call-row {
  display: flex; gap: 14px; align-items: center; padding: 16px 0;
  color: var(--ink); text-decoration: none;
}
.call-row:hover { background: var(--surface-alt); color: var(--ink); }
.call-dot {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); color: var(--ink);
}
.call-dot.is-new { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.call-dot.is-none { border-color: transparent; background: var(--surface-alt); color: var(--ink-muted); }
.call-body { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.call-title { font-size: 18px; }
.call-title.strong { font-weight: 700; }
.call-meta { font-size: 16px; color: var(--ink-muted); }

.hour-row {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 6px 12px;
}
.hour-row .when { width: 104px; flex-shrink: 0; font-size: 17px; color: var(--ink-muted); }
.hour-row .who { font-size: 18px; flex-grow: 1; }
.hour-row.is-mine { background: var(--teal-tint); }
.hour-row.is-mine .who { font-weight: 700; }
.hour-row .who.is-open { font-style: italic; }

.coming { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; }
.coming .what { font-size: 18px; font-weight: 700; }
.coming .detail { font-size: 17px; color: var(--ink-muted); }
.item-with-icon { display: flex; gap: 14px; align-items: flex-start; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.item-with-icon .what { font-size: 18px; font-weight: 700; }
.item-with-icon .detail { font-size: 17px; color: var(--ink-muted); }
.item-with-icon .icon { margin-top: 2px; width: 24px; height: 24px; color: var(--accent-text); }

.empty { background: var(--surface-alt); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.empty h2 { font-size: 20px; font-weight: 700; }
.empty p { color: var(--ink-muted); }

/* ---- day tabs ------------------------------------------------------------------------ */

.day-tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.day-tabs a {
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  border-bottom: 4px solid transparent; font-size: 18px; color: var(--ink-muted); text-decoration: none;
}
.day-tabs a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a, .pill {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 2px solid var(--btn-line);
  display: inline-flex; align-items: center; font-size: 16px; font-weight: 700; text-decoration: none; color: var(--ink);
  background: var(--surface);
}
.pills a[aria-current="true"] { background: var(--btn-dark-bg); color: var(--btn-dark-ink); }

/* ---- forms --------------------------------------------------------------------------- */

form.form { display: flex; flex-direction: column; gap: var(--space-6); }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-size: 17px; font-weight: 700; padding: 0; }
.field-hint { font-size: 16px; color: var(--ink-muted); font-weight: 400; }
input[type="text"], input[type="date"], input[type="search"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: 0 12px; border: 2px solid var(--field-border); border-radius: 0;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 18px;
}
textarea { padding: 12px; line-height: 1.4; resize: vertical; min-height: 96px; }
fieldset { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px solid var(--btn-line); border-radius: var(--radius); font-size: 18px; font-weight: 700; cursor: pointer;
  background: var(--surface); color: var(--ink);
}
.choice input:checked + span { background: var(--btn-dark-bg); color: var(--btn-dark-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-weight: 400; font-size: 18px; line-height: 1.45; }
.check input { width: 28px; height: 28px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--teal-line); }
.field-error { color: var(--danger); font-size: 17px; font-weight: 700; }
[hidden] { display: none !important; }

/* ---- sheet (confirm pages) ------------------------------------------------------------- */

.sheet-page { background: var(--surface-alt); }
.sheet {
  background: var(--surface); padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 20px;
  border-radius: var(--radius); border: 1px solid var(--rule);
}
.sheet h1 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.sheet h1.soft { font-weight: 400; font-size: 28px; }
.sheet .status-icon { width: 44px; height: 44px; color: var(--accent-text); }

/* ---- week grid --------------------------------------------------------------------------- */

.grid-wrap { overflow-x: auto; }
table.week-grid { width: 100%; min-width: 640px; border-collapse: collapse; border-top: 1px solid var(--rule); }
.week-grid th, .week-grid td { padding: 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.week-grid thead th { padding: 12px 8px; font-size: 17px; border-bottom: 2px solid var(--ink); }
.week-grid th[scope="row"] { width: 112px; padding: 0 8px; font-size: 16px; font-weight: 400; color: var(--ink-muted); }
.cell { min-height: 52px; margin: 2px; padding: 0 10px; display: flex; align-items: center; font-size: 17px; color: var(--ink); text-decoration: none; background: var(--surface); }
a.cell:hover { background: var(--surface-alt); }
.cell-open { background: var(--teal-tint); font-style: italic; font-weight: 700; color: var(--accent-text); }
.cell-mine { background: var(--teal-tint); font-weight: 700; box-shadow: inset 0 0 0 3px var(--teal-line); }
.cell-left { background: var(--surface-alt); flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 4px 10px; }
.cell-left s { font-size: 17px; }
.cell-left small { font-size: 15px; font-weight: 700; }
.cell-closed { background: var(--surface-alt); color: var(--ink-muted); }

/* ---- audio player ------------------------------------------------------------------------- */

.player { background: var(--surface-alt); padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.player-main { display: flex; align-items: center; gap: 18px; }
.player-btn {
  width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--teal); color: var(--on-teal);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.player-btn .icon { width: 34px; height: 34px; }
.js .player-btn { display: flex; }
.js .player audio { display: none; }
.player audio { width: 100%; }
.player-label { display: flex; flex-direction: column; gap: 4px; }
.player-label strong { font-size: 20px; }
.player-label span { font-size: 17px; color: var(--ink-muted); }
.player-bar { height: 8px; background: var(--rule); display: none; }
.js .player-bar { display: block; }
.player-bar > div { height: 100%; width: 0; background: var(--teal-line); }
.player-fail { background: var(--surface-alt); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.timeline { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 12px; font-size: 17px; border-top: 1px solid var(--rule); padding-top: 20px; }
.timeline dt { color: var(--ink-muted); }
.timeline dd { margin: 0; }
.tel-btn { min-height: 60px; font-size: 20px; background: var(--btn-dark-bg); color: var(--btn-dark-ink); }
.tel-btn:hover { color: var(--btn-dark-ink); }

/* ---- sign in -------------------------------------------------------------------------------- */

.center-page { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--space-8); padding: 32px 0; }
.signin-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.signin-brand img { width: 72px; height: 72px; object-fit: contain; }
.signin-brand h1 { font-size: 44px; letter-spacing: -.01em; line-height: 1.1; }

@media (min-width: 700px) {
  h1 { font-size: 34px; }
  .site-main { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- additions for the volunteer pages ------------------------------------------------------- */

.with-icon { display: flex; align-items: center; gap: 8px; }
.lead-lg { font-size: 22px; line-height: 1.25; margin: 0; }
.coming .btn { align-self: flex-start; }
.center-action { align-self: center; }
.item-with-icon .btn-link { margin-left: -8px; align-self: flex-start; }
.sheet .status-icon { width: 44px; height: 44px; color: var(--accent-text); }
.followed { display: flex; align-items: center; gap: 10px; min-height: 56px; font-size: 18px; }
.preview-list { display: flex; flex-direction: column; gap: 8px; }
.preview-list p { font-size: 18px; font-weight: 700; }

/* Text pages (terms, privacy) */
.prose section { display: flex; flex-direction: column; gap: var(--space-3); }
.prose h2 { font-size: 19px; font-weight: 700; }
.prose ul { padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }
.legal-links { text-align: center; }
.proof-shot { width: 100%; max-width: 360px; border: 1px solid var(--line, #ddd); border-radius: 8px; }
