:root {
  --bg: #fef9ef;
  --paper: rgba(255, 250, 241, 0.88);
  --paper-strong: #fffaf1;
  --surface: #f4eee3;
  --line: #d5d2c7;
  --line-strong: #bec8cb;
  --ink: #1d1c16;
  --muted: #526168;
  --primary: #006673;
  --primary-soft: #1a8090;
  --accent: #8d6233;
  --shadow: 0 24px 48px rgba(47, 61, 67, 0.08);
  --radius: 1.15rem;
  --stitch-landscape: url("https://lh3.googleusercontent.com/aida-public/AB6AXuBlm-nO9oJ4t1FgAF3d2T-du7CzLhudQtNdjJR8aHFU4Z5aiYJc1nIbzIZcIOelKb635dDeqnPy9PNMlBzh6wQRUC68aXBkEFzztMsu3DWZK-lzxZlTUBctK2pnlQeOuxge_gKI_7i999rNHZeHkJAMdVDZg0YKKyKzZ2BUCd6uTvl8jSEKmEFVbvDPB6LVlX2ExWCvGXOA3GGVGC-slvbUO_kFPRKB6bItCaUCsTNvN_EmlQgLE6DEAid_dtrdge7H4TPx1XAxbxE");
}

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

html {
  scroll-behavior: smooth;
}

body.ministry-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(26, 128, 144, 0.08), transparent 24rem),
    radial-gradient(circle at 80% 0%, rgba(141, 98, 51, 0.08), transparent 22rem),
    radial-gradient(#d7e2e8 0.65px, transparent 0.65px);
  background-size: auto, auto, 24px 24px;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus {
  color: var(--primary-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

.site-main {
  padding: 0 0 5rem;
}

.grid-container {
  max-width: 76rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0 0;
}

.masthead-card,
.paper-card,
.footer-card,
.side-panel__inner,
.toc-card {
  background: var(--paper);
  border: 1px solid rgba(190, 200, 203, 0.6);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.masthead-card {
  padding: 1rem 1.25rem 1.15rem;
}

.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--muted);
  text-decoration: none;
}

.brand-lockup__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-lockup__name {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.6rem, 2vw, 2.35rem);
  font-style: italic;
  line-height: 1;
  color: var(--ink);
}

.nav-toggle {
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  border: 1px solid rgba(82, 97, 104, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.26rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--muted);
}

.primary-nav {
  display: none;
  padding-top: 1rem;
}

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

.site-menu,
.site-submenu,
.menu-stack,
.side-panel__list,
.crumbs ol,
.toc-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-menu__item {
  position: relative;
}

.site-menu__link,
.site-submenu a {
  display: block;
  text-decoration: none;
  color: var(--muted);
}

.site-menu__link {
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.45);
}

.site-menu__link:hover,
.site-menu__link:focus {
  background: rgba(0, 102, 115, 0.08);
}

.site-submenu {
  margin-top: 0.4rem;
  border-left: 1px solid rgba(190, 200, 203, 0.8);
  padding-left: 0.9rem;
}

.site-submenu a {
  padding: 0.5rem 0;
  font-size: 0.92rem;
}

.crumbs {
  padding-top: 1.5rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(82, 97, 104, 0.55);
}

.hero-shell,
.page-shell {
  padding-top: 1.75rem;
}

.paper-card {
  padding: clamp(1.3rem, 2vw, 2rem);
}

.paper-card--hero,
.paper-card--content,
.paper-card--rail {
  position: relative;
  overflow: hidden;
}

.paper-card--hero::before,
.paper-card--content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 38%),
    linear-gradient(135deg, rgba(26, 128, 144, 0.04), transparent 60%);
  pointer-events: none;
}

.hero-skyline::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(254, 249, 239, 0.18), rgba(254, 249, 239, 0.7)),
    var(--stitch-landscape) center/cover no-repeat;
  opacity: 0.24;
  filter: saturate(0.8);
}

.section-tag {
  margin: 0 0 0.85rem;
  color: var(--primary);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.page-intro h1,
.page-hero__title,
.article-intro h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.page-intro {
  margin-bottom: 1.4rem;
}

.page-intro p:last-child,
.article-summary {
  margin-bottom: 0;
}

.content-flow {
  position: relative;
  z-index: 1;
}

.content-flow > * + * {
  margin-top: 1.15rem;
}

.content-flow--hero {
  max-width: 40rem;
}

.content-flow--hero .rich-paragraph:first-child {
  font-size: 1.22rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
  position: relative;
  z-index: 1;
}

.hero-button {
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  border: none;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 102, 115, 0.18);
}

.hero-button--quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(82, 97, 104, 0.3);
  box-shadow: none;
}

.menu-stack {
  display: grid;
  gap: 0.75rem;
}

.menu-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(190, 200, 203, 0.5);
}

.menu-stack small {
  min-width: 1.9rem;
  padding: 0.24rem 0.46rem;
  border-radius: 999px;
  background: rgba(0, 102, 115, 0.1);
  color: var(--primary);
  text-align: center;
}

.paper-card--narrow {
  max-width: 50rem;
  margin: 0 auto;
}

.paper-card--thin {
  max-width: 42rem;
  margin: 0 auto;
}

.resource-flow .rich-paragraph:last-child a {
  font-weight: 700;
}

.resource-grid,
.category-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.category-grid--3,
.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.resource-card {
  border: 1px solid rgba(190, 200, 203, 0.7);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 16px 30px rgba(29, 28, 22, 0.05);
}

.resource-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(0, 102, 115, 0.08), rgba(141, 98, 51, 0.1));
}

.resource-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card__body {
  padding: 1.15rem 1.1rem 1.2rem;
}

.resource-card__body h2,
.resource-card__body h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.resource-card__body p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.media-stack {
  display: grid;
  gap: 1rem;
}

.rich-heading {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  color: var(--muted);
  line-height: 1.15;
}

.rich-heading--1 {
  font-size: 2.2rem;
}

.rich-heading--2 {
  font-size: 1.8rem;
}

.rich-heading--3 {
  font-size: 1.35rem;
}

.rich-paragraph {
  color: rgba(29, 28, 22, 0.88);
  line-height: 1.9;
  font-size: 1rem;
}

.rich-paragraph p,
.rich-paragraph strong,
.rich-paragraph em {
  max-width: 100%;
}

.rich-image {
  margin: 0;
}

.rich-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 14px 28px rgba(29, 28, 22, 0.08);
}

.rich-image figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.rich-list,
.rich-list--ordered {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(29, 28, 22, 0.88);
  line-height: 1.85;
}

.rich-list li + li,
.rich-list--ordered li + li {
  margin-top: 0.45rem;
}

.rich-table-wrap {
  overflow-x: auto;
}

.rich-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.64);
  border-radius: 1rem;
  overflow: hidden;
}

.rich-table th,
.rich-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(190, 200, 203, 0.55);
  text-align: left;
}

.rich-quote {
  margin: 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.72);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
}

.rich-code {
  margin: 0;
  padding: 1rem 1.15rem;
  background: #1d1c16;
  border-radius: 1rem;
  color: #f8f3e9;
  overflow-x: auto;
}

.rich-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.rich-gallery__item {
  margin: 0;
}

.rich-gallery__item img {
  width: 100%;
  border-radius: 1rem;
}

.rich-separator {
  margin: 1.6rem 0;
  border: 0;
  border-top: 1px solid rgba(190, 200, 203, 0.85);
}

.article-card,
.toc-card,
.side-panel__inner {
  margin-top: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-main-image {
  margin: 0 0 1.4rem;
  overflow: hidden;
  border-radius: 1rem;
}

.article-main-image img {
  width: 100%;
}

.toc-card {
  padding: 1.1rem 1rem;
}

.toc-card h2 {
  margin: 0 0 0.9rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
}

.toc-card ol {
  display: grid;
  gap: 0.55rem;
}

.toc-card a {
  text-decoration: none;
}

.toc-level-3 {
  padding-left: 0.8rem;
}

.toc-card--top {
  margin-bottom: 1rem;
}

.side-panel__inner {
  padding: 1rem;
}

.side-panel__list {
  display: grid;
  gap: 0.65rem;
}

.side-panel__list a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.64);
  text-decoration: none;
}

.site-footer {
  padding: 1rem 0 3rem;
}

.footer-card {
  padding: 1.2rem 1.3rem;
  text-align: center;
}

.footer-brand {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 0.8rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-meta {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 48em) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
  }

  .site-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
  }

  .site-menu__item:hover .site-submenu,
  .site-menu__item:focus-within .site-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    min-width: 13rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: var(--paper-strong);
    box-shadow: 0 20px 30px rgba(29, 28, 22, 0.09);
    border: 1px solid rgba(190, 200, 203, 0.7);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.45rem);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 20;
  }

  .paper-card--hero {
    min-height: 30rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 47.99875em) {
  .category-grid--2,
  .category-grid--3 {
    grid-template-columns: 1fr;
  }

  .crumbs {
    padding-top: 1rem;
  }
}

@media print {
  body.ministry-body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .nav-toggle,
  .hero-actions,
  .side-panel {
    display: none !important;
  }

  .paper-card,
  .footer-card,
  .toc-card {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }
}
