:root {
  --color-ink: #241f21;
  --color-muted: #665d5f;
  --color-white: #ffffff;
  --color-paper: #faf8f4;
  --color-mist: #eef5f3;
  --color-border: #ded8ce;
  --color-red: #870d1d;
  --color-red-dark: hsl(349, 91%, 25%);
  --color-accent-strip: var(--color-red-dark);
  --color-gold: #c79a3b;
  --color-teal: #16635d;
  --shadow-soft: 0 18px 60px rgba(36, 31, 33, 0.14);
  --shadow-subtle: 0 8px 30px rgba(36, 31, 33, 0.08);
  --font-sans: "Aptos", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-syriac: "AA Church Nisibin Marcus", "Estrangelo Edessa", "Noto Sans Syriac", serif;
  --container-gutter: 32px;
  --container: min(1120px, calc(100% - var(--container-gutter)));
  --radius: 8px;
  --space-section: 88px;
}

@font-face {
  font-family: "AA Church Nisibin Marcus";
  src: url("../fonts/aa-church-nisibin-marcus.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--color-red);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: 3.25rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.4rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

p {
  margin-bottom: 1rem;
}

[id] {
  scroll-margin-top: 128px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(22, 99, 93, 0.34);
  outline-offset: 3px;
}

.container {
  min-width: 0;
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-red-dark);
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.not-found-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px var(--container-gutter);
}

.not-found {
  width: min(100%, 640px);
  text-align: center;
}

.not-found__logo-link {
  display: inline-block;
  margin-bottom: 22px;
  border-radius: 50%;
}

.not-found__mark {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.not-found h1 {
  max-width: none;
  margin-bottom: 16px;
}

.not-found p {
  margin-inline: auto;
  max-width: 560px;
}

.not-found__return {
  margin-top: 8px;
}

.not-found__home-link {
  color: #1d4ed8;
  font-weight: 800;
}

.not-found__home-link:hover,
.not-found__home-link:focus-visible {
  color: #1e40af;
}

.attendance-page {
  min-height: 100svh;
  background:
    linear-gradient(140deg, rgba(135, 13, 29, 0.12), rgba(199, 154, 59, 0.12)),
    var(--color-paper);
}

.attendance-shell {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(24px, 6vw, 52px) var(--container-gutter);
}

.attendance-panel {
  width: min(100%, 700px);
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.attendance-header,
.attendance-form {
  padding: clamp(22px, 5vw, 34px);
}

.attendance-header {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid rgba(36, 31, 33, 0.1);
  background:
    linear-gradient(90deg, rgba(22, 13, 16, 0.78), rgba(22, 13, 16, 0.52)),
    url("../img/mar-gewargis-cathedral.jpg?v=20260813-10") center 48% / cover;
  color: var(--color-white);
}

.attendance-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--color-white);
  font-weight: 800;
  text-decoration: none;
}

.attendance-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
}

.attendance-kicker {
  margin: 10px 0 0;
  color: var(--color-gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.attendance-header h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: 4.7rem;
}

.attendance-header p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.attendance-form {
  display: grid;
  gap: 18px;
}

.attendance-field {
  display: grid;
  gap: 8px;
}

.attendance-field label,
.attendance-field-label {
  color: var(--color-red);
  font-weight: 800;
}

.attendance-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(36, 31, 33, 0.18);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 1.1rem;
  padding: 14px 16px;
}

.attendance-event-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attendance-event-button {
  min-height: 64px;
  border: 1px solid rgba(135, 13, 29, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-red-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.15;
  padding: 14px 16px;
  text-align: center;
}

.attendance-event-button:hover,
.attendance-event-button:focus-visible {
  border-color: rgba(135, 13, 29, 0.5);
  background: rgba(135, 13, 29, 0.08);
}

.attendance-event-button[aria-pressed="true"] {
  border-color: var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(135, 13, 29, 0.18);
}

.attendance-status {
  margin: 0;
  border-radius: var(--radius);
  background: var(--color-mist);
  color: var(--color-muted);
  padding: 12px 14px;
  font-weight: 800;
}

.attendance-status[hidden] {
  display: none;
}

.attendance-status--success {
  background: rgba(22, 99, 93, 0.12);
  color: var(--color-teal);
}

.attendance-status--error {
  background: rgba(135, 13, 29, 0.1);
  color: var(--color-red-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(36, 31, 33, 0.1);
  backdrop-filter: blur(16px);
}

.utility-bar {
  background: var(--color-red-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
}

.utility-bar a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.brand-block {
  display: grid;
  min-width: 240px;
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 100%;
  color: var(--color-ink);
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 auto;
  display: block;
  width: 54px;
  height: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
}

.brand__copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand__title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.brand__meta {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.brand__updates {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-red-dark);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle__icon::before {
  transform: translateY(-6px);
}

.nav-toggle__icon::after {
  transform: translateY(6px);
}

.nav--open .nav-toggle__icon {
  background: transparent;
}

.nav--open .nav-toggle__icon::before {
  transform: rotate(45deg);
}

.nav--open .nav-toggle__icon::after {
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-nav a {
  border-radius: var(--radius);
  padding: 8px 2px;
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--color-red);
  box-shadow: inset 0 -2px 0 var(--color-accent-strip);
}

.primary-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.primary-nav .nav-donate,
.primary-nav .nav-acero {
  color: var(--color-red);
}

.site-search {
  position: relative;
  flex: 0 0 auto;
}

.site-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-search__toggle,
.site-search__button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-red);
  cursor: pointer;
}

.site-search__toggle {
  width: 28px;
  height: 28px;
  padding: 3px;
}

.site-search__toggle svg,
.site-search__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-search__toggle:hover,
.site-search__toggle:focus-visible,
.site-search__button:hover,
.site-search__button:focus-visible {
  color: var(--color-gold-dark);
}

.site-search__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: 8px;
}

.site-search__panel[hidden] {
  display: none;
}

.site-search__control {
  display: flex;
  align-items: stretch;
  min-height: 36px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  overflow: hidden;
}

.site-search__input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  padding: 8px 9px;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.2;
}

.site-search__input:focus {
  outline: 0;
}

.site-search__button {
  border-left: 1px solid rgba(36, 31, 33, 0.12);
  background: var(--color-paper);
  padding: 8px 10px;
}

.site-search__results {
  max-height: min(460px, calc(100vh - 150px));
  overflow-y: auto;
  margin-top: 8px;
}

.site-search__results[hidden] {
  display: none;
}

.site-search__results a,
.site-search__empty {
  display: block;
  border-radius: 6px;
  padding: 10px;
}

.site-search__results a {
  color: var(--color-ink);
  text-decoration: none;
}

.site-search__results a:hover,
.site-search__results a:focus-visible {
  background: var(--color-paper);
  color: var(--color-ink);
}

.site-search__results strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
  line-height: 1.18;
}

.site-search__results span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-red);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-search__results p,
.site-search__empty {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero {
  position: relative;
  display: grid;
  min-height: 72svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(22, 13, 16, 0.84) 0%, rgba(22, 13, 16, 0.62) 46%, rgba(22, 13, 16, 0.2) 100%),
    url("../img/mar-gewargis-cathedral.jpg?v=20260813-10") center 46% / cover;
  color: var(--color-white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--color-accent-strip);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: inherit;
  padding-block: 72px 58px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--color-red);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--color-gold);
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  color: inherit;
}

.button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.button--gold {
  background: var(--color-gold);
  color: var(--color-red-dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}

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

.button--outline {
  border-color: rgba(36, 31, 33, 0.22);
  background: transparent;
  color: var(--color-ink);
}

.faith-dialog {
  width: min(760px, calc(100vw - clamp(24px, 8vw, 96px)));
  max-height: min(860px, calc(100vh - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  border: 0;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0;
  box-shadow: var(--shadow-soft);
}

.faith-dialog::backdrop {
  background: rgba(36, 31, 33, 0.58);
}

.faith-dialog__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: inherit;
  padding: clamp(20px, 4vw, 34px);
}

.faith-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-red-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.faith-dialog h2 {
  margin: 0 42px 18px 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.faith-dialog__body {
  display: grid;
  gap: clamp(14px, 2.4vw, 18px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.faith-dialog__body p {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.03rem);
  line-height: 1.6;
}

.hero__details {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  gap: 12px clamp(30px, 4vw, 52px);
  width: max-content;
  max-width: 100%;
  margin: 34px 0 0;
}

.hero__details div {
  border-left: 3px solid var(--color-gold);
  padding-left: 14px;
}

.hero__details dt {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero__details dd {
  margin: 0;
  font-weight: 800;
}

.hero__detail--location dd {
  white-space: nowrap;
}

.address-link {
  color: inherit;
  font-weight: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hero__map-link {
  color: var(--color-white);
  text-decoration-color: rgba(255, 255, 255, 0.52);
}

.hero__map-link:hover,
.hero__map-link:focus-visible {
  color: var(--color-gold);
}

.hero__phone {
  white-space: nowrap;
  color: var(--color-white);
  text-decoration: none;
}

.service-band {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.service-band__inner {
  display: grid;
  grid-template-columns: 0.55fr 1.75fr;
  gap: 28px;
  padding-block: 32px;
}

.section-label h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.section-label h2 span {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid.service-grid--home {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.service-item {
  min-width: 0;
  border-left: 3px solid var(--color-red);
  padding: 4px 16px;
}

.service-grid--home .service-item:last-child {
  grid-column: auto;
}

.service-item__day {
  margin-bottom: 4px;
  color: var(--color-teal);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.service-item h3,
.service-item p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.service-item p:last-child {
  color: var(--color-muted);
}

.section {
  padding-block: var(--space-section);
  scroll-margin-top: 128px;
}

.section--white {
  background: var(--color-white);
}

.section--mist {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0)),
    var(--color-mist);
}

.section--deep {
  background:
    linear-gradient(135deg, rgba(123, 30, 43, 0.94), rgba(66, 16, 25, 0.98)),
    var(--color-red-dark);
  color: var(--color-white);
}

.section--deep p {
  color: rgba(255, 255, 255, 0.82);
}

.resources-forms-section {
  padding-block-start: calc(var(--space-section) * 0.58);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 56px;
}

.split--center {
  align-items: center;
}

.section-copy {
  min-width: 0;
  max-width: 660px;
}

.section-copy p,
.section-intro p {
  color: var(--color-muted);
  font-size: 1.03rem;
}

.faith-statement {
  max-width: 940px;
}

.faith-statement__body {
  max-width: 860px;
}

.faith-statement__body p {
  color: var(--color-muted);
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  line-height: 1.72;
}

.faith-statement__body p:last-child {
  margin-bottom: 0;
  font-weight: 800;
}

.section--deep .section-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.bishop-title span {
  display: block;
}

.bishop-portrait {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #f1e8d8;
  box-shadow: var(--shadow-subtle);
}

.bishop-portrait::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 14px #f1e8d8,
    inset 0 0 0 15px rgba(123, 30, 43, 0.14);
  content: "";
  pointer-events: none;
}

.bishop-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  object-position: center center;
}

.timeline {
  display: grid;
  align-content: center;
  gap: 16px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.timeline__item span {
  color: var(--color-red);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.timeline__item p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.timeline--light .timeline__item {
  border-top-color: rgba(255, 255, 255, 0.58);
}

.timeline--light .timeline__item span,
.timeline--light .timeline__item p {
  color: var(--color-white);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro--compact {
  max-width: 680px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.action-tile {
  display: grid;
  min-width: 0;
  min-height: 180px;
  align-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-paper);
  padding: 24px;
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 30, 43, 0.28);
  box-shadow: var(--shadow-subtle);
  color: var(--color-ink);
}

.action-tile span {
  color: var(--color-teal);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.action-tile strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.lectionary-panel {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
  max-width: 960px;
}

.lectionary-panel .section-intro {
  margin-bottom: 0;
}

.lectionary-table-wrap {
  --lectionary-reading-col: clamp(7.25rem, 34%, 15rem);

  height: auto;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

.lectionary-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  text-align: left;
}

.lectionary-table caption {
  padding: clamp(14px, 2.2vw, 20px) clamp(14px, 2.8vw, 22px) 0;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.14rem, 1.7vw, 1.34rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.lectionary-caption__inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px 18px;
  width: 100%;
}

.lectionary-caption__inner > [data-lectionary-caption] {
  min-width: max-content;
  white-space: nowrap;
}

.lectionary-table__reading-col {
  width: var(--lectionary-reading-col);
}

.lectionary-table__citation-col {
  width: auto;
}

.lectionary-syriac {
  display: inline-block;
  max-width: 100%;
  color: var(--color-red-dark);
  font-family: var(--font-syriac);
  font-size: 2.35rem;
  font-weight: 400;
  justify-self: center;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
  text-rendering: geometricPrecision;
  unicode-bidi: isolate;
}

.lectionary-syriac[hidden] {
  display: none;
}

.lectionary-table th,
.lectionary-table td {
  border-top: 1px solid rgba(36, 31, 33, 0.1);
  padding: clamp(10px, 1.8vw, 16px) clamp(14px, 2.8vw, 22px);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.lectionary-table thead th {
  color: var(--color-red);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lectionary-table tbody th {
  width: var(--lectionary-reading-col);
  color: var(--color-teal);
  font-weight: 800;
}

.lectionary-table tbody td {
  color: var(--color-ink);
  font-weight: 700;
}

.lectionary-table__empty {
  color: var(--color-muted);
  font-weight: 700;
}

.lectionary-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 16px;
}

.lectionary-schedule {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.lectionary-schedule--page {
  overflow: visible;
  padding-right: 0;
}

.lectionary-schedule--page .lectionary-schedule__item {
  background: var(--color-white);
}

.lectionary-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}

.lectionary-tools__search {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  overflow: hidden;
}

.lectionary-tools__input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.2;
  padding: 12px 14px;
}

.lectionary-tools__input:focus {
  outline: 0;
}

.lectionary-calendar-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-red-dark);
  color: var(--color-white);
  cursor: pointer;
}

.lectionary-calendar-button:hover,
.lectionary-calendar-button:focus-visible {
  background: var(--color-red);
  color: var(--color-white);
}

.lectionary-calendar-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.lectionary-calendar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lectionary-tools--date-open .lectionary-calendar-input {
  position: static;
  grid-column: 1 / -1;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  opacity: 1;
  padding: 10px 12px;
  pointer-events: auto;
}

.lectionary-tools__status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.lectionary-schedule__item {
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-paper);
  overflow: hidden;
}

.lectionary-schedule__item--focused {
  border-color: rgba(135, 13, 29, 0.58);
  box-shadow: 0 0 0 3px rgba(135, 13, 29, 0.1);
}

.lectionary-schedule__summary {
  display: grid;
  grid-template-columns: minmax(10.25rem, 0.3fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: baseline;
  padding: 14px 16px;
  cursor: pointer;
}

.lectionary-schedule__date {
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lectionary-schedule__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.18;
}

.lectionary-schedule__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  min-width: 0;
}

.lectionary-schedule__syriac {
  flex: 0 0 auto;
  color: var(--color-red-dark);
  font-family: var(--font-syriac);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  text-rendering: geometricPrecision;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.lectionary-schedule__readings {
  display: grid;
  grid-template-columns: minmax(7rem, 0.24fr) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid rgba(36, 31, 33, 0.12);
  background: var(--color-white);
}

.lectionary-schedule__readings dt,
.lectionary-schedule__readings dd {
  margin: 0;
  border-top: 1px solid rgba(36, 31, 33, 0.08);
  padding: 10px 14px;
}

.lectionary-schedule__readings dt:first-child,
.lectionary-schedule__readings dt:first-child + dd {
  border-top: 0;
}

.lectionary-schedule__readings dt {
  color: var(--color-teal);
  font-weight: 800;
}

.lectionary-schedule__readings dd {
  color: var(--color-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-panel {
  max-width: 940px;
  margin-inline: auto;
  min-width: 0;
}

.event-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.event-list--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.event-list--page {
  gap: 14px;
}

.event-card {
  min-width: 0;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-left: 4px solid var(--color-red-dark);
  border-radius: var(--radius);
  background: var(--color-white);
  padding: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.event-card--focused {
  border-color: rgba(135, 13, 29, 0.58);
  box-shadow: 0 0 0 3px rgba(135, 13, 29, 0.1), var(--shadow-subtle);
}

.event-card__date {
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.event-card h3 {
  margin-bottom: 8px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.event-card__syriac {
  margin: 8px 0 10px;
  color: var(--color-red-dark);
  font-family: var(--font-syriac);
  font-size: 1.32rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-rendering: geometricPrecision;
  unicode-bidi: isolate;
}

.event-card__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.event-actions {
  display: flex;
  justify-content: flex-start;
  margin: 18px 0 0;
}

.event-month-browser {
  margin: 22px 0;
  min-width: 0;
  max-width: 100%;
}

.event-month-browser__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.event-month-folder {
  display: block;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  padding: 0;
  text-align: left;
  box-shadow: var(--shadow-subtle);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.event-month-folder:hover,
.event-month-folder:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(135, 13, 29, 0.24);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.event-month-folder--active {
  border-color: rgba(135, 13, 29, 0.45);
  background: linear-gradient(90deg, rgba(135, 13, 29, 0.08), var(--color-white) 42%);
  box-shadow: 0 0 0 3px rgba(135, 13, 29, 0.08), var(--shadow-subtle);
}

.event-month-folder--active:hover,
.event-month-folder--active:focus-visible {
  box-shadow: 0 0 0 3px rgba(135, 13, 29, 0.1), var(--shadow-soft);
}

.event-month-folder__header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.event-month-folder__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(199, 154, 59, 0.16);
  color: var(--color-red-dark);
}

.event-month-folder__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.event-month-folder--active .event-month-folder__icon {
  background: var(--color-red-dark);
  color: var(--color-white);
}

.event-month-folder__label {
  display: block;
  margin-bottom: 4px;
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.event-month-folder__name {
  min-width: 0;
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.event-month-folder__count {
  min-width: 0;
  display: block;
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.event-month-folder__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--color-red);
  transform: rotate(-45deg);
}

.event-month-folder--active .event-month-folder__label,
.event-month-folder--active .event-month-folder__arrow {
  color: var(--color-red-dark);
}

.event-month {
  margin: 18px 0 0;
  color: var(--color-red);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.1;
}

.event-empty {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-weight: 700;
}

.visit-section {
  background:
    linear-gradient(90deg, rgba(250, 248, 244, 0.92), rgba(250, 248, 244, 0.76)),
    var(--color-paper);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 38px 56px;
  align-items: start;
}

.contact-list {
  display: grid;
  min-width: 0;
  gap: 16px;
  border-left: 3px solid var(--color-accent-strip);
  padding-left: 24px;
}

.contact-list div {
  border-bottom: 1px solid rgba(36, 31, 33, 0.12);
  padding-bottom: 14px;
}

.contact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--color-red);
  font-weight: 800;
}

.contact-list p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.contact-form {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin-top: 24px;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.contact-form .button {
  justify-self: start;
  cursor: pointer;
}

.contact-form__intro {
  display: grid;
  gap: 6px;
}

.contact-form__intro h3 {
  margin: 0;
  color: var(--color-red-dark);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.1;
}

.contact-form__required-note {
  margin: -4px 0 0;
  color: #d93025;
  font-size: 0.94rem;
  font-weight: 800;
}

.contact-form .contact-form__required-note {
  color: #d93025;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form__field {
  display: grid;
  gap: 8px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__field label {
  color: var(--color-red);
  font-weight: 800;
}

.contact-form__required-marker {
  color: var(--color-red);
}

.contact-form__input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(36, 31, 33, 0.16);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  padding: 13px 14px;
}

.contact-form__input:focus {
  border-color: rgba(135, 13, 29, 0.5);
  outline: 3px solid rgba(135, 13, 29, 0.12);
}

.contact-form__textarea {
  min-height: 112px;
  overflow: hidden;
  resize: none;
}

.contact-form__notice,
.contact-form__status {
  margin: 0;
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.42;
}

.contact-form__notice {
  background: rgba(214, 166, 66, 0.12);
  color: var(--color-muted);
}

.contact-form__status {
  background: var(--color-mist);
  color: var(--color-muted);
}

.contact-form__status[hidden] {
  display: none;
}

.contact-form__status--success {
  background: rgba(22, 99, 93, 0.12);
  color: var(--color-teal);
}

.contact-form__status--error {
  background: rgba(135, 13, 29, 0.1);
  color: var(--color-red-dark);
}

.prayer-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.prayer-request-form {
  margin-top: 0;
}

.prayer-request-optional {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.youth-feedback-form {
  margin-top: 0;
}

.section--deep .youth-feedback-form .contact-form__intro p,
.section--deep .youth-feedback-form .contact-form__notice,
.section--deep .youth-feedback-form .contact-form__status {
  color: var(--color-muted);
}

.section--deep .youth-feedback-form .contact-form__status--success {
  color: var(--color-teal);
}

.section--deep .youth-feedback-form .contact-form__status--error {
  color: var(--color-red-dark);
}

.section--deep .youth-feedback-form a {
  color: var(--color-red);
  font-weight: 800;
}

.prayer-reference-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: rgba(214, 166, 66, 0.12);
  padding: 24px;
}

.prayer-reference-panel h2 {
  margin: 0;
  color: var(--color-red-dark);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.1;
}

.prayer-reference-panel p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.prayer-verse-list {
  display: grid;
  gap: 12px;
}

.prayer-verse-list p {
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.5;
}

.prayer-verse-list strong {
  color: var(--color-red-dark);
  font-weight: 900;
}

.prayer-reference-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-ink);
  font-weight: 800;
}

.contact-map {
  display: grid;
  gap: 10px;
}

.contact-map__frame {
  overflow: hidden;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-mist);
  aspect-ratio: 4 / 3;
}

.contact-map__embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 44svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(22, 13, 16, 0.86) 0%, rgba(22, 13, 16, 0.64) 48%, rgba(22, 13, 16, 0.24) 100%),
    url("../img/mar-gewargis-cathedral.jpg?v=20260813-10") center 48% / cover;
  color: var(--color-white);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--color-accent-strip);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: inherit;
  padding-block: 70px 48px;
  text-align: left;
}

.page-hero h1 {
  max-width: 960px;
  margin-bottom: 18px;
  font-size: 4.9rem;
}

.page-hero h1:last-child {
  margin-bottom: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.38rem;
}

.page-hero__syriac {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-syriac);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-align: right;
  text-rendering: geometricPrecision;
  unicode-bidi: isolate;
}

.page-hero .eyebrow {
  font-size: 1.12rem;
}

.section-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.section-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
  padding-block: 14px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.section-nav a {
  text-decoration: none;
}

.section-nav a:hover {
  color: var(--color-red);
}

.button-row {
  margin-top: 24px;
}

.folder-back {
  display: flex;
  margin-bottom: 24px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.82fr);
  gap: 44px;
  align-items: start;
}

.stacked-list,
.fact-panel,
.link-panel {
  display: grid;
  gap: 14px;
}

.stacked-list article,
.fact-panel article {
  border-left: 3px solid var(--color-red);
  background: var(--color-white);
  padding: 18px 20px;
  box-shadow: var(--shadow-subtle);
}

.stacked-list span,
.fact-panel span,
.notice-panel span,
.link-panel span,
.directory-card > span,
.resource-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stacked-list strong,
.fact-panel strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.18;
}

.notice-panel {
  min-width: 0;
  border-left: 3px solid var(--color-accent-strip);
  background: var(--color-white);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.notice-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

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

.link-panel {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-paper);
  padding: 24px;
}

.link-panel a {
  display: block;
  border-top: 1px solid rgba(36, 31, 33, 0.12);
  padding-block: 12px;
  color: var(--color-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.link-panel a:last-child {
  padding-bottom: 0;
}

.link-panel a:hover {
  color: var(--color-red);
}

.link-panel--dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.link-panel--dark span,
.link-panel--dark a,
.section--deep .notice-panel span {
  color: var(--color-gold);
}

.link-panel--dark a {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

.directory-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.directory-grid--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.directory-card,
.resource-card {
  min-width: 0;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
}

.directory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.directory-card__portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 176px);
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(123, 30, 43, 0.16);
  background: #f1e8d8;
}

.directory-card__portrait::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 14px #f1e8d8,
    inset 0 0 0 15px rgba(123, 30, 43, 0.14);
  content: "";
  pointer-events: none;
}

.directory-card__initials {
  color: var(--color-red);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.directory-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center top;
}

.directory-card__photo--paulus {
  object-fit: contain;
  object-position: center center;
}

.directory-card__photo--katherine {
  object-position: 50% 50%;
}

.directory-card__photo--nohra {
  object-position: 50% 50%;
  transform: scale(1.72);
}

.directory-card__portrait--fallback .directory-card__photo {
  display: none;
}

.directory-card--wide {
  grid-column: span 2;
}

.directory-card h3,
.resource-card strong {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}

.directory-card p {
  margin-bottom: 8px;
  color: var(--color-muted);
}

.directory-card a {
  color: var(--color-red);
  font-size: 0.92rem;
  font-weight: 800;
}

.directory-card a,
.resource-card {
  overflow-wrap: anywhere;
}

.resource-card {
  min-height: 136px;
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 30, 43, 0.28);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.resource-card--scripture {
  display: grid;
  align-content: start;
  gap: 6px;
}

.resource-card--scripture em {
  display: block;
  color: var(--color-red-dark);
  font-family: var(--font-syriac);
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: right;
  text-rendering: geometricPrecision;
  unicode-bidi: isolate;
}

.bible-books {
  display: grid;
  gap: 42px;
}

.bible-testament {
  display: grid;
  gap: 18px;
  min-width: 0;
  scroll-margin-top: 128px;
}

.bible-testament__header {
  display: grid;
  gap: 4px;
}

.bible-testament__header h3 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.bible-book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bible-book-card {
  min-height: 172px;
}

.bible-book-card small {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.bible-book-page .section-intro {
  margin-bottom: 20px;
}

.bible-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.bible-chapter-nav a {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 38px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
}

.bible-chapter-nav a:hover,
.bible-chapter-nav a:focus-visible {
  border-color: rgba(135, 13, 29, 0.28);
  color: var(--color-red);
}

.bible-chapters {
  display: grid;
  gap: 14px;
}

.bible-chapter {
  min-width: 0;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.bible-chapter summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 16px 20px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 800;
  list-style-position: inside;
}

.bible-chapter summary span[lang="syr"] {
  color: var(--color-red-dark);
  font-family: var(--font-syriac);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  text-rendering: geometricPrecision;
  unicode-bidi: isolate;
}

.bible-verses {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(36, 31, 33, 0.1);
  padding: clamp(18px, 3vw, 28px);
}

.bible-verses--english {
  direction: ltr;
}

.bible-license-note {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

.bible-verse {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  color: var(--color-red-dark);
  font-family: var(--font-syriac);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
  text-rendering: geometricPrecision;
  unicode-bidi: isolate;
}

.bible-verse__number {
  align-self: start;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.4;
  text-align: left;
}

.library-tools {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 28px;
}

.library-tools__input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(36, 31, 33, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 16px;
  box-shadow: var(--shadow-subtle);
}

.library-tools__input:focus {
  outline: 2px solid rgba(135, 13, 29, 0.18);
  outline-offset: 2px;
}

.library-tools__status,
.library-empty {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.library-folder {
  min-width: 0;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.library-folder--link {
  color: var(--color-ink);
  text-decoration: none;
}

.library-folder--link:hover,
.library-folder--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(135, 13, 29, 0.24);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.library-folder__header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.library-folder__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(199, 154, 59, 0.16);
  color: var(--color-red-dark);
}

.library-folder__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.library-folder__label {
  display: block;
  margin-bottom: 4px;
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.library-folder__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.library-folder__meta {
  display: block;
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.library-folder__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--color-red);
  transform: rotate(-45deg);
}

.library-folder-toolbar {
  margin-bottom: 22px;
}

.library-book-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.library-book {
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 116px;
  align-content: start;
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  padding: 20px;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-subtle);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.library-book span {
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.library-book strong {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.18;
}

.library-book:hover,
.library-book:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(135, 13, 29, 0.24);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.library-empty {
  margin-top: 18px;
}

.details-list {
  display: grid;
  gap: 14px;
}

.details-list details {
  border: 1px solid rgba(36, 31, 33, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

.details-list summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.details-list details[open] summary {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-red);
}

.details-list details > div {
  padding: 20px 24px 24px;
}

.details-list p {
  color: var(--color-muted);
}

.details-list .sacrament-back {
  margin-bottom: 18px;
}

.details-list a {
  font-weight: 800;
}

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

.service-grid--dark .service-item {
  border-left-color: var(--color-accent-strip);
}

.section--deep .service-item__day,
.section--deep .service-item p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.76);
  padding-block: 42px 30px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 24px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-grid p + p {
  margin-top: 4px;
}

.footer-grid p a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-decoration: none;
}

.footer-grid p a:hover,
.footer-grid p a:focus-visible {
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
  min-width: 0;
}

.footer-nav a,
.footer-meta a {
  color: var(--color-white);
}

.footer-meta {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  font-size: 0.86rem;
}

.footer-meta p {
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-ink);
}

.footer-social svg {
  display: block;
  width: 16px;
  height: 16px;
}

.youth-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.youth-social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.youth-social a:hover,
.youth-social a:focus-visible {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-ink);
}

.youth-social svg {
  display: block;
  width: 17px;
  height: 17px;
}

.scroll-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: var(--color-red-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  transform: translateY(-2px);
  background: var(--color-red);
  color: var(--color-white);
}

.scroll-top--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.scroll-top::after {
  content: "Scroll to the top";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: max-content;
  max-width: 180px;
  transform: translateY(-50%);
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-white);
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.scroll-top:hover::after,
.scroll-top:focus-visible::after {
  opacity: 1;
}

@media (max-width: 1100px) {
  .nav {
    gap: 18px;
  }

  .brand {
    min-width: 210px;
  }

  .brand-block {
    min-width: 210px;
  }

  .primary-nav {
    gap: 6px 12px;
    font-size: 0.9rem;
  }

  .directory-grid,
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bible-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (min-width: 900px) {
  h1 {
    font-size: 4.7rem;
  }

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

  h2 {
    font-size: 3rem;
  }
}

@media (max-width: 920px) {
  :root {
    --space-section: 70px;
  }

  .utility-bar__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-shell {
    padding-block: 14px;
  }

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

  .service-band__inner,
  .split,
  .visit-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .bishop-portrait {
    justify-self: center;
    width: min(280px, 74vw);
  }

  .service-grid,
  .action-grid,
  .directory-grid,
  .directory-grid--compact,
  .event-month-browser__grid,
  .library-book-list,
  .library-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__details {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.5fr);
    width: 100%;
    max-width: 760px;
  }

  .hero__detail--phone {
    grid-column: 1 / -1;
  }

  .contact-layout .section-copy {
    display: contents;
  }

  .contact-layout .section-copy > h2 {
    order: 1;
  }

  .contact-layout .contact-list {
    display: contents;
    border-left: 0;
    padding-left: 0;
  }

  .contact-layout .contact-list > div:not(.contact-map) {
    order: 2;
  }

  .contact-layout .contact-form {
    order: 3;
  }

  .contact-layout .contact-map {
    order: 4;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 104px;
  }

  [id],
  .section {
    scroll-margin-top: 104px;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    width: var(--container);
  }

  .nav[data-mobile-nav="ready"] .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav[data-mobile-nav="ready"] .primary-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    max-height: 0;
    margin: 0;
    border: 0 solid transparent;
    border-radius: var(--radius);
    opacity: 0;
    overflow: hidden;
    padding: 0 8px;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height 220ms ease, opacity 160ms ease, transform 160ms ease, padding 160ms ease, border-color 160ms ease;
  }

  .nav[data-mobile-nav="ready"].nav--open .primary-nav {
    max-height: min(840px, calc(100vh - 86px));
    border-width: 1px;
    border-color: rgba(36, 31, 33, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-subtle);
    opacity: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav[data-mobile-nav="ready"] .primary-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    border-radius: 6px;
    padding: 9px 10px;
  }

  .nav[data-mobile-nav="ready"] .primary-nav > a {
    grid-column: 1 / -1;
  }

  .nav[data-mobile-nav="ready"] .primary-nav a[aria-current="page"] {
    background: rgba(199, 154, 59, 0.14);
    box-shadow: inset 3px 0 0 var(--color-accent-strip);
  }

  .nav[data-mobile-nav="ready"] .primary-nav__actions {
    display: contents;
  }

  .nav[data-mobile-nav="ready"] .primary-nav__actions a {
    justify-content: center;
    border: 1px solid rgba(123, 30, 43, 0.16);
    background: rgba(250, 248, 244, 0.88);
  }

  .nav[data-mobile-nav="ready"] .site-search {
    grid-column: 1 / -1;
    order: -1;
    justify-self: end;
  }

  .nav[data-mobile-nav="ready"] .site-search__control {
    min-height: 42px;
  }

  .nav[data-mobile-nav="ready"] .site-search__panel {
    width: min(330px, calc(100vw - 40px));
  }

  .nav[data-mobile-nav="ready"] .site-search__results {
    max-height: 300px;
  }

  .section-nav__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .section-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  :root {
    --container-gutter: clamp(24px, 7vw, 36px);
    --space-section: 42px;
  }

  body {
    font-size: 16px;
    overflow-x: hidden;
  }

  h1 {
    font-size: 2.12rem;
    overflow-wrap: break-word;
  }

  .hero h1 {
    max-width: 12.5ch;
    font-size: clamp(2rem, 10vw, 2.8rem);
    overflow-wrap: normal;
  }

  h2 {
    font-size: 1.72rem;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  h3 {
    font-size: 0.98rem;
  }

  p,
  dd,
  li {
    overflow-wrap: anywhere;
  }

  .utility-bar {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .nav-shell {
    min-height: 0;
    padding-block: 8px;
  }

  .nav {
    gap: 8px 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-block {
    min-width: 0;
  }

  .brand__copy {
    gap: 2px;
    line-height: 1.12;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__title {
    font-size: 0.94rem;
  }

  .brand__meta {
    display: block;
    max-width: 210px;
    font-size: 0.64rem;
    line-height: 1.16;
    overflow-wrap: break-word;
  }

  .brand__updates {
    display: block;
    max-width: 210px;
    margin: 4px 0 0 50px;
    color: var(--color-red-dark);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.12;
    text-decoration: none;
  }

  .primary-nav {
    font-size: 0.9rem;
  }

  .nav-toggle {
    min-height: 40px;
    padding: 8px 10px;
  }

  .nav[data-mobile-nav="ready"].nav--open .primary-nav {
    padding: 7px;
  }

  .attendance-shell {
    align-items: start;
    padding-block: 18px;
  }

  .attendance-header,
  .attendance-form {
    padding: 20px;
  }

  .attendance-event-options {
    grid-template-columns: 1fr;
  }

  .attendance-header h1 {
    max-width: 10ch;
    font-size: 3.25rem;
  }

  .hero {
    min-height: auto;
    background-position: center center;
  }

  .hero__inner {
    min-height: 500px;
    padding-block: 58px 34px;
  }

  .hero__actions,
  .button-row {
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    font-size: 0.94rem;
  }

  .faith-dialog {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 6px;
  }

  .faith-dialog__panel {
    padding: 20px 16px;
  }

  .faith-dialog__close {
    top: 10px;
    right: 10px;
  }

  .faith-dialog h2 {
    margin-right: 46px;
    margin-bottom: 14px;
  }

  .faith-dialog__body {
    padding-right: 4px;
  }

  .service-band__inner {
    gap: 16px;
    padding-block: 22px;
  }

  .section-label h2 {
    font-size: 1.42rem;
  }

  .hero__details,
  .service-grid,
  .action-grid,
  .directory-grid,
  .directory-grid--compact,
  .event-month-browser__grid,
  .library-book-list,
  .library-grid,
  .resource-grid,
  .service-grid--dark {
    grid-template-columns: 1fr;
  }

  .hero__detail--location dd {
    white-space: normal;
  }

  .service-grid {
    gap: 8px;
  }

  .service-grid.service-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-item {
    border-left-width: 3px;
    background: var(--color-paper);
    padding: 10px 12px;
  }

  .service-grid--home .service-item {
    border-left-width: 2px;
    padding: 10px 12px;
  }

  .service-grid--home .service-item:last-child {
    grid-column: 1 / -1;
  }

  .service-grid--home .service-item__day {
    margin-bottom: 4px;
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .service-grid--home .service-item h3 {
    font-size: 0.86rem;
    line-height: 1.18;
  }

  .service-grid--home .service-item p:last-child {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .service-item h3 {
    font-size: 1rem;
  }

  .service-item p:last-child {
    font-size: 0.94rem;
  }

  .page-hero {
    min-height: 320px;
    background-position: center center;
  }

  .page-hero__inner {
    padding-block: 36px 28px;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: 3.35rem;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .page-hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1.16rem;
    overflow-wrap: anywhere;
  }

  .section-nav__inner {
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 0.84rem;
    overflow-x: auto;
    margin-inline: auto;
    padding: 8px 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .section-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    flex: 0 0 auto;
    border: 1px solid rgba(36, 31, 33, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
  }

  .section-intro {
    margin-bottom: 22px;
  }

  .lectionary-panel {
    max-width: none;
  }

  .lectionary-table-wrap {
    --lectionary-reading-col: clamp(6.25rem, 38%, 8.75rem);

    border-radius: 6px;
  }

  .lectionary-table thead th,
  .lectionary-table tbody th,
  .lectionary-table tbody td {
    line-height: 1.4;
  }

  .lectionary-table thead th {
    font-size: 0.74rem;
  }

  .lectionary-table tbody th,
  .lectionary-table tbody td {
    font-size: 0.94rem;
  }

  .lectionary-syriac {
    font-size: 2rem;
  }

  .lectionary-actions {
    justify-content: stretch;
  }

  .lectionary-actions .button,
  .event-actions .button {
    width: 100%;
  }

  .event-actions {
    justify-content: stretch;
  }

  .event-card {
    padding: 16px;
  }

  .event-month-folder__header {
    padding: 16px;
  }

  .event-card__syriac {
    font-size: 1.2rem;
  }

  .lectionary-schedule {
    padding-right: 4px;
  }

  .section-copy p,
  .section-intro p {
    font-size: 0.98rem;
  }

  .split,
  .visit-grid,
  .two-column {
    gap: 26px;
  }

  .stacked-list article {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }

  .stacked-list strong {
    text-align: left;
  }

  .directory-card--wide {
    grid-column: auto;
  }

  .directory-card__portrait {
    width: min(100%, 148px);
    margin-bottom: 12px;
  }

  .timeline__item {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .notice-panel,
  .contact-form,
  .link-panel,
  .directory-card,
  .resource-card {
    padding: 18px;
  }

  #sacraments .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #sacraments .resource-card {
    min-height: 84px;
    padding: 12px;
  }

  #sacraments .resource-card span {
    margin-bottom: 4px;
    font-size: 0.68rem;
    line-height: 1.1;
  }

  #sacraments .resource-card strong {
    font-size: 0.94rem;
    line-height: 1.18;
  }

  .notice-panel h3 {
    font-size: 1.28rem;
  }

  .page-hero__syriac {
    max-width: 100%;
    font-size: clamp(2rem, 12vw, 3.1rem);
    overflow-wrap: anywhere;
  }

  .bible-books {
    gap: 30px;
  }

  .bible-testament {
    gap: 14px;
  }

  .bible-testament__header h3 {
    font-size: 1.42rem;
  }

  .bible-book-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bible-book-card {
    min-height: 136px;
  }

  .bible-chapter-nav {
    gap: 6px;
    margin-bottom: 18px;
  }

  .bible-chapter-nav a {
    min-width: 38px;
    min-height: 36px;
    font-size: 0.88rem;
  }

  .bible-chapter summary {
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    font-size: 1rem;
  }

  .bible-chapter summary span[lang="syr"] {
    font-size: 1.42rem;
    text-align: left;
  }

  .bible-verses {
    gap: 12px;
    padding: 16px 14px 18px;
  }

  .bible-verse {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 10px;
    font-size: clamp(1.36rem, 7vw, 1.85rem);
    line-height: 1.38;
  }

  .bible-verse__number {
    font-size: 0.72rem;
  }

  .resource-card--scripture em {
    font-size: 1.72rem;
  }

  .details-list {
    gap: 8px;
  }

  .details-list summary {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .details-list details > div {
    padding: 13px 14px 16px;
  }

  .details-list p {
    margin-bottom: 0.82rem;
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .contact-form {
    margin-top: 20px;
    gap: 15px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form__intro h3 {
    font-size: 1.62rem;
  }

  .prayer-request-layout {
    grid-template-columns: 1fr;
  }

  .prayer-reference-panel {
    padding: 18px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .scroll-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .scroll-top::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .lectionary-table-wrap {
    --lectionary-reading-col: 1fr;

    overflow-x: visible;
  }

  .lectionary-table,
  .lectionary-table caption,
  .lectionary-table tbody,
  .lectionary-table tr,
  .lectionary-table th,
  .lectionary-table td {
    display: block;
    width: 100%;
  }

  .lectionary-table colgroup,
  .lectionary-table thead {
    display: none;
  }

  .lectionary-caption__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .lectionary-caption__inner > [data-lectionary-caption],
  .lectionary-syriac {
    justify-self: center;
    text-align: center;
  }

  .lectionary-table tbody tr {
    border-top: 1px solid rgba(36, 31, 33, 0.1);
    padding: 12px 14px;
  }

  .lectionary-table th,
  .lectionary-table td,
  .lectionary-table tbody th,
  .lectionary-table tbody td {
    border-top: 0;
    padding: 0;
  }

  .lectionary-table tbody th {
    margin-bottom: 2px;
  }

  .lectionary-schedule__summary,
  .lectionary-schedule__readings {
    grid-template-columns: 1fr;
  }

  .lectionary-schedule__summary {
    gap: 4px;
  }

  .lectionary-schedule__name {
    display: grid;
    gap: 6px;
  }

  .lectionary-schedule__syriac {
    white-space: normal;
  }

  .lectionary-schedule__readings dt,
  .lectionary-schedule__readings dd {
    border-top: 0;
    padding-inline: 14px;
  }

  .lectionary-schedule__readings dt {
    padding-bottom: 0;
  }

  .lectionary-schedule__readings dd {
    padding-top: 2px;
  }

  .hero__details {
    gap: 8px;
    margin-top: 24px;
  }

  .contact-list {
    padding-left: 16px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 1.86rem;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand__title {
    font-size: 0.86rem;
  }

  .brand__meta {
    max-width: 170px;
    font-size: 0.58rem;
  }

  .brand__updates {
    max-width: 170px;
    margin-left: 46px;
    font-size: 0.6rem;
  }

  .attendance-header h1 {
    font-size: 2.85rem;
  }

  .attendance-header p:last-child {
    font-size: 0.98rem;
  }

  .hero__inner {
    min-height: 460px;
    padding-block: 48px 30px;
  }

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

  .page-hero__inner {
    padding-block: 34px 24px;
  }

  .primary-nav a,
  .section-nav a {
    padding-inline: 9px;
  }

  .service-grid.service-grid--home {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-grid--home .service-item {
    padding: 10px 12px;
  }

  .service-grid--home .service-item__day {
    font-size: 0.68rem;
  }

  .service-grid--home .service-item h3 {
    font-size: 0.84rem;
  }

  .service-grid--home .service-item p:last-child {
    font-size: 0.72rem;
  }

  .lectionary-syriac {
    font-size: 1.85rem;
  }

  .details-list summary {
    font-size: 1.02rem;
  }
}
