/* ============================================
   ERCIS.RO — Episcopia Romano-Catolică de Iași
   Design tokens + shared styles
   ============================================ */

:root {
  /* Palette */
  --navy:        #0b1d3a;
  --navy-deep:   #081428;
  --navy-soft:   #142a4a;
  --red:         #c0282e;
  --red-dark:    #a4181e;
  --gold:        #b8924b;
  --gold-soft:   #d6b97a;
  --gold-faint:  #f4ead4;
  --cream:       #f6f1e7;
  --cream-warm:  #f3ecdc;
  --paper:       #ffffff;
  --bg:          #f7f5f0;
  --line:        #e9e4d8;
  --line-soft:   #efebe1;
  --ink:         #16181d;
  --ink-2:       #2b2f38;
  --muted:       #6b7280;
  --muted-2:     #9aa1ac;

  /* Type */
  --serif: "Cormorant Garamond", "Source Serif Pro", Georgia, serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --headline: "Lora", Georgia, serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(11, 29, 58, 0.06);
  --shadow:    0 6px 24px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 29, 58, 0.14);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}
/* Safety gutter when the viewport is narrower than the container so content
   doesn't touch the screen edges. Smaller breakpoint at the bottom overrides. */
@media (max-width: 1287px) {
  .container { padding: 0 24px; }
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announce {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.announce .container {
  display: flex; align-items: center;
  height: 36px;
  gap: 20px;
  min-width: 0;
}
.announce-items { display: flex; gap: 22px; align-items: center; flex: 1; min-width: 0; }
.announce-item {
  display: inline-flex; align-items: center; gap: 7px;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.announce-item:hover { color: #fff; }
.announce-item .icon { width: 14px; height: 14px; flex: 0 0 14px; opacity: .75; }
.announce-item--saint {
  flex: 0 1 auto;
  min-width: 0;
  max-width: clamp(260px, 32vw, 640px);
}
.announce-item__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announce .pill-live {
  display: inline-flex; align-items: center; gap: 7px;
  flex: 0 0 auto;
  padding: 3px 9px;
  background: rgba(192,40,46,.15);
  color: #ff6b70;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}
.announce .pill-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #ff5b60; box-shadow: 0 0 0 0 rgba(255,91,96,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,91,96,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(255,91,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,91,96,0); }
}
.announce-contact { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.announce-contact .announce-item { white-space: nowrap; }
.announce-social { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.announce-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .78);
  transition: color .2s var(--ease);
}
.announce-social__link:hover { color: #fff; }
.announce-social__link svg { width: 15px; height: 15px; }

/* ============================================
   HEADER (sticky + shrink)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(11,29,58,.07); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 96px;
  transition: height .25s var(--ease);
}
.brand { flex-shrink: 0; }
.site-header.scrolled .header-inner { height: 68px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  transition: transform .25s var(--ease), width .25s var(--ease);
}
.site-header .brand {
  width: clamp(220px, 20vw, 270px);
  max-width: none;
}
.site-header.scrolled .brand { width: 200px; }
.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-cross {
  width: 36px; height: 44px;
  transition: width .25s var(--ease), height .25s var(--ease);
}
.site-header.scrolled .brand-cross { width: 28px; height: 34px; }

.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600;
  letter-spacing: .14em;
  color: var(--navy);
  transition: font-size .25s var(--ease);
}
.site-header.scrolled .brand-name { font-size: 22px; }
.brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
  transition: opacity .2s var(--ease), margin-top .25s var(--ease);
}
.site-header.scrolled .brand-sub { opacity: 0; margin-top: 0; height: 0; overflow: hidden; }

.nav {
  display: flex; gap: 0;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-item {
  position: relative;
}
.has-dropdown::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 18px;
}
.nav > a,
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav > a::before,
.nav-link::before {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav > a:hover,
.nav-link:hover,
.has-dropdown:hover .nav-link,
.has-dropdown:focus-within .nav-link { color: var(--red); }
.nav > a:hover::before,
.nav-link:hover::before,
.has-dropdown:hover .nav-link::before,
.has-dropdown:focus-within .nav-link::before { transform: scaleX(1); }
.nav > a.active { color: var(--red); }
.nav > a.active::before { transform: scaleX(1); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 60;
  width: 238px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.98)),
    var(--paper);
  border: 1px solid rgba(214,185,122,.34);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(11,29,58,.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(.98);
  transform-origin: top center;
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .22s var(--ease);
  visibility: hidden;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(214,185,122,.34);
  border-top: 1px solid rgba(214,185,122,.34);
  transform: translateX(-50%) rotate(45deg);
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-dropdown a::before {
  display: none;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: var(--gold-faint);
  color: var(--red);
}

.cta-fm {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 8px 24px rgba(192,40,46,.28);
  flex-shrink: 0;
  position: relative;
}
.cta-fm:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(192,40,46,.36);
}
.cta-fm svg { width: 14px; height: 14px; }
.cta-fm__search { display: inline-flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; color: var(--ink); }
.site-header--search .menu-toggle { margin-left: auto; }

body.year-modal-open,
body.mobile-nav-open { overflow: hidden; }

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.search-page-form {
  width: 100%;
  margin-top: 22px;
}

.search-page-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.search-page-box > svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.search-page-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  color: var(--ink);
}
.search-page-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 120px;
  min-height: 44px;
  padding: 11px 28px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.search-page-box button svg { width: 15px; height: 15px; color: currentColor; flex-shrink: 0; }
.search-page-box button:hover { background: var(--red-dark); }

.search-advanced {
  width: 100%;
  margin-top: 12px;
}
.search-advanced-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.search-advanced-summary::-webkit-details-marker { display: none; }
.search-advanced-summary::before,
.search-advanced-summary::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--line);
}
.search-advanced-label { flex-shrink: 0; }
.search-advanced-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 8px;
  color: var(--red);
  background: rgba(192,40,46,.08);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.search-advanced-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.search-advanced-summary svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
  transition: transform .2s var(--ease);
}
.search-advanced[open] .search-advanced-summary svg { transform: rotate(180deg); }
.search-advanced-summary:hover { color: var(--muted-2); }
.search-advanced-summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.search-filters {
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.search-filters-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.search-filter {
  border: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 16px;
}
.search-filter--type {
  align-content: flex-start;
  padding: 28px 24px 24px;
}
.search-filter--interval {
  align-content: flex-start;
  padding: 28px 28px 24px;
  border-left: 1px solid var(--line-soft);
}
.search-filter legend {
  width: 100%;
  padding-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}
.search-filter legend span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.search-filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  font-size: 14px;
  color: var(--ink-2);
}
.search-content-types {
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
}
.search-content-types .search-toggle {
  width: auto;
  padding-right: 14px;
}
.search-content-types .search-toggle + .search-toggle {
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}
.search-content-types .search-toggle:last-child { padding-right: 0; }
.search-toggle {
  position: relative;
  width: 100%;
  min-height: 30px !important;
  cursor: pointer;
}
.search-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.search-toggle-control {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #c9c9c5;
  transition: background .2s var(--ease);
}
.search-toggle-control::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 20, 40, .25);
  transition: transform .2s var(--ease);
}
.search-toggle input:checked + .search-toggle-control { background: var(--red); }
.search-toggle input:checked + .search-toggle-control::after { transform: translateX(16px); }
.search-toggle input:focus-visible + .search-toggle-control {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.search-filter input[type="date"],
.search-filter .js-flatpickr {
  width: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 32px 7px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23888'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='4'%20width='18'%20height='18'%20rx='2'/%3E%3Cpath%20d='M16%202v4M8%202v4M3%2010h18'/%3E%3C/svg%3E") no-repeat right 9px center;
}
.search-filter .is-disabled { color: var(--muted-2); }
.search-soon { font-size: 12px; color: var(--muted-2); }

.search-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 20px;
  background: #fbfaf7;
  border-top: 1px solid var(--line-soft);
}
.search-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.search-filter-reset svg { width: 17px; height: 17px; flex-shrink: 0; }
.search-filter-reset:hover { color: var(--red); background: rgba(192,40,46,.06); }
.search-filter-apply {
  margin-left: auto;
  min-height: 42px;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.search-filter-apply:hover { background: var(--navy-soft); }
.search-filter-reset:focus-visible,
.search-filter-apply:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.search-section { margin-bottom: 40px; }
.search-section-title {
  font-family: var(--headline);
  font-size: 28px;
  color: var(--navy);
  margin: 24px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.search-empty {
  color: var(--muted);
  font-size: 17px;
  padding: 40px 0;
}

.search-suggestions {
  margin: -16px 0 56px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.search-suggestions-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--headline);
  font-size: 24px;
  line-height: 1.2;
}
.search-suggestions-description {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.search-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.search-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.search-suggestion svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--red); }
.search-suggestion:hover {
  color: var(--navy);
  background: var(--gold-faint);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.search-suggestion:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.search-useful-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-useful-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 100%;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.search-useful-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.search-useful-type {
  padding: 5px 8px;
  color: var(--red);
  background: var(--bg);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.search-useful-image {
  width: 92px;
  height: 72px;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 8px;
}
.search-useful-image .img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .6s var(--ease);
}
.search-useful-image .article-image-placeholder {
  font-size: 9px;
  letter-spacing: .1em;
}
.search-useful-item:hover .search-useful-image .img:not(.article-image-placeholder) { transform: scale(1.06); }
.search-useful-copy { display: grid; gap: 3px; min-width: 0; }
.search-useful-copy strong { color: var(--navy); font-family: var(--headline); font-size: 19px; }
.search-useful-copy > span { color: var(--muted); font-size: 13px; }
.search-useful-arrow { color: var(--gold); font-size: 22px; }

.search-section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.search-more-button,
.search-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.search-more-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.search-more-button:hover { color: var(--red); border-color: var(--gold); background: var(--gold-faint); }
.search-detail-actions { display: flex; padding: 24px 0 18px; }
.search-back-link:hover { color: var(--red); }
.search-detail-section { margin-top: 0; }

@media (max-width: 900px) {
  .search-filters-body { grid-template-columns: 1fr; }
  .search-filter--interval {
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .search-page-box { flex-wrap: wrap; border-radius: var(--radius); padding: 12px; }
  .search-filter { width: 100%; }
  .search-filter--type,
  .search-filter--interval { padding: 22px 12px 18px; }
  .search-content-types .search-toggle {
    gap: 4px;
    padding-right: 6px;
    font-size: 12px;
  }
  .search-content-types .search-toggle + .search-toggle { padding-left: 6px; }
  .search-content-types .search-toggle-control { width: 30px; height: 18px; }
  .search-content-types .search-toggle-control::after { width: 14px; height: 14px; }
  .search-content-types .search-toggle input:checked + .search-toggle-control::after { transform: translateX(12px); }
  .search-filter-actions { padding: 12px 14px; }
  .search-filter-reset,
  .search-filter-apply { min-height: 44px; }
  .search-suggestions { padding: 20px 16px; }
  .search-suggestion { min-height: 44px; }
  .search-useful-results { grid-template-columns: 1fr; }
  .search-useful-image { width: 80px; height: 64px; }
}

/* ============================================
   IMPORTANT ANNOUNCEMENT POPUP
   ============================================ */
body.frontend-popup-open { overflow: hidden; }

.frontend-popup[hidden] { display: none; }
.frontend-popup {
  position: fixed;
  z-index: 1050;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.frontend-popup.is-visible { opacity: 1; pointer-events: auto; }
.frontend-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 40, .7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.frontend-popup__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(700px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(181, 142, 67, .32);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(4, 13, 29, .42);
  transform: translateY(18px) scale(.985);
  transition: transform .22s var(--ease);
}
.frontend-popup.is-visible .frontend-popup__panel { transform: translateY(0) scale(1); }
.frontend-popup__accent {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-soft));
}
.frontend-popup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 23px;
  border-bottom: 1px solid var(--line-soft);
}
.frontend-popup__eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.frontend-popup__header h2 {
  margin: 0;
  color: var(--navy);
  font: 600 clamp(28px, 4vw, 38px)/1.08 var(--headline);
  letter-spacing: -.015em;
}
.frontend-popup__close {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: #f7f4ed;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.frontend-popup.is-visible .frontend-popup__close::before,
.frontend-popup.is-visible .frontend-popup__close::after {
  position: absolute;
  inset: -1px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(181, 142, 67, .72);
  border-radius: 50%;
  animation: frontend-popup-close-ripple 4s ease-out infinite;
}
.frontend-popup.is-visible .frontend-popup__close::after {
  animation-delay: 2.5s;
}
.frontend-popup__close:hover,
.frontend-popup__close:focus-visible {
  color: var(--navy);
  background: #fff;
  border-color: var(--navy);
}
.frontend-popup__close svg {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
@keyframes frontend-popup-close-ripple {
  0% { opacity: 0; transform: scale(.92); }
  18% { opacity: .78; }
  75%, 100% { opacity: 0; transform: scale(2); }
}
.frontend-popup__content {
  min-height: 0;
  overflow-y: auto;
  padding: 26px 32px 8px;
  overscroll-behavior: contain;
}
.frontend-popup__content > :first-child { margin-top: 0; }
.frontend-popup__content > :last-child { margin-bottom: 0; }
.frontend-popup__content img { max-width: 100%; height: auto; }
.frontend-popup__footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 32px 26px;
  background: linear-gradient(180deg, rgba(248, 246, 240, 0), #f8f6f0 45%);
}
.frontend-popup__dismiss-button {
  min-width: 132px;
  min-height: 44px;
  padding: 10px 22px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.frontend-popup__dismiss-button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.frontend-popup__dismiss-button:active { transform: translateY(1px); }
.frontend-popup__close:focus-visible,
.frontend-popup__dismiss-button:focus-visible {
  outline: 3px solid rgba(181, 142, 67, .38);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .frontend-popup { padding: 12px; }
  .frontend-popup__panel { max-height: calc(100dvh - 24px); border-radius: 12px; }
  .frontend-popup__header { gap: 16px; padding: 24px 20px 18px; }
  .frontend-popup__header h2 { font-size: 28px; }
  .frontend-popup__close { flex-basis: 40px; width: 40px; height: 40px; }
  .frontend-popup__content { padding: 20px 20px 4px; font-size: 16px; line-height: 1.65; }
  .frontend-popup__content h2 { font-size: 25px; }
  .frontend-popup__content h3 { font-size: 20px; }
  .frontend-popup__footer { padding: 16px 20px 20px; }
  .frontend-popup__dismiss-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .frontend-popup,
  .frontend-popup__panel { transition: none; }
  .frontend-popup.is-visible .frontend-popup__close::before,
  .frontend-popup.is-visible .frontend-popup__close::after { animation: none; opacity: 0; }
}

/* ============================================
   COOKIE CONSENT + EXTERNAL MEDIA
   ============================================ */
body.cookie-consent-modal-open { overflow: hidden; }

.cookie-consent [hidden] { display: none; }
.cookie-consent__banner {
  position: fixed;
  z-index: 1100;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 -14px 42px rgba(8, 20, 40, .22);
}
.cookie-consent__banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
}
.cookie-consent__copy h2,
.cookie-consent__panel h2,
.cookie-consent__category h3 {
  margin: 0;
  color: var(--navy);
}
.cookie-consent__copy h2 {
  color: #fff;
  font: 700 22px/1.2 var(--sans);
}
.cookie-consent__copy p {
  max-width: 690px;
  margin: 6px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-consent__copy a,
.cookie-consent__panel-footer > a {
  color: var(--red-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent__actions,
.cookie-consent__panel-footer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-consent__button {
  min-height: 42px;
  padding: 9px 16px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid #cfd4dc;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.cookie-consent__button:hover { background: var(--bg); border-color: var(--navy); }
.cookie-consent__button--primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.cookie-consent__button--primary:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.cookie-consent__link-button,
.footer-cookie-preferences {
  padding: 4px 2px;
  color: var(--red-dark);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent__copy .cookie-consent__link-button {
  padding: 0;
  color: #fff;
  font-size: inherit;
  font-weight: 700;
}
.cookie-consent__copy .cookie-consent__link-button:hover { color: var(--gold-soft); }
.cookie-consent__banner .cookie-consent__button {
  min-width: 176px;
  min-height: 46px;
  padding: 10px 20px;
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.78);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cookie-consent__banner .cookie-consent__button:hover {
  color: var(--navy-deep);
  background: #fff;
  border-color: #fff;
}
.cookie-consent__banner .cookie-consent__button--primary {
  color: var(--navy-deep);
  background: #fff;
  border-color: #fff;
}
.cookie-consent__banner .cookie-consent__button--primary:hover {
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.cookie-consent__modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(8, 20, 40, .66);
  border: 0;
  cursor: default;
}
.cookie-consent__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cookie-consent__panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line-soft);
}
.cookie-consent__panel-header h2 { font: 600 28px/1.15 var(--headline); }
.cookie-consent__panel-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.cookie-consent__close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.cookie-consent__close:hover { color: var(--navy); border-color: var(--navy); }
.cookie-consent__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.cookie-consent__categories { display: grid; gap: 12px; padding: 22px 26px; }
.cookie-consent__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 18px;
  background: #fbfaf7;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.cookie-consent__category h3,
.cookie-consent__category strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}
.cookie-consent__category p,
.cookie-consent__category > span:first-child > span {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.cookie-consent__required {
  flex: 0 0 auto;
  color: #48735b;
  font-size: 12px;
  font-weight: 700;
}
.cookie-consent__switch { position: relative; flex: 0 0 48px; width: 48px; height: 28px; }
.cookie-consent__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cookie-consent__switch span {
  position: absolute;
  inset: 0;
  background: #c6cbd3;
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.cookie-consent__switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(8, 20, 40, .25);
  transition: transform .2s var(--ease);
}
.cookie-consent__switch input:checked + span { background: var(--red); }
.cookie-consent__switch input:checked + span::after { transform: translateX(20px); }
.cookie-consent__switch input:focus-visible + span { outline: 3px solid rgba(192, 40, 46, .25); outline-offset: 3px; }
.cookie-consent__panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line-soft);
}
.footer-cookie-preferences {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

.external-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
  border-radius: var(--radius);
}
.external-media__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(184, 146, 75, .18), transparent 42%),
    var(--navy-deep);
}
.external-media__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--gold-soft);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}
.external-media__icon svg { width: 22px; height: 22px; fill: currentColor; }
.external-media__copy strong { display: block; font-size: 16px; }
.external-media__copy span { display: block; margin-top: 4px; color: rgba(255,255,255,.66); font-size: 13px; }
.external-media__actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.external-media__actions button,
.external-media__actions a {
  padding: 9px 14px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.external-media__actions button { color: var(--navy); background: var(--gold-soft); border-color: var(--gold-soft); }
.external-media__actions button:hover { background: var(--gold); border-color: var(--gold); }
.external-media__actions a:hover { border-color: #fff; }
.external-media__frame { display: block; width: 100%; height: 100%; border: 0; }
.external-media[data-external-media-provider="iBreviary"] { height: 800px; aspect-ratio: auto; }
.content-widget--youtube { margin: 28px 0; }
.content-widget--pdf-embed { margin: 32px 0; }
.pdf-embed-widget__viewer {
  display: block;
  width: 100%;
  height: var(--pdf-embed-height, 600px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3f4f6;
  box-shadow: var(--shadow-sm);
}
.pdf-embed-widget__actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.article-body a.pdf-embed-widget__download,
.article-body a.pdf-embed-widget__download:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.article-body a.pdf-embed-widget__download:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}
.pdf-embed-widget__download svg { width: 18px; height: 18px; }
.pdf-embed-widget__download small { color: var(--muted); font-size: 11px; font-weight: 650; }
.video-detail { padding-top: 40px; }
.video-embed { width: 100%; max-width: 900px; margin: 0 auto; }
.video-detail__external-link { margin-top: 1rem; text-align: center; }
.video-detail__description { max-width: 900px; margin: 1.5rem auto 0; }
.diocese-map .external-media { height: 100%; min-height: inherit; aspect-ratio: auto; border-radius: 0; }

@media (max-width: 760px) {
  .cookie-consent__banner-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .cookie-consent__copy h2 { font-size: 18px; }
  .cookie-consent__copy p { margin-top: 5px; font-size: 12.5px; line-height: 1.45; }
  .cookie-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cookie-consent__banner .cookie-consent__button {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 11.5px;
  }
  .cookie-consent__modal { padding: 12px; }
  .cookie-consent__panel { max-height: calc(100vh - 24px); }
  .cookie-consent__panel-header,
  .cookie-consent__categories { padding-right: 18px; padding-left: 18px; }
  .cookie-consent__category { align-items: flex-start; gap: 14px; padding: 15px; }
  .cookie-consent__panel-footer { align-items: stretch; flex-direction: column; padding: 16px 18px 20px; }
  .cookie-consent__panel-footer > div { justify-content: stretch; }
  .external-media__placeholder { min-height: 210px; padding: 20px 16px; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 28px rgba(192,40,46,.32); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-ctas .btn-ghost:hover { transform: translateY(-1px); }
.btn-gold {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.btn-gold:hover { background: var(--gold); color: #fff; }

/* ============================================
   ERROR PAGES
   ============================================ */
.error-shell {
  min-height: 100vh;
  background: var(--cream);
}
.error-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 245, 240, .98) 0%, rgba(247, 245, 240, .92) 52%, rgba(246, 241, 231, .76) 100%),
    url("images/gospel-open-bible-bg.jpg") center right / cover no-repeat;
}
.error-shell--server .error-page {
  background:
    linear-gradient(90deg, rgba(247, 245, 240, .99) 0%, rgba(247, 245, 240, .96) 58%, rgba(246, 241, 231, .88) 100%),
    url("images/gospel-open-bible-bg.jpg") center right / cover no-repeat;
}
.error-shell--server .error-page .error-page__wrap {
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
}
.error-shell--server .error-page__brand {
  justify-self: center;
}
.error-page .error-page__wrap {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 32px;
  padding-top: 30px;
  padding-bottom: 42px;
}
.error-page__brand a {
  display: inline-flex;
  width: 250px;
  max-width: 70vw;
}
.error-page__brand img {
  width: 100%;
  height: auto;
}
.error-page__panel {
  align-self: center;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 42px;
  padding: 50px;
  border: 1px solid rgba(184, 146, 75, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 54px rgba(11, 29, 58, .11);
  backdrop-filter: blur(10px);
}
.error-shell--server .error-page__panel {
  width: min(840px, 100%);
  justify-self: center;
  background: rgba(255, 255, 255, .86);
}
.error-page__code {
  font-family: var(--serif);
  font-size: 112px;
  font-weight: 700;
  line-height: .82;
  color: var(--gold);
}
.error-shell--server .error-page__code { color: var(--navy-soft); }
.error-page__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.error-page h1 {
  margin: 0;
  max-width: 680px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.02;
  color: var(--navy);
}
.error-page__lead {
  max-width: 650px;
  margin: 20px 0 0;
  font-family: var(--headline);
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink-2);
}
.error-search { max-width: 640px; }
.error-search__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.error-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm);
}
.error-search input {
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 10px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.error-search button {
  min-width: 110px;
  border: none;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.error-search button:hover { background: var(--navy-soft); }
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.error-page__actions .btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.error-page__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 30px;
}
.error-page__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(184, 146, 75, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .6);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.error-page__link:hover {
  background: #fff;
  border-color: var(--gold-soft);
  color: var(--red-dark);
}
.error-page__link svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.error-page__note {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
}
.error-page__small {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.error-page__small a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.frontend-error__intro {
  max-width: 680px;
  color: var(--ink-2);
}
.frontend-error__muted {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.article-body.frontend-error a.btn,
.article-body.frontend-error a.btn:hover,
.article-body.frontend-error .error-page__link,
.article-body.frontend-error .error-page__link:hover {
  text-decoration: none;
}
.article-body.frontend-error a.btn-primary { color: #fff; }
.article-body.frontend-error a.btn-gold { color: var(--gold); }
.article-body.frontend-error a.btn-gold:hover { color: #fff; }
.frontend-error .error-search { max-width: none; }
.frontend-error .error-page__links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
  margin-top: 22px;
}
.frontend-error .error-page__link {
  min-height: 64px;
  padding: 16px;
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.frontend-error .error-page__link:first-child {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 28px rgba(192, 40, 46, .18);
}
.frontend-error .error-page__link:first-child:hover {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
}
@media (max-width: 820px) {
  .error-page {
    background:
      linear-gradient(180deg, rgba(247, 245, 240, .98) 0%, rgba(247, 245, 240, .94) 100%),
      url("images/gospel-open-bible-bg.jpg") center bottom / cover no-repeat;
  }
  .error-page .error-page__wrap {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .error-page__brand a { width: 210px; }
  .error-page__panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 24px;
  }
  .error-page__code {
    font-size: 78px;
    line-height: .9;
  }
  .error-page h1 { font-size: 34px; }
  .error-page__lead { font-size: 18px; }
  .error-page__links { grid-template-columns: 1fr; }
  .frontend-error .error-page__links { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .error-search__row { grid-template-columns: 1fr; }
  .error-search button {
    min-height: 42px;
    width: 100%;
  }
  .error-page__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  color: #fff;
  background: #0b1d3a;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.70) saturate(.95);
  transform: scale(1.05);
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  to { transform: scale(1.13); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,20,40,.7) 0%, rgba(8,20,40,.3) 25%, rgba(8,20,40,.1) 100%),
    linear-gradient(180deg, rgba(8,20,40,.4) 0%, rgba(8,20,40,.7) 100%);
}
.hero__layout {
  position: relative; z-index: 2;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding-top: 28px; padding-bottom: 28px;
}
.hero__content { min-width: 0; }
.hero-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 4.75vw, 60px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  max-width: 560px;
}
.hero-title span { display: block; }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.82);
  max-width: 440px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Liturgic-calendar panel, on the right of the hero. The hero and panel grow together
   when a liturgic day contains more text than usual. */
.hero-litcal {
  z-index: 3;
  width: 100%;
  min-width: 0;
  min-height: 354px;
  justify-self: end;
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px 20px;
  color: #fff;
  background: rgba(11, 29, 58, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 146, 75, .38);
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.65);
}
.hero-litcal__date {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72); text-decoration: none;
}
.hero-litcal__date:hover { color: var(--gold-soft); }
.hero-litcal__feast {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.16;
  color: var(--gold-soft);
}
.hero-litcal__saint {
  font-size: 13px; color: rgba(255,255,255,.9);
  line-height: 1.35;
}
.hero-litcal__readings {
  font-size: 11.5px; color: rgba(255,255,255,.58);
  line-height: 1.35;
}
.hero-litcal__themes {
  list-style: none; margin: 3px 0 0; padding: 9px 0 0;
  display: flex; flex-direction: column; gap: 5px; min-height: 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-litcal__themes li {
  position: relative; padding-left: 14px;
  font-size: clamp(11.5px, 1vw, 13px); line-height: 1.32;
  color: rgba(255,255,255,.86);
}
.hero-litcal__themes li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.hero-litcal__links {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 8px; padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}
.hero-litcal__links a { color: rgba(255,255,255,.8); text-decoration: none; }
.hero-litcal__links a:hover { color: var(--gold-soft); }
.hero-litcal__resources {
  display: grid; gap: 6px; margin-top: 8px;
}
.hero-litcal__resource {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--gold-soft); text-decoration: none;
}
.hero-litcal__resource svg { width: 16px; height: 16px; flex: none; }
.hero-litcal__resource:hover { color: #fff; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
  z-index: 3;
}
.hero-scroll::after {
  content: ""; width: 3px; height: 8px; background: #fff; border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ============================================
   HOMEPAGE ACCESS CARDS
   ============================================ */
.hero-ctas,
.homepage-cards { --homepage-action-height: 50px; }
.homepage-cards {
  padding: 14px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 5px 18px rgba(11, 29, 58, .045);
}
.homepage-cards__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.homepage-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  height: var(--homepage-action-height);
  min-height: var(--homepage-action-height);
  padding: 6px 13px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.homepage-card .ql-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold);
}
.homepage-card__title {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.homepage-card:hover {
  color: var(--red);
  background: var(--gold-faint);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.homepage-card:focus-visible {
  outline: 3px solid rgba(192, 40, 46, .24);
  outline-offset: 2px;
}
.hero-ctas .btn { height: var(--homepage-action-height); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.latest-albums-section { padding: 24px 0 32px; }
.latest-albums-section + .article-showcase-section { padding-top: 32px; }
.hero + .article-showcase-section { padding-top: 44px; }
.homepage-cards + .article-showcase-section { padding-top: 40px; }
.article-showcase-section + .article-showcase-section { padding-top: 0; }
.article-showcase-section + .parish-finder-section {
  margin-top: -32px;
  padding-top: 0;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 16px;
  background: var(--gold);
  transform: translateY(-50%);
  border-radius: 2px;
}
.section-more {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.section-more:hover { color: var(--red); gap: 12px; }

/* ============================================
   NEWS LAYOUT
   ============================================ */
.news-shell {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.news-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}

.news-feature {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.news-feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-feature .img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.news-feature .img-wrap img,
.news-feature .img-wrap .img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.news-feature:hover .img-wrap img,
.news-feature:hover .img-wrap .img { transform: scale(1.08); }
.news-feature .body { padding: 22px 24px 26px; }
.news-feature .tag { color: var(--red); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.news-feature h3 {
  font-family: var(--headline);
  font-size: 24px; font-weight: 600; line-height: 1.18;
  margin: 10px 0 12px;
  color: var(--navy);
  letter-spacing: -.005em;
}
.news-feature p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.news-feature .meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.news-feature .meta a { color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }

.news-list {
  display: flex; flex-direction: column; gap: 18px;
}
.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.news-item:hover { border-color: var(--gold-soft); }
.news-item.is-disabled { opacity: .7; }
.news-item .img-wrap {
  width: 96px; height: 96px; border-radius: 8px; overflow: hidden;
}
.news-item .img-wrap img, .news-item .img-wrap .img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.news-item:hover .img-wrap img,
.news-item:hover .img-wrap .img { transform: scale(1.1); }
.news-item .body { padding: 4px 4px 4px 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-item .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.news-item h4 { font-family: var(--headline); font-size: 15.5px; font-weight: 600; line-height: 1.26; margin: 4px 0 6px; color: var(--navy); }
.news-item .date { margin-top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

/* ============================================
   ARTICLE SHOWCASE — ASPECT LAYOUTS
   ============================================ */
/* Aspect 1: featured on the left + excerpt list items on the right */
.news-aspect-1 {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.6fr);
  gap: 24px;
  align-items: start;
}
.news-aspect-1-list {
  gap: 14px;
}

/* Aspect 2: 3 columns of compact list items */
.news-aspect-2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-showcase-more {
  margin-top: 32px;
}

.article-showcase-section .news-item h4 {
  font-size: 16px;
}

.article-showcase-section .news-feature p,
.article-showcase-section .news-item .body p {
  font-size: 16px;
  line-height: 1.55;
}

/* Aspect 4: tall image cards with a gradient overlay and the title over the bottom */
.news-overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.news-overlay-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.news-overlay-card .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease);
}
.news-overlay-card:hover .img { transform: scale(1.06); }
.news-overlay-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.news-overlay-card .body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px 22px;
  color: #fff;
}
.news-overlay-card .tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.news-overlay-card h3 {
  font-family: var(--headline);
  font-size: 21px; font-weight: 600; line-height: 1.2;
  margin: 8px 0 8px;
  color: #fff;
}
.news-overlay-card .date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* Albums gallery — image-forward grid, 5 covers per row */
.album-section { padding-top: 32px; padding-bottom: 80px; }
.album-section--with-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: start;
  gap: 28px;
}
.album-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.album-tile {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.album-tile:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 18px 40px -24px rgba(11, 29, 58, .35);
  transform: translateY(-3px);
}
.album-tile .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-soft); }
.album-tile .img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.album-tile:hover .img-wrap img { transform: scale(1.06); }
.album-tile .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.album-tile h4 {
  font-family: var(--headline); font-size: 15px; font-weight: 600; line-height: 1.25;
  margin: 0; color: var(--navy);
}
.album-tile .date { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* Internal photo album detail */
.photo-album-detail { padding-top: 38px; padding-bottom: 80px; }
.photo-album-description {
  max-width: 860px;
  margin: 0 auto 34px;
  color: var(--ink-2);
}
.photo-album-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.photo-album-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  box-shadow: 0 10px 28px -24px rgba(11, 29, 58, .45);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.photo-album-image:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 20px 38px -24px rgba(11, 29, 58, .55);
  transform: translateY(-2px);
}
.photo-album-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.photo-album-image:hover img { transform: scale(1.04); }
.photo-album-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2, #f7f5f0);
  color: var(--muted);
  text-align: center;
}

.album-year-filter,
.album-month-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 7px;
}
.album-year-filter {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}
.album-month-filter {
  margin-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, .36);
  border-right: 1px solid rgba(212, 175, 55, .16);
  border-bottom: 1px solid rgba(212, 175, 55, .24);
  border-left: 1px solid rgba(212, 175, 55, .16);
  background: rgba(212, 175, 55, .08);
}
.album-timeline {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 16px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 38px -30px rgba(11, 29, 58, .5);
  scrollbar-width: thin;
}
body.album-timeline-open { overflow: hidden; }
.album-timeline-toggle,
.album-timeline-close { display: none; }
.album-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.album-timeline.is-dragging {
  cursor: ns-resize;
  user-select: none;
}
.album-timeline-title {
  margin: 0;
  font-family: var(--headline);
  font-size: 18px;
  color: var(--navy);
}
.album-timeline-list { display: grid; gap: 15px; }
.album-timeline-year-link {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.album-timeline-months { display: grid; gap: 3px; margin-top: 5px; }
.album-timeline-month {
  display: grid;
  grid-template-columns: 30px minmax(28px, 1fr) 28px;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  margin-inline: -14px;
  padding-inline: 14px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 10.5px;
}
.album-timeline-month:hover,
.album-timeline-month:focus-visible,
.album-timeline-month.is-scrubbing,
.album-timeline-month.is-current { color: var(--red); background: var(--gold-faint); }
.album-timeline-month.is-current { font-weight: 600; }
.album-timeline-density {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-soft);
}
.album-timeline-density::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--album-density);
  border-radius: inherit;
  background: var(--gold);
  content: '';
}
.album-timeline-tooltip {
  display: block;
  min-height: 30px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.infinite-feed-controls {
  position: relative;
  display: flex;
  min-height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}
.infinite-feed-controls[hidden] { display: none; }
.infinite-feed-status { min-height: 18px; color: var(--muted); font-size: 12px; }
.infinite-feed-sentinel { position: absolute; bottom: 0; width: 100%; height: 1px; pointer-events: none; }

/* Live Masses — maintained directory of external livestreams */
.live-mass-section {
  min-width: 0;
}
.live-mass-group + .live-mass-group {
  margin-top: 42px;
}
.live-mass-group .section-head.compact {
  margin-bottom: 16px;
}
.live-mass-group .section-head h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.live-mass-group .section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 16px;
  background: var(--gold);
  transform: translateY(-50%);
  border-radius: 2px;
}
.live-mass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.live-mass-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 182px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.live-mass-card:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 18px 40px -24px rgba(11, 29, 58, .35);
  transform: translateY(-2px);
}
.live-mass-image {
  display: block;
  width: 118px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: #e5e5e2;
}
.live-mass-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.live-mass-card:hover .live-mass-image img {
  transform: scale(1.06);
}
.live-mass-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  color: #787b82;
  background: linear-gradient(135deg, #f0f0ed, #deded9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.live-mass-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.live-mass-title {
  font-family: var(--headline);
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.live-mass-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.live-mass-action {
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.live-mass-card:hover .live-mass-action {
  color: var(--gold);
  transform: translate(2px, -2px);
}

/* Special sections — curated article/page/link collections */
.special-sections-section {
  padding-top: 32px;
  padding-bottom: 80px;
}
.special-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.special-section-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  min-height: 154px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.special-section-card:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 18px 40px -24px rgba(11, 29, 58, .35);
  transform: translateY(-2px);
}
.special-section-card .img-wrap,
.special-link-item .img-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-soft);
}
.special-section-card .img-wrap {
  width: 128px;
  height: 128px;
}
.special-section-card img,
.special-link-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.special-section-card:hover img,
.special-link-item:hover img { transform: scale(1.06); }
.special-section-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.special-section-card h2,
.special-link-item h2 {
  font-family: var(--headline);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy);
  margin: 4px 0 8px;
}
.special-section-card h2 { font-size: 21px; }
.special-link-item h2 { font-size: 24px; }
.special-section-card p,
.special-link-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.special-section-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-faint);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
}
.special-section-cover {
  margin: 0 0 28px;
}
.special-section-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}
.special-section-intro {
  margin-bottom: 30px;
}
.special-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-body.special-section-detail a.special-link-item,
.article-body.special-section-detail a.special-link-item:hover {
  color: inherit;
  text-decoration: none;
  text-decoration-color: transparent;
}
.special-link-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.special-link-item:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 14px 32px -24px rgba(11, 29, 58, .35);
}
.special-link-item.is-disabled {
  opacity: .7;
}
.special-link-item .img-wrap {
  width: 88px;
  height: 88px;
}
.article-body .special-link-item h2 {
  font-size: 19px;
  line-height: 1.22;
  margin: 0 0 5px;
}
.article-body .special-link-item p {
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
}

/* Responsive: shared by the albums page and the homepage widget so both
   stay consistent — 5 → 4 → 3 → 2 → 1 covers per row as the viewport shrinks. */
@media (max-width: 1200px) {
  .album-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .photo-album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .live-mass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .special-sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .album-section--with-timeline { display: block; }
  .album-timeline-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 12px 16px;
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius-sm);
    background: var(--gold-faint);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .album-timeline-toggle span:last-child { color: var(--red); font-size: 24px; font-weight: 400; line-height: 1; }
  .album-timeline {
    position: fixed;
    z-index: 1040;
    inset: 0;
    display: none;
    width: 100%;
    height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: var(--paper, #fff);
    box-shadow: none;
  }
  .album-timeline.is-open { display: block; }
  .album-timeline-header {
    position: sticky;
    z-index: 1;
    top: 0;
    margin: 0 0 20px;
    padding: max(20px, env(safe-area-inset-top)) 0 14px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--paper, #fff);
  }
  .album-timeline-title { font-size: 25px; }
  .album-timeline-close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 28px;
    line-height: 1;
    place-items: center;
  }
  .album-timeline-toggle:focus-visible,
  .album-timeline-close:focus-visible { outline: 3px solid rgba(181, 142, 67, .38); outline-offset: 3px; }
  .album-timeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .album-timeline-year-link { font-size: 16px; }
  .album-timeline-months { gap: 6px; margin-top: 8px; }
  .album-timeline-month { min-height: 28px; margin-inline: 0; padding-inline: 10px; font-size: 12px; }
  .album-timeline-tooltip { display: none; }
  .album-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .photo-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .album-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .live-mass-grid { grid-template-columns: 1fr; }
  .special-sections-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .album-timeline-list { grid-template-columns: 1fr; }
  .album-gallery { grid-template-columns: 1fr; }
  .photo-album-detail { padding-top: 26px; padding-bottom: 56px; }
  .photo-album-grid { grid-template-columns: 1fr; }
  .live-mass-card {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 148px;
  }
  .live-mass-image { width: 92px; }
  .live-mass-title { font-size: 16px; }
  .special-section-card,
  .special-link-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }
  .special-section-card .img-wrap,
  .special-link-item .img-wrap {
    width: 88px;
    height: 88px;
  }
  .special-section-card h2 { font-size: 19px; }
  .article-body .special-link-item h2 { font-size: 18px; }
}

/* Multimedia (video) tiles reuse the album grid, with a 16:9 thumbnail + play overlay. */
.video-tile .img-wrap { aspect-ratio: 16 / 9; position: relative; }
.video-tile .play-badge {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(192, 40, 46, .92); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease), background .25s var(--ease);
  pointer-events: none;
}
.video-tile:hover .play-badge { transform: scale(1.08); }
.video-tile .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.video-tile .meta .date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.video-tile .meta .source { font-size: 12px; color: var(--muted-2); }

/* Parish listing card — larger thumbnail + a right-hand meta column (paroh, telefon, program) */
.news-item.parish-item { grid-template-columns: 160px minmax(0, 1fr) minmax(250px, 340px); }
.news-item.parish-item .img-wrap { width: 160px; height: 160px; background: var(--line-soft); }
.news-item.parish-item .img-wrap img { display: block; object-fit: contain; }
.news-item.parish-item:hover .img-wrap img { transform: none; }
.parish-meta {
  align-self: center;
  display: flex; flex-direction: column; gap: 9px;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}
.parish-meta .pm-row { display: flex; flex-direction: column; gap: 1px; }
.parish-meta .pm-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.parish-meta .pm-value { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.parish-meta .pm-value-list { display: grid; gap: 2px; }

/* Parish gallery — uncropped images fitted inside consistent cards */
.article-body .parish-gallery { margin-bottom: 1.5rem; }
.article-body .parish-gallery-card {
  display: flex;
  width: 100%;
  height: 200px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--line-soft);
}
.article-body .parish-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Parish search box (under the county tabs) */
.parish-search { display: flex; align-items: center; gap: 10px; margin-top: 18px; max-width: 560px; flex-wrap: wrap; }
.parish-search input[type="search"] {
  flex: 1 1 280px; min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
  outline: none;
}
.parish-search input[type="search"]:focus { border-color: var(--gold-soft); }
.parish-search button {
  padding: 11px 34px;
  background: var(--navy); color: #fff; border: none; border-radius: 8px;
  font-weight: 700; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.parish-search button:hover { background: var(--navy-soft); }
.parish-search .parish-search-clear { font-size: 12px; color: var(--muted); text-decoration: underline; }

/* Decanate directory — ordered list of deaneries */
.decanate-list { list-style: decimal; margin: 0; padding: 0 0 0 1.4rem; display: flex; flex-direction: column; gap: 18px; }
.decanate-item { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.decanate-name { margin: 0 0 6px; font-size: 18px; }
.decanate-name a { color: var(--navy); text-decoration: none; }
.decanate-name a:hover { color: var(--red); }
.decanate-count { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.decanate-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.decanate-meta strong { color: var(--navy); font-weight: 600; }

/* Parish details — contact widget list */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.contact-list strong { color: var(--navy); font-weight: 600; }
.contact-list a { color: var(--red); }

/* Priest directory — paginated alphabetical list */
.priest-letter-index { line-height: 2; }
.priests-layout .category-main { grid-column: 1; grid-row: 1; }
.priests-layout .priest-filters-sidebar { grid-column: 2; grid-row: 1; }
.priest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 22px; }
.priest-item { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.priest-item:hover { background: var(--paper-2, #f7f5f0); }
.priest-avatar { display: block; flex: 0 0 auto; width: 50px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--line-soft); }
.priest-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.article-body .priest-detail-photo { display: block; float: left; width: 220px; max-width: 100%; height: auto; margin: 0 1.5rem 1rem 0; }
.priest-additional-info { clear: both; }
.priest-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.priest-name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.priest-name .priest-order { font-weight: 400; color: var(--muted); }
.priest-meta { font-size: 12px; color: var(--muted-2); line-height: 1.3; }

.priest-filter-panel { width: 100%; }
.priest-filter-summary { cursor: pointer; list-style: none; }
.priest-filter-summary::-webkit-details-marker { display: none; }
.priest-filter-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .2s var(--ease);
}
.priest-filter-panel[open] .priest-filter-chevron { transform: rotate(180deg); }
.priest-filter-groups { display: flex; flex-direction: column; gap: 22px; }
.priest-filter-group-title {
  margin: 0 0 7px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.priest-filter-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.priest-filter-link {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.priest-filter-link--nested { padding-left: 27px; }
.priest-filter-link--nested::before {
  content: "—";
  margin-right: 7px;
  color: var(--muted-2);
}
.priest-filter-link:hover { background: var(--paper-2, #f7f5f0); color: var(--red); }
.priest-filter-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.priest-filter-link.is-active { background: var(--navy); color: #fff; font-weight: 700; }
.priest-filter-link.is-active::before { color: rgba(255,255,255,.68); }
.priest-anniversaries-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 15px 20px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.priest-anniversaries-icon { width: 24px; height: 24px; flex: 0 0 auto; color: var(--gold); }
.priest-anniversaries-link:hover { border-color: var(--gold-soft); background: var(--gold-faint); color: var(--red); }
.priest-anniversaries-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.priest-anniversaries-link.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.priest-anniversaries-link.is-active .priest-anniversaries-icon { color: var(--gold-soft); }

.priest-anniversary-month-form { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 22px; }
.priest-anniversary-month-form label {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.priest-anniversary-month-controls { display: flex; align-items: stretch; gap: 10px; }
.priest-anniversary-month-controls select {
  min-width: 220px;
  padding: 11px 38px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.priest-anniversary-month-controls select:focus { border-color: var(--gold-soft); outline: 2px solid transparent; }
.priest-anniversary-month-controls button {
  padding: 11px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.priest-anniversary-month-controls button:hover { background: var(--navy-soft); }
.priest-anniversaries-main { display: flex; flex-direction: column; gap: 48px; }
.priest-anniversary-title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--headline);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.priest-anniversary-empty {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2, #f7f5f0);
  color: var(--muted);
}
.priest-anniversary-days { display: flex; flex-direction: column; gap: 14px; }
.priest-anniversary-day {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.priest-anniversary-day.is-today { border-color: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold-faint); }
.priest-anniversary-day-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 18px 12px;
  background: var(--paper-2, #f7f5f0);
  color: var(--navy);
  text-align: center;
}
.priest-anniversary-day.is-today .priest-anniversary-day-heading { background: var(--gold-faint); }
.priest-anniversary-day-number { font-family: var(--headline); font-size: 32px; font-weight: 700; line-height: 1; }
.priest-anniversary-day-month { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.priest-anniversary-today {
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.priest-anniversary-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-content: start;
  margin: 0;
  padding: 7px 16px;
  list-style: none;
}
.priest-anniversary-entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.priest-anniversary-priest { color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.35; }
.priest-anniversary-priest a { color: inherit; text-decoration: none; }
.priest-anniversary-priest a:hover { color: var(--red); text-decoration: underline; }
.priest-anniversary-order { color: var(--muted); font-weight: 400; }
.priest-anniversary-years { color: var(--muted); font-size: 12px; line-height: 1.35; }

.priest-grouped-directory-main { display: flex; flex-direction: column; gap: 22px; }
.priest-directory-group {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}
.priest-directory-group-title {
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2, #f7f5f0);
  color: var(--navy);
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.priest-directory-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 8px 18px;
  list-style: none;
}
.priest-directory-entry { min-width: 0; border-bottom: 1px solid var(--line-soft); }
.priest-directory-entry a {
  display: block;
  padding: 12px 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.priest-directory-entry a:hover { background: var(--gold-faint); color: var(--red); }
.priest-directory-entry a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.priest-directory-empty {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2, #f7f5f0);
  color: var(--muted);
}

@media (max-width: 640px) {
  .priest-anniversary-month-controls { width: 100%; flex-direction: column; }
  .priest-anniversary-month-controls select,
  .priest-anniversary-month-controls button { width: 100%; }
  .priest-anniversary-day { grid-template-columns: 72px minmax(0, 1fr); }
  .priest-anniversary-day-heading { padding: 15px 8px; }
  .priest-anniversary-day-number { font-size: 27px; }
  .priest-anniversary-entries { grid-template-columns: 1fr; padding-inline: 10px; }
  .priest-directory-entries { grid-template-columns: 1fr; padding-inline: 10px; }
  .priest-directory-group-title { padding-inline: 18px; font-size: 18px; }
}

@media (min-width: 1081px) {
  .priest-filter-summary { cursor: default; pointer-events: none; }
  .priest-filter-chevron { display: none; }
}

/* Tag colors by category */
.tag-diecez { color: var(--red); }
.tag-comun  { color: #1f8a5b; }
.tag-bis    { color: #5a3aa0; }
.tag-event  { color: var(--gold); }

/* ============================================
   CATEGORY LISTING — excerpt, month headings,
   pager and archive
   ============================================ */
.news-item .body p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-month-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--headline);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.01em;
  margin: 36px 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.archive-month-heading:first-child { margin-top: 0; }
.archive-jump {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color .2s var(--ease);
}
.archive-jump:hover { color: var(--red); }

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.pager-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.pager-link:hover { border-color: var(--gold-soft); background: var(--gold-faint); }
.pager-link.is-disabled {
  color: var(--muted-2);
  border-color: var(--line-soft);
  pointer-events: none;
  opacity: .6;
}

.archive {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.archive-title {
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 14px;
}
.archive-year {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  padding: 6px 0;
  font-size: 14px;
}
.archive-year + .archive-year { border-top: 1px dotted var(--line-soft); }
.archive-year-label { font-weight: 700; color: var(--navy); min-width: 48px; }
.archive-months { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.archive-month {
  color: var(--red);
  transition: color .2s var(--ease);
}
.archive-month:hover { color: var(--red-dark); text-decoration: underline; }
.archive-month.is-active { color: var(--navy); font-weight: 700; text-decoration: underline; }
.archive-sep { color: var(--muted-2); }

/* Inline text link that should read as clickable. */
.text-link {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(192, 40, 46, .35);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease);
}
.text-link:hover { text-decoration-color: var(--red); }

/* ============================================
   LIVE / MEDIA column
   ============================================ */
.media-col { display: flex; flex-direction: column; gap: 18px; }
.media-live {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1d3a;
  color: #fff;
  aspect-ratio: 4 / 3;
}
.media-live .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.7);
}
.media-live::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,20,40,.85) 100%);
}
.media-live .pill {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: #fff;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  z-index: 2;
}
.media-live .play {
  position: absolute; right: 18px; bottom: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.media-live .play:hover { transform: scale(1.06); background: rgba(255,255,255,.2); }
.media-live .info { position: absolute; left: 18px; bottom: 18px; right: 80px; z-index: 2; }
.media-live .info .title { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.media-live .info .where { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 4px; }

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.media-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; gap: 12px; align-items: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.media-card:hover { border-color: var(--gold-soft); background: var(--gold-faint); }
.media-card.dark { background: #0e2245; color: #fff; border-color: transparent; position: relative; overflow: hidden; }
.media-card.dark::after {
  content: "";
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 88px; height: 48px;
  background:
    radial-gradient(circle at 10% 50%, transparent 0 5px, rgba(255,255,255,0.12) 5px 7px, transparent 7px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 2px, transparent 2px 6px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.media-card .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-faint);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.media-card.dark .ic { background: rgba(255,255,255,.08); color: var(--gold-soft); }
.media-card .text { font-size: 12px; line-height: 1.3; }
.media-card .text strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.media-card.dark .text strong { color: #fff; }
.media-card .text span { color: var(--muted); }
.media-card.dark .text span { color: rgba(255,255,255,.7); }
.media-card .text small {
  display: inline-block; margin-top: 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .18em;
  color: var(--gold-soft); background: rgba(255,255,255,.08);
  padding: 3px 8px; border-radius: 4px;
}

/* ============================================
   GOSPEL OF THE DAY
   ============================================ */
.gospel {
  background:
    linear-gradient(105deg, var(--cream) 0%, var(--cream) 55%, var(--cream-warm) 100%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.gospel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(247, 244, 236, .94) 42%, rgba(247, 244, 236, .64) 100%),
    url("images/gospel-open-bible-bg.jpg");
  background-size: cover;
  background-position: center right;
  opacity: .9;
  pointer-events: none;
}
.gospel .container {
  position: relative; z-index: 1;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 14px 18px;
}
.gospel-main { display: contents; min-width: 0; }
.gospel-ic {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gospel-ic svg { width: 20px; height: 20px; }
.gospel-head {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
  min-width: 0;
}
.gospel-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
}
.gospel-head .btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(139, 109, 55, .82);
  background: rgba(255, 255, 255, .18);
  border-color: rgba(184, 146, 75, .48);
}
.gospel-head .btn:hover {
  color: var(--navy);
  background: rgba(184, 146, 75, .14);
  border-color: rgba(184, 146, 75, .68);
}
.gospel-quote { font-family: var(--headline); font-size: 22px; line-height: 1.45; color: var(--navy); margin: 0; max-width: 900px; }
.gospel-ref { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gospel-text,
.gospel-quote,
.gospel-ref {
  grid-column: 1 / -1;
}

/* Full Gospel pericope: a readable block, top-aligned, left-justified. */
.gospel--full .container {
  align-items: start;
  text-align: left;
  padding-top: 44px;
  padding-bottom: 42px;
}
.gospel--full .gospel-head { margin-bottom: 0; }
.gospel-text {
  font-family: var(--headline);
  font-size: clamp(15px, .9vw, 16px);
  line-height: 1.58;
  color: var(--navy);
  max-width: none;
}
.gospel-text b { font-weight: 600; color: var(--ink); }
.gospel-text i { font-style: italic; color: var(--muted); }
.gospel-text sup { font-size: .62em; font-weight: 700; color: var(--gold); vertical-align: super; line-height: 0; margin-right: 1px; }
@media (min-width: 1100px) {
  .gospel--full .gospel-text {
    columns: 2 30rem;
    column-gap: clamp(32px, 4vw, 56px);
  }
}

/* ============================================
   EVENTS
   ============================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.event-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 18px 18px 16px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  border: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.event-card:hover { background: #fff; border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.event-date {
  border-right: 1px solid var(--line);
  padding-right: 14px;
  text-align: left;
}
.event-date .d { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1; }
.event-date .m { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.event-info .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.event-info h4 { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0 0 10px; }
.event-info .meta { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.event-info .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-info svg { width: 11px; height: 11px; }

/* ============================================
   PARISH FINDER
   ============================================ */
.parish {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.parish-body { padding: 26px 30px; }
.parish-body h3 {
  font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 8px;
}
.parish-body p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.parish-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-bottom: 18px;
}
.parish-search input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.parish-search input:focus { border-color: var(--gold); }
.parish-search button {
  background: var(--gold); color: #fff; border: none;
  width: 44px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.parish-search button:hover { background: var(--navy); }
/* Widget search button carries an icon + label, so it sizes to content. */
.parish-body .parish-search button {
  width: auto;
  align-self: stretch; /* match the input height (grid row otherwise centers it) */
  gap: 8px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.parish-body .parish-search button svg { flex-shrink: 0; }
.parish-allink { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; transition: gap .2s var(--ease), color .2s var(--ease); }
.parish-allink:hover { color: var(--red); gap: 12px; }

/* ============================================
   GALLERY SCROLLER
   ============================================ */
.gallery-wrap { position: relative; }
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1080px) and (min-width: 681px) {
  .gallery { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}
.gallery .tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery .tile .img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease);
}
.gallery .tile:hover .img { transform: scale(1.1); }
.gallery .tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,20,40,.4) 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery .tile:hover::after { opacity: 1; }
.gallery-next {
  position: absolute;
  right: -16px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.gallery-next:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-50%) translateX(2px); }

/* ============================================
   NEWSLETTER + FOOTER
   ============================================ */
.newsletter {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.newsletter .container {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
}
.newsletter-ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.newsletter h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0; }
.newsletter p { font-size: 13px; color: rgba(255,255,255,.65); margin: 4px 0 0; max-width: 420px; }
.newsletter input {
  width: 320px;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter input:focus { border-color: var(--gold); background: rgba(255,255,255,.1); }
.newsletter button {
  padding: 14px 26px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.newsletter button:hover { background: var(--gold-soft); transform: translateY(-1px); }
.newsletter-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.recommended-sites-footer {
  background: var(--navy);
  color: #fff;
  padding: 60px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.recommended-sites-footer-layout {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.recommended-sites-footer-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.recommended-sites-footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(191,143,57,.78);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.recommended-sites-footer-icon svg {
  width: 22px;
  height: 22px;
}
.recommended-sites-footer h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  color: #fff;
}
.recommended-sites-footer p {
  color: rgba(255,255,255,.64);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 360px;
}
.recommended-sites-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 24px;
}

.newsletter-subscribe-section {
  padding: 48px 0 88px;
}
.newsletter-subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}
.newsletter-subscribe-form,
.newsletter-subscribe-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.newsletter-subscribe-form {
  display: grid;
  gap: 20px;
  padding: 28px;
}
.newsletter-subscribe-field {
  display: grid;
  gap: 8px;
}
.newsletter-subscribe-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.newsletter-subscribe-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.newsletter-subscribe-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 146, 75, .12);
}
.newsletter-subscribe-consents {
  display: grid;
  gap: 12px;
}
.newsletter-subscribe-consents label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.newsletter-subscribe-consents input {
  margin-top: 4px;
}
.newsletter-subscribe-consents a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(196, 40, 48, .25);
  text-underline-offset: 3px;
}
.newsletter-subscribe-submit {
  justify-self: start;
  padding: 14px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.newsletter-subscribe-submit:hover {
  background: #a91f27;
  transform: translateY(-1px);
}
.newsletter-subscribe-submit:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}
.newsletter-subscribe-note {
  margin: -4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.newsletter-subscribe-alert {
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.newsletter-subscribe-alert--success {
  color: #0f5132;
  background: #e9f7ef;
  border: 1px solid #badbcc;
}
.newsletter-subscribe-alert--error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
}
.newsletter-subscribe-aside {
  padding: 24px;
}
.newsletter-subscribe-aside h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
}
.newsletter-subscribe-aside ul {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-left: 19px;
  color: var(--ink-2);
}
.newsletter-subscribe-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1.1fr;
  gap: 36px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.6); margin: 0; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-2px); }
.footer-social .footer-rss-link svg { width: 17px; height: 17px; }
.footer h5 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,.65); font-size: 13.5px; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer-contact .line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13.5px; }
.footer-contact .line svg { width: 14px; height: 14px; color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.app-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.app-badge {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 14px;
  background: #000;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.app-badge:hover { border-color: var(--gold); }
.app-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.app-badge .t { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; color: #fff; }
.app-badge .t small { font-size: 9px; opacity: .7; letter-spacing: .04em; }
.app-badge .t b { font-size: 14px; font-weight: 600; }
.app-badge svg { color: #fff; }

.footer-bottom {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.footer-bottom-links {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: 12px 20px;
}
.footer-bottom-links a,
.footer-bottom-links button { transition: color .2s var(--ease); }
.footer-bottom-links a:hover,
.footer-bottom-links button:hover { color: #fff; }

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-hero {
  padding: 48px 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.article-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.article-rss-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #c35d08;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid rgba(195, 93, 8, .28);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(11, 29, 58, .05);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.article-rss-link svg { width: 15px; height: 15px; }
.article-rss-link:hover {
  color: #9a4300;
  background: #fff7ed;
  border-color: rgba(195, 93, 8, .5);
  box-shadow: 0 4px 14px rgba(11, 29, 58, .08);
}
.crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.crumbs a { color: var(--muted); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: var(--muted-2); }
.article-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.article-title {
  font-family: var(--headline);
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 18px;
}
.article-lede {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 24px;
}
.article-meta {
  display: flex; gap: 24px; align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.article-meta .author { display: flex; gap: 10px; align-items: center; }
.article-meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-faint); display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--serif); font-weight: 600; font-size: 16px; }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.article-meta .article-share { margin-left: auto; display: flex; gap: 10px; }
.article-meta .article-share__link {
  position: relative;
  min-width: 32px; height: 32px;
  padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--paper); color: var(--ink-2);
  font-size: 12px; font-weight: 650; line-height: 1; text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.article-meta .article-share__link::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}
.article-meta .article-share__icon { display: inline-flex; }
.article-meta .article-share__icon svg { width: 15px; height: 15px; }
.article-meta .article-share__link--facebook .article-share__icon { color: var(--navy); }
.article-meta .article-share__link--whatsapp .article-share__icon { color: #237553; }
.article-meta .article-share__link--facebook:hover { background: #f2f5f9; border-color: #c8d1dd; color: var(--navy); }
.article-meta .article-share__link--whatsapp:hover { background: #f0f7f3; border-color: #bdd8ca; color: #176342; }
.article-meta .article-share__link:active { transform: translateY(1px); }
.article-meta .article-share__link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.article-cover {
  margin: 0;
  aspect-ratio: 16 / 7;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-cover-cap {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

.article-layout {
  padding-top: 32px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.article-layout--full { grid-template-columns: minmax(0, 1fr); }
.article-body {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.article-body p { margin: 0 0 22px; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 30px; font-weight: 600;
  color: var(--navy);
  margin: 36px 0 14px;
  letter-spacing: -.005em;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: var(--navy);
  margin: 28px 0 10px;
}
.article-body .content-widget--heading {
  display: block;
  font-family: inherit;
  line-height: 1.25;
}
.article-body .content-widget--heading-editorial {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -.01em;
}
.article-body .content-widget--heading-informative {
  padding: 12px 16px;
  border: 1px solid #cddfea;
  border-left: 4px solid #42789d;
  border-radius: var(--radius-sm);
  background: #eff6fa;
  color: #17344a;
}
.article-body .content-widget--heading-important {
  padding: 12px 16px;
  border: 1px solid #efcecc;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  background: #fff3f2;
  color: #512528;
  font-weight: 700;
}
.article-body blockquote {
  margin: 28px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
  color: var(--navy);
  font-style: italic;
}
.article-body blockquote cite { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); font-style: normal; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.article-body ul { padding-left: 22px; margin: 0 0 22px; }
.article-body ul li { margin-bottom: 8px; }
.article-body a:not(.gl-article-image):not(.image-widget-external-link) { color: var(--red); text-decoration: underline; text-decoration-color: rgba(192,40,46,.3); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.article-body a:not(.gl-article-image):not(.image-widget-external-link):hover { text-decoration-color: var(--red); }
.article-body figure { margin: 32px 0; }
.article-body figure img { border-radius: var(--radius); width: 100%; }
.article-body figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; font-style: italic; }

a.gl-article-image,
a.image-widget-external-link { display: inline; }
a.gl-article-image { cursor: zoom-in; }
a.gl-article-image img,
a.image-widget-external-link img { display: inline-block; }

.glightbox-container .gslide-image img {
  width: auto !important;
  height: auto !important;
  max-width: 80vw !important;
  max-height: 80vh !important;
  object-fit: contain;
}
.glightbox-container .gslide-media { max-width: 80vw !important; max-height: 80vh !important; }

/* Diocese overview, pastor biographies and map */
.article-body .diocese-subnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 38px;
}
.article-body .diocese-subnav a,
.article-body .diocese-subnav a:hover {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  color: var(--navy);
  text-decoration: none;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.article-body .diocese-subnav a:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 16px 32px -26px rgba(11,29,58,.5);
  transform: translateY(-2px);
}
.diocese-subnav span { font-weight: 700; }
.diocese-subnav small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.diocese-introduction::after,
.diocese-pastor-biography::after { display: block; clear: both; content: ""; }
.article-body .diocese-intro-image {
  float: right;
  width: min(220px, 38%);
  height: auto;
  margin: 4px 0 18px 24px;
  border-radius: var(--radius);
}
.diocese-section { clear: both; scroll-margin-top: 24px; }
.diocese-pastor-group {
  margin: 18px 0 28px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.article-body .diocese-pastor-group h3 { margin-top: 0; }
.article-body .diocese-pastor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.article-body .diocese-pastor-list li {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}
.diocese-pastor-list a { font-weight: 700; }
.diocese-pastor-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.diocese-statistics {
  margin-top: 36px;
  padding: 4px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body .diocese-statistics > h2 { margin-top: 0; }
.article-body .diocese-pastor-portrait {
  float: right;
  width: min(240px, 38%);
  margin: 0 0 22px 28px;
}
.diocese-map {
  width: 100%;
  min-height: 520px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.diocese-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.article-body .content-widget--image > a.gl-article-image,
.article-body .content-widget--image > a.image-widget-external-link {
  display: block;
  line-height: 0;
}
.article-body .content-widget--image > img,
.article-body .content-widget--image > a.gl-article-image > img,
.article-body .content-widget--image > a.image-widget-external-link > img { display: block; }

.article-body .content-widget--image .image-widget-caption {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  line-height: 1.45;
  text-align: center;
}
.article-body .content-widget--image .image-widget-caption--text-small { font-size: 14px; }
.article-body .content-widget--image .image-widget-caption--text-medium { font-size: 16px; }
.article-body .content-widget--image .image-widget-caption--text-large { font-size: 19px; }
.article-body .content-widget--image .image-widget-caption--subtle {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 13px;
}
.article-body .content-widget--image .image-widget-caption--soft {
  margin-top: 3px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  background: #f7f7f8;
  color: var(--muted);
  font-size: 13px;
}
.article-body .content-widget--image .image-widget-caption--dark {
  margin-top: 3px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
}
.article-body .content-widget--image .image-widget-caption__title {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  transition: color .2s var(--ease);
}
.article-body .content-widget--image .image-widget-caption--subtle .image-widget-caption__title {
  color: var(--muted);
  font-weight: 600;
}
.article-body .content-widget--image .image-widget-caption--dark .image-widget-caption__title {
  color: var(--paper);
}
.article-body .content-widget--image .image-widget-caption__link,
.article-body .content-widget--image .image-widget-caption__link:hover {
  display: block;
  color: inherit;
  text-decoration: none;
}
.article-body .content-widget--image .image-widget-caption__link:hover .image-widget-caption__title {
  color: var(--red);
}
.article-body .content-widget--image .image-widget-caption--dark .image-widget-caption__link:hover .image-widget-caption__title {
  color: var(--gold-soft);
}
.article-body .content-widget--image .image-widget-caption__link:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.article-body .content-widget--image .image-widget-caption__subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .92em;
  font-weight: 500;
  line-height: 1.45;
}
.article-body .content-widget--image .image-widget-caption--subtle .image-widget-caption__subtitle {
  color: var(--muted-2);
  font-weight: 400;
}
.article-body .content-widget--image .image-widget-caption--dark .image-widget-caption__subtitle {
  color: rgba(255, 255, 255, .72);
}
.article-body .content-widget--image .image-widget-caption__text {
  margin-top: 12px;
  text-align: left;
}
.article-body .content-widget--image .image-widget-caption__text > :last-child {
  margin-bottom: 0;
}

.article-body .content-widget--paragraph {
  clear: both;
  margin: 30px 0;
  padding: 22px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-2);
}
.article-body .content-widget--paragraph .content-widget-paragraph__title {
  margin: 0 0 12px;
  color: inherit;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.25;
}
.article-body .content-widget--paragraph-text-standard { font-size: 17.5px; }
.article-body .content-widget--paragraph-text-large { font-size: 20px; line-height: 1.7; }
.article-body .content-widget--paragraph-neutral {
  border-color: #e4e7eb;
  background: #f7f8f9;
}
.article-body .content-widget--paragraph-editorial {
  padding-left: 24px;
  border-color: var(--line-soft);
  border-left: 4px solid var(--navy);
  background: var(--paper);
}
.article-body .content-widget--paragraph-informative {
  border-color: #cddfea;
  border-left: 4px solid #42789d;
  background: #eff6fa;
  color: #17344a;
}
.article-body .content-widget--paragraph-important {
  border-color: #efcecc;
  border-left: 4px solid var(--red);
  background: #fff3f2;
  color: #512528;
}
.article-body .content-widget--paragraph-contrast {
  border-color: var(--navy);
  background: var(--navy);
  color: rgba(255, 255, 255, .9);
}
.article-body .content-widget--paragraph-contrast a,
.article-body .content-widget--paragraph-contrast a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(255, 255, 255, .35);
}
.article-body .content-widget--paragraph-contrast strong { color: var(--paper); }
.article-body .content-widget-paragraph__content > :last-child { margin-bottom: 0; }
.article-body .content-widget-paragraph__content--drop-cap > p:first-child::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--red);
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 700;
  line-height: .78;
}
.article-body .content-widget--paragraph-contrast .content-widget-paragraph__content--drop-cap > p:first-child::first-letter {
  color: var(--gold-soft);
}

@media (max-width: 640px) {
  .article-body .content-widget--paragraph {
    margin: 24px 0;
    padding: 18px;
  }
  .article-body .content-widget--paragraph-editorial,
  .article-body .content-widget--paragraph-informative,
  .article-body .content-widget--paragraph-important { padding-left: 18px; }
}

.article-body .catholic-dictionary-nav {
  clear: both;
  margin: 34px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.article-body .catholic-dictionary-nav p { margin-bottom: 14px; }
.article-body .catholic-dictionary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-body .catholic-dictionary-links a,
.article-body .catholic-dictionary-links a:hover {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}
.article-body .catholic-dictionary-letter,
.article-body .catholic-dictionary-entry { scroll-margin-top: 24px; }
.article-body .catholic-dictionary-entry {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line-soft);
}
.article-body .catholic-dictionary-entry h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}
.article-body .catholic-dictionary-definition { margin-bottom: 8px; }
.article-body .catholic-dictionary-related {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.article-end {
  display: flex; flex-direction: column; align-items: flex-start;
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 36px;
}
.article-tags-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
/* Override .article-body a:not(.gl-article-image) underline; the extra class keeps specificity above it. */
.article-body .article-tags .chip {
  font-size: 11.5px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  transition: all .2s var(--ease);
}
.article-body .article-tags .chip:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Linked parishes shown in the article header, under the meta line */
.article-parishes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.article-parishes-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.article-parishes .chip {
  font-size: 11.5px; padding: 6px 12px; border-radius: 999px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  transition: all .2s var(--ease);
}
.article-parishes .chip:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Parish "articole din parohie" list, rendered inside the main content column */
.parish-articles { margin-top: 40px; }
.parish-articles .section-head { margin-bottom: 16px; }
/* The cards live inside .article-body, which colors/underlines links — neutralize that here. */
.article-body .parish-articles a.news-item,
.article-body .parish-articles a.news-item:hover { color: inherit; text-decoration: none; }

/* Sidebar widgets */
/* Sidebar scrolls naturally with the page so all its content stays reachable. */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.widget-head h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.widget-head h4::before {
  content: ""; width: 3px; height: 14px; background: var(--gold); border-radius: 1px;
}
.widget-body { padding: 18px 20px 20px; }
.sidebar-widget-link {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.sidebar-widget-link:hover { color: var(--red); }
.sidebar-widget-link--body { display: inline-flex; margin-top: 10px; }
.sidebar-muted,
.sidebar-empty {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.sidebar-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}
.sidebar-search input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.sidebar-search input[type="search"]:focus { border-color: var(--gold-soft); }
.sidebar-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.sidebar-search button:hover { background: var(--navy-soft); }

/* radio live widget */
.widget-radio {
  background: linear-gradient(160deg, #0e2245 0%, #0b1d3a 100%);
  color: #fff;
  border: none;
}
.widget-radio .widget-head { border-color: rgba(255,255,255,.08); }
.widget-radio .widget-head h4 { color: #fff; }
.widget-radio .widget-head h4::before { background: var(--red); }
.radio-now {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
}
.radio-now .play {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.radio-now .play:hover { transform: scale(1.06); background: var(--red-dark); }
.radio-now .what small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.radio-now .what b { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.radio-wave {
  height: 40px; margin: 0 20px 16px;
  display: flex; align-items: center; gap: 3px;
}
.radio-wave span {
  flex: 1; background: var(--gold-soft); border-radius: 1px;
  animation: bar 1.2s ease-in-out infinite;
}
.radio-wave span:nth-child(odd) { animation-delay: .2s; }
.radio-wave span:nth-child(3n) { animation-delay: .4s; background: var(--gold); }
@keyframes bar {
  0%, 100% { height: 25%; }
  50%       { height: 95%; }
}

/* liturgy widget */
.liturgy-day { padding: 6px 0 0; }
.liturgy-day .date {
  font-family: var(--sans);
  font-size: 16px; font-weight: 600; color: var(--gold); line-height: 1;
  letter-spacing: .08em;
  display: flex; align-items: baseline; gap: 8px;
}
.liturgy-day .feast {
  font-size: 13.5px; color: var(--muted); margin: 6px 0 16px;
}
.liturgy-readings { display: flex; flex-direction: column; gap: 10px; }
.liturgy-readings a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 13px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.liturgy-readings a:hover { background: var(--gold-faint); transform: translateX(2px); }
.liturgy-readings a b { color: var(--navy); font-weight: 600; flex-shrink: 0; }
.liturgy-readings a span { color: var(--muted); font-size: 12px; text-align: right; }
.liturgy-readings a.liturgy-radio-link { justify-content: flex-start; gap: 10px; }
.liturgy-radio-link .ql-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* popular posts widget */
.popular-list { display: flex; flex-direction: column; gap: 16px; }
.popular-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}
.popular-item--text { grid-template-columns: 1fr; }
.popular-item .img-wrap {
  width: 64px; height: 64px; border-radius: 6px; overflow: hidden;
}
.popular-item .img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease);
}
.popular-item:hover .img { transform: scale(1.12); }
.popular-item .num {
  font-family: var(--serif); color: var(--gold-soft);
  font-size: 24px; font-weight: 500; line-height: 1; margin-bottom: 4px;
}
.popular-item h5 { font-family: var(--headline); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--compact-link-color, var(--navy)); margin: 0; transition: color .2s var(--ease); }
.popular-item:hover h5 { color: var(--red); }
.popular-item .date { font-size: 11px; color: var(--muted-2); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }

/* quick links widget */
.sidebar-quick-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-quick-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.sidebar-quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-quick-list a {
  color: var(--quick-link-color, var(--navy));
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.sidebar-quick-list a:hover { color: var(--red); }

/* recommended sites widget */
.recommended-sites-section { padding: 56px 0; }
.recommended-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recommended-sites-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.recommended-site-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}
.recommended-site-logo {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.recommended-site-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.recommended-site-logo span {
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}
.recommended-site-title {
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  transition: color .2s var(--ease);
}
.recommended-site-card:hover .recommended-site-logo {
  border-color: rgba(191, 143, 57, .42);
  box-shadow: 0 10px 26px rgba(11, 29, 58, .08);
  transform: translateY(-1px);
}
.recommended-site-card:hover .recommended-site-title { color: var(--red); }
.recommended-site-card--footer {
  color: #fff;
  gap: 10px;
}
.recommended-site-card--footer .recommended-site-logo {
  height: 78px;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  padding: 14px;
}
.recommended-site-card--footer .recommended-site-title {
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 600;
}
.recommended-site-card--footer:hover .recommended-site-logo {
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}
.recommended-site-card--footer:hover .recommended-site-title { color: #fff; }

/* recent albums widget */
.sidebar-album-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-album-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.sidebar-album-item--text { grid-template-columns: 1fr; }
.sidebar-album-cover {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background-color: var(--bg);
  background-position: center;
  background-size: cover;
}
.sidebar-album-item strong {
  display: block;
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.3;
  transition: color .2s var(--ease);
}
.sidebar-album-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sidebar-album-item:hover strong { color: var(--red); }

/* events widget */
.evw-list { display: flex; flex-direction: column; gap: 14px; }
.evw-item { display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
.evw-date {
  background: var(--bg); border-radius: 6px;
  padding: 8px 4px; text-align: center;
  border: 1px solid var(--line);
}
.evw-date .d { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1; }
.evw-date .m { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.evw-info h6 { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0 0 4px; }
.evw-info span { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.evw-info svg { width: 11px; height: 11px; }

/* tags widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  font-size: 12px; padding: 6px 11px; border-radius: 999px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  transition: all .2s var(--ease);
}
.tag-cloud a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* related articles row */
.related {
  padding: 56px 0 80px;
  background: var(--bg);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.related--article .related-grid {
  grid-template-columns: repeat(5, 1fr);
}
.related-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.related-card .img-wrap { aspect-ratio: 16 / 10; overflow: hidden; }
.related-card .img-wrap .img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease);
}
.related-card:hover .img-wrap .img { transform: scale(1.08); }
.article-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4f4f2 0%, #e5e5e1 100%);
  color: #777d87;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.article-image-placeholder span {
  max-width: 100%;
  padding: 0 10px;
}
.news-feature .article-image-placeholder {
  font-size: 12px;
  letter-spacing: .18em;
}
.news-feature:hover .img-wrap .article-image-placeholder,
.news-item:hover .img-wrap .article-image-placeholder,
.related-card:hover .img-wrap .article-image-placeholder,
.news-overlay-card:hover .article-image-placeholder {
  transform: none;
}
.news-overlay-card .article-image-placeholder {
  background: linear-gradient(135deg, #eeeeeb 0%, #dededa 100%);
}
.news-overlay-card--placeholder .overlay {
  background: linear-gradient(to top, rgba(16,22,31,.82) 0%, rgba(16,22,31,.18) 46%, rgba(16,22,31,0) 78%);
}
.related-card .body { padding: 18px 22px 22px; }
.related-card .tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.related-card h4 { font-family: var(--headline); font-size: 20px; font-weight: 600; color: var(--navy); margin: 8px 0 10px; line-height: 1.2; }
.related--article .related-card h4 { font-size: 17px; }
.related--article .related-card .body { padding: 16px 16px 18px; }
.related-card .date { font-size: 11.5px; color: var(--muted-2); letter-spacing: .14em; text-transform: uppercase; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1180px) {
  .nav > a,
  .nav-link { padding: 10px 8px; font-size: 11px; letter-spacing: .08em; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .news-shell { grid-template-columns: 1fr; gap: 40px; }
  .news-wrap { grid-template-columns: 1fr; }
  .news-aspect-1 { grid-template-columns: 1fr; gap: 24px; }
  .news-aspect-2-grid { grid-template-columns: repeat(2, 1fr); }
  .news-overlay-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .priests-layout .category-main,
  .priests-layout .priest-filters-sidebar { grid-column: auto; grid-row: auto; }
  .newsletter-subscribe-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .related--article .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .homepage-cards__list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 1px 7px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .homepage-card {
    flex: 0 0 188px;
    scroll-snap-align: start;
  }
  .recommended-sites-footer-layout { grid-template-columns: 1fr; align-items: start; }
  .recommended-sites-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newsletter .container { grid-template-columns: 1fr; text-align: center; }
  .newsletter input { width: 100%; }
  .newsletter-ic { margin: 0 auto; }
}
/* Mobile menu drop */
.nav.open {
  display: flex;
  position: fixed;
  top: var(--mobile-nav-top, 76px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 65;
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 12px 0 calc(120px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 14px 32px rgba(11,29,58,.12);
  border-top: 1px solid var(--line-soft);
}
.nav.open .nav-item {
  width: 100%;
}
.nav.open > a,
.nav.open .nav-link {
  padding: 14px 24px;
  border-radius: 0;
}
.nav.open > a::before,
.nav.open .nav-link::before { display: none; }
.nav.open > a:hover,
.nav.open .nav-link:hover { background: var(--bg); }
.nav.open .nav-dropdown {
  position: static;
  width: auto;
  padding: 0 18px 8px 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}
.nav.open .nav-dropdown::before {
  display: none;
}
.nav.open .has-dropdown::after {
  display: none;
}
.nav.open .nav-dropdown a {
  min-height: 34px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}
.nav.open .nav-dropdown a:hover {
  background: var(--gold-faint);
  color: var(--red);
}

/* Stack the liturgic panel once the hero no longer has enough room for two columns. */
@media (max-width: 900px) {
  /* The bar gets tight here; the same links stay available in the footer. */
  .announce-social { display: none; }
  .hero {
    min-height: 0;
  }
  .hero__layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 28px;
  }
  .hero-litcal {
    width: 100%;
    min-height: 0;
    justify-self: stretch;
    background: rgba(11, 29, 58, .58);
  }
  .hero-scroll { display: none; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .glightbox-container .gslide-media {
    max-width: calc(100vw - 32px) !important;
    margin-inline: auto !important;
  }
  .glightbox-container .gslide-image img {
    max-width: calc(100vw - 32px) !important;
  }
  .announce { display: none; }
  .header-inner { height: 76px; gap: 10px; justify-content: flex-start; }
  .site-header.scrolled .header-inner { height: 60px; }
  .cta-fm { margin-left: auto; padding: 10px 12px; font-size: 10px; letter-spacing: .08em; }
  .cta-fm__search { gap: 6px; }
  .cta-fm__label { display: inline; }
  .menu-toggle { flex: 0 0 42px; }
  .site-header .brand { width: clamp(148px, 43vw, 180px); }
  .site-header.scrolled .brand { width: clamp(128px, 38vw, 142px); }
  .brand-sub { display: none; }
  .hero__layout {
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .hero-title {
    font-size: clamp(38px, 10vw, 44px);
    margin-bottom: 16px;
  }
  .hero-sub { font-size: 15px; }
  .hero-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 420px;
  }
  .hero-ctas .btn {
    justify-content: center;
    min-width: 0;
    padding: 14px 10px;
    font-size: 11px;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  .hero-ctas .btn svg {
    width: 13px;
    height: 13px;
    flex: none;
  }
  .hero-litcal {
    padding: 16px;
    gap: 6px;
    background: rgba(11, 29, 58, .72);
    border-radius: 12px;
  }
  .hero-litcal__date { font-size: 10px; }
  .hero-litcal__feast {
    font-size: 18px;
    line-height: 1.2;
  }
  .hero-litcal__themes {
    gap: 4px;
    padding-top: 8px;
  }
  .hero-litcal__themes li {
    font-size: 12px;
  }
  .hero-litcal__links {
    gap: 5px 12px;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 10px;
  }
  .hero-litcal__resources {
    gap: 5px;
    margin-top: 6px;
  }
  .hero-litcal__resource {
    font-size: 11px;
    line-height: 1.35;
  }
  .homepage-cards { padding: 10px 0 5px; }
  .homepage-card {
    flex-basis: 176px;
    padding: 6px 11px;
  }
  .homepage-card .ql-icon {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }
  .homepage-card__title { font-size: 12.5px; }
  .section { padding: 38px 0; }
  .latest-albums-section { padding-bottom: 24px; }
  .latest-albums-section + .article-showcase-section { padding-top: 24px; }
  .hero + .article-showcase-section { padding-top: 28px; }
  .homepage-cards + .article-showcase-section { padding-top: 28px; }
  .article-showcase-section + .article-showcase-section { padding-top: 8px; }
  .article-showcase-section + .parish-finder-section { margin-top: -14px; }
  .section-head { margin-bottom: 20px; }
  .gospel .container { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
  .gospel-ic { grid-column: 1; grid-row: auto; margin: 0 auto; }
  .gospel-head { grid-column: 1; grid-row: auto; flex-direction: column; justify-content: center; gap: 14px; }
  .gospel-head .btn { justify-content: center; }
  .gospel--full .gospel-head { text-align: center; }
  .gospel-text,
  .gospel-quote,
  .gospel-ref { grid-column: 1; }
  .gospel--full .gospel-text { text-align: left; }
  .gospel-quote { font-size: 19px; }
  .gospel::after { display: none; }
  .events-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .related--article .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    line-height: 1.5;
  }
  .footer-bottom-links {
    width: 100%;
    justify-content: center;
    gap: 10px 16px;
  }
  .footer-bottom-links a,
  .footer-bottom-links button { line-height: 1.35; }
  .footer-credit {
    flex: 0 0 100%;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .recommended-sites-footer { padding: 42px 0 28px; }
  .recommended-sites-footer-layout { gap: 30px; }
  .recommended-sites-footer-intro { grid-template-columns: 1fr; text-align: center; }
  .recommended-sites-footer-icon { margin: 0 auto; }
  .recommended-sites-footer h2 { font-size: 28px; }
  .recommended-sites-footer p { margin-left: auto; margin-right: auto; }
  .recommended-sites-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .news-item { grid-template-columns: 80px 1fr; }
  .news-item .img-wrap { width: 80px; height: 80px; }
  .news-aspect-2-grid { grid-template-columns: 1fr; }
  .news-overlay-grid { grid-template-columns: 1fr; }
  .news-overlay-card { aspect-ratio: 16 / 10; }
  /* Parish card: larger thumbnail; meta drops to a full-width row below the image/body on mobile */
  .news-item.parish-item { grid-template-columns: 128px 1fr; }
  .news-item.parish-item .img-wrap { width: 128px; height: 128px; }
  .parish-meta {
    grid-column: 1 / -1;
    padding-left: 0; margin-top: 4px; padding-top: 10px;
    border-left: 0; border-top: 1px solid var(--line-soft);
    flex-direction: row; flex-wrap: wrap; gap: 10px 22px;
  }
  .media-row { grid-template-columns: 1fr; }
  .article-body { font-size: 16.5px; }
  .article-body--mobile-wide-images .content-widget--image {
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
  .article-body--mobile-wide-images .content-widget--image > img,
  .article-body--mobile-wide-images .content-widget--image > a.gl-article-image > img,
  .article-body--mobile-wide-images .content-widget--image > a.image-widget-external-link > img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }
  .article-body--mobile-wide-images .content-widget--image .image-widget-caption {
    padding-inline: 16px;
  }
  .article-body .diocese-subnav { grid-template-columns: 1fr; }
  .article-body .diocese-pastor-list { grid-template-columns: 1fr; }
  .article-body .diocese-intro-image,
  .article-body .diocese-pastor-portrait {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 22px;
  }
  .diocese-statistics { padding-right: 18px; padding-left: 18px; }
  .diocese-map { min-height: 520px; aspect-ratio: 4 / 5; }
  .article-title { font-size: 32px; }
  .article-meta { flex-wrap: wrap; gap: 12px 20px; }
  .article-meta .article-share { margin-left: 0; width: 100%; }
}

/* ============================================================
   Liturgical calendar
   ============================================================ */
.litcal { min-width: 0; }
.litcal-folk { color: var(--gold); font-weight: 500; }

/* Month / year navigation */
.litcal-nav {
  margin: 0 0 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.litcal-nav__year-switch {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.litcal-nav__year { color: var(--muted); text-decoration: none; }
.litcal-nav__year.is-active { color: var(--navy); font-weight: 700; font-size: 18px; }
.litcal-nav__year-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  color: var(--navy-soft);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.litcal-nav__year-btn:hover { border-color: var(--gold-soft); color: var(--red-dark); }

/* Year picker modal */
.year-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.year-modal[hidden] { display: none; }
.year-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 38, .55);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.year-modal.is-open .year-modal__backdrop { opacity: 1; }
.year-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(18, 24, 38, .35);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.year-modal.is-open .year-modal__panel { opacity: 1; transform: none; }
.year-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.year-modal__title { margin: 0; font-size: 18px; color: var(--navy); }
.year-modal__close {
  appearance: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.year-modal__close:hover { color: var(--red-dark); }
.year-modal__grid {
  list-style: none;
  margin: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.year-modal__year {
  display: block;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 13.5px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.year-modal__year:hover { border-color: var(--gold-soft); color: var(--red-dark); }
.year-modal__year.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 480px) {
  .year-modal__grid { grid-template-columns: repeat(3, 1fr); }
}
.litcal-nav__months {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.litcal-nav__month {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 12.5px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.litcal-nav__month:hover { border-color: var(--gold-soft); color: var(--red-dark); }
.litcal-nav__month.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}

/* Day list */
.litcal-days { list-style: none; margin: 0; padding: 0; }
.litcal-day { border-bottom: 1px solid var(--line-soft); }
.litcal-day__link {
  display: grid;
  grid-template-columns: 32px 34px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .15s var(--ease);
}
.litcal-day__link:hover { background: var(--cream); }
.litcal-day__num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  /* Right-aligned so the gap to the (centered) weekday letter matches the gap
     from the weekday letter to the content — the column gap is uniform 14px. */
  text-align: right;
  /* The serif face sits ~2px lower in its line box than the sans weekday /
     content; pull it up so all three top-align. */
  margin-top: -2px;
}
.litcal-day__dow {
  padding-top: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}
.litcal-day__body { min-width: 0; }
.litcal-day__feast { display: block; font-weight: 600; margin-bottom: 2px; }
.litcal-day__saint { display: block; color: var(--ink); }
.litcal-day__readings { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.litcal-day__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.litcal-day.is-sunday .litcal-day__num,
.litcal-day.is-feast .litcal-day__num { color: var(--red); }

/* Sunday / feast emphasis */
.litcal-day.is-feast { background: linear-gradient(to right, var(--gold-faint), transparent 60%); }

/* Lunar phase marker */
.litcal-moon {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Liturgical colour swatch */
.litcal-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(11, 29, 58, .25);
  vertical-align: middle;
}
.litcal-color--alb    { background: #ffffff; }
.litcal-color--rosu   { background: #c0282e; }
.litcal-color--verde  { background: #2f8f4e; }
.litcal-color--violet { background: #7a4f9e; }
.litcal-color--roz    { background: #e6a6c0; }
.litcal-color--negru  { background: #2b2b2b; }

.litcal-empty { color: var(--muted); padding: 24px 0; }

/* Abbreviations / signs legend */
.litcal-legend {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.litcal-legend p { margin: 0 0 10px; }
.litcal-legend strong { color: var(--navy); }

/* Day detail */
.litcal-detail__date { font-size: 14px; color: var(--muted); margin-bottom: 6px; text-transform: capitalize; }
.litcal-detail__heading { margin: 0 0 6px; }
.litcal-detail__saint { margin-top: 0; }
.litcal-detail__tags { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.litcal-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--navy-soft);
}
.litcal-detail__readings {
  padding: 12px 16px;
  background: var(--cream);
  border-left: 3px solid var(--gold-soft);
  border-radius: var(--radius-sm);
}
.litcal-detail__indications { color: var(--muted); font-style: italic; }
.litcal-section { margin-top: 32px; }
.litcal-section__title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

/* Previous / next day navigation */
.litcal-daynav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.litcal-daynav__link {
  color: var(--red-dark);
  text-decoration: none;
  font-weight: 600;
}
.litcal-daynav__link:hover { text-decoration: underline; }
.litcal-daynav__link.is-disabled { color: var(--muted); font-weight: 400; pointer-events: none; }
.litcal-daynav__back { color: var(--navy); }

@media (max-width: 700px) {
  .litcal-day__link { grid-template-columns: 28px 26px 1fr; column-gap: 12px; }
  .litcal-day__meta { grid-column: 3; margin-top: 6px; }
  .litcal-daynav { flex-direction: column; align-items: flex-start; }
}

/* Cross-link tag (calendar ↔ agenda) */
.litcal-tag--link {
  color: var(--red-dark);
  text-decoration: none;
  font-weight: 600;
}
.litcal-tag--link:hover { text-decoration: underline; }

/* ============================================================
   Agenda Liturgică
   ============================================================ */
.agenda-date { font-size: 14px; color: var(--muted); margin-bottom: 6px; text-transform: capitalize; }
.agenda-heading { margin: 0 0 6px; }
.agenda-saint { margin-top: 0; }

/* Liturgical info bar */
.agenda-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--cream);
  border-left: 3px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.agenda-info__item { display: inline-flex; align-items: center; gap: 7px; color: var(--navy-soft); }
.agenda-indications { color: var(--muted); font-style: italic; margin: 0 0 12px; }

/* Antiphons / verses */
.agenda-antiphons {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.agenda-antiphons__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.agenda-antiphons__body { font-style: italic; color: var(--ink-2, var(--ink)); line-height: 1.7; }

/* Commentary intro */
.agenda-capsule {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}

/* Focus sections */
.agenda-section { margin-top: 34px; }
.agenda-section__title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-faint);
}
.agenda-saints { font-size: 18px; }

/* Sidebar */
.agenda-months { display: flex; flex-direction: column; gap: 2px; }
.agenda-month {
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 14px;
}
.agenda-month:hover { background: var(--cream); color: var(--red-dark); }
.agenda-month.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.agenda-month.is-disabled { color: var(--line); pointer-events: none; }

/* "Go to today" call to action — sits below the month picker */
.agenda-today-btn {
  display: block;
  margin-top: 14px;
  padding: 13px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.agenda-today-btn:hover { background: var(--navy-deep); }

/* Mini-calendar */
.mini-cal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 24px;
}
.mini-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--gold-faint);
  border-bottom: 1px solid var(--line);
}
.mini-cal__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
/* Month arrows styled as buttons so they read as clickable */
.mini-cal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.mini-cal__nav:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.mini-cal__nav.is-disabled { opacity: .35; background: transparent; box-shadow: none; pointer-events: none; }
.mini-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.mini-cal__dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-soft);
}
.mini-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 10px 12px;
  text-align: center;
}
.mini-cal__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--navy-soft);
  text-decoration: none;
}
a.mini-cal__cell:hover { background: var(--cream); color: var(--red-dark); }
.mini-cal__cell.is-red { color: var(--red); font-weight: 600; }
.mini-cal__cell.is-empty { color: var(--line); font-weight: 400; pointer-events: none; }
.mini-cal__cell.is-today { box-shadow: inset 0 0 0 1px var(--gold-soft); }
.mini-cal__cell.is-selected {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.mini-cal__cell.is-selected:hover { background: var(--navy); color: #fff; }

/* ============================================
   FRONTEND ADMIN TOOLBAR
   ============================================ */
.frontend-admin-toolbar {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: stretch;
  max-width: calc(100vw - 16px);
  font-family: var(--sans);
  transform: translateY(-50%);
  filter: drop-shadow(0 16px 30px rgba(11, 29, 58, .18));
}
.frontend-admin-toolbar[hidden] { display: none; }
.frontend-admin-toolbar__panel {
  width: min(330px, calc(100vw - 76px));
  padding: 20px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(184, 146, 75, .35);
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
.frontend-admin-toolbar__panel[hidden] { display: none; }
.frontend-admin-toolbar__eyebrow {
  margin-bottom: 5px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.frontend-admin-toolbar__title {
  overflow: hidden;
  color: var(--navy);
  font-family: var(--headline);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frontend-admin-toolbar__actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.frontend-admin-toolbar__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.frontend-admin-toolbar__action:hover {
  color: var(--red-dark);
  background: var(--gold-faint);
  border-color: var(--gold-soft);
}
.frontend-admin-toolbar__action.is-primary {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.frontend-admin-toolbar__action.is-primary:hover {
  color: #fff;
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}
.frontend-admin-toolbar__action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.frontend-admin-toolbar__toggle {
  display: grid;
  grid-template-rows: minmax(84px, 1fr) 34px;
  width: 58px;
  min-height: 118px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 12px 0 0 12px;
  font: inherit;
  transition: background-color .18s var(--ease), border-radius .18s var(--ease);
}
.frontend-admin-toolbar.is-open .frontend-admin-toolbar__toggle { border-radius: 0; }
.frontend-admin-toolbar__toggle:hover { background: var(--navy-soft); }
.frontend-admin-toolbar__toggle:focus-visible,
.frontend-admin-toolbar__action:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 2px;
}
.frontend-admin-toolbar__toggle-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 0;
  padding: 12px 6px 10px;
}
.frontend-admin-toolbar__toggle-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(214, 185, 122, .42);
  border-radius: 50%;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.frontend-admin-toolbar__toggle:hover .frontend-admin-toolbar__toggle-icon {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(214, 185, 122, .72);
  transform: translateY(-1px);
}
.frontend-admin-toolbar__toggle-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.frontend-admin-toolbar__toggle-direction {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 34px;
  background: rgba(255, 255, 255, .035);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.frontend-admin-toolbar__edit-icon,
.frontend-admin-toolbar__chevron {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.frontend-admin-toolbar__chevron {
  width: 15px;
  height: 15px;
  transition: transform .18s var(--ease);
}
.frontend-admin-toolbar.is-open .frontend-admin-toolbar__chevron { transform: rotate(180deg); }

@media (max-width: 480px) {
  .frontend-admin-toolbar { top: auto; bottom: 22px; transform: none; }
  .frontend-admin-toolbar__panel { padding: 16px; }
  .frontend-admin-toolbar__toggle {
    grid-template-rows: minmax(74px, 1fr) 30px;
    width: 52px;
    min-height: 104px;
  }
  .frontend-admin-toolbar__toggle-icon { width: 32px; height: 32px; }
  .frontend-admin-toolbar__toggle-direction { min-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .frontend-admin-toolbar__toggle,
  .frontend-admin-toolbar__action,
  .frontend-admin-toolbar__toggle-icon,
  .frontend-admin-toolbar__chevron { transition: none; }
}

.media-folder-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 3), minmax(0, 1fr));
  gap: 14px;
}
.media-folder-gallery-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}
.media-folder-gallery-image--square { aspect-ratio: 1 / 1; }
.media-folder-gallery-image--landscape { aspect-ratio: 4 / 3; }
.media-folder-gallery-image--original { object-fit: contain; }

.content-widget-button-row {
  display: grid;
  grid-template-columns: repeat(var(--button-columns, 1), minmax(0, 1fr));
  gap: var(--button-gap, 12px);
}

.content-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(var(--quick-links-columns, 3), minmax(0, 1fr));
  gap: 12px;
}
.article-body .content-widget--quick-links { margin-bottom: 32px; }
.article-body .content-widget--quick-links .section-head { margin-bottom: 4px; }
.article-body .content-widget--quick-links .section-title { margin: 0; }
.content-quick-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--navy);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.content-quick-link .ql-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.content-quick-link .ql-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.content-quick-link .ql-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.content-widget--quick-links-list .content-quick-links-grid { display: block; }
.content-widget--quick-links-list .content-quick-link {
  padding: 12px 4px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.article-body .content-reference-card {
  clear: both;
  display: grid;
  grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
  margin: 28px 0 36px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(11, 29, 58, .07);
  transition: box-shadow .2s var(--ease);
}
.article-body a.content-widget.content-reference-card,
.article-body a.content-widget.content-reference-card:hover {
  color: var(--ink);
  text-decoration: none;
  text-decoration-color: transparent;
  transition: box-shadow .2s var(--ease);
}
.article-body .content-reference-card:hover {
  box-shadow: 0 14px 32px rgba(11, 29, 58, .11);
}
.article-body .content-reference-card--card,
.article-body .content-reference-card--without-image { display: block; }
.article-body .content-reference-card--compact { grid-template-columns: 112px minmax(0, 1fr); }
.content-reference-card__image {
  display: block;
  min-height: 190px;
  overflow: hidden;
  background: var(--paper);
}
.content-reference-card--card .content-reference-card__image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 7;
}
.content-reference-card--compact .content-reference-card__image {
  min-height: 112px;
  margin: 14px 0 14px 14px;
  border-radius: var(--radius-sm);
}
.content-reference-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.content-reference-card:hover .content-reference-card__image img { transform: scale(1.025); }
.content-reference-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
}
.content-reference-card--compact .content-reference-card__body { padding: 18px 22px; }
.content-reference-card__eyebrow {
  color: var(--red);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.content-reference-card--album .content-reference-card__eyebrow { color: #9a7220; }
.article-body .content-reference-card__title {
  display: block;
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.18;
}
.article-body .content-reference-card--album .content-reference-card__title { margin-top: 7px; }
.article-body .content-reference-card--compact .content-reference-card__title { font-size: 20px; }
.article-body .content-reference-card__description {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.article-body .content-reference-card--compact .content-reference-card__description { -webkit-line-clamp: 2; }
.content-reference-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.content-reference-card__meta > span + span { position: relative; }
.content-reference-card__meta > span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  background: var(--muted-2);
  border-radius: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .pdf-embed-widget__viewer { height: min(var(--pdf-embed-height, 600px), 70vh); }
  .article-body a.pdf-embed-widget__download { justify-content: center; }
  .media-folder-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-widget-button-row { grid-template-columns: 1fr; }
  .content-quick-links-grid { grid-template-columns: 1fr; }
  .article-body .content-reference-card--horizontal { display: block; }
  .article-body .content-reference-card--compact { grid-template-columns: 90px minmax(0, 1fr); }
  .content-reference-card--horizontal .content-reference-card__image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 8;
  }
  .content-reference-card--compact .content-reference-card__image {
    min-height: 90px;
    margin: 12px 0 12px 12px;
  }
  .content-reference-card__body { padding: 20px; }
  .content-reference-card--compact .content-reference-card__body { padding: 14px 16px; }
}
