:root {
  --gold: #8b6914;
  --gold-light: #c9a84c;
  --gold-pale: #f7f0df;
  --gold-soft: #efe1be;
  --navy: #1b2a4a;
  --navy-mid: #2c3e6b;
  --navy-pale: #eef1f8;
  --stone: #f5f3ef;
  --stone-mid: #e8e4dc;
  --ink: #1a1814;
  --ink-mid: #3d3a35;
  --ink-soft: #6b6660;
  --white: #fff;
  --font-serif: "EB Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-nav: 0 2px 16px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.error-page #main {
  display: flex;
  flex: 1 0 auto;
}

.error-page .interior-hero {
  display: flex;
  align-items: center;
  width: 100%;
}

a { color: inherit; }

/* Interior hero follows the About and Ministries hero system. */
.interior-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 24px 60px;
  background: var(--navy);
  color: var(--white);
}

.interior-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 80% -10%, rgba(139, 105, 20, 0.35), transparent 65%);
  pointer-events: none;
}

.interior-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow,
.section-label {
  display: block;
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.interior-hero .eyebrow { color: var(--gold-light); }

.interior-hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.interior-hero .lede {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.75;
}

.interior-hero .actions { margin-top: 28px; }

/* Content rhythm mirrors the existing 1120–1200px page containers. */
.content-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 78px 24px 96px;
}

.section {
  scroll-margin-top: 88px;
  padding: 64px 0;
  border-top: 1px solid var(--stone-mid);
}

.section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section:last-child { padding-bottom: 0; }

.section h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 550;
  line-height: 1.2;
}

.section h3,
.card h3,
.notice h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 550;
  line-height: 1.2;
}

.section p,
.card p,
.notice p {
  max-width: 72ch;
  margin: 0 0 15px;
  color: var(--ink-mid);
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  padding: 28px;
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.card-accent {
  border-top: 3px solid var(--gold-light);
}

.card p:last-child,
.notice p:last-child { margin-bottom: 0; }

.notice {
  padding: 28px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  background: var(--gold-pale);
}

.details {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.details li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-mid);
}

.details li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
}

.schedule {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.schedule th,
.schedule td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--stone-mid);
  text-align: left;
  vertical-align: top;
}

.schedule th {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid var(--navy);
  border-radius: 100px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--navy-mid);
}

.button-secondary {
  background: transparent;
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.button-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.button-gold:hover {
  border-color: #7a5b10;
  background: #7a5b10;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.resource-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.resource-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.resource-list a:hover {
  border-color: var(--gold-light);
  background: var(--gold-pale);
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 64px 24px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(201, 168, 76, 0.2), transparent 55%);
  pointer-events: none;
}

.cta-band > * { position: relative; }

.cta-band h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 550;
}

.cta-band p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.72);
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .interior-hero { padding: 58px 20px 52px; }
  .interior-hero h1 { font-size: clamp(32px, 11vw, 42px); }
  .content-shell { padding: 58px 20px 72px; }
  .section { padding: 52px 0; }
  .intro-grid,
  .split,
  .card-grid { grid-template-columns: 1fr; }
  .intro-grid,
  .split { gap: 28px; }
  .card-grid { gap: 14px; }
  .card,
  .notice { padding: 22px; }
  .schedule { font-size: 13px; }
  .schedule th,
  .schedule td { padding: 10px 5px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .resource-list a { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
