/* ============================================================
   Grace Reformed Presbyterian Church
   Edit colors, fonts, and spacing HERE — every page uses this file.
   ============================================================ */

:root {
  --navy: #183549;
  --navy-deep: #102333;
  --navy-mid: #24485f;
  --cream: #f6f1e7;
  --paper: #fbf8f2;
  --ink: #1a2330;
  --muted: #5c6670;
  --flame: #c2410c;
  --gold: #c4a35a;
  --rule: #e2d9c8;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --text-display: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  --text-title: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  --wrap: 72rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
  font-weight: 500;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.gold-rule {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-flame { background: var(--flame); color: var(--cream); }
.btn-flame:hover { background: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(246,241,231,0.7); }
.btn-outline:hover { background: var(--cream); color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--cream); }

/* Header */
.chrome-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header {
  position: relative;
  padding-top: env(safe-area-inset-top);
}
.mini-player {
  background: var(--navy-deep);
  color: var(--cream);
  border-bottom: 1px solid rgba(196,163,90,0.2);
}
.mini-player-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.mini-play, .popup .mini-play {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mini-play svg { width: 1.1rem; height: 1.1rem; }
.mini-copy { min-width: 0; flex: 1; }
.mini-label { margin: 0 0 0.15rem; }
.mini-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-sub {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: rgba(246,241,231,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-seek-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.mini-seek-row input[type=range],
.mini-player input[type=range] {
  flex: 1;
  accent-color: var(--gold);
  height: 0.35rem;
}
.mini-time {
  width: 4.5rem;
  text-align: right;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: rgba(246,241,231,0.6);
}
.mini-pop {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.mini-pop svg { width: 0.95rem; height: 0.95rem; display: block; flex-shrink: 0; }
.mini-pop:hover { color: var(--cream); }
.play-sermon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--flame);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.play-sermon svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }
.play-sermon svg[hidden],
.mini-play svg[hidden] { display: none !important; }
.play-sermon.is-active { color: var(--navy); }
.sermon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
}
.sermon-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.sermon-download svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }
.sermon-download:hover { color: var(--navy); }

.utility {
  display: none;
  background: var(--navy-deep);
  color: rgba(246,241,231,0.75);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.utility-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.4rem 0;
}
.utility p { margin: 0; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--gold); }
.utility-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.25rem; }
.utility-ticker {
  display: none;
  grid-template-columns: 1fr;
  min-width: 0;
  color: rgba(196,163,90,0.95);
}
.utility-ticker a {
  grid-area: 1 / 1;
  justify-self: end;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35em);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  pointer-events: none;
}
.utility-ticker a.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .utility-ticker a { transition: none; }
}

.nav-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(196,163,90,0.2);
}
.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
}
.brand { min-width: 0; flex: 1; }
.brand img {
  height: 2.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
}

.desk-nav { display: none; align-items: center; }
.nav-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  padding: 0.5rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(246,241,231,0.85);
}
.nav-link:hover, .nav-link.is-active { color: var(--gold); }
.members-link { margin-left: 0.75rem; padding-left: 1rem; border-left: 1px solid rgba(246,241,231,0.2); }

.nav-drop { position: relative; display: flex; align-items: center; }
.caret {
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.28rem;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  translate: 0 1px;
}
.nav-menu {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 14rem;
  padding: 0.5rem 0;
  background: var(--navy-deep);
  border: 1px solid rgba(196,163,90,0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 50;
}
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu { display: block; }
.nav-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: rgba(246,241,231,0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-menu a:hover { background: var(--navy-mid); color: var(--gold); }

.menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--cream);
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: var(--navy-deep);
  max-height: min(100dvh, calc(100dvh - env(safe-area-inset-top)));
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { padding: 1.25rem 1.5rem 2rem; }
.mobile-block { border-bottom: 1px solid rgba(246,241,231,0.1); padding: 0.4rem 0; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--cream);
  text-decoration: none;
  font-size: 1.1rem;
}
.mobile-nav a.sub { padding-left: 0.85rem; color: rgba(246,241,231,0.7); font-size: 1rem; }
.mobile-nav .members-link { margin-top: 1.25rem; border-left: 0; padding-left: 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; color: var(--gold); }

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.page-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16,35,51,0.7), rgba(24,53,73,0.75), #102333);
}
.page-hero-inner { position: relative; padding: 5rem 0; }
.page-hero.is-compact .page-hero-inner { padding: 4rem 0; }
.page-hero h1 {
  margin: 0.85rem 0 0;
  font-size: var(--text-title);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
}
.page-hero .lede {
  max-width: 36rem;
  margin: 1.15rem auto 0;
  color: rgba(246,241,231,0.8);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--cream); }

.prose { max-width: 42rem; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; }
.prose p + p { margin-top: 1.15em; }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.6em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
}

/* Home */
.home-hero {
  position: relative;
  min-height: 70dvh;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}
.hero-carousel {
  position: absolute;
  inset: 0;
}
.hero-carousel img,
.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-out;
}
.hero-carousel img.is-active { opacity: 1; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.hero-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246,241,231,0.4);
  cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: var(--gold); }
.home-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(16,35,51,0.9), rgba(24,53,73,0.75), rgba(24,53,73,0.4));
}
.home-hero-inner {
  position: relative;
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 0 5rem;
}
.home-hero h1 {
  margin: 1rem 0 0;
  max-width: 46rem;
  font-size: var(--text-display);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--cream);
}
.home-hero h1 span { display: block; margin-top: 0.4rem; font-style: normal; font-weight: 400; }
.home-hero .intro { max-width: 32rem; margin-top: 1.4rem; font-size: 1.125rem; color: rgba(246,241,231,0.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.times-strip { background: var(--navy-deep); color: var(--cream); }
.times-strip-inner { display: grid; }
.time-cell {
  padding: 1.6rem 1.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(246,241,231,0.1);
}
.time-cell:last-child { border-bottom: 0; }
.time-cell p.time {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-style: italic;
  color: var(--cream);
}
.time-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(246,241,231,0.7);
}

.welcome-grid, .split, .cards, .radio-grid { display: grid; gap: 2.5rem; }
.welcome-copy h2, .section h2 { font-size: var(--text-title); font-style: italic; margin: 0.7rem 0 0; }
.gold-line { width: 3.5rem; height: 1px; background: var(--gold); margin-top: 1rem; }
.muted { color: var(--muted); }
.photo-wrap { position: relative; }
.photo-wrap img { width: 100%; border: 1px solid var(--rule); object-fit: cover; }

figure.photo { margin: 0; }
.photo-credit {
  display: block;
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
  font-style: italic;
}
.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.photo-credit a:hover { color: var(--navy); }
.quote-card {
  display: none;
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -1.5rem;
  max-width: 20rem;
  padding: 1.2rem;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid rgba(196,163,90,0.4);
}
.quote-card p { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; }

.card {
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid var(--rule);
  background: var(--cream);
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--navy); }
.card h3 { margin: 1.1rem 0 0; font-size: 1.5rem; font-style: italic; }
.card p { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--muted); flex: 1; }
.more {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.card:hover .more { color: var(--flame); }

.radio-block { border: 1px solid rgba(196,163,90,0.3); background: var(--navy-deep); padding: 2rem; }
.radio-block h3 { margin: 0.7rem 0 0; font-size: 1.85rem; font-style: italic; color: var(--cream); }
.radio-block .meta { margin: 0.5rem 0 0; font-size: 0.9rem; color: rgba(246,241,231,0.7); }
.radio-block a { display: inline-block; margin-top: 1.4rem; color: var(--gold); text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.radio-block a:hover { color: var(--cream); }

/* Lists / officers / sermons */
.schedule-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list .label { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; }
.expect { border: 1px solid var(--rule); background: var(--paper); padding: 2rem; }
.expect ul { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.expect li + li { margin-top: 1rem; }

.officer { display: grid; gap: 0.75rem; border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 2rem; }
.officer-meta { min-width: 0; }
.officer-photo {
  display: block;
  width: 100%;
  max-width: 14rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  margin: 0 0 1rem;
  border: 1px solid var(--rule);
  background: var(--navy);
}
.officer-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
}
.officer h2 { margin: 0; font-size: 1.85rem; font-style: italic; }
.officer .role { margin: 0.3rem 0 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--flame); }

.sermon-cards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sermon-cards li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.sermon-cards h2 { margin: 0.25rem 0 0; font-size: 1.45rem; font-style: italic; }
.sermon-table-wrap { display: none; overflow-x: auto; }
.sermon-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.92rem; }
.sermon-table th {
  padding: 0.75rem 1rem 0.75rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--navy);
}
.sermon-table td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); }
.sermon-table a { color: var(--flame); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.tag { color: var(--gold); font-size: 0.75rem; }

/* Forms */
.field { display: block; margin-bottom: 1rem; }
.field span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.6rem 0.75rem;
  outline: none;
}
.field input { height: 2.75rem; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.form-note { color: var(--navy); }
.form-error { color: var(--flame); }
.hp { position: absolute; left: -9999px; }

.map { width: 100%; height: 20rem; border: 0; display: block; }
.map-sm { height: 16rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--cream); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
.footer-brand img { height: 3rem; width: auto; }
.footer-brand p { max-width: 28rem; margin: 1.15rem 0 0; font-size: 0.9rem; color: rgba(246,241,231,0.7); }
.times { list-style: none; margin: 0.75rem 0 1.4rem; padding: 0; font-size: 0.9rem; color: rgba(246,241,231,0.8); }
.times li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.times span:last-child { color: var(--gold); font-variant-numeric: tabular-nums; }
.footer-visit address { font-size: 0.9rem; color: rgba(246,241,231,0.8); line-height: 1.65; }
.footer-visit a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.footer-visit a:hover { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.15rem; font-size: 0.9rem; }
.footer-links a { color: rgba(246,241,231,0.7); text-decoration: none; }
.footer-links a:first-child { color: var(--gold); }
.footer-links a:hover { color: var(--gold); }
.footer-bar { border-top: 1px solid rgba(246,241,231,0.1); }
.footer-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 0;
  font-size: 0.75rem;
  color: rgba(246,241,231,0.5);
}
.footer-bar p { margin: 0; }

.two-up { display: grid; gap: 1rem; }
.two-up a {
  display: block;
  padding: 1.4rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
}
.two-up a:hover { border-color: var(--navy); }
.two-up h3 { margin: 0.4rem 0 0; font-size: 1.5rem; font-style: italic; }

/* Breakpoints */
@media (min-width: 640px) {
  .brand img { height: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bar-inner { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
  .utility { display: block; }
  .home-hero, .home-hero-inner { min-height: 78dvh; }
  .home-hero-inner { justify-content: center; padding: 6rem 0; }
  .times-strip-inner { grid-template-columns: 1fr 1fr; }
  .time-cell { border-bottom: 1px solid rgba(246,241,231,0.1); border-right: 1px solid rgba(246,241,231,0.1); }
  .time-cell:nth-child(2n) { border-right: 0; }
  .time-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .welcome-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .quote-card { display: block; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .radio-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .officer { grid-template-columns: 14rem 1fr; gap: 1rem; }
}

@media (min-width: 1024px) {
  .utility-ticker { display: grid; }
  .desk-nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
  .brand img { height: 3.5rem; }
  .split { grid-template-columns: 1fr 1fr; }
  .quote-card { left: -1rem; right: auto; }
  .sermon-cards { display: none; }
  .sermon-table-wrap { display: block; }
  .times-strip-inner { grid-template-columns: repeat(4, 1fr); }
  .time-cell { border-bottom: 0; border-right: 1px solid rgba(246,241,231,0.1); }
  .time-cell:nth-child(2n) { border-right: 1px solid rgba(246,241,231,0.1); }
  .time-cell:last-child { border-right: 0; }
}

@media (min-width: 1280px) {
  .nav-link { padding: 0.5rem 0.55rem; font-size: 0.72rem; letter-spacing: 0.16em; line-height: 1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-carousel img { transition: none; }
}

.radio-block .play-sermon,
.section-navy .play-sermon { color: var(--gold); }

.sermon-table tr.sermon-row { cursor: pointer; }
.sermon-table tr.sermon-row:hover { background: var(--paper); }

/* Style guide (style-guide.php) */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.guide-toc a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.guide-toc a:hover { color: var(--flame); }
.guide-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.guide-swatch { border: 1px solid var(--rule); background: var(--paper); }
.guide-chip { height: 4.75rem; }
.guide-swatch p { margin: 0; padding: 0.7rem 0.85rem 0.95rem; font-size: 0.82rem; line-height: 1.4; }
.guide-k, .guide-swatch code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.guide-block {
  margin-top: 1.25rem;
  padding: 1.35rem;
  border: 1px dashed var(--rule);
  background: var(--paper);
}
.guide-pre {
  overflow-x: auto;
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre;
}
.guide-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.guide-type + .guide-type { margin-top: 1.15rem; }
.guide-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }

.hp { position: absolute; left: -9999px; }
.cf-turnstile { margin: 0.4rem 0 1.15rem; }

.footer-give-label { margin: 1.35rem 0 0.7rem; }
.site-footer .tithely-give-button {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: transparent;
  text-shadow: none;
  float: none;
}
.site-footer .tithely-give-button:hover { background: var(--cream); color: var(--navy-deep); }
