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

        :root {
            --crimson: #8B1538;
            --gold: #C9A962;
            --cream: #FAF8F5;
            --charcoal: #2D2D2D;
            --sage: #7A8B7A;
            --light-gold: #F5EFE0;
            --confession-purple: #6B4C9A;
            --adoration-blue: #4A7C9B;
            --rosary-rose: #C17B8E;

            /* Liturgical colour (set by JS after Universalis loads) */
            --liturgical-color: transparent;

            /* Semantic colour tokens */
            --bg-primary: var(--cream);
            --bg-card: #ffffff;
            --bg-card-hover: #f9f8f6;
            --bg-nav: #ffffff;
            --bg-input: #ffffff;
            --bg-filter-btn: #ffffff;
            --bg-header: linear-gradient(135deg, var(--crimson) 0%, #6B0F2B 100%);
            --text-primary: var(--charcoal);
            --text-secondary: #555;
            --text-muted: #999;
            --text-subtle: #666;
            --text-faint: #888;
            --border-light: rgba(0,0,0,0.06);
            --border-medium: rgba(0,0,0,0.1);
            --shadow-card: 0 1px 2px rgba(0,0,0,0.06), 0 3px 8px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
            --shadow-header: 0 4px 20px rgba(139, 21, 56, 0.3);
        }

        body.dark-mode {
            --bg-primary: #262624;
            --bg-card: #323230;
            --bg-card-hover: #3a3a38;
            --bg-nav: #1e1e1c;
            --bg-input: #3a3a38;
            --bg-filter-btn: #3a3a38;
            --bg-header: linear-gradient(135deg, #5a1028 0%, #3d0a1a 100%);
            --text-primary: #e8e6e1;
            --text-secondary: #c0bdb6;
            --text-muted: #8a8880;
            --text-subtle: #a09d96;
            --text-faint: #7a7770;
            --border-light: rgba(255,255,255,0.06);
            --border-medium: rgba(255,255,255,0.1);
            --shadow-card: 0 1px 2px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.12);
            --shadow-header: 0 4px 20px rgba(0,0,0,0.4);
            --cream: #262624;
            --charcoal: #e8e6e1;
            --light-gold: #3a3630;
        }


        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
        }

        /* Paper grain texture removed — invisible at low opacity, not worth the GPU cost */

        header {
            background: linear-gradient(135deg, #8B1538 0%, #6B0F2B 40%, #8B1538 70%, #5a0d22 100%);
            background-size: 300% 300%;
            animation: headerBreath 8s ease-in-out infinite;
            color: white;
            padding: 1rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3), 0 1px 0 rgba(201, 169, 98, 0.15) inset;
        }


        @keyframes headerBreath {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .header-left {
            text-align: left;
        }

        header h1 {
            font-family: 'Crimson Pro', serif;
            font-size: 1.6rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            margin-bottom: 0.15rem;
        }

        .header-subtitle {
            font-size: 0.8rem;
            opacity: 0.9;
            margin: 0;
        }

        .header-right {
            text-align: right;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.1rem;
        }

        .next-mass-label {
            font-size: 0.7rem;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .next-mass-info {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.1rem;
        }

        .next-mass-church {
            font-family: 'Crimson Pro', serif;
            font-size: 1rem;
            font-weight: 600;
            color: white;
            text-decoration: none;
        }

        .next-mass-church:hover {
            text-decoration: underline;
        }

        .next-mass-details {
            font-size: 0.75rem;
            opacity: 0.9;
        }

        footer {
            background: linear-gradient(135deg, var(--crimson) 0%, #6B0F2B 100%);
            color: white;
            padding: 1.5rem;
            text-align: center;
            margin-top: 2rem;
        }

        footer p {
            font-size: 0.8rem;
            font-weight: 400;
            opacity: 1;
            margin-bottom: 0.75rem;
            line-height: 1.5;
        }

        footer p:last-child {
            margin-bottom: 0;
        }

        footer a {
            color: var(--light-gold);
            text-decoration: underline;
        }

        footer a:hover {
            opacity: 0.8;
        }

        /* Toast notification for location status */
        .location-toast {
            position: fixed;
            top: 96px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--charcoal);
            color: white;
            padding: 0.75rem 1.25rem;
            border-radius: 8px;
            font-size: 0.9rem;
            z-index: 200;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .location-toast.show {
            opacity: 1;
        }

        .location-toast.success {
            background: var(--sage);
        }

        .location-toast.error {
            background: var(--crimson);
        }

        .status-bar {
            background: var(--light-gold);
            padding: 0.75rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 2rem;
            border-bottom: 1px solid rgba(201, 169, 98, 0.3);
        }

        .status-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
        }

        .status-left {
            flex: 0 1 55%;
            max-width: 55%;
            display: block;
        }

        .verse-text {
            font-style: italic;
            font-size: 0.85rem;
            color: var(--charcoal);
            line-height: 1.4;
        }

        .verse-ref {
            font-size: 0.8rem;
            color: var(--crimson);
            font-weight: 500;
            margin-left: 0.3rem;
        }

        .status-right {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.15rem;
            text-align: right;
        }

        .current-date {
            font-weight: 500;
            color: var(--charcoal);
        }

        .feast-day {
            font-size: 0.8rem;
            color: var(--crimson);
            font-weight: 500;
            font-style: italic;
        }

        .status-icon {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--sage);
        }

        .status-icon.active {
            background: #4CAF50;
            box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
        }

        .status-icon.pending {
            background: var(--gold);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        /* Tab transitions handled via opacity/transform/filter in .tab-content rules */

        /* Micro-interactions: staggered card entrance */
        @keyframes cardSlideIn {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .church-card, .timeline-entry {
            animation: cardSlideIn 0.3s ease-out both;
        }

        /* Stagger up to 15 cards */
        .church-card:nth-child(1), .timeline-entry:nth-child(1), .group-card:nth-child(1) { animation-delay: 0ms; }
        .church-card:nth-child(2), .timeline-entry:nth-child(2), .group-card:nth-child(2) { animation-delay: 30ms; }
        .church-card:nth-child(3), .timeline-entry:nth-child(3), .group-card:nth-child(3) { animation-delay: 60ms; }
        .church-card:nth-child(4), .timeline-entry:nth-child(4), .group-card:nth-child(4) { animation-delay: 90ms; }
        .church-card:nth-child(5), .timeline-entry:nth-child(5), .group-card:nth-child(5) { animation-delay: 120ms; }
        .church-card:nth-child(6), .timeline-entry:nth-child(6), .group-card:nth-child(6) { animation-delay: 150ms; }
        .church-card:nth-child(7), .timeline-entry:nth-child(7), .group-card:nth-child(7) { animation-delay: 180ms; }
        .church-card:nth-child(8), .timeline-entry:nth-child(8), .group-card:nth-child(8) { animation-delay: 210ms; }
        .church-card:nth-child(9), .timeline-entry:nth-child(9), .group-card:nth-child(9) { animation-delay: 240ms; }
        .church-card:nth-child(10), .timeline-entry:nth-child(10), .group-card:nth-child(10) { animation-delay: 270ms; }

        /* Respect reduced motion preferences */
        @media (prefers-reduced-motion: reduce) {
            .tab-content.active {
                animation: none;
            }
            .church-card, .timeline-entry, .group-card,
            .splash-cross, .splash-logo, .splash-spinner,
            .splash-status, .splash-quote, .splash-cross::before {
                animation: none;
                opacity: 1;
            }
            .splash-screen.hidden .splash-content,
            .splash-screen.hidden .splash-quote,
            .splash-screen.hidden .splash-panel {
                animation: none;
            }
            .splash-screen.hidden {
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease;
            }
        }

        .filters {
            padding: 0;
            background: transparent;
            display: flex;
            flex-direction: column;
            gap: 0;
            position: sticky;
            top: var(--header-h, 72px);
            z-index: 48;
        }
        
        .filters-inner {
            max-width: 900px;
            margin: 0 auto;
            width: 100%;
            background: rgba(255,255,255,0.85);
            border-bottom: 1px solid rgba(0,0,0,0.06);
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            -webkit-backdrop-filter: blur(16px) saturate(1.5);
            backdrop-filter: blur(16px) saturate(1.5);
        }
        
        /* Community toggle bar (Groups/Events) */
        .community-toggle-bar {
            background: rgba(255,255,255,0.85);
            border-bottom: 1px solid rgba(0,0,0,0.06);
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            -webkit-backdrop-filter: blur(16px) saturate(1.5);
            backdrop-filter: blur(16px) saturate(1.5);
            position: sticky;
            top: var(--header-h, 72px);
            z-index: 48;
        }
        
        .community-toggle-inner {
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            padding: 0.6rem 1rem;
            gap: 0.5rem;
        }
        
        .community-toggle-btn {
            flex: 1;
            padding: 0.5rem 1rem;
            border: none;
            background: var(--bg-filter-btn);
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--charcoal);
            cursor: pointer;
            font-family: 'DM Sans', sans-serif;
            transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
        }

        .community-toggle-btn.active {
            background: var(--crimson);
            color: white;
            box-shadow: 0 2px 10px rgba(139, 21, 56, 0.25);
        }

        .community-toggle-btn:hover:not(.active) {
            background: var(--light-gold);
        }

        /* Filter summary bar - shown on all screen sizes */
        .mobile-filter-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.6rem 1rem;
            background: transparent;
            cursor: pointer;
        }

        .filter-summary-text {
            font-size: 0.9rem;
            color: var(--charcoal);
            font-weight: 500;
        }

        .filter-toggle-btn {
            background: var(--light-gold);
            border: 1px solid var(--gold);
            color: var(--crimson);
            padding: 0.4rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            font-family: inherit;
        }

        .filter-toggle-btn:hover {
            background: var(--gold);
        }

        /* Filter content - hidden by default with smooth transition */
        .filter-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            padding: 0 1rem;
            border-top: none;
            background: var(--cream);
        }

        .filter-content.show {
            max-height: 500px;
            padding: 0.75rem 1rem;
            border-top: 1px solid rgba(0,0,0,0.08);
        }

        .filter-row {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex-wrap: wrap;
        }

        .filter-label {
            font-size: 0.75rem;
            color: var(--sage);
            min-width: 3.5rem;
            font-weight: 500;
        }

        .filter-btn {
            padding: 0.5rem 0.85rem;
            border: 1.5px solid rgba(139, 21, 56, 0.15);
            background: var(--bg-filter-btn);
            border-radius: 24px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
            font-family: inherit;
            min-height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .filter-btn:hover {
            border-color: var(--crimson);
            box-shadow: 0 2px 8px rgba(139, 21, 56, 0.1);
        }

        .filter-btn.active {
            background: var(--crimson);
            color: white;
            border-color: var(--crimson);
            box-shadow: 0 2px 10px rgba(139, 21, 56, 0.25);
        }

        /* View toggle */
        .view-toggle-row {
            margin-bottom: 0.3rem;
        }

        .view-toggle.active {
            background: var(--crimson);
            border-color: var(--crimson);
            color: white;
        }

        /* Timeline styles */
        .timeline-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            padding: 0.5rem;
            max-width: 900px;
            margin: 0 auto;
        }

        .timeline-period-header {
            background: var(--light-gold);
            padding: 0.5rem 1rem;
            font-weight: 600;
            color: var(--crimson);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-radius: 8px;
            margin-top: 0.5rem;
        }

        .timeline-period-header:first-child {
            margin-top: 0;
        }

        .timeline-entry {
            display: flex;
            align-items: flex-start;
            padding: 0.85rem 1rem;
            background: var(--bg-card);
            border-radius: 16px;
            box-shadow: var(--shadow-card);
            transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.8s ease;
            gap: 0.5rem;
            border: 1px solid rgba(0,0,0,0.05);
            border-top: 2px solid var(--liturgical-color);
            position: relative;
            overflow: hidden;
        }

        .timeline-entry:hover {
            box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
            transform: translateY(-2px);
            background: var(--bg-card-hover);
        }

        .timeline-main {
            flex: 1;
            min-width: 0;
        }

        .timeline-top-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.25rem;
        }

        .timeline-entry > .save-btn {
            flex-shrink: 0;
            font-size: 1.1rem;
            padding: 0.1rem 0.3rem;
        }

        .timeline-time {
            font-family: 'Crimson Pro', serif;
            font-weight: 600;
            color: var(--crimson);
            font-size: 1rem;
        }

        .timeline-icon {
            font-size: 0.8rem;
            color: var(--sage);
        }

        .timeline-church-info {
            margin-bottom: 0.4rem;
        }

        .timeline-church {
            font-family: 'Crimson Pro', serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--charcoal);
        }

        .timeline-church-link {
            text-decoration: none;
            color: var(--charcoal);
        }

        .timeline-church-link:hover {
            color: var(--crimson);
        }

        .timeline-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.4rem;
        }

        .timeline-area {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8rem;
            font-weight: 400;
            color: var(--sage);
            margin-left: 0.4rem;
        }

        .timeline-notes {
            display: inline-block;
            font-size: 0.75rem;
            color: var(--crimson);
            margin-left: 0.5rem;
        }

        .timeline-distance {
            color: var(--sage);
            font-size: 0.75rem;
            white-space: nowrap;
        }

        .timeline-no-events {
            padding: 2rem;
            text-align: center;
            color: var(--sage);
        }

        /* Search button and expandable input */
        .search-container {
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        .search-btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.85rem;
        }

        .search-btn.active {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--charcoal);
        }

        .search-input-wrapper {
            display: none;
            align-items: center;
            background: white;
            border: 1px solid var(--gold);
            border-radius: 20px;
            padding: 0.25rem 0.5rem;
            margin-left: 0.4rem;
            animation: expandSearch 0.2s ease-out;
        }

        .search-input-wrapper.visible {
            display: flex;
        }

        @keyframes expandSearch {
            from {
                width: 0;
                opacity: 0;
            }
            to {
                width: 180px;
                opacity: 1;
            }
        }

        .search-input {
            border: none;
            outline: none;
            font-size: 0.8rem;
            font-family: inherit;
            width: 140px;
            background: transparent;
        }

        .search-input::placeholder {
            color: var(--sage);
            font-size: 0.75rem;
        }

        .search-clear {
            background: none;
            border: none;
            color: var(--sage);
            cursor: pointer;
            padding: 0.1rem 0.3rem;
            font-size: 0.8rem;
            line-height: 1;
        }

        .search-clear:hover {
            color: var(--crimson);
        }

        .search-match {
            background: rgba(201, 169, 98, 0.3);
            padding: 0.1rem 0.2rem;
            border-radius: 3px;
        }

        /* Distance slider styling */
        .distance-filter {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
            min-width: 200px;
        }

        .distance-slider {
            flex: 1;
            -webkit-appearance: none;
            appearance: none;
            height: 6px;
            background: var(--light-gold);
            border-radius: 3px;
            outline: none;
        }

        .distance-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: var(--crimson);
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .distance-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

        .distance-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: var(--crimson);
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        .distance-value {
            font-size: 0.8rem;
            font-weight: 500;
            min-width: 50px;
            color: var(--charcoal);
        }

        .results-header {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
            color: var(--sage);
            border-top: 1px solid rgba(0,0,0,0.05);
            background: white;
            overflow: hidden;
            max-height: 40px;
            transition: max-height 0.25s ease, padding 0.25s ease;
        }

        .filter-content:not(.show) ~ .results-header {
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            border-top: none;
        }

        /* View Mode Toggle */
        .view-mode-toggle {
            background: var(--cream);
            padding: 0.75rem 0;
            position: sticky;
            top: var(--header-h, 72px);
            z-index: 49;
        }
        
        .view-mode-inner {
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            padding: 0 1rem;
        }
        
        .view-mode-btn {
            padding: 0.5rem 1.25rem;
            border: 1.5px solid var(--gold);
            background: white;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--charcoal);
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'DM Sans', sans-serif;
        }
        
        .view-mode-btn.active {
            background: var(--gold);
            color: white;
        }
        
        .view-mode-btn:hover:not(.active) {
            background: var(--light-gold);
        }
        
        /* Map Container */
        .map-header {
            max-width: 900px;
            margin: 0 auto;
            padding: 1.5rem 1rem 1rem;
            text-align: center;
        }
        
        .map-header h2 {
            font-family: 'Crimson Pro', serif;
            font-size: 1.5rem;
            color: var(--crimson);
            margin-bottom: 0.25rem;
        }
        
        .map-header p {
            color: var(--text-subtle);
            font-size: 0.9rem;
        }
        
        .map-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 0.5rem 0.5rem;
        }
        
        .church-map {
            height: calc(100vh - 280px);
            min-height: 400px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        /* Custom map markers */
        .church-marker {
            background: var(--crimson);
            border: 2px solid white;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .map-popup {
            min-width: 200px;
        }
        
        .map-popup h4 {
            margin: 0 0 0.5rem 0;
            color: var(--crimson);
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
        }
        
        .map-popup .next-service {
            font-size: 0.85rem;
            color: var(--charcoal);
            margin-bottom: 0.5rem;
        }
        
        .map-popup .popup-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .map-popup .popup-btn {
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8rem;
            text-decoration: none;
            cursor: pointer;
            border: none;
            font-family: 'DM Sans', sans-serif;
        }
        
        .map-popup .popup-btn.primary {
            background: var(--crimson);
            color: white;
        }
        
        .map-popup .popup-btn.secondary {
            background: var(--light-gold);
            color: var(--charcoal);
        }
        
        /* Cluster styling */
        .marker-cluster {
            background: rgba(139, 21, 56, 0.6);
            border-radius: 50%;
        }
        
        .marker-cluster div {
            background: var(--crimson);
            color: white;
            font-weight: 600;
            font-size: 12px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .marker-cluster-small {
            width: 30px;
            height: 30px;
        }
        
        .marker-cluster-small div {
            width: 24px;
            height: 24px;
        }
        
        .marker-cluster-medium {
            width: 40px;
            height: 40px;
        }
        
        .marker-cluster-medium div {
            width: 32px;
            height: 32px;
        }
        
        .marker-cluster-large {
            width: 50px;
            height: 50px;
        }
        
        .marker-cluster-large div {
            width: 40px;
            height: 40px;
        }
        
        /* User location marker */
        .user-marker {
            background: #4285f4;
            border: 3px solid white;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            box-shadow: 0 2px 6px rgba(66, 133, 244, 0.5);
        }
        
        body.dark-mode .view-mode-toggle {
            background: var(--bg-primary);
        }
        
        body.dark-mode .view-mode-btn {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-color: var(--border-light);
        }
        
        body.dark-mode .view-mode-btn.active {
            background: var(--gold);
            color: var(--charcoal);
        }

        .church-list {
            padding: 0.5rem;
            padding-bottom: 2rem; /* Extra padding at bottom for mobile */
            background: var(--cream);
            max-width: 900px;
            margin: 0 auto;
        }

        .church-card {
            background: var(--bg-card);
            margin: 0.6rem 0.5rem;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 3px 8px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
            transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.8s ease;
            border: 1px solid rgba(0,0,0,0.05);
            position: relative;
            border-top: 2px solid var(--liturgical-color);
        }

        .church-card:hover {
            box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
            transform: translateY(-2px);
            background: var(--bg-card-hover);
        }

        .church-card.has-event-now {
            border-left: 3px solid var(--liturgical-color);
            box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 3px 8px rgba(0,0,0,0.06), 0 8px 20px rgba(201,169,98,0.08);
        }

        .church-card.has-event-soon {
            border-left: 3px solid var(--sage);
        }

        .church-header {
            padding: 1rem 1.25rem;
            cursor: pointer;
        }

        .church-name-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
        }

        .church-name {
            font-family: 'Crimson Pro', serif;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--charcoal);
            line-height: 1.3;
        }

        .distance {
            font-size: 0.85rem;
            color: var(--sage);
            white-space: nowrap;
            padding: 0.25rem 0.6rem;
            background: var(--light-gold);
            border-radius: 12px;
        }

        .church-area {
            font-size: 0.85rem;
            color: var(--sage);
            margin-top: 0.25rem;
        }

        .church-details {
            padding: 0 1.25rem 1.25rem;
            border-top: 1px solid var(--border-light);
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.15s ease;
            padding-top: 0;
            padding-bottom: 0;
        }

        .church-card.expanded .church-details {
            max-height: 2000px;
            opacity: 1;
            padding-bottom: 1.25rem;
            padding-top: 0.5rem;
        }

        .church-card.highlighted {
            animation: highlight-pulse 2s ease-out;
        }

        @keyframes highlight-pulse {
            0% { box-shadow: 0 0 0 4px var(--gold); }
            100% { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
        }

        .detail-section {
            margin-top: 1rem;
        }

        .detail-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--sage);
            margin-bottom: 0.35rem;
        }

        .detail-value {
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .schedule-list {
            list-style: none;
        }

        .schedule-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(0,0,0,0.04);
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
        }

        .schedule-list li:last-child {
            border-bottom: none;
        }

        .schedule-icon {
            font-size: 0.9rem;
            min-width: 1.2rem;
        }

        .schedule-text {
            flex: 1;
        }

        .contact-links {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        /* Unified action pill buttons - used across all views */
        .action-pill {
            padding: 0.35rem 0.75rem;
            background: var(--light-gold);
            border: 1px solid var(--gold);
            color: var(--charcoal);
            text-decoration: none;
            border-radius: 20px;
            font-size: 0.78rem;
            font-family: inherit;
            transition: all 0.2s;
            white-space: nowrap;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }

        .action-pill:hover {
            background: var(--gold);
        }

        .action-pill.directions {
            background: #4285F4;
            border-color: #4285F4;
            color: white;
        }

        .action-pill.directions:hover {
            background: #3367D6;
            border-color: #3367D6;
        }

        .no-results {
            text-align: center;
            padding: 3rem 1.5rem;
            color: var(--sage);
        }

        .no-results h3 {
            font-family: 'Crimson Pro', serif;
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--charcoal);
        }

        .loading {
            text-align: center;
            padding: 3rem;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--light-gold);
            border-top-color: var(--crimson);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .parish-groups-section {
            border-top: 1px dashed var(--light-gold);
            padding-top: 0.75rem;
            margin-top: 0.5rem;
        }

        .parish-groups {
            font-size: 0.85rem;
            color: var(--sage);
            line-height: 1.6;
        }

        .accessibility-section {
            border-top: 1px dashed var(--light-gold);
            padding-top: 0.75rem;
            margin-top: 0.5rem;
        }

        .accessibility-info {
            font-size: 0.85rem;
            color: var(--sage);
            line-height: 1.6;
        }

        /* Mobile styles */
        @media (max-width: 600px) {
            header {
                padding: 0.6rem 0.85rem;
                position: sticky;
                top: 0;
                z-index: 100;
            }

            header h1 {
                font-size: 1.15rem;
                margin-bottom: 0;
            }

            .header-subtitle {
                font-size: 0.65rem;
                margin-top: 0.1rem;
            }

            .header-right {
                flex-shrink: 0;
            }

            .next-mass-label {
                font-size: 0.55rem;
            }

            .next-mass-church {
                font-size: 0.85rem;
            }

            .next-mass-details {
                font-size: 0.7rem;
            }

            .status-bar {
                flex-direction: column;
                gap: 0.4rem;
                padding: 0.6rem 1rem;
                flex-direction: column;
                align-items: center;
            }

            .status-item {
                width: 100%;
                text-align: center;
            }

            .status-item.status-left {
                order: 2;
                display: block;
                max-width: 100%;
            }

            .status-item.status-right {
                order: 1;
                display: block;
                text-align: center;
            }

            .current-date {
                font-size: 0.9rem;
            }

            .feast-day {
                font-size: 0.8rem;
            }

            .current-date::after {
                content: ' · ';
            }

            .verse-text {
                font-size: 0.8rem;
            }

            .verse-ref {
                font-size: 0.75rem;
            }

            .location-toast {
                top: 33vh;
                font-size: 0.85rem;
            }

            .view-toggle-bar {
                position: sticky;
                top: calc(var(--header-h, 52px) - 1px);
                z-index: 49;
                padding: 0.5rem 1rem;
                background: var(--cream);
                box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            }

            .view-toggle-bar::before {
                content: '';
                position: absolute;
                top: -10px;
                left: 0;
                right: 0;
                height: 10px;
                background: var(--bg-header);
                z-index: 1;
            }

            .filters {
                position: sticky;
                top: calc(var(--header-h, 72px) - 1px);
                padding: 0;
                gap: 0;
                z-index: 48;
                transition: none;
                transform: none;
            }

            .filters::before {
                content: '';
                position: absolute;
                top: -10px;
                left: 0;
                right: 0;
                height: 10px;
                background: var(--cream);
                z-index: 1;
            }

            .filters.hidden {
                transform: none;
            }

            .filter-content {
                padding: 0.6rem 0.75rem;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.25s ease-out, padding 0.25s ease-out;
                display: flex;
                flex-direction: column;
                gap: 0.6rem;
                padding-top: 0;
                padding-bottom: 0;
                border-top: none;
            }

            .filter-content.show {
                max-height: 320px;
                padding: 0.6rem 0.75rem;
                border-top: 1px solid rgba(0,0,0,0.08);
            }

            .filter-summary-text {
                font-size: 0.85rem;
            }

            .filter-toggle-btn:active {
                background: var(--gold);
            }

            .filter-label {
                min-width: auto;
                width: 100%;
                margin-bottom: 0.2rem;
            }

            .filter-row {
                gap: 0.35rem;
            }

            .filter-btn {
                padding: 0.45rem 0.65rem;
                font-size: 0.75rem;
                min-height: 40px;
            }

            .view-toggle-row .filter-btn {
                flex: 1;
                justify-content: center;
            }

            .distance-filter {
                min-width: 140px;
                flex: 1;
            }

            .distance-slider {
                flex: 1;
            }
            
            .church-card {
                margin: 0.4rem;
                border-radius: 10px;
            }

            .church-header {
                padding: 0.85rem 1rem;
            }

            .church-name {
                font-size: 1.05rem;
            }

            .church-details {
                padding: 0 1rem 1rem;
            }

            .action-pill {
                min-height: 36px;
                display: inline-flex;
                align-items: center;
            }

            /* Timeline mobile */
            .timeline-list {
                padding: 0.4rem;
                gap: 0.4rem;
            }

            .timeline-entry {
                padding: 0.75rem;
                flex-wrap: wrap;
            }

            .timeline-main {
                width: calc(100% - 2rem);
            }

            .timeline-main .timeline-actions {
                width: calc(100% + 2rem);
                margin-top: 0.3rem;
            }

            .timeline-time {
                font-size: 0.95rem;
            }

            .timeline-church {
                font-size: 0.95rem;
            }

            .timeline-icon {
                font-size: 0.75rem;
            }

            .timeline-view-btn {
                display: inline-flex;
            }

            /* Add safe area padding for iPhones with notch/home indicator */
            .church-list {
                padding-bottom: env(safe-area-inset-bottom, 20px);
            }

            /* Prevent iOS zoom on input focus */
            .search-input {
                font-size: 16px;
            }
        }

        /* Extra small screens */
        @media (max-width: 380px) {
            .filter-btn {
                padding: 0.4rem 0.5rem;
                font-size: 0.7rem;
            }

            .timeline-time {
                min-width: 50px;
                font-size: 0.85rem;
            }

            .timeline-icon {
                min-width: 60px;
                font-size: 0.7rem;
            }

            .timeline-church {
                font-size: 0.9rem;
            }

            .timeline-distance {
                display: none;
            }
        }

        /* Bottom Navigation */
        /* View toggle bar - above filters */
        .view-toggle-bar {
            display: flex;
            justify-content: center;
            gap: 0;
            background: var(--cream);
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(0,0,0,0.08);
            position: sticky;
            top: var(--header-h, 72px);
            z-index: 49;
        }

        .view-toggle-btn {
            padding: 0.5rem 1.5rem;
            border: 2px solid var(--crimson);
            background: white;
            color: var(--crimson);
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .view-toggle-btn:first-child {
            border-radius: 8px 0 0 8px;
            border-right: 1px solid var(--crimson);
        }

        .view-toggle-btn:last-child {
            border-radius: 0 8px 8px 0;
            border-left: 1px solid var(--crimson);
        }

        .view-toggle-btn.active {
            background: var(--crimson);
            color: white;
        }

        .view-toggle-btn:hover:not(.active) {
            background: rgba(139, 21, 56, 0.1);
        }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.82);
            border-top: 1px solid rgba(0,0,0,0.06);
            display: flex;
            padding: 0;
            z-index: 200;
            -webkit-backdrop-filter: blur(20px) saturate(1.8);
            backdrop-filter: blur(20px) saturate(1.8);
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.7rem 0;
            padding-bottom: max(0.7rem, calc(0.2rem + env(safe-area-inset-bottom)));
            background: none;
            border: none;
            color: #888;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            gap: 0.3rem;
        }

        .nav-item svg {
            width: 22px;
            height: 22px;
        }

        .nav-item.active {
            background: var(--crimson);
            color: white;
        }

        /* Tab content */
        .tab-content {
            display: none;
            padding-bottom: 80px;
            background: var(--bg-primary);
            min-height: calc(100vh - 150px);
        }

        .tab-content.active {
            display: block;
            animation: tabReveal 0.3s ease-out;
        }

        @keyframes tabReveal {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes tabFadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        /* Adjust body for bottom nav */
        body {
            padding-bottom: 70px;
        }

        /* Today tab styles */
        .today-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 1rem;
        }

        .today-date-header {
            text-align: center;
            padding: 1.5rem 1rem 1rem;
        }

        .today-date-text {
            font-family: 'Crimson Pro', serif;
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--charcoal);
        }

        .today-feast-text {
            font-size: 1.1rem;
            color: var(--crimson);
            font-weight: 500;
            margin-top: 0.25rem;
        }

        .verse-of-day-card {
            background: white;
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            border-left: 4px solid var(--gold);
        }

        .verse-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--gold);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .verse-content {
            font-family: 'Crimson Pro', serif;
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--charcoal);
            font-style: italic;
        }

        .verse-reference {
            font-size: 0.85rem;
            color: #666;
            margin-top: 0.75rem;
            text-align: right;
        }

        .liturgical-header {
            text-align: center;
            padding: 1.25rem 1rem;
            border-radius: 12px;
            margin-bottom: 1rem;
            width: 100%;
            box-sizing: border-box;
        }

        .liturgical-header.green { background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%); color: white; }
        .liturgical-header.purple { background: linear-gradient(135deg, #6A1B9A 0%, #4A148C 100%); color: white; }
        .liturgical-header.white { background: linear-gradient(135deg, #FAFAFA 0%, #E0E0E0 100%); color: #333; }
        .liturgical-header.red { background: linear-gradient(135deg, #C62828 0%, #B71C1C 100%); color: white; }
        .liturgical-header.rose { background: linear-gradient(135deg, #EC407A 0%, #D81B60 100%); color: white; }
        .liturgical-header.gold { background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%); color: #333; }

        .liturgical-title {
            font-family: 'Crimson Pro', serif;
            font-size: 1.3rem;
            font-weight: 600;
            text-align: center;
            word-wrap: break-word;
            overflow-wrap: break-word;
            width: 100%;
            line-height: 1.35;
        }

        /* Override any inline styles Universalis might inject */
        .liturgical-title * {
            text-align: center !important;
            display: inline !important;
            float: none !important;
            margin: 0 !important;
        }

        .liturgical-subtitle {
            font-size: 0.85rem;
            opacity: 0.9;
            margin-top: 0.25rem;
            text-align: center;
            word-wrap: break-word;
            overflow-wrap: break-word;
            width: 100%;
        }

        .readings-section {
            background: var(--bg-card);
            border-radius: 16px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 3px 8px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
            overflow: hidden;
            margin-bottom: 1rem;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .reading-card {
            border-bottom: 1px solid rgba(0,0,0,0.08);
        }

        .reading-card:last-child {
            border-bottom: none;
        }

        .reading-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .reading-header:hover {
            background: rgba(0,0,0,0.02);
        }

        .reading-title {
            font-weight: 600;
            color: var(--charcoal);
        }

        .reading-source {
            font-size: 0.85rem;
            color: #666;
            margin-top: 0.2rem;
        }

        .reading-toggle {
            color: #999;
            transition: transform 0.2s;
        }

        .reading-card.expanded .reading-toggle {
            transform: none;
        }

        .reading-text {
            display: none;
            padding: 0 1rem 1rem;
            font-family: 'Crimson Pro', serif;
            font-size: 1.05rem;
            line-height: 1.7;
            color: var(--charcoal);
            word-wrap: break-word;
            overflow-wrap: break-word;
            width: 100%;
            box-sizing: border-box;
        }
        
        .reading-text * {
            max-width: 100% !important;
            width: auto !important;
            box-sizing: border-box;
        }
        
        .reading-text table {
            width: 100% !important;
        }

        .reading-card.expanded .reading-text {
            display: block;
        }

        .mass-order-row {
            display: flex;
            gap: 0.5rem;
            padding: 0 1rem 0.75rem;
            flex-wrap: wrap;
        }

        .universalis-credit {
            text-align: center;
            font-size: 0.8rem;
            color: #888;
            padding: 1rem;
        }

        .universalis-credit a {
            color: var(--crimson);
        }

        /* Saved tab styles */
        .saved-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 1rem;
        }

        .saved-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: #888;
        }

        .saved-empty-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .save-btn {
            background: none;
            border: none;
            font-size: 1.3rem;
            cursor: pointer;
            padding: 0.25rem;
            color: #ccc;
            transition: color 0.2s, transform 0.2s;
            flex-shrink: 0;
            position: relative;
        }

        .save-btn.saved {
            color: var(--gold);
        }

        .save-btn.sparkle {
            animation: saveBounce 0.4s ease-out;
        }

        @keyframes saveBounce {
            0% { transform: scale(1); }
            30% { transform: scale(1.5); }
            50% { transform: scale(0.9); }
            70% { transform: scale(1.15); }
            100% { transform: scale(1); }
        }

        /* Golden sparkle particles */
        .save-btn.sparkle::before,
        .save-btn.sparkle::after {
            content: '✦';
            position: absolute;
            font-size: 0.6rem;
            color: var(--gold);
            animation: sparkleOut 0.5s ease-out forwards;
            pointer-events: none;
        }

        .save-btn.sparkle::before {
            top: -4px;
            left: -2px;
            animation-name: sparkleOut1;
        }

        .save-btn.sparkle::after {
            top: -2px;
            right: -4px;
            animation-name: sparkleOut2;
        }

        @keyframes sparkleOut1 {
            0% { opacity: 1; transform: translate(0, 0) scale(0.5); }
            100% { opacity: 0; transform: translate(-8px, -12px) scale(1.2); }
        }

        @keyframes sparkleOut2 {
            0% { opacity: 1; transform: translate(0, 0) scale(0.5); }
            100% { opacity: 0; transform: translate(10px, -10px) scale(1); }
        }

        /* Groups tab styles */
        /* Events Tab */
        .events-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 1rem;
            padding-bottom: 5rem;
        }

        .events-header {
            text-align: left;
            margin-bottom: 1.5rem;
        }

        .events-title {
            font-family: 'Playfair Display', serif;
            color: var(--crimson);
            font-size: 1.3rem;
            margin-bottom: 0.25rem;
        }

        .events-subtitle {
            font-size: 0.85rem;
            color: #999;
            margin: 0;
        }

        .events-coming-soon {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 2rem;
            text-align: left;
            box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 3px 8px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.05);
            border-top: 2px solid var(--liturgical-color);
        }

        .coming-soon-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .events-coming-soon h3 {
            font-family: 'Playfair Display', serif;
            color: var(--crimson);
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .events-coming-soon p {
            color: var(--charcoal);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .coming-soon-features {
            font-weight: 600;
            margin-top: 1.5rem;
        }

        .coming-soon-list {
            list-style: none;
            padding: 0;
            margin: 1rem 0;
            text-align: left;
            max-width: 280px;
            margin-left: auto;
            margin-right: auto;
        }

        .coming-soon-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border-light);
        }

        .coming-soon-list li:last-child {
            border-bottom: none;
        }

        .coming-soon-cta {
            margin-top: 1.5rem;
            font-size: 0.9rem;
        }

        .coming-soon-cta a {
            color: var(--crimson);
            font-weight: 600;
        }

        body.dark-mode .events-coming-soon {
            background: var(--bg-secondary);
        }

        body.dark-mode .events-coming-soon h3 {
            color: var(--gold);
        }

        body.dark-mode .events-coming-soon p,
        body.dark-mode .coming-soon-list li {
            color: var(--text-primary);
        }

        .groups-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 1rem;
            padding-bottom: 5rem;
        }

        .groups-header {
            margin-bottom: 1rem;
        }

        .groups-title {
            font-family: 'Playfair Display', serif;
            color: var(--crimson);
            font-size: 1.3rem;
            margin-bottom: 0.25rem;
        }

        .groups-subtitle {
            font-size: 0.85rem;
            color: #888;
        }

        .groups-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .group-category-btn {
            padding: 0.5rem 0.85rem;
            border: 1.5px solid rgba(0,0,0,0.1);
            border-radius: 24px;
            background: var(--bg-filter-btn);
            font-size: 0.8rem;
            font-family: 'DM Sans', sans-serif;
            cursor: pointer;
            transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
            color: var(--charcoal);
        }

        .group-category-btn:hover:not(.active) {
            border-color: var(--crimson);
            box-shadow: 0 2px 8px rgba(139, 21, 56, 0.1);
        }

        .group-category-btn.active {
            background: var(--crimson);
            color: white;
            border-color: var(--crimson);
            box-shadow: 0 2px 10px rgba(139, 21, 56, 0.25);
        }

        .group-card {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 1.15rem 1.25rem;
            margin-bottom: 0.75rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
            border: 1px solid var(--border-light);
            border-left: 3px solid var(--liturgical-color);
            transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.8s ease;
            position: relative;
            overflow: hidden;
        }

        .group-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.1);
            transform: translateY(-2px);
            background: var(--bg-card-hover);
        }

        .group-card-name {
            font-family: 'Crimson Pro', serif;
            font-weight: 600;
            color: var(--crimson);
            font-size: 1.05rem;
            margin-bottom: 0.2rem;
            line-height: 1.3;
        }

        .group-card-church {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.25rem;
        }

        .group-card-area {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .group-card-details {
            font-size: 0.8rem;
            color: var(--text-subtle);
            margin-top: 0.5rem;
            line-height: 1.55;
            padding-top: 0.5rem;
            border-top: 1px solid var(--border-light);
        }

        .group-card-links {
            display: flex;
            gap: 0.4rem;
            margin-top: 0.6rem;
            flex-wrap: wrap;
        }

        .group-card-link {
            font-size: 0.75rem;
            padding: 0.25rem 0.6rem;
            border: 1px solid var(--gold);
            border-radius: 15px;
            color: var(--crimson);
            text-decoration: none;
            background: var(--bg-card);
            transition: background 0.2s;
        }

        .group-card-link:hover {
            background: var(--light-gold);
        }

        .group-card-distance {
            font-size: 0.75rem;
            color: var(--sage);
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
            background: var(--light-gold);
            padding: 0.2rem 0.5rem;
            border-radius: 10px;
        }

        .group-card-meeting {
            font-size: 0.8rem;
            color: var(--crimson);
            margin-top: 0.4rem;
            font-weight: 500;
        }

        .group-card.featured {
            border-left: 3px solid var(--crimson);
        }

        .group-card-save {
            background: none;
            border: none;
            font-size: 1.1rem;
            cursor: pointer;
            padding: 0.15rem;
            color: #ccc;
            transition: color 0.2s, transform 0.2s;
            flex-shrink: 0;
            line-height: 1;
            position: relative;
        }

        .group-card-save.saved {
            color: var(--gold);
        }

        .group-card-save.sparkle {
            animation: saveBounce 0.4s ease-out;
        }

        .group-card-save.sparkle::before,
        .group-card-save.sparkle::after {
            content: '✦';
            position: absolute;
            font-size: 0.5rem;
            color: var(--gold);
            pointer-events: none;
        }

        .group-card-save.sparkle::before {
            animation: sparkleOut1 0.5s ease-out forwards;
        }

        .group-card-save.sparkle::after {
            animation: sparkleOut2 0.5s ease-out forwards;
        }

        /* Saved tab */
        .saved-container {
            padding: 1rem;
            max-width: 900px;
            margin: 0 auto;
        }

        .saved-header {
            text-align: center;
            margin-bottom: 1rem;
        }

        .saved-title {
            font-size: 1.3rem;
            color: var(--crimson);
            font-weight: 600;
            margin: 0 0 0.25rem;
        }

        .saved-subtitle {
            font-size: 0.85rem;
            color: #999;
            margin: 0;
        }
        
        .export-calendar-btn {
            display: inline-block;
            margin-top: 0.75rem;
            padding: 0.5rem 1rem;
            background: var(--light-gold);
            border: 1px solid var(--gold);
            border-radius: 8px;
            color: var(--crimson);
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .export-calendar-btn:hover {
            background: var(--gold);
        }
        
        .saved-footer {
            text-align: center;
            padding: 1.5rem 1rem;
            margin-top: 1rem;
        }
        
        body.dark-mode .export-calendar-btn {
            background: var(--bg-secondary);
            border-color: var(--border-light);
            color: var(--text-primary);
        }

        .saved-view-toggle {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .saved-view-btn {
            padding: 0.5rem 1rem;
            border: 1.5px solid var(--gold);
            border-radius: 20px;
            background: white;
            color: var(--crimson);
            font-size: 0.85rem;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
        }

        .saved-view-btn.active {
            background: var(--crimson);
            color: white;
            border-color: var(--crimson);
        }

        .saved-content {
            min-height: 200px;
        }

        .saved-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: #999;
        }

        .saved-empty h3 {
            color: #666;
            margin: 0 0 0.5rem;
        }

        .saved-empty p {
            font-size: 0.9rem;
            margin: 0;
        }

        .saved-count {
            font-size: 0.8rem;
            color: #999;
            margin-bottom: 0.75rem;
        }

        .saved-event-card {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 0.75rem;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border-light);
            overflow: hidden;
        }

        .saved-event-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 0.5rem;
        }

        .saved-event-top {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.2rem;
            flex-wrap: wrap;
        }

        .saved-event-time {
            font-weight: 600;
            color: var(--crimson);
            font-size: 0.95rem;
        }

        .saved-event-type {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .saved-event-church {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        .saved-event-area {
            font-weight: 400;
            color: var(--text-muted);
            font-size: 0.85rem;
        }
        
        .saved-event-dist {
            font-weight: 400;
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-left: 0.25rem;
        }

        .saved-event-bottom {
            display: flex;
            align-items: center;
            margin-top: 0.6rem;
        }

        .saved-event-links {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex-wrap: wrap;
        }

        .saved-badge {
            background: var(--crimson);
            color: white;
            font-size: 0.6rem;
            font-weight: 700;
            min-width: 14px;
            height: 14px;
            border-radius: 7px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 2px;
            right: 50%;
            transform: translateX(14px);
            padding: 0 3px;
            line-height: 1;
        }

        .nav-item {
            position: relative;
        }

        .saved-badge:empty {
            display: none;
        }

        .groups-search-container {
            margin-bottom: 0.75rem;
        }

        .groups-search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .groups-search-icon {
            position: absolute;
            left: 0.75rem;
            pointer-events: none;
        }

        .groups-search-input {
            width: 100%;
            padding: 0.6rem 0.75rem 0.6rem 2.25rem;
            border: 1px solid rgba(0,0,0,0.12);
            border-radius: 10px;
            font-size: 0.85rem;
            font-family: 'DM Sans', sans-serif;
            background: white;
            outline: none;
            transition: border-color 0.2s;
        }

        .groups-search-input:focus {
            border-color: var(--crimson);
        }

        .groups-search-clear {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            font-size: 1rem;
            color: #999;
            cursor: pointer;
            padding: 0.25rem;
            display: none;
        }

        .groups-search-clear:hover {
            color: var(--crimson);
        }

        .groups-empty {
            text-align: center;
            padding: 2rem 1rem;
            color: #888;
        }

        .groups-count {
            font-size: 0.85rem;
            color: #888;
            margin-bottom: 0.75rem;
        }

        /* More tab styles */
        .more-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 1rem;
        }

        .more-section {
            background: white;
            border-radius: 12px;
            margin-bottom: 1rem;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        .more-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid rgba(0,0,0,0.08);
            cursor: pointer;
            text-decoration: none;
            color: var(--charcoal);
        }

        .more-item:last-child {
            border-bottom: none;
        }

        .more-item:hover {
            background: rgba(0,0,0,0.02);
        }

        .more-item-arrow {
            color: #ccc;
        }

        .more-about {
            padding: 1rem;
            color: var(--text-subtle);
        }

        .more-date {
            color: var(--text-muted);
        }
        
        .more-collapsible {
            cursor: pointer;
        }
        
        .more-collapsible-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            font-weight: 500;
        }
        
        .more-collapsible-arrow {
            color: var(--text-muted);
            font-size: 0.75rem;
            transition: transform 0.2s;
        }
        
        .more-collapsible.expanded .more-collapsible-arrow {
            transform: rotate(180deg);
        }
        
        .more-collapsible-content {
            display: none;
            padding: 0 1rem 1rem;
            color: var(--text-subtle);
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .more-collapsible.expanded .more-collapsible-content {
            display: block;
        }

        /* ==========================================
           DARK MODE OVERRIDES
           ========================================== */
        body.dark-mode .filters-inner,
        body.dark-mode .mobile-filter-summary,
        body.dark-mode .view-toggle-bar,
        body.dark-mode .community-toggle-bar,
        body.dark-mode .church-card,
        body.dark-mode .timeline-entry,
        body.dark-mode .group-card,
        body.dark-mode .more-section,
        body.dark-mode .verse-of-day-card,
        body.dark-mode .readings-section,
        body.dark-mode .saved-view-btn,
        body.dark-mode .saved-event-card {
            background: var(--bg-card);
            border-color: var(--border-light);
        }
        
        body.dark-mode .community-toggle-btn {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }
        
        body.dark-mode .community-toggle-btn.active {
            background: var(--crimson);
            color: white;
        }

        body.dark-mode .filter-btn,
        body.dark-mode .view-toggle-btn,
        body.dark-mode .group-category-btn,
        body.dark-mode .action-pill {
            background: var(--bg-filter-btn);
            color: var(--text-secondary);
            border-color: var(--border-medium);
        }

        body.dark-mode .action-pill.directions {
            background: #3367D6;
            border-color: #3367D6;
            color: white;
        }

        body.dark-mode .filter-btn.active,
        body.dark-mode .view-toggle-btn.active,
        body.dark-mode .group-category-btn.active {
            background: var(--crimson);
            color: white;
            border-color: var(--crimson);
        }

        body.dark-mode .saved-view-btn.active {
            background: var(--crimson);
            color: white;
            border-color: var(--crimson);
        }

        body.dark-mode .bottom-nav {
            background: rgba(30,30,28,0.82);
            border-top-color: var(--border-medium);
        }

        body.dark-mode .nav-item {
            color: var(--text-faint);
        }

        body.dark-mode .nav-item.active {
            background: var(--crimson);
            color: white;
        }

        body.dark-mode .search-input,
        body.dark-mode .search-input-wrapper,
        body.dark-mode .groups-search-input {
            background: var(--bg-input);
            color: var(--text-primary);
            border-color: var(--border-medium);
        }

        body.dark-mode .church-card,
        body.dark-mode .timeline-entry,
        body.dark-mode .readings-section {
            border-top-color: var(--liturgical-color);
        }

        body.dark-mode .church-card:hover,
        body.dark-mode .timeline-entry:hover,
        body.dark-mode .group-card:hover {
            background: var(--bg-card-hover);
        }

        body.dark-mode .church-area,
        body.dark-mode .timeline-area,
        body.dark-mode .group-card-area,
        body.dark-mode .group-card-church {
            color: var(--text-muted);
        }

        body.dark-mode .group-card-details,
        body.dark-mode .schedule-text,
        body.dark-mode .timeline-notes {
            color: var(--text-subtle);
        }

        body.dark-mode .church-card.has-event-now {
            border-left-color: #4CAF50;
        }

        body.dark-mode .church-card.has-event-soon {
            border-left-color: var(--gold);
        }

        body.dark-mode .save-btn {
            color: var(--text-faint);
        }

        body.dark-mode .save-btn.saved {
            color: var(--gold);
        }

        body.dark-mode .group-card-save {
            color: var(--text-faint);
        }

        body.dark-mode .group-card-save.saved {
            color: var(--gold);
        }

        body.dark-mode .distance {
            background: var(--bg-filter-btn);
            color: var(--sage);
        }

        body.dark-mode .timeline-time,
        body.dark-mode .view-groups-btn {
            color: #e0a0a0;
        }

        body.dark-mode .results-header,
        body.dark-mode .saved-count,
        body.dark-mode .groups-count {
            color: var(--text-muted);
            background: var(--bg-primary);
            border-top-color: var(--border-light);
        }

        body.dark-mode .more-item {
            color: var(--text-primary);
        }

        body.dark-mode .more-item:hover {
            background: rgba(255,255,255,0.03);
        }

        body.dark-mode .more-item-arrow {
            color: var(--text-faint);
        }

        body.dark-mode .distance-slider {
            background: var(--bg-filter-btn);
        }

        body.dark-mode .distance-slider::-webkit-slider-thumb {
            background: var(--gold);
        }

        body.dark-mode .filter-label {
            color: var(--text-muted);
        }

        body.dark-mode .filter-toggle-btn {
            color: var(--text-secondary);
        }

        body.dark-mode .search-clear {
            color: var(--text-muted);
        }

        body.dark-mode .liturgical-header {
            border-color: var(--border-light);
        }

        body.dark-mode .today-container a,
        body.dark-mode .readings-section a {
            color: var(--gold);
        }

        body.dark-mode .group-card.featured {
            border-left-color: var(--crimson);
        }

        body.dark-mode .group-card-name,
        body.dark-mode .group-card-meeting,
        body.dark-mode .saved-title {
            color: var(--gold);
        }

        body.dark-mode .timeline-period-header {
            background: var(--bg-card-hover);
            color: var(--text-secondary);
            border-color: var(--border-light);
        }

        body.dark-mode .no-results,
        body.dark-mode .timeline-no-events,
        body.dark-mode .saved-empty {
            color: var(--text-muted);
        }

        body.dark-mode .no-results h3,
        body.dark-mode .timeline-no-events h3,
        body.dark-mode .saved-empty h3 {
            color: var(--text-secondary);
        }

        /* Church groups list */
        .church-groups-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.5rem;
        }
        
        .group-tag {
            display: inline-block;
            background: var(--light-gold);
            color: var(--text-primary);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .group-tag.more {
            background: var(--border-light);
            color: var(--text-muted);
        }
        
        .view-groups-btn {
            background: none;
            border: none;
            color: var(--crimson);
            font-size: 0.85rem;
            cursor: pointer;
            padding: 0.3rem 0;
            text-decoration: underline;
        }
        
        .view-groups-btn:hover {
            color: var(--gold);
        }
        
        .no-services {
            color: var(--text-muted);
            font-style: italic;
            font-size: 0.9rem;
        }

    
        /* Loading spinner */
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            gap: 1.5rem;
        }
        
        .spinner {
            width: 48px;
            height: 48px;
            border: 4px solid var(--border-light);
            border-top-color: var(--crimson);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-text {
            color: var(--text-muted);
            font-size: 1rem;
        }
        
        .loading-subtext {
            color: var(--text-faint);
            font-size: 0.85rem;
        }

        /* Skeleton loading placeholders */
        .skeleton-list {
            padding: 0.5rem;
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .skeleton-card {
            background: var(--bg-card);
            border-radius: 14px;
            padding: 1rem 1.25rem;
            box-shadow: var(--shadow-card);
            border-left: 3px solid transparent;
        }

        .skeleton-line {
            height: 12px;
            border-radius: 6px;
            background: linear-gradient(90deg, var(--border-light) 25%, rgba(0,0,0,0.03) 50%, var(--border-light) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
        }

        body.dark-mode .skeleton-line {
            background: linear-gradient(90deg, var(--border-light) 25%, rgba(255,255,255,0.04) 50%, var(--border-light) 75%);
            background-size: 200% 100%;
        }

        .skeleton-line.title {
            height: 16px;
            width: 65%;
            margin-bottom: 0.6rem;
        }

        .skeleton-line.subtitle {
            width: 40%;
            margin-bottom: 0.4rem;
        }

        .skeleton-line.short {
            width: 25%;
        }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

    
        /* Splash screen */
        .splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            overflow: hidden;
        }

        .splash-panel {
            position: absolute;
            background: linear-gradient(135deg, var(--crimson) 0%, #6B0F2B 100%);
            background-size: 200% 200%;
        }
        .splash-tl { top: 0; left: 0; width: 50%; height: 50%; background-position: left top; }
        .splash-tr { top: 0; right: 0; width: 50%; height: 50%; background-position: right top; }
        .splash-bl { bottom: 0; left: 0; width: 50%; height: 50%; background-position: left bottom; }
        .splash-br { bottom: 0; right: 0; width: 50%; height: 50%; background-position: right bottom; }

        .splash-content {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .splash-screen.hidden .splash-content,
        .splash-screen.hidden .splash-quote {
            animation: splashContentFade 0.3s ease-out forwards;
        }

        .splash-screen.hidden .splash-tl { animation: panelTL 0.7s cubic-bezier(0.4, 0, 0.65, 1) 0.15s forwards; }
        .splash-screen.hidden .splash-tr { animation: panelTR 0.7s cubic-bezier(0.4, 0, 0.65, 1) 0.15s forwards; }
        .splash-screen.hidden .splash-bl { animation: panelBL 0.7s cubic-bezier(0.4, 0, 0.65, 1) 0.15s forwards; }
        .splash-screen.hidden .splash-br { animation: panelBR 0.7s cubic-bezier(0.4, 0, 0.65, 1) 0.15s forwards; }

        @keyframes splashContentFade {
            to { opacity: 0; }
        }
        @keyframes panelTL { to { transform: translate(-105%, -105%); } }
        @keyframes panelTR { to { transform: translate(105%, -105%); } }
        @keyframes panelBL { to { transform: translate(-105%, 105%); } }
        @keyframes panelBR { to { transform: translate(105%, 105%); } }
        
        /* Add to Home Screen Modal */
        .a2hs-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 1rem;
        }
        
        .a2hs-content {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            max-width: 320px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }
        
        .a2hs-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        
        .a2hs-content h3 {
            font-family: 'Playfair Display', serif;
            color: var(--crimson);
            margin-bottom: 0.75rem;
            font-size: 1.3rem;
        }
        
        .a2hs-content p {
            color: var(--charcoal);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 1.25rem;
        }
        
        .a2hs-buttons {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .a2hs-btn {
            padding: 0.85rem 1.5rem;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-family: 'DM Sans', sans-serif;
        }
        
        .a2hs-yes {
            background: var(--crimson);
            color: white;
        }
        
        .a2hs-no {
            background: var(--cream);
            color: var(--charcoal);
            border: 1px solid var(--border-light);
        }
        
        .a2hs-never {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            font-size: 0.85rem;
            color: #888;
            cursor: pointer;
        }
        
        .a2hs-steps {
            text-align: left;
            padding-left: 1.25rem;
            margin: 1rem 0;
        }
        
        .a2hs-steps li {
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }
        
        .ios-share-icon {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid var(--crimson);
            border-radius: 4px;
            text-align: center;
            line-height: 16px;
            font-size: 14px;
            color: var(--crimson);
        }
        
        .a2hs-ok {
            background: var(--crimson);
            color: white;
            width: 100%;
        }
        
        body.dark-mode .a2hs-content {
            background: var(--bg-secondary);
        }
        
        body.dark-mode .a2hs-content h3 {
            color: var(--gold);
        }
        
        body.dark-mode .a2hs-content p,
        body.dark-mode .a2hs-steps li {
            color: var(--text-primary);
        }
        
        body.dark-mode .a2hs-no {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border-color: var(--border-light);
        }
        
        .splash-cross {
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
            opacity: 0;
            animation: splashCrossIn 0.8s ease-out 0.2s both, candleGlow 2.5s ease-in-out 1s infinite;
        }

        /* Stained glass light rays */
        .splash-cross::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 280px;
            height: 280px;
            transform: translate(-50%, -50%);
            background:
                radial-gradient(ellipse at center, rgba(201, 169, 98, 0.3) 0%, rgba(201, 169, 98, 0.1) 30%, transparent 60%),
                conic-gradient(from 0deg at 50% 50%,
                    transparent 0deg, rgba(255,255,255,0.1) 8deg, transparent 16deg,
                    transparent 45deg, rgba(255,255,255,0.07) 53deg, transparent 61deg,
                    transparent 90deg, rgba(255,255,255,0.1) 98deg, transparent 106deg,
                    transparent 135deg, rgba(255,255,255,0.07) 143deg, transparent 151deg,
                    transparent 180deg, rgba(255,255,255,0.1) 188deg, transparent 196deg,
                    transparent 225deg, rgba(255,255,255,0.07) 233deg, transparent 241deg,
                    transparent 270deg, rgba(255,255,255,0.1) 278deg, transparent 286deg,
                    transparent 315deg, rgba(255,255,255,0.07) 323deg, transparent 331deg,
                    transparent 360deg
                );
            border-radius: 50%;
            z-index: -1;
            opacity: 0;
            animation: stainedGlassReveal 2s ease-out 0.5s both, stainedGlassPulse 4s ease-in-out 2.5s infinite;
            pointer-events: none;
        }

        @keyframes stainedGlassReveal {
            from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
            to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }

        @keyframes stainedGlassPulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.8; }
            50% { transform: translate(-50%, -50%) scale(1.06) rotate(2deg); opacity: 1; }
        }

        @keyframes splashCrossIn {
            from { opacity: 0; transform: scale(0.4); }
            to { opacity: 1; transform: scale(1); }
        }

        @keyframes candleGlow {
            0%, 100% { filter: drop-shadow(0 0 12px rgba(201, 169, 98, 0.3)) drop-shadow(0 0 30px rgba(201, 169, 98, 0.15)); }
            50% { filter: drop-shadow(0 0 22px rgba(201, 169, 98, 0.6)) drop-shadow(0 0 50px rgba(201, 169, 98, 0.25)); }
        }

        .splash-cross svg {
            width: 64px;
            height: 64px;
        }

        .splash-logo {
            font-family: 'Crimson Pro', serif;
            font-size: 2.5rem;
            font-weight: 600;
            color: white;
            margin-bottom: 2.5rem;
            text-align: center;
            opacity: 0;
            animation: splashTitleIn 0.7s ease-out 0.6s both;
        }

        @keyframes splashTitleIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .splash-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid rgba(255,255,255,0.2);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 1s linear infinite, splashFadeIn 0.4s ease-out 1.1s both;
            margin-bottom: 1.5rem;
            opacity: 0;
        }

        .splash-status {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9rem;
            color: rgba(255,255,255,0.7);
            opacity: 0;
            animation: splashFadeIn 0.4s ease-out 1.3s both;
        }

        .splash-quote {
            position: absolute;
            bottom: 3rem;
            font-family: 'Crimson Pro', serif;
            font-size: 1rem;
            font-style: italic;
            color: rgba(255,255,255,0.6);
            text-align: center;
            opacity: 0;
            animation: splashFadeIn 0.6s ease-out 1.7s both;
        }

        @keyframes splashFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }


    
        /* Church groups detail list */
        .church-groups-detail-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }
        
        .group-detail-item {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }
        
        .group-detail-name {
            font-weight: 500;
            color: var(--text-primary);
            font-size: 0.9rem;
        }
        
        .group-detail-time {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        .group-detail-more {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-style: italic;
            padding-top: 0.25rem;
        }

    
        /* Order of Mass section in Readings */
        .order-mass-section {
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        .order-mass-header {
            font-weight: 600;
            color: var(--charcoal);
            margin-bottom: 0.75rem;
            font-size: 1rem;
            text-align: center;
        }
        
        .order-mass-buttons {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            align-items: center;
        }
        
        .order-mass-link {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.1rem 1.5rem;
            color: var(--charcoal);
            text-decoration: none;
            background: white;
            border: 1px solid rgba(0,0,0,0.05);
            border-left: 4px solid var(--gold);
            border-radius: 12px;
            font-size: 1rem;
            font-family: 'DM Sans', sans-serif;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
            width: 100%;
            transition: box-shadow 0.2s, border-color 0.2s;
        }

        .order-mass-link:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
            border-left-color: var(--crimson);
        }

        .order-mass-link:active {
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        }

        body.dark-mode .order-mass-link {
            background: var(--bg-card);
            border-color: var(--border-light);
            border-left-color: var(--gold);
        }

        body.dark-mode .order-mass-link:hover {
            background: var(--bg-tertiary);
            border-left-color: var(--crimson);
        }
        
        /* Smaller More nav item */
        .nav-item[data-tab="moreTab"] {
            flex: 0.5;
            min-width: auto;
            gap: 0;
            justify-content: center;
            align-items: center;
        }

