/* Site styles. Colors and fonts come from Church settings > Brand (/brand.css); tints are mixed from them. */
:root {
  --blue: #3a5ba0; --teal: #1f3b4d; --teal-deep: #13252f; --mint: #f2c879;
  --blue-tint: color-mix(in srgb, var(--blue) 8%, #fff); --mint-tint: color-mix(in srgb, var(--mint) 25%, #fff);
  --charcoal: #424342; --ink: #1c1c1c;
  --line: #e3e6e8; --gray-bg: #f4f6f7;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Inter, system-ui, sans-serif;
  --danger: #8c1d18; --danger-tint: #fde7e5;
  --radius: 16px; --radius-sm: 12px;
  --space-1: 8px; --space-2: 16px; --space-3: 28px; --space-4: 48px;
  --section-y: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
.on-dark a:not(.btn) { color: inherit; }
.on-dark a:not(.btn):hover { color: var(--mint); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--mint); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.h { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1, h2, h3 { margin: 0; }
h2.h { font-size: 48px; line-height: 1.1; color: var(--teal); }
h2.h.h-md { font-size: 40px; }
.on-dark h2.h { color: #fff; }
.h3 { font-size: 28px; line-height: 1.2; }
.h4 { font-size: 22px; line-height: 1.25; }
h2.h.h3 { font-size: 28px; line-height: 1.2; }
.small { font-size: 15px; }
.lead { margin: var(--space-2) 0 0; max-width: 620px; }
.kicker { margin: 0 0 var(--space-1); color: var(--blue); font-weight: 600; }
.on-dark .kicker { color: var(--mint); }
.muted { color: var(--charcoal); }
.on-dark .muted, .on-dark .lead { color: #d7e3e8; }
.meta { margin: 6px 0 0; color: var(--charcoal); font-size: 15px; }
.hint { margin: 4px 0 0; color: var(--charcoal); font-size: 14px; }

/* Spacing utilities (spacing scale only) */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--space-1) !important; } .mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; } .mt-4 { margin-top: var(--space-4) !important; }
.pt-0 { padding-top: 0 !important; }
.align-start { align-items: start !important; } .align-center { align-items: center !important; }
.break-anywhere { overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 16px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; background: transparent; }
.btn-blue { background: var(--blue); color: #fff; } .btn-blue:hover { background: #2453c4; color: #fff; }
.btn-teal { background: var(--teal); color: #fff; } .btn-teal:hover { background: var(--teal-deep); color: #fff; }
.btn-mint { background: var(--mint); color: var(--teal-deep); } .btn-mint:hover { background: color-mix(in srgb, var(--mint) 70%, #fff); color: var(--teal-deep); }
.btn-white { background: #fff; color: var(--teal); } .btn-white:hover { background: var(--blue-tint); color: var(--teal); }
.btn-outline { border-color: var(--teal); color: var(--teal); } .btn-outline:hover { background: var(--teal); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; } .btn-outline-light:hover { background: #fff; color: var(--teal); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: #fff; } .btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-xs { min-height: 30px; padding: 0 14px; font-size: 13px; border-width: 1.5px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn svg { flex: none; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: var(--space-3); }

/* Notices */
.notice { margin: 0 0 20px; padding: 14px 20px; border-radius: var(--radius-sm); background: var(--mint-tint); color: var(--teal-deep); }
.notice-error { background: var(--danger-tint); color: var(--danger); }
.text-danger { color: var(--danger); }

/* Top bar and header */
.topbar { background: var(--teal); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar p { margin: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a:not(.btn) { color: var(--mint); text-decoration: none; } .topbar a:not(.btn):hover { color: #fff; }
.topbar .topbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px 0; }
.topbar .topbar-tools > a:not(.btn) { margin-right: 8px; }
.inline-form { display: inline; margin: 0; }
.site-header { background: #fff; border-bottom: 4px solid var(--blue); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand img.brand-full { height: 56px; max-width: 240px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand .name { font-family: var(--display); font-size: 26px; color: var(--teal); }
.brand .sub { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--blue); }
.menu-toggle { display: none; }

/* Hero */
.hero { min-height: 600px; display: flex; align-items: center; color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--teal-deep) 92%, transparent) 0%, color-mix(in srgb, var(--teal) 70%, transparent) 45%, color-mix(in srgb, var(--teal) 5%, transparent) 100%),
    url("../img/hero-church.jpg") center 60% / cover; }
.hero .wrap { width: 100%; padding-top: 72px; padding-bottom: 128px; }
.hero .actions { margin-top: 36px; }
.hero .eyebrow { margin: 0 0 16px; color: var(--mint); font-weight: 600; font-size: 18px; }
.hero h1 { font-size: 96px; line-height: 1; max-width: 10ch; }
.hero p.sub { margin: 24px 0 0; color: #eef0f2; font-size: 22px; max-width: 36ch; }

/* Schedule card */
.schedule { position: relative; z-index: 2; margin-top: -72px; }
.schedule-card { background: var(--blue); color: #fff; border-radius: var(--radius); box-shadow: 0 18px 40px color-mix(in srgb, var(--teal-deep) 22%, transparent);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-card.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-card > div { padding: 26px 32px; }
.schedule-card > div + div { border-left: 1px solid rgba(255,255,255,.3); }
.schedule-card .label { margin: 0; color: color-mix(in srgb, var(--blue) 13%, #fff); font-size: 15px; font-weight: 600; }
.schedule-card .time { margin: 2px 0 0; font-size: 32px; }
.schedule-card .place { margin: 0; color: #fff; font-weight: 600; }
.schedule-card .place-cell { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head .lead { margin-top: var(--space-1); }
.section-head .actions { margin-top: 0; }
.events { background: var(--blue-tint); }
/* Page layout (apps/core/layout.py): the first section on the home page tucks under the service-times card. */
.lay-first { margin-top: -72px; }
.lay-first > section { padding-top: calc(var(--section-y) + 72px); }
.follow-band { background: var(--blue-tint); padding: 24px 0; }
.lay-first > .follow-band { padding-top: calc(72px + 24px); }
.follow-band .follow-row { margin-bottom: 0; }
.lay-joins-next > .follow-band { padding-bottom: 8px; }
.lay-joined > .events { padding-top: 16px; }
.events.flush { margin-top: 0; padding-top: var(--section-y); }
/* Follow us row, just under the service-times card */
.follow-row { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.follow-label { margin: 0 6px 0 0; font-weight: 600; color: var(--teal); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.grid-3.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.event-card .date { background: var(--blue); color: #fff; padding: 20px 24px; display: flex; align-items: baseline; gap: 12px; }
.event-card .day { font-size: 40px; line-height: 1; }
.event-card .month { font-weight: 600; }
.event-card .body { padding: 22px 24px 26px; }
.event-card h3 { font-size: 24px; }
.feature-event { display: grid; grid-template-columns: 220px minmax(0, 1fr); margin-top: 40px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px color-mix(in srgb, var(--teal-deep) 8%, transparent); }
.feature-event.has-photo { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.8fr); }
.feature-event + .feature-event { margin-top: 20px; }
.feature-date { background: var(--teal); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.feature-date p { margin: 0; }
.feature-days { font-size: 52px; line-height: 1; }
.feature-month { margin-top: 6px !important; font-weight: 600; font-size: 18px; }
.feature-weekdays { margin-top: 4px !important; color: var(--mint); font-size: 15px; }
.feature-body { padding: 28px 32px; }
.feature-body .meta { margin-top: 8px; }
.feature-summary { margin: 12px 0 0; max-width: 60ch; }
.feature-body .actions { margin-top: 20px; }
.feature-photo { width: 100%; height: 100%; object-fit: cover; }
.photo-wide { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.fact-card .small { margin: 4px 0 0; color: #d7e3e8; }
.empty { margin-top: 32px; padding: 32px; background: #fff; border-radius: var(--radius); }

.watch { color: #fff; background: linear-gradient(115deg, var(--teal-deep) 0%, var(--teal-deep) 40%, var(--teal) 40%, var(--teal) 100%); padding: var(--section-y) 0; }
.watch .note { margin: 14px 0 0; }
.split-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 56px; align-items: center; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.live-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #d93025; color: #fff;
  font: 700 13px/1 var(--font); letter-spacing: .04em; padding: 8px 12px; border-radius: 999px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ministries { background: var(--blue); color: #fff; }
.ministries h2.h { color: #fff; } .ministries .lead { color: var(--blue-tint); }
.ministries .grid-3 { margin-top: 44px; }
.ministry-card { display: block; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--teal-deep) 25%, transparent); }
.ministry-card:hover { color: var(--ink); transform: translateY(-2px); transition: transform .15s; }
.ministry-card img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; }
.ministry-card .body { padding: 24px 26px 28px; }
.ministry-card h2, .ministry-card h3 { font-size: 30px; color: var(--teal); }
.ministry-card p { margin: 6px 0 0; font-size: 16px; }
.ministry-card .btn { margin-top: 18px; }
.ministry-card:hover .btn-outline { background: var(--teal); color: #fff; }

.pastor { background: var(--teal); color: #fff; padding: var(--section-y) 0; }
.pastor img, .photo-tall { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: var(--radius); }
.photo-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.pastor .since { margin: 24px 0 0; color: #e3edf0; }
.pastor blockquote { margin: 12px 0 0; font-family: var(--display); font-size: 34px; line-height: 1.25; }
.pastor .who { margin: 24px 0 0; font-weight: 700; }
.pastor .role { margin: 0; color: var(--mint); }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.step { background: var(--blue); color: #fff; border-radius: 14px; padding: 24px 22px; }
.step h3 { font-size: 26px; }
.step p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--blue-tint); }

.faq-section { background: var(--mint-tint); padding: var(--section-y) 0; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.faq-section .photo { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); margin-top: 28px; }
.faqs { display: flex; flex-direction: column; gap: 12px; }
.faqs details { background: #fff; border-radius: 14px; padding: 4px 24px; }
.faqs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; font-weight: 600; font-size: 18px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary svg { flex: none; transition: transform .2s; color: var(--teal); }
.faqs details[open] summary svg { transform: rotate(180deg); }
.faqs details p { margin: 0 0 20px; color: var(--charcoal); white-space: pre-line; }

.prayer .photo-tall { aspect-ratio: 7 / 8; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: var(--space-3); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field label { display: block; font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select { width: 100%; margin-top: 6px; border: 1px solid #8a979d; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; }
.field textarea { resize: vertical; }
.field .error, .errorlist { color: var(--danger); font-size: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 15px; }
.check input { width: 20px; height: 20px; flex: none; }
.check-help { margin: 6px 0 0 30px; color: var(--charcoal); }
.check + .check, .check-help + .check { margin-top: 20px; }
.hp { position: absolute; left: -9999px; }

.give { color: #fff; background: linear-gradient(115deg, var(--teal) 0%, var(--teal) 46%, var(--blue) 46%, var(--blue) 100%); }
.give h2.h { color: #fff; }
.give p { color: #e3edf0; }
.give .split-2 { align-items: center; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.give .lead { margin-top: 20px; }
.give img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }

.messages { list-style: none; margin: 0; padding: 0; }
.messages li { padding: 14px 32px; text-align: center; font-weight: 600; background: var(--mint); color: var(--teal-deep); }
.messages li.error { background: var(--danger-tint); color: var(--danger); }

/* Footer */
.site-footer { background: var(--teal-deep); color: #d7e3e8; padding: 72px 0 40px; font-size: 16px; }
.site-footer a { color: #d7e3e8; text-decoration: none; } .site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px; }
.footer-grid h2 { margin: 0 0 10px; color: #fff; font: 600 16px/1.4 var(--font); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-grid .motto { margin: 0; font-family: var(--display); font-size: 26px; color: var(--mint); }
.footer-grid p { margin: 0; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { width: 200px; height: auto; }
.footer-bottom { border-top: 1px solid rgba(215,227,232,.2); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom p + p { display: flex; gap: 16px; flex-wrap: wrap; }

/* Account pages */
.account-main { max-width: 34rem; margin: 64px auto; padding: 40px; width: calc(100% - 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.account-main h1.h { font-size: 40px; line-height: 1.1; color: var(--teal); }
.account-main h1.h + p, .account-main h1.h + form { margin-top: var(--space-2); }
.account-main form { margin-top: var(--space-3); }
.account-main form > p, .account-main .field { margin: 0 0 var(--space-2); }
.account-main label { display: block; font-weight: 600; font-size: 15px; }
.account-main input:not([type=checkbox]):not([type=radio]), .account-main select { width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; border: 1px solid #8a979d; border-radius: 10px; background: #fff; }
.account-main p:has(> input[type=checkbox]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
.account-main p:has(> input[type=checkbox]) label { display: inline; font-weight: 500; }
.account-main input[type=checkbox] { width: 20px; height: 20px; }
.account-main .helptext, .account-main p > span { display: block; color: var(--charcoal); font-size: 14px; margin-top: 4px; }
.account-main .panel { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.account-main ul:not(.errorlist) { padding-left: 22px; }
.account-main img { margin: var(--space-2) 0; }


/* Inner pages */
.page-hero { color: #fff; padding: 88px 0 96px;
  background: linear-gradient(115deg, var(--teal) 0%, var(--teal) 46%, var(--blue) 46%, var(--blue) 100%); }
.page-hero .eyebrow { margin: 0 0 12px; color: var(--mint); font-weight: 600; font-size: 18px; }
.page-hero h1 { font-size: 64px; line-height: 1.05; max-width: 16ch; }
.page-hero .sub { margin: 20px 0 0; font-size: 21px; max-width: 46ch; color: var(--blue-tint); }
.page-hero + .schedule { margin-top: -48px; }
.narrow { max-width: 820px; }
.prose > * + * { margin-top: 18px; }
.prose h2.h { font-size: 34px; margin-top: 40px; }
.prose h2.h:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 22px; }
.prose ul.docs { padding-left: 0; }
.muted { color: var(--charcoal); }
.fact-card { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 36px; }
.fact-card .label { margin: 0; color: var(--mint); font-weight: 600; font-size: 15px; }
.fact-card .big { margin: 4px 0 0; font-size: 30px; line-height: 1.2; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.value { background: #fff; color: var(--ink); border-radius: 14px; padding: 28px; }
.value h3 { font-size: 26px; color: var(--blue); }
.value p { margin: 10px 0 0; font-size: 16px; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.person img, .person .initials { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 14px; }
.person .initials { background: var(--teal); display: flex; align-items: center; justify-content: center; }
.person .initials span { font-size: 64px; color: var(--mint); }
.person-open .initials { background: var(--blue-tint); border: 2px dashed color-mix(in srgb, var(--blue) 45%, #fff); }
.person-open .initials span { font-size: 40px; color: var(--blue); }
.person h3 { margin-top: 14px; font-size: 22px; }
.person p { margin: 0; color: var(--charcoal); font-size: 15px; }
.truths { margin: 0; padding: 28px 28px 28px 56px; background: #fff; border-radius: var(--radius); columns: 2; column-gap: 40px; }
.truths li { padding: 4px 0; break-inside: avoid; }
.docs { list-style: none; padding: 0; margin: 32px 0 0; }
.doc { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.doc:hover { border-color: var(--blue); color: var(--ink); }
.doc .btn { margin-left: auto; white-space: nowrap; }
.doc:hover .btn-outline { background: var(--teal); color: #fff; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-bg); }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-card { background: var(--blue-tint); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card .label { margin: 0; color: var(--charcoal); font-weight: 600; font-size: 15px; }
.contact-card .big { margin: 6px 0 12px; font-size: 26px; line-height: 1.25; }
.contact-card .big a { color: var(--teal); text-decoration: none; }
.contact-card .btn { margin-top: auto; }
.contact-card .big.compact { font-size: 22px; line-height: 1.35; }
.ministry-card.bordered { border: 1px solid var(--line); box-shadow: none; }
.leader { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 20px; background: var(--blue-tint); border-radius: 14px; }
.leader img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.leader p { margin: 0; }

/* Staff and board portraits can be shown in black and white for consistency (Site settings). */
.portraits-bw .person img, .portraits-bw .leader img, .portraits-bw img.portrait { filter: grayscale(1); }

/* Staff dashboard */
.dash-card { text-decoration: none; color: var(--ink); }
.dash-card:hover { outline: 2px solid var(--blue); color: var(--ink); }
.dash-card p { margin: 0; }
.dash-card .label { margin: 0; }
.dash-card p:last-of-type { margin-bottom: var(--space-2); }
.dash-card:hover .btn-outline { background: var(--teal); color: #fff; }
.big-check { font-size: 18px; font-weight: 600; margin-top: 0; }
.dash-form .field input, .dash-form .field select { margin-top: 6px; }
.dash-form .field select { width: 100%; border: 1px solid #8a979d; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; background: #fff; }

.staff-bar { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 12px;
  background: var(--teal-deep); color: #fff; padding: 10px 12px 10px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 14px; }

@media print { .staff-bar { display: none; } }

/* Tablet and phone */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  :root { --section-y: 72px; }
  h2.h { font-size: 36px; }
  h2.h.h-md { font-size: 32px; }
  .h3, h2.h.h3 { font-size: 24px; }
  .form-grid.cols-3 { grid-template-columns: 1fr; }
  .feature-event, .feature-event.has-photo { grid-template-columns: 1fr; }
  .feature-date { padding: 20px 24px; flex-direction: row; justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .feature-days { font-size: 40px; }
  .feature-month, .feature-weekdays { margin-top: 0 !important; }
  .feature-photo { order: -1; aspect-ratio: 16 / 9; height: auto; }
  .feature-body { padding: 22px 24px 26px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 60px; }
  .hero p.sub { font-size: 19px; }
  .schedule-card, .schedule-card.two, .grid-3, .grid-3.grid-2, .split-2 { grid-template-columns: 1fr; }
  .schedule-card > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  .schedule-card .time { font-size: 26px; }
  .split-5 { grid-template-columns: 1fr; gap: 32px; }
  .span-2, .span-3 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 72px; background: var(--teal); }
  .page-hero h1 { font-size: 42px; }
  .page-hero .sub { font-size: 18px; }
  .truths { columns: 1; }
  .doc { flex-wrap: wrap; }
  .doc .btn { margin-left: 44px; }
  .pastor blockquote { font-size: 26px; }
  .topbar .hide-sm { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--teal);
    border-radius: 999px; background: #fff; color: var(--teal); font: 600 16px var(--font); cursor: pointer; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 4px solid var(--blue); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 12px; width: 100%; }
  .lay-first { margin-top: 0; }
  .lay-first > section { padding-top: var(--section-y); }
  .follow-band, .lay-first > .follow-band { padding: 28px 0; }
  .lay-joins-next > .follow-band { padding-bottom: 8px; }
  .follow-row { justify-content: flex-start; margin-bottom: 24px; }
  .follow-label { flex-basis: 100%; }
  .give { background: var(--teal); }
  .staff-bar { left: 12px; right: 12px; transform: none; flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .staff-bar span { width: 100%; text-align: center; }
  .staff-bar .alert-dot { width: auto; }
  .watch { background: var(--teal-deep); }
  /* Event and ministry cards: two small cards side by side on phones. */
  .grid-3.card-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .card-pairs .event-card .date { padding: 10px 14px; gap: 6px; }
  .card-pairs .event-card .day { font-size: 26px; }
  .card-pairs .event-card .month { font-size: 14px; }
  .card-pairs .event-card .body { padding: 12px 14px 14px; }
  .card-pairs .event-card h3 { font-size: 18px; line-height: 1.2; }
  .card-pairs .event-card .meta { font-size: 13px; margin-top: 6px; }
  .card-pairs .event-snippet { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-pairs .ministry-card img { aspect-ratio: 4 / 3; height: auto; }
  /* Featured events stay full width (they have sign-up buttons) but get compact on phones. */
  .feature-date { padding: 12px 16px; }
  .feature-days { font-size: 30px; }
  .feature-month { font-size: 15px; }
  .feature-weekdays { font-size: 13px; }
  .feature-body { padding: 14px 16px 16px; }
  .feature-body .h3 { font-size: 21px; }
  .feature-body .meta { font-size: 14px; }
  .feature-summary { font-size: 15px; margin-top: 8px; }
  .feature-body .actions { margin-top: 12px; gap: 8px; }
  .feature-body .actions .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
  .feature-event + .feature-event { margin-top: 12px; }
  .card-pairs .ministry-card .body { padding: 12px 14px 14px; }
  .card-pairs .ministry-card h3 { font-size: 20px; }
  .card-pairs .ministry-card p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-pairs .ministry-card .btn { margin-top: 10px; min-height: 36px; padding: 0 12px; font-size: 14px; white-space: normal; text-align: center; }
}
@media (max-width: 520px) {
  .steps, .footer-grid, .values { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Staff dashboard components (see docs/UI-STANDARD.md, section 8) */
.staff-panel { max-width: 820px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; padding: 12px 16px; background: var(--blue-tint); color: var(--teal); font-size: 14px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tr.is-off td { color: var(--charcoal); background: #fafafa; }
.data-table .cell-actions { text-align: right; white-space: nowrap; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--teal); font-size: 13px; font-weight: 600; }
.tag-warn { background: #fff6dc; color: #6b4e00; }
.tag-ok { background: var(--mint-tint); color: var(--teal-deep); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.choice-list { display: grid; gap: 10px; margin-top: var(--space-2); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.choice input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.choice > span { display: flex; flex-direction: column; gap: 2px; }
.optional { font-weight: 400; color: var(--charcoal); }
.log-box { margin-top: var(--space-2); max-height: 420px; overflow: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--teal-deep); color: #d7e3e8; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash-grid { grid-template-columns: 1fr; } }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.job-row .hint { margin-top: 2px; }
.job-row .btn { flex: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .job-row { flex-direction: column; align-items: flex-start; } }

/* Facebook section */
.facebook-section { background: var(--blue-tint); }
.fb-post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px color-mix(in srgb, var(--teal-deep) 8%, transparent); }
.fb-post img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.fb-post-body { padding: 24px 28px 28px; }
.fb-post-body .meta { margin: 0; }
.fb-post-text { margin: 10px 0 18px; white-space: pre-line; }
.day-times { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; color: #d7e3e8; font-size: 15px; }
.day-times strong { color: #fff; font-weight: 600; margin-right: 6px; }
.day-times span { color: var(--mint); font-size: 14px; }
.signup-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cell-wrap { white-space: pre-line; max-width: 280px; }
.prayer-list { display: grid; gap: 16px; max-width: 820px; }
.prayer-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: #fff; }
.prayer-item.is-new { border-left: 4px solid var(--blue); }
.prayer-head .meta { margin-top: 4px; }
.prayer-message { margin: 12px 0 0; white-space: pre-line; }
.prayer-head .h4 { margin: 0; }
.rules { margin-top: 8px; font-size: 15px; }
.rules summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.rules .prose { margin-top: 8px; }
.rule-list { margin: 8px 0 0 30px; padding-left: 20px; color: var(--charcoal); }
.rule-list li + li { margin-top: 4px; }
.staff-panel .actions .hint { align-self: center; margin: 0; }

/* Needs attention: red dot with a count (staff bar, top bar, sidebar) and the list on the dashboard */
.alert-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
  margin-left: 8px; border-radius: 999px; background: #d93025; color: #fff; font: 700 12px/1 var(--font); box-sizing: border-box; }
.staff-bar .staff-who-link { color: #fff; text-decoration: none; display: inline-flex; align-items: center; }
.staff-bar .staff-who-link:hover { color: var(--mint); }
.attention { margin: 0 0 28px; padding: 20px 24px; border: 1px solid #f3c2bd; border-radius: var(--radius); background: #fff7f6; max-width: 820px; }
.attention ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.attention li { display: flex; align-items: center; gap: 4px; }
.attention li .alert-dot { margin: 0 8px 0 0; }
.attention li.is-urgent a { color: var(--danger); font-weight: 600; }
.attention-clear { max-width: 820px; }

/* Social buttons: each platform's own color, white text (all pass 4.5:1). Add a line for a new platform. */
.btn-social { color: #fff; border-color: transparent; }
.btn-social:hover { color: #fff; filter: brightness(1.15); }
.social-facebook { background: #1458c4; } .social-instagram { background: #b5306f; } .social-youtube { background: #c4120c; }
.social-tiktok, .social-x, .social-threads { background: #111111; } .social-spotify { background: #127a3a; }
.social-other { background: var(--teal); }
.social-edit-list { display: grid; gap: 12px; }
.social-edit { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px max-content max-content; gap: 16px; align-items: end; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.social-chip { justify-self: start; align-self: center; pointer-events: none; }
.social-edit .field label + input { margin-bottom: 0; }
.social-edit .field input + label { margin-top: 10px; }
.social-remove, .social-enabled { align-self: center; margin: 0; }
@media (max-width: 760px) { .social-edit { grid-template-columns: 1fr 1fr; } .social-edit .field:not(.social-order) { grid-column: 1 / -1; } }

.event-snippet { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--charcoal); }

/* Weekly announcements (home page). Hidden entirely when there are none. */
.announcements { background: #fff; }
.kicker-blue { margin: 0 0 6px; color: var(--blue); font-weight: 600; }
.ann-list { border-bottom: 1px solid var(--line); }
.ann-item { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.ann-item h3 { margin: 0; font-size: 26px; line-height: 1.2; color: var(--teal); }
.ann-when { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--charcoal); }
.ann-item > p { margin: 0; }
@media (max-width: 760px) { .ann-item { grid-template-columns: 1fr; gap: 8px; } }

/* Printable bulletin: one letter-size page. */
.bulletin-page { max-width: 8.5in; margin: 32px auto; padding: 0.6in; background: #fff; box-shadow: 0 12px 30px color-mix(in srgb, var(--teal-deep) 15%, transparent); font-size: 14px; }
.bulletin-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 3px solid var(--blue); }
.bulletin-head img { height: 40px; width: auto; }
.bulletin-head .date { font-weight: 600; color: var(--charcoal); }
.bulletin-page h1, .bulletin-page h2 { color: var(--teal); margin: 22px 0 0; }
.bulletin-page h1 { font-size: 30px; } .bulletin-page h2 { font-size: 22px; }
.bulletin-item { margin-top: 14px; }
.bulletin-item p { margin: 0; }
.bulletin-item .title { font-weight: 700; color: var(--teal); }
.bulletin-events { margin: 8px 0 0; padding: 0; list-style: none; }
.bulletin-events li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.bulletin-foot { margin-top: 32px; font-size: 12px; color: var(--charcoal); }
.bulletin-tools { text-align: center; margin-top: 24px; }
@media print {
  @page { size: letter; margin: 0.5in; }
  body.bulletin { background: #fff; }
  .bulletin-tools { display: none; }
  .bulletin-page { margin: 0; padding: 0; box-shadow: none; max-width: none; }
}
.brand-inline { display: inline-flex; align-items: center; gap: 10px; }
.brand-inline .h { font-size: 22px; color: var(--teal); }
.announcements .section-head { margin-bottom: 24px; }

/* Site alert banner: very top of every public page. Red = urgent, blue = notice. */
.site-alert { color: #fff; }
.site-alert-urgent { background: var(--danger); }
.site-alert-notice { background: var(--blue); }
.site-alert .wrap { display: flex; align-items: center; gap: 14px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.site-alert p { margin: 0; flex: 1; font-weight: 600; }
.site-alert svg { flex: none; }
.site-alert.is-preview { border-radius: var(--radius-sm); margin-top: 12px; }
@media (max-width: 640px) { .site-alert .wrap { flex-wrap: wrap; } .site-alert p { flex-basis: calc(100% - 34px); } }

.plain-fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.plain-fieldset legend { padding: 0; font-weight: 600; font-size: 15px; }
.plain-fieldset .choice-list { margin-top: 8px; }
.choice-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.month-heading { margin: 40px 0 0; font-size: 28px; color: var(--teal); }
.feature-event + .month-heading { margin-top: 48px; }

/* Missions and giving campaigns */
.goal { margin: 14px 0; }
.goal-bar { display: block; width: 100%; height: 12px; border: 0; border-radius: 999px; background: var(--mint-tint); overflow: hidden; -webkit-appearance: none; appearance: none; }
.goal-bar::-webkit-progress-bar { background: var(--mint-tint); border-radius: 999px; }
.goal-bar::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.goal-bar::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.goal-text { margin: 6px 0 0; font-size: 15px; color: var(--charcoal); }
.campaign-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; background: #fff; border-radius: var(--radius); }
.campaign-band .actions { margin: 0; flex: none; }
.update-item { padding: 20px 0; border-top: 1px solid var(--line); }
.update-item h3 { margin: 4px 0 8px; color: var(--teal); }
@media (max-width: 760px) { .campaign-band { flex-direction: column; align-items: flex-start; } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 20px; margin-top: 8px; }
.check-grid .check { margin: 6px 0; }
.social-enabled { white-space: nowrap; }

/* Our team: light-blue band, white cards with a colored edge per group (blue, teal, mint in turn) */
.team-band { background: var(--blue-tint); }
.team-band .team-section { --accent: var(--blue); }
.team-band .accent-teal { --accent: var(--teal); }
.team-band .accent-mint { --accent: #2f9e7d; }
.team-band .team-section + .team-section { padding-top: 0; }
.team-band .team-section h2 { color: var(--teal); }
.team-band .person { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border-top: 6px solid var(--accent); box-shadow: 0 10px 28px color-mix(in srgb, var(--teal) 10%, transparent); }
.team-band .person img, .team-band .person .initials { border-radius: 0; }
.team-band .person .initials { background: var(--accent); }
.team-band .accent-mint .person .initials span, .team-band .accent-blue .person .initials span { color: #fff; }
.team-band .person-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.team-band .person-body h3 { margin-top: 0; color: var(--teal); }
.team-band .person-body .btn { align-self: flex-start; }
.team-band .person-open { border-top-style: dashed; }
.team-band .person-open .initials { background: var(--mint-tint); border: 0; border-bottom: 2px dashed color-mix(in srgb, var(--mint) 85%, #fff); }
.team-band .team-section .person-open .initials span { color: var(--teal); }
.serve-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; background: #fff; border-radius: var(--radius); border-top: 6px solid var(--blue); box-shadow: 0 10px 28px color-mix(in srgb, var(--teal) 8%, transparent); }
.serve-card h3 { margin: 0; font-size: 26px; color: var(--teal); }
.serve-card p { margin: 0; }
.serve-card .btn { margin-top: auto; align-self: flex-start; }
.serve-card .meta { font-weight: 600; }

/* Watch page */
.watch-page h1 { font-size: 48px; line-height: 1.1; margin: 0; }
.watch-page .watch-player { max-width: 960px; }
.watch-page .sub { margin: 8px 0 0; color: #d7e3e8; }
.watch-search { display: flex; gap: 10px; align-items: center; }
.watch-search input { min-width: 240px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.video-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-sm); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--teal) 8%, transparent); }
.video-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--teal-deep); }
.video-card:hover .video-title { text-decoration: underline; }
.video-card.is-playing { outline: 3px solid var(--blue); }
.video-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.video-title { font-size: 18px; line-height: 1.25; color: var(--teal); }
.pager { align-items: center; }
@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .watch-search { flex-wrap: wrap; } .watch-page h1 { font-size: 34px; } }
.watch-search input { height: 40px; padding: 0 14px; border: 1px solid #8a979d; border-radius: 999px; font: inherit; font-size: 15px; background: #fff; }
.watch-search input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Plan your visit page */
.visit-hero { color: #fff; background: linear-gradient(115deg, var(--teal) 0%, var(--teal) 52%, var(--blue) 52%, var(--blue) 100%); padding: 72px 0 104px; }
.visit-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.visit-hero .eyebrow { margin: 0 0 12px; color: var(--mint); font-weight: 600; font-size: 18px; }
.visit-hero h1 { font-size: 60px; line-height: 1.05; margin: 0; }
.visit-hero .sub { margin: 20px 0 28px; font-size: 20px; max-width: 34ch; color: var(--blue-tint); }
.visit-hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px color-mix(in srgb, var(--teal-deep) 30%, transparent); }
.visit-hero + .schedule { margin-top: -56px; }
.visit-steps { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.visit-steps li { background: var(--blue-tint); border-radius: var(--radius-sm); padding: 22px 20px; }
.visit-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px; }
.visit-steps h3 { margin: 0 0 6px; font-size: 19px; color: var(--teal); }
.visit-steps p { margin: 0; font-size: 15px; color: var(--charcoal); }
.visit-steps a { font-weight: 600; }
.visit-plan { background: var(--teal); color: #fff; padding: var(--section-y) 0; }
.visit-plan .split-2 { align-items: center; }
.visit-plan h2 { color: #fff; }
.promises { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 14px; }
.promises li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.promises li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mint) url("../img/check-teal.svg") center / 16px no-repeat; }
.plan-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; }
.plan-card .form-grid { margin-top: 0; }
.visit-more { padding: 56px 0; border-top: 1px solid var(--line); }
.visit-more .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.visit-more h2 { margin: 0; font-size: 30px; }
@media (max-width: 900px) {
  .visit-hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .visit-hero h1 { font-size: 42px; }
  .visit-plan .split-2 { grid-template-columns: 1fr; gap: 32px; }
  /* Compact rows on phones: number on the left, text beside it */
  .visit-steps { grid-template-columns: 1fr; gap: 10px; }
  .visit-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 14px 16px; }
  .visit-steps li::before { margin: 0; grid-row: span 2; }
}

/* Home: "Visiting for the first time?" band (questions now live on Plan your visit). */
.visit-band { background: var(--mint-tint); padding: var(--section-y) 0; }
.visit-band .split-2 { align-items: center; }
.visit-band .actions { margin-top: 28px; }
.visit-band .photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.field select { background-color: #fff; color: var(--ink); }
.phone-only { display: none; }

/* Phones (docs/UI-STANDARD.md section 9). Always on phones: */
@media (max-width: 640px) {
  .phone-hide { display: none; }
  .phone-only { display: flex; }
  /* Button pairs fit side by side instead of stacking. */
  .actions { gap: 10px; }
  .btn:not(.btn-sm):not(.btn-xs) { padding-left: 18px; padding-right: 18px; font-size: 15px; }
  /* Follow us: one row of round icon buttons. */
  .follow-row { gap: 10px; }
  .follow-row .follow-label { flex-basis: 100%; }
  .follow-row .btn-social { width: 44px; min-height: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .follow-row .btn-social svg { width: 20px; height: 20px; margin: 0; }
  .follow-row .social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Take your next step: compact rows. */
  .steps { gap: 10px; margin-top: 24px; }
  .step { padding: 14px 18px; border-radius: 12px; }
  .step h3 { font-size: 20px; }
  .step p { margin-top: 4px; font-size: 14px; line-height: 1.45; }
  /* Core values: one panel with dividers instead of tall cards. */
  .values { gap: 0; margin-top: 24px; background: #fff; border-radius: var(--radius); padding: 4px 18px; }
  .value { padding: 16px 0; border-radius: 0; background: none; }
  .value + .value { border-top: 1px solid color-mix(in srgb, var(--blue) 15%, #fff); }
  .value h3 { font-size: 20px; }
  .value p { margin-top: 6px; font-size: 15px; line-height: 1.5; }
  /* Our team: people two across; open positions as one short full-width row. */
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
  .team-band .person-body { padding: 12px 14px 14px; }
  .team-band .person-body h3 { font-size: 18px; }
  .team-band .person-body p { font-size: 14px; }
  .team-band .person-open { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .team-band .person-open .initials { flex: none; width: 88px; aspect-ratio: auto; align-self: stretch; }
  .team-band .person-open .initials span { font-size: 20px; }
  .team-band .person-open .person-body { flex-direction: column; }
  .team-band .person-open .btn { margin-top: 10px; white-space: nowrap; }
  /* Footer: link groups two across, the church's name and address across the top. */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid ul { gap: 2px; }
  .footer-grid ul a { display: inline-block; padding: 6px 0; }
}

/* Page layout: Show / Hide on computers and phones, and Short on phones (apps/core/layout.py). */
.short-only, .short-toggle { display: none; }
@media (min-width: 641px) {
  .lay-hide-computer { display: none !important; }
}
@media (max-width: 640px) {
  .lay-hide-phone { display: none !important; }
  .lay-short .short-only { display: flex; }
  html.js .lay-short:not(.is-open) .short-more { display: none; }
  html.js .lay-short:not(.is-open) .short-toggle { display: inline-flex; }
  html:not(.js) .lay-short .short-only:has(.short-toggle) { display: none; }
  .lay-short .short-photo { display: none; }
  .lay-short .watch .video { display: none; }
  .lay-short .fb-post img { display: none; }
  .lay-short .steps { display: none; }
  .lay-short.lay-next .section-head { margin-bottom: 0; }
  /* Pastor's welcome: a small round photo. */
  .lay-short .pastor .split-5 { gap: 20px; }
  .lay-short .pastor img.span-2 { width: 120px; height: 120px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
  /* Our story: the first paragraph, then Read more. */
  html.js .lay-short:not(.is-open) .story-text > :nth-child(n+2) { display: none; }
  /* Core values: titles only; tap one to read it. */
  html.js .lay-short .value:not(.is-open) p { display: none; }
  html.js .lay-short .value-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; }
  html.js .lay-short .value-plus::before { content: "+"; font: 600 26px/1 var(--font); color: var(--blue); }
  html.js .lay-short .value.is-open .value-plus::before { content: "\2212"; }
  html.js .lay-short .value { padding: 6px 0; }
}

/* "This website is paused" (templates/paused.html) */
.paused { max-width: 36rem; margin: 18vh auto 0; padding: 0 20px; text-align: center; }
