/* Purpose: Main stylesheet for the Shepherd's Rock Bible Church static site, covering shared layout, typography, navigation, cards, and responsive page styling. Reason: Keeps the public website visually consistent across home, doctrine, leader, page, and study sections. */
:root {
  --coffee-cream: #f4eadf;
  --coffee-foam: #e8d8c4;
  --coffee-latte: #c29b78;
  --coffee-mocha: #76513a;
  --coffee-espresso: #2f1f18;
  --coffee-night: #1d120e;
  --coffee-shadow: rgba(26, 16, 12, 0.18);
  --header-morph-opacity: 1;

  /*
    Update these two image variables with your actual header artwork.
    Use the wide image for desktop/tablet widths and the narrow image for phone widths.
  */
  --header-image-wide: linear-gradient(rgba(245, 235, 224, 0.4), rgba(245, 235, 224, 0.4)),
    url("../assets/images/site/church-header-wide.png");
  --header-image-narrow: linear-gradient(rgba(245, 235, 224, 0.4), rgba(245, 235, 224, 0.4)),
    url("../assets/images/site/church-header-narrow.png");

  /*
    These positions are independent on purpose.
    Change desktop values here without changing mobile values below.
  */
  --header-wide-position: center 81%;
  --header-wide-size: cover;
  --header-narrow-position: center 35%;
  --header-narrow-size: cover;

  --header-height-expanded: 17rem;
  --header-height-collapsed: 6.5rem;
  --header-padding-expanded: 2rem;
  --header-padding-collapsed: 1rem;
  --header-transition-duration: 380ms;
  --header-transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --main-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height-expanded);
  font-family: "Manrope", sans-serif;
  color: var(--coffee-espresso);
  background:
    radial-gradient(circle at top, rgba(232, 216, 196, 0.8), transparent 35%),
    linear-gradient(180deg, #fffaf4 0%, var(--coffee-cream) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-text-link {
  color: var(--coffee-mocha);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  font-weight: 600;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.inline-text-link:hover,
.inline-text-link:focus-visible {
  color: var(--coffee-espresso);
  text-decoration-color: var(--coffee-latte);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--header-height-expanded);
  box-shadow: 0 1.25rem 2.5rem -2rem var(--coffee-shadow);
  transition:
    min-height var(--header-transition-duration) var(--header-transition-ease),
    box-shadow var(--header-transition-duration) var(--header-transition-ease),
    background-color var(--header-transition-duration) var(--header-transition-ease);
}

.header-background,
.header-overlay {
  position: absolute;
  inset: 0;
}

.header-background {
  background-repeat: no-repeat;
  transform-origin: center center;
  will-change: transform, filter, opacity;
  transition:
    opacity var(--header-transition-duration) var(--header-transition-ease),
    transform var(--header-transition-duration) var(--header-transition-ease),
    filter var(--header-transition-duration) var(--header-transition-ease);
}

.header-background-narrow {
  background-image: var(--header-image-narrow);
  background-position: var(--header-narrow-position);
  background-size: var(--header-narrow-size);
  opacity: var(--header-morph-opacity);
}

.header-background-wide {
  background-image: var(--header-image-wide);
  background-position: var(--header-wide-position);
  background-size: var(--header-wide-size);
  opacity: calc(1 - var(--header-morph-opacity));
}

.header-overlay {
  background:
    linear-gradient(180deg, rgba(245, 235, 224, 0.06), rgba(245, 235, 224, 0.2)),
    linear-gradient(90deg, rgba(245, 235, 224, 0.16), rgba(245, 235, 224, 0.04));
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--main-width);
  margin: 0 auto;
  min-height: var(--header-height-expanded);
  padding: var(--header-padding-expanded) 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  transition:
    min-height var(--header-transition-duration) var(--header-transition-ease),
    padding var(--header-transition-duration) var(--header-transition-ease),
    align-items var(--header-transition-duration) var(--header-transition-ease),
    gap var(--header-transition-duration) var(--header-transition-ease);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--coffee-espresso);
  transition:
    gap var(--header-transition-duration) var(--header-transition-ease),
    transform var(--header-transition-duration) var(--header-transition-ease);
}

.brand-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 600;
  line-height: 0.95;
  transition: font-size var(--header-transition-duration) var(--header-transition-ease);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.nav-button {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(47, 31, 24, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.28);
  color: var(--coffee-espresso);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 250, 244, 0.48);
  border-color: rgba(47, 31, 24, 0.38);
  outline: none;
}

.nav-button.is-current {
  pointer-events: none;
  cursor: default;
  background: rgba(118, 81, 58, 0.9);
  border-color: rgba(47, 31, 24, 0.34);
  color: #fffdf9;
  box-shadow: 0 0.55rem 1.25rem -0.95rem rgba(47, 31, 24, 0.7);
}

.nav-toggle {
  display: none;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(47, 31, 24, 0.26);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.42);
  color: var(--coffee-espresso);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 250, 244, 0.62);
  border-color: rgba(47, 31, 24, 0.4);
  outline: none;
}

.site-header.is-shrunk {
  min-height: var(--header-height-collapsed);
  box-shadow: 0 1rem 2rem -1.5rem rgba(26, 16, 12, 0.4);
}

.site-header.is-shrunk .header-background {
  transform: scale(1.035);
  filter: saturate(0.96) brightness(0.98);
}

.site-header.is-shrunk .header-inner {
  min-height: var(--header-height-collapsed);
  padding-top: var(--header-padding-collapsed);
  padding-bottom: var(--header-padding-collapsed);
  align-items: center;
  gap: 0.85rem 1.5rem;
}

.site-header.is-shrunk .brand-mark {
  gap: 0.18rem;
  transform: translateY(-1px);
}

.site-header.is-shrunk .brand-name {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.page-main {
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.leader-page {
  display: grid;
  gap: 1.25rem;
}

.hero-card,
.content-panel {
  border-radius: 1.75rem;
  background: rgba(255, 251, 246, 0.84);
  border: 1px solid rgba(118, 81, 58, 0.12);
  box-shadow: 0 1.5rem 3rem -2.25rem var(--coffee-shadow);
}

.hero-card {
  margin-top: 1rem;
  padding: 2rem;
}

.eyebrow,
.section-label,
.footer-kicker {
  margin: 0 0 0.75rem;
  color: var(--coffee-mocha);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card h1,
.content-panel h2,
.footer-about h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1;
}

.hero-card h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  max-width: 12ch;
}

.home-confession-list {
  display: grid;
  gap: 0.7rem;
  max-width: 15ch;
  padding-left: 1.1rem;
  border-left: 0.32rem solid var(--coffee-mocha);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  font-weight: 600;
  line-height: 1;
}

.home-confession-list span {
  display: block;
}

.home-confession-list small {
  display: block;
  margin-top: 0.1rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--coffee-mocha);
}

.intro-copy,
.content-panel p,
.footer-about p,
.footer-column a,
.footer-bottom p {
  line-height: 1.7;
}

.intro-copy {
  max-width: 48rem;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 12, 0.68);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(118, 81, 58, 0.18);
  background: var(--cream);
  box-shadow: 0 2rem 4rem -1rem rgba(34, 20, 14, 0.45);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(118, 81, 58, 0.14);
}

.video-modal-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.video-modal-close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(118, 81, 58, 0.24);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  color: var(--coffee-mocha);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  border-color: rgba(118, 81, 58, 0.45);
  background: white;
  outline: none;
}

.video-modal-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #1e1511;
}

.video-modal-embed iframe {
  position: absolute;
  inset: 0;
}

body.video-modal-lock {
  overflow: hidden;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.content-panel-wide {
  grid-column: 1 / -1;
}

.study-toc-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.study-toc-row {
  align-items: baseline;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: max-content 1fr minmax(0, max-content);
}

.study-toc-page,
.study-toc-lesson {
  color: var(--coffee-espresso);
  font-weight: 800;
}

.study-toc-lesson {
  text-align: right;
}

.study-toc-fill {
  border-bottom: 2px dashed rgba(118, 81, 58, 0.36);
  transform: translateY(-0.2rem);
}

.study-toc-row.is-current {
  background: rgba(232, 216, 196, 0.5);
  border: 1px solid rgba(118, 81, 58, 0.18);
  border-radius: 0.75rem;
  margin-inline: -0.35rem;
  padding: 0.6rem 0.35rem;
}

.study-toc-row.is-current .study-toc-page,
.study-toc-row.is-current .study-toc-lesson {
  color: var(--coffee-mocha);
}

.study-toc-row.is-current .study-toc-fill {
  border-bottom-color: rgba(118, 81, 58, 0.58);
}

.leadership-page {
  max-width: 78rem;
}

.leadership-hero h1 {
  max-width: 13ch;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.leadership-card {
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(118, 81, 58, 0.14);
  box-shadow: 0 1.5rem 3rem -2.25rem var(--coffee-shadow);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.leadership-card:hover,
.leadership-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(118, 81, 58, 0.28);
  box-shadow: 0 1.8rem 3.2rem -2rem rgba(26, 16, 12, 0.34);
}

.leadership-photo-wrap {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(47, 31, 24, 0.08);
}

.leadership-photo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.leadership-photo-square {
  aspect-ratio: 1;
}

.leadership-photo-wide {
  aspect-ratio: 3 / 4;
}

.leadership-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
}

.leadership-card:hover .leadership-photo,
.leadership-card:focus-within .leadership-photo {
  transform: scale(1.08) translateY(-2%);
  filter: saturate(1.06) contrast(1.03);
}

.leadership-card-body {
  min-height: 8.5rem;
  padding: 1.15rem;
  text-align: center;
}

.leadership-card-body h2 {
  margin: 0;
  color: var(--coffee-espresso);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.leadership-card-body h2 a {
  transition: color 180ms ease;
}

.leadership-card-body h2 a:hover,
.leadership-card-body h2 a:focus-visible {
  color: var(--coffee-mocha);
  outline: none;
}

.leadership-card-body p {
  margin: 0.7rem 0 0;
  color: var(--coffee-mocha);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.leadership-card-body .leadership-card-detail {
  margin-top: 0.5rem;
  color: var(--coffee-espresso);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
}

.holy-spirit-page {
  max-width: 78rem;
}

.holy-spirit-hero h1 {
  max-width: 14ch;
}

.holy-spirit-info {
  margin-top: 1.25rem;
  text-align: center;
}

.holy-spirit-info h2 {
  max-width: none;
}

.holy-spirit-info p {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.holy-spirit-lessons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.holy-spirit-lesson {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  padding: 1.35rem;
  border: 1px solid rgba(118, 81, 58, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 1.5rem 3rem -2.25rem var(--coffee-shadow);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.holy-spirit-lesson:hover,
.holy-spirit-lesson:focus-within {
  transform: translateY(-4px);
  border-color: rgba(118, 81, 58, 0.28);
  box-shadow: 0 1.8rem 3.2rem -2rem rgba(26, 16, 12, 0.34);
}

.holy-spirit-lesson.featured {
  border-color: rgba(118, 81, 58, 0.34);
  background:
    linear-gradient(180deg, rgba(232, 216, 196, 0.82), rgba(255, 251, 246, 0.96));
}

.holy-spirit-lesson.featured::after {
  content: attr(data-date);
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--coffee-mocha);
  color: #fffdf9;
  font-size: 0.78rem;
  font-weight: 700;
}

.lesson-title,
.lesson-desc,
.lesson-verse {
  display: block;
}

.lesson-title {
  color: var(--coffee-espresso);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.lesson-desc {
  margin-top: 0.8rem;
  color: var(--coffee-mocha);
  font-weight: 700;
  line-height: 1.45;
}

.lesson-verse {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(118, 81, 58, 0.14);
  color: rgba(47, 31, 24, 0.82);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.6;
}

.holy-spirit-share {
  margin: 2rem 0 0;
  text-align: center;
}

#shareMessage {
  display: none;
  margin: 0.75rem 0 0;
  color: var(--coffee-mocha);
  font-weight: 700;
}

#shareMessage.is-visible {
  display: block;
}

.confession-page {
  max-width: 86rem;
}

.confession-hero h1 {
  max-width: 14ch;
}

.confession-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.confession-link-panel {
  margin-top: 1.25rem;
}

.confession-version-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.confession-default-link {
  margin-top: 1rem;
}

.choir-page {
  max-width: 78rem;
}

.choir-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1.18fr);
  gap: 1.5rem;
  align-items: center;
}

.choir-hero h1 {
  max-width: 11ch;
}

.choir-photo-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(118, 81, 58, 0.16);
  box-shadow: 0 1.5rem 3rem -2.25rem var(--coffee-shadow);
}

.choir-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.choir-hotspot {
  /* Visible hotspot dots are off by default. Add/remove choir-hotspot-label-off in HTML to control name labels. */
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.choir-hotspot::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: inherit;
}

.choir-hotspot span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 4;
  width: max-content;
  max-width: 11rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  background: rgba(47, 31, 24, 0.96);
  color: #fffdf9;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 0.25rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.choir-hotspot small {
  color: rgba(244, 234, 223, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.choir-hotspot:hover,
.choir-hotspot:focus-visible {
  outline: none;
}

.choir-hotspot:focus-visible {
  outline: 2px solid rgba(255, 253, 249, 0.96);
  outline-offset: 0.2rem;
}

.choir-hotspot:hover span,
.choir-hotspot:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.choir-hotspot-label-off:hover span,
.choir-hotspot-label-off:focus-visible span {
  opacity: 0;
  transform: translate(-50%, 0.25rem);
}

.articles-page {
  max-width: 82rem;
}

.articles-hero h1 {
  max-width: 12ch;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.article-card {
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(118, 81, 58, 0.14);
  box-shadow: 0 1.5rem 3rem -2.25rem var(--coffee-shadow);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(118, 81, 58, 0.28);
  box-shadow: 0 1.8rem 3.2rem -2rem rgba(26, 16, 12, 0.34);
}

.article-image-link {
  display: block;
  overflow: hidden;
  background: rgba(47, 31, 24, 0.08);
}

.article-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
}

.article-card:hover .article-image,
.article-card:focus-within .article-image {
  transform: scale(1.055);
  filter: saturate(1.05) contrast(1.03);
}

.article-card-body {
  min-height: 7.25rem;
  padding: 1.15rem;
}

.article-card-body h2 {
  margin: 0;
  color: var(--coffee-espresso);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.04;
}

.article-card-body h2 a {
  transition: color 180ms ease;
}

.article-card-body h2 a:hover,
.article-card-body h2 a:focus-visible {
  color: var(--coffee-mocha);
  outline: none;
}

#cc-project-root {
  display: block;
  color: var(--coffee-espresso);
  font-family: "Manrope", sans-serif;
}

.cc-controls-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.cc-left-group,
.cc-right-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

#cc-project-root .cc-btn,
#cc-project-root .cc-dropdown {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(118, 81, 58, 0.2);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  color: var(--coffee-espresso);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

#cc-project-root .cc-btn:hover,
#cc-project-root .cc-btn:focus-visible,
#cc-project-root .cc-dropdown:hover,
#cc-project-root .cc-dropdown:focus-visible {
  transform: translateY(-1px);
  background: white;
  border-color: rgba(118, 81, 58, 0.36);
  outline: none;
}

#cc-project-root .cc-btn-main,
#cc-project-root .cc-version.active {
  background: var(--coffee-mocha);
  border-color: var(--coffee-mocha);
  color: #fffdf9;
}

#cc-project-root .cc-card {
  padding: 2rem;
  border: 1px solid rgba(118, 81, 58, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 251, 246, 0.92);
}

.cc-bible-body {
  color: rgba(47, 31, 24, 0.92);
  line-height: 1.7;
}

.chapter-title {
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(118, 81, 58, 0.16);
  color: var(--coffee-mocha);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
}

article.cc-chapter {
  counter-reset: paragraphCounter;
}

.cc-paragraph {
  counter-increment: paragraphCounter;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.cc-paragraph p {
  margin: 0;
}

.cc-paragraph p::before {
  content: counter(paragraphCounter) ".";
  display: block;
  margin-bottom: 0.4rem;
  color: var(--coffee-mocha);
  font-size: 1.15rem;
  font-weight: 700;
}

.cc-paragraph p.no-paragraph-number::before {
  content: none;
}

.verse-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.3rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(118, 81, 58, 0.12);
}

.v-ref {
  display: block;
  color: rgba(47, 31, 24, 0.72);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.65;
}

.v-ref-heading {
  display: block;
  margin-top: 0.9rem;
  color: var(--coffee-mocha);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
}

.book-list {
  margin-top: 0.4rem;
  padding-left: 1rem;
  color: rgba(47, 31, 24, 0.76);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.8;
}

.chapter-divider {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid rgba(118, 81, 58, 0.18);
}

#backToTop {
  display: none;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1001;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--coffee-mocha);
  color: #fffdf9;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1rem 2rem -1.25rem rgba(26, 16, 12, 0.55);
}

#backToTop:hover,
#backToTop:focus-visible {
  background: var(--coffee-night);
  outline: none;
}

.leader-sermons-panel {
  margin-top: 1.25rem;
  padding: 2rem;
}

.leader-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
  grid-template-areas:
    "details clips"
    "sermons clips";
  gap: 1.25rem;
  align-items: start;
}

.leader-sidebar-layout .leader-detail-grid {
  grid-area: details;
  margin-top: 0;
}

.leader-sidebar-layout .leader-sermons-panel {
  grid-area: sermons;
  margin-top: 0;
}

.leader-video-panel {
  grid-area: clips;
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-height-collapsed) + 1rem);
}

.sermon-video-embed {
  position: relative;
  width: 100%;
  height: 0;
  margin-top: 1.25rem;
  overflow: hidden;
  padding-bottom: 56.25%;
  border-radius: 1rem;
  background: rgba(47, 31, 24, 0.95);
}

.sermon-video-embed + .sermon-video-embed {
  margin-top: 1rem;
}

.sermon-video-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.leader-podcast-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
  padding: 2rem;
}

.leader-podcast-panel iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 251, 246, 0.92);
}

.podcast-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.podcast-link-row .sermon-link-button {
  margin-top: 0;
}

.podcast-secondary-link {
  background: rgba(47, 31, 24, 0.08);
  color: var(--coffee-espresso);
}

.podcast-secondary-link:hover,
.podcast-secondary-link:focus-visible {
  background: rgba(47, 31, 24, 0.14);
  color: var(--coffee-espresso);
}

.leader-sermons-panel iframe {
  display: block;
  width: 100%;
  margin-top: 1rem;
  border-radius: 1rem;
}

.leader-hero {
  display: grid;
  grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: center;
}

.leader-portrait-wrap {
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(118, 81, 58, 0.16);
  box-shadow: 0 1.25rem 2.5rem -2rem rgba(26, 16, 12, 0.28);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.leader-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.leader-portrait-top {
  object-position: center top;
}

.leader-portrait-tall {
  aspect-ratio: 3 / 4;
}

.leader-portrait-wrap:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 81, 58, 0.26);
  box-shadow: 0 1.7rem 3rem -2rem rgba(26, 16, 12, 0.36);
}

.leader-portrait-wrap:hover .leader-portrait {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.leader-hero-copy .intro-copy {
  max-width: 46rem;
}

.leader-callout {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(118, 81, 58, 0.38);
  font-size: 1rem;
}

/* Decorative image rule used on:
   - leaders/jason-francis.html below Jason's intro card
   - pages/what-we-believe.html below the opening What We Believe card
   - pages/sermon-audio.html between the featured sermon and transcript cards */
.leader-rule-section {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(118, 81, 58, 0.12);
  box-shadow: 0 1.5rem 3rem -2.25rem var(--coffee-shadow);
}

.belief-rule-section {
  margin-top: 1.5rem;
}

.leader-rule-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.22), rgba(255, 251, 246, 0.22));
  z-index: 1;
}

.leader-rule-section::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: rgba(47, 31, 24, 0.16);
  transform: translateY(-50%);
  box-shadow: none;
  z-index: 2;
}

.leader-rule-image {
  display: block;
  width: 100%;
  height: clamp(1.05rem, 2.25vw, 1.6rem);
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(1.08) contrast(1.08) brightness(1.12);
  position: relative;
  z-index: 0;
}

.leader-detail-grid {
  margin-top: 0;
}

.leader-books-panel {
  margin-top: 1.25rem;
  padding: 2rem;
}

.leader-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.leader-book-card {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 0.8fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(118, 81, 58, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 251, 246, 0.9);
}

.leader-book-cover-link {
  display: block;
  overflow: hidden;
  border-radius: 0.35rem;
  border: 1px solid rgba(118, 81, 58, 0.16);
  background: rgba(47, 31, 24, 0.08);
}

.leader-book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.leader-book-body {
  min-width: 0;
}

.leader-book-body h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.leader-book-body p {
  margin: 0.65rem 0 0;
  line-height: 1.5;
}

.leader-book-publisher {
  color: var(--coffee-mocha);
  font-size: 0.86rem;
  font-weight: 700;
}

.leader-book-body .sermon-link-button {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
}

.sermon-page {
  display: grid;
  gap: 1.25rem;
}

.sermon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.85fr);
  gap: 1.5rem;
  align-items: end;
}

.sermon-meta {
  margin: 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(232, 216, 196, 0.78), rgba(244, 234, 223, 0.98));
  border: 1px solid rgba(118, 81, 58, 0.14);
}

.sermon-meta div + div {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(118, 81, 58, 0.14);
}

.sermon-meta dt {
  margin: 0;
  color: var(--coffee-mocha);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sermon-meta dd {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.sermon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
  gap: 1.25rem;
}

.sermon-layout .sermon-player-card:only-child {
  grid-column: 1 / -1;
}

.sermon-player-card,
.sermon-share-card,
.sermon-notes-card {
  min-width: 0;
}

.embed-frame-shell {
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(118, 81, 58, 0.18);
  background: linear-gradient(180deg, rgba(47, 31, 24, 0.95), rgba(29, 18, 14, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.embed-frame-shell-audio {
  padding: 0.5rem;
  background: rgba(255, 251, 246, 0.92);
}

.bible-study-shell {
  padding: 0;
  height: clamp(28rem, 72vh, 46rem);
  background: rgba(255, 251, 246, 0.92);
}

.bible-study-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.schedule-calendar-panel {
  margin-top: 1.25rem;
}

.schedule-calendar-shell {
  padding: 0;
  height: clamp(32rem, 78vh, 58rem);
  background: rgba(255, 251, 246, 0.92);
}

.schedule-calendar-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.conference-feed {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.conference-feed li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(118, 81, 58, 0.16);
}

.conference-source {
  color: var(--coffee-mocha);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.conference-title {
  color: var(--coffee-espresso);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgba(118, 81, 58, 0.35);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.conference-title:hover,
.conference-title:focus-visible {
  color: var(--coffee-mocha);
  outline: none;
  text-decoration-color: var(--coffee-mocha);
}

.conference-meta {
  color: rgba(47, 31, 24, 0.76);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sermon-embed {
  display: block;
  width: 100%;
  min-height: 18rem;
  border: 0;
}

.sermon-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--coffee-mocha);
  color: #fffdf9;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.sermon-link-button:hover,
.sermon-link-button:focus-visible {
  transform: translateY(-1px);
  background: var(--coffee-night);
  outline: none;
}

.sermon-checklist {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.sermon-notes-card .sermon-checklist {
  column-count: 4;
  column-gap: 2rem;
}

.sermon-notes-card .sermon-checklist li {
  break-inside: avoid;
}

.sermon-notes-table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(118, 81, 58, 0.16);
  border-radius: 1rem;
  background: rgba(255, 251, 246, 0.9);
}

.sermon-notes-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
}

.sermon-notes-table th,
.sermon-notes-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(118, 81, 58, 0.12);
  line-height: 1.65;
}

.sermon-notes-table th {
  background: rgba(232, 216, 196, 0.65);
  color: var(--coffee-mocha);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sermon-notes-table tbody tr:last-child td {
  border-bottom: 0;
}

.sermon-notes-table td:first-child,
.sermon-notes-table td:nth-child(2) {
  white-space: nowrap;
}

.sermon-transcripts-card {
  display: grid;
  gap: 1.25rem;
}

.transcript-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.transcript-updated,
.transcript-card-date,
.transcript-speaker,
.transcript-primary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.transcript-card-date span {
  display: inline;
  margin-left: 0.5rem;
  color: var(--coffee-dark);
  font-weight: 700;
}

.transcript-list {
  display: grid;
  gap: 1rem;
}

.transcript-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.transcript-filter-bar label {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 15rem);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.transcript-filter-bar select {
  width: 100%;
  border: 1px solid rgba(118, 81, 58, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 253, 249, 0.88);
  color: var(--text-main);
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.transcript-card {
  border: 1px solid rgba(118, 81, 58, 0.14);
  border-radius: 1rem;
  background: rgba(255, 253, 249, 0.72);
  padding: 1.15rem;
}

.transcript-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.82fr);
  gap: 1.15rem;
  align-items: stretch;
}

.transcript-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.transcript-card h3 {
  margin: 0.25rem 0 0;
  color: var(--text-strong);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1;
}

.transcript-player {
  margin-top: 1rem;
  max-width: 42rem;
}

.transcript-audio-player {
  display: block;
  width: 100%;
  min-height: 2.75rem;
}

.transcript-meta-pills {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.transcript-speaker {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(232, 216, 196, 0.55);
  padding: 0.4rem 0.65rem;
  color: var(--coffee-dark);
  font-weight: 700;
  text-decoration: none;
}

.transcript-speaker:hover,
.transcript-speaker:focus-visible {
  background: rgba(118, 81, 58, 0.16);
  outline: none;
}

.transcript-primary,
.transcript-summary,
.transcript-empty {
  margin-top: 0.85rem;
}

.transcript-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.transcript-reference-list li {
  border-radius: 999px;
  background: rgba(118, 81, 58, 0.1);
  color: var(--coffee-dark);
  overflow: hidden;
}

.transcript-reference-list button {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.38rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: default;
}

.transcript-reference-list button:hover,
.transcript-reference-list button:focus-visible {
  background: rgba(118, 81, 58, 0.14);
  outline: none;
}

.transcript-link {
  margin-top: 1rem;
}

.transcript-preview-screen {
  position: sticky;
  top: 6rem;
  align-self: stretch;
  height: 100%;
  min-height: 14rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(118, 81, 58, 0.2);
  background:
    radial-gradient(circle at top, rgba(232, 216, 196, 0.8), transparent 35%),
    linear-gradient(180deg, #fffaf4 0%, var(--coffee-cream) 100%);
  color: var(--coffee-dark);
  padding: 1rem;
  box-shadow: 0 1rem 2rem -2rem var(--coffee-shadow);
}

.transcript-preview-screen .section-label {
  color: rgba(86, 54, 38, 0.68);
}

.transcript-preview-screen h4 {
  margin: 0.45rem 0 0;
  color: var(--text-strong);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1;
}

.transcript-preview-screen p:not(.section-label) {
  margin-top: 0.85rem;
  color: var(--text-main);
  line-height: 1.65;
  max-height: 26rem;
  overflow: auto;
}

.transcript-preview-screen .scripture-preview-note {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.scripture-preview-verse sup {
  color: var(--coffee-dark);
  font-size: 0.72em;
  font-weight: 800;
  margin-right: 0.16rem;
}

.scripture-preview-version {
  color: var(--text-muted);
  font-weight: 700;
}

.scripture-version-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.scripture-version-links a {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(118, 81, 58, 0.1);
  padding: 0.38rem 0.65rem;
  color: var(--coffee-dark);
  font-weight: 700;
  text-decoration: none;
}

.scripture-version-links a:hover,
.scripture-version-links a:focus-visible {
  background: rgba(118, 81, 58, 0.16);
  outline: none;
}

.back-to-top-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  width: 4.35rem;
  height: 4.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: none;
  color: var(--coffee-dark);
  padding: 0;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  text-shadow: 0 1px 0 rgba(255, 253, 249, 0.85);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-cup {
  position: absolute;
  left: 50%;
  bottom: 0.12rem;
  width: 3.6rem;
  height: auto;
  transform: translateX(-50%);
  z-index: 3;
}

.back-to-top-steam,
.back-to-top-steam::before,
.back-to-top-steam::after {
  content: "";
  position: absolute;
  bottom: 3.1rem;
  width: 0.18rem;
  height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 81, 58, 0), rgba(118, 81, 58, 0.42), rgba(118, 81, 58, 0));
  filter: blur(0.4px);
  animation: coffeeSteamRise 2.4s ease-in-out infinite;
}

.back-to-top-steam {
  left: 43%;
}

.back-to-top-steam::before {
  left: -0.55rem;
  animation-delay: 0.45s;
}

.back-to-top-steam::after {
  left: 0.5rem;
  animation-delay: 0.9s;
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  transform: translateY(-0.08rem);
  outline: none;
}

@keyframes coffeeSteamRise {
  0% {
    opacity: 0;
    transform: translateY(0.25rem) translateX(0) scaleY(0.75);
  }
  35% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(-1.05rem) translateX(0.22rem) scaleY(1.15);
  }
}

.content-panel {
  padding: 1.5rem;
}

.content-panel h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: 2rem;
  background:
    linear-gradient(180deg, rgba(47, 31, 24, 0.96), rgba(29, 18, 14, 1)),
    linear-gradient(120deg, rgba(118, 81, 58, 0.22), transparent);
  color: var(--coffee-cream);
}

.footer-shell {
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer-kicker {
  margin-bottom: 0.65rem;
  color: rgba(244, 234, 223, 0.68);
}

.footer-about h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 12ch;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-column a {
  color: rgba(244, 234, 223, 0.88);
  transition: color 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: white;
  outline: none;
}

.footer-column a.footer-disabled-link {
  color: rgba(244, 234, 223, 0.52);
  cursor: not-allowed;
}

.footer-column a.footer-disabled-link:hover,
.footer-column a.footer-disabled-link:focus-visible {
  color: rgba(244, 234, 223, 0.72);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(244, 234, 223, 0.14);
}

.footer-bottom p {
  margin: 0;
  padding: 1rem 0 2rem;
  color: rgba(244, 234, 223, 0.72);
  font-size: 0.92rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-bottom: 2rem;
}

.footer-socials a {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(244, 234, 223, 0.16);
  border-radius: 999px;
  color: rgba(244, 234, 223, 0.88);
  font-size: 0.92rem;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  background: rgba(244, 234, 223, 0.12);
  border-color: rgba(244, 234, 223, 0.34);
  color: white;
  outline: none;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: center;
  }

  .transcript-card-grid {
    grid-template-columns: 1fr;
  }

  .transcript-preview-screen {
    position: static;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .leader-hero,
  .leader-sidebar-layout,
  .leader-podcast-panel,
  .choir-hero,
  .content-grid,
  .leadership-grid,
  .leader-book-grid,
  .article-grid,
  .holy-spirit-lessons,
  .sermon-hero,
  .sermon-layout,
  .footer-grid,
  .footer-link-groups {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sermon-notes-card .sermon-checklist {
    column-count: 2;
  }

  .footer-socials {
    justify-content: flex-start;
    padding-bottom: 2rem;
  }

  .leader-video-panel {
    position: static;
  }

  .leader-sidebar-layout {
    grid-template-areas:
      "details"
      "clips"
      "sermons";
  }

  .leader-book-card {
    grid-template-columns: minmax(5.5rem, 0.32fr) minmax(0, 1fr);
  }

  .cc-controls-container,
  .cc-left-group,
  .cc-right-group {
    justify-content: center;
  }

  .cc-left-group,
  .cc-right-group,
  #cc-project-root .cc-dropdown {
    width: 100%;
  }

  #cc-project-root .cc-btn,
  #cc-project-root .cc-dropdown {
    justify-content: center;
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  .header-inner {
    min-height: 14rem;
  }

  .header-inner {
    align-items: flex-end;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .site-header.is-shrunk,
  .site-header.is-shrunk .header-inner {
    min-height: 9.5rem;
  }

  .brand-mark {
    flex: 1 1 min(16rem, 70%);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }

  .nav-button {
    font-size: 0.9rem;
    text-align: center;
  }

  .sermon-notes-card .sermon-checklist {
    column-count: 1;
  }

  .hero-card,
  .content-panel {
    padding: 1.35rem;
  }
}
