.interior-page {
  background: var(--paper);
}

.interior-page .site-header {
  background: rgba(16, 45, 49, 0.98);
}

.page-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 10rem 0 5rem;
  color: #fff;
  background: var(--ink-2);
}

.page-hero-media,
.page-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-media {
  object-fit: cover;
  opacity: 0.5;
}

.page-hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 28, 31, 0.96), rgba(7, 28, 31, 0.58), rgba(7, 28, 31, 0.22)),
    linear-gradient(0deg, rgba(7, 28, 31, 0.72), transparent 55%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 1.2rem;
  font-size: clamp(3.7rem, 8vw, 7.3rem);
  line-height: 0.91;
}

.page-hero-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.17rem;
}

.page-band {
  padding: clamp(5rem, 9vw, 8rem) max(16px, calc((100vw - 1180px) / 2));
}

.page-band-quiet {
  background: var(--quiet);
}

.page-band-dark {
  color: #fff;
  background: var(--ink);
}

.page-band-teal {
  color: #fff;
  background: var(--teal);
}

.page-heading {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.page-heading h2 {
  margin-bottom: 1rem;
}

.page-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.page-band-dark .eyebrow,
.page-band-teal .eyebrow {
  color: var(--aqua);
}

.page-band-dark .page-heading p:last-child,
.page-band-teal .page-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.prose-grid h2 {
  position: sticky;
  top: 120px;
}

.prose-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.prose-copy p {
  margin-bottom: 1.4rem;
}

.values-grid,
.leadership-grid,
.ministry-detail-grid,
.sermon-grid,
.event-detail-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-item,
.leader-card,
.ministry-detail,
.sermon-card,
.event-detail,
.info-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value-item,
.leader-card,
.ministry-detail,
.info-card {
  padding: 1.35rem;
}

.value-number,
.leader-role,
.ministry-number,
.sermon-meta,
.event-label {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.value-item h3 {
  margin-top: 3rem;
}

.leader-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.leader-avatar {
  width: 70px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
}

.leader-card p,
.ministry-detail p,
.info-card p {
  color: var(--muted);
}

.leader-card a,
.ministry-detail a,
.info-card a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.belief-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.belief-pillar {
  min-height: 210px;
  padding: 1.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.belief-pillar span {
  color: var(--aqua);
  font-weight: 950;
}

.belief-pillar p {
  color: rgba(255, 255, 255, 0.7);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-field,
.field {
  display: grid;
  gap: 0.45rem;
}

.search-field label,
.field label,
.fieldset-title {
  font-size: 0.82rem;
  font-weight: 900;
}

.search-field input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd7d8;
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.filter-group {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.filter-button.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.sermon-card {
  overflow: hidden;
}

.sermon-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sermon-play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.sermon-body {
  padding: 1.2rem;
}

.sermon-body h2 {
  margin: 0.55rem 0;
  font-size: 1.32rem;
  line-height: 1.1;
}

.sermon-body p {
  color: var(--muted);
}

.sermon-body a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.empty-state {
  display: none;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.calendar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  color: #fff;
  background: var(--ink);
}

.calendar-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-grid > * {
  min-width: 0;
  min-height: 72px;
  padding: 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-weekday {
  min-height: auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.calendar-day {
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.calendar-day.is-muted {
  color: #b8c1c2;
}

.calendar-day.has-event {
  color: #fff;
  background: var(--teal);
}

.calendar-day small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.64rem;
  line-height: 1.2;
}

.calendar-note {
  padding: 1.3rem;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.calendar-note p {
  color: rgba(255, 255, 255, 0.72);
}

.event-detail {
  overflow: hidden;
}

.event-date-block {
  min-height: 110px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: #fff;
  background: var(--ink);
}

.event-date-block > * {
  min-width: 0;
}

.event-date-block strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.event-detail-body {
  padding: 1.2rem;
}

.event-detail-body p {
  color: var(--muted);
}

.event-facts {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.ministry-detail {
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.ministry-detail h2 {
  margin: auto 0 0.7rem;
  font-size: 1.65rem;
}

.ministry-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 1.2rem;
}

.ministry-tags span {
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  color: var(--ink);
  background: var(--quiet);
  font-size: 0.72rem;
  font-weight: 850;
}

.visit-layout,
.form-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.schedule-list {
  border-top: 1px solid var(--line);
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row strong {
  color: var(--teal);
}

.schedule-row span {
  color: var(--muted);
}

.visit-map {
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.faq-question span:last-child {
  color: var(--teal);
  font-size: 1.3rem;
}

.faq-answer {
  display: none;
  max-width: 760px;
  padding: 0 0 1.2rem;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.request-panel,
.contact-panel,
.form-card {
  border-radius: var(--radius);
}

.request-panel,
.contact-panel {
  padding: 1.5rem;
  color: #fff;
  background: var(--ink);
}

.request-panel p,
.contact-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.request-panel a,
.contact-panel a {
  color: var(--aqua);
  font-weight: 900;
}

.form-card {
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-helper {
  margin: -0.25rem 0 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.field-full {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.form-submit {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 1.2rem;
  color: #fff;
  background: var(--ink);
  font-weight: 950;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  color: var(--teal);
  font-weight: 850;
}

.privacy-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.privacy-list div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.page-footer {
  padding: 4.5rem max(16px, calc((100vw - 1180px) / 2)) 2rem;
  color: #fff;
  background: var(--teal);
}

.page-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(130px, 0.6fr));
  gap: 2rem;
  align-items: start;
}

.page-footer-main > * {
  min-width: 0;
}

.page-footer .footer-logo {
  width: 100%;
  margin: 0 0 1.3rem;
}

.page-footer h2 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}

.page-footer-links {
  display: grid;
  gap: 0.55rem;
}

.page-footer a {
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.page-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .values-grid,
  .leadership-grid,
  .ministry-detail-grid,
  .sermon-grid,
  .event-detail-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose-grid,
  .calendar-shell,
  .visit-layout,
  .form-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .prose-grid h2 {
    position: static;
  }

  .page-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-hero {
    min-height: 500px;
    padding-top: 8.5rem;
  }

  .page-hero h1 {
    font-size: 3.7rem;
  }

  .values-grid,
  .leadership-grid,
  .ministry-detail-grid,
  .sermon-grid,
  .event-detail-grid,
  .info-grid,
  .belief-pillars,
  .form-grid,
  .page-footer-main {
    grid-template-columns: 1fr;
  }

  .event-date-block {
    min-height: auto;
    align-items: start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .event-date-block > span {
    font-size: 0.82rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-grid > * {
    min-height: 55px;
    padding: 0.35rem;
    font-size: 0.75rem;
  }

  .calendar-day small {
    display: none;
  }

  .community-event-list article,
  .schedule-row {
    grid-template-columns: 1fr;
  }

  .visit-map {
    min-height: 380px;
  }
}

@media (max-width: 380px) {
  .page-hero h1 {
    font-size: 2.9rem;
    line-height: 0.95;
  }
}
