/* ==========================================================================
   HITVALLÁSOS EVANGÉLIKUS MISSZIÓ - BLACK GLASS (iPHONE UI GLASSMORPHISM)
   Background: Adoration of the Mystic Lamb (Ghent Altarpiece by Van Eyck)
   Ultra-High-DPI Optimized & Deep Frosted Obsidian Glass Surfaces
   ========================================================================== */

:root {
  /* Obsidian & Frosted Glass Surfaces */
  --glass-bg-primary: rgba(14, 14, 18, 0.74);
  --glass-bg-secondary: rgba(20, 20, 26, 0.78);
  --glass-bg-hover: rgba(30, 30, 38, 0.85);
  --glass-bg-elevated: rgba(10, 10, 14, 0.86);
  --glass-bg-nested: rgba(8, 8, 12, 0.58);
  --glass-bg-nested-hover: rgba(22, 22, 28, 0.75);
  --summary-bg: #08080c;

  /* iPhone-style specular borders & edge highlights */
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-hover: rgba(255, 255, 255, 0.28);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-specular-top: inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 16px 42px 0 rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  --glass-shadow-hover: 0 20px 54px 0 rgba(0, 0, 0, 0.78), inset 0 1px 0 0 rgba(255, 255, 255, 0.32);

  /* High Contrast Typography */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-gold: var(--gold-primary);

  /* Liturgical Crimson */
  --crimson-primary: #ef4444;
  --crimson-hover: #dc2626;
  --crimson-bright: #f87171;
  --crimson-subtle: rgba(239, 68, 68, 0.18);
  --crimson-border: rgba(239, 68, 68, 0.42);

  /* Celestial Gold */
  --highlight-color: #e6c36a;
  --luther-rose-color: #e6c36a;
  --symbolic-icon-color: #e6c36a;
  --symbolic-icon-surface: color-mix(in srgb, var(--symbolic-icon-color) 10%, transparent);
  --symbolic-icon-border: color-mix(in srgb, var(--symbolic-icon-color) 30%, transparent);
  --lamb-plaque-accent: #e6c36a;
  --liturgical-badge-border: var(--highlight-color);
  --gold-primary: var(--highlight-color);
  --gold-warm: var(--highlight-color);
  --gold-deep: var(--highlight-color);
  --gold-subtle: color-mix(in srgb, var(--highlight-color) 16%, transparent);
  --gold-border: color-mix(in srgb, var(--highlight-color) 40%, transparent);
  --gold-on-primary: #17130a;
  --gold-button-ink: var(--gold-on-primary);
  --ui-control-radius: 15px;
  --ui-control-inner-radius: 12px;
  --ui-control-border: 1px solid rgba(255, 255, 255, 0.48);
  --ui-control-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.22);
  --ui-control-pressed: inset 0 2px 5px rgba(0, 0, 0, 0.28);
  --gold-button-bevel: var(--ui-control-bevel);

  /* Badge glyph safe area: dock baseline is 22px inside 48px (27% inset). */
  --badge-glyph-scale: 0.5;
  --badge-glyph-inset: 25%;

  /* Fonts */
  --font-serif: 'Lora', 'Spectral', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Soft Rounded Radiuses */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --next-service-widget-height: 7.5rem;
}

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

html {
  scroll-behavior: auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html.is-fast-home-scroll {
  scroll-behavior: auto;
}

body {
  background-color: #060609;
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.75;
  font-size: 1.125rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* ==========================================================================
   Full-Page High-Res Ghent Altarpiece Background Canvas & Lighting Effects
   ========================================================================== */

.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-color: #060609;
  background-image: url('../assets/images/ghent-altarpiece-5k.jpg');
  background-image: -webkit-image-set(
    url('../assets/images/ghent-altarpiece-5k.webp') 1x,
    url('../assets/images/ghent-altarpiece-5k.jpg') 1x
  );
  background-image: image-set(
    url('../assets/images/ghent-altarpiece-5k.webp') type('image/webp'),
    url('../assets/images/ghent-altarpiece-5k.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Atmospheric depth vignette overlay */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 50% 30%, rgba(8, 9, 14, 0.18) 0%, rgba(6, 7, 12, 0.55) 55%, rgba(4, 4, 7, 0.88) 100%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.3) 0%, rgba(6, 6, 10, 0.6) 50%, rgba(3, 3, 6, 0.92) 100%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:where(html.can-hover *):hover {
  color: #ffffff;
  text-decoration-color: var(--gold-primary);
}

/* Pointer presses should not leave browser focus/tap artifacts behind. */
:where(a, button, summary, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:where(a, button, summary, [role="button"]):focus:not(:focus-visible) {
  outline: none;
}

:where(a, button, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   Header Controls: Theme & Language Switchers (Thicker Rounded Rectangular Glass)
   ========================================================================== */

.header-controls-wrap {
  position: fixed;
  top: clamp(1.25rem, 2vw, 2.5rem);
  right: clamp(1rem, 2vw, 2.5rem);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: top 0.25s ease, right 0.25s ease;
}

.mobile-settings-toggle {
  display: none;
}

.mobile-function-dock {
  display: none;
}

.desktop-back-to-top { display: none; }

.desktop-apps-card { display: none; }

[data-theme="light"] .mobile-app-link:is(.is-disabled, .is-language-disabled) {
  color: #78716c;
  background: rgba(120, 113, 108, 0.08);
  border-color: rgba(120, 113, 108, 0.18);
}

.mobile-apps-menu {
  display: none;
}

.desktop-quick-links-toggle {
  display: none;
}

.settings-menu-heading {
  display: none;
}

.theme-switch,
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(10, 10, 14, 0.88);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--ui-control-radius);
  padding: 4px;
  box-shadow: var(--ui-control-bevel), 0 10px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  transition: background 0.3s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-switch:where(html.can-hover *):hover,
.lang-switch:where(html.can-hover *):hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--ui-control-bevel), 0 12px 36px rgba(0, 0, 0, 0.75);
}

.theme-slider,
.lang-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--gold-primary);
  border: var(--ui-control-border);
  border-radius: var(--ui-control-inner-radius);
  box-shadow: var(--ui-control-bevel);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

/* Brightness follows the active highlight explicitly in both themes. */
.theme-switch .theme-slider {
  background: var(--highlight-color);
}

.theme-switch[data-theme="dark"] .theme-slider {
  transform: translateX(100%);
}

.theme-switch[data-theme="light"] .theme-slider {
  transform: translateX(0);
}

.lang-switch[data-active="en"] .lang-slider {
  transform: translateX(100%);
}

.lang-switch[data-active="hu"] .lang-slider {
  transform: translateX(0);
}

.theme-btn,
.lang-btn {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-radius: var(--ui-control-inner-radius);
  transition: color 0.2s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:active,
.lang-btn:active {
  transform: translateY(2px);
}

.theme-btn {
  padding: 0.65rem 0.85rem;
}

.theme-btn svg {
  display: block;
  stroke: currentColor;
  transition: stroke 0.2s ease, transform 0.25s ease;
}

.theme-btn:where(html.can-hover *):hover {
  color: #ffffff;
}

.theme-btn:where(html.can-hover *):hover svg {
  transform: scale(1.1);
}

.lang-btn:where(html.can-hover *):hover {
  color: #ffffff;
}

.theme-btn.is-active,
.lang-btn.is-active {
  color: var(--gold-button-ink) !important;
  text-shadow: none;
}

.theme-btn.is-active svg {
  stroke: var(--gold-button-ink);
}

/* Light Mode Overrides for Theme & Language Switchers */
[data-theme="light"] .theme-switch,
[data-theme="light"] .lang-switch {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--glass-border);
  box-shadow: var(--ui-control-bevel), 0 8px 24px rgba(60, 45, 20, 0.12);
}

[data-theme="light"] .theme-switch:where(html.can-hover *):hover,
[data-theme="light"] .lang-switch:where(html.can-hover *):hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--ui-control-bevel), 0 10px 28px rgba(60, 45, 20, 0.18);
}

[data-theme="light"] .theme-btn,
[data-theme="light"] .lang-btn {
  color: #78716c;
}

[data-theme="light"] .theme-btn:where(html.can-hover *):hover,
[data-theme="light"] .lang-btn:where(html.can-hover *):hover {
  color: #1c1917;
}

[data-theme="light"] .theme-btn.is-active,
[data-theme="light"] .lang-btn.is-active {
  color: var(--gold-button-ink) !important;
}

/* Floating mobile settings action and popover. */
@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  #view-content {
    -webkit-user-select: none;
    user-select: none;
  }

  #view-content :is(input, textarea, select, [contenteditable="true"]) {
    -webkit-user-select: text;
    user-select: text;
  }

  .desktop-apps-card {
    padding: 1.15rem 1rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius-sm);
  }

  .site-header {
    position: relative;
    padding: 0.75rem 0 0;
    width: 100%;
  }

  .header-card {
    justify-content: flex-start;
  }

  .longform-logo {
    min-width: 0;
  }

  .mobile-function-dock {
    position: fixed;
    left: 50%;
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem));
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem;
    transform: translate3d(-50%, 0, 0);
    background: linear-gradient(145deg, rgba(30, 30, 38, 0.62), rgba(8, 8, 12, 0.46));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), 0 14px 38px rgba(0, 0, 0, 0.62);
    transition: opacity 0.28s ease, visibility 0s linear 0s;
    will-change: transform;
    contain: layout style;
  }

  @supports (-moz-appearance: none) {
    .mobile-function-dock {
      bottom: 0.85rem !important;
      transform: translate3d(-50%, 0, 0) !important;
      transition: opacity 0.28s ease, visibility 0s linear 0s !important;
    }
  }

  .site-header.is-true-floating .header-card {
    background: linear-gradient(145deg, rgba(30, 30, 38, 0.62), rgba(8, 8, 12, 0.46));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 38px rgba(0, 0, 0, 0.62);
  }

  .mobile-dock-btn {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid color-mix(in srgb, var(--highlight-color) 22%, transparent);
    border-radius: var(--ui-control-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: color 0.2s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  }

  .mobile-dock-return {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--gold-on-primary);
    background: var(--gold-primary);
    border: 2px solid rgba(10, 10, 14, 0.92);
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.45);
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-dock-btn .mobile-dock-return svg { width: 11px; height: 11px; }

  .mobile-dock-btn:is(.mobile-events-toggle, .mobile-posts-toggle)[aria-expanded="true"] .mobile-dock-return {
    opacity: 1;
    transform: scale(1);
  }

  [data-theme="light"] .mobile-dock-return { border-color: rgba(255, 255, 255, 0.96); }

  .mobile-dock-btn svg {
    width: 22px;
    height: 22px;
  }

  .mobile-dock-btn:disabled {
    cursor: default;
    opacity: 0.52;
  }

  .mobile-dock-btn:not(:disabled) {
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border: var(--ui-control-border);
    box-shadow: var(--ui-control-bevel);
  }

  .mobile-settings-toggle {
    display: inline-flex;
    width: 64px;
  }

  .mobile-apps-toggle {
    width: 64px;
  }

  .mobile-home-toggle {
    --home-pressed-color: var(--gold-primary);
    --home-pressed-bg: rgba(10, 10, 14, 0.9);
    --home-pressed-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.52), 0 1px 4px color-mix(in srgb, var(--highlight-color) 16%, transparent);
    display: inline-flex;
    width: 48px;
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: var(--gold-button-bevel);
  }

  .mobile-home-toggle.is-home-activated {
    animation: home-button-activate 0.3s ease-out;
  }

  @keyframes home-button-activate {
    0% { transform: translateY(0) scale(1); }
    28% { color: var(--home-pressed-color); background: var(--home-pressed-bg); border-color: var(--gold-primary); transform: translateY(2px) scale(0.95); box-shadow: var(--home-pressed-shadow); }
    68% { color: var(--gold-button-ink); background: var(--gold-primary); transform: translateY(-1px) scale(1.025); box-shadow: var(--gold-button-bevel); }
    100% { transform: translateY(0) scale(1); }
  }

  .mobile-home-toggle:active {
    color: var(--home-pressed-color);
    background: var(--home-pressed-bg);
    border-color: var(--gold-primary);
    transform: translateY(2px) scale(0.95);
    box-shadow: var(--home-pressed-shadow);
  }

  [data-theme="light"] .mobile-home-toggle {
    --home-pressed-color: var(--highlight-color);
    --home-pressed-bg: rgba(255, 255, 255, 0.92);
    --home-pressed-shadow: inset 0 3px 7px rgba(90, 65, 18, 0.16), 0 1px 4px rgba(60, 45, 20, 0.12);
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-home-toggle.is-home-activated { animation: none; }
  }

  .mobile-apps-toggle:not(:disabled):where(html.can-hover *):hover,
  .mobile-apps-toggle:focus-visible,
  .mobile-apps-toggle[aria-expanded="true"] {
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border-color: rgba(255, 255, 255, 0.42);
    outline: none;
  }

  .mobile-apps-toggle[aria-expanded="true"] { transform: translateY(-2px); }

  .mobile-settings-toggle .settings-combined-icon {
    width: 42px;
    height: 22px;
  }

  .mobile-settings-toggle:where(html.can-hover *):hover,
  .mobile-settings-toggle:focus-visible,
  .mobile-settings-toggle[aria-expanded="true"] {
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border-color: rgba(255, 255, 255, 0.42);
    outline: none;
  }

  .mobile-settings-toggle[aria-expanded="true"] {
    transform: translateY(-2px);
  }

  .mobile-dock-btn:is(.mobile-events-toggle, .mobile-settings-toggle, .mobile-apps-toggle, .mobile-posts-toggle)[aria-expanded="true"] {
    color: var(--gold-primary);
    background: rgba(10, 10, 14, 0.9);
    border-color: var(--gold-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 2px color-mix(in srgb, var(--highlight-color) 20%, transparent), 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
  }

  [data-theme="light"] .mobile-dock-btn:is(.mobile-events-toggle, .mobile-settings-toggle, .mobile-apps-toggle, .mobile-posts-toggle)[aria-expanded="true"] {
    color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--gold-primary);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 2px color-mix(in srgb, var(--highlight-color) 14%, transparent), 0 7px 18px rgba(60, 45, 20, 0.2);
  }

  [data-theme="light"] .mobile-function-dock {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(244, 238, 226, 0.28));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border-color: color-mix(in srgb, var(--highlight-color) 28%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 32px rgba(60, 45, 20, 0.2), 0 0 0 1px color-mix(in srgb, var(--highlight-color) 6%, transparent);
  }

  [data-theme="light"] .site-header.is-true-floating .header-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 238, 226, 0.64));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border-color: color-mix(in srgb, var(--highlight-color) 28%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 32px rgba(60, 45, 20, 0.2), 0 0 0 1px color-mix(in srgb, var(--highlight-color) 6%, transparent);
  }

  [data-theme="light"] .mobile-dock-btn:disabled {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--highlight-color) 8%, transparent);
    border-color: color-mix(in srgb, var(--highlight-color) 20%, transparent);
  }

  .header-controls-wrap {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    left: 50%;
    bottom: calc(5.6rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    width: auto;
    max-width: calc(100vw - 2rem);
    z-index: 1199;
    padding: 0.55rem;
    background: linear-gradient(145deg, rgba(30, 30, 38, 0.62), rgba(8, 8, 12, 0.46));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border: 1px solid var(--glass-border);
    border-radius: 19px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px) scale(0.94);
    overflow: hidden;
    transform-origin: bottom center;
    transition: opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1), transform 0.32s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s linear 0.32s;
  }

  .settings-menu-heading {
    display: block;
    flex: 0 0 100%;
    margin: 0;
    padding: 0 0.35rem;
    color: var(--gold-primary);
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  [data-theme="light"] .header-controls-wrap {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(244, 238, 226, 0.26));
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
  }

  .header-controls-wrap .theme-switch,
  .header-controls-wrap .lang-switch {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  #view-content.controls-open .header-controls-wrap {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    overflow: visible;
    transition-delay: 0s;
  }

  .mobile-apps-menu {
    display: block;
    position: fixed;
    left: 50%;
    bottom: calc(5.6rem + env(safe-area-inset-bottom));
    z-index: 1199;
    width: min(20rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 7rem - env(safe-area-inset-bottom));
    padding: 0.6rem;
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(30, 30, 38, 0.62), rgba(8, 8, 12, 0.46));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border: 1px solid var(--glass-border);
    border-radius: 19px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px) scale(0.94);
    transform-origin: bottom center;
    transition: opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1), transform 0.32s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s linear 0.32s;
  }

  .mobile-apps-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
  }

  .mobile-apps-heading {
    margin: 0 0 0.4rem;
    padding: 0 0.35rem;
    color: var(--gold-primary);
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-apps-menu .apps-language-note {
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.7rem;
    gap: 0.5rem;
    border-radius: 12px;
  }

  .mobile-apps-menu .apps-language-note svg {
    width: 15px;
    height: 15px;
  }

  .mobile-apps-menu .apps-language-note p {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .mobile-app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .mobile-app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.38rem;
    min-width: 0;
    min-height: 94px;
    padding: 0.5rem 0.35rem 0.45rem;
    color: var(--text-primary);
    background: var(--glass-bg-nested);
    border: 1px solid color-mix(in srgb, var(--highlight-color) 10%, transparent);
    text-decoration: none;
    text-align: center;
    border-radius: 15px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .mobile-app-link[hidden] { display: none; }

  .mobile-app-link:is(.is-disabled, .is-language-disabled) {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    cursor: default;
    filter: grayscale(0.8);
    opacity: 0.48;
    pointer-events: none;
  }

  .mobile-app-link:where(html.can-hover *):hover,
  .mobile-app-link:focus-visible {
    background: color-mix(in srgb, var(--highlight-color) 13%, transparent);
    border-color: color-mix(in srgb, var(--highlight-color) 30%, transparent);
    transform: translateY(-1px);
  }

  .mobile-app-mark,
  .mobile-app-icon-wrap,
  .mobile-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
  }

  .mobile-app-icon-wrap {
    position: relative;
    overflow: visible;
  }

  .mobile-app-icon {
    object-fit: cover;
    border: 0;
    border-radius: inherit;
    box-shadow: none;
  }

  .mobile-app-mark {
    color: var(--gold-on-primary);
    background: var(--highlight-color);
    overflow: hidden;
  }

  .mobile-app-mark svg {
    width: 28px;
    height: 28px;
  }

  .mobile-app-mark-confessions svg {
    transform: translate(1px, 0);
  }

  .mobile-app-platform-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    padding: 3px;
    color: #fff;
    border: 2px solid #17171c;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.38);
  }

  .mobile-app-platform-badge svg {
    width: 100%;
    height: 100%;
  }

  .facebook-badge { background: #1877f2; }
  .substack-badge { background: #ff6719; border-radius: 6px; }

  [data-theme="light"] .mobile-app-platform-badge {
    border-color: #fff;
  }

  .mobile-app-link strong {
    display: block;
    max-width: 100%;
    font-family: 'Lora', serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  [data-theme="light"] .mobile-apps-menu {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(244, 238, 226, 0.26));
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
  }

  .site-footer {
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .header-controls-wrap {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Site Header (Floating Black Glass Card)
   ========================================================================== */

.site-header {
  padding: 2.5rem 0 0;
  text-align: left;
  width: 100%;
}

.header-card {
  position: relative;
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 2.15rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, -webkit-backdrop-filter 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header-card:where(html.can-hover *):hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

[data-theme="light"] .header-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 238, 226, 0.86));
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.site-header.is-true-floating .header-card {
  background: linear-gradient(145deg, rgba(30, 30, 38, 0.62), rgba(8, 8, 12, 0.46));
  -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
  backdrop-filter: blur(24px) saturate(185%) contrast(108%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 38px rgba(0, 0, 0, 0.62);
}

[data-theme="light"] .site-header.is-true-floating .header-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 238, 226, 0.64));
  -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
  backdrop-filter: blur(24px) saturate(185%) contrast(108%);
  border-color: color-mix(in srgb, var(--highlight-color) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 32px rgba(60, 45, 20, 0.2), 0 0 0 1px color-mix(in srgb, var(--highlight-color) 6%, transparent);
}

@media (min-width: 1180px) and (hover: hover) and (pointer: fine) {
  .container {
    max-width: min(740px, calc(100vw - 480px));
  }

  .desktop-apps-card {
    display: block;
    padding: 2.25rem 2.5rem;
    margin-bottom: 2.25rem;
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  }

  .desktop-apps-card:where(html.can-hover *):hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
  }

  .desktop-apps-header {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border-subtle);
  }

    .desktop-apps-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: var(--symbolic-icon-color);
    background: var(--symbolic-icon-surface);
    border: 1px solid var(--symbolic-icon-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  .desktop-apps-header-icon svg { width: 24px; height: 24px; }
  .desktop-apps-header-text h2 { margin: 0 0 0.15rem; color: #fff; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.01em; }
  .desktop-apps-header-text p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; font-style: italic; }

  .desktop-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 160px));
    justify-content: center;
    gap: 0.85rem;
  }

  .desktop-apps-card .mobile-app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    min-width: 0;
    min-height: 112px;
    padding: 0.8rem 0.55rem 0.65rem;
    color: var(--text-main);
    background: var(--glass-bg-nested);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }

  .desktop-apps-card .mobile-app-link[hidden] { display: none; }

  .desktop-apps-card .mobile-app-link:is(.is-disabled, .is-language-disabled) {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    cursor: default;
    filter: grayscale(0.8);
    opacity: 0.48;
    pointer-events: none;
  }

  [data-theme="light"] .desktop-apps-card .mobile-app-link:is(.is-disabled, .is-language-disabled) {
    color: #78716c;
    background: rgba(120, 113, 108, 0.08);
    border-color: rgba(120, 113, 108, 0.18);
  }

  .desktop-apps-card .mobile-app-link:where(html.can-hover *):hover,
  .desktop-apps-card .mobile-app-link:focus-visible {
    color: var(--text-main);
    background: var(--glass-bg-nested-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    outline: none;
    transform: translateY(-2px);
  }

  .desktop-apps-card :is(.mobile-app-mark, .mobile-app-icon-wrap, .mobile-app-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
  }

  .desktop-apps-card .mobile-app-icon-wrap { position: relative; overflow: visible; }
  .desktop-apps-card .mobile-app-icon { object-fit: cover; border: 0; border-radius: inherit; box-shadow: none; }
  .desktop-apps-card .mobile-app-mark { color: var(--gold-on-primary); background: var(--highlight-color); overflow: hidden; }
  .desktop-apps-card .mobile-app-mark svg { width: 30px; height: 30px; }
  .desktop-apps-card .mobile-app-mark-confessions svg { transform: translateX(1px); }

  .desktop-apps-card .mobile-app-platform-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 3px;
    color: #fff;
    border: 2px solid #17171c;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.38);
  }

  .desktop-apps-card .mobile-app-platform-badge svg { width: 100%; height: 100%; }
  .desktop-apps-card .facebook-badge { background: #1877f2; }
  .desktop-apps-card .substack-badge { background: #ff6719; border-radius: 6px; }
  .desktop-apps-card .mobile-app-link strong { max-width: 100%; font-family: var(--font-serif); font-size: 0.82rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }

  [data-theme="light"] .desktop-apps-header-text h2 { color: #1c1917; }
  [data-theme="light"] .desktop-apps-card .mobile-app-platform-badge { border-color: #fff; }

  .header-controls-wrap {
    z-index: 1100;
  }

  .desktop-back-to-top {
    position: fixed; left: clamp(1rem, 2vw, 2.5rem); bottom: clamp(1rem, 2vw, 2.5rem); z-index: 1150;
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; padding: 0;
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    -webkit-backdrop-filter: blur(22px) saturate(175%); backdrop-filter: blur(22px) saturate(175%);
    border: var(--ui-control-border); border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
    cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.24s ease, visibility 0s linear 0.24s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .desktop-back-to-top.is-visible {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0) scale(1); transition-delay: 0s;
  }

  .desktop-back-to-top svg { width: 23px; height: 23px; }

  .desktop-back-to-top:where(html.can-hover *):hover,
  .desktop-back-to-top:focus-visible {
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border: var(--ui-control-border);
    box-shadow: var(--ui-control-bevel);
    outline: none; transform: translateY(-3px) scale(1.03);
  }

  .desktop-back-to-top:active,
  .desktop-back-to-top.is-activated {
    color: var(--gold-primary); background: rgba(10, 10, 14, 0.92); border-color: var(--gold-primary);
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.52), 0 2px 8px color-mix(in srgb, var(--highlight-color) 18%, transparent);
    transform: translateY(2px) scale(0.95);
  }

  [data-theme="light"] .desktop-back-to-top {
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border: var(--ui-control-border);
    box-shadow: var(--ui-control-bevel);
  }

  [data-theme="light"] .desktop-back-to-top:where(html.can-hover *):hover,
  [data-theme="light"] .desktop-back-to-top:focus-visible {
    color: var(--gold-button-ink); background: var(--gold-primary);
  }

  [data-theme="light"] .desktop-back-to-top:active,
  [data-theme="light"] .desktop-back-to-top.is-activated {
    color: var(--highlight-color); background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 3px 7px rgba(90, 65, 18, 0.16), 0 2px 8px rgba(60, 45, 20, 0.12);
  }

  .site-header {
    position: relative;
    padding: clamp(1.25rem, 2vw, 2.5rem) 0 0;
    width: 100%;
  }

  .site-header.is-true-floating .header-card {
    background: linear-gradient(145deg, rgba(30, 30, 38, 0.62), rgba(8, 8, 12, 0.46));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 38px rgba(0, 0, 0, 0.62);
  }

  [data-theme="light"] .site-header.is-true-floating .header-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 238, 226, 0.64));
    -webkit-backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    backdrop-filter: blur(24px) saturate(185%) contrast(108%);
    border-color: color-mix(in srgb, var(--highlight-color) 28%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 32px rgba(60, 45, 20, 0.2), 0 0 0 1px color-mix(in srgb, var(--highlight-color) 6%, transparent);
  }
}

@media (min-width: 1640px) and (hover: hover) and (pointer: fine) {
  .container {
    max-width: calc(780px + 10vw);
  }
}

.longform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.45rem;
  padding: 0;
  background: none;
  border: none;
}

.logo-badge-wrap {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: var(--ui-control-radius);
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 2px solid var(--liturgical-badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  outline: none;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.35s ease;
}

.logo-badge-wrap:where(html.can-hover *):hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 6px 26px rgba(220, 38, 38, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-badge-wrap:active {
  transform: translateY(2px) scale(0.92);
  box-shadow: var(--ui-control-pressed);
}

.logo-badge-wrap svg {
  width: 32px;
  height: 32px;
  transition: transform 0.25s ease;
}

.logo-badge-wrap svg path {
  transition: fill 0.3s ease;
}

.logo-badge-wrap.is-reset-holding,
.footer-seal.is-reset-holding {
  z-index: 12;
  animation: liturgical-reset-charge 2s linear forwards;
}

.logo-badge-wrap.is-reset-complete,
.footer-seal.is-reset-complete {
  animation: liturgical-reset-confirm 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes liturgical-reset-confirm {
  0% { transform: scale(1.18); }
  45% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes liturgical-reset-charge {
  0% { transform: scale(1); filter: brightness(1); }
  25% { transform: scale(1.3); filter: brightness(1.03); }
  50% { transform: scale(1.62); filter: brightness(1.07); }
  54% { transform: translate(-1px, 1px) rotate(-0.6deg) scale(1.67); }
  58% { transform: translate(1px, -1px) rotate(0.8deg) scale(1.72); }
  62% { transform: translate(-2px, 0) rotate(-1deg) scale(1.77); }
  66% { transform: translate(2px, 1px) rotate(1.2deg) scale(1.82); }
  70% { transform: translate(-3px, -1px) rotate(-1.5deg) scale(1.88); }
  73% { transform: translate(3px, 2px) rotate(1.8deg) scale(1.93); }
  76% { transform: translate(-4px, 1px) rotate(-2.1deg) scale(1.98); }
  79% { transform: translate(4px, -2px) rotate(2.4deg) scale(2.03); }
  82% { transform: translate(-5px, 3px) rotate(-2.7deg) scale(2.08); }
  85% { transform: translate(5px, -3px) rotate(3deg) scale(2.13); }
  88% { transform: translate(-6px, -2px) rotate(-3.3deg) scale(2.18); }
  91% { transform: translate(6px, 3px) rotate(3.6deg) scale(2.23); }
  94% { transform: translate(-7px, 4px) rotate(-4deg) scale(2.28); filter: brightness(1.13); }
  97% { transform: translate(7px, -4px) rotate(4.3deg) scale(2.33); filter: brightness(1.16); }
  100% { transform: translate(0) rotate(0) scale(2.38); filter: brightness(1.18); }
}

/* Liturgical Vestment Color Themes */
.logo-badge-wrap[data-liturgy="red"] {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-color: var(--liturgical-badge-border);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-badge-wrap[data-liturgy="red"]:where(html.can-hover *):hover {
  box-shadow: 0 6px 26px rgba(220, 38, 38, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-badge-wrap[data-liturgy="white"] {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 40%, #e2e8f0 100%);
  border-color: #996515;
  box-shadow: 0 4px 22px rgba(153, 101, 21, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.logo-badge-wrap[data-liturgy="white"]:where(html.can-hover *):hover {
  box-shadow: 0 6px 28px rgba(153, 101, 21, 0.65), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.logo-badge-wrap[data-liturgy="white"] svg path {
  fill: #996515 !important;
}

.logo-badge-wrap[data-liturgy="green"] {
  background: linear-gradient(135deg, #16a34a 0%, #14532d 100%);
  border-color: var(--liturgical-badge-border);
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-badge-wrap[data-liturgy="green"]:where(html.can-hover *):hover {
  box-shadow: 0 6px 26px rgba(22, 163, 74, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-badge-wrap[data-liturgy="violet"] {
  background: linear-gradient(135deg, #7e22ce 0%, #4c1d95 100%);
  border-color: var(--liturgical-badge-border);
  box-shadow: 0 4px 20px rgba(126, 34, 206, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-badge-wrap[data-liturgy="violet"]:where(html.can-hover *):hover {
  box-shadow: 0 6px 26px rgba(126, 34, 206, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-badge-wrap[data-liturgy="blue"] {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  border-color: var(--liturgical-badge-border);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-badge-wrap[data-liturgy="blue"]:where(html.can-hover *):hover {
  box-shadow: 0 6px 26px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-badge-wrap[data-liturgy="rose"] {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border-color: var(--liturgical-badge-border);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-badge-wrap[data-liturgy="rose"]:where(html.can-hover *):hover {
  box-shadow: 0 6px 26px rgba(225, 29, 72, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-badge-wrap[data-liturgy="black"] {
  background: linear-gradient(135deg, #1e293b 0%, #090d16 100%);
  border-color: var(--liturgical-badge-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo-badge-wrap[data-liturgy="black"]:where(html.can-hover *):hover {
  box-shadow: 0 6px 26px rgba(15, 23, 42, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Telegram Sticker Burst Animation */
@keyframes sticker-burst {
  0% {
    transform: scale(1) rotate(0deg);
  }
  15% {
    transform: scale(0.8) rotate(-6deg);
  }
  40% {
    transform: scale(1.38) rotate(7deg);
  }
  62% {
    transform: scale(0.9) rotate(-3deg);
  }
  80% {
    transform: scale(1.1) rotate(1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.logo-badge-wrap.is-bursting,
.footer-seal.is-bursting {
  animation: sticker-burst 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Burst Particle Spawner */
.liturgical-burst-container {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

.burst-shockwave {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  animation: burst-shockwave-anim 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes burst-shockwave-anim {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.burst-sparkle {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  animation: burst-sparkle-anim 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes burst-sparkle-anim {
  0% {
    transform: translate(0, 0) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

.logo-text-block {
  text-align: left;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.logo-text-block:where(html.can-hover *):hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.logo-text-block:where(html.can-hover *):hover .logo-subtitle,
.logo-text-block:where(html.can-hover *):hover .vdma-face {
  color: var(--gold-warm) !important;
}

.logo-title {
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  transition: color 0.2s ease;
}

.logo-subtitle {
  position: relative;
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--gold-primary);
  font-weight: 700;
  margin-top: 0.25rem;
  perspective: 600px;
  -webkit-perspective: 600px;
  height: 1.35em;
  line-height: 1.35em;
  overflow: visible;
  transition: color 0.2s ease;
}

.vdma-flipper-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vdma-flipper-inner.is-flipped {
  transform: rotateX(180deg);
}

.vdma-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: inherit;
  transition: color 0.2s ease;
}

.vdma-face-front {
  transform: rotateX(0deg);
}

.vdma-face-back {
  transform: rotateX(180deg);
}

@media (max-width: 768px) {
  .header-card {
    padding: 1.2rem 1.65rem;
  }

  .logo-title {
    font-size: 1.42rem;
  }

  .logo-subtitle {
    font-size: 0.78rem;
  }

  .logo-badge-wrap {
    width: 48px;
    height: 48px;
  }

  .logo-badge-wrap svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-top: 0.65rem;
  }
  
  .header-card {
    padding: 0.95rem 1.2rem;
  }
  
  .longform-logo {
    gap: 1rem;
  }

  .logo-title {
    font-size: 1.22rem;
  }
  
  .logo-subtitle {
    font-size: 0.69rem;
    letter-spacing: 0.12em;
  }
  
  .logo-badge-wrap {
    width: 42px;
    height: 42px;
  }

  .logo-badge-wrap svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 380px) {
  .header-card {
    padding: 0.85rem 0.95rem;
  }

  .longform-logo {
    gap: 0.75rem;
  }

  .logo-title {
    font-size: 1.08rem;
  }

  .logo-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .logo-badge-wrap {
    width: 38px;
    height: 38px;
  }

  .logo-badge-wrap svg {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   VIEW 1: Under Construction Card (Frosted Black Glass)
   ========================================================================== */

.construction-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem;
}

.construction-card {
  position: relative;
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.construction-card:where(html.can-hover *):hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.construction-badge-seal {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 2.5px solid var(--gold-primary);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.construction-card:where(html.can-hover *):hover .construction-badge-seal {
  transform: scale(1.05);
}

.construction-badge-seal svg {
  width: 56px;
  height: 56px;
  display: block;
}

.construction-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.construction-motto {
  font-style: italic;
  color: var(--gold-primary);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.construction-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background-color: var(--gold-subtle);
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.construction-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.substack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-primary);
  color: var(--gold-button-ink);
  padding: 0.85rem 2rem;
  border-radius: var(--ui-control-radius);
  border: var(--ui-control-border);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: var(--ui-control-bevel);
}

.substack-btn:where(html.can-hover *):hover {
  background: var(--gold-primary);
  color: var(--gold-button-ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--gold-button-bevel);
}

.admin-login-link-wrap {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border-subtle);
}

.admin-login-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
}

.admin-login-link:where(html.can-hover *):hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   VIEW 2: Main Content Area
   ========================================================================== */

.main-content {
  padding: 2rem 0 3.5rem;
  flex: 1;
}

/* Dedicated Lamb on the Altar Showcase Card (Full-Bleed with Floating Pill) */
.lamb-showcase-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin-bottom: 2.25rem;
  line-height: 0;
  background: var(--glass-bg-primary);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.lamb-showcase-card:where(html.can-hover *):hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.mobile-summary-view {
  display: none;
}

.lamb-showcase-img {
  width: 100%;
  height: auto;
  aspect-ratio: 26 / 13.5;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.lamb-showcase-card:where(html.can-hover *):hover .lamb-showcase-img {
  transform: scale(1.025);
}

@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  .lamb-showcase-img {
    object-position: center center;
    image-rendering: auto;
    transform: none;
  }

  .lamb-showcase-card:where(html.can-hover *):hover .lamb-showcase-img {
    transform: none;
  }

  #view-content.mobile-summary-active .mobile-summary-view {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--gold-primary) 12%, transparent), transparent 30rem),
      var(--summary-bg);
  }

  .mobile-summary-shell {
    width: min(100%, 46rem);
    min-height: 100%;
    margin-inline: auto;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1.25rem + env(safe-area-inset-bottom));
  }

  .mobile-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
  }

  .mobile-summary-kicker {
    display: block;
    margin-bottom: 0.12rem;
    color: var(--gold-primary);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .mobile-summary-header h1,
  .mobile-summary-about h2,
  .mobile-summary-service h2 {
    font-family: var(--font-serif);
  }

  .mobile-summary-header h1 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.08;
  }

  .mobile-summary-close {
    display: grid;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: var(--gold-button-bevel);
  }

  .mobile-summary-close svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .mobile-summary-lead {
    max-width: 42rem;
    margin: 0 0 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .mobile-summary-service,
  .mobile-summary-about,
  .mobile-summary-action,
  .mobile-summary-socials a {
    background: var(--glass-bg-primary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }

  .mobile-summary-service {
    display: grid;
    gap: 0.38rem;
    padding: 0.9rem 1rem;
    border-color: rgba(34, 197, 94, 0.42);
    border-radius: var(--radius-sm);
    box-shadow: var(--glass-shadow), inset 0 0 22px rgba(34, 197, 94, 0.07);
  }

  .mobile-summary-service h2 {
    margin: 0.1rem 0 0;
    color: var(--text-main);
    font-size: clamp(1.17rem, 5vw, 1.5rem);
    line-height: 1.25;
  }

  .mobile-summary-service p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .mobile-summary-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
  }

  .mobile-summary-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.72rem 0.85rem;
    color: var(--text-main);
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
    text-decoration: none;
  }

  .mobile-summary-action > svg {
    flex: 0 0 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    color: var(--gold-primary);
  }

  .mobile-summary-action span {
    display: grid;
    min-width: 0;
  }

  .mobile-summary-action small {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .mobile-summary-action strong {
    overflow-wrap: anywhere;
    font-family: var(--font-sans);
    font-size: 0.9rem;
  }

  .mobile-summary-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .mobile-summary-socials a {
    display: flex;
    min-width: 0;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.3rem;
    color: var(--text-main);
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
    font-family: var(--font-sans);
    font-size: clamp(0.62rem, 2.6vw, 0.75rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .summary-platform-mark {
    display: grid;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    color: #fff;
    background: #1877f2;
    border-radius: 0.42rem;
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
  }

  .summary-substack-mark {
    background: #ff6719;
    font-size: 0.72rem;
  }

  .summary-discord-mark {
    background: #5865f2;
    padding: 3px;
  }

  .summary-discord-mark svg {
    width: 14px;
    height: 14px;
    display: block;
  }

  .mobile-summary-about {
    margin-top: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
  }

  .mobile-summary-about h2 {
    margin: 0 0 0.4rem;
    color: var(--gold-primary);
    font-size: 1.08rem;
  }

  .mobile-summary-about p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.52;
  }

  .mobile-summary-enter {
    display: flex;
    width: 100%;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.65rem;
    padding: 0.7rem 1rem;
    color: var(--gold-button-ink);
    background: var(--gold-primary);
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .mobile-summary-enter svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .mobile-summary-close:active,
  .mobile-summary-enter:active,
  .mobile-summary-action:active,
  .mobile-summary-socials a:active {
    transform: translateY(2px);
    box-shadow: var(--ui-control-pressed);
    filter: brightness(0.92);
  }

  @media (orientation: landscape) and (max-height: 600px) {
    .mobile-summary-shell {
      display: grid;
      grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
      gap: 0.55rem 0.75rem;
      align-content: start;
      padding-top: calc(0.65rem + env(safe-area-inset-top));
    }

    .mobile-summary-header,
    .mobile-summary-lead,
    .mobile-summary-enter {
      grid-column: 1 / -1;
    }

    .mobile-summary-header { margin-bottom: 0; }
    .mobile-summary-lead { margin-bottom: 0; }
    .mobile-summary-service { grid-column: 1; }
    .mobile-summary-actions { grid-column: 2; margin-top: 0; }
    .mobile-summary-about { grid-column: 1 / -1; margin-top: 0; }
  }

}

@media (max-width: 1179px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .lamb-showcase-card {
    height: auto;
    aspect-ratio: 16 / 13;
    max-height: 480px;
  }

  .lamb-showcase-card picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .lamb-showcase-img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
    image-rendering: auto;
    transform: none;
  }

  .lamb-showcase-card:where(html.can-hover *):hover .lamb-showcase-img {
    transform: none;
  }
}

.lamb-showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(180deg, rgba(8, 8, 12, 0.2) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(6, 6, 10, 0.7) 100%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 50%, rgba(4, 4, 7, 0.45) 100%);
  pointer-events: none;
}

.lamb-floating-pill {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.45rem;
  background: rgba(10, 10, 14, 0.74);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid color-mix(in srgb, var(--lamb-plaque-accent) 38%, transparent);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.lamb-pill-cross {
  color: var(--lamb-plaque-accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.lamb-pill-flipper-container {
  perspective: 600px;
  -webkit-perspective: 600px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.lamb-flipper-inner {
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lamb-flipper-inner.is-flipped {
  transform: rotateX(180deg);
}

.lamb-flipper-inner > .lamb-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--lamb-plaque-accent);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.lamb-face-front {
  transform: rotateX(0deg);
}

.lamb-face-back {
  transform: rotateX(180deg);
}

@media (max-width: 600px) {
  .lamb-showcase-card {
    margin-bottom: 1.75rem;
  }
  
  .lamb-floating-pill {
    bottom: 0.85rem;
    padding: 0.45rem 1.1rem;
    gap: 0.45rem;
  }
  
  .lamb-pill-cross {
    font-size: 0.9rem;
  }
  
  .lamb-flipper-inner > .lamb-face,
  .lamb-pill-text {
    font-size: 0.82rem;
    letter-spacing: 0.07em;
  }
}

/* Lead Card */
.lead-card {
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.85rem 2.25rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.lead-card:where(html.can-hover *):hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.lead-content-wrap {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.lead-luther-rose {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  color: var(--luther-rose-color);
  opacity: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.lead-luther-rose:where(html.can-hover *):hover {
  transform: scale(1.09) rotate(4deg);
  color: var(--luther-rose-color);
  filter: drop-shadow(0 3px 10px rgba(212, 163, 64, 0.3));
}

.lead-luther-rose:active {
  transform: scale(0.94);
}

/* Fluid Organic Burst for Luther Rose */
@keyframes rose-burst {
  0% {
    transform: scale(1) rotate(0deg);
  }
  22% {
    transform: scale(0.9) rotate(-3deg);
  }
  50% {
    transform: scale(1.2) rotate(4deg);
  }
  75% {
    transform: scale(0.98) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.lead-luther-rose.is-bursting {
  animation: rose-burst 0.58s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Emoji Burst Container & Animation */
.heart-burst-container {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

.heart-shockwave {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  border-radius: 50%;
  border: 2px solid rgba(217, 159, 54, 0.55);
  animation: heart-shockwave-anim 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heart-shockwave-anim {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.embossed-gold-heart {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-variant-emoji: emoji;
  line-height: 1;
  white-space: nowrap;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation: heart-burst-anim 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heart-burst-anim {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(0.35) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 0.25), calc(var(--dy) * 0.25)) scale(1.05) rotate(calc(var(--rot) * 0.2));
    opacity: 1;
  }
  40% {
    opacity: 0.8;
  }
  65% {
    opacity: 0.45;
  }
  85% {
    opacity: 0.18;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.85) rotate(var(--rot));
    opacity: 0;
  }
}

.luther-rose-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lead-text-wrap {
  flex: 1;
  min-width: 0;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 0;
}

.lead-text strong {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 600px) {
  .main-content {
    font-size: 1.02rem;
  }

  .schedule-detail-value {
    font-size: 1.02rem;
  }

  .lead-card {
    padding: 1.35rem 1.35rem;
  }
  
  .lead-content-wrap {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .lead-luther-rose {
    width: 60px;
    height: 60px;
    align-self: center;
    margin: 0 auto;
  }

  .lead-text {
    font-size: 1.02rem;
    line-height: 1.65;
    text-align: center;
  }
}

/* Dedicated Social Media Block within Lead Card */
.intro-social-block {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border-subtle);
}

.intro-social-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.intro-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.intro-social-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.intro-social-item:where(html.can-hover *):hover {
  text-decoration: none;
  background: var(--glass-bg-nested-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.intro-social-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.intro-social-item:where(html.can-hover *):hover .intro-social-icon {
  transform: scale(1.1);
}

.fb-icon {
  background-color: rgba(24, 119, 242, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(24, 119, 242, 0.35);
}

.substack-icon {
  background-color: rgba(255, 103, 25, 0.2);
  color: #fb923c;
  border: 1px solid rgba(255, 103, 25, 0.35);
}

.discord-icon {
  background-color: rgba(88, 101, 242, 0.2);
  color: #818cf8;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.mobile-app-mark-discord {
  background: #5865f2 !important;
  color: #ffffff !important;
}

.intro-social-icon svg {
  width: 18px;
  height: 18px;
}

.intro-social-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.intro-social-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

.intro-social-handle {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  line-height: 1.3;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intro-social-item:where(html.can-hover *):hover .intro-social-handle {
  color: #ffffff;
}

/* ==========================================================================
   Service Schedule Card (Always Visible, Frosted Black Glass)
   ========================================================================== */

.schedule-card {
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.5rem 2.25rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.schedule-card:where(html.can-hover *):hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.schedule-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--symbolic-icon-surface);
  color: var(--symbolic-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--symbolic-icon-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.schedule-header-icon svg {
  width: 24px;
  height: 24px;
}

.schedule-header-text h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
  color: #ffffff;
}

.schedule-header-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

.next-service-box {
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Compact next-service companion shown only on desktop viewports. */
.desktop-next-service-widget {
  display: none;
  cursor: pointer;
}

.desktop-next-service-widget:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 4px;
}

.desktop-next-service-widget::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 21;
  pointer-events: none;
  border: 2px solid rgba(74, 222, 128, 0.9);
  border-radius: inherit;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.42), 0 0 24px rgba(34, 197, 94, 0.28), inset 0 0 14px rgba(34, 197, 94, 0.12);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.desktop-next-service-widget:where(html.can-hover *):hover::before {
  opacity: 1;
}

.desktop-next-service-widget:focus-visible::before {
  animation: schedule-green-border-fade 2.2s ease-in-out both;
}

:is(.schedule-card, .accordion-item).schedule-focus-flash {
  position: relative;
  isolation: isolate;
}

:is(.schedule-card, .accordion-item).schedule-focus-flash::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 20;
  pointer-events: none;
  border: 2px solid rgba(74, 222, 128, 0.9);
  border-radius: inherit;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.42), 0 0 24px rgba(34, 197, 94, 0.28), inset 0 0 14px rgba(34, 197, 94, 0.12);
  opacity: 0;
  animation: schedule-green-border-fade 2.2s ease-in-out both;
}

@keyframes schedule-green-border-fade {
  0% { opacity: 0; }
  16% { opacity: 0.92; }
  42% { opacity: 0.82; }
  68% { opacity: 0.48; }
  86% { opacity: 0.18; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-card.schedule-focus-flash::before,
  .desktop-next-service-widget:focus-visible::before { animation-duration: 1.1s; }
}

.desktop-side-panel {
  display: none;
}

.mobile-side-panel-scrim {
  display: none;
}

@media (min-width: 1180px) and (hover: hover) and (pointer: fine) {
  .desktop-side-panel {
    position: fixed;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: clamp(205px, calc(45vw - 370px), 280px);
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .desktop-events-panel {
    top: calc(clamp(1.25rem, 2vw, 2.5rem) + var(--next-service-widget-height, 7.5rem) + 0.65rem);
    left: clamp(1rem, 2vw, 2.5rem);
    max-height: calc(100dvh - clamp(1.25rem, 2vw, 2.5rem) - var(--next-service-widget-height, 7.5rem) - 2rem);
  }
  .desktop-posts-panel {
    top: clamp(4.5rem, 7vw, 8rem);
    right: clamp(1rem, 2vw, 2.5rem);
    max-height: calc(100dvh - clamp(4.5rem, 7vw, 8rem) - clamp(1rem, 2vw, 2.5rem) - 4.5rem);
  }

  .desktop-side-panel::after {
    content: none;
  }

  .desktop-side-panel-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    margin: 0;
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
  }

  .desktop-side-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: var(--symbolic-icon-color);
    background: var(--symbolic-icon-surface);
    border: 1px solid var(--symbolic-icon-border);
    border-radius: 10px;
  }

  .desktop-side-panel-icon svg { width: 18px; height: 18px; }
  .desktop-panel-kicker { display: block; color: var(--gold-primary); font-family: var(--font-sans); font-size: 0.58rem; font-weight: 800; line-height: 1.1; letter-spacing: 0.13em; text-transform: uppercase; }
  .desktop-side-panel h2 { margin: 0.12rem 0 0; color: var(--text-main); font-size: 1.05rem; line-height: 1.18; }

  .desktop-event-list,
  .desktop-post-list {
    display: contents;
  }

  .desktop-event-entry {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    width: 100%;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
    font: inherit;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .desktop-event-entry:where(html.can-hover *):hover,
  .desktop-event-entry:focus-visible {
    transform: translateY(-2px);
    background: var(--glass-bg-nested-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
    outline: none;
  }

  .desktop-event-entry:where(html.can-hover *):hover h3,
  .desktop-event-entry:focus-visible h3 {
    color: var(--gold-primary);
  }

  .desktop-event-entry:focus-visible {
    box-shadow: 0 0 0 2px var(--gold-primary), var(--glass-shadow);
  }

  .desktop-event-entry:active {
    transform: translateY(1px);
    box-shadow: var(--ui-control-pressed);
  }

  .desktop-event-entry time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.15rem;
    color: var(--gold-button-ink);
    background: var(--highlight-color);
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
    font-family: var(--font-sans);
    line-height: 1;
    flex-shrink: 0;
  }
  .desktop-event-entry time strong { font-size: 1.05rem; }
  .desktop-event-entry time span { margin-top: 0.16rem; font-size: 0.54rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
  .desktop-event-entry h3 { margin: 0; color: var(--text-main); font-size: 0.88rem; line-height: 1.25; font-family: var(--font-serif); font-weight: 700; transition: color 0.18s ease; }
  .desktop-event-entry p { margin: 0.16rem 0 0; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.72rem; line-height: 1.3; }

  .desktop-post-entry {
    display: block;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .desktop-post-entry:where(html.can-hover *):hover,
  .desktop-post-entry:focus-visible {
    transform: translateY(-2px);
    background: var(--glass-bg-nested-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
    outline: none;
  }

  .desktop-post-entry:where(html.can-hover *):hover h3,
  .desktop-post-entry:focus-visible h3 {
    color: var(--gold-primary);
  }

  .desktop-post-entry:focus-visible {
    box-shadow: 0 0 0 2px var(--gold-primary), var(--glass-shadow);
  }

  .desktop-post-entry:active {
    transform: translateY(1px);
    box-shadow: var(--ui-control-pressed);
  }

  .desktop-post-source { display: inline-block; margin-bottom: 0.2rem; color: var(--gold-primary); font-family: var(--font-sans); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .desktop-post-entry h3 { margin: 0; color: var(--text-main); font-size: 0.84rem; line-height: 1.3; font-family: var(--font-serif); font-weight: 600; transition: color 0.18s ease; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .desktop-post-entry p { margin: 0.18rem 0 0; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.7rem; line-height: 1.3; }

  .desktop-panel-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.75rem 0.95rem;
    color: var(--text-muted);
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  }
  .desktop-panel-status .pulse-dot { width: 6px; height: 6px; background-color: #22c55e; box-shadow: 0 0 0 rgba(34, 197, 94, 0.4); animation: pulse-badge 2s infinite; }
  .desktop-panel-status-link:where(html.can-hover *):hover { color: var(--gold-primary); border-color: var(--glass-border-hover); background: var(--glass-bg-nested-hover); transform: translateY(-1px); }

  [data-theme="light"] .desktop-side-panel-header,
  [data-theme="light"] .desktop-event-entry,
  [data-theme="light"] .desktop-post-entry,
  [data-theme="light"] .desktop-panel-status {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 242, 234, 0.88)) !important;
    border: 1px solid rgba(28, 25, 23, 0.12) !important;
    box-shadow: 0 6px 20px rgba(60, 45, 20, 0.08), inset 0 1px 0 #fff !important;
    color: #1c1917 !important;
  }

  [data-theme="light"] .desktop-side-panel-header h2,
  [data-theme="light"] .desktop-event-entry h3,
  [data-theme="light"] .desktop-post-entry h3 {
    color: #1c1917 !important;
  }

  [data-theme="light"] .desktop-event-entry:where(html.can-hover *):hover,
  [data-theme="light"] .desktop-event-entry:focus-visible,
  [data-theme="light"] .desktop-post-entry:where(html.can-hover *):hover,
  [data-theme="light"] .desktop-post-entry:focus-visible,
  [data-theme="light"] .desktop-panel-status:where(html.can-hover *):hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.94)) !important;
    border-color: rgba(184, 134, 11, 0.35) !important;
    box-shadow: 0 8px 24px rgba(60, 45, 20, 0.12), inset 0 1px 0 #fff !important;
  }

  [data-theme="light"] .desktop-event-entry:where(html.can-hover *):hover h3,
  [data-theme="light"] .desktop-event-entry:focus-visible h3,
  [data-theme="light"] .desktop-post-entry:where(html.can-hover *):hover h3,
  [data-theme="light"] .desktop-post-entry:focus-visible h3 {
    color: var(--highlight-color) !important;
  }

  [data-theme="light"] .desktop-event-entry p,
  [data-theme="light"] .desktop-post-entry p {
    color: #78716c !important;
  }
}

@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  #view-content {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }


  body.mobile-side-panel-open {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .desktop-next-service-widget {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    left: max(1rem, env(safe-area-inset-left));
    z-index: 1100;
    width: min(21rem, calc(100vw - 2rem));
    width: min(21rem, calc(100dvw - 2rem));
    min-width: 0;
    max-width: calc(100vw - 2rem);
    max-width: calc(100dvw - 2rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 1.1rem 1.05rem;
    overflow: hidden;
    isolation: isolate;
    contain: layout style;
    background: radial-gradient(circle at 90% 5%, rgba(34, 197, 94, 0.18), transparent 42%), linear-gradient(145deg, rgba(25, 27, 30, 0.9), rgba(7, 8, 11, 0.88));
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(calc(-100% - 2rem), 0, 0);
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.52s;
  }

  .desktop-next-service-widget::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 34%);
  }

  .desktop-next-service-widget .next-service-badge { margin-bottom: 0.45rem; background: rgba(34, 197, 94, 0.18); }
  .desktop-next-service-date { color: #fff; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; line-height: 1.22; letter-spacing: -0.015em; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42); }
  .desktop-next-service-time { color: rgba(255, 255, 255, 0.72); font-family: var(--font-sans); font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.035em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38); }

  #view-content.mobile-events-open .desktop-next-service-widget {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }

  #view-content > .site-header,
  #view-content > .main-content,
  #view-content > .site-footer {
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), filter 0.38s ease, opacity 0.38s ease;
  }

  #view-content.mobile-events-open > :where(.site-header, .main-content, .site-footer) {
    transform: translate3d(clamp(2rem, 12vw, 4.5rem), 0, 0);
    filter: blur(2px);
    opacity: 0.5;
  }

  #view-content.mobile-posts-open > :where(.site-header, .main-content, .site-footer) {
    transform: translate3d(clamp(-4.5rem, -12vw, -2rem), 0, 0);
    filter: blur(2px);
    opacity: 0.5;
  }

  .mobile-side-panel-scrim {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 0, 0, 0.22);
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  #view-content:is(.mobile-events-open, .mobile-posts-open) .mobile-side-panel-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .desktop-side-panel {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: min(320px, calc(100vw - 2rem));
    width: min(320px, calc(100dvw - 2rem));
    min-width: 0;
    max-width: calc(100vw - 2rem);
    max-width: calc(100dvw - 2rem);
    padding: 0.25rem 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.52s;
  }

  .desktop-events-panel {
    top: calc(max(1rem, env(safe-area-inset-top)) + var(--next-service-widget-height, 7.5rem) + 0.65rem);
    left: max(1rem, env(safe-area-inset-left));
    transform: translate3d(calc(-100% - 2rem), 0, 0);
  }

  .desktop-posts-panel {
    right: max(1rem, env(safe-area-inset-right));
    transform: translate3d(calc(100% + 2rem), 0, 0);
  }

  #view-content.mobile-events-open .desktop-events-panel,
  #view-content.mobile-posts-open .desktop-posts-panel {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .desktop-side-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.95rem;
    margin: 0;
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
  }

  .desktop-side-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: var(--symbolic-icon-color);
    background: var(--symbolic-icon-surface);
    border: 1px solid var(--symbolic-icon-border);
    border-radius: 11px;
  }

  .desktop-side-panel-icon svg { width: 20px; height: 20px; }
  .desktop-panel-kicker { display: block; color: var(--gold-primary); font-family: var(--font-sans); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.13em; line-height: 1.1; text-transform: uppercase; }
  .desktop-side-panel h2 { margin: 0.12rem 0 0; color: var(--text-main); font-size: 1.12rem; line-height: 1.2; }

  .desktop-event-list,
  .desktop-post-list {
    display: contents;
  }

  .desktop-event-entry {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    width: 100%;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
    font: inherit;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .desktop-event-entry time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    padding: 0.35rem 0.2rem;
    color: var(--gold-button-ink);
    background: var(--highlight-color);
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel);
    font-family: var(--font-sans);
    line-height: 1;
    flex-shrink: 0;
  }
  .desktop-event-entry time strong { font-size: 1.12rem; font-weight: 800; }
  .desktop-event-entry time span { margin-top: 0.18rem; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
  .desktop-event-entry h3 { margin: 0; color: var(--text-main); font-size: 0.94rem; line-height: 1.25; font-family: var(--font-serif); font-weight: 700; }
  .desktop-event-entry p { margin: 0.18rem 0 0; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.75rem; line-height: 1.3; }

  .desktop-post-entry {
    display: block;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .desktop-post-source { display: inline-block; margin-bottom: 0.22rem; color: var(--gold-primary); font-family: var(--font-sans); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .desktop-post-entry h3 { margin: 0; color: var(--text-main); font-size: 0.9rem; line-height: 1.3; font-family: var(--font-serif); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .desktop-post-entry p { margin: 0.2rem 0 0; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.72rem; line-height: 1.3; }

  .desktop-panel-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.75rem 0.95rem;
    color: var(--text-muted);
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    line-height: 1.25;
    text-decoration: none;
  }

  [data-theme="light"] .desktop-side-panel-header,
  [data-theme="light"] .desktop-event-entry,
  [data-theme="light"] .desktop-post-entry,
  [data-theme="light"] .desktop-panel-status {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 242, 234, 0.88)) !important;
    border: 1px solid rgba(28, 25, 23, 0.12) !important;
    box-shadow: 0 6px 20px rgba(60, 45, 20, 0.08), inset 0 1px 0 #fff !important;
    color: #1c1917 !important;
  }

  [data-theme="light"] .desktop-side-panel-header h2,
  [data-theme="light"] .desktop-event-entry h3,
  [data-theme="light"] .desktop-post-entry h3 {
    color: #1c1917 !important;
  }

  [data-theme="light"] .desktop-event-entry p,
  [data-theme="light"] .desktop-post-entry p {
    color: #78716c !important;
  }

  [data-theme="light"] .desktop-next-service-widget { background: radial-gradient(circle at 90% 5%, rgba(34, 197, 94, 0.16), transparent 42%), linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 242, 234, 0.88)); border-color: color-mix(in srgb, var(--highlight-color) 28%, transparent); box-shadow: 0 8px 24px rgba(60, 45, 20, 0.12), inset 0 1px 0 #fff; }
  [data-theme="light"] .desktop-next-service-date { color: #0a0a0f; text-shadow: none; }
  [data-theme="light"] .desktop-next-service-time { color: #57534e; text-shadow: none; }
}

@media (min-width: 1180px) and (hover: hover) and (pointer: fine) {
  .desktop-next-service-widget {
    position: fixed;
    top: clamp(1.25rem, 2vw, 2.5rem);
    left: clamp(1rem, 2vw, 2.5rem);
    z-index: 1050;
    width: clamp(205px, calc(45vw - 370px), 248px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: clamp(0.85rem, 1.1vw, 1rem) clamp(0.85rem, 1.1vw, 1.1rem) clamp(0.85rem, 1.1vw, 1.05rem);
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(circle at 90% 5%, rgba(34, 197, 94, 0.18), transparent 42%),
      linear-gradient(145deg, rgba(25, 27, 30, 0.9), rgba(7, 8, 11, 0.88));
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .desktop-next-service-widget::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 34%);
  }

  .desktop-next-service-widget .next-service-badge {
    margin-bottom: 0.45rem;
    background: rgba(34, 197, 94, 0.18);
  }

  .desktop-next-service-time {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-sans);
    font-size: clamp(0.88rem, 1vw, 1rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.035em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
  }

  .desktop-next-service-date {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.25vw, 1.35rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  }

  [data-theme="light"] .desktop-next-service-widget {
    background:
      radial-gradient(circle at 90% 5%, rgba(34, 197, 94, 0.16), transparent 42%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 242, 234, 0.88));
    border-color: color-mix(in srgb, var(--highlight-color) 28%, transparent);
    box-shadow: 0 8px 24px rgba(60, 45, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
  }

  [data-theme="light"] .desktop-next-service-date {
    color: #0a0a0f;
    text-shadow: none;
  }

  [data-theme="light"] .desktop-next-service-time {
    color: #57534e;
    text-shadow: none;
  }
}

.next-service-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.next-service-date {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.next-service-cadence {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.schedule-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 640px) {
  .schedule-details-grid {
    grid-template-columns: 1fr;
  }
  
  .schedule-card {
    padding: 1.6rem 1.35rem 1.5rem;
  }
  
  .next-service-date {
    font-size: 1.25rem;
  }
}

.schedule-detail-item {
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.schedule-detail-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-detail-label svg {
  color: var(--symbolic-icon-color);
}

.schedule-detail-value {
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.45;
}

.schedule-detail-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.schedule-location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.schedule-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--ui-control-inner-radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-action-btn svg {
  flex-shrink: 0;
  color: var(--gold-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.schedule-action-btn:where(html.can-hover *):hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--glass-border-hover);
  color: var(--gold-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.schedule-action-btn:active {
  transform: translateY(1px);
}

.schedule-action-btn.is-copied {
  background: color-mix(in srgb, var(--highlight-color) 22%, transparent);
  border-color: var(--highlight-color);
  color: var(--highlight-color);
}

.schedule-action-btn.is-copied svg {
  color: var(--highlight-color);
}

[data-theme="light"] .schedule-action-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a24;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .schedule-action-btn:where(html.can-hover *):hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
}

[data-theme="light"] .schedule-action-btn.is-copied {
  background: color-mix(in srgb, var(--highlight-color) 18%, transparent);
  border-color: var(--highlight-color);
  color: #121216;
}

:is(.schedule-lang-note, .apps-language-note) {
  margin-bottom: 1.25rem;
  padding: 0.95rem 1.25rem;
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  border-left: 3.5px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.apps-language-note[hidden] { display: none; }

:is(.schedule-lang-note, .apps-language-note) svg {
  color: var(--symbolic-icon-color);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

:is(.schedule-lang-note, .apps-language-note) p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

:is(.schedule-lang-note, .apps-language-note) p strong {
  color: var(--gold-primary);
}

/* ==========================================================================
   Standalone Banner: Friss Igehirdetés (Substack Dynamic Scraper)
   ========================================================================== */

.sermon-banner-card {
  display: flex;
  align-items: stretch;
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
  margin-bottom: 2.25rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.sermon-banner-card:where(html.can-hover *):hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.sermon-banner-card:active {
  transform: translateY(2px);
  box-shadow: var(--ui-control-pressed);
}

.sermon-banner-img-wrap {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  align-self: stretch;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--glass-bg-nested);
}

.sermon-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sermon-banner-content {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  transition: background-color 0.2s ease;
}

.sermon-banner-card:where(html.can-hover *):hover .sermon-banner-content {
  background-color: rgba(255, 255, 255, 0.05);
}

.sermon-banner-tag-row {
  display: flex;
  align-items: center;
}

.sermon-banner-tag-row .sermon-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--gold-subtle);
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
}

.sermon-banner-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0;
  transition: color 0.2s ease;
}

.sermon-banner-card:where(html.can-hover *):hover .sermon-banner-title {
  color: var(--text-main);
}

.sermon-banner-author {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   Accordion Sections (Black Glass Dropdowns)
   ========================================================================== */

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion-item {
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.accordion-item:where(html.can-hover *):hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.accordion-header {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  border-radius: var(--ui-control-radius);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.accordion-header:active {
  transform: translateY(2px);
  box-shadow: var(--ui-control-pressed);
}

.accordion-header:where(html.can-hover *):hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.accordion-title {
  display: flex;
  align-items: center;
  min-height: 36px;
  line-height: 1.2;
  gap: 0.75rem;
}

.accordion-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
}

.accordion-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  color: #ffffff;
}

/* CSS Grid Smooth Height Transition */
.accordion-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-collapse {
  grid-template-rows: 1fr;
}

.accordion-body {
  overflow: hidden;
  padding: 0 1.75rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s, padding-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-body {
  padding-bottom: 1.75rem;
  opacity: 1;
  transform: translateY(0);
}

/* Identity List Inside Accordion */
.identity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.identity-item {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  padding: 1.5rem 1.75rem;
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.identity-item:where(html.can-hover *):hover {
  background: var(--glass-bg-nested-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.identity-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--symbolic-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.identity-item:where(html.can-hover *):hover .identity-icon-wrap {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
  color: var(--symbolic-icon-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.identity-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.identity-content {
  flex: 1;
  min-width: 0;
}

.identity-content > p:not(.identity-verse) {
  font-size: 1.02rem;
}

.identity-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.identity-title .num-badge {
  color: var(--gold-primary);
  font-weight: 700;
  margin-right: 0.25rem;
}

.identity-verse {
  font-size: 0.95rem;
  color: var(--text-gold);
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .identity-item {
    gap: 1rem;
    padding: 1.25rem 1.25rem;
  }

  .identity-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .identity-icon-wrap svg {
    width: 19px;
    height: 19px;
  }
}

/* Info Box Inside Accordion */
.info-box {
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-left: 4px solid var(--gold-primary);
  border-top: 1px solid var(--glass-border-subtle);
  border-right: 1px solid var(--glass-border-subtle);
  border-bottom: 1px solid var(--glass-border-subtle);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.info-box p {
  color: var(--text-secondary);
}

.info-box strong {
  color: #ffffff;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Contact Box Inside Accordion */
.contact-inner {
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  padding: 1.6rem 1.75rem 1.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-intro-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.contact-single-card {
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid var(--glass-border);
  border-left: 3.5px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-single-card:where(html.can-hover *):hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--symbolic-icon-surface);
  color: var(--symbolic-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--symbolic-icon-border);
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-card-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-card-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
}

.contact-card-value:where(html.can-hover *):hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.contact-card-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Mailto Contact Form (Frosted Black Glass) */
.contact-form-container {
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.6rem;
  margin-top: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-form-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form-heading svg {
  color: var(--gold-primary);
}

.contact-form-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-field .required {
  color: var(--gold-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.contact-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  border: var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  padding: 0.85rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--ui-control-bevel);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-send-btn svg {
  stroke: #ffffff;
}

.contact-send-btn:where(html.can-hover *):hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--ui-control-bevel);
}

.contact-send-btn:active {
  transform: translateY(2px);
  box-shadow: var(--ui-control-pressed);
}

/* ==========================================================================
   Site Footer (Floating Black Glass Card)
   ========================================================================== */

.site-footer {
  padding: 0 0 3.5rem;
  text-align: center;
}

.footer-card {
  container-type: inline-size;
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.footer-card:where(html.can-hover *):hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.footer-seal {
  width: 44px;
  height: 44px;
  border-radius: var(--ui-control-radius);
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1.5px solid var(--liturgical-badge-border);
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: background 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.footer-seal:where(html.can-hover *):hover { transform: scale(1.08) rotate(-2deg); }
.footer-seal:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 4px; }
.footer-seal:active { transform: translateY(2px) scale(0.92); box-shadow: var(--ui-control-pressed); }

.footer-seal svg {
  width: 26px;
  height: 26px;
}

.footer-seal svg path {
  transition: fill 0.3s ease;
}

.footer-seal[data-liturgy="red"] {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-color: var(--liturgical-badge-border);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.footer-seal[data-liturgy="white"] {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 40%, #e2e8f0 100%);
  border-color: #996515;
  box-shadow: 0 4px 14px rgba(153, 101, 21, 0.45);
}

.footer-seal[data-liturgy="white"] svg path { fill: #996515 !important; }
.footer-seal[data-liturgy="green"] { background: linear-gradient(135deg, #16a34a 0%, #14532d 100%); border-color: var(--liturgical-badge-border); box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35); }
.footer-seal[data-liturgy="violet"] { background: linear-gradient(135deg, #7e22ce 0%, #4c1d95 100%); border-color: var(--liturgical-badge-border); box-shadow: 0 4px 12px rgba(126, 34, 206, 0.35); }
.footer-seal[data-liturgy="blue"] { background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%); border-color: var(--liturgical-badge-border); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); }
.footer-seal[data-liturgy="rose"] { background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%); border-color: var(--liturgical-badge-border); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35); }
.footer-seal[data-liturgy="black"] { background: linear-gradient(135deg, #1e293b 0%, #090d16 100%); border-color: var(--liturgical-badge-border); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.6); }

.footer-motto-container {
  position: relative;
  display: block;
  font-family: var(--font-sans);
  font-size: calc(clamp(0.48rem, 2.5vw, 0.85rem) * var(--footer-motto-scale, 1));
  text-transform: uppercase;
  letter-spacing: calc(clamp(0.03em, 0.4vw, 0.17em) * var(--footer-motto-scale, 1));
  color: var(--gold-primary);
  font-weight: 700;
  margin: 0 auto 0.65rem;
  perspective: 600px;
  -webkit-perspective: 600px;
  height: 1.4em;
  line-height: 1.4em;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  transition: color 0.2s ease;
  box-sizing: border-box;
}

@supports (container-type: inline-size) {
  .footer-motto-container {
    font-size: calc(clamp(0.46rem, 3.1cqw, 0.85rem) * var(--footer-motto-scale, 1));
    letter-spacing: calc(clamp(0.03em, 0.5cqw, 0.17em) * var(--footer-motto-scale, 1));
  }
}

.footer-motto-container .vdma-flipper-inner {
  width: 100%;
  max-width: 100%;
}

.footer-motto-container .vdma-face {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Login Modal (Frosted Black Glass & Backdrop Blur)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 7, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-top: 3.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  background: var(--gold-primary);
  border: var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  box-shadow: var(--ui-control-bevel);
  font-size: 1.5rem;
  color: var(--gold-button-ink);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:where(html.can-hover *):hover {
  color: var(--gold-button-ink);
}

.modal-close:active {
  transform: translateY(2px);
  box-shadow: var(--ui-control-pressed);
}

.modal-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  margin: 1.25rem 0 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.modal-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.8);
}

.modal-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--gold-primary);
  color: var(--gold-button-ink);
  border: var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--ui-control-bevel);
  transition: all 0.2s ease;
}

.modal-btn:where(html.can-hover *):hover {
  background: var(--gold-primary);
  box-shadow: var(--ui-control-bevel);
}

.substack-btn:active,
.modal-btn:active {
  transform: translateY(2px);
  box-shadow: var(--ui-control-pressed);
  filter: brightness(0.92);
}

.mobile-app-link:active :is(.mobile-app-mark, .mobile-app-icon-wrap, .mobile-app-icon) {
  transform: translateY(2px);
  box-shadow: var(--ui-control-pressed);
  filter: brightness(0.92);
}

.modal-error {
  color: var(--crimson-bright);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: none;
}

/* Location Info Modal */
.location-info-card {
  max-width: 500px;
  border-top: 3.5px solid var(--gold-primary);
}

.location-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 0.65rem;
}

.location-modal-title {
  margin: 0 0 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

[data-theme="light"] .location-modal-title {
  color: #121216;
}

.location-modal-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.location-modal-address {
  margin: 0 0 0.85rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.location-modal-directions {
  margin: 0 0 1.5rem 0;
}

.location-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.location-modal-actions .modal-btn {
  width: auto;
  min-width: 100px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.modal-btn-secondary svg {
  color: var(--gold-primary);
}

.modal-btn-secondary:where(html.can-hover *):hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--glass-border-hover) !important;
  color: var(--gold-primary) !important;
}

[data-theme="light"] .modal-btn-secondary {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #1a1a24 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .modal-btn-secondary:where(html.can-hover *):hover {
  background: rgba(0, 0, 0, 0.09) !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
  color: #000000 !important;
}

/* ==========================================================================
   Smooth Scrolling & Viewbox Scroll Reveal Animations
   ========================================================================== */

.reveal-block {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
  will-change: opacity, transform;
}

.reveal-block.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  .reveal-block {
    transform: none !important;
    transition: opacity 0.45s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
    will-change: opacity;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-block {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}




/* ==========================================================================
   Mobile Real Estate & Padding Optimization (<= 640px, <= 480px, <= 360px)
   ========================================================================== */

@media (max-width: 640px) {
  /* Tighten outer viewport margins to maximize text area */
  .container {
    padding: 0 0.85rem;
  }

  .site-header {
    padding: 0.85rem 0 0;
  }

  .main-content {
    padding: 0.85rem 0 2rem;
  }

  /* Header Card */
  .header-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  /* Lamb Showcase Card */
  .lamb-showcase-card {
    margin-bottom: 1.15rem;
    border-radius: var(--radius-sm);
  }

  .lamb-floating-pill {
    bottom: 0.65rem;
    padding: 0.35rem 0.95rem;
    gap: 0.4rem;
  }

  .lamb-pill-text {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  /* Lead / Intro Card */
  .lead-card {
    padding: 1.1rem 1rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius-sm);
  }

  .lead-content-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .lead-luther-rose {
    width: 48px;
    height: 48px;
    align-self: center;
    margin: 0 auto;
  }

  .lead-text-wrap {
    width: 100%;
    text-align: center;
  }

  .lead-text {
    font-size: 1.02rem;
    line-height: 1.6;
    text-align: center;
  }

  .intro-social-block {
    margin-top: 0.95rem;
    padding-top: 0.85rem;
  }

  .intro-social-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .intro-social-item {
    padding: 0.55rem 0.75rem;
    gap: 0.65rem;
  }

  /* Schedule Card */
  .schedule-card {
    padding: 1.15rem 1rem 1.15rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius-sm);
  }

  .schedule-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }

  .schedule-header-icon {
    width: 38px;
    height: 38px;
  }

  .schedule-header-icon svg {
    width: 20px;
    height: 20px;
  }

  .schedule-header-text h2 {
    font-size: 1.28rem;
  }

  .next-service-box {
    padding: 0.95rem 0.95rem;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-xs);
    gap: 0.35rem;
  }

  .next-service-date {
    font-size: 1.18rem;
    line-height: 1.25;
  }

  .schedule-details-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .schedule-detail-item {
    padding: 0.85rem 0.9rem;
    border-radius: var(--radius-xs);
  }

  :is(.schedule-lang-note, .apps-language-note) {
    padding: 0.8rem 0.85rem;
    gap: 0.6rem;
    margin-top: 0.85rem;
  }

  /* Sermons Banner Mobile */
  .sermon-banner-wrap {
    margin-bottom: 1.35rem;
  }

  .sermon-banner-card {
    min-height: 80px;
    border-radius: var(--radius-sm);
  }

  .sermon-banner-img-wrap {
    width: 85px;
    min-width: 85px;
  }

  .sermon-banner-content {
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }

  .sermon-banner-title {
    font-size: 1.02rem;
  }

  /* Accordions */
  .accordion-group {
    gap: 0.85rem;
  }

  .accordion-item {
    border-radius: var(--radius-sm);
  }

  .accordion-header {
    padding: 0.95rem 1rem;
    font-size: 1.18rem;
    gap: 0.65rem;
  }

  .accordion-title {
    min-height: 30px;
  }

  .accordion-icon {
    width: 30px;
    height: 30px;
  }

  .accordion-icon svg {
    width: 15px;
    height: 15px;
  }

  .accordion-body {
    padding: 0 0.95rem;
  }

  .accordion-item.active .accordion-body {
    padding-bottom: 1.1rem;
  }

  .identity-list {
    gap: 0.75rem;
    margin-top: 0.35rem;
  }

  .identity-item {
    padding: 0.9rem 0.9rem;
    gap: 0.75rem;
    border-radius: var(--radius-xs);
  }

  .identity-icon-wrap {
    width: 34px;
    height: 34px;
  }

  .identity-icon-wrap svg {
    width: 17px;
    height: 17px;
  }

  .identity-title {
    font-size: 1.08rem;
    margin-bottom: 0.25rem;
  }

  .info-box {
    padding: 0.9rem 0.9rem;
    margin-top: 0.35rem;
    border-radius: var(--radius-xs);
  }

  .scripture-card {
    padding: 0.9rem 0.9rem;
    margin: 0.85rem 0;
    border-radius: var(--radius-xs);
  }

  .luther-rose-quote-box {
    padding: 0.9rem 0.9rem;
    margin: 0.85rem 0;
    gap: 0.75rem;
    border-radius: var(--radius-xs);
  }

  /* Contact Section */
  .contact-inner {
    padding: 0.95rem 0.9rem 1.1rem;
    margin-top: 0.35rem;
    border-radius: var(--radius-xs);
  }

  .contact-intro-text {
    margin-bottom: 0.95rem;
    font-size: 0.98rem;
  }

  .contact-single-card {
    padding: 0.9rem 0.9rem;
    margin-bottom: 1rem;
    gap: 0.75rem;
    border-radius: var(--radius-xs);
  }

  .contact-card-icon {
    width: 34px;
    height: 34px;
  }

  .contact-card-icon svg {
    width: 17px;
    height: 17px;
  }

  .contact-card-value {
    font-size: 0.98rem;
  }

  .contact-form-container {
    padding: 1rem 0.9rem;
    margin-top: 0.75rem;
    border-radius: var(--radius-xs);
  }

  .contact-form-heading {
    font-size: 1.08rem;
  }

  .contact-form-subtext {
    margin-bottom: 0.95rem;
    font-size: 0.86rem;
  }

  .contact-form {
    gap: 0.75rem;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
  }

  .form-textarea {
    min-height: 80px;
  }

  .contact-send-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  /* Construction Hero (View 1) */
  .construction-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-sm);
  }

  .construction-badge-seal {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 1rem;
  }

  .construction-badge-seal svg {
    width: 42px;
    height: 42px;
  }

  .construction-title {
    font-size: 1.45rem;
  }

  .construction-text {
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
  }

  .substack-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
  }

  /* Footer */
  .site-footer {
    padding: 1.75rem 0 calc(6.75rem + env(safe-area-inset-bottom));
  }

  .footer-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.65rem;
  }

  .header-card {
    padding: 0.75rem 0.85rem;
  }

  .lead-card,
  .schedule-card,
  .accordion-header,
  .accordion-body,
  .construction-card {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .next-service-box,
  .schedule-detail-item,
  .identity-item,
  .info-box,
  .scripture-card,
  .luther-rose-quote-box,
  .contact-inner,
  .contact-single-card,
  .contact-form-container {
    padding: 0.8rem 0.75rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.45rem;
  }

  .header-card,
  .lead-card,
  .schedule-card,
  .accordion-header,
  .accordion-body,
  .construction-card {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}


/* ==========================================================================
   LIGHT MODE THEME SYSTEM
   Alabaster, Milk Glass & Illuminated Renaissance Parchment
   ========================================================================== */

html[data-theme="light"],
body[data-theme="light"] {
  /* Alabaster & Milk Glass Surfaces */
  --glass-bg-primary: rgba(255, 255, 255, 0.84);
  --glass-bg-secondary: rgba(253, 250, 245, 0.90);
  --glass-bg-hover: rgba(255, 255, 255, 0.96);
  --glass-bg-elevated: rgba(255, 255, 255, 0.95);
  --glass-bg-nested: rgba(244, 238, 226, 0.70);
  --glass-bg-nested-hover: rgba(240, 232, 218, 0.90);
  --summary-bg: #f4efe5;

  /* Specular borders & stone/gold edge highlights */
  --glass-border: rgba(28, 25, 23, 0.14);
  --glass-border-hover: rgba(28, 25, 23, 0.28);
  --glass-border-subtle: rgba(28, 25, 23, 0.08);
  --glass-specular-top: inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 14px 40px 0 rgba(60, 45, 20, 0.12), 0 2px 8px 0 rgba(0, 0, 0, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
  --glass-shadow-hover: 0 18px 50px 0 rgba(60, 45, 20, 0.18), 0 4px 12px 0 rgba(0, 0, 0, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 1);

  /* Typographic Ink */
  --text-main: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #57534e;
  --text-gold: var(--gold-primary);

  /* Celestial Gold (High contrast for light background) */
  --highlight-color: #996515;
  --luther-rose-color: #996515;
  --symbolic-icon-color: #996515;
  --symbolic-icon-surface: color-mix(in srgb, var(--symbolic-icon-color) 10%, transparent);
  --symbolic-icon-border: color-mix(in srgb, var(--symbolic-icon-color) 30%, transparent);
  --gold-primary: var(--highlight-color);
  --gold-warm: var(--highlight-color);
  --gold-deep: var(--highlight-color);
  --gold-subtle: color-mix(in srgb, var(--highlight-color) 12%, transparent);
  --gold-border: color-mix(in srgb, var(--highlight-color) 40%, transparent);
  --gold-on-primary: #ffffff;
  --gold-button-ink: var(--gold-on-primary);
  --ui-control-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(62, 38, 8, 0.24), 0 3px 8px rgba(60, 45, 20, 0.18);
  --ui-control-pressed: inset 0 2px 5px rgba(62, 38, 8, 0.24);

  /* Crimson */
  --crimson-primary: #dc2626;
  --crimson-hover: #b91c1c;
  --crimson-bright: #ef4444;
  --crimson-subtle: rgba(220, 38, 38, 0.12);
  --crimson-border: rgba(220, 38, 38, 0.35);
}

[data-theme="light"] body,
body[data-theme="light"] {
  background-color: #060609;
  color: #1c1917;
}

[data-theme="light"] .bg-canvas {
  background-color: #060609;
  opacity: 1;
  filter: brightness(1.0) contrast(1.0) saturate(1.0);
}

/* Background image peters out to black around all sides of the viewbox (15% less aggressive) */
[data-theme="light"] .bg-overlay {
  background: 
    radial-gradient(ellipse at center, rgba(6, 6, 10, 0) 0%, rgba(6, 6, 10, 0) 62%, rgba(6, 6, 10, 0.35) 84%, rgba(4, 4, 7, 0.65) 100%),
    linear-gradient(to bottom, rgba(4, 4, 7, 0.45) 0%, rgba(6, 6, 10, 0) 10%, rgba(6, 6, 10, 0) 90%, rgba(4, 4, 7, 0.55) 100%),
    linear-gradient(to right, rgba(4, 4, 7, 0.45) 0%, rgba(6, 6, 10, 0) 10%, rgba(6, 6, 10, 0) 90%, rgba(4, 4, 7, 0.45) 100%);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: #1a1715 !important;
  text-shadow: none !important;
}

[data-theme="light"] p {
  color: #44403c;
}

[data-theme="light"] .logo-title {
  color: #1a1715 !important;
  text-shadow: none !important;
}

[data-theme="light"] .logo-subtitle {
  color: var(--gold-primary);
}

[data-theme="light"] .logo-text-block:where(html.can-hover *):hover .logo-title {
  color: #1a1715 !important;
}

[data-theme="light"] .logo-text-block:where(html.can-hover *):hover .logo-subtitle {
  color: var(--gold-warm) !important;
}

/* Intro Lead Blurb & Mission Name in Light Mode */
[data-theme="light"] .lead-text {
  color: #292524 !important;
}

[data-theme="light"] .lead-text strong {
  color: #1c1917 !important;
  font-weight: 700;
}

[data-theme="light"] .social-pill-btn {
  background: rgba(255, 255, 255, 0.75);
  color: #1c1917 !important;
  border-color: var(--glass-border);
}

[data-theme="light"] .social-pill-btn:where(html.can-hover *):hover {
  background: #ffffff;
  color: #1c1917 !important;
  border-color: var(--glass-border-hover);
}

[data-theme="light"] .intro-social-item {
  color: #1c1917;
}

[data-theme="light"] .intro-social-label {
  color: #1c1917 !important;
}

[data-theme="light"] .intro-social-handle {
  color: var(--gold-primary);
}

[data-theme="light"] .service-val {
  color: #1c1917 !important;
}

[data-theme="light"] .service-label {
  color: var(--gold-primary);
}

[data-theme="light"] .schedule-cadence {
  color: var(--text-muted) !important;
}

[data-theme="light"] .schedule-time-sub,
[data-theme="light"] .schedule-loc-sub {
  color: #78716c !important;
}

[data-theme="light"] .next-service-badge {
  background-color: rgba(22, 163, 74, 0.14) !important;
  color: #15803d !important;
  border: 1px solid rgba(22, 163, 74, 0.35) !important;
}

[data-theme="light"] .schedule-map-btn {
  background: rgba(255, 255, 255, 0.75);
  color: #1c1917 !important;
  border-color: var(--glass-border);
}

[data-theme="light"] .schedule-map-btn:where(html.can-hover *):hover {
  background: #ffffff;
  color: #1c1917 !important;
  border-color: var(--glass-border-hover);
}

[data-theme="light"] .accordion-header {
  color: #1c1917 !important;
}

[data-theme="light"] .accordion-header:where(html.can-hover *):hover {
  color: #1c1917 !important;
  background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .accordion-title {
  color: #1c1917 !important;
}

[data-theme="light"] .accordion-icon {
  background-color: rgba(28, 25, 23, 0.05);
  border-color: rgba(28, 25, 23, 0.12);
  color: #78716c;
}

[data-theme="light"] .accordion-header:where(html.can-hover *):hover .accordion-icon {
  background-color: rgba(28, 25, 23, 0.09);
  border-color: rgba(28, 25, 23, 0.22);
  color: #1c1917;
}

[data-theme="light"] .accordion-item.active .accordion-icon {
  background-color: #1c1917;
  border-color: #1c1917;
  color: #fdfcf9;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


[data-theme="light"] .lead-luther-rose {
  filter: none !important;
  color: var(--luther-rose-color);
}

[data-theme="light"] .next-service-date {
  color: #0a0a0f !important;
  text-shadow: none !important;
}

[data-theme="light"] .schedule-detail-value {
  color: #0a0a0f !important;
}

[data-theme="light"] :is(.schedule-lang-note, .apps-language-note) {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: color-mix(in srgb, var(--highlight-color) 25%, transparent) !important;
  border-left-color: var(--gold-primary) !important;
  box-shadow: 0 4px 16px rgba(60, 45, 20, 0.06);
}

[data-theme="light"] :is(.schedule-lang-note, .apps-language-note) p {
  color: #44403c !important;
}

[data-theme="light"] :is(.schedule-lang-note, .apps-language-note) p strong {
  color: var(--highlight-color) !important;
}

/* Sermons & Translations Banner Light Mode */
[data-theme="light"] .sermon-banner-card:where(html.can-hover *):hover .sermon-banner-content {
  background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sermon-banner-title {
  color: #1a1715 !important;
  text-shadow: none !important;
}

[data-theme="light"] .sermon-banner-card:where(html.can-hover *):hover .sermon-banner-title {
  color: #1a1715 !important;
}

[data-theme="light"] .sermon-banner-author {
  color: #44403c !important;
}

/* Section 1 & Section 2 Content Elements */
[data-theme="light"] .identity-item {
  background: rgba(255, 255, 255, 0.75);
  border-color: color-mix(in srgb, var(--highlight-color) 20%, transparent);
}

[data-theme="light"] .identity-title {
  color: #1c1917 !important;
}

[data-theme="light"] .identity-text {
  color: #44403c !important;
}

[data-theme="light"] .identity-text strong {
  color: #1c1917 !important;
}

[data-theme="light"] .identity-verse {
  color: var(--gold-primary) !important;
}

[data-theme="light"] .identity-icon-wrap {
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.25);
  color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(60, 45, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .identity-item:where(html.can-hover *):hover .identity-icon-wrap {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--gold-primary);
}

[data-theme="light"] .info-box {
  background: var(--glass-bg-nested);
  border-color: color-mix(in srgb, var(--highlight-color) 20%, transparent);
  border-left: 4px solid var(--gold-primary);
  box-shadow: 0 4px 16px rgba(60, 45, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .info-box p {
  color: #44403c !important;
}

[data-theme="light"] .info-box strong {
  color: #1c1917 !important;
}

[data-theme="light"] .scripture-card {
  background: rgba(244, 237, 224, 0.82) !important;
  border-left-color: var(--gold-primary) !important;
  border-color: rgba(180, 83, 9, 0.25) !important;
}

[data-theme="light"] .scripture-verse {
  color: #1c1917 !important;
}

[data-theme="light"] .scripture-ref {
  color: var(--gold-primary) !important;
}

[data-theme="light"] .luther-rose-quote-box {
  background: rgba(246, 240, 228, 0.85) !important;
  border-color: rgba(180, 83, 9, 0.28) !important;
}

[data-theme="light"] .luther-rose-quote {
  color: #1c1917 !important;
}

/* Section 3: Kapcsolat és Elérhetőség Child Elements */
[data-theme="light"] .contact-inner {
  background: var(--glass-bg-nested) !important;
  border-color: color-mix(in srgb, var(--highlight-color) 20%, transparent) !important;
  box-shadow: 0 4px 16px rgba(60, 45, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .contact-intro-text {
  color: #44403c !important;
}

[data-theme="light"] .contact-single-card {
  background: rgba(255, 255, 255, 0.90) !important;
  border-color: color-mix(in srgb, var(--highlight-color) 25%, transparent) !important;
  border-left: 3.5px solid var(--gold-primary) !important;
  box-shadow: 0 4px 16px rgba(60, 45, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .contact-single-card:where(html.can-hover *):hover {
  border-color: var(--glass-border-hover) !important;
  box-shadow: 0 8px 24px rgba(60, 45, 20, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

[data-theme="light"] .contact-card-icon {
  background-color: var(--symbolic-icon-surface) !important;
  border-color: var(--symbolic-icon-border) !important;
  color: var(--symbolic-icon-color) !important;
}

[data-theme="light"] .contact-card-label {
  color: var(--text-muted) !important;
}

[data-theme="light"] .contact-card-value {
  color: #1c1917 !important;
  text-decoration-color: var(--gold-border) !important;
}

[data-theme="light"] .contact-card-value:where(html.can-hover *):hover {
  color: #1c1917 !important;
  text-decoration-color: rgba(28, 25, 23, 0.7) !important;
}

/* Sacred and explanatory symbols do not inherit rotating liturgical accents. */
:is(
  .desktop-apps-header-icon,
  .schedule-header-icon,
  .desktop-side-panel-icon,
  .identity-icon-wrap,
  .contact-card-icon,
  .schedule-detail-label svg,
  .schedule-lang-note > svg,
  .apps-language-note > svg,
  .next-service-cadence svg
) {
  color: var(--symbolic-icon-color) !important;
}

:is(
  .desktop-apps-header-icon,
  .schedule-header-icon,
  .desktop-side-panel-icon,
  .identity-icon-wrap,
  .contact-card-icon
) {
  background: var(--symbolic-icon-surface) !important;
  border-color: var(--symbolic-icon-border) !important;
}

[data-theme="light"] .contact-card-hint {
  color: #78716c !important;
}

[data-theme="light"] .contact-form-container {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid color-mix(in srgb, var(--highlight-color) 25%, transparent) !important;
  border-top: 3.5px solid var(--gold-primary) !important;
  box-shadow: 0 4px 16px rgba(60, 45, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .contact-form-heading {
  color: #1c1917 !important;
}

[data-theme="light"] .contact-form-heading svg {
  color: var(--gold-primary) !important;
}

[data-theme="light"] .contact-form-subtext {
  color: #44403c !important;
}

[data-theme="light"] .form-field label {
  color: #1c1917 !important;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #ffffff !important;
  color: #1c1917 !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: #a8a29e !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background: #ffffff !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight-color) 16%, transparent) !important;
}

/* Modal & Footer */
[data-theme="light"] .construction-title {
  color: #1c1917 !important;
  text-shadow: none !important;
}

[data-theme="light"] .construction-text {
  color: #44403c !important;
}

[data-theme="light"] .construction-badge {
  background: color-mix(in srgb, var(--highlight-color) 12%, transparent) !important;
  color: var(--highlight-color) !important;
  border-color: color-mix(in srgb, var(--highlight-color) 30%, transparent) !important;
}

[data-theme="light"] .modal-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: color-mix(in srgb, var(--highlight-color) 30%, transparent) !important;
  color: #1c1917 !important;
}

[data-theme="light"] .modal-card h3 {
  color: #1c1917 !important;
}

[data-theme="light"] .modal-input {
  background: #ffffff !important;
  color: #1c1917 !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .site-footer {
  color: #78716c !important;
}

[data-theme="light"] .site-footer p {
  color: #78716c !important;
}

[data-theme="light"] .footer-logo-title {
  color: #1c1917 !important;
}

/* Main-column Apps card on compact/mobile layouts. The grid is populated from
   the Quick Links source while intentionally omitting its social shortcuts. */
@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  .desktop-apps-card {
    display: block;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
  }

  .desktop-apps-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border-subtle);
  }

  .desktop-apps-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--symbolic-icon-color);
    background: var(--symbolic-icon-surface);
    border: 1px solid var(--symbolic-icon-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  .desktop-apps-header-icon svg { width: 22px; height: 22px; }
  .desktop-apps-header-text { min-width: 0; }
  .desktop-apps-header-text h2 {
    margin: 0 0 0.15rem;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
  }
  .desktop-apps-header-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
  }
  [data-theme="light"] .desktop-apps-header-text h2 { color: #1c1917; }

  .desktop-app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .desktop-apps-card .mobile-app-link {
    min-height: 104px;
    padding: 0.7rem 0.45rem 0.55rem;
  }

  .desktop-apps-card .mobile-app-link[hidden] { display: none; }
}

@media (max-width: 380px) {
  .desktop-apps-card { padding: 1.2rem; }
  .desktop-apps-header-text h2 { font-size: 1.2rem; }
  .desktop-apps-header-text p { font-size: 0.82rem; }
}

/* Mobile hierarchy and exact header-system alignment. */
@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  [data-theme="light"] .mobile-function-dock {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 238, 226, 0.82));
  }

  :is(.settings-menu-heading, .mobile-apps-heading) {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .desktop-apps-header {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
  }

  .desktop-apps-header-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .desktop-apps-header-icon svg {
    width: 20px;
    height: 20px;
  }

  .desktop-apps-header-text h2 {
    font-size: 1.28rem;
    letter-spacing: -0.01em;
  }

  .desktop-apps-header-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 1179px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .schedule-details-grid > .schedule-detail-item:first-child {
    display: none;
  }
}

html[data-theme="dark"] .schedule-lang-note p strong,
body[data-theme="dark"] .schedule-lang-note p strong,
html[data-theme="light"] .schedule-lang-note p strong,
body[data-theme="light"] .schedule-lang-note p strong {
  color: #e6c36a !important;
}

@media (min-width: 1180px) and (hover: hover) and (pointer: fine) {
  .desktop-quick-links-toggle {
    position: fixed;
    right: clamp(1rem, 2vw, 2.5rem);
    bottom: clamp(1rem, 2vw, 2.5rem);
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: var(--gold-button-ink);
    background: var(--highlight-color);
    border: var(--ui-control-border);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-control-bevel), 0 10px 28px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .desktop-quick-links-toggle svg { width: 23px; height: 23px; }
  .desktop-quick-links-toggle:hover { transform: translateY(-2px); box-shadow: var(--ui-control-bevel), 0 14px 34px rgba(0, 0, 0, 0.46); }
  .desktop-quick-links-toggle:active { transform: translateY(2px); box-shadow: var(--ui-control-pressed); }
  .desktop-quick-links-toggle[aria-expanded="true"] { transform: translateY(-3px); box-shadow: var(--ui-control-pressed), 0 0 0 2px rgba(255, 255, 255, 0.28); }

  .mobile-apps-menu {
    position: fixed;
    right: clamp(1rem, 2vw, 2.5rem);
    bottom: calc(clamp(1rem, 2vw, 2.5rem) + 4.25rem);
    z-index: 1199;
    display: block;
    width: min(27rem, calc(100vw - 2 * clamp(1rem, 2vw, 2.5rem)));
    max-height: calc(100dvh - clamp(1rem, 2vw, 2.5rem) - 5.5rem);
    padding: 0.8rem;
    overflow-y: auto;
    background: var(--glass-bg-primary);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s linear 0.28s;
  }

  .mobile-apps-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .mobile-apps-heading { margin: 0 0 0.65rem; padding: 0 0.25rem; color: var(--highlight-color); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  .mobile-apps-menu .apps-language-note { margin-bottom: 0.65rem; }
  .mobile-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
  .mobile-app-link { display: flex; min-width: 0; min-height: 108px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.45rem; padding: 0.65rem 0.4rem 0.5rem; color: var(--text-main); background: var(--glass-bg-nested); border: 1px solid var(--glass-border-subtle); border-radius: var(--radius-sm); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
  .mobile-app-link:hover { border-color: var(--glass-border-hover); background: var(--glass-bg-nested-hover); transform: translateY(-2px); }
  .mobile-app-link:is(.is-disabled, .is-language-disabled) { opacity: 0.48; filter: grayscale(0.8); pointer-events: none; }
  .mobile-app-link strong { font-family: var(--font-serif); font-size: 0.82rem; line-height: 1.15; }
  .mobile-app-mark, .mobile-app-icon-wrap, .mobile-app-icon { display: inline-flex; width: 56px; height: 56px; flex: 0 0 56px; align-items: center; justify-content: center; border: var(--ui-control-border); border-radius: var(--ui-control-radius); box-shadow: var(--ui-control-bevel); }
  .mobile-app-mark { color: var(--gold-on-primary); background: var(--highlight-color); }
  .mobile-app-mark svg { width: 28px; height: 28px; }
  .mobile-app-icon-wrap { position: relative; }
  .mobile-app-icon { object-fit: cover; overflow: hidden; }
  .mobile-app-platform-badge { position: absolute; right: -4px; bottom: -4px; display: grid; width: 20px; height: 20px; place-items: center; color: #fff; border: 2px solid var(--glass-bg-primary); border-radius: 50%; }
  .mobile-app-platform-badge svg { width: 12px; height: 12px; }
  .mobile-app-platform-badge.facebook-badge { background: #1877f2; }
  .mobile-app-platform-badge.substack-badge { background: #ff6719; }

  #view-content.mobile-summary-active .mobile-summary-view {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: block;
    overflow: auto;
    background: radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--highlight-color) 12%, transparent), transparent 30rem), var(--summary-bg);
  }
  .mobile-summary-shell { width: min(46rem, calc(100% - 3rem)); min-height: 100%; margin: 0 auto; padding: 2rem 0 2.5rem; }
  .mobile-summary-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
  .mobile-summary-kicker { color: var(--highlight-color); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
  .mobile-summary-header h1 { margin: 0; font-size: 2.25rem; }
  .mobile-summary-close { display: grid; width: 3rem; height: 3rem; place-items: center; color: var(--gold-button-ink); background: var(--highlight-color); border: var(--ui-control-border); border-radius: 50%; box-shadow: var(--ui-control-bevel); }
  .mobile-summary-close svg { width: 1.35rem; height: 1.35rem; }
  .mobile-summary-lead { margin: 0 0 1rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.55; }
  .mobile-summary-service, .mobile-summary-about, .mobile-summary-action, .mobile-summary-socials a { background: var(--glass-bg-primary); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); box-shadow: var(--glass-shadow); }
  .mobile-summary-service, .mobile-summary-about { padding: 1.1rem 1.25rem; }
  .mobile-summary-service h2, .mobile-summary-about h2 { margin: 0.35rem 0; }
  .mobile-summary-service p, .mobile-summary-about p { margin: 0; color: var(--text-secondary); }
  .mobile-summary-actions { display: grid; gap: 0.75rem; margin: 0.75rem 0; }
  .mobile-summary-action { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; color: var(--text-main); text-decoration: none; }
  .mobile-summary-action > svg { width: 1.4rem; color: var(--highlight-color); }
  .mobile-summary-action span { display: grid; }
  .mobile-summary-action small { color: var(--text-muted); font-family: var(--font-sans); text-transform: uppercase; }
  .mobile-summary-socials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .mobile-summary-socials a { display: flex; min-height: 3.5rem; align-items: center; justify-content: center; gap: 0.4rem; color: var(--text-main); text-decoration: none; }
  .summary-platform-mark { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; color: #fff; background: #1877f2; border-radius: 0.42rem; font: 800 1rem/1 Arial,sans-serif; }
  .summary-substack-mark { background: #ff6719; font-size: 0.72rem; }
  .summary-discord-mark { background: #5865f2; padding: 3px; }
  .summary-discord-mark svg { width: 14px; height: 14px; display: block; }
  .mobile-summary-enter { display: flex; width: 100%; min-height: 3.25rem; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 0.75rem; color: var(--gold-button-ink); background: var(--highlight-color); border: var(--ui-control-border); border-radius: var(--ui-control-radius); box-shadow: var(--ui-control-bevel); }
  .mobile-summary-enter svg { width: 1.2rem; }
body.summary-view-open { overflow: hidden; }
}

/* Daily Verse: same primary-card and header family as Schedule / Bookshelf. */
/* ==========================================================================
   Daily Verse & Liturgical Sanctuary Subsystem
   ========================================================================== */

.daily-verse-card {
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.daily-verse-card:where(html.can-hover *):hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.daily-lectionary-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.daily-lectionary-placeholder {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.055);
  border: var(--ui-control-border);
  border-color: var(--glass-border-subtle);
  border-radius: var(--ui-control-radius);
  box-shadow: var(--ui-control-bevel);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 750;
  opacity: 0.48;
  filter: grayscale(0.85);
  cursor: not-allowed;
}

.daily-lectionary-placeholder svg {
  width: 22px;
  height: 22px;
}

[data-theme="light"] .daily-lectionary-placeholder {
  color: #78716c;
  background: rgba(28, 25, 23, 0.055);
  border-color: rgba(28, 25, 23, 0.14);
}

.daily-verse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border-subtle);
  flex-wrap: wrap;
}

.daily-verse-header-main {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.daily-verse-header-icon {
  display: flex;
  width: clamp(38px, 4.5vw, 44px);
  height: clamp(38px, 4.5vw, 44px);
  flex: 0 0 clamp(38px, 4.5vw, 44px);
  align-items: center;
  justify-content: center;
  color: var(--symbolic-icon-color);
  background: var(--symbolic-icon-surface);
  border: 1px solid var(--symbolic-icon-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.daily-verse-header-icon svg {
  width: clamp(20px, 2.5vw, 24px);
  height: clamp(20px, 2.5vw, 24px);
}

.daily-verse-header-text h2 {
  margin: 0 0 0.1rem;
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.daily-verse-header-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  font-style: italic;
}

[data-theme="light"] .daily-verse-header-text h2 {
  color: var(--text-main) !important;
}

.daily-verse-season-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.daily-verse-season-kicker {
  display: block;
  color: var(--gold-primary);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.1;
  text-transform: uppercase;
}

[data-theme="light"] .daily-verse-season-kicker {
  color: var(--highlight-color) !important;
}

.daily-verse-season-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-sizing: border-box;
}

.daily-verse-season-tag .season-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
}

/* Green (Trinity & Time after Trinity) */
.daily-verse-season-tag[data-season-color="green"] {
  background-color: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}
.daily-verse-season-tag[data-season-color="green"] .season-dot {
  background-color: #22c55e;
}
.daily-verse-season-tag[data-season-color="green"] .season-tag-name {
  color: inherit;
}

/* Violet (Advent, Pre-Lent, Lent) */
.daily-verse-season-tag[data-season-color="violet"] {
  background-color: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.4);
}
.daily-verse-season-tag[data-season-color="violet"] .season-dot {
  background-color: #a855f7;
}
.daily-verse-season-tag[data-season-color="violet"] .season-tag-name {
  color: inherit;
}

/* Red (Pentecost, Reformation, Apostles/Martyrs) */
.daily-verse-season-tag[data-season-color="red"] {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}
.daily-verse-season-tag[data-season-color="red"] .season-dot {
  background-color: #ef4444;
}
.daily-verse-season-tag[data-season-color="red"] .season-tag-name {
  color: inherit;
}

/* White (Christmas, Epiphany, Easter, Christ's Feasts) */
.daily-verse-season-tag[data-season-color="white"] {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.daily-verse-season-tag[data-season-color="white"] .season-dot {
  background-color: #ffffff;
}
.daily-verse-season-tag[data-season-color="white"] .season-tag-name {
  color: inherit;
}

/* Light Mode Overrides for all liturgical colors */
[data-theme="light"] .daily-verse-season-tag[data-season-color="green"] {
  background-color: rgba(22, 163, 74, 0.14) !important;
  color: #15803d !important;
  border-color: rgba(22, 163, 74, 0.35) !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="green"] .season-dot {
  background-color: #16a34a !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="green"] .season-tag-name {
  color: inherit !important;
}

[data-theme="light"] .daily-verse-season-tag[data-season-color="violet"] {
  background-color: rgba(147, 51, 234, 0.12) !important;
  color: #7e22ce !important;
  border-color: rgba(147, 51, 234, 0.35) !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="violet"] .season-dot {
  background-color: #9333ea !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="violet"] .season-tag-name {
  color: inherit !important;
}

[data-theme="light"] .daily-verse-season-tag[data-season-color="red"] {
  background-color: rgba(220, 38, 38, 0.12) !important;
  color: #b91c1c !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="red"] .season-dot {
  background-color: #dc2626 !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="red"] .season-tag-name {
  color: inherit !important;
}

[data-theme="light"] .daily-verse-season-tag[data-season-color="white"] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="white"] .season-dot {
  background-color: #ffffff !important;
  border: 1.5px solid #475569 !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="white"] .season-tag-name {
  color: #0f172a !important;
  font-weight: 750 !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="white"].is-interactive:where(html.can-hover *):hover {
  background-color: #ffffff !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--gold-primary) !important;
}

/* Black (Good Friday, Holy Saturday, Ash Wednesday) */
.daily-verse-season-tag[data-season-color="black"] {
  background-color: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.35);
}
.daily-verse-season-tag[data-season-color="black"] .season-dot {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.daily-verse-season-tag[data-season-color="black"] .season-tag-name {
  color: inherit;
}

[data-theme="light"] .daily-verse-season-tag[data-season-color="black"] {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="black"] .season-dot {
  background-color: #000000 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="black"] .season-tag-name {
  color: #ffffff !important;
  font-weight: 750 !important;
}
[data-theme="light"] .daily-verse-season-tag[data-season-color="black"].is-interactive:where(html.can-hover *):hover {
  background-color: #0f172a !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--gold-primary) !important;
}

/* ==========================================================================
   Liturgical Season Styling & Command Variables
   ========================================================================== */

:root,
.daily-verse-card,
.daily-verse-header,
.daily-narrative-pane,
.daily-verse-context {
  --season-block-color: #166534;
  --season-block-ink: #ffffff;
  --season-control-color: #14532d;
  --season-control-ink: #ffffff;
}

[data-season-color="green"],
.daily-verse-card[data-season-color="green"],
.daily-narrative-pane[data-season-color="green"] {
  --season-block-color: #166534;
  --season-block-ink: #ffffff;
  --season-control-color: #14532d;
  --season-control-ink: #ffffff;
}

[data-season-color="violet"],
.daily-verse-card[data-season-color="violet"],
.daily-narrative-pane[data-season-color="violet"] {
  --season-block-color: #6b21a8;
  --season-block-ink: #ffffff;
  --season-control-color: #581c87;
  --season-control-ink: #ffffff;
}

[data-season-color="red"],
.daily-verse-card[data-season-color="red"],
.daily-narrative-pane[data-season-color="red"] {
  --season-block-color: #991b1b;
  --season-block-ink: #ffffff;
  --season-control-color: #7f1d1d;
  --season-control-ink: #ffffff;
}

[data-season-color="white"],
.daily-verse-card[data-season-color="white"],
.daily-narrative-pane[data-season-color="white"] {
  --season-block-color: #f8fafc;
  --season-block-ink: #1c1917;
  --season-control-color: #e2e8f0;
  --season-control-ink: #1c1917;
}

[data-season-color="black"],
.daily-verse-card[data-season-color="black"],
.daily-narrative-pane[data-season-color="black"] {
  --season-block-color: #18181b;
  --season-block-ink: #ffffff;
  --season-control-color: #09090b;
  --season-control-ink: #ffffff;
}

[data-season="christmas"],
.daily-verse-card[data-season="christmas"],
.daily-narrative-pane[data-season="christmas"] {
  --season-control-color: #e6c36a;
  --season-control-ink: #17130a;
}

[data-theme="light"] [data-season="christmas"],
[data-theme="light"] .daily-verse-card[data-season="christmas"],
[data-theme="light"] .daily-narrative-pane[data-season="christmas"] {
  --season-control-color: #996515;
  --season-control-ink: #ffffff;
}

.daily-verse-context {
  margin: 0 0 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.daily-calendar-panel {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
  align-items: stretch;
  margin-bottom: 0.85rem;
}

/* Left Column: Fixed-Width Self-Contained Calendar Widget */
.daily-cal-widget-col {
  display: flex;
  flex: 0 0 248px;
  width: 248px;
  min-width: 248px;
  max-width: 248px;
}

.daily-cal-widget {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.daily-cal-widget-head {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.daily-cal-nav-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 6px;
  box-shadow: var(--ui-control-bevel);
  cursor: pointer;
  color: var(--text-main);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.daily-cal-nav-btn:where(html.can-hover *):hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
}

.daily-cal-nav-btn:active {
  transform: translateY(1px);
  box-shadow: var(--ui-control-pressed);
}

.daily-cal-nav-btn svg {
  width: 13px;
  height: 13px;
}

.daily-cal-widget-month {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.1vw, 0.86rem);
  font-weight: 750;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-cal-widget-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 0.3rem;
  width: 100%;
  box-sizing: border-box;
}

.daily-cal-widget-weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-muted);
  line-height: 1;
  padding: 1px 0;
}

.daily-cal-widget-weekdays span.is-sunday-label {
  color: var(--gold-primary) !important;
  font-weight: 900;
}

.daily-cal-widget-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
}

.daily-calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 1vw, 0.76rem);
  font-weight: 650;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-main);
  cursor: pointer;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.daily-calendar-day.is-sunday {
  color: var(--gold-primary);
  font-weight: 750;
  background: rgba(255, 255, 255, 0.08);
}

.daily-calendar-day.has-feast {
  box-shadow: inset 0 -2.5px 0 var(--gold-primary);
}

.daily-calendar-day.has-feast[data-feast-color="red"] {
  box-shadow: inset 0 -2.5px 0 #ef4444;
}

.daily-calendar-day.has-feast[data-feast-color="white"] {
  box-shadow: inset 0 -2.5px 0 #f8fafc;
}

.daily-calendar-day.has-feast[data-feast-color="violet"] {
  box-shadow: inset 0 -2.5px 0 #a855f7;
}

.daily-calendar-day.has-feast[data-feast-color="green"] {
  box-shadow: inset 0 -2.5px 0 #22c55e;
}

.daily-calendar-day.has-feast[data-feast-color="black"] {
  box-shadow: inset 0 -2.5px 0 #475569;
}

.daily-calendar-day.is-today {
  outline: 2px solid var(--gold-primary);
  outline-offset: -2px;
}

.daily-calendar-day:where(html.can-hover *):hover {
  background: var(--glass-bg-nested-hover);
  border-color: var(--glass-border-hover);
}

.daily-calendar-day.is-selected {
  background: var(--gold-primary) !important;
  color: var(--gold-button-ink) !important;
  border-color: var(--gold-primary) !important;
  font-weight: 850;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--gold-primary) 45%, transparent) !important;
}

.daily-calendar-blank {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid transparent;
  padding: 0;
  margin: 0;
}

.daily-cal-widget-foot {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}

.daily-cal-today-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--ui-control-bevel);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.daily-cal-today-pill:where(html.can-hover *):hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
}

.daily-cal-today-pill svg {
  width: 11px;
  height: 11px;
}

/* ==========================================================================
   Side-by-Side Liturgical Status Bar (Under the horizontal rule, on top of everything)
   Always Equal Vertical Height on Desktop, Content Centered Vertically
   ========================================================================== */

.daily-status-cluster {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
  width: 100%;
  margin-bottom: 1rem;
}

.daily-status-top-row {
  display: contents;
}

.daily-mobile-date-controls {
  display: none !important;
}

.daily-date-display-pane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.85rem;
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.daily-date-pane-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1.2vw, 0.85rem);
  width: auto;
  min-height: 0;
}

.daily-date-number-display {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 850;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--gold-primary);
}

.daily-date-sub-display {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.daily-date-weekday-display {
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.3vw, 0.98rem);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.1;
}

.daily-date-full-display {
  font-family: var(--font-serif);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-style: italic;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DEDICATED LITURGICAL CHURCH CALENDAR ENCLOSURE */
.daily-narrative-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  color: var(--season-block-ink);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--season-block-color) 92%, #ffffff 8%), color-mix(in srgb, var(--season-block-color) 70%, #000000 30%));
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.daily-narrative-pane[data-season-color="green"] {
  background: radial-gradient(circle at 50% 0%, #166534, #14532d);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.daily-narrative-pane[data-season-color="violet"] {
  background: radial-gradient(circle at 50% 0%, #6b21a8, #4c1d95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.daily-narrative-pane[data-season-color="red"] {
  background: radial-gradient(circle at 50% 0%, #991b1b, #7f1d1d);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.daily-narrative-pane[data-season-color="black"] {
  background: radial-gradient(circle at 50% 0%, #27272a, #09090b);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.daily-narrative-badge-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.daily-narrative-badge-row[hidden],
.daily-narrative-feast-badge[hidden] {
  display: none !important;
}

.daily-narrative-feast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  background: rgba(253, 224, 71, 0.25);
  border: 1px solid rgba(253, 224, 71, 0.45);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  color: #ffffff;
}

.daily-narrative-feast-badge svg {
  width: 11px;
  height: 11px;
  fill: #fde047;
  stroke: #fde047;
}

.daily-narrative-pane[data-season-color="white"],
[data-season-color="white"] .daily-narrative-pane {
  background: radial-gradient(circle at 50% 0%, #ffffff, #f1f5f9) !important;
  color: #1c1917 !important;
  border-color: rgba(28, 25, 23, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 #ffffff !important;
}

.daily-narrative-pane[data-season-color="white"] .daily-verse-context-text,
[data-season-color="white"] .daily-narrative-pane .daily-verse-context-text {
  color: #1c1917 !important;
}

.daily-narrative-pane[data-season-color="white"] .daily-narrative-feast-badge,
[data-season-color="white"] .daily-narrative-pane .daily-narrative-feast-badge {
  background: rgba(180, 83, 9, 0.12) !important;
  border-color: rgba(180, 83, 9, 0.3) !important;
  color: #b45309 !important;
}

.daily-narrative-pane[data-season-color="white"] .daily-narrative-feast-badge svg,
[data-season-color="white"] .daily-narrative-pane .daily-narrative-feast-badge svg {
  fill: #b45309 !important;
  stroke: #b45309 !important;
}

.daily-verse-context-text {
  margin: 0;
  color: inherit;
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 1.1vw, 0.88rem);
  line-height: 1.5;
}

.daily-verse-context-text strong {
  color: inherit;
  font-weight: 800;
}

/* ==========================================================================
   Right Column: Reading Entries Grid (Occupy Space Where Date + Blurb Were)
   ========================================================================== */

.daily-cal-readings-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.daily-reading-groups {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
}

.daily-reading-groups-heading {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.daily-reading-group {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.42rem;
  width: 100%;
}

.daily-reading-group-title {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1;
  padding-left: 2px;
}

.daily-passages-deck {
  display: flex;
  flex-direction: row;
  min-height: 0;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
}

.daily-passage-block {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0.4rem 0.65rem;
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-sizing: border-box;
  gap: 0.55rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.daily-passage-block:where(html.can-hover *):hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
  background-color: var(--glass-bg-nested-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.daily-passage-block.is-active {
  border-color: var(--glass-border-hover);
  background-color: var(--glass-bg-nested-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-bottom: 2.5px solid var(--gold-primary) !important;
  transform: translateY(-2px);
}

.daily-block-icon {
  display: flex;
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
  margin: 0;
}

.daily-block-icon svg {
  width: 100%;
  height: 100%;
}

.daily-block-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.15rem;
  overflow: hidden;
}

.daily-block-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 0.35rem;
  line-height: 1;
}

.daily-block-kind {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold-primary);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-block-time {
  display: inline-block;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.daily-block-ref {
  display: block;
  width: 100%;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-block-active-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-primary);
}

.daily-sanctuary-wrapper {
  width: 100%;
}

.daily-reader-stage {
  position: fixed;
  top: max(1.5rem, env(safe-area-inset-top));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 1180;
  display: flex;
  width: min(732px, calc(100vw - 3rem));
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(calc(50vw + 50%), 0, 0);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0.52s;
}

.daily-reader-stage.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transition-delay: 0s;
}

@media (min-width: 1180px) and (hover: hover) and (pointer: fine) {
  .daily-reader-stage {
    width: min(calc(732px + 10vw), calc(100vw - 3rem));
  }
}

#view-content > .main-content {
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease, opacity 0.35s ease;
}

#view-content.daily-reader-open > .main-content {
  transform: translate3d(calc(-100vw - 2rem), 0, 0);
  pointer-events: none;
}

#view-content.daily-reader-ui-hidden > .site-header,
#view-content.daily-reader-ui-hidden > .mobile-function-dock {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#view-content.daily-reader-ui-hidden > .mobile-function-dock {
  transform: translate3d(-50%, calc(100% + 2rem), 0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1), opacity 0.24s ease, visibility 0s linear 0.4s;
}

body.daily-reader-view-open {
  overflow: hidden;
}

@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  .daily-reader-stage {
    top: max(1rem, env(safe-area-inset-top));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   Active Scripture Sanctuary (Fluid Natural Height, ZERO Scrollbars)
   ========================================================================== */

.daily-reader-sanctuary {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background: #101014;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: none;
}

.daily-sanctuary-header {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-right: clamp(3.4rem, 6vw, 4.2rem);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.daily-sanctuary-title-group {
  min-width: 0;
  flex: 1 1 auto;
}

.daily-sanctuary-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.daily-sanctuary-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
}

.daily-sanctuary-icon svg {
  width: 100%;
  height: 100%;
}

.daily-sanctuary-dot {
  opacity: 0.6;
}

.daily-sanctuary-time {
  color: var(--text-muted);
}

.daily-sanctuary-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.daily-reader-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 5.5vw, 50px);
  height: clamp(42px, 5.5vw, 50px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0;
  color: var(--text-main);
  background: var(--glass-bg-nested);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.daily-reader-close-btn:where(html.can-hover *):hover {
  transform: scale(1.08);
  background: var(--glass-bg-nested-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--gold-primary);
}

.daily-reader-close-btn:active {
  transform: scale(0.94);
}

.daily-reader-close-btn svg {
  width: clamp(20px, 2.8vw, 24px);
  height: clamp(20px, 2.8vw, 24px);
}

/* Undivided Scripture canvas: the sole scrolling region between the two rules. */
.daily-sanctuary-canvas {
  min-height: 0;
  flex: 1 1 auto;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 0.35rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border-hover) transparent;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.85;
}

.daily-reading-chapter-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.4rem 0 0.85rem;
  width: 100%;
}

.daily-reading-chapter-heading:first-child {
  margin-top: 0.15rem;
}

.daily-reading-chapter-title {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  white-space: nowrap;
}

.daily-reading-chapter-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--glass-border-subtle);
}

.daily-reading-verse {
  margin: 0 0 0.95rem;
  position: relative;
}

.daily-reading-verse:last-child {
  margin-bottom: 0;
}

.daily-reading-number {
  display: inline-block;
  min-width: 1.75rem;
  color: var(--highlight-color);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: 0.25em;
  letter-spacing: -0.02em;
}

.daily-psalm-line {
  display: block;
  padding-left: min(calc(var(--line-indent, 0) * 1.5rem), 4rem);
  margin-bottom: 0.2rem;
}

.daily-psalm-line:empty {
  min-height: 0.7rem;
}

/* Sanctuary Footer Toolbar */
.daily-sanctuary-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--glass-border-subtle);
  flex-wrap: wrap;
}

.daily-sanctuary-credit {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-style: italic;
  color: var(--text-muted);
}

.daily-sanctuary-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Bolls Bible Gradient Action Button */
.bolls-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #c026d3 100%);
  border: var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  box-shadow: var(--ui-control-bevel), 0 4px 16px rgba(79, 70, 229, 0.35);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.bolls-link:where(html.can-hover *):hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: var(--ui-control-bevel), 0 8px 24px rgba(79, 70, 229, 0.5);
}

.bolls-link:active {
  transform: translateY(2px);
  box-shadow: var(--ui-control-pressed);
}

.bolls-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bolls-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.bolls-arrow {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}

.daily-reading-status {
  padding: 1.25rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

@keyframes daily-reading-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   INTERACTIVE CHURCH CALENDAR WIDGET & LITURGICAL READER VIEW
   ========================================================================== */

/* 1. Interactive Narrative Links */
.daily-narrative-link {
  all: unset;
  display: inline;
  cursor: pointer;
  font-weight: 750;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 83, 0.55);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  border-radius: 3px;
  padding: 0 3px;
  margin: 0 -1px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease, background-color 0.18s ease;
}

.daily-narrative-link:where(html.can-hover *):hover {
  color: var(--gold-primary);
  text-decoration-color: var(--gold-primary);
  background: rgba(212, 168, 83, 0.14);
}

.daily-narrative-link:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
  background: rgba(212, 168, 83, 0.18);
}

/* 2. Interactive Season Pill and Feast Badge */
.daily-verse-season-tag.is-interactive,
.daily-narrative-feast-badge.is-interactive {
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.daily-verse-season-tag.is-interactive:where(html.can-hover *):hover,
.daily-narrative-feast-badge.is-interactive:where(html.can-hover *):hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.daily-verse-season-tag.is-interactive:active,
.daily-narrative-feast-badge.is-interactive:active {
  transform: translateY(1px) scale(0.98);
}

.daily-verse-season-tag.is-interactive:focus-visible,
.daily-narrative-feast-badge.is-interactive:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* 3. Church Year Description Sanctuary Styling */
.daily-church-desc-sanctuary {
  position: relative;
}

.daily-sanctuary-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--glass-bg-nested);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-main);
}

.daily-sanctuary-color-pill .season-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.daily-sanctuary-color-pill[data-color="white"] .season-dot { background: #f8fafc; box-shadow: 0 0 6px rgba(255,255,255,0.85); }
.daily-sanctuary-color-pill[data-color="red"] .season-dot { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.85); }
.daily-sanctuary-color-pill[data-color="violet"] .season-dot { background: #a855f7; box-shadow: 0 0 6px rgba(168,85,247,0.85); }
.daily-sanctuary-color-pill[data-color="green"] .season-dot { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.85); }
.daily-sanctuary-color-pill[data-color="black"] .season-dot { background: #475569; box-shadow: 0 0 6px rgba(71,85,105,0.85); }

.daily-church-desc-canvas {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.35rem 0.35rem 1.5rem 0;
}

.daily-church-desc-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-style: italic;
  color: var(--gold-primary);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.daily-church-desc-summary-box {
  background: var(--glass-bg-nested);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.daily-church-desc-summary-box p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.75;
  color: var(--text-main);
  font-weight: 500;
}

.daily-church-desc-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.daily-church-desc-heading {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin: 0.5rem 0 0;
  opacity: 0.95;
}

.daily-church-desc-paragraph {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.85;
  color: var(--text-main);
}

.daily-church-desc-readings-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
}

.daily-church-desc-readings-text {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.35rem;
  line-height: 1.55;
}

.daily-church-desc-collect-section {
  margin-top: 0.4rem;
}

.daily-church-desc-collect-box {
  margin: 0.5rem 0 0;
  padding: 1.1rem 1.35rem;
  background: rgba(212, 168, 83, 0.07);
  border: 1px solid rgba(212, 168, 83, 0.28);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-main);
}

.daily-church-desc-collect-box p {
  margin: 0;
}

.daily-church-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--glass-bg-nested);
  border: 1px solid var(--glass-border-subtle);
  color: var(--gold-primary);
}

/* ==========================================================================
   UNCOMPROMISING SEASONAL CONTRAST & LIGHT MODE GUARANTEES
   ========================================================================== */

/* 1. Saturated Liturgical Narrative Enclosure (green, violet, red) in BOTH themes */
.daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]),
.daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) *,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]),
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) * {
  color: #ffffff !important;
  text-shadow: none !important;
}

.daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) strong,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) strong {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) .daily-narrative-link,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) .daily-narrative-link {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-decoration-color: rgba(255, 255, 255, 0.75) !important;
}

.daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) .daily-narrative-link:where(html.can-hover *):hover,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) .daily-narrative-link:where(html.can-hover *):hover {
  background: rgba(255, 255, 255, 0.22) !important;
  text-decoration-color: #ffffff !important;
  color: #ffffff !important;
}

.daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) svg,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-pane:not([data-season-color="white"]) svg {
  stroke: #ffffff !important;
}

.daily-verse-context:not([data-season-color="white"]) .daily-narrative-season-badge,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-season-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
}

.daily-verse-context:not([data-season-color="white"]) .daily-narrative-feast-badge,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-feast-badge {
  background: rgba(253, 224, 71, 0.25) !important;
  border-color: rgba(253, 224, 71, 0.45) !important;
  color: #ffffff !important;
}

.daily-verse-context:not([data-season-color="white"]) .daily-narrative-feast-badge svg,
[data-theme="light"] .daily-verse-context:not([data-season-color="white"]) .daily-narrative-feast-badge svg {
  fill: #fde047 !important;
  stroke: #fde047 !important;
}

/* 2. White Season Narrative Enclosure (White Glass) in BOTH themes */
.daily-verse-context[data-season-color="white"] .daily-narrative-pane,
.daily-verse-context[data-season-color="white"] .daily-narrative-pane *,
.daily-narrative-pane[data-season-color="white"],
.daily-narrative-pane[data-season-color="white"] *,
[data-season-color="white"] .daily-narrative-pane,
[data-season-color="white"] .daily-narrative-pane *,
[data-theme="light"] .daily-verse-context[data-season-color="white"] .daily-narrative-pane,
[data-theme="light"] .daily-verse-context[data-season-color="white"] .daily-narrative-pane *,
[data-theme="light"] .daily-narrative-pane[data-season-color="white"],
[data-theme="light"] .daily-narrative-pane[data-season-color="white"] *,
[data-theme="light"][data-season-color="white"] .daily-narrative-pane,
[data-theme="light"][data-season-color="white"] .daily-narrative-pane * {
  color: #1c1917 !important;
  text-shadow: none !important;
}

.daily-verse-context[data-season-color="white"] .daily-narrative-pane strong,
.daily-narrative-pane[data-season-color="white"] strong,
[data-season-color="white"] .daily-narrative-pane strong,
[data-theme="light"] .daily-verse-context[data-season-color="white"] .daily-narrative-pane strong,
[data-theme="light"] .daily-narrative-pane[data-season-color="white"] strong,
[data-theme="light"][data-season-color="white"] .daily-narrative-pane strong {
  color: #1c1917 !important;
  font-weight: 800 !important;
}

.daily-verse-context[data-season-color="white"] .daily-narrative-pane svg,
.daily-narrative-pane[data-season-color="white"] svg,
[data-season-color="white"] .daily-narrative-pane svg,
[data-theme="light"] .daily-verse-context[data-season-color="white"] .daily-narrative-pane svg,
[data-theme="light"] .daily-narrative-pane[data-season-color="white"] svg,
[data-theme="light"][data-season-color="white"] .daily-narrative-pane svg {
  stroke: #1c1917 !important;
}

.daily-verse-context[data-season-color="white"] .daily-narrative-season-badge,
.daily-narrative-pane[data-season-color="white"] .daily-narrative-season-badge,
[data-season-color="white"] .daily-narrative-season-badge {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1c1917 !important;
}

.daily-verse-context[data-season-color="white"] .daily-narrative-feast-badge,
.daily-narrative-pane[data-season-color="white"] .daily-narrative-feast-badge,
[data-season-color="white"] .daily-narrative-feast-badge {
  background: rgba(180, 83, 9, 0.12) !important;
  border-color: rgba(180, 83, 9, 0.3) !important;
  color: #b45309 !important;
}

.daily-verse-context[data-season-color="white"] .daily-narrative-feast-badge svg,
.daily-narrative-pane[data-season-color="white"] .daily-narrative-feast-badge svg,
[data-season-color="white"] .daily-narrative-feast-badge svg {
  fill: #b45309 !important;
  stroke: #b45309 !important;
}

/* 3. Bolls Brand Button Gradient in BOTH themes */
.bolls-link,
.bolls-link *,
[data-theme="light"] .bolls-link,
[data-theme="light"] .bolls-link * {
  color: #ffffff !important;
}

.bolls-link svg,
[data-theme="light"] .bolls-link svg {
  stroke: #ffffff !important;
}

/* 4. Complete Light Mode Daily Verse, Calendar, Date & Sanctuary Architecture */
[data-theme="light"] .daily-verse-header-icon {
  background: var(--symbolic-icon-surface) !important;
  border-color: var(--symbolic-icon-border) !important;
  color: var(--symbolic-icon-color) !important;
}

[data-theme="light"] .daily-verse-header-text h2,
[data-theme="light"] #daily-verse-heading {
  color: #1a1715 !important;
}

[data-theme="light"] .daily-verse-header-text p {
  color: #57534e !important;
}


/* Calendar Widget in Light Mode */
[data-theme="light"] .daily-cal-widget {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-color: var(--glass-border) !important;
  box-shadow: 0 4px 16px rgba(60, 45, 20, 0.08), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .daily-cal-widget-month {
  color: #1c1917 !important;
}

[data-theme="light"] .daily-cal-nav-btn {
  color: #1c1917 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .daily-cal-nav-btn svg {
  stroke: #1c1917 !important;
}

[data-theme="light"] .daily-cal-nav-btn:where(html.can-hover *):hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
  border-color: var(--glass-border-hover) !important;
}

[data-theme="light"] .daily-cal-widget-weekdays span {
  color: #78716c !important;
}

[data-theme="light"] .daily-cal-widget-weekdays span.is-sunday-label {
  color: var(--highlight-color) !important;
}

[data-theme="light"] .daily-calendar-day {
  background-color: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1c1917 !important;
}

[data-theme="light"] .daily-calendar-day:where(html.can-hover *):hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

[data-theme="light"] .daily-calendar-day.is-sunday {
  color: var(--highlight-color) !important;
  background-color: color-mix(in srgb, var(--highlight-color) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--highlight-color) 25%, transparent) !important;
}

[data-theme="light"] .daily-calendar-day.has-feast {
  box-shadow: inset 0 -2px 0 var(--highlight-color) !important;
}

[data-theme="light"] .daily-calendar-day.is-today {
  outline: 2px solid var(--highlight-color) !important;
  outline-offset: -2px;
}

[data-theme="light"] .daily-calendar-day.is-selected {
  background-color: var(--highlight-color) !important;
  color: var(--gold-button-ink) !important;
  border-color: var(--highlight-color) !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--highlight-color) 40%, transparent), 0 0 0 2px color-mix(in srgb, var(--highlight-color) 25%, transparent) !important;
}

[data-theme="light"] .daily-cal-today-pill {
  color: #1c1917 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .daily-cal-today-pill svg {
  stroke: #1c1917 !important;
}

[data-theme="light"] .daily-cal-today-pill:where(html.can-hover *):hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
  border-color: var(--glass-border-hover) !important;
}

/* Date Display Pane in Light Mode */
[data-theme="light"] .daily-date-display-pane {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-color: var(--glass-border) !important;
  box-shadow: 0 4px 16px rgba(60, 45, 20, 0.08), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .daily-date-number-display {
  color: var(--highlight-color) !important;
}

[data-theme="light"] .daily-date-weekday-display {
  color: #1c1917 !important;
}

[data-theme="light"] .daily-date-full-display {
  color: #57534e !important;
}

/* Passage Selection Blocks Deck in Light Mode */
[data-theme="light"] .daily-passage-block {
  background-color: rgba(255, 255, 255, 0.78) !important;
  border-color: var(--glass-border) !important;
  box-shadow: 0 4px 12px rgba(60, 45, 20, 0.08), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .daily-passage-block:where(html.can-hover *):hover {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--glass-border-hover) !important;
  box-shadow: 0 6px 18px rgba(60, 45, 20, 0.14), inset 0 1px 0 #ffffff !important;
  transform: translateY(-2px);
}

[data-theme="light"] .daily-passage-block.is-active {
  background-color: #ffffff !important;
  border-color: var(--glass-border-hover) !important;
  border-bottom: 3px solid var(--highlight-color) !important;
  box-shadow: 0 8px 24px rgba(60, 45, 20, 0.16), inset 0 1px 0 #ffffff !important;
  transform: translateY(-2px);
}

[data-theme="light"] .daily-block-icon {
  color: var(--highlight-color) !important;
}

[data-theme="light"] .daily-block-active-dot {
  background: var(--highlight-color) !important;
  box-shadow: 0 0 6px var(--highlight-color) !important;
}

[data-theme="light"] .daily-block-kind {
  color: #1c1917 !important;
}

[data-theme="light"] .daily-block-time {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #57534e !important;
}

[data-theme="light"] .daily-block-ref {
  color: #44403c !important;
}

/* Scripture Sanctuary Reader in Light Mode */
[data-theme="light"] .daily-reader-sanctuary {
  background-color: #f8f7f4 !important;
  border-color: var(--glass-border) !important;
  box-shadow: 0 14px 40px rgba(60, 45, 20, 0.12), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .daily-sanctuary-kicker-row {
  color: var(--highlight-color) !important;
}

[data-theme="light"] .daily-sanctuary-icon {
  color: var(--highlight-color) !important;
}

[data-theme="light"] .daily-sanctuary-title {
  color: #1c1917 !important;
}

[data-theme="light"] .daily-sanctuary-time {
  color: #78716c !important;
}

[data-theme="light"] .daily-reader-close-btn {
  color: #1c1917 !important;
  background: rgba(28, 25, 23, 0.06) !important;
  border-color: rgba(28, 25, 23, 0.14) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

[data-theme="light"] .daily-reader-close-btn:where(html.can-hover *):hover {
  background: rgba(28, 25, 23, 0.12) !important;
  border-color: rgba(28, 25, 23, 0.24) !important;
  color: var(--highlight-color) !important;
}

[data-theme="light"] .daily-sanctuary-canvas {
  color: #1c1917 !important;
}

[data-theme="light"] .daily-reading-verse {
  color: #1c1917 !important;
}

[data-theme="light"] .daily-reading-number {
  color: var(--highlight-color) !important;
}

[data-theme="light"] .daily-psalm-line {
  color: #1c1917 !important;
}

[data-theme="light"] .daily-sanctuary-credit {
  color: #57534e !important;
}


/* ==========================================================================
   Responsive & Mobile Adaptations (Bulletproof Mobile Implementation)
   ========================================================================== */

@media (max-width: 768px) {
  .daily-reader-stage {
    top: max(0.85rem, env(safe-area-inset-top));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.7rem);
    width: calc(100dvw - 1.7rem);
  }

  .daily-reader-sanctuary {
    padding: 1rem;
  }

  .daily-reader-sanctuary {
    padding: 1rem;
  }

  .daily-verse-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .daily-verse-season-wrapper {
    display: none !important;
  }

  .daily-status-cluster {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 0.85rem;
  }

  .daily-status-top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
  }

  .daily-date-display-pane {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.65rem;
    box-sizing: border-box;
  }

  .daily-date-pane-main {
    gap: 0.5rem;
  }

  .daily-date-number-display {
    font-size: 2rem;
  }

  .daily-date-weekday-display {
    font-size: 0.82rem;
  }

  .daily-date-full-display {
    font-size: 0.7rem;
  }

  .daily-mobile-date-controls {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .daily-mobile-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--glass-bg-nested);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .daily-mobile-ctrl-btn svg {
    width: 18px;
    height: 18px;
  }

  .daily-mobile-ctrl-btn:active {
    transform: scale(0.92);
    background-color: var(--glass-bg-nested-hover);
  }

  .daily-mobile-ctrl-btn.is-active,
  .daily-mobile-ctrl-btn[aria-expanded="true"] {
    background: var(--gold-primary) !important;
    color: var(--gold-button-ink) !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--gold-primary) 40%, transparent) !important;
  }

  [data-theme="light"] .daily-mobile-ctrl-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #1c1917 !important;
    box-shadow: 0 2px 8px rgba(60, 45, 20, 0.08) !important;
  }

  [data-theme="light"] .daily-mobile-ctrl-btn.is-active,
  [data-theme="light"] .daily-mobile-ctrl-btn[aria-expanded="true"] {
    background: var(--highlight-color) !important;
    color: #ffffff !important;
    border-color: var(--highlight-color) !important;
  }

  .daily-narrative-pane {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.8rem;
    box-sizing: border-box;
  }

  .daily-verse-context-text {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .daily-calendar-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  /* Calendar widget is hidden by default on mobile only */
  .daily-cal-widget-col {
    display: none;
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    justify-content: center;
  }

  .daily-cal-widget-col.mobile-visible {
    display: flex !important;
    width: 100%;
    max-width: 100%;
  }

  .daily-cal-widget {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0.55rem 0.65rem;
    box-sizing: border-box;
  }

  .daily-cal-readings-col {
    width: 100%;
  }

  .daily-reading-groups {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .daily-reading-groups-heading {
    text-align: left;
    padding-left: 2px;
    width: 100%;
  }

  .daily-reading-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
    width: 100%;
  }

  .daily-reading-group-title {
    font-size: clamp(0.74rem, 2.4vw, 0.86rem);
    text-align: left;
    padding-left: 2px;
    width: 100%;
  }

  .daily-passages-deck {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.25rem, 1.4vw, 0.5rem);
    width: 100%;
    margin: 0 auto;
  }

  .daily-passage-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: clamp(68px, 17vw, 96px);
    padding: clamp(0.4rem, 1.1vw, 0.6rem) clamp(0.18rem, 0.8vw, 0.45rem);
    border-radius: var(--radius-sm);
    grid-column: auto !important;
    gap: clamp(0.12rem, 0.4vw, 0.22rem);
    box-sizing: border-box;
  }

  .daily-passage-block:nth-child(5):last-child {
    grid-column: auto !important;
  }

  .daily-block-icon {
    width: clamp(20px, 5.2vw, 30px);
    height: clamp(20px, 5.2vw, 30px);
    margin: 0;
    flex-shrink: 0;
  }

  .daily-block-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    gap: clamp(0.12rem, 0.4vw, 0.22rem);
  }

  .daily-block-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    width: 100%;
    min-width: 0;
  }

  .daily-block-kind {
    font-size: clamp(0.52rem, 1.5vw, 0.72rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .daily-block-time {
    display: block;
    font-size: clamp(0.46rem, 1.2vw, 0.6rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .daily-block-ref {
    display: block;
    font-size: clamp(0.55rem, 1.5vw, 0.74rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 1px;
  }

  .daily-block-active-dot {
    top: 3px;
    right: 3px;
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 600px) {
  .daily-verse-header {
    flex-direction: row;
    align-items: center;
  }

  .daily-psalm-line {
    padding-left: min(calc(var(--line-indent, 0) * 0.85rem), 2rem);
  }

  .daily-sanctuary-header {
    padding-right: clamp(2.8rem, 8vw, 3.4rem);
  }

  .daily-sanctuary-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .bolls-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1179px), (hover: none) and (pointer: coarse) {
  .daily-cal-readings-col,
  .daily-reading-groups {
    height: auto;
  }

  .daily-reading-groups,
  .daily-reading-group {
    align-items: flex-start;
  }

  .daily-reading-group {
    min-height: auto;
    flex: 0 0 auto;
    width: 100%;
  }

  .daily-reading-group-title {
    width: 100%;
    padding-left: 2px;
    padding-right: 0;
    text-align: left;
  }

  .daily-reading-groups-heading {
    width: 100%;
    text-align: left;
    padding-left: 2px;
  }

  .daily-passages-deck {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .daily-lectionary-action {
    justify-content: flex-end;
  }
}

.site-header {
  transition: padding 0.3s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0s linear 0s;
}

#view-content.daily-reader-ui-hidden > .site-header {
  transform: translate3d(0, calc(-100% - 1.5rem), 0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1), opacity 0.24s ease, visibility 0s linear 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .daily-reader-stage,
  #view-content > .main-content,
  .site-header,
  .mobile-function-dock {
    transition: none !important;
  }

  .daily-reader-sanctuary,
  .daily-calendar-popover {
    animation: none;
  }

  .daily-passage-block,
  .daily-reader-close-btn,
  .bolls-link {
    transition: none;
  }
}

/* ==========================================================================
   ILC European Altar & Pulpit Fellowship Map & Directory
   ========================================================================== */
.ilc-identity-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.ilc-identity-header {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  width: 100%;
}

.ilc-identity-header .identity-content {
  flex: 1;
  min-width: 0;
}

.ilc-identity-header .identity-content p {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .ilc-identity-header {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .ilc-identity-header {
    gap: 0.75rem;
  }
}

/* Interactive Map Canvas - Full-bleed on left, right, and bottom of the card block */
.ilc-map-card {
  position: relative;
  overflow: hidden;
  width: calc(100% + 2 * 1.75rem);
  margin-left: -1.75rem;
  margin-right: -1.75rem;
  margin-bottom: 0;
  margin-top: 0.85rem;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: 1px solid var(--glass-border-subtle);
  border-radius: 0 0 calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px);
  background: radial-gradient(circle at 50% 45%, rgba(26, 26, 36, 0.85) 0%, rgba(10, 10, 14, 0.96) 100%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 600px) {
  .ilc-map-card {
    width: calc(100% + 2 * 1.25rem);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-top: 0.65rem;
    border-radius: 0 0 calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px);
  }
}

@media (max-width: 480px) {
  .ilc-map-card {
    width: calc(100% + 2 * 0.9rem);
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    margin-top: 0.5rem;
    border-radius: 0 0 calc(var(--radius-xs) - 1px) calc(var(--radius-xs) - 1px);
  }
}

@media (max-width: 380px) {
  .ilc-map-card {
    width: calc(100% + 2 * 0.75rem);
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: 0.45rem;
  }
}

[data-theme="light"] .ilc-map-card {
  background: radial-gradient(circle at 50% 45%, rgba(252, 250, 246, 0.95) 0%, rgba(240, 234, 222, 0.98) 100%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.06);
}

.ilc-map-viewport {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.ilc-europe-svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.ilc-europe-svg * {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Country Polygons */
.ilc-country-path {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.ilc-country-path:focus,
.ilc-country-path:focus-visible,
.ilc-country-path:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.ilc-country-path.is-other {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.8px;
  transition: fill 0.25s ease, stroke 0.25s ease;
}

[data-theme="light"] .ilc-country-path.is-other {
  fill: rgba(0, 0, 0, 0.035);
  stroke: rgba(0, 0, 0, 0.11);
}

.ilc-country-path.is-ilc {
  fill: color-mix(in srgb, var(--highlight-color) 22%, transparent);
  stroke: color-mix(in srgb, var(--highlight-color) 65%, transparent);
  stroke-width: 1.2px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: fill 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.25s ease, filter 0.25s ease;
}

[data-theme="light"] .ilc-country-path.is-ilc {
  fill: color-mix(in srgb, var(--highlight-color) 18%, transparent);
  stroke: color-mix(in srgb, var(--highlight-color) 70%, transparent);
}

.ilc-country-path.is-ilc:where(html.can-hover *):hover,
.ilc-country-path.is-ilc.is-active {
  fill: color-mix(in srgb, var(--highlight-color) 46%, transparent);
  stroke: var(--highlight-color);
  stroke-width: 1.8px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--highlight-color) 55%, transparent));
}

.ilc-country-path.is-home {
  fill: color-mix(in srgb, var(--highlight-color) 42%, transparent);
  stroke: #ffffff;
  stroke-width: 2.0px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--highlight-color) 65%, transparent));
}

[data-theme="light"] .ilc-country-path.is-home {
  stroke: #121216;
}

.ilc-country-path.is-home:where(html.can-hover *):hover,
.ilc-country-path.is-home.is-active {
  fill: color-mix(in srgb, var(--highlight-color) 60%, transparent);
  stroke: #ffffff;
  stroke-width: 2.4px;
}

/* Network Rays */
.ilc-ray-line {
  fill: none;
  stroke: color-mix(in srgb, var(--highlight-color) 32%, transparent);
  stroke-width: 1.2px;
  stroke-dasharray: 4 4;
  transition: stroke 0.25s ease, stroke-width 0.25s ease, stroke-dasharray 0.25s ease, filter 0.25s ease;
  pointer-events: none;
}

.ilc-ray-line.is-active {
  stroke: var(--highlight-color);
  stroke-width: 2.2px;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 6px var(--highlight-color));
}

/* Hub Markers */
.ilc-hub {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.ilc-hub:focus,
.ilc-hub:focus-visible,
.ilc-hub:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.ilc-hub-halo {
  fill: color-mix(in srgb, var(--highlight-color) 15%, transparent);
  transition: r 0.25s ease, fill 0.25s ease;
}

.ilc-hub:where(html.can-hover *):hover .ilc-hub-halo,
.ilc-hub.is-active .ilc-hub-halo {
  r: 15;
  fill: color-mix(in srgb, var(--highlight-color) 35%, transparent);
}

.ilc-hub-dot {
  fill: var(--highlight-color);
  stroke: #121216;
  stroke-width: 1.5px;
  transition: r 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .ilc-hub-dot {
  stroke: #ffffff;
}

.ilc-hub:where(html.can-hover *):hover .ilc-hub-dot,
.ilc-hub.is-active .ilc-hub-dot {
  r: 7;
}

.ilc-hub-dot.is-home {
  fill: var(--highlight-color);
  stroke: #ffffff;
  stroke-width: 2px;
}

[data-theme="light"] .ilc-hub-dot.is-home {
  stroke: #121216;
}

.ilc-hub-core {
  fill: #ffffff;
}

[data-theme="light"] .ilc-hub-core {
  fill: #121216;
}

.ilc-hub-center {
  fill: #ffffff;
}

@keyframes hubPulseAnim {
  0% {
    r: 7px;
    opacity: 0.9;
  }
  100% {
    r: 22px;
    opacity: 0;
  }
}

.ilc-hub-pulse {
  fill: none;
  stroke: var(--highlight-color);
  stroke-width: 1.5px;
  animation: hubPulseAnim 2.4s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  pointer-events: none;
}

.ilc-map-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .ilc-map-caption {
  background: rgba(0, 0, 0, 0.03);
}

/* Dynamic Interactive Nameplate Overlay */
.ilc-nameplate {
  position: absolute;
  max-width: min(280px, calc(100% - 1.5rem));
  z-index: 10;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s linear;
}

.ilc-nameplate.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.ilc-nameplate-body {
  padding: 0.85rem 1rem;
  background: var(--glass-bg-primary);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--highlight-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

[data-theme="light"] .ilc-nameplate-body {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ilc-nameplate-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ilc-nameplate-flag {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.ilc-nameplate-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.03em;
  flex: 1;
  min-width: 0;
}

.ilc-nameplate-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.ilc-nameplate-close:hover {
  color: var(--text-primary);
}

.ilc-nameplate-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.ilc-nameplate-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .ilc-nameplate {
    max-width: calc(100% - 1rem);
  }
}
