* {
  box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2933;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: #235789;
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  width: 100%;
  padding: 8px 18px;
  background: #ffffff;
  border-bottom: 1px solid rgba(31, 41, 51, 0.1);
  box-shadow: 0 8px 28px rgba(31, 41, 51, 0.08);
  position: relative;
}

.site-brand {
  display: flex;
  align-items: center;
  color: #1f2933;
  text-decoration: none;
}

.site-brand img {
  display: block;
  width: auto;
  max-width: min(360px, 48vw);
  max-height: 70px;
}

.menu-button {
  display: none;
}

.menu-checkbox {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav > a,
.nav-dropdown > summary {
  color: #1f2933;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  font-weight: 700;
  padding: 10px 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav > a:hover,
.site-nav > a.active,
.nav-dropdown:hover > summary,
.nav-dropdown.active > summary,
.nav-dropdown[open] > summary {
  background: #f2f6f8;
  color: #235789;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.dropdown-menu {
  min-width: 230px;
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  padding: 10px;
  border: 1px solid #d8ebf8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.16);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown[open] .dropdown-menu {
  display: grid;
  gap: 4px;
}

.dropdown-menu a {
  color: #1f2933;
  border-radius: 8px;
  display: block;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #f2f6f8;
  color: #235789;
}

.site-nav .nav-button {
  margin-left: 6px;
  background: #235789;
  color: #ffffff;
  padding: 10px 18px;
}

.site-nav .nav-button:hover {
  background: #1b4368;
  color: #ffffff;
}

.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.hero-slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1);
  animation: hero-slideshow 18s ease-in-out infinite;
}

.slide-one {
  background-image: url("images/home3.png");
}

.slide-two {
  background-image: url("images/home2.png");
  animation-delay: 6s;
}

.slide-three {
  background-image: url("images/home1.jpg");
  animation-delay: 12s;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
}

.hero-text {
  max-width: 900px;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.welcome-line,
.location-line {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.welcome-line {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-style: italic;
}

.location-line {
  margin-top: 16px;
  font-size: clamp(1.1rem, 3vw, 1.65rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 5.8vw, 4.4rem);
  line-height: 1.08;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.hero p {
  font-size: 1.2rem;
}

.hero-scroll-link {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(-50%);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

.hero-scroll-link span {
  width: 16px;
  height: 16px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.hero-scroll-link:hover,
.hero-scroll-link:focus-visible {
  border-color: #ffffff;
  background: rgba(35, 87, 137, 0.78);
  outline: none;
  transform: translateX(-50%) translateY(-3px);
}

.announcement-ticker {
  min-height: clamp(62px, 12vw, 76px);
  scroll-margin-top: 86px;
  border-top: 1px solid #f7c948;
  border-bottom: 1px solid #f7c948;
  background: #fff4bf;
  overflow: hidden;
}

.announcement-track-wrap {
  min-width: 0;
  overflow: hidden;
}

.announcement-track {
  min-width: 0;
}

.announcement-track p {
  width: max-content;
  min-width: 100%;
  min-height: clamp(62px, 12vw, 76px);
  display: flex;
  align-items: center;
  margin: 0;
  padding-right: 48px;
  color: #523f00;
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  animation: announcement-scroll 18s linear infinite;
}

.schedule-section {
  padding: 72px 18px;
  scroll-margin-top: 86px;
  background:
    radial-gradient(circle at 12% 18%, rgba(87, 170, 230, 0.14), transparent 28%),
    linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
  overflow: hidden;
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.birds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.birds span {
  width: 34px;
  height: 18px;
  position: absolute;
  top: 24%;
  opacity: 0.18;
}

.birds span::before,
.birds span::after {
  content: "";
  width: 18px;
  height: 10px;
  position: absolute;
  top: 2px;
  border-top: 3px solid #5a9ed1;
}

.birds span::before {
  left: 0;
  border-radius: 100% 0 0 0;
  transform: rotate(-18deg);
}

.birds span::after {
  right: 0;
  border-radius: 0 100% 0 0;
  transform: rotate(18deg);
}

.birds span:nth-child(2) {
  left: 62%;
  top: 42%;
  transform: scale(0.72);
}

.birds span:nth-child(3) {
  left: 82%;
  top: 15%;
  transform: scale(1.2);
}

.birds span:first-child {
  left: 12%;
}

.section-label {
  margin: 0 0 8px;
  color: #57aae6;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 26px;
  color: #0f477c;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.1);
}

.schedule-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th,
.schedule-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e5f1f9;
  vertical-align: top;
}

.schedule-table th:nth-child(4),
.schedule-table td:nth-child(4) {
  display: none;
}

.schedule-table th {
  background: #0f477c;
  color: #ffffff;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

.schedule-table td:first-child {
  color: #0f477c;
  font-weight: 800;
}

.schedule-table td:nth-child(2) {
  width: 170px;
  color: #2877b7;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-table tbody tr:nth-child(even) {
  background: #f7fbfe;
}

.liturgical-calendar-section {
  padding: 0 18px 72px;
  background: #ffffff;
}

.liturgical-content-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 2fr);
  grid-template-areas:
    "about calendar"
    "bulletin bulletin";
  gap: 22px;
  align-items: stretch;
}

.liturgical-calendar-grid {
  grid-area: calendar;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.liturgical-widget-card {
  min-width: 0;
  height: 100%;
  padding: 28px;
  border: 1px solid #d8ebf8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.liturgical-widget-card h3 {
  margin: 0 0 18px;
  color: #0f477c;
  font-size: 1.45rem;
  line-height: 1.2;
}

.about-us-card {
  grid-area: about;
  display: flex;
  flex-direction: column;
}

.about-us-card p {
  margin-bottom: 22px;
  color: #44515c;
}

.about-us-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.about-us-card a,
.bulletin-card a {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 8px;
  background: #235789;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.about-us-card a:hover,
.bulletin-card a:hover {
  background: #1b4368;
}

.syro-widget-placeholder {
  min-height: 180px;
  overflow-x: auto;
  color: #44515c;
}

.syro-widget-placeholder.is-loading {
  padding: 18px;
  border: 1px solid #e5f1f9;
  background:
    linear-gradient(90deg, #f7fbfe 25%, #eef8ff 37%, #f7fbfe 63%);
  background-size: 400% 100%;
  color: #64707b;
  font-weight: 700;
  animation: syro-loading 1.4s ease infinite;
}

.syro-widget-placeholder:empty::before {
  content: "Loading...";
  display: block;
  min-height: 180px;
  padding: 18px;
  border: 1px solid #e5f1f9;
  background:
    linear-gradient(90deg, #f7fbfe 25%, #eef8ff 37%, #f7fbfe 63%);
  background-size: 400% 100%;
  color: #64707b;
  font-weight: 700;
  animation: syro-loading 1.4s ease infinite;
}

.syro-widget-error {
  min-height: 0;
  padding: 16px;
  border: 1px solid #e5f1f9;
  background: #f7fbfe;
  color: #3d4b56;
  font-weight: 700;
}

.page-hero {
  padding: 96px 18px;
  background:
    linear-gradient(rgba(15, 71, 124, 0.82), rgba(15, 71, 124, 0.72)),
    url("images/home2.png") center/cover no-repeat;
  color: #ffffff;
}

.page-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.page-hero .section-label,
.page-hero h1 {
  color: #ffffff;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.18rem;
}

.about-section {
  padding: 72px 18px;
}

.about-section-soft {
  background:
    radial-gradient(circle at 88% 12%, rgba(87, 170, 230, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
}

.about-grid,
.values-grid {
  max-width: 1040px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
}

.about-copy {
  color: #44515c;
  font-size: 1.05rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.values-grid article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.values-grid h3 {
  margin: 0 0 10px;
  color: #0f477c;
  font-size: 1.45rem;
}

.values-grid p {
  margin-bottom: 0;
  color: #44515c;
}

.bishop-section {
  padding: 72px 18px 0;
  background: #ffffff;
}

.bishop-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.leader-feature {
  max-width: 680px;
  margin: 0 auto;
}

.bishop-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

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

.bishop-card img {
  width: 130px;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #f2f8fc;
}

.bishop-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.bishop-card p {
  margin-bottom: 0;
  color: #44515c;
  font-weight: 700;
}

.history-section {
  padding: 72px 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(87, 170, 230, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.history-article {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.history-article > h2 {
  margin-bottom: 34px;
}

.history-entry {
  padding: 30px 0;
  border-top: 1px solid #e5f1f9;
}

.history-entry h3 {
  margin: 0 0 16px;
  color: #0f477c;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.history-entry p {
  color: #3d4b56;
  font-size: 1.04rem;
}

.history-entry p:last-child {
  margin-bottom: 0;
}

.vicar-section {
  padding: 72px 18px;
  background: #ffffff;
}

.vicar-section-soft {
  background:
    radial-gradient(circle at 12% 12%, rgba(87, 170, 230, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
}

.vicar-feature {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.vicar-feature h2 {
  margin-bottom: 0;
}

.vicar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.vicar-card {
  padding: 22px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
  text-align: center;
}

.vicar-card h3 {
  margin: 16px 0 8px;
  color: #0f477c;
  font-size: 1.25rem;
  line-height: 1.15;
}

.vicar-card p {
  margin-bottom: 0;
  color: #44515c;
  font-weight: 800;
}

.vicar-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #f2f8fc;
  background: #f7fbfe;
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 2px dashed #b8d8ed;
  background:
    linear-gradient(rgba(245, 251, 255, 0.9), rgba(245, 251, 255, 0.9)),
    radial-gradient(circle at center 34%, #cde7f7 0 18%, transparent 19%),
    radial-gradient(circle at center 78%, #cde7f7 0 32%, transparent 33%);
  color: #2877b7;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-section {
  padding: 72px 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(87, 170, 230, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.book-card {
  padding: 28px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.book-card h3 {
  margin: 0 0 18px;
  color: #0f477c;
  font-size: 1.55rem;
}

.book-card h4 {
  margin: 26px 0 10px;
  color: #2877b7;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-card a {
  display: block;
  margin: 8px 0;
  padding: 11px 12px;
  border: 1px solid #e5f1f9;
  background: #f7fbfe;
  color: #0f477c;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.book-card a:hover {
  border-color: #b8d8ed;
  background: #eef8ff;
  transform: translateX(3px);
}

.sacrament-section {
  padding: 72px 18px;
  background:
    radial-gradient(circle at 12% 14%, rgba(87, 170, 230, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.sacrament-section .about-grid,
.sacrament-grid {
  max-width: 1040px;
  margin: 0 auto;
}

.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.sacrament-grid article {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  color: #0f477c;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.sacrament-detail {
  max-width: 1040px;
  margin: 34px auto 0;
  padding: 30px;
  border-left: 5px solid #57aae6;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.sacrament-detail h3 {
  margin: 0 0 12px;
  color: #0f477c;
  font-size: 1.7rem;
}

.sacrament-detail p {
  margin-bottom: 0;
  color: #3d4b56;
  font-size: 1.04rem;
}

.contact-section,
.leadership-section,
.bulletins-section {
  padding: 72px 18px;
  background: #ffffff;
}

.leadership-section-soft {
  background:
    radial-gradient(circle at 88% 12%, rgba(87, 170, 230, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
}

.contact-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
}

.contact-overview {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  padding: 30px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.contact-card h2 {
  margin-bottom: 16px;
}

.contact-card address {
  margin-bottom: 18px;
  color: #3d4b56;
  font-style: normal;
}

.contact-card p {
  margin-bottom: 8px;
}

.contact-card a {
  color: #0f477c;
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-list div {
  padding-top: 16px;
  border-top: 1px solid #e5f1f9;
}

.contact-list dt {
  color: #57aae6;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
  color: #3d4b56;
  font-size: 1.08rem;
  font-weight: 700;
}

.contact-vicar-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
}

.contact-vicar-card img {
  width: 150px;
  height: 185px;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #f2f8fc;
}

.bulletins-intro {
  max-width: 720px;
  margin-bottom: 28px;
}

.bulletins-intro p:last-child {
  color: #44515c;
  font-size: 1.04rem;
}

.bulletin-list {
  display: grid;
  gap: 18px;
}

.bulletin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid #d8ebf8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.bulletin-card h3 {
  margin: 0 0 8px;
  color: #0f477c;
  font-size: 1.35rem;
}

.bulletin-card p:last-child {
  margin-bottom: 0;
  color: #44515c;
}

.home-bulletin-card {
  grid-area: bulletin;
}

.leadership-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.council-stack {
  display: grid;
  gap: 32px;
}

.council-stack h3 {
  margin: 0 0 14px;
  color: #0f477c;
  font-size: 1.45rem;
}

.leadership-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.leadership-table th,
.leadership-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e5f1f9;
  vertical-align: top;
}

.leadership-table th {
  background: #0f477c;
  color: #ffffff;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leadership-table th:first-child,
.leadership-table td:first-child {
  width: 44%;
}

.leadership-table th:nth-child(2),
.leadership-table td:nth-child(2) {
  width: 56%;
}

.ward-representatives-table th:first-child,
.ward-representatives-table td:first-child {
  width: 18%;
}

.ward-representatives-table th:nth-child(2),
.ward-representatives-table td:nth-child(2),
.ward-representatives-table th:nth-child(3),
.ward-representatives-table td:nth-child(3) {
  width: 41%;
}

.leadership-table tr:last-child td {
  border-bottom: 0;
}

.leadership-table td:first-child {
  color: #0f477c;
  font-weight: 800;
}

.ministry-section {
  padding: 72px 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(87, 170, 230, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.ministry-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.ministry-card {
  padding: 28px;
  border: 1px solid #d8ebf8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 71, 124, 0.08);
}

.ministry-card-wide {
  grid-column: 1 / -1;
}

.ministry-card h2,
.ministry-card h3 {
  color: #0f477c;
}

.ministry-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.ministry-card h3 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
}

.ministry-card p,
.ministry-card li {
  color: #3d4b56;
}

.ministry-lead {
  color: #0f477c;
  font-weight: 800;
}

.ministry-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.ministry-list-grid ul {
  margin: 0;
  padding-left: 18px;
}

@keyframes hero-slideshow {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  8% {
    opacity: 1;
  }

  33% {
    opacity: 1;
    transform: scale(1.08);
  }

  42% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 8px;
  }
}

@keyframes announcement-scroll {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes syro-loading {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.site-footer {
  padding: 34px clamp(24px, 5vw, 72px);
  background: #0f477c;
  color: #ffffff;
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
}

.site-footer strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  gap: 6px;
  text-align: center;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0f477c;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-links a:hover {
  background: #dff3ff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .site-brand img {
    max-width: min(520px, calc(100vw - 96px));
    max-height: 64px;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    border: 1px solid #d8ebf8;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
  }

  .menu-button span {
    width: 22px;
    height: 2px;
    display: block;
    background: #0f477c;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav {
    width: min(340px, calc(100vw - 24px));
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid #d8ebf8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 71, 124, 0.16);
  }

  .site-nav > a,
  .nav-dropdown > summary {
    width: 100%;
    border-radius: 8px;
    padding: 11px 12px;
    text-align: left;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-dropdown > summary::after {
    flex: 0 0 auto;
  }

  .nav-dropdown[open] > summary::after {
    transform: translateY(2px) rotate(225deg);
  }

  .dropdown-menu {
    min-width: 0;
    position: static;
    margin: 6px 0 4px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: #f7fbfe;
    box-shadow: none;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .nav-dropdown[open] .dropdown-menu {
    display: grid;
  }

  .dropdown-menu a {
    color: #0f477c;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 10px;
    white-space: normal;
  }

  .dropdown-menu a + a {
    margin-top: 2px;
  }

  .site-nav .nav-button {
    margin-left: 0;
    text-align: center;
  }

  .menu-checkbox:checked ~ .site-nav {
    display: flex;
  }

  .menu-checkbox:checked + .menu-button span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-checkbox:checked + .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked + .menu-button span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 620px;
  }
}

@media (max-width: 700px) {
  .site-brand img {
    max-height: 54px;
  }

  .site-nav > a,
  .nav-dropdown > summary {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 520px;
    padding: 64px 18px;
  }

  .announcement-track p {
    animation-duration: 12s;
  }

  .hero-text {
    padding: 16px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
    line-height: 1.12;
  }

  .welcome-line {
    font-size: 1.25rem;
  }

  .location-line {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .schedule-section {
    padding: 48px 16px;
  }

  .liturgical-calendar-section {
    padding: 0 16px 48px;
  }

  .liturgical-content-layout,
  .liturgical-calendar-grid {
    grid-template-columns: 1fr;
  }

  .liturgical-content-layout {
    grid-template-areas:
      "about"
      "calendar"
      "bulletin";
  }

  .liturgical-widget-card {
    padding: 22px 18px;
  }

  .birds {
    display: none;
  }

  .schedule-table-wrap {
    overflow: hidden;
    border: 1px solid #d8ebf8;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 71, 124, 0.08);
  }

  .schedule-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .schedule-table {
    display: table;
  }

  .schedule-table thead {
    display: table-header-group;
  }

  .schedule-table tbody {
    display: table-row-group;
  }

  .schedule-table tr {
    display: table-row;
    margin-bottom: 0;
    border: 0;
    box-shadow: none;
  }

  .schedule-table th,
  .schedule-table td {
    display: table-cell;
    padding: 9px 7px;
    border-bottom: 1px solid #e5f1f9;
    font-size: 0.74rem;
    line-height: 1.35;
    vertical-align: top;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .schedule-table th {
    padding: 8px 7px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .schedule-table th:first-child,
  .schedule-table td:first-child {
    width: 22%;
  }

  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) {
    width: 56%;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    display: table-cell;
    width: 22%;
    white-space: normal;
  }

  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) {
    display: table-cell;
  }

  .schedule-table th:nth-child(4),
  .schedule-table td:nth-child(4) {
    display: none;
  }

  .page-hero {
    padding: 64px 18px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.3rem);
  }

  .about-section {
    padding: 48px 16px;
  }

  .about-grid,
  .values-grid,
  .bishop-grid {
    grid-template-columns: 1fr;
  }

  .bishop-section {
    padding: 48px 16px 0;
  }

  .bishop-card {
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 18px;
  }

  .bishop-card img {
    width: 96px;
    height: 112px;
  }

  .history-section {
    padding: 48px 16px;
  }

  .history-article {
    padding: 26px 18px;
  }

  .history-entry {
    padding: 24px 0;
  }

  .vicar-section {
    padding: 48px 16px;
  }

  .vicar-feature {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .vicar-feature .portrait-placeholder {
    max-width: 220px;
  }

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

  .book-section {
    padding: 48px 16px;
  }

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

  .sacrament-section {
    padding: 48px 16px;
  }

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

  .sacrament-detail {
    padding: 24px;
  }

  .contact-section,
  .leadership-section,
  .bulletins-section {
    padding: 48px 16px;
  }

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

  .contact-overview,
  .contact-vicar-card {
    grid-template-columns: 1fr;
  }

  .contact-vicar-card img {
    width: 180px;
    height: 220px;
  }

  .bulletin-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .ministry-section {
    padding: 48px 16px;
  }

  .ministry-grid,
  .ministry-list-grid {
    grid-template-columns: 1fr;
  }

  .leadership-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .leadership-table,
  .leadership-table thead,
  .leadership-table tbody,
  .leadership-table tr,
  .leadership-table td {
    display: block;
    width: 100%;
  }

  .leadership-table thead {
    display: none;
  }

  .leadership-table tr {
    margin-bottom: 12px;
    border: 1px solid #d8ebf8;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 71, 124, 0.08);
  }

  .leadership-table td {
    display: grid;
    grid-template-columns: 98px 1fr;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5f1f9;
  }

  .leadership-table td::before {
    content: attr(data-label);
    color: #64707b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .footer-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .footer-contact {
    align-items: center;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding: 8px 12px;
  }

  .site-brand img {
    max-height: 46px;
  }

  .site-nav > a,
  .nav-dropdown > summary {
    font-size: 0.86rem;
    padding: 7px 9px;
  }

  .dropdown-menu a {
    font-size: 0.8rem;
    padding: 7px 9px;
  }

  .hero {
    min-height: 470px;
  }

  .announcement-track p {
    animation-duration: 10s;
  }

  .schedule-table td {
    padding: 8px 5px;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .schedule-table th {
    padding: 7px 5px;
    font-size: 0.62rem;
  }

  .leadership-table td {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .slide {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .slide-two,
  .slide-three {
    display: none;
  }

  .hero-scroll-link {
    animation: none;
  }

  .announcement-track {
    width: auto;
    padding: 0;
  }

  .announcement-track p {
    width: auto;
    padding: 14px 18px;
    animation: none;
    white-space: normal;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
