/* ============================================================
   Alive Church - wireframe stylesheet
   Structure over decoration, but spacing is a real system.
   All vertical space comes from the scale below. Nothing relies
   on browser default margins.
   ============================================================ */

:root {
  /* Brand (survives into final design) */
  --blue: #00AEF0;
  --blue-light: #70D7FD;
  --blue-deep: #0083A8;
  --ink: #1A1A1A;
  --gray: #5C6670;
  --line: #E3E7EA;
  --paper: #fff;
  --wash: #F5F7F9;
  --group: #2E9E6B;        /* small group events on the calendar */
  --group-wash: #E4F5EC;
  --group-hover: #C8EBD9;

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing scale - the only vertical values allowed */
  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;  --s9: 6rem;

  --control-h: 2.6rem;
  --maxw: 1080px;
  --measure: 34em;   /* readable line length */
  --radius: 10px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd, table, form {
  margin: 0; padding: 0;
}
body {
  font-family: var(--font-body); color: var(--ink); background: var(--paper);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p, li { max-width: none; }
a { color: var(--blue-deep); }
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
ul, ol { padding-left: 1.2em; }

/* ---------- flow: the one rhythm rule ----------
   Every direct child gets space above it. Headings get more.
   Override per element with --flow. */
.flow > * + *            { margin-top: var(--flow, var(--s4)); }
.flow > h2               { --flow: var(--s7); }
.flow > h3               { --flow: var(--s5); }
.flow > h2 + *           { --flow: var(--s3); }
.flow > h3 + *           { --flow: var(--s2); }
.flow > .btn,
.flow > .cta-row         { --flow: var(--s5); }

/* ---------- wireframe markers ---------- */
.wf-banner {
  background: repeating-linear-gradient(45deg,#fde68a,#fde68a 12px,#fbbf24 12px,#fbbf24 24px);
  color: var(--ink); text-align: center; font-size: .78rem; font-weight: 600;
  padding: var(--s1) var(--s3); letter-spacing: .02em;
}
.wf-media {
  background: var(--wash); border: 2px dashed #C7CDD2; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #98A1A9; font-size: .82rem; font-weight: 600; width: 100%; padding: var(--s4);
}
.wf-fact {
  background: #FEF3C7; padding: .12em .45em; border-radius: 3px;
  font-size: .88em; box-decoration-break: clone;
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; gap: var(--s5);
  padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 50;
}
.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); }
.brand-word { letter-spacing: .13em; font-family: var(--font-display); font-size: .95rem; }
.brand-word strong { font-weight: 700; }
.site-nav { margin-left: auto; display: flex; gap: var(--s5); align-items: center; }
/* Plain nav links only. :not(.btn) keeps these rules from overriding button
   padding via specificity, which silently crushed the nav CTA. */
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500;
  font-size: .95rem; padding: var(--s1) 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--blue-deep); }
.site-nav a:not(.btn).on { color: var(--blue-deep); border-bottom-color: var(--blue); }
.site-nav .nav-cta { padding: var(--s2) var(--s4); font-size: .9rem; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: var(--s3) var(--s5); border-radius: 8px;
  text-decoration: none; font-weight: 600; font-family: var(--font-display);
  font-size: .95rem; line-height: 1.2; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.btn-primary:hover { background: #006D8C; border-color: #006D8C; }
.btn-secondary { border-color: var(--blue-deep); color: var(--blue-deep); background: transparent; }
.btn-secondary:hover { background: #EAF7FC; }
.btn-big { font-size: 1.05rem; padding: var(--s4) var(--s6); }
.cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; }
section.band { padding: var(--s8) var(--s5); }
section.band.alt { background: var(--wash); }
.hero { text-align: center; padding: var(--s9) var(--s5) var(--s7); max-width: 46rem;
  margin-inline: auto; }
.hero.tight { padding-bottom: var(--s5); }
.hero .kicker { color: var(--blue-deep); font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; font-size: .8rem; }
.hero .lead { font-size: 1.18rem; color: var(--gray); max-width: var(--measure);
  margin-inline: auto; }
.hero .cta-row { justify-content: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.grid-2.cards { align-items: stretch; gap: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s5); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); display: flex; flex-direction: column;
}
.card > * + * { margin-top: var(--s3); }
.card > h3 { margin-top: var(--s4); }
.card > .wf-media:first-child {
  margin: calc(var(--s5) * -1) calc(var(--s5) * -1) 0; width: auto;
  border-radius: var(--radius) var(--radius) 0 0; border-width: 0 0 1px;
}
.card > .wf-media:first-child + h3 { margin-top: var(--s5); }
.card > h3:first-child { margin-top: 0; }

/* ---------- photos ---------- */
.photo { display: block; width: 100%; height: auto; object-fit: cover;
  border-radius: var(--radius); background: var(--wash); }
.card > .photo:first-child {
  margin: calc(var(--s5) * -1) calc(var(--s5) * -1) 0;
  width: calc(100% + var(--s5) * 2); max-width: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card > .photo:first-child + h3 { margin-top: var(--s5); }

/* Documentary placeholder until the film is delivered */
.coming-soon { background: var(--ink); color: var(--paper); border-radius: var(--radius);
  aspect-ratio: 16/9; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; gap: var(--s2); padding: var(--s6); }
.coming-soon .eyebrow { color: var(--blue-light); }
.coming-soon h3 { color: var(--paper); }
.coming-soon p { max-width: 30rem; opacity: .85; }
.card.highlight { border: 2px solid var(--blue); background: #F1FAFE; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--blue); }

/* ---------- text bits ---------- */
.eyebrow { color: var(--blue-deep); font-weight: 600; text-transform: uppercase;
  letter-spacing: .09em; font-size: .76rem; }
.muted { color: var(--gray); }
.small { font-size: .86rem; }
.lead { font-size: 1.1rem; color: var(--gray); }
.crumb { font-size: .9rem; }

.tag-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.tag { background: var(--wash); border: 1px solid var(--line); border-radius: 999px;
  padding: .18rem .7rem; font-size: .78rem; color: var(--gray); }

/* ---------- fact strip ---------- */
.fact-strip {
  display: flex; gap: var(--s8); justify-content: center; flex-wrap: wrap;
  padding: var(--s6) var(--s5); background: var(--ink); color: #fff; text-align: center;
}
.fact-strip > div { display: flex; flex-direction: column; gap: var(--s1); font-size: .92rem; }
.fact-strip a { color: var(--blue-light); }
.fact-strip .big { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

/* ---------- promises + steps ---------- */
.promise { border-left: 4px solid var(--blue); padding: var(--s2) 0 var(--s2) var(--s4); }
.promise strong { font-family: var(--font-display); }
.steps { display: grid; gap: var(--s6); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); align-items: start; }
.step > div > * + * { margin-top: var(--s2); }
.step-num { background: var(--blue-deep); color: #fff; width: 38px; height: 38px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); }

/* ---------- faq ---------- */
.faq > details { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq > details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; font-family: var(--font-display); }
.faq summary::marker { color: var(--blue-deep); }
.faq details p { margin-top: var(--s3); color: var(--gray); }

/* Two independent columns on wide screens. Deliberately NOT a grid across
   both columns: a grid shares row heights, so opening a tall answer on one
   side leaves dead space on the other. Each column flows on its own. */
.faq-cols { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 900px) {
  .faq-cols { grid-template-columns: 1fr 1fr; column-gap: var(--s7);
    align-items: start; }
}
/* Second column starts its own stack, so it needs its own top border. */
.faq-cols > .faq > details:first-of-type { border-top: 1px solid var(--line); }

/* ---------- forms ---------- */
form.card > p { display: flex; flex-direction: column; gap: var(--s2); }
form label { font-weight: 500; font-size: .92rem; }
input, select, textarea {
  padding: var(--s3); border: 1px solid var(--line); border-radius: 8px;
  width: 100%; background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- calendar ---------- */
/* Filter toolbar: one surface, controls all the same height, custom select
   chrome so a <select> and an <input> do not look like different species. */
.cal-controls { display: flex; justify-content: space-between; gap: var(--s5);
  flex-wrap: wrap; align-items: flex-end;
  background: var(--wash); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s4) var(--s5); }
.view-toggle { display: flex; gap: var(--s2); }
.view-toggle .btn { padding: 0 var(--s4); height: var(--control-h);
  display: inline-flex; align-items: center; background: var(--paper); }
.view-toggle .btn.on { background: var(--blue-deep); color: #fff;
  border-color: var(--blue-deep); }

.filters { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: flex-end; }
.filters label { font-size: .78rem; color: var(--gray); display: flex;
  flex-direction: column; gap: var(--s2); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; }
.filters select, .filters input {
  height: var(--control-h); padding: 0 var(--s3); min-width: 11rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  font-size: .95rem; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--ink);
}
.filters select {
  appearance: none; -webkit-appearance: none; padding-right: var(--s6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%235C6670'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s3) center;
  cursor: pointer;
}
.filters select:hover { border-color: #C2CAD1; }
.filters input::placeholder { color: #9AA5B0; }

/* Month nav: title leads, arrows grouped together as compact controls
   rather than two big buttons pinned to opposite edges. */
.cal-head { display: flex; align-items: center; gap: var(--s4);
  margin: var(--s5) 0 var(--s4); }
.cal-head h2 { margin: 0; font-size: 1.4rem; }
.cal-nav { margin-left: auto; display: flex; gap: var(--s2); }
.cal-nav .btn { width: var(--control-h); height: var(--control-h); padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; }
/* Sits inside .cal-nav, so override the square arrow-button width or the
   label gets clipped. */
.cal-nav .cal-today { width: auto; padding: 0 var(--s4); }
/* minmax(0,1fr), not 1fr: plain 1fr lets a long event title widen its
   column, so the seven days stop being equal. */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-grid .dow { background: var(--wash); font-weight: 600; font-size: .76rem;
  text-align: center; padding: var(--s2); color: var(--gray);
  border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 96px; min-width: 0; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: var(--s2); font-size: .8rem; }
.cal-cell:nth-child(7n+7) { border-right: 0; }
.cal-cell .d { color: #9AA3AB; font-weight: 600; }
.cal-cell.other { background: #FBFCFD; }
.cal-ev { display: block; background: #DFF4FD; border-left: 3px solid var(--blue);
  border-radius: 3px; padding: .12rem .35rem; margin-top: var(--s1); cursor: pointer;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .76rem; }
.cal-ev:hover { background: var(--blue-light); }
.cal-ev.sg { background: var(--group-wash); border-left-color: var(--group); }
.cal-ev.sg:hover { background: var(--group-hover); }

.ev-card { display: grid; grid-template-columns: 68px 1fr; gap: var(--s5);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
  text-decoration: none; color: inherit; }
.ev-card + .ev-card { margin-top: var(--s4); }
.ev-card:hover { border-color: var(--blue); }
.ev-card.sg { border-left: 3px solid var(--group); }
.ev-card.sg:hover { border-color: var(--group); }
.ev-card.sg .ev-date { background: var(--group-wash); }
.ev-card.sg .ev-date .mo { color: var(--group); }
.ev-card.sg:hover h3 { color: var(--group); }
.ev-date { background: var(--wash); border-radius: 8px; text-align: center;
  padding: var(--s2) 0; height: fit-content; }
.ev-date .mo { display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--blue-deep); font-weight: 700; }
.ev-date .dy { display: block; font-size: 1.45rem; font-weight: 700;
  font-family: var(--font-display); line-height: 1.1; }
.ev-body > * + * { margin-top: var(--s2); }
.ev-card:hover h3 { color: var(--blue-deep); }

dialog.ev-dialog { border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s6); max-width: 30rem; width: 92vw; }
dialog.ev-dialog::backdrop { background: rgba(0,0,0,.4); }
dialog.ev-dialog > * + * { margin-top: var(--s3); }
dialog.ev-dialog h3 { margin-top: var(--s1); }

.meta-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.meta-table th { text-align: left; color: var(--gray); font-weight: 600; width: 34%;
  padding: var(--s2) 0; vertical-align: top; }
.meta-table td { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.meta-table tr:last-child td, .meta-table tr:last-child th { border-bottom: 0; }

/* ---------- detail pages ---------- */
.detail-wrap { padding: var(--s7) var(--s5) var(--s8); max-width: var(--maxw);
  margin-inline: auto; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 21rem;
  gap: var(--s8); align-items: start; margin-top: var(--s5); }
.detail-grid > div > * + * { margin-top: var(--s4); }
.detail-grid > div > h2 { margin-top: var(--s7); }
.detail-grid > div > h2 + * { margin-top: var(--s3); }
.detail-side > * + * { margin-top: var(--s4); }
.detail-side h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gray); font-weight: 600; }
.detail-side .card > * + * { margin-top: var(--s2); }
.detail-side .card > h3 { margin-top: var(--s5); }
.detail-side .card > h3:first-child { margin-top: 0; }
.side-cta { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- sermons ---------- */
a.sermon-row { text-decoration: none; color: inherit; }
a.sermon-row:hover h3 { color: var(--blue-deep); }
.sermon-row { display: grid; grid-template-columns: 15rem minmax(0,1fr); gap: var(--s5);
  padding: var(--s5) 0; border-bottom: 1px solid var(--line); align-items: start; }
.sermon-row > div > * + * { margin-top: var(--s2); }
.sermon-row .meta { color: var(--gray); font-size: .9rem; }

/* ---------- footer ---------- */
/* No top margin: sections already carry bottom padding, and a margin here
   shows the white body between a coloured section and the coloured footer. */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) var(--s5);
  background: var(--wash); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6);
  max-width: var(--maxw); margin-inline: auto; }
.foot-grid > * > * + * { margin-top: var(--s2); }
.foot-about .brand-word { font-size: .9rem; }
.foot-col h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gray); font-weight: 600; font-family: var(--font-body); }
.foot-col ul { list-style: none; padding: 0; }
.foot-col li + li { margin-top: var(--s1); }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-note { text-align: center; color: #98A1A9; font-size: .84rem; margin-top: var(--s6); }
.foot-note a { color: inherit; }
.foot-social { display: flex; gap: var(--s4); }
.foot-social a { color: var(--gray); padding: var(--s1); margin: calc(var(--s1) * -1); }
.foot-social a:hover, .foot-social a:focus-visible { color: var(--blue-deep); }

.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: var(--blue-deep);
  color: #fff; text-align: center; padding: var(--s4); font-weight: 700;
  font-family: var(--font-display); text-decoration: none; z-index: 60; display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .sermon-row { grid-template-columns: 12rem minmax(0,1fr); }
}
@media (max-width: 820px) {
  :root { --s8: 2.5rem; --s9: 3.5rem; }
  .grid-2, .grid-3, .grid-4, .foot-grid, .sermon-row { grid-template-columns: 1fr; }
  .grid-2 { gap: var(--s5); }
  .nav-toggle { display: block; margin-left: auto; background: none;
    border: 1px solid var(--line); border-radius: 8px; padding: var(--s2) var(--s4);
    font-weight: 600; font-family: var(--font-display); }
  .site-header { flex-wrap: wrap; position: relative; gap: var(--s3); }
  .site-nav { display: none; }
  body.nav-open .site-nav { display: flex; flex-direction: column; align-items: stretch;
    gap: var(--s3); position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: var(--s5); border-bottom: 1px solid var(--line); }
  .sticky-cta { display: block; }
  body { padding-bottom: 3.5rem; }
  .cal-cell { min-height: 62px; padding: var(--s1); }
  .cal-ev { font-size: .68rem; }
  .fact-strip { gap: var(--s5); }
  .cal-controls { flex-direction: column; align-items: stretch; }
  .filters select, .filters input { min-width: 0; width: 100%; }
}

/* ---------- video hero ---------- */
.hero-video { position: relative; isolation: isolate; }
.hero-video-media { position: relative; width: 100%; aspect-ratio: 16/9;
  max-height: 78vh; overflow: hidden; background: var(--ink); }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
/* Scrim keeps the headline readable over any frame of the footage */
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%); }
.hero-video-copy { position: absolute; inset-inline: 0; bottom: 0;
  padding: var(--s8) var(--s5); text-align: center; color: #fff;
  max-width: 46rem; margin-inline: auto; }
.hero-video-copy .kicker { color: #fff; opacity: .85; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; font-size: .8rem; }
.hero-video-copy h1 { color: #fff; text-wrap: balance; }
.hero-video-copy .lead { color: rgba(255,255,255,.92); max-width: var(--measure);
  margin-inline: auto; }
.hero-video-copy .cta-row { justify-content: center; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

@media (max-width: 820px) {
  /* Portrait phones: stop forcing 16:9, let the copy sit below the frame. */
  .hero-video-media { aspect-ratio: 4/3; max-height: 52vh; }
  .hero-video-copy { position: static; color: var(--ink); padding: var(--s6) var(--s5); }
  .hero-video-copy h1 { color: var(--ink); }
  .hero-video-copy .kicker { color: var(--blue-deep); opacity: 1; }
  .hero-video-copy .lead { color: var(--gray); }
  .btn-ghost { background: transparent; color: var(--blue-deep);
    border-color: var(--blue-deep); backdrop-filter: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.25) 100%); }
}

/* ---------- values + beliefs (about page) ---------- */
.values-grid { align-items: start; gap: var(--s5) var(--s6); }
.value-item { display: grid; grid-template-columns: 2rem 1fr; gap: var(--s4);
  align-items: start; }
.value-item > div > * + * { margin-top: var(--s1); }
.value-num { font-family: var(--font-display); font-weight: 700;
  color: var(--blue); font-size: 1.05rem; line-height: 1.3; }
.beliefs { display: grid; gap: var(--s5); padding-left: 1.3em; }
.beliefs li { padding-left: var(--s2); }
.beliefs li::marker { color: var(--blue-deep); font-weight: 700;
  font-family: var(--font-display); }

/* ---------- giving page ---------- */
.give-layout { display: grid; grid-template-columns: minmax(0,1fr) 20rem;
  gap: var(--s7); align-items: start; }
.give-form { padding: var(--s6); }
.field-label { font-weight: 600; font-size: .92rem; display: block;
  margin-bottom: var(--s2); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--wash); }
.seg-btn { border: 0; background: transparent; padding: var(--s2) var(--s5);
  border-radius: 999px; font-weight: 600; font-family: var(--font-display);
  font-size: .9rem; cursor: pointer; color: var(--gray); }
.seg-btn.on { background: var(--paper); color: var(--blue-deep);
  box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.amount-row { display: flex; gap: var(--s2); flex-wrap: wrap;
  margin-bottom: var(--s3); }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 8px;
  padding: var(--s2) var(--s5); font-weight: 600; font-family: var(--font-display);
  cursor: pointer; font-size: .95rem; }
.chip.on { border-color: var(--blue-deep); background: #EAF7FC; color: var(--blue-deep); }
.amount-input { position: relative; }
.amount-input .dollar { position: absolute; left: var(--s3); top: 50%;
  transform: translateY(-50%); color: var(--gray); font-weight: 600; }
.amount-input input { padding-left: 1.9rem; font-size: 1.15rem;
  font-family: var(--font-display); font-weight: 600; }

.pay-option { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3);
  align-items: start; border: 1px solid var(--line); border-radius: 8px;
  padding: var(--s4); cursor: pointer; }
.pay-option + .pay-option { margin-top: var(--s2); }
.pay-option:has(input:checked) { border-color: var(--blue-deep); background: #F5FBFE; }
.pay-option input { width: auto; margin-top: .2rem; }
.pay-body { display: flex; flex-direction: column; gap: var(--s1); }
.pay-body strong { font-family: var(--font-display); }
.pay-fee { color: var(--gray); font-size: .82rem; white-space: nowrap; }
.pay-option.recommended { position: relative; }
.pay-option.recommended::after { content: 'Recommended'; position: absolute;
  top: calc(var(--s4) * -0.6); right: var(--s4); background: var(--blue-deep);
  color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .1rem .5rem; border-radius: 999px; }

.cover-fee { display: flex; gap: var(--s3); align-items: flex-start;
  font-size: .92rem; }
.cover-fee input { width: auto; margin-top: .3rem; }

.give-total { display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: var(--s4); font-size: 1.05rem; }
.give-total strong { font-family: var(--font-display); font-size: 1.5rem; }

.latest-sermon { display: grid; grid-template-columns: 18rem minmax(0,1fr);
  gap: var(--s5); align-items: center; text-decoration: none; color: inherit; }
.latest-sermon:hover { border-color: var(--blue); }
.latest-sermon:hover h3 { color: var(--blue-deep); }
.latest-sermon > .wf-media:first-child { margin: 0; border-width: 2px;
  border-radius: var(--radius); }
.sermon-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16/9;
  object-fit: cover; border-radius: var(--radius); background: var(--wash); }
.video-embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 900px) {
  .give-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .latest-sermon { grid-template-columns: 1fr; }
}


/* ---------- next-step cards (Plan Your Visit) ---------- */
a.next-step { text-decoration: none; color: inherit; }
a.next-step:hover { border-color: var(--blue); }
a.next-step:hover h3 { color: var(--blue-deep); }
.next-arrow { margin-top: auto; padding-top: var(--s3); color: var(--blue-deep);
  font-weight: 600; font-size: .9rem; }
.next-arrow::after { content: ' \2192'; }

/* ---------- auth + account ---------- */
.auth-wrap { max-width: 26rem; margin-inline: auto; padding: var(--s9) var(--s5); }
.auth-wrap form.card { padding: var(--s6); }
.auth-wrap label { display: block; margin-bottom: var(--s2); font-weight: 600; }
.form-error { background: #FEE2E2; border: 1px solid #FCA5A5; color: #7F1D1D;
  padding: var(--s3) var(--s4); border-radius: 8px; font-size: .92rem; }
.dev-note { border: 2px dashed #FBBF24; background: #FFFBEB; }
.plain-list { list-style: none; padding: 0; }
.plain-list > li + li { margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--line); }
.pill { display: inline-block; background: var(--wash); border: 1px solid var(--line);
  border-radius: 999px; padding: .05rem .6rem; font-size: .74rem; color: var(--gray); }
.pill-warn { background: #FEF3C7; border-color: #FCD34D; color: #78350F; }

/* ---------- forms on public pages ---------- */
/* Honeypot field: off screen for people and screen readers; bots fill it in */
.hp { position: absolute; left: -9999px; }
span.form-error { display: block; margin-top: var(--s1); }
.join-card { margin-top: var(--s6); }

/* ---------- small group requests (leaders) ---------- */
.notify-box { border-top: 1px solid var(--line); padding-top: var(--s4); }
.request-card h1 { font-size: 1.8rem; }
.request-phone { font-size: 1.5rem; font-family: var(--font-display); }
.request-phone a { text-decoration: none; }
.request-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.request-actions .btn { flex: 1 1 8rem; text-align: center; }
